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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (906) hide show
  1. package/custom-elements.json +33600 -39264
  2. package/dist/dialog/forge-dialog-utils.css +1 -1
  3. package/dist/esm/accordion/index.js +1 -1
  4. package/dist/esm/app-bar/app-bar/index.js +1 -1
  5. package/dist/esm/app-bar/help-button/index.js +1 -1
  6. package/dist/esm/app-bar/index.js +1 -1
  7. package/dist/esm/app-bar/menu-button/index.js +1 -1
  8. package/dist/esm/app-bar/notification-button/index.js +1 -1
  9. package/dist/esm/app-bar/profile-button/index.js +1 -1
  10. package/dist/esm/app-bar/search/index.js +1 -1
  11. package/dist/esm/autocomplete/index.js +1 -1
  12. package/dist/esm/avatar/index.js +1 -1
  13. package/dist/esm/backdrop/index.js +1 -1
  14. package/dist/esm/badge/index.js +1 -1
  15. package/dist/esm/banner/index.js +1 -1
  16. package/dist/esm/bottom-sheet/index.js +1 -1
  17. package/dist/esm/busy-indicator/index.js +1 -1
  18. package/dist/esm/button/index.js +1 -1
  19. package/dist/esm/button-area/index.js +1 -1
  20. package/dist/esm/button-toggle/button-toggle/index.js +1 -1
  21. package/dist/esm/button-toggle/button-toggle-group/index.js +1 -1
  22. package/dist/esm/button-toggle/index.js +1 -1
  23. package/dist/esm/calendar/calendar-dropdown/index.js +1 -1
  24. package/dist/esm/calendar/calendar-menu/index.js +1 -1
  25. package/dist/esm/calendar/index.js +1 -1
  26. package/dist/esm/card/index.js +1 -1
  27. package/dist/esm/checkbox/index.js +1 -1
  28. package/dist/esm/chip-field/index.js +1 -1
  29. package/dist/esm/chips/chip/index.js +1 -1
  30. package/dist/esm/chips/chip-set/index.js +1 -1
  31. package/dist/esm/chips/index.js +1 -1
  32. package/dist/esm/chunks/{chunk.YS5JZHJ6.js → chunk.24SQJBSQ.js} +2 -2
  33. package/dist/esm/chunks/{chunk.PDDBNHVU.js → chunk.2GUWHBUU.js} +2 -2
  34. package/dist/esm/chunks/{chunk.PDDBNHVU.js.map → chunk.2GUWHBUU.js.map} +2 -2
  35. package/dist/esm/chunks/chunk.37B332ZK.js +7 -0
  36. package/dist/esm/chunks/{chunk.SOKORSUV.js.map → chunk.37B332ZK.js.map} +3 -3
  37. package/dist/esm/chunks/chunk.3IUQ4C47.js +7 -0
  38. package/dist/esm/chunks/chunk.3IUQ4C47.js.map +7 -0
  39. package/dist/esm/chunks/{chunk.IZRURH7C.js → chunk.3KAKJGUS.js} +2 -2
  40. package/dist/esm/chunks/chunk.3PMONORO.js +7 -0
  41. package/dist/esm/chunks/chunk.3PMONORO.js.map +7 -0
  42. package/dist/esm/chunks/chunk.473WRJ5G.js +7 -0
  43. package/dist/esm/chunks/chunk.5A665C5E.js +7 -0
  44. package/dist/esm/chunks/chunk.5A665C5E.js.map +7 -0
  45. package/dist/esm/chunks/chunk.5ADUSMC7.js +7 -0
  46. package/dist/esm/chunks/chunk.5ADUSMC7.js.map +7 -0
  47. package/dist/esm/chunks/{chunk.USQEIRST.js → chunk.5MB6CTBA.js} +2 -2
  48. package/dist/esm/chunks/chunk.5SUJNEC7.js +7 -0
  49. package/dist/esm/chunks/chunk.5SUJNEC7.js.map +7 -0
  50. package/dist/esm/chunks/{chunk.47U6GVGZ.js → chunk.5UOX22ML.js} +2 -2
  51. package/dist/esm/chunks/chunk.6E5WHIPF.js +7 -0
  52. package/dist/esm/chunks/chunk.6E5WHIPF.js.map +7 -0
  53. package/dist/esm/chunks/{chunk.4NABD6XG.js → chunk.6VS3LYAF.js} +2 -2
  54. package/dist/esm/chunks/chunk.72BKSMAZ.js +7 -0
  55. package/dist/esm/chunks/{chunk.3TIBP6QT.js.map → chunk.72BKSMAZ.js.map} +3 -3
  56. package/dist/esm/chunks/chunk.77C7S7ZS.js +7 -0
  57. package/dist/esm/chunks/chunk.77C7S7ZS.js.map +7 -0
  58. package/dist/esm/chunks/chunk.7AAICE77.js +7 -0
  59. package/dist/esm/chunks/chunk.7AAICE77.js.map +7 -0
  60. package/dist/esm/chunks/chunk.7IPAW4D2.js +7 -0
  61. package/dist/esm/chunks/{chunk.MCR34SZQ.js.map → chunk.7IPAW4D2.js.map} +1 -1
  62. package/dist/esm/chunks/chunk.7Y3BUR7Q.js +7 -0
  63. package/dist/esm/chunks/{chunk.3U222LE4.js.map → chunk.7Y3BUR7Q.js.map} +1 -1
  64. package/dist/esm/chunks/chunk.A2NB7CIK.js +7 -0
  65. package/dist/esm/chunks/chunk.A2NB7CIK.js.map +7 -0
  66. package/dist/esm/chunks/{chunk.AOSBUJWW.js → chunk.A7BCLPP4.js} +2 -2
  67. package/dist/esm/chunks/chunk.AFWWND2C.js +7 -0
  68. package/dist/esm/chunks/chunk.AFWWND2C.js.map +7 -0
  69. package/dist/esm/chunks/{chunk.7UBIT4NP.js → chunk.AG6IRMLZ.js} +2 -2
  70. package/dist/esm/chunks/{chunk.A4UH52SA.js → chunk.AGLI4WR4.js} +2 -2
  71. package/dist/esm/chunks/{chunk.WTUXAH7Z.js → chunk.AOVXNX7P.js} +2 -2
  72. package/dist/esm/chunks/{chunk.AN2E2SSN.js → chunk.ASLHRT3N.js} +2 -2
  73. package/dist/esm/chunks/chunk.BEFAXPXJ.js +15 -0
  74. package/dist/esm/chunks/{chunk.EO3HELQ2.js.map → chunk.BEFAXPXJ.js.map} +1 -1
  75. package/dist/esm/chunks/{chunk.CBLUXYH2.js → chunk.BHE6Z5Y2.js} +2 -2
  76. package/dist/esm/chunks/{chunk.2WRAXA3H.js → chunk.BQ52JYLA.js} +2 -2
  77. package/dist/esm/chunks/chunk.BQZKOIAW.js +7 -0
  78. package/dist/esm/chunks/chunk.BQZKOIAW.js.map +7 -0
  79. package/dist/esm/chunks/chunk.BV7EAQST.js +7 -0
  80. package/dist/esm/chunks/chunk.BV7EAQST.js.map +7 -0
  81. package/dist/esm/chunks/{chunk.ROMRJIFR.js → chunk.CE35CVDV.js} +2 -2
  82. package/dist/esm/chunks/{chunk.ZPXMKY72.js → chunk.CEGBMUSR.js} +2 -2
  83. package/dist/esm/chunks/{chunk.GBGGUYTE.js → chunk.CFAI4K3E.js} +2 -2
  84. package/dist/esm/chunks/{chunk.ZIGVO6FN.js → chunk.CGFSMACZ.js} +2 -2
  85. package/dist/esm/chunks/chunk.DJSHVUEM.js +18 -0
  86. package/dist/esm/chunks/{chunk.MGLWXAZO.js.map → chunk.DJSHVUEM.js.map} +4 -4
  87. package/dist/esm/chunks/chunk.DKERDHXH.js +7 -0
  88. package/dist/esm/chunks/{chunk.JVWJHSPM.js.map → chunk.DKERDHXH.js.map} +1 -1
  89. package/dist/esm/chunks/chunk.DZJ6HBAG.js +7 -0
  90. package/dist/esm/chunks/chunk.DZJ6HBAG.js.map +7 -0
  91. package/dist/esm/chunks/{chunk.2537XOFQ.js → chunk.E2BE52ME.js} +2 -2
  92. package/dist/esm/chunks/chunk.EHVCEEV2.js +7 -0
  93. package/dist/esm/chunks/chunk.EHVCEEV2.js.map +7 -0
  94. package/dist/esm/chunks/{chunk.UEYPCCFG.js → chunk.ENUKGA2U.js} +2 -2
  95. package/dist/esm/chunks/chunk.EO3GP6DP.js +7 -0
  96. package/dist/esm/chunks/chunk.EO3GP6DP.js.map +7 -0
  97. package/dist/esm/chunks/{chunk.XYBVD3IE.js → chunk.EUJBIOGT.js} +2 -2
  98. package/dist/esm/chunks/{chunk.XYBVD3IE.js.map → chunk.EUJBIOGT.js.map} +2 -2
  99. package/dist/esm/chunks/chunk.FLBYVCQ6.js +7 -0
  100. package/dist/esm/chunks/chunk.FLBYVCQ6.js.map +7 -0
  101. package/dist/esm/chunks/chunk.FLF5RTYO.js +7 -0
  102. package/dist/esm/chunks/chunk.FLF5RTYO.js.map +7 -0
  103. package/dist/esm/chunks/chunk.GBAVJILM.js +7 -0
  104. package/dist/esm/chunks/chunk.GBAVJILM.js.map +7 -0
  105. package/dist/esm/chunks/chunk.GG7IQL46.js +7 -0
  106. package/dist/esm/chunks/{chunk.HBAC6E7O.js.map → chunk.GG7IQL46.js.map} +1 -1
  107. package/dist/esm/chunks/chunk.GIENHEMN.js +7 -0
  108. package/dist/esm/chunks/chunk.GIENHEMN.js.map +7 -0
  109. package/dist/esm/chunks/{chunk.FOSKVNVV.js → chunk.H4VQXV2H.js} +2 -2
  110. package/dist/esm/chunks/{chunk.FOSKVNVV.js.map → chunk.H4VQXV2H.js.map} +2 -2
  111. package/dist/esm/chunks/{chunk.GA6AO6FJ.js → chunk.H5RW3A4M.js} +2 -2
  112. package/dist/esm/chunks/chunk.HG4IDRAC.js +7 -0
  113. package/dist/esm/chunks/chunk.HG4IDRAC.js.map +7 -0
  114. package/dist/esm/chunks/{chunk.CSOKFDFQ.js → chunk.HSADKCGS.js} +2 -2
  115. package/dist/esm/chunks/chunk.I7YON2TC.js +7 -0
  116. package/dist/esm/chunks/chunk.I7YON2TC.js.map +7 -0
  117. package/dist/esm/chunks/chunk.IEABOPNB.js +7 -0
  118. package/dist/esm/chunks/{chunk.22C7GQLX.js → chunk.IL4S57WO.js} +2 -2
  119. package/dist/esm/chunks/{chunk.HMJODLAS.js → chunk.IQYOLMPG.js} +2 -2
  120. package/dist/esm/chunks/chunk.ISLJNJEE.js +7 -0
  121. package/dist/esm/chunks/chunk.ISLJNJEE.js.map +7 -0
  122. package/dist/esm/chunks/{chunk.QG5EYBS3.js → chunk.J2Y5KPON.js} +2 -2
  123. package/dist/esm/chunks/{chunk.QG5EYBS3.js.map → chunk.J2Y5KPON.js.map} +2 -2
  124. package/dist/esm/chunks/{chunk.7IJUN75W.js → chunk.JE5LSPXG.js} +2 -2
  125. package/dist/esm/chunks/{chunk.7IJUN75W.js.map → chunk.JE5LSPXG.js.map} +3 -3
  126. package/dist/esm/chunks/{chunk.GTKYO6VB.js → chunk.JGURMVW7.js} +2 -2
  127. package/dist/esm/chunks/{chunk.YXHMD73U.js → chunk.K6GJNDTY.js} +2 -2
  128. package/dist/esm/chunks/{chunk.QUWEAFGI.js → chunk.KEOLH7G3.js} +2 -2
  129. package/dist/esm/chunks/chunk.KLU54MDQ.js +7 -0
  130. package/dist/esm/chunks/chunk.KLU54MDQ.js.map +7 -0
  131. package/dist/esm/chunks/chunk.KO6ODCZC.js +7 -0
  132. package/dist/esm/chunks/chunk.KO6ODCZC.js.map +7 -0
  133. package/dist/esm/chunks/chunk.KTPEFU7V.js +7 -0
  134. package/dist/esm/chunks/{chunk.5UGN5FYV.js.map → chunk.KTPEFU7V.js.map} +2 -2
  135. package/dist/esm/chunks/chunk.L4QSPQDE.js +7 -0
  136. package/dist/esm/chunks/{chunk.DCCFF327.js.map → chunk.L4QSPQDE.js.map} +2 -2
  137. package/dist/esm/chunks/chunk.LGSCBWNR.js +7 -0
  138. package/dist/esm/chunks/chunk.LGSCBWNR.js.map +7 -0
  139. package/dist/esm/chunks/{chunk.BIQTNLIF.js → chunk.LNTTU2GL.js} +2 -2
  140. package/dist/esm/chunks/chunk.LSMHIVX2.js +7 -0
  141. package/dist/esm/chunks/{chunk.V7ILFIOR.js.map → chunk.LSMHIVX2.js.map} +1 -1
  142. package/dist/esm/chunks/{chunk.2AM2BKEO.js → chunk.MFQRXVKO.js} +2 -2
  143. package/dist/esm/chunks/{chunk.JLSFTWPE.js → chunk.MTIPIEXA.js} +2 -2
  144. package/dist/esm/chunks/chunk.MX4JX4GT.js +7 -0
  145. package/dist/esm/chunks/{chunk.UOD3A7M4.js.map → chunk.MX4JX4GT.js.map} +1 -1
  146. package/dist/esm/chunks/chunk.NEQX2QVX.js +7 -0
  147. package/dist/esm/chunks/chunk.NEQX2QVX.js.map +7 -0
  148. package/dist/esm/chunks/chunk.NWVQ5HK2.js +7 -0
  149. package/dist/esm/chunks/{chunk.BETICEYY.js.map → chunk.NWVQ5HK2.js.map} +2 -2
  150. package/dist/esm/chunks/chunk.O5WAQQNR.js +7 -0
  151. package/dist/esm/chunks/{chunk.ZYKP23JP.js.map → chunk.O5WAQQNR.js.map} +2 -2
  152. package/dist/esm/chunks/{chunk.JSTCCUKZ.js → chunk.OEI35LFU.js} +2 -2
  153. package/dist/esm/chunks/{chunk.6GSVB5NB.js → chunk.OLFOVKQG.js} +2 -2
  154. package/dist/esm/chunks/chunk.OLFOVKQG.js.map +7 -0
  155. package/dist/esm/chunks/{chunk.IWVAI6XM.js → chunk.OOAJHLW4.js} +2 -2
  156. package/dist/esm/chunks/chunk.OOAJHLW4.js.map +7 -0
  157. package/dist/esm/chunks/chunk.OVXEOEJF.js +7 -0
  158. package/dist/esm/chunks/chunk.OVXEOEJF.js.map +7 -0
  159. package/dist/esm/chunks/chunk.PC6TW5XE.js +7 -0
  160. package/dist/esm/chunks/chunk.PC6TW5XE.js.map +7 -0
  161. package/dist/esm/chunks/chunk.PFIIBXTS.js +7 -0
  162. package/dist/esm/chunks/chunk.PFIIBXTS.js.map +7 -0
  163. package/dist/esm/chunks/chunk.Q7TBWGKN.js +12 -0
  164. package/dist/esm/chunks/chunk.Q7TBWGKN.js.map +7 -0
  165. package/dist/esm/chunks/chunk.QCPV5DEG.js +7 -0
  166. package/dist/esm/chunks/{chunk.R3AWIPPK.js → chunk.QIZBZGYT.js} +2 -2
  167. package/dist/esm/chunks/{chunk.2XPAYTK4.js → chunk.QKTK5XUE.js} +2 -2
  168. package/dist/esm/chunks/chunk.QLGJS37N.js +7 -0
  169. package/dist/esm/chunks/chunk.QLGJS37N.js.map +7 -0
  170. package/dist/esm/chunks/{chunk.R66CYS27.js → chunk.QTY25OTN.js} +2 -2
  171. package/dist/esm/chunks/chunk.QUXMLWBJ.js +7 -0
  172. package/dist/esm/chunks/{chunk.BEUQVZKZ.js.map → chunk.QUXMLWBJ.js.map} +1 -1
  173. package/dist/esm/chunks/{chunk.BSV27GU7.js → chunk.QVATEY5S.js} +2 -2
  174. package/dist/esm/chunks/chunk.RFT3BAJ2.js +7 -0
  175. package/dist/esm/chunks/chunk.RFT3BAJ2.js.map +7 -0
  176. package/dist/esm/chunks/{chunk.SHBDQPPH.js → chunk.RONMNRSH.js} +2 -2
  177. package/dist/esm/chunks/{chunk.FRTSXX33.js → chunk.RSYEG2RW.js} +2 -2
  178. package/dist/esm/chunks/{chunk.A6BIUNPW.js → chunk.RXBLU4OJ.js} +2 -2
  179. package/dist/esm/chunks/{chunk.FBDRM4YN.js → chunk.S7KEO2CH.js} +2 -2
  180. package/dist/esm/chunks/{chunk.XU3YSZPA.js → chunk.SQ3AZAHF.js} +2 -2
  181. package/dist/esm/chunks/{chunk.35MHQH7Z.js → chunk.SROEDYPL.js} +2 -2
  182. package/dist/esm/chunks/chunk.T7NWP7DB.js +7 -0
  183. package/dist/esm/chunks/chunk.T7NWP7DB.js.map +7 -0
  184. package/dist/esm/chunks/{chunk.PXRGQHWR.js → chunk.TQWZDM6T.js} +2 -2
  185. package/dist/esm/chunks/chunk.U6J4VHU6.js +7 -0
  186. package/dist/esm/chunks/{chunk.STSAE2XP.js.map → chunk.U6J4VHU6.js.map} +1 -1
  187. package/dist/esm/chunks/{chunk.6JVMCBCR.js → chunk.UKBE2FMZ.js} +2 -2
  188. package/dist/esm/chunks/{chunk.MDDX4MJU.js → chunk.UPSXYWPD.js} +2 -2
  189. package/dist/esm/chunks/{chunk.MDDX4MJU.js.map → chunk.UPSXYWPD.js.map} +2 -2
  190. package/dist/esm/chunks/chunk.USTVZ6MZ.js +7 -0
  191. package/dist/esm/chunks/chunk.USTVZ6MZ.js.map +7 -0
  192. package/dist/esm/chunks/chunk.VGIRVTBJ.js +7 -0
  193. package/dist/esm/chunks/chunk.VGIRVTBJ.js.map +7 -0
  194. package/dist/esm/chunks/chunk.VRSPT7WX.js +7 -0
  195. package/dist/esm/chunks/{chunk.UQQQSJVM.js.map → chunk.VRSPT7WX.js.map} +3 -3
  196. package/dist/esm/chunks/chunk.W4HANHUO.js +7 -0
  197. package/dist/esm/chunks/chunk.W6FT6MKN.js +7 -0
  198. package/dist/esm/chunks/chunk.W6FT6MKN.js.map +7 -0
  199. package/dist/esm/chunks/{chunk.2W276VOR.js → chunk.WMJSYYXQ.js} +2 -2
  200. package/dist/esm/chunks/chunk.WXVVOFNK.js +7 -0
  201. package/dist/esm/chunks/chunk.WXVVOFNK.js.map +7 -0
  202. package/dist/esm/chunks/{chunk.OSBNFFCI.js → chunk.XATVDHDW.js} +2 -2
  203. package/dist/esm/chunks/chunk.XATVDHDW.js.map +7 -0
  204. package/dist/esm/chunks/{chunk.4AEQ7KVU.js → chunk.XTJGWT5F.js} +2 -2
  205. package/dist/esm/chunks/chunk.YNCTSMT6.js +7 -0
  206. package/dist/esm/chunks/chunk.YNCTSMT6.js.map +7 -0
  207. package/dist/esm/chunks/{chunk.YNXWVL4B.js → chunk.YPNSK2CK.js} +2 -2
  208. package/dist/esm/chunks/chunk.YRAEFQJW.js +7 -0
  209. package/dist/esm/chunks/{chunk.XAZ6EDIZ.js.map → chunk.YRAEFQJW.js.map} +3 -3
  210. package/dist/esm/chunks/chunk.YWJVZVZX.js +7 -0
  211. package/dist/esm/chunks/{chunk.6XLTVIUD.js → chunk.ZA7JY3AY.js} +2 -2
  212. package/dist/esm/chunks/chunk.ZG6YF2HI.js +7 -0
  213. package/dist/esm/chunks/{chunk.R6VPRRTT.js.map → chunk.ZG6YF2HI.js.map} +1 -1
  214. package/dist/esm/circular-progress/index.js +1 -1
  215. package/dist/esm/color-picker/index.js +1 -1
  216. package/dist/esm/core/base/index.js +1 -1
  217. package/dist/esm/core/delegates/index.js +1 -1
  218. package/dist/esm/core/index.js +1 -1
  219. package/dist/esm/core/utils/index.js +1 -1
  220. package/dist/esm/date-picker/index.js +1 -1
  221. package/dist/esm/date-range-picker/index.js +1 -1
  222. package/dist/esm/deprecated/button/index.js +1 -1
  223. package/dist/esm/deprecated/index.js +1 -1
  224. package/dist/esm/dialog/index.js +1 -1
  225. package/dist/esm/divider/index.js +1 -1
  226. package/dist/esm/drawer/base/index.js +1 -1
  227. package/dist/esm/drawer/drawer/index.js +1 -1
  228. package/dist/esm/drawer/index.js +1 -1
  229. package/dist/esm/drawer/mini-drawer/index.js +1 -1
  230. package/dist/esm/drawer/modal-drawer/index.js +1 -1
  231. package/dist/esm/expansion-panel/index.js +1 -1
  232. package/dist/esm/{field-next → field}/base/index.js +1 -1
  233. package/dist/esm/field/index.js +7 -0
  234. package/dist/esm/file-picker/index.js +1 -1
  235. package/dist/esm/floating-action-button/index.js +1 -1
  236. package/dist/esm/focus-indicator/index.js +1 -1
  237. package/dist/esm/icon/index.js +1 -1
  238. package/dist/esm/icon-button/index.js +1 -1
  239. package/dist/esm/index.js +1 -1
  240. package/dist/esm/inline-message/index.js +1 -1
  241. package/dist/esm/keyboard-shortcut/index.js +1 -1
  242. package/dist/esm/label/index.js +1 -1
  243. package/dist/esm/label-value/index.js +1 -1
  244. package/dist/esm/linear-progress/index.js +1 -1
  245. package/dist/esm/list/index.js +1 -1
  246. package/dist/esm/list/list/index.js +1 -1
  247. package/dist/esm/list/list-item/index.js +1 -1
  248. package/dist/esm/list-dropdown/index.js +1 -1
  249. package/dist/esm/menu/index.js +1 -1
  250. package/dist/esm/open-icon/index.js +1 -1
  251. package/dist/esm/overlay/index.js +1 -1
  252. package/dist/esm/page-state/index.js +1 -1
  253. package/dist/esm/paginator/index.js +1 -1
  254. package/dist/esm/popover/index.js +1 -1
  255. package/dist/esm/profile-card/index.js +1 -1
  256. package/dist/esm/quantity-field/index.js +1 -1
  257. package/dist/esm/radio/index.js +1 -1
  258. package/dist/esm/radio/radio/index.js +1 -1
  259. package/dist/esm/radio/radio-group/index.js +1 -1
  260. package/dist/esm/scaffold/index.js +1 -1
  261. package/dist/esm/select/core/index.js +1 -1
  262. package/dist/esm/select/index.js +1 -1
  263. package/dist/esm/select/option/index.js +1 -1
  264. package/dist/esm/select/option-group/index.js +1 -1
  265. package/dist/esm/select/select/index.js +1 -1
  266. package/dist/esm/select/select-dropdown/index.js +1 -1
  267. package/dist/esm/skeleton/index.js +1 -1
  268. package/dist/esm/slider/index.js +1 -1
  269. package/dist/esm/split-button/index.js +1 -1
  270. package/dist/esm/split-view/index.js +1 -1
  271. package/dist/esm/split-view/split-view/index.js +1 -1
  272. package/dist/esm/split-view/split-view-panel/index.js +1 -1
  273. package/dist/esm/stack/index.js +1 -1
  274. package/dist/esm/state-layer/index.js +1 -1
  275. package/dist/esm/stepper/index.js +1 -1
  276. package/dist/esm/stepper/step/index.js +1 -1
  277. package/dist/esm/stepper/stepper/index.js +1 -1
  278. package/dist/esm/switch/index.js +1 -1
  279. package/dist/esm/table/index.js +1 -1
  280. package/dist/esm/tabs/index.js +1 -1
  281. package/dist/esm/tabs/tab/index.js +1 -1
  282. package/dist/esm/tabs/tab-bar/index.js +1 -1
  283. package/dist/esm/text-field/index.js +1 -1
  284. package/dist/esm/time-picker/index.js +1 -1
  285. package/dist/esm/toast/index.js +1 -1
  286. package/dist/esm/toolbar/index.js +1 -1
  287. package/dist/esm/tooltip/index.js +1 -1
  288. package/dist/esm/view-switcher/index.js +1 -1
  289. package/dist/esm/view-switcher/view/index.js +1 -1
  290. package/dist/forge-core.css +1 -1
  291. package/dist/forge-dark.css +1 -1
  292. package/dist/forge.css +1 -1
  293. package/esm/app-bar/profile-button/app-bar-profile-button-adapter.d.ts +6 -6
  294. package/esm/app-bar/profile-button/app-bar-profile-button-adapter.js +18 -10
  295. package/esm/app-bar/profile-button/app-bar-profile-button-foundation.d.ts +3 -3
  296. package/esm/app-bar/profile-button/app-bar-profile-button-foundation.js +13 -17
  297. package/esm/app-bar/profile-button/app-bar-profile-button.d.ts +4 -4
  298. package/esm/app-bar/profile-button/app-bar-profile-button.js +3 -3
  299. package/esm/autocomplete/autocomplete-adapter.d.ts +6 -2
  300. package/esm/autocomplete/autocomplete-adapter.js +27 -23
  301. package/esm/autocomplete/autocomplete-constants.d.ts +2 -2
  302. package/esm/autocomplete/autocomplete-constants.js +1 -2
  303. package/esm/autocomplete/autocomplete-foundation.js +3 -5
  304. package/esm/autocomplete/autocomplete.js +2 -2
  305. package/esm/backdrop/backdrop-constants.d.ts +10 -13
  306. package/esm/backdrop/backdrop-constants.js +12 -17
  307. package/esm/backdrop/backdrop.d.ts +17 -29
  308. package/esm/backdrop/backdrop.js +79 -50
  309. package/esm/backdrop/index.d.ts +0 -2
  310. package/esm/backdrop/index.js +0 -2
  311. package/esm/bottom-sheet/bottom-sheet-adapter.d.ts +2 -2
  312. package/esm/bottom-sheet/bottom-sheet-adapter.js +12 -5
  313. package/esm/bottom-sheet/bottom-sheet-foundation.js +1 -1
  314. package/esm/bottom-sheet/bottom-sheet.js +2 -2
  315. package/esm/busy-indicator/busy-indicator-adapter.d.ts +2 -6
  316. package/esm/busy-indicator/busy-indicator-adapter.js +8 -6
  317. package/esm/busy-indicator/busy-indicator-foundation.js +1 -1
  318. package/esm/button/base/base-button-foundation.js +2 -1
  319. package/esm/calendar/calendar-constants.d.ts +1 -1
  320. package/esm/calendar/calendar-constants.js +1 -1
  321. package/esm/calendar/calendar-dropdown/calendar-dropdown.d.ts +6 -4
  322. package/esm/calendar/calendar-dropdown/calendar-dropdown.js +21 -25
  323. package/esm/calendar/calendar-menu/calendar-menu-constants.d.ts +1 -1
  324. package/esm/calendar/calendar-menu/calendar-menu-constants.js +1 -1
  325. package/esm/calendar/calendar-menu/calendar-menu.js +3 -3
  326. package/esm/calendar/calendar.js +3 -3
  327. package/esm/card/card-constants.d.ts +2 -5
  328. package/esm/card/card-constants.js +4 -10
  329. package/esm/card/card.d.ts +10 -5
  330. package/esm/card/card.js +14 -16
  331. package/esm/checkbox/checkbox-adapter.d.ts +0 -34
  332. package/esm/checkbox/checkbox-adapter.js +10 -105
  333. package/esm/checkbox/checkbox-constants.d.ts +13 -4
  334. package/esm/checkbox/checkbox-constants.js +8 -11
  335. package/esm/checkbox/checkbox-foundation.d.ts +5 -11
  336. package/esm/checkbox/checkbox-foundation.js +24 -35
  337. package/esm/checkbox/checkbox.d.ts +24 -24
  338. package/esm/checkbox/checkbox.js +65 -83
  339. package/esm/chip-field/chip-field-adapter.d.ts +48 -22
  340. package/esm/chip-field/chip-field-adapter.js +130 -30
  341. package/esm/chip-field/chip-field-component-delegate.js +1 -1
  342. package/esm/chip-field/chip-field-constants.d.ts +18 -16
  343. package/esm/chip-field/chip-field-constants.js +19 -20
  344. package/esm/chip-field/chip-field-foundation.d.ts +26 -16
  345. package/esm/chip-field/chip-field-foundation.js +128 -74
  346. package/esm/chip-field/chip-field.d.ts +9 -6
  347. package/esm/chip-field/chip-field.js +24 -11
  348. package/esm/chips/chip/chip.js +1 -1
  349. package/esm/constants.d.ts +2 -0
  350. package/esm/constants.js +2 -0
  351. package/esm/core/base/base-adapter.d.ts +1 -0
  352. package/esm/core/controllers/move-controller.d.ts +32 -0
  353. package/esm/core/controllers/move-controller.js +40 -0
  354. package/esm/core/mixins/interactions/moveable/with-moveable.d.ts +30 -0
  355. package/esm/core/mixins/interactions/moveable/with-moveable.js +131 -0
  356. package/esm/core/utils/dismissible-stack.d.ts +6 -0
  357. package/esm/core/utils/dismissible-stack.js +9 -0
  358. package/esm/core/utils/feature-detection.d.ts +5 -0
  359. package/esm/core/utils/feature-detection.js +7 -0
  360. package/esm/core/utils/index.d.ts +2 -0
  361. package/esm/core/utils/index.js +2 -0
  362. package/esm/core/utils/svg-utils.d.ts +1 -1
  363. package/esm/core/utils/svg-utils.js +2 -2
  364. package/esm/date-picker/date-picker.d.ts +0 -2
  365. package/esm/date-picker/date-picker.js +2 -4
  366. package/esm/date-range-picker/date-range-picker-adapter.js +1 -1
  367. package/esm/date-range-picker/date-range-picker-component-delegate.d.ts +1 -1
  368. package/esm/date-range-picker/date-range-picker.js +2 -2
  369. package/esm/dialog/dialog-adapter.d.ts +44 -62
  370. package/esm/dialog/dialog-adapter.js +107 -135
  371. package/esm/dialog/dialog-constants.d.ts +51 -28
  372. package/esm/dialog/dialog-constants.js +36 -33
  373. package/esm/dialog/dialog-foundation.d.ts +59 -75
  374. package/esm/dialog/dialog-foundation.js +218 -360
  375. package/esm/dialog/dialog.d.ts +127 -46
  376. package/esm/dialog/dialog.js +161 -60
  377. package/esm/drawer/modal-drawer/modal-drawer-adapter.js +1 -1
  378. package/esm/drawer/modal-drawer/modal-drawer-foundation.js +5 -6
  379. package/esm/{field-next → field}/base/base-field-foundation.js +14 -0
  380. package/esm/{field-next/field-foundation.d.ts → field/base/with-base-field.d.ts} +24 -39
  381. package/esm/field/base/with-base-field.js +210 -0
  382. package/esm/field/field-adapter.d.ts +49 -92
  383. package/esm/field/field-adapter.js +114 -154
  384. package/esm/field/field-constants.d.ts +82 -30
  385. package/esm/field/field-constants.js +51 -29
  386. package/esm/field/field-foundation.d.ts +78 -48
  387. package/esm/field/field-foundation.js +171 -273
  388. package/esm/field/field.d.ts +202 -24
  389. package/esm/field/field.js +267 -37
  390. package/esm/focus-indicator/focus-indicator-constants.d.ts +5 -0
  391. package/esm/focus-indicator/focus-indicator-constants.js +7 -2
  392. package/esm/focus-indicator/focus-indicator-foundation.d.ts +5 -0
  393. package/esm/focus-indicator/focus-indicator-foundation.js +21 -3
  394. package/esm/focus-indicator/focus-indicator.d.ts +5 -0
  395. package/esm/focus-indicator/focus-indicator.js +9 -7
  396. package/esm/icon/icon-adapter.d.ts +4 -2
  397. package/esm/icon/icon-adapter.js +13 -9
  398. package/esm/icon/icon-constants.d.ts +14 -2
  399. package/esm/icon/icon-constants.js +3 -1
  400. package/esm/icon/icon-foundation.d.ts +6 -2
  401. package/esm/icon/icon-foundation.js +50 -18
  402. package/esm/icon/icon-registry.d.ts +8 -2
  403. package/esm/icon/icon-registry.js +15 -2
  404. package/esm/icon/icon-utils.d.ts +6 -3
  405. package/esm/icon/icon-utils.js +6 -7
  406. package/esm/icon/icon.d.ts +35 -4
  407. package/esm/icon/icon.js +44 -18
  408. package/esm/icon/index.js +0 -6
  409. package/esm/icon-button/icon-button-component-delegate.d.ts +2 -2
  410. package/esm/index.d.ts +1 -4
  411. package/esm/index.js +2 -9
  412. package/esm/label-value/index.d.ts +0 -2
  413. package/esm/label-value/index.js +0 -2
  414. package/esm/label-value/label-value-constants.d.ts +7 -12
  415. package/esm/label-value/label-value-constants.js +7 -17
  416. package/esm/label-value/label-value.d.ts +44 -16
  417. package/esm/label-value/label-value.js +78 -36
  418. package/esm/list/list/list.d.ts +2 -3
  419. package/esm/list/list/list.js +4 -5
  420. package/esm/list/list-item/list-item.d.ts +1 -0
  421. package/esm/list/list-item/list-item.js +2 -1
  422. package/esm/list-dropdown/list-dropdown-adapter.d.ts +3 -1
  423. package/esm/list-dropdown/list-dropdown-adapter.js +24 -9
  424. package/esm/list-dropdown/list-dropdown-constants.d.ts +6 -5
  425. package/esm/list-dropdown/list-dropdown-foundation.d.ts +2 -2
  426. package/esm/list-dropdown/list-dropdown-foundation.js +3 -5
  427. package/esm/list-dropdown/list-dropdown-utils.d.ts +3 -3
  428. package/esm/list-dropdown/list-dropdown-utils.js +11 -19
  429. package/esm/list-dropdown/list-dropdown.d.ts +2 -2
  430. package/esm/list-dropdown/list-dropdown.js +1 -1
  431. package/esm/menu/menu-adapter.d.ts +4 -2
  432. package/esm/menu/menu-adapter.js +8 -2
  433. package/esm/menu/menu-foundation.d.ts +11 -10
  434. package/esm/menu/menu-foundation.js +9 -6
  435. package/esm/menu/menu.d.ts +8 -7
  436. package/esm/menu/menu.js +2 -2
  437. package/esm/overlay/overlay-adapter.d.ts +0 -1
  438. package/esm/overlay/overlay-adapter.js +1 -2
  439. package/esm/paginator/paginator.js +1 -1
  440. package/esm/popover/popover-adapter.d.ts +9 -0
  441. package/esm/popover/popover-adapter.js +41 -3
  442. package/esm/popover/popover-constants.d.ts +17 -0
  443. package/esm/popover/popover-constants.js +11 -6
  444. package/esm/popover/popover-foundation.d.ts +7 -1
  445. package/esm/popover/popover-foundation.js +35 -7
  446. package/esm/popover/popover.d.ts +15 -1
  447. package/esm/popover/popover.js +28 -15
  448. package/esm/radio/core/radio-group-manager.d.ts +18 -1
  449. package/esm/radio/core/radio-group-manager.js +27 -6
  450. package/esm/radio/radio/radio-adapter.js +4 -2
  451. package/esm/radio/radio/radio-component-delegate.d.ts +38 -0
  452. package/esm/radio/radio/radio-component-delegate.js +88 -1
  453. package/esm/radio/radio/radio-constants.d.ts +11 -0
  454. package/esm/radio/radio/radio-constants.js +3 -1
  455. package/esm/radio/radio/radio-foundation.js +3 -2
  456. package/esm/radio/radio/radio.d.ts +8 -3
  457. package/esm/radio/radio/radio.js +17 -18
  458. package/esm/radio/radio-group/radio-group-constants.d.ts +3 -0
  459. package/esm/radio/radio-group/radio-group-constants.js +3 -1
  460. package/esm/radio/radio-group/radio-group.js +5 -5
  461. package/esm/scaffold/scaffold-constants.d.ts +6 -0
  462. package/esm/scaffold/scaffold-constants.js +7 -1
  463. package/esm/scaffold/scaffold.d.ts +30 -2
  464. package/esm/scaffold/scaffold.js +43 -4
  465. package/esm/select/core/base-select-adapter.d.ts +5 -3
  466. package/esm/select/core/base-select-adapter.js +10 -9
  467. package/esm/select/core/base-select-constants.d.ts +11 -0
  468. package/esm/select/core/base-select-constants.js +1 -0
  469. package/esm/select/core/base-select-foundation.js +3 -3
  470. package/esm/select/core/base-select.d.ts +3 -3
  471. package/esm/select/select/select-adapter.d.ts +14 -60
  472. package/esm/select/select/select-adapter.js +52 -111
  473. package/esm/select/select/select-constants.d.ts +16 -14
  474. package/esm/select/select/select-constants.js +8 -16
  475. package/esm/select/select/select-foundation.d.ts +12 -58
  476. package/esm/select/select/select-foundation.js +45 -240
  477. package/esm/select/select/select.d.ts +17 -27
  478. package/esm/select/select/select.js +54 -62
  479. package/esm/select/select-dropdown/select-dropdown-adapter.d.ts +2 -2
  480. package/esm/select/select-dropdown/select-dropdown-adapter.js +1 -1
  481. package/esm/select/select-dropdown/select-dropdown.d.ts +0 -2
  482. package/esm/select/select-dropdown/select-dropdown.js +2 -4
  483. package/esm/slider/slider.d.ts +2 -2
  484. package/esm/slider/slider.js +2 -2
  485. package/esm/split-view/split-view/split-view.js +1 -1
  486. package/esm/split-view/split-view-panel/split-view-panel-adapter.d.ts +5 -10
  487. package/esm/split-view/split-view-panel/split-view-panel-adapter.js +7 -15
  488. package/esm/split-view/split-view-panel/split-view-panel-constants.d.ts +3 -3
  489. package/esm/split-view/split-view-panel/split-view-panel-constants.js +3 -3
  490. package/esm/split-view/split-view-panel/split-view-panel-foundation.js +0 -1
  491. package/esm/split-view/split-view-panel/split-view-panel-utils.js +2 -2
  492. package/esm/split-view/split-view-panel/split-view-panel.d.ts +0 -2
  493. package/esm/split-view/split-view-panel/split-view-panel.js +6 -6
  494. package/esm/stepper/step/step-adapter.d.ts +2 -9
  495. package/esm/stepper/step/step-adapter.js +3 -18
  496. package/esm/stepper/step/step-constants.js +21 -21
  497. package/esm/stepper/step/step-foundation.js +0 -2
  498. package/esm/stepper/step/step.d.ts +53 -0
  499. package/esm/stepper/step/step.js +60 -3
  500. package/esm/stepper/stepper/stepper-constants.js +9 -9
  501. package/esm/stepper/stepper/stepper.js +1 -1
  502. package/esm/switch/switch-adapter.d.ts +0 -32
  503. package/esm/switch/switch-adapter.js +15 -107
  504. package/esm/switch/switch-component-delegate.js +1 -1
  505. package/esm/switch/switch-constants.d.ts +24 -14
  506. package/esm/switch/switch-constants.js +11 -14
  507. package/esm/switch/switch-foundation.d.ts +5 -11
  508. package/esm/switch/switch-foundation.js +25 -31
  509. package/esm/switch/switch.d.ts +19 -19
  510. package/esm/switch/switch.js +59 -81
  511. package/esm/text-field/text-field-adapter.d.ts +2 -2
  512. package/esm/text-field/text-field-adapter.js +5 -2
  513. package/esm/text-field/text-field-foundation.d.ts +2 -2
  514. package/esm/text-field/text-field-foundation.js +2 -2
  515. package/esm/text-field/text-field.d.ts +1 -1
  516. package/esm/text-field/text-field.js +2 -2
  517. package/esm/time-picker/time-picker-adapter.d.ts +6 -2
  518. package/esm/time-picker/time-picker-adapter.js +7 -3
  519. package/esm/time-picker/time-picker-foundation.js +10 -10
  520. package/esm/time-picker/time-picker.js +2 -2
  521. package/esm/toast/toast-adapter.d.ts +18 -69
  522. package/esm/toast/toast-adapter.js +24 -121
  523. package/esm/toast/toast-constants.d.ts +25 -36
  524. package/esm/toast/toast-constants.js +20 -40
  525. package/esm/toast/toast-foundation.d.ts +22 -37
  526. package/esm/toast/toast-foundation.js +92 -92
  527. package/esm/toast/toast.d.ts +83 -24
  528. package/esm/toast/toast.js +126 -29
  529. package/esm/tooltip/tooltip-adapter.d.ts +1 -0
  530. package/esm/tooltip/tooltip-foundation.js +3 -0
  531. package/esm/tooltip/tooltip.d.ts +3 -1
  532. package/esm/tooltip/tooltip.js +4 -0
  533. package/package.json +1 -6
  534. package/styles/backdrop/_animations.scss +24 -0
  535. package/styles/backdrop/_core.scss +41 -0
  536. package/styles/backdrop/_token-utils.scss +30 -0
  537. package/styles/backdrop/backdrop.scss +38 -11
  538. package/{esm/radio/radio-group/radio-group-component-delegate.js → styles/backdrop/index.scss} +1 -0
  539. package/styles/bottom-sheet/_mixins.scss +3 -8
  540. package/styles/bottom-sheet/bottom-sheet.scss +0 -4
  541. package/styles/calendar/calendar-menu/calendar-menu.scss +1 -1
  542. package/styles/calendar/calendar.scss +1 -1
  543. package/styles/card/_core.scss +35 -0
  544. package/styles/card/_token-utils.scss +30 -0
  545. package/styles/card/card.scss +37 -3
  546. package/{esm/radio/radio-group/radio-group-component-delegate.d.ts → styles/card/index.scss} +1 -0
  547. package/styles/checkbox/_core.scss +9 -20
  548. package/styles/checkbox/checkbox.scss +2 -8
  549. package/styles/chip-field/_core.scss +21 -17
  550. package/styles/chip-field/_token-utils.scss +30 -0
  551. package/styles/chip-field/chip-field.scss +68 -3
  552. package/{dist/popup/forge-popup.css → styles/chip-field/index.scss} +1 -1
  553. package/styles/chips/chip/_core.scss +1 -1
  554. package/styles/core/styles/tokens/backdrop/_tokens.scss +29 -0
  555. package/styles/core/styles/tokens/card/_tokens.scss +33 -0
  556. package/styles/core/styles/tokens/checkbox/_tokens.scss +4 -3
  557. package/styles/core/styles/tokens/chip-field/_tokens.scss +16 -0
  558. package/styles/core/styles/tokens/dialog/_tokens.scss +82 -0
  559. package/styles/core/styles/tokens/field/_tokens.scss +3 -1
  560. package/styles/core/styles/tokens/icon/_tokens.scss +20 -0
  561. package/styles/core/styles/tokens/label-value/_tokens.scss +34 -0
  562. package/styles/core/styles/tokens/list/list/_tokens.scss +2 -3
  563. package/styles/core/styles/tokens/list/list-item/_tokens.scss +7 -4
  564. package/styles/core/styles/tokens/popover/_tokens.scss +29 -7
  565. package/styles/core/styles/tokens/scaffold/_tokens.scss +18 -0
  566. package/styles/core/styles/tokens/select/_tokens.scss +18 -0
  567. package/styles/core/styles/tokens/stepper/step/_tokens.scss +62 -0
  568. package/styles/core/styles/tokens/toast/_tokens.scss +39 -0
  569. package/styles/dialog/_animations.scss +82 -0
  570. package/styles/dialog/_core.scss +310 -0
  571. package/styles/dialog/_token-utils.scss +30 -0
  572. package/styles/dialog/dialog.scss +356 -6
  573. package/styles/dialog/forge-dialog-utils.scss +23 -6
  574. package/styles/dialog/index.scss +7 -0
  575. package/styles/{field-next → field}/_core.layout.scss +6 -4
  576. package/styles/field/_core.scss +200 -50
  577. package/styles/{field-next → field}/_core.shape.scss +5 -0
  578. package/styles/{field-next → field}/_core.variant.scss +1 -0
  579. package/styles/{field-next → field}/field.scss +39 -12
  580. package/styles/forge-core.scss +2 -6
  581. package/styles/forge.scss +0 -4
  582. package/styles/icon/_core.scss +27 -0
  583. package/styles/icon/_token-utils.scss +30 -0
  584. package/styles/icon/icon.scss +27 -12
  585. package/styles/icon/index.scss +6 -0
  586. package/styles/label-value/_core.scss +85 -0
  587. package/styles/label-value/_token-utils.scss +30 -0
  588. package/styles/label-value/index.scss +6 -0
  589. package/styles/label-value/label-value.scss +71 -3
  590. package/styles/list/list/_core.scss +6 -2
  591. package/styles/list/list/list.scss +4 -0
  592. package/styles/list/list-item/_core.scss +3 -0
  593. package/styles/popover/_animations.scss +30 -0
  594. package/styles/popover/_core.scss +43 -6
  595. package/styles/popover/popover.scss +227 -170
  596. package/styles/scaffold/_core.scss +98 -0
  597. package/styles/scaffold/_token-utils.scss +30 -0
  598. package/styles/scaffold/index.scss +6 -0
  599. package/styles/scaffold/scaffold.scss +85 -5
  600. package/{dist/esm/chunks/chunk.WF2MFLG4.js → styles/select/index.scss} +1 -1
  601. package/styles/select/select/_core.scss +31 -15
  602. package/styles/select/select/_token-utils.scss +31 -0
  603. package/styles/select/select/select.scss +50 -8
  604. package/styles/split-view/split-view/split-view.scss +0 -1
  605. package/styles/split-view/split-view-panel/_mixins.scss +1 -0
  606. package/styles/split-view/split-view-panel/split-view-panel.scss +7 -1
  607. package/styles/stepper/step/_core.scss +391 -0
  608. package/styles/stepper/step/_token-utils.scss +31 -0
  609. package/styles/stepper/step/step.scss +261 -81
  610. package/styles/stepper/stepper/_core.scss +49 -0
  611. package/styles/stepper/stepper/stepper.scss +38 -4
  612. package/styles/switch/_core.scss +3 -2
  613. package/styles/theme/_theme-dark.scss +8 -8
  614. package/styles/toast/_animations.scss +42 -0
  615. package/styles/toast/_core.scss +73 -0
  616. package/styles/toast/_token-utils.scss +30 -0
  617. package/styles/toast/index.scss +6 -0
  618. package/styles/toast/toast.scss +173 -6
  619. package/styles/utils/_mixins-core.scss +5 -9
  620. package/dist/dialog/forge-dialog.css +0 -6
  621. package/dist/esm/chunks/chunk.24MZM3AY.js +0 -7
  622. package/dist/esm/chunks/chunk.24MZM3AY.js.map +0 -7
  623. package/dist/esm/chunks/chunk.3L77JY5H.js +0 -7
  624. package/dist/esm/chunks/chunk.3TIBP6QT.js +0 -7
  625. package/dist/esm/chunks/chunk.3U222LE4.js +0 -7
  626. package/dist/esm/chunks/chunk.45PPQY45.js +0 -177
  627. package/dist/esm/chunks/chunk.45PPQY45.js.map +0 -7
  628. package/dist/esm/chunks/chunk.4UU6PWR2.js +0 -7
  629. package/dist/esm/chunks/chunk.4UU6PWR2.js.map +0 -7
  630. package/dist/esm/chunks/chunk.5A34DJLZ.js +0 -7
  631. package/dist/esm/chunks/chunk.5A34DJLZ.js.map +0 -7
  632. package/dist/esm/chunks/chunk.5UGN5FYV.js +0 -7
  633. package/dist/esm/chunks/chunk.5UZ2DEW3.js +0 -7
  634. package/dist/esm/chunks/chunk.5UZ2DEW3.js.map +0 -7
  635. package/dist/esm/chunks/chunk.656X22EF.js +0 -7
  636. package/dist/esm/chunks/chunk.656X22EF.js.map +0 -7
  637. package/dist/esm/chunks/chunk.66YURKP2.js +0 -7
  638. package/dist/esm/chunks/chunk.66YURKP2.js.map +0 -7
  639. package/dist/esm/chunks/chunk.6GSVB5NB.js.map +0 -7
  640. package/dist/esm/chunks/chunk.AFJ7QEVI.js +0 -7
  641. package/dist/esm/chunks/chunk.AFJ7QEVI.js.map +0 -7
  642. package/dist/esm/chunks/chunk.BETICEYY.js +0 -7
  643. package/dist/esm/chunks/chunk.BEUQVZKZ.js +0 -7
  644. package/dist/esm/chunks/chunk.BMQAVBWZ.js +0 -7
  645. package/dist/esm/chunks/chunk.BMQAVBWZ.js.map +0 -7
  646. package/dist/esm/chunks/chunk.CIUPY66Y.js +0 -7
  647. package/dist/esm/chunks/chunk.CIUPY66Y.js.map +0 -7
  648. package/dist/esm/chunks/chunk.CSCZRSDT.js +0 -7
  649. package/dist/esm/chunks/chunk.CSCZRSDT.js.map +0 -7
  650. package/dist/esm/chunks/chunk.CWBDPBYO.js +0 -7
  651. package/dist/esm/chunks/chunk.CWBDPBYO.js.map +0 -7
  652. package/dist/esm/chunks/chunk.D7RH43XD.js +0 -7
  653. package/dist/esm/chunks/chunk.D7RH43XD.js.map +0 -7
  654. package/dist/esm/chunks/chunk.DCCFF327.js +0 -7
  655. package/dist/esm/chunks/chunk.EO3HELQ2.js +0 -15
  656. package/dist/esm/chunks/chunk.FB4MXEIW.js +0 -7
  657. package/dist/esm/chunks/chunk.FB4MXEIW.js.map +0 -7
  658. package/dist/esm/chunks/chunk.G2HRYIIZ.js +0 -7
  659. package/dist/esm/chunks/chunk.G2HRYIIZ.js.map +0 -7
  660. package/dist/esm/chunks/chunk.G3GTO5ZC.js +0 -7
  661. package/dist/esm/chunks/chunk.G3GTO5ZC.js.map +0 -7
  662. package/dist/esm/chunks/chunk.GL2H6QOP.js +0 -7
  663. package/dist/esm/chunks/chunk.GL2H6QOP.js.map +0 -7
  664. package/dist/esm/chunks/chunk.HBAC6E7O.js +0 -7
  665. package/dist/esm/chunks/chunk.HYTFCFP6.js +0 -7
  666. package/dist/esm/chunks/chunk.HYTFCFP6.js.map +0 -7
  667. package/dist/esm/chunks/chunk.IM36A2ZI.js +0 -7
  668. package/dist/esm/chunks/chunk.IM36A2ZI.js.map +0 -7
  669. package/dist/esm/chunks/chunk.IWVAI6XM.js.map +0 -7
  670. package/dist/esm/chunks/chunk.JCEKCW4B.js +0 -7
  671. package/dist/esm/chunks/chunk.JCEKCW4B.js.map +0 -7
  672. package/dist/esm/chunks/chunk.JVWJHSPM.js +0 -7
  673. package/dist/esm/chunks/chunk.KDUH2DUE.js +0 -7
  674. package/dist/esm/chunks/chunk.KRKKMTXR.js +0 -7
  675. package/dist/esm/chunks/chunk.KRKKMTXR.js.map +0 -7
  676. package/dist/esm/chunks/chunk.LKA5HQQY.js +0 -7
  677. package/dist/esm/chunks/chunk.LKA5HQQY.js.map +0 -7
  678. package/dist/esm/chunks/chunk.MC3UAHWS.js +0 -7
  679. package/dist/esm/chunks/chunk.MC3UAHWS.js.map +0 -7
  680. package/dist/esm/chunks/chunk.MCR34SZQ.js +0 -7
  681. package/dist/esm/chunks/chunk.MGLWXAZO.js +0 -18
  682. package/dist/esm/chunks/chunk.MPUP6QAP.js +0 -7
  683. package/dist/esm/chunks/chunk.MZRAL4MY.js +0 -7
  684. package/dist/esm/chunks/chunk.MZRAL4MY.js.map +0 -7
  685. package/dist/esm/chunks/chunk.N632SJ7X.js +0 -7
  686. package/dist/esm/chunks/chunk.N632SJ7X.js.map +0 -7
  687. package/dist/esm/chunks/chunk.NHOGZDLN.js +0 -7
  688. package/dist/esm/chunks/chunk.NHOGZDLN.js.map +0 -7
  689. package/dist/esm/chunks/chunk.NIUX6DVF.js +0 -12
  690. package/dist/esm/chunks/chunk.NIUX6DVF.js.map +0 -7
  691. package/dist/esm/chunks/chunk.OSBNFFCI.js.map +0 -7
  692. package/dist/esm/chunks/chunk.OY3TG55O.js +0 -7
  693. package/dist/esm/chunks/chunk.OY3TG55O.js.map +0 -7
  694. package/dist/esm/chunks/chunk.QCRO5NSG.js +0 -7
  695. package/dist/esm/chunks/chunk.QCRO5NSG.js.map +0 -7
  696. package/dist/esm/chunks/chunk.QKYCMDLB.js +0 -7
  697. package/dist/esm/chunks/chunk.R6VPRRTT.js +0 -7
  698. package/dist/esm/chunks/chunk.RFCIELJM.js +0 -7
  699. package/dist/esm/chunks/chunk.RFCIELJM.js.map +0 -7
  700. package/dist/esm/chunks/chunk.RJC42RNR.js +0 -7
  701. package/dist/esm/chunks/chunk.RJC42RNR.js.map +0 -7
  702. package/dist/esm/chunks/chunk.SKBOB2BD.js +0 -7
  703. package/dist/esm/chunks/chunk.SKBOB2BD.js.map +0 -7
  704. package/dist/esm/chunks/chunk.SOKORSUV.js +0 -7
  705. package/dist/esm/chunks/chunk.STSAE2XP.js +0 -7
  706. package/dist/esm/chunks/chunk.SWKKDBO6.js +0 -7
  707. package/dist/esm/chunks/chunk.SWKKDBO6.js.map +0 -7
  708. package/dist/esm/chunks/chunk.SYKZ74SL.js +0 -7
  709. package/dist/esm/chunks/chunk.SYKZ74SL.js.map +0 -7
  710. package/dist/esm/chunks/chunk.UKVC23E5.js +0 -7
  711. package/dist/esm/chunks/chunk.UKVC23E5.js.map +0 -7
  712. package/dist/esm/chunks/chunk.UOD3A7M4.js +0 -7
  713. package/dist/esm/chunks/chunk.UQQQSJVM.js +0 -7
  714. package/dist/esm/chunks/chunk.V3X77TCO.js +0 -7
  715. package/dist/esm/chunks/chunk.V3X77TCO.js.map +0 -7
  716. package/dist/esm/chunks/chunk.V7ILFIOR.js +0 -7
  717. package/dist/esm/chunks/chunk.VBJ4WUVH.js +0 -7
  718. package/dist/esm/chunks/chunk.VBJ4WUVH.js.map +0 -7
  719. package/dist/esm/chunks/chunk.VZ2XONDI.js +0 -7
  720. package/dist/esm/chunks/chunk.VZ2XONDI.js.map +0 -7
  721. package/dist/esm/chunks/chunk.WAMFFIMP.js +0 -7
  722. package/dist/esm/chunks/chunk.WAMFFIMP.js.map +0 -7
  723. package/dist/esm/chunks/chunk.WBCQTZPS.js +0 -7
  724. package/dist/esm/chunks/chunk.WBCQTZPS.js.map +0 -7
  725. package/dist/esm/chunks/chunk.WBI34ZVP.js +0 -7
  726. package/dist/esm/chunks/chunk.WF2MFLG4.js.map +0 -7
  727. package/dist/esm/chunks/chunk.WPVGFQNY.js +0 -7
  728. package/dist/esm/chunks/chunk.WPVGFQNY.js.map +0 -7
  729. package/dist/esm/chunks/chunk.XAZ6EDIZ.js +0 -7
  730. package/dist/esm/chunks/chunk.XCI7O2KJ.js +0 -7
  731. package/dist/esm/chunks/chunk.XCI7O2KJ.js.map +0 -7
  732. package/dist/esm/chunks/chunk.XNJROSDZ.js +0 -7
  733. package/dist/esm/chunks/chunk.XNJROSDZ.js.map +0 -7
  734. package/dist/esm/chunks/chunk.Z6GRWPPN.js +0 -7
  735. package/dist/esm/chunks/chunk.Z6GRWPPN.js.map +0 -7
  736. package/dist/esm/chunks/chunk.ZLNI2M3F.js +0 -7
  737. package/dist/esm/chunks/chunk.ZLNI2M3F.js.map +0 -7
  738. package/dist/esm/chunks/chunk.ZSZFWZAI.js +0 -7
  739. package/dist/esm/chunks/chunk.ZSZFWZAI.js.map +0 -7
  740. package/dist/esm/chunks/chunk.ZYKP23JP.js +0 -7
  741. package/dist/esm/field-next/index.js +0 -7
  742. package/dist/esm/floating-label/index.js +0 -7
  743. package/dist/esm/floating-label/index.js.map +0 -7
  744. package/dist/esm/popup/index.js +0 -7
  745. package/dist/esm/popup/index.js.map +0 -7
  746. package/dist/esm/ripple/index.js +0 -7
  747. package/dist/esm/ripple/index.js.map +0 -7
  748. package/dist/floating-label/forge-floating-label.css +0 -6
  749. package/dist/form-field/forge-form-field.css +0 -6
  750. package/dist/ripple/forge-ripple.css +0 -6
  751. package/dist/scaffold/forge-scaffold.css +0 -6
  752. package/esm/backdrop/backdrop-adapter.d.ts +0 -36
  753. package/esm/backdrop/backdrop-adapter.js +0 -40
  754. package/esm/backdrop/backdrop-foundation.d.ts +0 -38
  755. package/esm/backdrop/backdrop-foundation.js +0 -82
  756. package/esm/field-next/field-adapter.d.ts +0 -56
  757. package/esm/field-next/field-adapter.js +0 -132
  758. package/esm/field-next/field-constants.d.ts +0 -95
  759. package/esm/field-next/field-constants.js +0 -64
  760. package/esm/field-next/field-foundation.js +0 -221
  761. package/esm/field-next/field.d.ts +0 -205
  762. package/esm/field-next/field.js +0 -287
  763. package/esm/floating-label/floating-label-adapter.d.ts +0 -23
  764. package/esm/floating-label/floating-label-adapter.js +0 -32
  765. package/esm/floating-label/floating-label-constants.d.ts +0 -13
  766. package/esm/floating-label/floating-label-constants.js +0 -14
  767. package/esm/floating-label/floating-label-foundation.d.ts +0 -20
  768. package/esm/floating-label/floating-label-foundation.js +0 -74
  769. package/esm/floating-label/floating-label.d.ts +0 -31
  770. package/esm/floating-label/floating-label.js +0 -34
  771. package/esm/floating-label/index.d.ts +0 -9
  772. package/esm/floating-label/index.js +0 -9
  773. package/esm/label-value/label-value-adapter.d.ts +0 -24
  774. package/esm/label-value/label-value-adapter.js +0 -47
  775. package/esm/label-value/label-value-foundation.d.ts +0 -33
  776. package/esm/label-value/label-value-foundation.js +0 -80
  777. package/esm/popup/index.d.ts +0 -10
  778. package/esm/popup/index.js +0 -14
  779. package/esm/popup/popup-adapter.d.ts +0 -45
  780. package/esm/popup/popup-adapter.js +0 -152
  781. package/esm/popup/popup-constants.d.ts +0 -55
  782. package/esm/popup/popup-constants.js +0 -53
  783. package/esm/popup/popup-foundation.d.ts +0 -72
  784. package/esm/popup/popup-foundation.js +0 -258
  785. package/esm/popup/popup.d.ts +0 -59
  786. package/esm/popup/popup.js +0 -102
  787. package/esm/ripple/forge-ripple.d.ts +0 -17
  788. package/esm/ripple/forge-ripple.js +0 -22
  789. package/esm/ripple/index.d.ts +0 -11
  790. package/esm/ripple/index.js +0 -15
  791. package/esm/ripple/ripple-adapter.d.ts +0 -23
  792. package/esm/ripple/ripple-adapter.js +0 -47
  793. package/esm/ripple/ripple-constants.d.ts +0 -15
  794. package/esm/ripple/ripple-constants.js +0 -19
  795. package/esm/ripple/ripple-foundation.d.ts +0 -30
  796. package/esm/ripple/ripple-foundation.js +0 -48
  797. package/esm/ripple/ripple.d.ts +0 -36
  798. package/esm/ripple/ripple.js +0 -65
  799. package/styles/backdrop/_mixins.scss +0 -31
  800. package/styles/backdrop/_variables.scss +0 -12
  801. package/styles/card/_mixins.scss +0 -47
  802. package/styles/card/_variables.scss +0 -9
  803. package/styles/chip-field/_base.scss +0 -299
  804. package/styles/chip-field/_mixins.scss +0 -26
  805. package/styles/chip-field/_selector.scss +0 -228
  806. package/styles/chip-field/_variables.scss +0 -76
  807. package/styles/dialog/_mixins.scss +0 -199
  808. package/styles/dialog/_variables.scss +0 -22
  809. package/styles/dialog/forge-dialog.scss +0 -8
  810. package/styles/field/_base.scss +0 -636
  811. package/styles/field/_selector.scss +0 -560
  812. package/styles/field/_utils.scss +0 -48
  813. package/styles/field/_variables.scss +0 -123
  814. package/styles/field-next/_core.scss +0 -213
  815. package/styles/floating-label/_mixins.scss +0 -291
  816. package/styles/floating-label/_variables.scss +0 -15
  817. package/styles/floating-label/forge-floating-label.scss +0 -8
  818. package/styles/form-field/_mixins.scss +0 -71
  819. package/styles/form-field/forge-form-field.scss +0 -8
  820. package/styles/icon/_mixins.scss +0 -37
  821. package/styles/icon/_variables.scss +0 -10
  822. package/styles/label-value/_mixins.scss +0 -205
  823. package/styles/label-value/_variables.scss +0 -12
  824. package/styles/popup/_mixins.scss +0 -86
  825. package/styles/popup/_variables.scss +0 -7
  826. package/styles/popup/forge-popup.scss +0 -8
  827. package/styles/popup/popup.scss +0 -20
  828. package/styles/ripple/forge-ripple.scss +0 -17
  829. package/styles/scaffold/_mixins.scss +0 -194
  830. package/styles/scaffold/forge-scaffold.scss +0 -43
  831. package/styles/select/select/_base.scss +0 -84
  832. package/styles/select/select/_mixins.scss +0 -25
  833. package/styles/select/select/_selector.scss +0 -90
  834. package/styles/select/select/_variables.scss +0 -16
  835. package/styles/stepper/step/_mixins.scss +0 -416
  836. package/styles/stepper/step/_variables.scss +0 -21
  837. package/styles/stepper/stepper/_mixins.scss +0 -113
  838. package/styles/toast/_mixins.scss +0 -242
  839. package/styles/toast/_variables.scss +0 -52
  840. /package/dist/esm/chunks/{chunk.YS5JZHJ6.js.map → chunk.24SQJBSQ.js.map} +0 -0
  841. /package/dist/esm/chunks/{chunk.IZRURH7C.js.map → chunk.3KAKJGUS.js.map} +0 -0
  842. /package/dist/esm/chunks/{chunk.KDUH2DUE.js.map → chunk.473WRJ5G.js.map} +0 -0
  843. /package/dist/esm/chunks/{chunk.USQEIRST.js.map → chunk.5MB6CTBA.js.map} +0 -0
  844. /package/dist/esm/chunks/{chunk.47U6GVGZ.js.map → chunk.5UOX22ML.js.map} +0 -0
  845. /package/dist/esm/chunks/{chunk.4NABD6XG.js.map → chunk.6VS3LYAF.js.map} +0 -0
  846. /package/dist/esm/chunks/{chunk.AOSBUJWW.js.map → chunk.A7BCLPP4.js.map} +0 -0
  847. /package/dist/esm/chunks/{chunk.7UBIT4NP.js.map → chunk.AG6IRMLZ.js.map} +0 -0
  848. /package/dist/esm/chunks/{chunk.A4UH52SA.js.map → chunk.AGLI4WR4.js.map} +0 -0
  849. /package/dist/esm/chunks/{chunk.WTUXAH7Z.js.map → chunk.AOVXNX7P.js.map} +0 -0
  850. /package/dist/esm/chunks/{chunk.AN2E2SSN.js.map → chunk.ASLHRT3N.js.map} +0 -0
  851. /package/dist/esm/chunks/{chunk.CBLUXYH2.js.map → chunk.BHE6Z5Y2.js.map} +0 -0
  852. /package/dist/esm/chunks/{chunk.2WRAXA3H.js.map → chunk.BQ52JYLA.js.map} +0 -0
  853. /package/dist/esm/chunks/{chunk.ROMRJIFR.js.map → chunk.CE35CVDV.js.map} +0 -0
  854. /package/dist/esm/chunks/{chunk.ZPXMKY72.js.map → chunk.CEGBMUSR.js.map} +0 -0
  855. /package/dist/esm/chunks/{chunk.GBGGUYTE.js.map → chunk.CFAI4K3E.js.map} +0 -0
  856. /package/dist/esm/chunks/{chunk.ZIGVO6FN.js.map → chunk.CGFSMACZ.js.map} +0 -0
  857. /package/dist/esm/chunks/{chunk.2537XOFQ.js.map → chunk.E2BE52ME.js.map} +0 -0
  858. /package/dist/esm/chunks/{chunk.UEYPCCFG.js.map → chunk.ENUKGA2U.js.map} +0 -0
  859. /package/dist/esm/chunks/{chunk.GA6AO6FJ.js.map → chunk.H5RW3A4M.js.map} +0 -0
  860. /package/dist/esm/chunks/{chunk.CSOKFDFQ.js.map → chunk.HSADKCGS.js.map} +0 -0
  861. /package/dist/esm/chunks/{chunk.WBI34ZVP.js.map → chunk.IEABOPNB.js.map} +0 -0
  862. /package/dist/esm/chunks/{chunk.22C7GQLX.js.map → chunk.IL4S57WO.js.map} +0 -0
  863. /package/dist/esm/chunks/{chunk.HMJODLAS.js.map → chunk.IQYOLMPG.js.map} +0 -0
  864. /package/dist/esm/chunks/{chunk.GTKYO6VB.js.map → chunk.JGURMVW7.js.map} +0 -0
  865. /package/dist/esm/chunks/{chunk.YXHMD73U.js.map → chunk.K6GJNDTY.js.map} +0 -0
  866. /package/dist/esm/chunks/{chunk.QUWEAFGI.js.map → chunk.KEOLH7G3.js.map} +0 -0
  867. /package/dist/esm/chunks/{chunk.BIQTNLIF.js.map → chunk.LNTTU2GL.js.map} +0 -0
  868. /package/dist/esm/chunks/{chunk.2AM2BKEO.js.map → chunk.MFQRXVKO.js.map} +0 -0
  869. /package/dist/esm/chunks/{chunk.JLSFTWPE.js.map → chunk.MTIPIEXA.js.map} +0 -0
  870. /package/dist/esm/chunks/{chunk.JSTCCUKZ.js.map → chunk.OEI35LFU.js.map} +0 -0
  871. /package/dist/esm/chunks/{chunk.QKYCMDLB.js.map → chunk.QCPV5DEG.js.map} +0 -0
  872. /package/dist/esm/chunks/{chunk.R3AWIPPK.js.map → chunk.QIZBZGYT.js.map} +0 -0
  873. /package/dist/esm/chunks/{chunk.2XPAYTK4.js.map → chunk.QKTK5XUE.js.map} +0 -0
  874. /package/dist/esm/chunks/{chunk.R66CYS27.js.map → chunk.QTY25OTN.js.map} +0 -0
  875. /package/dist/esm/chunks/{chunk.BSV27GU7.js.map → chunk.QVATEY5S.js.map} +0 -0
  876. /package/dist/esm/chunks/{chunk.SHBDQPPH.js.map → chunk.RONMNRSH.js.map} +0 -0
  877. /package/dist/esm/chunks/{chunk.FRTSXX33.js.map → chunk.RSYEG2RW.js.map} +0 -0
  878. /package/dist/esm/chunks/{chunk.A6BIUNPW.js.map → chunk.RXBLU4OJ.js.map} +0 -0
  879. /package/dist/esm/chunks/{chunk.FBDRM4YN.js.map → chunk.S7KEO2CH.js.map} +0 -0
  880. /package/dist/esm/chunks/{chunk.XU3YSZPA.js.map → chunk.SQ3AZAHF.js.map} +0 -0
  881. /package/dist/esm/chunks/{chunk.35MHQH7Z.js.map → chunk.SROEDYPL.js.map} +0 -0
  882. /package/dist/esm/chunks/{chunk.PXRGQHWR.js.map → chunk.TQWZDM6T.js.map} +0 -0
  883. /package/dist/esm/chunks/{chunk.6JVMCBCR.js.map → chunk.UKBE2FMZ.js.map} +0 -0
  884. /package/dist/esm/chunks/{chunk.3L77JY5H.js.map → chunk.W4HANHUO.js.map} +0 -0
  885. /package/dist/esm/chunks/{chunk.2W276VOR.js.map → chunk.WMJSYYXQ.js.map} +0 -0
  886. /package/dist/esm/chunks/{chunk.4AEQ7KVU.js.map → chunk.XTJGWT5F.js.map} +0 -0
  887. /package/dist/esm/chunks/{chunk.YNXWVL4B.js.map → chunk.YPNSK2CK.js.map} +0 -0
  888. /package/dist/esm/chunks/{chunk.MPUP6QAP.js.map → chunk.YWJVZVZX.js.map} +0 -0
  889. /package/dist/esm/chunks/{chunk.6XLTVIUD.js.map → chunk.ZA7JY3AY.js.map} +0 -0
  890. /package/dist/esm/{field-next → field}/base/index.js.map +0 -0
  891. /package/dist/esm/{field-next → field}/index.js.map +0 -0
  892. /package/esm/{field-next → field}/base/base-field-adapter.d.ts +0 -0
  893. /package/esm/{field-next → field}/base/base-field-adapter.js +0 -0
  894. /package/esm/{field-next → field}/base/base-field-constants.d.ts +0 -0
  895. /package/esm/{field-next → field}/base/base-field-constants.js +0 -0
  896. /package/esm/{field-next → field}/base/base-field-foundation.d.ts +0 -0
  897. /package/esm/{field-next → field}/base/base-field.d.ts +0 -0
  898. /package/esm/{field-next → field}/base/base-field.js +0 -0
  899. /package/esm/{field-next → field}/base/index.d.ts +0 -0
  900. /package/esm/{field-next → field}/base/index.js +0 -0
  901. /package/esm/{field-next → field}/index.d.ts +0 -0
  902. /package/esm/{field-next → field}/index.js +0 -0
  903. /package/styles/{field-next → field}/_core.slotted.scss +0 -0
  904. /package/styles/{field-next → field}/_core.state.scss +0 -0
  905. /package/styles/{field-next → field}/_token-utils.scss +0 -0
  906. /package/styles/{field-next → field}/index.scss +0 -0
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{a as r,b as i}from"./chunk.UQQQSJVM.js";import{a,e as o,k as g}from"./chunk.BIQTNLIF.js";import{d as t}from"./chunk.M3QDAYD2.js";var n=`${i}page-state`,p={elementName:n};var s='<template><div class="forge-page-state" part="root"><div class="graphic" part="graphic-container"><slot name="graphic"></slot></div><div class="title" part="title-container"><slot name="title"></slot></div><div class="message" part="message-container"><slot name="message"></slot></div><div class="actions" part="actions-container"><slot name="action"></slot></div></div></template>',h=':host{--_page-state-width:var(--forge-page-state-width, 576px);--_page-state-height:var(--forge-page-state-height, auto);--_page-state-spacing:var(--forge-page-state-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-mobile-width:var(--forge-page-state-mobile-width, 70%);--_page-state-graphic-height:var(--forge-page-state-graphic-height, 296px);--_page-state-graphic-spacing:var(--forge-page-state-graphic-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-mobile-graphic-height:var(--forge-page-state-mobile-graphic-height, auto);--_page-state-title-color:var(--forge-page-state-title-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_page-state-title-spacing:var(--forge-page-state-title-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-message-color:var(--forge-page-state-message-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_page-state-message-spacing:var(--forge-page-state-message-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-actions-spacing:var(--forge-page-state-actions-spacing, 16px)}:host{display:-webkit-box;display:flex;width:100%;-webkit-box-pack:center;justify-content:center;container-type:inline-size}:host([hidden]){display:none}.forge-page-state{width:var(--_page-state-width);margin-block:var(--_page-state-spacing);text-align:center}.forge-page-state .graphic{--_page-state-height:var(--_page-state-graphic-height);--_page-state-spacing:var(--_page-state-graphic-spacing);display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;width:100%}.forge-page-state .graphic ::slotted([slot=graphic]){height:100%;width:100%}.forge-page-state .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading8-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading8-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading8-font-size-scale, 2.25)));font-weight:var(--forge-typography-heading8-font-weight,500);line-height:var(--forge-typography-heading8-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading8-line-height-scale, 2.625)));letter-spacing:var(--forge-typography-heading8-letter-spacing, -.0027777778em);text-transform:var(--forge-typography-heading8-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-heading8-text-decoration,inherit);text-decoration:var(--forge-typography-heading8-text-decoration,inherit);color:var(--_page-state-title-color);margin-block:var(--_page-state-title-spacing)}.forge-page-state .message{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body4-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body4-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1.25)));font-weight:var(--forge-typography-body4-font-weight,400);line-height:var(--forge-typography-body4-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.75)));letter-spacing:var(--forge-typography-body4-letter-spacing, .005em);text-transform:var(--forge-typography-body4-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-body4-text-decoration,inherit);text-decoration:var(--forge-typography-body4-text-decoration,inherit);color:var(--_page-state-message-color);-webkit-margin-after:var(--_page-state-message-spacing);margin-block-end:var(--_page-state-message-spacing)}.forge-page-state .actions{display:grid;-webkit-box-pack:center;justify-content:center;grid-auto-flow:column;gap:var(--_page-state-actions-spacing)}@container (max-width:599px){.forge-page-state{--_page-state-width:var(--_page-state-mobile-width)}.forge-page-state .graphic{--_page-state-height:var(--_page-state-mobile-graphic-height)}.forge-page-state .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading5-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading5-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading5-font-size-scale, 1.5)));font-weight:var(--forge-typography-heading5-font-weight,500);line-height:var(--forge-typography-heading5-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading5-line-height-scale, 1.75)));letter-spacing:var(--forge-typography-heading5-letter-spacing, 0);text-transform:var(--forge-typography-heading5-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-heading5-text-decoration,inherit);text-decoration:var(--forge-typography-heading5-text-decoration,inherit)}.forge-page-state .message{-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)}.forge-page-state .actions{grid-auto-flow:row}}',e=class extends g{constructor(){super(),o(this,s,h)}};e=t([r({name:p.elementName})],e);function z(){a(e)}export{p as a,e as b,z as c};
7
- //# sourceMappingURL=chunk.ROMRJIFR.js.map
6
+ import{a as r,b as i}from"./chunk.VRSPT7WX.js";import{a,e as o,k as g}from"./chunk.LNTTU2GL.js";import{d as t}from"./chunk.M3QDAYD2.js";var n=`${i}page-state`,p={elementName:n};var s='<template><div class="forge-page-state" part="root"><div class="graphic" part="graphic-container"><slot name="graphic"></slot></div><div class="title" part="title-container"><slot name="title"></slot></div><div class="message" part="message-container"><slot name="message"></slot></div><div class="actions" part="actions-container"><slot name="action"></slot></div></div></template>',h=':host{--_page-state-width:var(--forge-page-state-width, 576px);--_page-state-height:var(--forge-page-state-height, auto);--_page-state-spacing:var(--forge-page-state-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-mobile-width:var(--forge-page-state-mobile-width, 70%);--_page-state-graphic-height:var(--forge-page-state-graphic-height, 296px);--_page-state-graphic-spacing:var(--forge-page-state-graphic-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-mobile-graphic-height:var(--forge-page-state-mobile-graphic-height, auto);--_page-state-title-color:var(--forge-page-state-title-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_page-state-title-spacing:var(--forge-page-state-title-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-message-color:var(--forge-page-state-message-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_page-state-message-spacing:var(--forge-page-state-message-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-actions-spacing:var(--forge-page-state-actions-spacing, 16px)}:host{display:-webkit-box;display:flex;width:100%;-webkit-box-pack:center;justify-content:center;container-type:inline-size}:host([hidden]){display:none}.forge-page-state{width:var(--_page-state-width);margin-block:var(--_page-state-spacing);text-align:center}.forge-page-state .graphic{--_page-state-height:var(--_page-state-graphic-height);--_page-state-spacing:var(--_page-state-graphic-spacing);display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;width:100%}.forge-page-state .graphic ::slotted([slot=graphic]){height:100%;width:100%}.forge-page-state .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading8-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading8-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading8-font-size-scale, 2.25)));font-weight:var(--forge-typography-heading8-font-weight,500);line-height:var(--forge-typography-heading8-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading8-line-height-scale, 2.625)));letter-spacing:var(--forge-typography-heading8-letter-spacing, -.0027777778em);text-transform:var(--forge-typography-heading8-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-heading8-text-decoration,inherit);text-decoration:var(--forge-typography-heading8-text-decoration,inherit);color:var(--_page-state-title-color);margin-block:var(--_page-state-title-spacing)}.forge-page-state .message{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body4-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body4-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1.25)));font-weight:var(--forge-typography-body4-font-weight,400);line-height:var(--forge-typography-body4-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.75)));letter-spacing:var(--forge-typography-body4-letter-spacing, .005em);text-transform:var(--forge-typography-body4-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-body4-text-decoration,inherit);text-decoration:var(--forge-typography-body4-text-decoration,inherit);color:var(--_page-state-message-color);-webkit-margin-after:var(--_page-state-message-spacing);margin-block-end:var(--_page-state-message-spacing)}.forge-page-state .actions{display:grid;-webkit-box-pack:center;justify-content:center;grid-auto-flow:column;gap:var(--_page-state-actions-spacing)}@container (max-width:599px){.forge-page-state{--_page-state-width:var(--_page-state-mobile-width)}.forge-page-state .graphic{--_page-state-height:var(--_page-state-mobile-graphic-height)}.forge-page-state .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading5-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading5-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading5-font-size-scale, 1.5)));font-weight:var(--forge-typography-heading5-font-weight,500);line-height:var(--forge-typography-heading5-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading5-line-height-scale, 1.75)));letter-spacing:var(--forge-typography-heading5-letter-spacing, 0);text-transform:var(--forge-typography-heading5-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-heading5-text-decoration,inherit);text-decoration:var(--forge-typography-heading5-text-decoration,inherit)}.forge-page-state .message{-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)}.forge-page-state .actions{grid-auto-flow:row}}',e=class extends g{constructor(){super(),o(this,s,h)}};e=t([r({name:p.elementName})],e);function z(){a(e)}export{p as a,e as b,z as c};
7
+ //# sourceMappingURL=chunk.CE35CVDV.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 d,b as i}from"./chunk.UQQQSJVM.js";import{a as t,e as g,k as n}from"./chunk.BIQTNLIF.js";import{d as o}from"./chunk.M3QDAYD2.js";var b=`${i}badge`,f={DOT:"dot",HIDE:"hide",THEME:"theme",STRONG:"strong"},s={OPEN:"open"},c={ROOT:".forge-badge"},h={THEME:"default"},e={elementName:b,attributes:f,selectors:c,classes:s,defaults:h};var l='<template><div class="forge-badge" part="root"><slot name="start"></slot><slot></slot><slot name="end"></slot></div></template>',m=':host{display:-webkit-box;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box}:host([hidden]){display:none}.forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-secondary, #ffc107));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-secondary, #000000));--_badge-shape:var(--forge-badge-shape, var(--forge-shape-full, 9999px));--_badge-height:var(--forge-badge-height, 20px);--_badge-min-width:var(--forge-badge-min-width, 0);--_badge-max-width:var(--forge-badge-max-width, auto);--_badge-padding-inline:var(--forge-badge-padding-inline, var(--forge-spacing-xsmall, 8px));--_badge-padding-block:var(--forge-badge-padding-block, 0);--_badge-border-width:var(--forge-badge-border-width, var(--forge-border-thin, 1px));--_badge-border-style:var(--forge-badge-border-style, none);--_badge-border-color:var(--forge-badge-border-color, var(--_badge-color));--_badge-gap:var(--forge-badge-gap, var(--forge-spacing-xsmall, 8px));--_badge-font-weight:var(--forge-badge-font-weight, bold);--_badge-dot-size:var(--forge-badge-dot-size, 8px);--_badge-dot-height:var(--forge-badge-dot-height, var(--_badge-dot-size));--_badge-dot-width:var(--forge-badge-dot-width, var(--_badge-dot-size));--_badge-dot-padding:var(--forge-badge-dot-padding, 0);--_badge-transition-duration:var(--forge-badge-transition-duration, var(--forge-animation-duration-short4, 200ms));--_badge-transition-easing:var(--forge-badge-transition-easing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)))}.forge-badge{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label1-font-weight,400);line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-label1-text-decoration,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit);background:var(--_badge-background);color:var(--_badge-color);height:var(--_badge-height);min-width:var(--_badge-min-width);max-width:var(--_badge-max-width);border-width:var(--_badge-border-width);border-style:var(--_badge-border-style);border-color:var(--_badge-border-color);display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center;gap:var(--_badge-gap);border-radius:var(--_badge-shape);padding-inline:var(--_badge-padding-inline);padding-block:var(--_badge-padding-block);overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none;-webkit-transition:-webkit-transform var(--_badge-transition-duration) var(--_badge-transition-easing);transition:-webkit-transform var(--_badge-transition-duration) var(--_badge-transition-easing);transition:transform var(--_badge-transition-duration) var(--_badge-transition-easing);transition:transform var(--_badge-transition-duration) var(--_badge-transition-easing),-webkit-transform var(--_badge-transition-duration) var(--_badge-transition-easing);font-weight:var(--_badge-font-weight);text-overflow:ellipsis;white-space:nowrap}::slotted(:is([slot=start],[slot=end])){font-size:inherit}:host([hide]) .forge-badge{-webkit-transform:scale(0);transform:scale(0)}:host([dot]) .forge-badge{--_badge-height:var(--_badge-dot-height);--_badge-min-width:var(--forge-badge-min-width, auto);padding:var(--_badge-dot-padding);width:var(--_badge-dot-width)}:host([dot]) .forge-badge>slot{display:none}:host([theme=primary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-primary-container, #d1d5ed));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-primary-container, #222c62))}:host([strong][theme=primary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-primary, #3f51b5));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-primary, #ffffff))}:host([theme=secondary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-secondary-container, #fff0c3));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-secondary-container, #8a6804))}:host([strong][theme=secondary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-secondary, #ffc107));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-secondary, #000000))}:host([theme=tertiary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-tertiary-container, #d0d7ff));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-tertiary-container, #213189))}:host([strong][theme=tertiary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-tertiary, #3d5afe));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=success]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-success-container, #cde0ce));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-success-container, #19441b))}:host([strong][theme=success]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-success, #2e7d32));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-success, #ffffff))}:host([theme=warning]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-warning-container, #f4d3c2));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-warning-container, #712700))}:host([strong][theme=warning]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-warning, #d14900));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-warning, #ffffff))}:host(:not([strong]):is([theme=error],[theme=danger])) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-error-container, #ecc2c9));--_badge-color:var(--forge-badge-color, var(--forge-theme-error, #b00020))}:host([strong]:is([theme=error],[theme=danger])) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-error, #b00020));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-error, #ffffff))}:host(:not([strong]):is([theme=info],[theme=info-primary])) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-info-container, #c7daf0));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-info-container, #0b3768))}:host([strong]:is([theme=info],[theme=info-primary])) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-info, #1565c0));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-info, #ffffff))}:host(:not([strong])[theme=info-secondary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-surface-container-low, #ebebeb));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-surface-container-low, #000000))}:host([strong][theme=info-secondary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-surface-inverse, #333333));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-surface-inverse, #ffffff))}',a=class extends n{constructor(){super(),g(this,l,m)}get dot(){return this.hasAttribute(e.attributes.DOT)}set dot(r){this.toggleAttribute(e.attributes.DOT,r)}get theme(){var r;return(r=this.getAttribute(e.attributes.THEME))!=null?r:e.defaults.THEME}set theme(r){this.setAttribute(e.attributes.THEME,r)}get strong(){return this.hasAttribute(e.attributes.STRONG)}set strong(r){this.toggleAttribute(e.attributes.STRONG,r)}get hide(){return this.hasAttribute(e.attributes.HIDE)}set hide(r){this.hasAttribute(e.attributes.HIDE)!==r&&this.toggleAttribute(e.attributes.HIDE,r)}};a=o([d({name:e.elementName})],a);function O(){t(a)}export{e as a,a as b,O as c};
7
- //# sourceMappingURL=chunk.ZPXMKY72.js.map
6
+ import{a as d,b as i}from"./chunk.VRSPT7WX.js";import{a as t,e as g,k as n}from"./chunk.LNTTU2GL.js";import{d as o}from"./chunk.M3QDAYD2.js";var b=`${i}badge`,f={DOT:"dot",HIDE:"hide",THEME:"theme",STRONG:"strong"},s={OPEN:"open"},c={ROOT:".forge-badge"},h={THEME:"default"},e={elementName:b,attributes:f,selectors:c,classes:s,defaults:h};var l='<template><div class="forge-badge" part="root"><slot name="start"></slot><slot></slot><slot name="end"></slot></div></template>',m=':host{display:-webkit-box;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box}:host([hidden]){display:none}.forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-secondary, #ffc107));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-secondary, #000000));--_badge-shape:var(--forge-badge-shape, var(--forge-shape-full, 9999px));--_badge-height:var(--forge-badge-height, 20px);--_badge-min-width:var(--forge-badge-min-width, 0);--_badge-max-width:var(--forge-badge-max-width, auto);--_badge-padding-inline:var(--forge-badge-padding-inline, var(--forge-spacing-xsmall, 8px));--_badge-padding-block:var(--forge-badge-padding-block, 0);--_badge-border-width:var(--forge-badge-border-width, var(--forge-border-thin, 1px));--_badge-border-style:var(--forge-badge-border-style, none);--_badge-border-color:var(--forge-badge-border-color, var(--_badge-color));--_badge-gap:var(--forge-badge-gap, var(--forge-spacing-xsmall, 8px));--_badge-font-weight:var(--forge-badge-font-weight, bold);--_badge-dot-size:var(--forge-badge-dot-size, 8px);--_badge-dot-height:var(--forge-badge-dot-height, var(--_badge-dot-size));--_badge-dot-width:var(--forge-badge-dot-width, var(--_badge-dot-size));--_badge-dot-padding:var(--forge-badge-dot-padding, 0);--_badge-transition-duration:var(--forge-badge-transition-duration, var(--forge-animation-duration-short4, 200ms));--_badge-transition-easing:var(--forge-badge-transition-easing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)))}.forge-badge{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label1-font-weight,400);line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-label1-text-decoration,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit);background:var(--_badge-background);color:var(--_badge-color);height:var(--_badge-height);min-width:var(--_badge-min-width);max-width:var(--_badge-max-width);border-width:var(--_badge-border-width);border-style:var(--_badge-border-style);border-color:var(--_badge-border-color);display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center;gap:var(--_badge-gap);border-radius:var(--_badge-shape);padding-inline:var(--_badge-padding-inline);padding-block:var(--_badge-padding-block);overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none;-webkit-transition:-webkit-transform var(--_badge-transition-duration) var(--_badge-transition-easing);transition:-webkit-transform var(--_badge-transition-duration) var(--_badge-transition-easing);transition:transform var(--_badge-transition-duration) var(--_badge-transition-easing);transition:transform var(--_badge-transition-duration) var(--_badge-transition-easing),-webkit-transform var(--_badge-transition-duration) var(--_badge-transition-easing);font-weight:var(--_badge-font-weight);text-overflow:ellipsis;white-space:nowrap}::slotted(:is([slot=start],[slot=end])){font-size:inherit}:host([hide]) .forge-badge{-webkit-transform:scale(0);transform:scale(0)}:host([dot]) .forge-badge{--_badge-height:var(--_badge-dot-height);--_badge-min-width:var(--forge-badge-min-width, auto);padding:var(--_badge-dot-padding);width:var(--_badge-dot-width)}:host([dot]) .forge-badge>slot{display:none}:host([theme=primary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-primary-container, #d1d5ed));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-primary-container, #222c62))}:host([strong][theme=primary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-primary, #3f51b5));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-primary, #ffffff))}:host([theme=secondary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-secondary-container, #fff0c3));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-secondary-container, #8a6804))}:host([strong][theme=secondary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-secondary, #ffc107));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-secondary, #000000))}:host([theme=tertiary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-tertiary-container, #d0d7ff));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-tertiary-container, #213189))}:host([strong][theme=tertiary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-tertiary, #3d5afe));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=success]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-success-container, #cde0ce));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-success-container, #19441b))}:host([strong][theme=success]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-success, #2e7d32));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-success, #ffffff))}:host([theme=warning]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-warning-container, #f4d3c2));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-warning-container, #712700))}:host([strong][theme=warning]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-warning, #d14900));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-warning, #ffffff))}:host(:not([strong]):is([theme=error],[theme=danger])) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-error-container, #ecc2c9));--_badge-color:var(--forge-badge-color, var(--forge-theme-error, #b00020))}:host([strong]:is([theme=error],[theme=danger])) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-error, #b00020));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-error, #ffffff))}:host(:not([strong]):is([theme=info],[theme=info-primary])) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-info-container, #c7daf0));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-info-container, #0b3768))}:host([strong]:is([theme=info],[theme=info-primary])) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-info, #1565c0));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-info, #ffffff))}:host(:not([strong])[theme=info-secondary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-surface-container-low, #ebebeb));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-surface-container-low, #000000))}:host([strong][theme=info-secondary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-surface-inverse, #333333));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-surface-inverse, #ffffff))}',a=class extends n{constructor(){super(),g(this,l,m)}get dot(){return this.hasAttribute(e.attributes.DOT)}set dot(r){this.toggleAttribute(e.attributes.DOT,r)}get theme(){var r;return(r=this.getAttribute(e.attributes.THEME))!=null?r:e.defaults.THEME}set theme(r){this.setAttribute(e.attributes.THEME,r)}get strong(){return this.hasAttribute(e.attributes.STRONG)}set strong(r){this.toggleAttribute(e.attributes.STRONG,r)}get hide(){return this.hasAttribute(e.attributes.HIDE)}set hide(r){this.hasAttribute(e.attributes.HIDE)!==r&&this.toggleAttribute(e.attributes.HIDE,r)}};a=o([d({name:e.elementName})],a);function O(){t(a)}export{e as a,a as b,O as c};
7
+ //# sourceMappingURL=chunk.CEGBMUSR.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{b as d,d as N}from"./chunk.CBLUXYH2.js";import{a as O}from"./chunk.EO3HELQ2.js";import{a as x}from"./chunk.INQZNXG6.js";import{a as k,b as F}from"./chunk.2WRAXA3H.js";import{a as I}from"./chunk.6GSVB5NB.js";import{a as l}from"./chunk.NVUMRW44.js";import{a as A,b as V,g as b,h as c,i as S,j as s,k as C,l as B,m as v}from"./chunk.UQQQSJVM.js";import{a as y,e as E,f as T,k as L}from"./chunk.BIQTNLIF.js";import{k as g}from"./chunk.J2M2MXP2.js";import{a as _,d as n}from"./chunk.M3QDAYD2.js";function D(p){class t extends p{constructor(){super(...arguments);this._hasCustomValidityError=!1}get validity(){return this[s].validity}get validationMessage(){return this[s].validationMessage}get willValidate(){return this[s].willValidate}checkValidity(){return this[s].checkValidity()}reportValidity(){return this[s].reportValidity()}setCustomValidity(o){this._hasCustomValidityError=o!=="",this[s].setCustomValidity({customError:this._hasCustomValidityError},o)}}return t}var R=`${V}button-toggle-group`,G={VALUE:"value",MULTIPLE:"multiple",MANDATORY:"mandatory",VERTICAL:"vertical",STRETCH:"stretch",DISABLED:"disabled",REQUIRED:"required",READONLY:"readonly",DENSE:"dense",NO_OUTLINE:"no-outline",THEME:"theme"},w=_({},G),M={VERTICAL:"forge-button-toggle-group--vertical",STRETCH:"forge-button-toggle-group--stretch"},H={ROOT:".forge-button-toggle-group"},U={CHANGE:`${R}-change`},i={elementName:R,observedAttributes:G,attributes:w,classes:M,selectors:H,events:U};var h=class extends I{constructor(e){super(e);this._rootElement=T(e,i.selectors.ROOT),this._defaultSlotElement=this._rootElement.querySelector("slot")}addListener(e,r){this._rootElement.addEventListener(e,r)}removeListener(e,r){this._rootElement.removeEventListener(e,r)}addSlotChangeListener(e){this._defaultSlotElement.addEventListener("slotchange",e)}removeSlotChangeListener(e){this._defaultSlotElement.addEventListener("slotchange",e)}deselect(e){this._getButtonToggleElements().filter(o=>o!==e).forEach(o=>o.selected=!1)}setDisabled(e){this._component[B]=!e,this._getButtonToggleElements().forEach(o=>o.disabled=e)}setReadonly(e){this._getButtonToggleElements().forEach(o=>o.readonly=e)}getSelectedValues(){return this._getButtonToggleElements().filter(r=>r.selected).map(r=>r.value)}applyValues(e){this._getButtonToggleElements().forEach(o=>o.selected=e.indexOf(o.value)>=0)}setFormValue(){if(!this._component.form)return;let e=this._component[b](),r=this._component[c]();this._component[s].setFormValue(e,r)}setFormValidity(){if(!this._component.form||!this._component.required)return;let e=this._component.multiple?!this._component.value.length:!this._component.value;if(e){let r=this._component[S]({required:e});this._component[s].setValidity({valueMissing:e},r,this._getButtonToggleElements()[0])}else this._component[s].setValidity({})}_getButtonToggleElements(){return Array.from(this._component.querySelectorAll(d.elementName))}};var m=class{constructor(t){this._adapter=t;this._values=[];this._outlined=!0;this._multiple=!1;this._mandatory=!1;this._vertical=!1;this._stretch=!1;this._dense=!1;this._disabled=!1;this._readonly=!1;this._required=!1;this._theme="tertiary";this._selectListener=e=>this._onSelect(e),this._slotListener=()=>this._synchronize()}initialize(){this._adapter.setFormValue(),this._adapter.setFormValidity(),this._adapter.addListener(d.events.SELECT,this._selectListener),this._adapter.addSlotChangeListener(this._slotListener)}destroy(){this._adapter.removeListener(d.events.SELECT,this._selectListener),this._adapter.removeSlotChangeListener(this._slotListener)}_synchronize(){if(this._disabled&&this._adapter.setDisabled(this._disabled),this._readonly&&this._adapter.setReadonly(this._readonly),this._multiple){let t=new Set(this._adapter.getSelectedValues().concat(this._values));this.value=Array.from(t)}else{let t=this._adapter.getSelectedValues().concat(this._values);this.value=t.length?t[t.length-1]:null}}_onSelect(t){if(this._mandatory&&!this._adapter.getSelectedValues().length){t.preventDefault();return}let e;t.detail.selected?e=this._multiple?[...this._values,t.detail.value]:[t.detail.value]:e=this._multiple?this._values.filter(u=>u!==t.detail.value):[];let r=this._multiple?e:e.length?e[0]:null,o=new CustomEvent(i.events.CHANGE,{detail:r,bubbles:!0,cancelable:!0});if(this._adapter.dispatchHostEvent(o),o.defaultPrevented){t.preventDefault();return}this._values=e,this._adapter.applyValues(this._values),this._adapter.setFormValue(),this._adapter.setFormValidity()}_applyValue(t){let e=Array.isArray(t)?t:t!=null?[t]:[];this._values=e,!this._multiple&&e.length>1&&(e=[e[0]]),this._adapter.applyValues(e),this._adapter.setFormValue(),this._adapter.setFormValidity()}get value(){var e;let t=Array.from(new Set(this._adapter.getSelectedValues().concat(this._values)));return this._multiple?Array.from(t):(e=t[0])!=null?e:null}set value(t){this._applyValue(t)}get multiple(){return this._multiple}set multiple(t){t=!!t,this._multiple!==t&&(this._multiple=t,this._applyValue(this._values),this._adapter.toggleHostAttribute(i.attributes.MULTIPLE,this._multiple))}get mandatory(){return this._mandatory}set mandatory(t){t=!!t,this._mandatory!==t&&(this._mandatory=t,this._adapter.toggleHostAttribute(i.attributes.MANDATORY,this._mandatory))}get vertical(){return this._vertical}set vertical(t){t=!!t,this._vertical!==t&&(this._vertical=t,this._adapter.toggleHostAttribute(i.attributes.VERTICAL,this._vertical))}get stretch(){return this._stretch}set stretch(t){t=!!t,this._stretch!==t&&(this._stretch=t,this._adapter.toggleHostAttribute(i.attributes.STRETCH,this._stretch))}get dense(){return this._dense}set dense(t){t=!!t,this._dense!==t&&(this._dense=t,this._adapter.toggleHostAttribute(i.attributes.DENSE,this._dense))}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(i.attributes.DISABLED,this._disabled))}get readonly(){return this._readonly}set readonly(t){t=!!t,this._readonly!==t&&(this._readonly=t,this._adapter.setReadonly(this._readonly),this._adapter.toggleHostAttribute(i.attributes.READONLY,this._readonly))}get required(){return this._required}set required(t){t=!!t,this._required!==t&&(this._required=t,this._adapter.toggleHostAttribute(i.attributes.REQUIRED,this._required))}get outlined(){return this._outlined}set outlined(t){t=!!t,this._outlined!==t&&(this._outlined=t,this._adapter.toggleHostAttribute(i.attributes.NO_OUTLINE,!this._outlined))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t,this._adapter.toggleHostAttribute(i.attributes.THEME,this._theme!=="tertiary",this._theme))}};var W='<template><div class="forge-button-toggle-group" part="root"><slot></slot></div></template>',q=":host{--_button-toggle-group-display:var(--forge-button-toggle-group-display, inline-flex)}:host{display:var(--_button-toggle-group-display)}:host([hidden]){display:none}.forge-button-toggle-group{--_button-toggle-group-gap:var(--forge-button-toggle-group-gap, 4px);--_button-toggle-group-padding:var(--forge-button-toggle-group-padding, 4px);--_button-toggle-group-padding-block:var(--forge-button-toggle-group-padding-block, var(--_button-toggle-group-padding));--_button-toggle-group-padding-inline:var(--forge-button-toggle-group-padding-inline, var(--_button-toggle-group-padding));--_button-toggle-group-height:var(--forge-button-toggle-group-height, var(--forge-button-height, 36px));--_button-toggle-group-dense-height:var(--forge-button-toggle-group-dense-height, var(--forge-button-dense-height, 24px));--_button-toggle-group-outline-width:var(--forge-button-toggle-group-outline-width, var(--forge-border-thin, 1px));--_button-toggle-group-outline-style:var(--forge-button-toggle-group-outline-style, solid);--_button-toggle-group-outline-color:var(--forge-button-toggle-group-outline-color, var(--forge-theme-outline-low, #9e9e9e));--_button-toggle-group-outline-color-active:var(--forge-button-toggle-group-outline-color-active, var(--forge-theme-outline-medium, #757575));--_button-toggle-group-shape:var(--forge-button-toggle-group-shape, var(--forge-shape-medium, 4px));--_button-toggle-group-shape-start-start:var(--forge-button-toggle-group-shape-start-start, var(--_button-toggle-group-shape));--_button-toggle-group-shape-start-end:var(--forge-button-toggle-group-shape-start-end, var(--_button-toggle-group-shape));--_button-toggle-group-shape-end-start:var(--forge-button-toggle-group-shape-end-start, var(--_button-toggle-group-shape));--_button-toggle-group-shape-end-end:var(--forge-button-toggle-group-shape-end-end, var(--_button-toggle-group-shape));--_button-toggle-group-transition-duration:var(--forge-button-toggle-group-transition-duration, var(--forge-button-toggle-transition-duration, var(--forge-animation-duration-short3, 150ms)));--_button-toggle-group-transition-timing:var(--forge-button-toggle-group-transition-timing, var(--forge-button-toggle-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1))))}.forge-button-toggle-group{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;gap:var(--_button-toggle-group-gap);-webkit-box-sizing:border-box;box-sizing:border-box;height:var(--_button-toggle-group-height);border-width:var(--_button-toggle-group-outline-width);border-style:var(--_button-toggle-group-outline-style);border-color:var(--_button-toggle-group-outline-color);border-start-start-radius:var(--_button-toggle-group-shape-start-start);border-start-end-radius:var(--_button-toggle-group-shape-start-end);border-end-start-radius:var(--_button-toggle-group-shape-end-start);border-end-end-radius:var(--_button-toggle-group-shape-end-end);padding-block:var(--_button-toggle-group-padding-block);padding-inline:var(--_button-toggle-group-padding-inline);-webkit-transition-property:border-color;transition-property:border-color;-webkit-transition-duration:var(--_button-toggle-group-transition-duration);transition-duration:var(--_button-toggle-group-transition-duration);-webkit-transition-timing-function:var(--_button-toggle-group-transition-timing);transition-timing-function:var(--_button-toggle-group-transition-timing)}:host(:not([disabled]):not([no-outline])) .forge-button-toggle-group:focus-within,:host(:not([disabled]):not([no-outline])) .forge-button-toggle-group:hover{--_button-toggle-group-outline-color:var(--_button-toggle-group-outline-color-active)}:host([no-outline]) .forge-button-toggle-group{--_button-toggle-group-padding:var(--forge-button-toggle-group-padding, 0);--_button-toggle-group-outline-style:var(--forge-button-toggle-group-outline-style, none)}:host(:is([dense],[density=dense])) .forge-button-toggle-group{--_button-toggle-group-padding:var(--forge-button-toggle-group-padding, 0);--_button-toggle-group-height:var(--_button-toggle-group-dense-height)}:host([vertical]) .forge-button-toggle-group{height:auto;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}:host([vertical]) ::slotted(forge-button-toggle){height:var(--_button-toggle-group-height);width:100%}:host([vertical]) ::slotted(forge-divider:not([vertical])){margin-inline:4px;width:100%}::slotted(forge-divider[vertical]){margin-block:4px}:host([stretch]){display:block}:host([stretch]) .forge-button-toggle-group{width:100%}:host(:not([vertical])[stretch]) ::slotted(forge-button-toggle){-webkit-box-flex:1;flex:1}:host([theme=primary]) ::slotted(forge-button-toggle){--forge-button-toggle-selected-background:var(--forge-theme-primary-container, #d1d5ed);--forge-button-toggle-selected-color:var(--forge-theme-on-primary-container, #222c62);--forge-button-toggle-focus-indicator-color:var(--forge-theme-primary, #3f51b5)}:host([theme=secondary]) ::slotted(forge-button-toggle){--forge-button-toggle-selected-background:var(--forge-theme-secondary-container, #fff0c3);--forge-button-toggle-selected-color:var(--forge-theme-on-secondary-container, #8a6804);--forge-button-toggle-focus-indicator-color:var(--forge-theme-secondary, #ffc107)}:host([theme=success]) ::slotted(forge-button-toggle){--forge-button-toggle-selected-background:var(--forge-theme-success-container, #cde0ce);--forge-button-toggle-selected-color:var(--forge-theme-on-success-container, #19441b);--forge-button-toggle-focus-indicator-color:var(--forge-theme-success, #2e7d32)}:host([theme=error]) ::slotted(forge-button-toggle){--forge-button-toggle-selected-background:var(--forge-theme-error-container, #ecc2c9);--forge-button-toggle-selected-color:var(--forge-theme-on-error-container, #5f0011);--forge-button-toggle-focus-indicator-color:var(--forge-theme-error, #b00020)}:host([theme=warning]) ::slotted(forge-button-toggle){--forge-button-toggle-selected-background:var(--forge-theme-warning-container, #f4d3c2);--forge-button-toggle-selected-color:var(--forge-theme-on-warning-container, #712700);--forge-button-toggle-focus-indicator-color:var(--forge-theme-warning, #d14900)}:host([theme=info]) ::slotted(forge-button-toggle){--forge-button-toggle-selected-background:var(--forge-theme-info-container, #c7daf0);--forge-button-toggle-selected-color:var(--forge-theme-on-info-container, #0b3768);--forge-button-toggle-focus-indicator-color:var(--forge-theme-info, #1565c0)}",P=x(O(D(F(k(L))))),a=class extends P{constructor(){super();E(this,W,q),this._foundation=new m(new h(this)),this[C]="radio"}static get observedAttributes(){return Object.values(i.observedAttributes)}connectedCallback(){this[v]({role:"group"},{setAttribute:!this.hasAttribute("role")}),this._foundation.initialize()}disconnectedCallback(){this._foundation.destroy()}attributeChangedCallback(e,r,o){switch(e){case i.observedAttributes.VALUE:this.value=o;break;case i.observedAttributes.NO_OUTLINE:this.outlined=!g(o);break;case i.observedAttributes.MULTIPLE:this.multiple=g(o);break;case i.observedAttributes.MANDATORY:this.mandatory=g(o);break;case i.observedAttributes.VERTICAL:this.vertical=g(o);break;case i.observedAttributes.STRETCH:this.stretch=g(o);break;case i.observedAttributes.DENSE:this.dense=g(o);break;case i.observedAttributes.DISABLED:this.disabled=g(o);break;case i.observedAttributes.REQUIRED:this.required=g(o);break;case i.observedAttributes.READONLY:this.readonly=g(o);break;case i.observedAttributes.THEME:this.theme=o;break}}[b](){let e=Array.isArray(this.value)?this.value.length>0:!!this.value,r=null;if(e){let o=Array.isArray(this.value)?this.value:[this.value];o.length&&(r=new FormData,o.forEach(u=>r==null?void 0:r.append(this.name,u)))}return r}[c](){let e=new FormData,r=Array.isArray(this.value)?this.value:this.value!=null?[this.value]:[];return e.append("multiple",String(this.multiple)),r.forEach(o=>e.append("value",o)),e}formStateRestoreCallback(e,r){var o;if(r==="restore"&&e instanceof FormData){let u=e.get("multiple")==="true",f=e.getAll("value");if(u){this.multiple=u,this.value=f;return}this.value=(o=f[0])!=null?o:null}}formResetCallback(){this.value=this.getAttribute("value")}labelChangedCallback(e){this[v]({ariaLabel:e!=null?e:void 0})}};n([l()],a.prototype,"value",2),n([l()],a.prototype,"outlined",2),n([l()],a.prototype,"multiple",2),n([l()],a.prototype,"mandatory",2),n([l()],a.prototype,"vertical",2),n([l()],a.prototype,"stretch",2),n([l()],a.prototype,"dense",2),n([l()],a.prototype,"disabled",2),n([l()],a.prototype,"required",2),n([l()],a.prototype,"readonly",2),n([l()],a.prototype,"theme",2),a=n([A({name:i.elementName,dependencies:[N]})],a);function Dt(){y(a)}export{i as a,h as b,m as c,a as d,Dt as e};
7
- //# sourceMappingURL=chunk.GBGGUYTE.js.map
6
+ import{b as d,d as N}from"./chunk.BHE6Z5Y2.js";import{a as O}from"./chunk.BEFAXPXJ.js";import{a as x}from"./chunk.INQZNXG6.js";import{a as k,b as F}from"./chunk.BQ52JYLA.js";import{a as l}from"./chunk.NVUMRW44.js";import{a as I}from"./chunk.OLFOVKQG.js";import{a as A,b as V,g as b,h as c,j as S,k as s,l as C,m as B,n as v}from"./chunk.VRSPT7WX.js";import{a as y,e as E,f as T,k as L}from"./chunk.LNTTU2GL.js";import{k as g}from"./chunk.J2M2MXP2.js";import{a as _,d as n}from"./chunk.M3QDAYD2.js";function D(p){class t extends p{constructor(){super(...arguments);this._hasCustomValidityError=!1}get validity(){return this[s].validity}get validationMessage(){return this[s].validationMessage}get willValidate(){return this[s].willValidate}checkValidity(){return this[s].checkValidity()}reportValidity(){return this[s].reportValidity()}setCustomValidity(o){this._hasCustomValidityError=o!=="",this[s].setCustomValidity({customError:this._hasCustomValidityError},o)}}return t}var R=`${V}button-toggle-group`,G={VALUE:"value",MULTIPLE:"multiple",MANDATORY:"mandatory",VERTICAL:"vertical",STRETCH:"stretch",DISABLED:"disabled",REQUIRED:"required",READONLY:"readonly",DENSE:"dense",NO_OUTLINE:"no-outline",THEME:"theme"},w=_({},G),M={VERTICAL:"forge-button-toggle-group--vertical",STRETCH:"forge-button-toggle-group--stretch"},H={ROOT:".forge-button-toggle-group"},U={CHANGE:`${R}-change`},i={elementName:R,observedAttributes:G,attributes:w,classes:M,selectors:H,events:U};var h=class extends I{constructor(e){super(e);this._rootElement=T(e,i.selectors.ROOT),this._defaultSlotElement=this._rootElement.querySelector("slot")}addListener(e,r){this._rootElement.addEventListener(e,r)}removeListener(e,r){this._rootElement.removeEventListener(e,r)}addSlotChangeListener(e){this._defaultSlotElement.addEventListener("slotchange",e)}removeSlotChangeListener(e){this._defaultSlotElement.addEventListener("slotchange",e)}deselect(e){this._getButtonToggleElements().filter(o=>o!==e).forEach(o=>o.selected=!1)}setDisabled(e){this._component[B]=!e,this._getButtonToggleElements().forEach(o=>o.disabled=e)}setReadonly(e){this._getButtonToggleElements().forEach(o=>o.readonly=e)}getSelectedValues(){return this._getButtonToggleElements().filter(r=>r.selected).map(r=>r.value)}applyValues(e){this._getButtonToggleElements().forEach(o=>o.selected=e.indexOf(o.value)>=0)}setFormValue(){if(!this._component.form)return;let e=this._component[b](),r=this._component[c]();this._component[s].setFormValue(e,r)}setFormValidity(){if(!this._component.form||!this._component.required)return;let e=this._component.multiple?!this._component.value.length:!this._component.value;if(e){let r=this._component[S]({required:e});this._component[s].setValidity({valueMissing:e},r,this._getButtonToggleElements()[0])}else this._component[s].setValidity({})}_getButtonToggleElements(){return Array.from(this._component.querySelectorAll(d.elementName))}};var m=class{constructor(t){this._adapter=t;this._values=[];this._outlined=!0;this._multiple=!1;this._mandatory=!1;this._vertical=!1;this._stretch=!1;this._dense=!1;this._disabled=!1;this._readonly=!1;this._required=!1;this._theme="tertiary";this._selectListener=e=>this._onSelect(e),this._slotListener=()=>this._synchronize()}initialize(){this._adapter.setFormValue(),this._adapter.setFormValidity(),this._adapter.addListener(d.events.SELECT,this._selectListener),this._adapter.addSlotChangeListener(this._slotListener)}destroy(){this._adapter.removeListener(d.events.SELECT,this._selectListener),this._adapter.removeSlotChangeListener(this._slotListener)}_synchronize(){if(this._disabled&&this._adapter.setDisabled(this._disabled),this._readonly&&this._adapter.setReadonly(this._readonly),this._multiple){let t=new Set(this._adapter.getSelectedValues().concat(this._values));this.value=Array.from(t)}else{let t=this._adapter.getSelectedValues().concat(this._values);this.value=t.length?t[t.length-1]:null}}_onSelect(t){if(this._mandatory&&!this._adapter.getSelectedValues().length){t.preventDefault();return}let e;t.detail.selected?e=this._multiple?[...this._values,t.detail.value]:[t.detail.value]:e=this._multiple?this._values.filter(u=>u!==t.detail.value):[];let r=this._multiple?e:e.length?e[0]:null,o=new CustomEvent(i.events.CHANGE,{detail:r,bubbles:!0,cancelable:!0});if(this._adapter.dispatchHostEvent(o),o.defaultPrevented){t.preventDefault();return}this._values=e,this._adapter.applyValues(this._values),this._adapter.setFormValue(),this._adapter.setFormValidity()}_applyValue(t){let e=Array.isArray(t)?t:t!=null?[t]:[];this._values=e,!this._multiple&&e.length>1&&(e=[e[0]]),this._adapter.applyValues(e),this._adapter.setFormValue(),this._adapter.setFormValidity()}get value(){var e;let t=Array.from(new Set(this._adapter.getSelectedValues().concat(this._values)));return this._multiple?Array.from(t):(e=t[0])!=null?e:null}set value(t){this._applyValue(t)}get multiple(){return this._multiple}set multiple(t){t=!!t,this._multiple!==t&&(this._multiple=t,this._applyValue(this._values),this._adapter.toggleHostAttribute(i.attributes.MULTIPLE,this._multiple))}get mandatory(){return this._mandatory}set mandatory(t){t=!!t,this._mandatory!==t&&(this._mandatory=t,this._adapter.toggleHostAttribute(i.attributes.MANDATORY,this._mandatory))}get vertical(){return this._vertical}set vertical(t){t=!!t,this._vertical!==t&&(this._vertical=t,this._adapter.toggleHostAttribute(i.attributes.VERTICAL,this._vertical))}get stretch(){return this._stretch}set stretch(t){t=!!t,this._stretch!==t&&(this._stretch=t,this._adapter.toggleHostAttribute(i.attributes.STRETCH,this._stretch))}get dense(){return this._dense}set dense(t){t=!!t,this._dense!==t&&(this._dense=t,this._adapter.toggleHostAttribute(i.attributes.DENSE,this._dense))}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(i.attributes.DISABLED,this._disabled))}get readonly(){return this._readonly}set readonly(t){t=!!t,this._readonly!==t&&(this._readonly=t,this._adapter.setReadonly(this._readonly),this._adapter.toggleHostAttribute(i.attributes.READONLY,this._readonly))}get required(){return this._required}set required(t){t=!!t,this._required!==t&&(this._required=t,this._adapter.toggleHostAttribute(i.attributes.REQUIRED,this._required))}get outlined(){return this._outlined}set outlined(t){t=!!t,this._outlined!==t&&(this._outlined=t,this._adapter.toggleHostAttribute(i.attributes.NO_OUTLINE,!this._outlined))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t,this._adapter.toggleHostAttribute(i.attributes.THEME,this._theme!=="tertiary",this._theme))}};var W='<template><div class="forge-button-toggle-group" part="root"><slot></slot></div></template>',q=":host{--_button-toggle-group-display:var(--forge-button-toggle-group-display, inline-flex)}:host{display:var(--_button-toggle-group-display)}:host([hidden]){display:none}.forge-button-toggle-group{--_button-toggle-group-gap:var(--forge-button-toggle-group-gap, 4px);--_button-toggle-group-padding:var(--forge-button-toggle-group-padding, 4px);--_button-toggle-group-padding-block:var(--forge-button-toggle-group-padding-block, var(--_button-toggle-group-padding));--_button-toggle-group-padding-inline:var(--forge-button-toggle-group-padding-inline, var(--_button-toggle-group-padding));--_button-toggle-group-height:var(--forge-button-toggle-group-height, var(--forge-button-height, 36px));--_button-toggle-group-dense-height:var(--forge-button-toggle-group-dense-height, var(--forge-button-dense-height, 24px));--_button-toggle-group-outline-width:var(--forge-button-toggle-group-outline-width, var(--forge-border-thin, 1px));--_button-toggle-group-outline-style:var(--forge-button-toggle-group-outline-style, solid);--_button-toggle-group-outline-color:var(--forge-button-toggle-group-outline-color, var(--forge-theme-outline-low, #9e9e9e));--_button-toggle-group-outline-color-active:var(--forge-button-toggle-group-outline-color-active, var(--forge-theme-outline-medium, #757575));--_button-toggle-group-shape:var(--forge-button-toggle-group-shape, var(--forge-shape-medium, 4px));--_button-toggle-group-shape-start-start:var(--forge-button-toggle-group-shape-start-start, var(--_button-toggle-group-shape));--_button-toggle-group-shape-start-end:var(--forge-button-toggle-group-shape-start-end, var(--_button-toggle-group-shape));--_button-toggle-group-shape-end-start:var(--forge-button-toggle-group-shape-end-start, var(--_button-toggle-group-shape));--_button-toggle-group-shape-end-end:var(--forge-button-toggle-group-shape-end-end, var(--_button-toggle-group-shape));--_button-toggle-group-transition-duration:var(--forge-button-toggle-group-transition-duration, var(--forge-button-toggle-transition-duration, var(--forge-animation-duration-short3, 150ms)));--_button-toggle-group-transition-timing:var(--forge-button-toggle-group-transition-timing, var(--forge-button-toggle-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1))))}.forge-button-toggle-group{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;gap:var(--_button-toggle-group-gap);-webkit-box-sizing:border-box;box-sizing:border-box;height:var(--_button-toggle-group-height);border-width:var(--_button-toggle-group-outline-width);border-style:var(--_button-toggle-group-outline-style);border-color:var(--_button-toggle-group-outline-color);border-start-start-radius:var(--_button-toggle-group-shape-start-start);border-start-end-radius:var(--_button-toggle-group-shape-start-end);border-end-start-radius:var(--_button-toggle-group-shape-end-start);border-end-end-radius:var(--_button-toggle-group-shape-end-end);padding-block:var(--_button-toggle-group-padding-block);padding-inline:var(--_button-toggle-group-padding-inline);-webkit-transition-property:border-color;transition-property:border-color;-webkit-transition-duration:var(--_button-toggle-group-transition-duration);transition-duration:var(--_button-toggle-group-transition-duration);-webkit-transition-timing-function:var(--_button-toggle-group-transition-timing);transition-timing-function:var(--_button-toggle-group-transition-timing)}:host(:not([disabled]):not([no-outline])) .forge-button-toggle-group:focus-within,:host(:not([disabled]):not([no-outline])) .forge-button-toggle-group:hover{--_button-toggle-group-outline-color:var(--_button-toggle-group-outline-color-active)}:host([no-outline]) .forge-button-toggle-group{--_button-toggle-group-padding:var(--forge-button-toggle-group-padding, 0);--_button-toggle-group-outline-style:var(--forge-button-toggle-group-outline-style, none)}:host(:is([dense],[density=dense])) .forge-button-toggle-group{--_button-toggle-group-padding:var(--forge-button-toggle-group-padding, 0);--_button-toggle-group-height:var(--_button-toggle-group-dense-height)}:host([vertical]) .forge-button-toggle-group{height:auto;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}:host([vertical]) ::slotted(forge-button-toggle){height:var(--_button-toggle-group-height);width:100%}:host([vertical]) ::slotted(forge-divider:not([vertical])){margin-inline:4px;width:100%}::slotted(forge-divider[vertical]){margin-block:4px}:host([stretch]){display:block}:host([stretch]) .forge-button-toggle-group{width:100%}:host(:not([vertical])[stretch]) ::slotted(forge-button-toggle){-webkit-box-flex:1;flex:1}:host([theme=primary]) ::slotted(forge-button-toggle){--forge-button-toggle-selected-background:var(--forge-theme-primary-container, #d1d5ed);--forge-button-toggle-selected-color:var(--forge-theme-on-primary-container, #222c62);--forge-button-toggle-focus-indicator-color:var(--forge-theme-primary, #3f51b5)}:host([theme=secondary]) ::slotted(forge-button-toggle){--forge-button-toggle-selected-background:var(--forge-theme-secondary-container, #fff0c3);--forge-button-toggle-selected-color:var(--forge-theme-on-secondary-container, #8a6804);--forge-button-toggle-focus-indicator-color:var(--forge-theme-secondary, #ffc107)}:host([theme=success]) ::slotted(forge-button-toggle){--forge-button-toggle-selected-background:var(--forge-theme-success-container, #cde0ce);--forge-button-toggle-selected-color:var(--forge-theme-on-success-container, #19441b);--forge-button-toggle-focus-indicator-color:var(--forge-theme-success, #2e7d32)}:host([theme=error]) ::slotted(forge-button-toggle){--forge-button-toggle-selected-background:var(--forge-theme-error-container, #ecc2c9);--forge-button-toggle-selected-color:var(--forge-theme-on-error-container, #5f0011);--forge-button-toggle-focus-indicator-color:var(--forge-theme-error, #b00020)}:host([theme=warning]) ::slotted(forge-button-toggle){--forge-button-toggle-selected-background:var(--forge-theme-warning-container, #f4d3c2);--forge-button-toggle-selected-color:var(--forge-theme-on-warning-container, #712700);--forge-button-toggle-focus-indicator-color:var(--forge-theme-warning, #d14900)}:host([theme=info]) ::slotted(forge-button-toggle){--forge-button-toggle-selected-background:var(--forge-theme-info-container, #c7daf0);--forge-button-toggle-selected-color:var(--forge-theme-on-info-container, #0b3768);--forge-button-toggle-focus-indicator-color:var(--forge-theme-info, #1565c0)}",P=x(O(D(F(k(L))))),a=class extends P{constructor(){super();E(this,W,q),this._foundation=new m(new h(this)),this[C]="radio"}static get observedAttributes(){return Object.values(i.observedAttributes)}connectedCallback(){this[v]({role:"group"},{setAttribute:!this.hasAttribute("role")}),this._foundation.initialize()}disconnectedCallback(){this._foundation.destroy()}attributeChangedCallback(e,r,o){switch(e){case i.observedAttributes.VALUE:this.value=o;break;case i.observedAttributes.NO_OUTLINE:this.outlined=!g(o);break;case i.observedAttributes.MULTIPLE:this.multiple=g(o);break;case i.observedAttributes.MANDATORY:this.mandatory=g(o);break;case i.observedAttributes.VERTICAL:this.vertical=g(o);break;case i.observedAttributes.STRETCH:this.stretch=g(o);break;case i.observedAttributes.DENSE:this.dense=g(o);break;case i.observedAttributes.DISABLED:this.disabled=g(o);break;case i.observedAttributes.REQUIRED:this.required=g(o);break;case i.observedAttributes.READONLY:this.readonly=g(o);break;case i.observedAttributes.THEME:this.theme=o;break}}[b](){let e=Array.isArray(this.value)?this.value.length>0:!!this.value,r=null;if(e){let o=Array.isArray(this.value)?this.value:[this.value];o.length&&(r=new FormData,o.forEach(u=>r==null?void 0:r.append(this.name,u)))}return r}[c](){let e=new FormData,r=Array.isArray(this.value)?this.value:this.value!=null?[this.value]:[];return e.append("multiple",String(this.multiple)),r.forEach(o=>e.append("value",o)),e}formStateRestoreCallback(e,r){var o;if(r==="restore"&&e instanceof FormData){let u=e.get("multiple")==="true",f=e.getAll("value");if(u){this.multiple=u,this.value=f;return}this.value=(o=f[0])!=null?o:null}}formResetCallback(){this.value=this.getAttribute("value")}labelChangedCallback(e){this[v]({ariaLabel:e!=null?e:void 0})}};n([l()],a.prototype,"value",2),n([l()],a.prototype,"outlined",2),n([l()],a.prototype,"multiple",2),n([l()],a.prototype,"mandatory",2),n([l()],a.prototype,"vertical",2),n([l()],a.prototype,"stretch",2),n([l()],a.prototype,"dense",2),n([l()],a.prototype,"disabled",2),n([l()],a.prototype,"required",2),n([l()],a.prototype,"readonly",2),n([l()],a.prototype,"theme",2),a=n([A({name:i.elementName,dependencies:[N]})],a);function Dt(){y(a)}export{i as a,h as b,m as c,a as d,Dt as e};
7
+ //# sourceMappingURL=chunk.CFAI4K3E.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{b as i,c as s,d as l}from"./chunk.FBDRM4YN.js";import{a,b as n}from"./chunk.UQQQSJVM.js";import{a as o,e as t}from"./chunk.BIQTNLIF.js";import{d as e}from"./chunk.M3QDAYD2.js";var c=`${n}drawer`,d={elementName:c};var f='<template><div class="forge-drawer" part="root"><slot name="header"></slot><div class="forge-drawer__content" part="content"><slot></slot></div><slot name="footer"></slot></div></template>',b='.forge-drawer{width:256px;width:var(--forge-drawer-width,256px);border-color:#e0e0e0;border-color:var(--forge-theme-border-color,#e0e0e0);background-color:#fff;background-color:var(--mdc-theme-surface,#fff);height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr auto;overflow:hidden;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:250ms;transition-duration:250ms;-webkit-transition-timing-function:cubic-bezier(0.4,0,0.2,1);transition-timing-function:cubic-bezier(0.4,0,0.2,1)}.forge-drawer ::slotted([slot=header]){grid-row:1}.forge-drawer ::slotted([slot=footer]){grid-row:3}.forge-drawer__content{overflow-x:auto;-webkit-overflow-scrolling:"touch";display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;grid-row:2}.forge-drawer__content::-webkit-scrollbar{height:var(--forge-scrollbar-height,16px);width:var(--forge-scrollbar-width,16px)}.forge-drawer__content::-webkit-scrollbar-track{background-color:var(--forge-scrollbar-track-container,var(--forge-theme-surface-container-low,#ebebeb))}.forge-drawer__content::-webkit-scrollbar-track:hover{background-color:var(--forge-scrollbar-track-container-hover,var(--forge-theme-surface-container-low,#ebebeb))}.forge-drawer__content::-webkit-scrollbar-corner{background-color:var(--forge-scrollbar-track-container,var(--forge-theme-surface-container-low,#ebebeb))}.forge-drawer__content::-webkit-scrollbar-thumb{height:var(--forge-scrollbar-thumb-min-height,32px);width:var(--forge-scrollbar-thumb-min-width,32px);border-radius:var(--forge-scrollbar-border-radius,var(--forge-shape-full,9999px));border-width:var(--forge-scrollbar-border-width,3px);border-style:solid;border-color:transparent;background-color:var(--forge-scrollbar-thumb-container,var(--forge-theme-surface-container-medium,#c2c2c2));background-clip:content-box}.forge-drawer__content::-webkit-scrollbar-thumb:hover{background-color:var(--forge-scrollbar-thumb-container-hover,var(--forge-theme-surface-container-high,#9e9e9e))}.forge-drawer--left{border-right-width:1px;border-right-style:solid}.forge-drawer--right{border-left-width:1px;border-left-style:solid}.forge-drawer--right.forge-drawer--closing{-webkit-transform:translateX(100%);transform:translateX(100%);right:0;left:auto;z-index:1;z-index:var(--forge-z-index-surface,1);position:absolute;top:0;right:0;-webkit-transition-duration:.2s;transition-duration:.2s}.forge-drawer--right.forge-drawer--closed{-webkit-transform:translateX(100%);transform:translateX(100%);right:0;left:auto;width:0;border:none}.forge-drawer--closing{-webkit-transform:translateX(-100%);transform:translateX(-100%);left:0;z-index:1;z-index:var(--forge-z-index-surface,1);position:absolute;top:0;right:0;-webkit-transition-duration:.2s;transition-duration:.2s}.forge-drawer--closed{-webkit-transform:translateX(-100%);transform:translateX(-100%);left:0;width:0;border:none}.forge-drawer--no-transition{-webkit-transition:none!important;transition:none!important}:host{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;overflow:hidden!important;--forge-divider-margin:4px 0}@media not all and (-webkit-min-device-pixel-ratio:0),not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent){:host([open]){-webkit-transform:translateZ(0);transform:translateZ(0)}}}',r=class extends l{constructor(){super();t(this,f,b),this._foundation=new s(new i(this))}};r=e([a({name:d.elementName})],r);function z(){o(r)}export{d as a,r as b,z as c};
7
- //# sourceMappingURL=chunk.ZIGVO6FN.js.map
6
+ import{b as i,c as s,d as l}from"./chunk.S7KEO2CH.js";import{a,b as n}from"./chunk.VRSPT7WX.js";import{a as o,e as t}from"./chunk.LNTTU2GL.js";import{d as e}from"./chunk.M3QDAYD2.js";var c=`${n}drawer`,d={elementName:c};var f='<template><div class="forge-drawer" part="root"><slot name="header"></slot><div class="forge-drawer__content" part="content"><slot></slot></div><slot name="footer"></slot></div></template>',b='.forge-drawer{width:256px;width:var(--forge-drawer-width,256px);border-color:#e0e0e0;border-color:var(--forge-theme-border-color,#e0e0e0);background-color:#fff;background-color:var(--mdc-theme-surface,#fff);height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr auto;overflow:hidden;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:250ms;transition-duration:250ms;-webkit-transition-timing-function:cubic-bezier(0.4,0,0.2,1);transition-timing-function:cubic-bezier(0.4,0,0.2,1)}.forge-drawer ::slotted([slot=header]){grid-row:1}.forge-drawer ::slotted([slot=footer]){grid-row:3}.forge-drawer__content{overflow-x:auto;-webkit-overflow-scrolling:"touch";display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;grid-row:2}.forge-drawer__content::-webkit-scrollbar{height:var(--forge-scrollbar-height,16px);width:var(--forge-scrollbar-width,16px)}.forge-drawer__content::-webkit-scrollbar-track{background-color:var(--forge-scrollbar-track-container,var(--forge-theme-surface-container-low,#ebebeb))}.forge-drawer__content::-webkit-scrollbar-track:hover{background-color:var(--forge-scrollbar-track-container-hover,var(--forge-theme-surface-container-low,#ebebeb))}.forge-drawer__content::-webkit-scrollbar-corner{background-color:var(--forge-scrollbar-track-container,var(--forge-theme-surface-container-low,#ebebeb))}.forge-drawer__content::-webkit-scrollbar-thumb{height:var(--forge-scrollbar-thumb-min-height,32px);width:var(--forge-scrollbar-thumb-min-width,32px);border-radius:var(--forge-scrollbar-border-radius,var(--forge-shape-full,9999px));border-width:var(--forge-scrollbar-border-width,3px);border-style:solid;border-color:transparent;background-color:var(--forge-scrollbar-thumb-container,var(--forge-theme-surface-container-medium,#c2c2c2));background-clip:content-box}.forge-drawer__content::-webkit-scrollbar-thumb:hover{background-color:var(--forge-scrollbar-thumb-container-hover,var(--forge-theme-surface-container-high,#9e9e9e))}.forge-drawer--left{border-right-width:1px;border-right-style:solid}.forge-drawer--right{border-left-width:1px;border-left-style:solid}.forge-drawer--right.forge-drawer--closing{-webkit-transform:translateX(100%);transform:translateX(100%);right:0;left:auto;z-index:1;z-index:var(--forge-z-index-surface,1);position:absolute;top:0;right:0;-webkit-transition-duration:.2s;transition-duration:.2s}.forge-drawer--right.forge-drawer--closed{-webkit-transform:translateX(100%);transform:translateX(100%);right:0;left:auto;width:0;border:none}.forge-drawer--closing{-webkit-transform:translateX(-100%);transform:translateX(-100%);left:0;z-index:1;z-index:var(--forge-z-index-surface,1);position:absolute;top:0;right:0;-webkit-transition-duration:.2s;transition-duration:.2s}.forge-drawer--closed{-webkit-transform:translateX(-100%);transform:translateX(-100%);left:0;width:0;border:none}.forge-drawer--no-transition{-webkit-transition:none!important;transition:none!important}:host{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;overflow:hidden!important;--forge-divider-margin:4px 0}@media not all and (-webkit-min-device-pixel-ratio:0),not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent){:host([open]){-webkit-transform:translateZ(0);transform:translateZ(0)}}}',r=class extends l{constructor(){super();t(this,f,b),this._foundation=new s(new i(this))}};r=e([a({name:d.elementName})],r);function z(){o(r)}export{d as a,r as b,z as c};
7
+ //# sourceMappingURL=chunk.CGFSMACZ.js.map
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Tyler Technologies, Inc.
4
+ * License: Apache-2.0
5
+ */
6
+ var r=typeof Intl!="undefined"&&Intl.v8BreakIterator,t=class e{static get isBrowser(){return typeof document=="object"&&!!document}static get isMobile(){return e.isBrowser&&/Mobi/.test(navigator.userAgent)}static get EDGE(){return e.isBrowser&&/(edge)/i.test(navigator.userAgent)}static get TRIDENT(){return e.isBrowser&&/(msie|trident)/i.test(navigator.userAgent)}static get BLINK(){return e.isBrowser&&!!(window.chrome||r)&&!!CSS&&!e.EDGE&&!e.TRIDENT}static get WEBKIT(){return e.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!e.BLINK&&!e.EDGE&&!e.TRIDENT}static get IOS(){return e.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static get FIREFOX(){return e.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent)}static get ANDROID(){return e.isBrowser&&/android/i.test(navigator.userAgent)&&!e.TRIDENT}SAFARI(){return e.isBrowser&&/safari/i.test(navigator.userAgent)&&e.WEBKIT}};function s(){return HTMLElement.prototype.hasOwnProperty("popover")}function i(){return ElementInternals.prototype.hasOwnProperty("role")}function a(){return!t.isMobile}function u(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}export{t as a,s as b,i as c,a as d,u as e};
7
+ /*! Bundled license information:
8
+
9
+ @tylertech/forge-core/esm/utils/platform.js:
10
+ (**
11
+ * @license
12
+ * Copyright Google LLC All Rights Reserved.
13
+ *
14
+ * Use of this source code is governed by an MIT-style license that can be
15
+ * found in the LICENSE file at https://angular.io/license
16
+ *)
17
+ */
18
+ //# sourceMappingURL=chunk.DJSHVUEM.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../../../node_modules/@tylertech/forge-core/esm/utils/platform.js"],
4
- "sourcesContent": ["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Whether the current platform supports the V8 Break Iterator. The V8 check\n// is necessary to detect all Blink based browsers.\nconst hasV8BreakIterator = typeof Intl !== 'undefined' && Intl.v8BreakIterator;\n/**\n * Class used to detect the current platform by comparing the userAgent strings and\n * checking browser-specific global properties.\n * @docs-private\n */\nexport class Platform {\n static get isBrowser() {\n return typeof document === 'object' && !!document;\n }\n static get isMobile() {\n return Platform.isBrowser && /Mobi/.test(navigator.userAgent);\n }\n /** Layout Engines */\n static get EDGE() {\n return Platform.isBrowser && /(edge)/i.test(navigator.userAgent);\n }\n static get TRIDENT() {\n return Platform.isBrowser && /(msie|trident)/i.test(navigator.userAgent);\n }\n // EdgeHTML and Trident mock Blink specific things and need to be excluded from this check.\n static get BLINK() {\n return Platform.isBrowser && (!!(window.chrome || hasV8BreakIterator) && !!CSS && !Platform.EDGE && !Platform.TRIDENT);\n }\n // Webkit is part of the userAgent in EdgeHTML, Blink and Trident. Therefore we need to\n // ensure that Webkit runs standalone and is not used as another engine's base.\n static get WEBKIT() {\n return Platform.isBrowser && /AppleWebKit/i.test(navigator.userAgent) && !Platform.BLINK && !Platform.EDGE && !Platform.TRIDENT;\n }\n /** Browsers and Platform Types */\n static get IOS() {\n return Platform.isBrowser && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;\n }\n // It's difficult to detect the plain Gecko engine, because most of the browsers identify\n // them self as Gecko-like browsers and modify the userAgent's according to that.\n // Since we only cover one explicit Firefox case, we can simply check for Firefox\n // instead of having an unstable check for Gecko.\n static get FIREFOX() {\n return Platform.isBrowser && /(firefox|minefield)/i.test(navigator.userAgent);\n }\n // Trident on mobile adds the android platform to the userAgent to trick detections.\n static get ANDROID() {\n return Platform.isBrowser && /android/i.test(navigator.userAgent) && !Platform.TRIDENT;\n }\n // Safari browsers will include the Safari keyword in their userAgent. Some browsers may fake\n // this and just place the Safari keyword in the userAgent. To be more safe about Safari every\n // Safari browser should also use Webkit as its layout engine.\n SAFARI() {\n return Platform.isBrowser && /safari/i.test(navigator.userAgent) && Platform.WEBKIT;\n }\n}\n"],
5
- "mappings": "AASA,IAAMA,EAAqB,OAAO,MAAS,aAAe,KAAK,gBAMlDC,EAAN,MAAMC,CAAS,CAClB,WAAW,WAAY,CACnB,OAAO,OAAO,UAAa,UAAY,CAAC,CAAC,QAC7C,CACA,WAAW,UAAW,CAClB,OAAOA,EAAS,WAAa,OAAO,KAAK,UAAU,SAAS,CAChE,CAEA,WAAW,MAAO,CACd,OAAOA,EAAS,WAAa,UAAU,KAAK,UAAU,SAAS,CACnE,CACA,WAAW,SAAU,CACjB,OAAOA,EAAS,WAAa,kBAAkB,KAAK,UAAU,SAAS,CAC3E,CAEA,WAAW,OAAQ,CACf,OAAOA,EAAS,WAAc,CAAC,EAAE,OAAO,QAAUF,IAAuB,CAAC,CAAC,KAAO,CAACE,EAAS,MAAQ,CAACA,EAAS,OAClH,CAGA,WAAW,QAAS,CAChB,OAAOA,EAAS,WAAa,eAAe,KAAK,UAAU,SAAS,GAAK,CAACA,EAAS,OAAS,CAACA,EAAS,MAAQ,CAACA,EAAS,OAC5H,CAEA,WAAW,KAAM,CACb,OAAOA,EAAS,WAAa,mBAAmB,KAAK,UAAU,SAAS,GAAK,CAAC,OAAO,QACzF,CAKA,WAAW,SAAU,CACjB,OAAOA,EAAS,WAAa,uBAAuB,KAAK,UAAU,SAAS,CAChF,CAEA,WAAW,SAAU,CACjB,OAAOA,EAAS,WAAa,WAAW,KAAK,UAAU,SAAS,GAAK,CAACA,EAAS,OACnF,CAIA,QAAS,CACL,OAAOA,EAAS,WAAa,UAAU,KAAK,UAAU,SAAS,GAAKA,EAAS,MACjF,CACJ",
6
- "names": ["hasV8BreakIterator", "Platform", "_Platform"]
3
+ "sources": ["../../../../../../node_modules/@tylertech/forge-core/esm/utils/platform.js", "../../src/core/utils/feature-detection.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Whether the current platform supports the V8 Break Iterator. The V8 check\n// is necessary to detect all Blink based browsers.\nconst hasV8BreakIterator = typeof Intl !== 'undefined' && Intl.v8BreakIterator;\n/**\n * Class used to detect the current platform by comparing the userAgent strings and\n * checking browser-specific global properties.\n * @docs-private\n */\nexport class Platform {\n static get isBrowser() {\n return typeof document === 'object' && !!document;\n }\n static get isMobile() {\n return Platform.isBrowser && /Mobi/.test(navigator.userAgent);\n }\n /** Layout Engines */\n static get EDGE() {\n return Platform.isBrowser && /(edge)/i.test(navigator.userAgent);\n }\n static get TRIDENT() {\n return Platform.isBrowser && /(msie|trident)/i.test(navigator.userAgent);\n }\n // EdgeHTML and Trident mock Blink specific things and need to be excluded from this check.\n static get BLINK() {\n return Platform.isBrowser && (!!(window.chrome || hasV8BreakIterator) && !!CSS && !Platform.EDGE && !Platform.TRIDENT);\n }\n // Webkit is part of the userAgent in EdgeHTML, Blink and Trident. Therefore we need to\n // ensure that Webkit runs standalone and is not used as another engine's base.\n static get WEBKIT() {\n return Platform.isBrowser && /AppleWebKit/i.test(navigator.userAgent) && !Platform.BLINK && !Platform.EDGE && !Platform.TRIDENT;\n }\n /** Browsers and Platform Types */\n static get IOS() {\n return Platform.isBrowser && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;\n }\n // It's difficult to detect the plain Gecko engine, because most of the browsers identify\n // them self as Gecko-like browsers and modify the userAgent's according to that.\n // Since we only cover one explicit Firefox case, we can simply check for Firefox\n // instead of having an unstable check for Gecko.\n static get FIREFOX() {\n return Platform.isBrowser && /(firefox|minefield)/i.test(navigator.userAgent);\n }\n // Trident on mobile adds the android platform to the userAgent to trick detections.\n static get ANDROID() {\n return Platform.isBrowser && /android/i.test(navigator.userAgent) && !Platform.TRIDENT;\n }\n // Safari browsers will include the Safari keyword in their userAgent. Some browsers may fake\n // this and just place the Safari keyword in the userAgent. To be more safe about Safari every\n // Safari browser should also use Webkit as its layout engine.\n SAFARI() {\n return Platform.isBrowser && /safari/i.test(navigator.userAgent) && Platform.WEBKIT;\n }\n}\n", "import { Platform } from '@tylertech/forge-core';\n\n/**\n * Detects if the browser supports the `popover` attribute.\n * @returns {boolean}\n */\nexport function supportsPopover(): boolean {\n return HTMLElement.prototype.hasOwnProperty('popover');\n}\n\n/**\n * Detects if the browser supports ARIA properties in Element Internals.\n * \n * This currently always returns false because tooling is not yet able able to detect properties\n * set on Element Internals.\n * @returns {boolean}\n */\nexport function supportsElementInternalsAria(): boolean {\n return ElementInternals.prototype.hasOwnProperty('role');\n}\n\n/**\n * Detects if the browser supports the hovering elements as the users primary input mechanism.\n * @returns {boolean}\n */\nexport function supportsHover(): boolean {\n // TODO: hover media query is not working in CI headless chrome, so we are using the Platform.isMobile flag for now.\n // This should be reverted once we switch to using puppeteer or playwright for testing in CI.\n // return window.matchMedia('(hover: hover)').matches;\n return !Platform.isMobile;\n}\n\n/**\n * Detects if the browser is set to prefer reduced motion.\n * @returns {boolean}\n */\nexport function prefersReducedMotion(): boolean {\n return window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n}\n"],
5
+ "mappings": "AASA,IAAMA,EAAqB,OAAO,MAAS,aAAe,KAAK,gBAMlDC,EAAN,MAAMC,CAAS,CAClB,WAAW,WAAY,CACnB,OAAO,OAAO,UAAa,UAAY,CAAC,CAAC,QAC7C,CACA,WAAW,UAAW,CAClB,OAAOA,EAAS,WAAa,OAAO,KAAK,UAAU,SAAS,CAChE,CAEA,WAAW,MAAO,CACd,OAAOA,EAAS,WAAa,UAAU,KAAK,UAAU,SAAS,CACnE,CACA,WAAW,SAAU,CACjB,OAAOA,EAAS,WAAa,kBAAkB,KAAK,UAAU,SAAS,CAC3E,CAEA,WAAW,OAAQ,CACf,OAAOA,EAAS,WAAc,CAAC,EAAE,OAAO,QAAUF,IAAuB,CAAC,CAAC,KAAO,CAACE,EAAS,MAAQ,CAACA,EAAS,OAClH,CAGA,WAAW,QAAS,CAChB,OAAOA,EAAS,WAAa,eAAe,KAAK,UAAU,SAAS,GAAK,CAACA,EAAS,OAAS,CAACA,EAAS,MAAQ,CAACA,EAAS,OAC5H,CAEA,WAAW,KAAM,CACb,OAAOA,EAAS,WAAa,mBAAmB,KAAK,UAAU,SAAS,GAAK,CAAC,OAAO,QACzF,CAKA,WAAW,SAAU,CACjB,OAAOA,EAAS,WAAa,uBAAuB,KAAK,UAAU,SAAS,CAChF,CAEA,WAAW,SAAU,CACjB,OAAOA,EAAS,WAAa,WAAW,KAAK,UAAU,SAAS,GAAK,CAACA,EAAS,OACnF,CAIA,QAAS,CACL,OAAOA,EAAS,WAAa,UAAU,KAAK,UAAU,SAAS,GAAKA,EAAS,MACjF,CACJ,ECrDO,SAASC,GAA2B,CACzC,OAAO,YAAY,UAAU,eAAe,SAAS,CACvD,CASO,SAASC,GAAwC,CACtD,OAAO,iBAAiB,UAAU,eAAe,MAAM,CACzD,CAMO,SAASC,GAAyB,CAIvC,MAAO,CAACC,EAAS,QACnB,CAMO,SAASC,GAAgC,CAC9C,OAAO,OAAO,WAAW,kCAAkC,EAAE,OAC/D",
6
+ "names": ["hasV8BreakIterator", "Platform", "_Platform", "supportsPopover", "supportsElementInternalsAria", "supportsHover", "Platform", "prefersReducedMotion"]
7
7
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Tyler Technologies, Inc.
4
+ * License: Apache-2.0
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
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/app-bar/menu-button/app-bar-menu-button-constants.ts", "../../src/app-bar/menu-button/app-bar-menu-button.ts", "../../src/app-bar/menu-button/index.ts"],
4
4
  "sourcesContent": ["import { COMPONENT_NAME_PREFIX } from '../../constants';\n\nconst elementName: keyof HTMLElementTagNameMap = `${COMPONENT_NAME_PREFIX}app-bar-menu-button`;\n\nconst observedAttributes = {\n ICON: 'icon'\n};\n\nconst attributes = {\n ...observedAttributes\n};\n\nconst forwardedAttributes = ['aria-label', 'aria-labelledby'];\n\nexport const APP_BAR_MENU_BUTTON_CONSTANTS = {\n elementName,\n observedAttributes,\n attributes,\n forwardedAttributes\n};\n", "import { CustomElement, attachLightTemplate, toggleAttribute, getLightElement } from '@tylertech/forge-core';\nimport { APP_BAR_MENU_BUTTON_CONSTANTS } from './app-bar-menu-button-constants';\nimport { IconButtonComponent, ICON_BUTTON_CONSTANTS, IIconButtonComponent } from '../../icon-button';\nimport { TooltipComponent } from '../../tooltip';\nimport { IconRegistry, ICON_CONSTANTS, IIconComponent } from '../../icon';\nimport { tylIconMenu } from '@tylertech/tyler-icons/standard';\nimport { BaseComponent, IBaseComponent } from '../../core/base/base-component';\nimport { forwardAttributes } from '../../core/utils/reflect-utils';\n\nconst template = '<template><forge-icon-button><forge-icon name=\\\"menu\\\"></forge-icon></forge-icon-button><forge-tooltip type=\\\"label\\\" placement=\\\"bottom\\\">Menu</forge-tooltip></template>';\n\nexport interface IAppBarMenuButtonComponent extends IBaseComponent {\n icon: string;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-app-bar-menu-button': IAppBarMenuButtonComponent;\n }\n}\n\n/**\n * @tag forge-app-bar-menu-button\n * \n * @description A utility component with predefined icon and descriptions for use in an app bar `start` slot.\n * \n * @property {string} icon - The name of an alternative icon to display.\n * \n * @attribute {string} [icon] - The name of an alternative icon to display.\n * @attribute {string} [aria-label] - The aria-label to apply to the button.\n * @attribute {string} [aria-labelledby] - The id of an element to use as the aria-labelledby attribute.\n */\n@CustomElement({\n name: APP_BAR_MENU_BUTTON_CONSTANTS.elementName,\n dependencies: [\n IconButtonComponent,\n TooltipComponent\n ]\n})\nexport class AppBarMenuButtonComponent extends BaseComponent implements IAppBarMenuButtonComponent {\n public static get observedAttributes(): string[] {\n return Object.values(APP_BAR_MENU_BUTTON_CONSTANTS.observedAttributes);\n };\n\n private _iconButtonElement: IIconButtonComponent;\n private _iconElement: IIconComponent;\n private _forwardObserver?: MutationObserver;\n private _iconName: string = tylIconMenu.name;\n\n constructor() {\n super();\n IconRegistry.define(tylIconMenu);\n }\n\n public initializedCallback(): void {\n attachLightTemplate(this, template);\n }\n\n public connectedCallback(): void {\n this._iconButtonElement = getLightElement(this, ICON_BUTTON_CONSTANTS.elementName) as IIconButtonComponent;\n this._iconElement = this._iconButtonElement.querySelector(ICON_CONSTANTS.elementName) as IIconComponent;\n\n if (this._iconElement.name !== this._iconName) {\n this._iconElement.name = this._iconName;\n }\n\n const originalAriaLabelledby = this._iconButtonElement.getAttribute('aria-labelledby');\n\n this._forwardObserver = forwardAttributes(this, APP_BAR_MENU_BUTTON_CONSTANTS.forwardedAttributes, (name, value) => {\n if (name === 'aria-labelledby' && !value) {\n value = originalAriaLabelledby;\n }\n toggleAttribute(this._iconButtonElement, !!value, name, value ?? undefined);\n });\n }\n\n public disconnectedCallback(): void {\n this._forwardObserver?.disconnect();\n this._forwardObserver = undefined;\n }\n\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n switch (name) {\n case APP_BAR_MENU_BUTTON_CONSTANTS.attributes.ICON:\n this.icon = newValue;\n break;\n }\n }\n\n public get icon(): string {\n return this._iconName;\n }\n public set icon(value: string) {\n if (this._iconName !== value) {\n this._iconName = value ?? tylIconMenu.name;\n if (this._iconElement) {\n this._iconElement.name = this._iconName;\n }\n this.setAttribute(APP_BAR_MENU_BUTTON_CONSTANTS.attributes.ICON, this._iconName);\n }\n }\n}\n", "import { defineCustomElement } from '@tylertech/forge-core';\nimport { AppBarMenuButtonComponent } from './app-bar-menu-button';\n\nexport * from './app-bar-menu-button-constants';\nexport * from './app-bar-menu-button';\n\nexport function defineAppBarMenuButtonComponent(): void {\n defineCustomElement(AppBarMenuButtonComponent);\n}\n"],
5
- "mappings": "0bAEA,IAAMA,EAA2C,GAAGC,uBAE9CC,EAAqB,CACzB,KAAM,MACR,EAEMC,EAAaC,EAAA,GACdF,GAGCG,EAAsB,CAAC,aAAc,iBAAiB,EAE/CC,EAAgC,CAC3C,YAAAN,EACA,mBAAAE,EACA,WAAAC,EACA,oBAAAE,CACF,ECVA,IAAME,EAAW,uKA8BJC,EAAN,cAAwCC,CAAoD,CAUjG,aAAc,CACZ,MAAM,EAHR,KAAQ,UAAoBC,EAAY,KAItCC,EAAa,OAAOD,CAAW,CACjC,CAZA,WAAkB,oBAA+B,CAC/C,OAAO,OAAO,OAAOE,EAA8B,kBAAkB,CACvE,CAYO,qBAA4B,CACjCC,EAAoB,KAAMN,CAAQ,CACpC,CAEO,mBAA0B,CAC/B,KAAK,mBAAqBO,EAAgB,KAAMC,EAAsB,WAAW,EACjF,KAAK,aAAe,KAAK,mBAAmB,cAAcC,EAAe,WAAW,EAEhF,KAAK,aAAa,OAAS,KAAK,YAClC,KAAK,aAAa,KAAO,KAAK,WAGhC,IAAMC,EAAyB,KAAK,mBAAmB,aAAa,iBAAiB,EAErF,KAAK,iBAAmBC,EAAkB,KAAMN,EAA8B,oBAAqB,CAACO,EAAMC,IAAU,CAC9GD,IAAS,mBAAqB,CAACC,IACjCA,EAAQH,GAEVI,EAAgB,KAAK,mBAAoB,CAAC,CAACD,EAAOD,EAAMC,GAAA,KAAAA,EAAS,MAAS,CAC5E,CAAC,CACH,CAEO,sBAA6B,CA5EtC,IAAAE,GA6EIA,EAAA,KAAK,mBAAL,MAAAA,EAAuB,aACvB,KAAK,iBAAmB,MAC1B,CAEO,yBAAyBH,EAAcI,EAAkBC,EAAwB,CACtF,OAAQL,EAAM,CACZ,KAAKP,EAA8B,WAAW,KAC5C,KAAK,KAAOY,EACZ,KACJ,CACF,CAEA,IAAW,MAAe,CACxB,OAAO,KAAK,SACd,CACA,IAAW,KAAKJ,EAAe,CACzB,KAAK,YAAcA,IACrB,KAAK,UAAYA,GAAA,KAAAA,EAASV,EAAY,KAClC,KAAK,eACP,KAAK,aAAa,KAAO,KAAK,WAEhC,KAAK,aAAaE,EAA8B,WAAW,KAAM,KAAK,SAAS,EAEnF,CACF,EA9DaJ,EAANiB,EAAA,CAPNC,EAAc,CACb,KAAMd,EAA8B,YACpC,aAAc,CACZe,EACAC,CACF,CACF,CAAC,GACYpB,GCjCN,SAASqB,GAAwC,CACtDC,EAAoBC,CAAyB,CAC/C",
5
+ "mappings": "yZAEA,IAAMA,EAA2C,GAAGC,uBAE9CC,EAAqB,CACzB,KAAM,MACR,EAEMC,EAAaC,EAAA,GACdF,GAGCG,EAAsB,CAAC,aAAc,iBAAiB,EAE/CC,EAAgC,CAC3C,YAAAN,EACA,mBAAAE,EACA,WAAAC,EACA,oBAAAE,CACF,ECVA,IAAME,EAAW,uKA8BJC,EAAN,cAAwCC,CAAoD,CAUjG,aAAc,CACZ,MAAM,EAHR,KAAQ,UAAoBC,EAAY,KAItCC,EAAa,OAAOD,CAAW,CACjC,CAZA,WAAkB,oBAA+B,CAC/C,OAAO,OAAO,OAAOE,EAA8B,kBAAkB,CACvE,CAYO,qBAA4B,CACjCC,EAAoB,KAAMN,CAAQ,CACpC,CAEO,mBAA0B,CAC/B,KAAK,mBAAqBO,EAAgB,KAAMC,EAAsB,WAAW,EACjF,KAAK,aAAe,KAAK,mBAAmB,cAAcC,EAAe,WAAW,EAEhF,KAAK,aAAa,OAAS,KAAK,YAClC,KAAK,aAAa,KAAO,KAAK,WAGhC,IAAMC,EAAyB,KAAK,mBAAmB,aAAa,iBAAiB,EAErF,KAAK,iBAAmBC,EAAkB,KAAMN,EAA8B,oBAAqB,CAACO,EAAMC,IAAU,CAC9GD,IAAS,mBAAqB,CAACC,IACjCA,EAAQH,GAEVI,EAAgB,KAAK,mBAAoB,CAAC,CAACD,EAAOD,EAAMC,GAAA,KAAAA,EAAS,MAAS,CAC5E,CAAC,CACH,CAEO,sBAA6B,CA5EtC,IAAAE,GA6EIA,EAAA,KAAK,mBAAL,MAAAA,EAAuB,aACvB,KAAK,iBAAmB,MAC1B,CAEO,yBAAyBH,EAAcI,EAAkBC,EAAwB,CACtF,OAAQL,EAAM,CACZ,KAAKP,EAA8B,WAAW,KAC5C,KAAK,KAAOY,EACZ,KACJ,CACF,CAEA,IAAW,MAAe,CACxB,OAAO,KAAK,SACd,CACA,IAAW,KAAKJ,EAAe,CACzB,KAAK,YAAcA,IACrB,KAAK,UAAYA,GAAA,KAAAA,EAASV,EAAY,KAClC,KAAK,eACP,KAAK,aAAa,KAAO,KAAK,WAEhC,KAAK,aAAaE,EAA8B,WAAW,KAAM,KAAK,SAAS,EAEnF,CACF,EA9DaJ,EAANiB,EAAA,CAPNC,EAAc,CACb,KAAMd,EAA8B,YACpC,aAAc,CACZe,EACAC,CACF,CACF,CAAC,GACYpB,GCjCN,SAASqB,GAAwC,CACtDC,EAAoBC,CAAyB,CAC/C",
6
6
  "names": ["elementName", "COMPONENT_NAME_PREFIX", "observedAttributes", "attributes", "__spreadValues", "forwardedAttributes", "APP_BAR_MENU_BUTTON_CONSTANTS", "template", "AppBarMenuButtonComponent", "BaseComponent", "tylIconMenu", "IconRegistry", "APP_BAR_MENU_BUTTON_CONSTANTS", "attachLightTemplate", "getLightElement", "ICON_BUTTON_CONSTANTS", "ICON_CONSTANTS", "originalAriaLabelledby", "forwardAttributes", "name", "value", "toggleAttribute", "_a", "oldValue", "newValue", "__decorateClass", "CustomElement", "IconButtonComponent", "TooltipComponent", "defineAppBarMenuButtonComponent", "defineCustomElement", "AppBarMenuButtonComponent"]
7
7
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Tyler Technologies, Inc.
4
+ * License: Apache-2.0
5
+ */
6
+ import{a as d,d as B}from"./chunk.RFT3BAJ2.js";import{a as S,b as M,c as O,d as N}from"./chunk.72BKSMAZ.js";import{a as i}from"./chunk.RONMNRSH.js";import{e as L}from"./chunk.UV3WIHCM.js";import{c as x}from"./chunk.GBAVJILM.js";import{d as y}from"./chunk.GIENHEMN.js";import{j as A}from"./chunk.RLQB7224.js";import{d as I}from"./chunk.T7NWP7DB.js";import{a as F}from"./chunk.NVUMRW44.js";import{a as C}from"./chunk.VRSPT7WX.js";import{a as f,e as T,f as u}from"./chunk.LNTTU2GL.js";import{r as g}from"./chunk.L4QSPQDE.js";import{a as _,k as v}from"./chunk.J2M2MXP2.js";import{d as h}from"./chunk.M3QDAYD2.js";var m=class extends O{constructor(e){super(e);this._inputElements=[];this._destroyValueChangerListeners=[];this._fieldElement=u(e,i.selectors.FIELD),this._clearButtonSlotElement=u(e,i.selectors.CLEAR_BUTTON_SLOT),this._fieldElement.setAttribute("exportparts",Object.values(d.parts).join(", ")),this._clearButtonSlotElement.remove()}get hasValue(){return this._inputElements.some(e=>!!e.value)}get hasPlaceholder(){return this._inputElements.some(e=>!!e.placeholder)}get popoverTargetElement(){return this._popoverTargetElement||(this._popoverTargetElement=u(this._fieldElement,d.selectors.POPOVER_TARGET)),this._popoverTargetElement}addRootListener(e,t){this._fieldElement.addEventListener(e,t)}removeRootListener(e,t){this._fieldElement.removeEventListener(e,t)}disableInput(e){this._inputElements.forEach(t=>t.disabled=e)}inputIsDisabled(){return this._inputElements.some(e=>e.disabled)}click(){var e;(e=this._inputElements[0])==null||e.focus()}applyLabel(e){this._inputElements.forEach(t=>{g(t,!!e,"aria-label",e!=null?e:"")})}handleDefaultSlotChange(e,t){var a;(a=this._inputMutationObserver)==null||a.disconnect();let n=e.assignedElements();n.length&&(this._inputElements=n.filter(o=>o.matches(i.selectors.INPUT)),this._fieldElement.multiline=this._inputElements.some(o=>o.tagName===i.tagNames.TEXTAREA),this._inputMutationObserver=new MutationObserver(o=>{o.forEach(l=>{if(l.attributeName){let r=l.target.getAttribute(l.attributeName),H=l.attributeName;t(H,r)}})}),this._inputElements.forEach(o=>{var l;(l=this._inputMutationObserver)==null||l.observe(o,{attributes:!0,attributeFilter:i.observedInputAttributes}),this._component.disabled&&(o.disabled=!0),Object.values(i.observedInputAttributes).forEach(p=>{let r=p;t(r,o.getAttribute(r))})}))}tryAddValueChangeListener(e,t){this._destroyValueChangerListeners.forEach(n=>n()),this._destroyValueChangerListeners=this._inputElements.map(n=>L(e,n,"value",t))}removeValueChangeListener(){this._destroyValueChangerListeners.forEach(e=>e())}tryFloatLabel(e){if(e!==void 0){this._fieldElement.floatLabel=e;return}this._fieldElement.floatLabel=this.hasValue||this.hasPlaceholder}tryConnectSlottedLabel(e){var p;if(this._inputElements.length!==1||(p=this._inputElements[0].labels)!=null&&p.length)return;let t=this._inputElements[0],n=e.assignedElements({flatten:!0}),a=n.find(r=>r.matches(i.selectors.FORGE_LABEL));if(a){a.forElement=this._component,a.clickTarget=t;return}let o=n.find(r=>r.tagName===i.tagNames.LABEL);if(!o||o.control)return;let l=t.id||`forge-input-${_()}`;t.id=l,o.htmlFor=l}connectClearButton(e){this._clearButtonSlotElement.addEventListener("click",e)}disconnectClearButton(e){this._clearButtonSlotElement.removeEventListener("click",e)}toggleClearButtonVisibility(e){e?this._fieldElement.append(this._clearButtonSlotElement):this._clearButtonSlotElement.remove()}clearInput(){this._inputElements.length&&(this._inputElements.forEach(e=>e.value=""),this._inputElements[0].focus())}};var b=class extends N{constructor(e){super(e);this._adapter=e;this._showClear=!1;this._slotChangeListener=this._onSlotChange.bind(this);this._inputAttributeListener=this._onInputAttributeChange.bind(this);this._valueChangeListener=this._onValueChange.bind(this);this._inputListener=this._onValueChange.bind(this);this._clearButtonClickListener=e=>this._onClearButtonClick(e)}initialize(){this._adapter.addRootListener("slotchange",this._slotChangeListener),this._adapter.addRootListener("input",this._inputListener)}disconnect(){this._adapter.removeRootListener("slotchange",this._slotChangeListener),this._adapter.removeRootListener("input",this._inputListener),this._adapter.removeValueChangeListener()}get popoverTargetElement(){return this._adapter.popoverTargetElement}_onSlotChange(e){let t=e.target;switch(t.name){case"label":this._adapter.tryConnectSlottedLabel(t);break;case"":this._adapter.handleDefaultSlotChange(t,this._inputAttributeListener),this._adapter.tryAddValueChangeListener(this,this._valueChangeListener),this._tryFloatLabel();break}}_onInputAttributeChange(e,t){switch(e){case"disabled":this.disabled=t!==null;break;case"placeholder":this._tryFloatLabel();break}}_onClearButtonClick(e){let t=new CustomEvent(i.events.CLEAR,{bubbles:!0,cancelable:!0,composed:!0});this._adapter.dispatchHostEvent(t),t.defaultPrevented||this._adapter.clearInput()}_onValueChange(){this._tryFloatLabel(),this._toggleClearButtonVisibility()}_toggleClearButtonVisibility(){this._adapter.toggleClearButtonVisibility(this._showClear&&this._hasValue&&!this.disabled)}get showClear(){return this._showClear}set showClear(e){this._showClear!==e&&(this._showClear=e,this._adapter.toggleHostAttribute(i.attributes.SHOW_CLEAR,e),e?this._adapter.connectClearButton(this._clearButtonClickListener):this._adapter.disconnectClearButton(this._clearButtonClickListener),this._toggleClearButtonVisibility())}get disabled(){return super.disabled}set disabled(e){this._disabled!==e&&(this._disabled=e,this._adapter.toggleHostAttribute(d.attributes.DISABLED,e),this._adapter.setFieldProperty("disabled",e),this._adapter.disableInput(e),this._toggleClearButtonVisibility())}get labelPosition(){return super.labelPosition}set labelPosition(e){this._labelPosition!==e&&(this._labelPosition=e,this._adapter.toggleHostAttribute(d.attributes.LABEL_POSITION,!0,e),this._adapter.setFieldProperty("labelPosition",e),this._tryFloatLabel())}};var V='<template><forge-field id="field"><slot slot="label" name="label"></slot><slot slot="start" name="start"></slot><slot></slot><slot slot="end" name="end"></slot><slot slot="end" name="clear-button"><forge-icon-button tabindex="-1" dense><forge-icon name="clear"></forge-icon></forge-icon-button><forge-tooltip type="label"><slot name="clear-button-tooltip">Clear</slot></forge-tooltip></slot><slot slot="accessory" name="accessory"></slot><slot slot="support-text-start" name="support-text-start"></slot><slot slot="support-text-end" name="support-text-end"></slot><slot slot="start" name="leading"></slot><slot slot="end" name="trailing"></slot><slot slot="accessory" name="addon-end"></slot><slot slot="support-text-start" name="helper-text"></slot></forge-field></template>',k=":host{display:block}:host([hidden]){display:none}forge-field{display:contents}",s=class extends M{constructor(){super();T(this,V,k),this._foundation=new b(new m(this)),I.define(A)}static get observedAttributes(){return[...Object.values(S.observedAttributes),...Object.values(i.observedAttributes)]}connectedCallback(){this._foundation.initialize()}attributeChangedCallback(e,t,n){switch(super.attributeChangedCallback(e,t,n),e){case i.attributes.SHOW_CLEAR:this.showClear=v(n);break}}get popoverTargetElement(){return this._foundation.popoverTargetElement}};h([F()],s.prototype,"showClear",2),s=h([C({name:i.elementName,dependencies:[B,y,x]})],s);function Ee(){f(s)}export{m as a,b,s as c,Ee as d};
7
+ //# sourceMappingURL=chunk.DZJ6HBAG.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/text-field/text-field-adapter.ts", "../../src/text-field/text-field-foundation.ts", "../../src/text-field/text-field.ts", "../../src/text-field/index.ts"],
4
+ "sourcesContent": ["import { getShadowElement, listenOwnProperty, randomChars, toggleAttribute } from '@tylertech/forge-core';\nimport { BASE_FIELD_CONSTANTS, FIELD_CONSTANTS, IFieldComponent } from '../field';\nimport { BaseFieldAdapter, IBaseFieldAdapter } from '../field/base/base-field-adapter';\nimport { LabelComponent } from '../label';\nimport { ITextFieldComponent } from './text-field';\nimport { TextFieldInputAttributeObserver, TextFieldValueChangeListener, TEXT_FIELD_CONSTANTS } from './text-field-constants';\n\nexport interface ITextFieldAdapter extends IBaseFieldAdapter {\n readonly popoverTargetElement: HTMLElement;\n addRootListener(name: keyof HTMLElementEventMap, listener: EventListener): void;\n removeRootListener(name: keyof HTMLElementEventMap, listener: EventListener): void;\n disableInput(disabled: boolean): void;\n handleDefaultSlotChange(slot: HTMLSlotElement, listener: TextFieldInputAttributeObserver): void;\n tryAddValueChangeListener(context: unknown, listener: TextFieldValueChangeListener): void;\n removeValueChangeListener(): void;\n tryFloatLabel(force?: boolean): void;\n tryConnectSlottedLabel(slot: HTMLSlotElement): void;\n connectClearButton(listener: EventListener): void;\n disconnectClearButton(listener: EventListener): void;\n toggleClearButtonVisibility(visible: boolean): void;\n clearInput(): void;\n}\n\nexport class TextFieldAdapter extends BaseFieldAdapter implements ITextFieldAdapter {\n protected readonly _fieldElement: IFieldComponent;\n private readonly _clearButtonSlotElement: HTMLSlotElement;\n private _popoverTargetElement: HTMLElement;\n private _inputElements: (HTMLInputElement | HTMLTextAreaElement)[] = [];\n private _inputMutationObserver?: MutationObserver;\n private _destroyValueChangerListeners: (() => void)[] = [];\n\n public get hasValue(): boolean {\n return this._inputElements.some(el => !!el.value);\n }\n\n public get hasPlaceholder(): boolean {\n return this._inputElements.some(el => !!el.placeholder);\n }\n\n public get popoverTargetElement(): HTMLElement {\n if (!this._popoverTargetElement) {\n this._popoverTargetElement = getShadowElement(this._fieldElement, FIELD_CONSTANTS.selectors.POPOVER_TARGET) as HTMLElement;\n }\n return this._popoverTargetElement;\n }\n\n constructor(component: ITextFieldComponent) {\n super(component);\n this._fieldElement = getShadowElement(component, TEXT_FIELD_CONSTANTS.selectors.FIELD) as IFieldComponent;\n this._clearButtonSlotElement = getShadowElement(component, TEXT_FIELD_CONSTANTS.selectors.CLEAR_BUTTON_SLOT) as HTMLSlotElement;\n this._fieldElement.setAttribute('exportparts', Object.values(FIELD_CONSTANTS.parts).join(', '));\n this._clearButtonSlotElement.remove();\n }\n\n public addRootListener(name: keyof HTMLElementEventMap, listener: EventListener): void {\n this._fieldElement.addEventListener(name, listener);\n }\n\n public removeRootListener(name: keyof HTMLElementEventMap, listener: EventListener): void {\n this._fieldElement.removeEventListener(name, listener);\n }\n\n public disableInput(disabled: boolean): void {\n this._inputElements.forEach(el => el.disabled = disabled);\n }\n\n public inputIsDisabled(): boolean {\n return this._inputElements.some(el => el.disabled);\n }\n\n public click(): void {\n this._inputElements[0]?.focus();\n }\n\n public applyLabel(value: string | null): void {\n this._inputElements.forEach((inputElement) => {\n toggleAttribute(inputElement, !!value, 'aria-label', value ?? '');\n });\n }\n\n public handleDefaultSlotChange(slot: HTMLSlotElement, listener: TextFieldInputAttributeObserver): void {\n // Destroy the mutation observer if it exists\n this._inputMutationObserver?.disconnect();\n\n // If there are no assigned elements, return\n const assignedElements = slot.assignedElements();\n if (!assignedElements.length) {\n return;\n }\n\n // Get all the slotted inputs and textfields, if a textfield is slotted the field is multiline\n this._inputElements = assignedElements.filter(el => el.matches(TEXT_FIELD_CONSTANTS.selectors.INPUT)) as (HTMLInputElement | HTMLTextAreaElement)[];\n this._fieldElement.multiline = this._inputElements.some(el => el.tagName === TEXT_FIELD_CONSTANTS.tagNames.TEXTAREA);\n\n // Create a new mutation observer and observe each input\n this._inputMutationObserver = new MutationObserver(mutations => {\n mutations.forEach(mutation => {\n if (mutation.attributeName) {\n const element = mutation.target as HTMLElement;\n const attribute = element.getAttribute(mutation.attributeName);\n const attributeName = mutation.attributeName as keyof typeof TEXT_FIELD_CONSTANTS.observedInputAttributes;\n listener(attributeName, attribute);\n }\n });\n });\n this._inputElements.forEach(el => {\n this._inputMutationObserver?.observe(el, { attributes: true, attributeFilter: TEXT_FIELD_CONSTANTS.observedInputAttributes });\n\n if (this._component.disabled) {\n el.disabled = true;\n }\n\n // Call the listener with each observed attribute to capture the initial state\n Object.values(TEXT_FIELD_CONSTANTS.observedInputAttributes).forEach(value => {\n const attributeName = value as keyof typeof TEXT_FIELD_CONSTANTS.observedInputAttributes;\n listener(attributeName, el.getAttribute(attributeName as string));\n });\n });\n }\n\n public tryAddValueChangeListener(context: unknown, listener: TextFieldValueChangeListener): void {\n // Destroy the previous value change listeners\n this._destroyValueChangerListeners.forEach(callback => callback());\n\n // Add a new value change listener to each input\n this._destroyValueChangerListeners = this._inputElements.map(el => {\n return listenOwnProperty(context, el, 'value', listener);\n });\n }\n\n public removeValueChangeListener(): void {\n this._destroyValueChangerListeners.forEach(callback => callback());\n }\n\n public tryFloatLabel(force?: boolean): void {\n // Force the label to float if specified\n if (force !== undefined) {\n this._fieldElement.floatLabel = force;\n return;\n }\n\n // Float the label if no input has a value or a placeholder\n this._fieldElement.floatLabel = this.hasValue || this.hasPlaceholder;\n }\n\n public tryConnectSlottedLabel(slot: HTMLSlotElement): void {\n // Only one input can be automatically connected to a label, return if there are no or more\n // than one inputs or if the input is already labelled\n if (this._inputElements.length !== 1 || this._inputElements[0].labels?.length) {\n return;\n }\n\n const inputElement = this._inputElements[0];\n const elements = slot.assignedElements({ flatten: true });\n\n // Attempt to find and connect a `<forge-label>` element\n const forgeLabel = elements.find(el => el.matches(TEXT_FIELD_CONSTANTS.selectors.FORGE_LABEL)) as LabelComponent | undefined;\n if (forgeLabel) {\n forgeLabel.forElement = this._component;\n forgeLabel.clickTarget = inputElement;\n return;\n }\n \n // Attempt to find and connect a `<label>` element\n const label = elements.find(el => el.tagName === TEXT_FIELD_CONSTANTS.tagNames.LABEL) as HTMLLabelElement | undefined;\n if (!label || label.control) {\n return;\n }\n\n const id = inputElement.id || `forge-input-${randomChars()}`;\n inputElement.id = id;\n label.htmlFor = id;\n }\n\n public connectClearButton(listener: EventListener): void {\n this._clearButtonSlotElement.addEventListener('click', listener);\n }\n\n public disconnectClearButton(listener: EventListener): void {\n this._clearButtonSlotElement.removeEventListener('click', listener);\n }\n\n public toggleClearButtonVisibility(visible: boolean): void {\n if (visible) {\n this._fieldElement.append(this._clearButtonSlotElement);\n } else {\n this._clearButtonSlotElement.remove();\n }\n }\n\n public clearInput(): void {\n if (!this._inputElements.length) {\n return;\n }\n this._inputElements.forEach(el => el.value = '');\n this._inputElements[0].focus();\n }\n}\n", "import { FieldLabelPosition, FIELD_CONSTANTS } from '../field';\nimport { BaseFieldFoundation, IBaseFieldFoundation } from '../field/base/base-field-foundation';\nimport { ITextFieldAdapter, TextFieldAdapter } from './text-field-adapter';\nimport { TextFieldInputAttributeObserver, TextFieldValueChangeListener, TEXT_FIELD_CONSTANTS } from './text-field-constants';\n\nexport interface ITextFieldFoundation extends IBaseFieldFoundation {\n readonly popoverTargetElement: HTMLElement;\n showClear: boolean;\n}\n\nexport class TextFieldFoundation extends BaseFieldFoundation<ITextFieldAdapter> implements ITextFieldFoundation {\n private _showClear = false;\n private _slotChangeListener: EventListener = this._onSlotChange.bind(this);\n private _inputAttributeListener: TextFieldInputAttributeObserver = this._onInputAttributeChange.bind(this);\n private _valueChangeListener: TextFieldValueChangeListener = this._onValueChange.bind(this);\n private _inputListener: EventListener = this._onValueChange.bind(this);\n private _clearButtonClickListener: EventListener = (evt: PointerEvent) => this._onClearButtonClick(evt);\n \n constructor(protected _adapter: TextFieldAdapter) {\n super(_adapter);\n }\n\n public initialize(): void {\n this._adapter.addRootListener('slotchange', this._slotChangeListener);\n this._adapter.addRootListener('input', this._inputListener);\n }\n\n public disconnect(): void {\n this._adapter.removeRootListener('slotchange', this._slotChangeListener);\n this._adapter.removeRootListener('input', this._inputListener);\n this._adapter.removeValueChangeListener();\n }\n\n public get popoverTargetElement(): HTMLElement {\n return this._adapter.popoverTargetElement;\n }\n\n private _onSlotChange(evt: Event): void {\n const target = evt.target as HTMLSlotElement;\n switch (target.name) {\n case 'label':\n this._adapter.tryConnectSlottedLabel(target);\n break;\n case '':\n this._adapter.handleDefaultSlotChange(target, this._inputAttributeListener);\n this._adapter.tryAddValueChangeListener(this, this._valueChangeListener);\n this._tryFloatLabel();\n break;\n }\n }\n\n private _onInputAttributeChange(name: keyof typeof TEXT_FIELD_CONSTANTS.observedInputAttributes, value: string | null): void {\n switch (name) {\n case 'disabled':\n this.disabled = value !== null;\n break;\n case 'placeholder':\n this._tryFloatLabel();\n break;\n }\n }\n\n private _onClearButtonClick(evt: Event): void {\n const event = new CustomEvent(TEXT_FIELD_CONSTANTS.events.CLEAR, { bubbles: true, cancelable: true, composed: true });\n this._adapter.dispatchHostEvent(event);\n if (!event.defaultPrevented) {\n this._adapter.clearInput();\n }\n };\n\n private _onValueChange(): void {\n this._tryFloatLabel();\n this._toggleClearButtonVisibility();\n }\n\n private _toggleClearButtonVisibility(): void {\n this._adapter.toggleClearButtonVisibility(this._showClear && this._hasValue && !this.disabled);\n }\n\n public get showClear(): boolean {\n return this._showClear;\n }\n public set showClear(value: boolean) {\n if (this._showClear !== value) {\n this._showClear = value;\n this._adapter.toggleHostAttribute(TEXT_FIELD_CONSTANTS.attributes.SHOW_CLEAR, value);\n\n if (value) {\n this._adapter.connectClearButton(this._clearButtonClickListener);\n } else {\n this._adapter.disconnectClearButton(this._clearButtonClickListener);\n }\n this._toggleClearButtonVisibility();\n }\n }\n\n public override get disabled(): boolean {\n return super.disabled;\n }\n public override set disabled(value: boolean) {\n if (this._disabled !== value) {\n this._disabled = value;\n this._adapter.toggleHostAttribute(FIELD_CONSTANTS.attributes.DISABLED, value);\n this._adapter.setFieldProperty('disabled', value);\n this._adapter.disableInput(value);\n this._toggleClearButtonVisibility();\n }\n }\n\n public override get labelPosition(): FieldLabelPosition {\n return super.labelPosition;\n }\n public override set labelPosition(value: FieldLabelPosition) {\n if (this._labelPosition !== value) {\n this._labelPosition = value;\n this._adapter.toggleHostAttribute(FIELD_CONSTANTS.attributes.LABEL_POSITION, true, value);\n this._adapter.setFieldProperty('labelPosition', value);\n this._tryFloatLabel();\n }\n }\n}\n", "import { attachShadowTemplate, coerceBoolean, CustomElement, FoundationProperty } from '@tylertech/forge-core';\nimport { tylIconClear } from '@tylertech/tyler-icons/standard';\nimport { BASE_FIELD_CONSTANTS, FieldComponent } from '../field';\nimport { BaseField, IBaseField } from '../field/base/base-field';\nimport { IconRegistry } from '../icon';\nimport { IconButtonComponent } from '../icon-button';\nimport { TooltipComponent } from '../tooltip';\nimport { TextFieldAdapter } from './text-field-adapter';\nimport { TEXT_FIELD_CONSTANTS } from './text-field-constants';\nimport { TextFieldFoundation } from './text-field-foundation';\n\nconst template = '<template><forge-field id=\\\"field\\\"><slot slot=\\\"label\\\" name=\\\"label\\\"></slot><slot slot=\\\"start\\\" name=\\\"start\\\"></slot><slot></slot><slot slot=\\\"end\\\" name=\\\"end\\\"></slot><slot slot=\\\"end\\\" name=\\\"clear-button\\\"><forge-icon-button tabindex=\\\"-1\\\" dense><forge-icon name=\\\"clear\\\"></forge-icon></forge-icon-button><forge-tooltip type=\\\"label\\\"><slot name=\\\"clear-button-tooltip\\\">Clear</slot></forge-tooltip></slot><slot slot=\\\"accessory\\\" name=\\\"accessory\\\"></slot><slot slot=\\\"support-text-start\\\" name=\\\"support-text-start\\\"></slot><slot slot=\\\"support-text-end\\\" name=\\\"support-text-end\\\"></slot><slot slot=\\\"start\\\" name=\\\"leading\\\"></slot><slot slot=\\\"end\\\" name=\\\"trailing\\\"></slot><slot slot=\\\"accessory\\\" name=\\\"addon-end\\\"></slot><slot slot=\\\"support-text-start\\\" name=\\\"helper-text\\\"></slot></forge-field></template>';\nconst styles = ':host{display:block}:host([hidden]){display:none}forge-field{display:contents}';\n\nexport interface ITextFieldComponent extends IBaseField {\n showClear: boolean;\n readonly popoverTargetElement: HTMLElement;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-text-field': ITextFieldComponent;\n }\n}\n\n/**\n * @tag forge-text-field\n * \n * @summary The Forge Text Field component wraps and styles an input or textarea element.\n * \n * @property {boolean} showClear - Whether the clear button appears when text has been entered.\n * @property {HTMLElement} popoverTargetElement - Gets a reference to the element that the popover should target for best alignment.\n * \n * @attribute {boolean} show-clear - Whether the clear button appears when text has been entered.\n * \n * @event {CustomEvent<null>} forge-text-field-clear - Dispatches when the clear button is clicked.\n * \n * @csspart root - The root container element.\n * @csspart label - The label element.\n * @csspart container - The container element surrounding the input.\n * @csspart input - The element containing te input slot.\n * @csspart start - The element containing the start slot.\n * @csspart end - The element containing the end slot.\n * @csspart popover-icon - The popover icon element.\n * @csspart accessory - The element containing the accessory slot.\n * @csspart support-text - The support text element.\n * @csspart support-text-start - The element containing the support text start slot.\n * @csspart support-text-end - The element containing the support text end slot.\n * @csspart focus-indicator - The focus indicator element.\n * \n * @slot - The default/unnamed slot for the field's input.\n * @slot label - Renders its content as a positioned label.\n * @slot start - Typically reserved for content/icons that render logically before the default slot content.\n * @slot end - Typically reserved content/icons that render logically after the default slot content.\n * @slot clear-button - Content slotted here replaces the default clear button.\n * @slot clear-button-tooltip - Sets the text content of the clear button's tooltip and accessible label.\n * @slot accessory - Used for content such as a button that is logically connected to the field but should appear distinct from the input.\n * @slot support-text-start - Used for content that provides additional information about the field. Aligns to the inline start of the field.\n * @slot support-text-end - Used for content that provides additional information about the field. Aligns to the inline end of the field.\n */\n\n@CustomElement({\n name: TEXT_FIELD_CONSTANTS.elementName,\n dependencies: [\n FieldComponent,\n IconButtonComponent,\n TooltipComponent\n ]\n})\nexport class TextFieldComponent extends BaseField<TextFieldFoundation> implements ITextFieldComponent {\n public static get observedAttributes(): string[] {\n return [\n ...Object.values(BASE_FIELD_CONSTANTS.observedAttributes),\n ...Object.values(TEXT_FIELD_CONSTANTS.observedAttributes)\n ];\n }\n\n protected readonly _foundation: TextFieldFoundation;\n\n constructor() {\n super();\n attachShadowTemplate(this, template, styles);\n this._foundation = new TextFieldFoundation(new TextFieldAdapter(this));\n IconRegistry.define(tylIconClear);\n }\n\n public connectedCallback(): void {\n this._foundation.initialize();\n }\n\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n super.attributeChangedCallback(name, oldValue, newValue);\n switch (name) {\n case TEXT_FIELD_CONSTANTS.attributes.SHOW_CLEAR:\n this.showClear = coerceBoolean(newValue);\n break;\n }\n }\n\n public get popoverTargetElement(): HTMLElement {\n return this._foundation.popoverTargetElement;\n }\n\n @FoundationProperty()\n public declare showClear: boolean;\n}\n", "import { defineCustomElement } from '@tylertech/forge-core';\nimport { TextFieldComponent } from './text-field';\n\nexport * from './text-field';\nexport * from './text-field-adapter';\nexport * from './text-field-constants';\nexport * from './text-field-foundation';\nexport * from './text-field-component-delegate';\n\nexport function defineTextFieldComponent(): void {\n defineCustomElement(TextFieldComponent);\n}\n"],
5
+ "mappings": "imBAuBO,IAAMA,EAAN,cAA+BC,CAA8C,CAuBlF,YAAYC,EAAgC,CAC1C,MAAMA,CAAS,EApBjB,KAAQ,eAA6D,CAAC,EAEtE,KAAQ,8BAAgD,CAAC,EAmBvD,KAAK,cAAgBC,EAAiBD,EAAWE,EAAqB,UAAU,KAAK,EACrF,KAAK,wBAA0BD,EAAiBD,EAAWE,EAAqB,UAAU,iBAAiB,EAC3G,KAAK,cAAc,aAAa,cAAe,OAAO,OAAOC,EAAgB,KAAK,EAAE,KAAK,IAAI,CAAC,EAC9F,KAAK,wBAAwB,OAAO,CACtC,CArBA,IAAW,UAAoB,CAC7B,OAAO,KAAK,eAAe,KAAKC,GAAM,CAAC,CAACA,EAAG,KAAK,CAClD,CAEA,IAAW,gBAA0B,CACnC,OAAO,KAAK,eAAe,KAAKA,GAAM,CAAC,CAACA,EAAG,WAAW,CACxD,CAEA,IAAW,sBAAoC,CAC7C,OAAK,KAAK,wBACR,KAAK,sBAAwBH,EAAiB,KAAK,cAAeE,EAAgB,UAAU,cAAc,GAErG,KAAK,qBACd,CAUO,gBAAgBE,EAAiCC,EAA+B,CACrF,KAAK,cAAc,iBAAiBD,EAAMC,CAAQ,CACpD,CAEO,mBAAmBD,EAAiCC,EAA+B,CACxF,KAAK,cAAc,oBAAoBD,EAAMC,CAAQ,CACvD,CAEO,aAAaC,EAAyB,CAC3C,KAAK,eAAe,QAAQH,GAAMA,EAAG,SAAWG,CAAQ,CAC1D,CAEO,iBAA2B,CAChC,OAAO,KAAK,eAAe,KAAKH,GAAMA,EAAG,QAAQ,CACnD,CAEO,OAAc,CAtEvB,IAAAI,GAuEIA,EAAA,KAAK,eAAe,CAAC,IAArB,MAAAA,EAAwB,OAC1B,CAEO,WAAWC,EAA4B,CAC5C,KAAK,eAAe,QAASC,GAAiB,CAC5CC,EAAgBD,EAAc,CAAC,CAACD,EAAO,aAAcA,GAAA,KAAAA,EAAS,EAAE,CAClE,CAAC,CACH,CAEO,wBAAwBG,EAAuBN,EAAiD,CAhFzG,IAAAE,GAkFIA,EAAA,KAAK,yBAAL,MAAAA,EAA6B,aAG7B,IAAMK,EAAmBD,EAAK,iBAAiB,EAC1CC,EAAiB,SAKtB,KAAK,eAAiBA,EAAiB,OAAOT,GAAMA,EAAG,QAAQF,EAAqB,UAAU,KAAK,CAAC,EACpG,KAAK,cAAc,UAAY,KAAK,eAAe,KAAKE,GAAMA,EAAG,UAAYF,EAAqB,SAAS,QAAQ,EAGnH,KAAK,uBAAyB,IAAI,iBAAiBY,GAAa,CAC9DA,EAAU,QAAQC,GAAY,CAC5B,GAAIA,EAAS,cAAe,CAE1B,IAAMC,EADUD,EAAS,OACC,aAAaA,EAAS,aAAa,EACvDE,EAAgBF,EAAS,cAC/BT,EAASW,EAAeD,CAAS,EAErC,CAAC,CACH,CAAC,EACD,KAAK,eAAe,QAAQZ,GAAM,CAzGtC,IAAAI,GA0GMA,EAAA,KAAK,yBAAL,MAAAA,EAA6B,QAAQJ,EAAI,CAAE,WAAY,GAAM,gBAAiBF,EAAqB,uBAAwB,GAEvH,KAAK,WAAW,WAClBE,EAAG,SAAW,IAIhB,OAAO,OAAOF,EAAqB,uBAAuB,EAAE,QAAQO,GAAS,CAC3E,IAAMQ,EAAgBR,EACtBH,EAASW,EAAeb,EAAG,aAAaa,CAAuB,CAAC,CAClE,CAAC,CACH,CAAC,EACH,CAEO,0BAA0BC,EAAkBZ,EAA8C,CAE/F,KAAK,8BAA8B,QAAQa,GAAYA,EAAS,CAAC,EAGjE,KAAK,8BAAgC,KAAK,eAAe,IAAIf,GACpDgB,EAAkBF,EAASd,EAAI,QAASE,CAAQ,CACxD,CACH,CAEO,2BAAkC,CACvC,KAAK,8BAA8B,QAAQa,GAAYA,EAAS,CAAC,CACnE,CAEO,cAAcE,EAAuB,CAE1C,GAAIA,IAAU,OAAW,CACvB,KAAK,cAAc,WAAaA,EAChC,OAIF,KAAK,cAAc,WAAa,KAAK,UAAY,KAAK,cACxD,CAEO,uBAAuBT,EAA6B,CAjJ7D,IAAAJ,EAoJI,GAAI,KAAK,eAAe,SAAW,IAAKA,EAAA,KAAK,eAAe,CAAC,EAAE,SAAvB,MAAAA,EAA+B,OACrE,OAGF,IAAME,EAAe,KAAK,eAAe,CAAC,EACpCY,EAAWV,EAAK,iBAAiB,CAAE,QAAS,EAAK,CAAC,EAGlDW,EAAaD,EAAS,KAAKlB,GAAMA,EAAG,QAAQF,EAAqB,UAAU,WAAW,CAAC,EAC7F,GAAIqB,EAAY,CACdA,EAAW,WAAa,KAAK,WAC7BA,EAAW,YAAcb,EACzB,OAIF,IAAMc,EAAQF,EAAS,KAAKlB,GAAMA,EAAG,UAAYF,EAAqB,SAAS,KAAK,EACpF,GAAI,CAACsB,GAASA,EAAM,QAClB,OAGF,IAAMC,EAAKf,EAAa,IAAM,eAAegB,EAAY,IACzDhB,EAAa,GAAKe,EAClBD,EAAM,QAAUC,CAClB,CAEO,mBAAmBnB,EAA+B,CACvD,KAAK,wBAAwB,iBAAiB,QAASA,CAAQ,CACjE,CAEO,sBAAsBA,EAA+B,CAC1D,KAAK,wBAAwB,oBAAoB,QAASA,CAAQ,CACpE,CAEO,4BAA4BqB,EAAwB,CACrDA,EACF,KAAK,cAAc,OAAO,KAAK,uBAAuB,EAEtD,KAAK,wBAAwB,OAAO,CAExC,CAEO,YAAmB,CACnB,KAAK,eAAe,SAGzB,KAAK,eAAe,QAAQvB,GAAMA,EAAG,MAAQ,EAAE,EAC/C,KAAK,eAAe,CAAC,EAAE,MAAM,EAC/B,CACF,EC3LO,IAAMwB,EAAN,cAAkCC,CAAuE,CAQ9G,YAAsBC,EAA4B,CAChD,MAAMA,CAAQ,EADM,cAAAA,EAPtB,KAAQ,WAAa,GACrB,KAAQ,oBAAqC,KAAK,cAAc,KAAK,IAAI,EACzE,KAAQ,wBAA2D,KAAK,wBAAwB,KAAK,IAAI,EACzG,KAAQ,qBAAqD,KAAK,eAAe,KAAK,IAAI,EAC1F,KAAQ,eAAgC,KAAK,eAAe,KAAK,IAAI,EACrE,KAAQ,0BAA4CC,GAAsB,KAAK,oBAAoBA,CAAG,CAItG,CAEO,YAAmB,CACxB,KAAK,SAAS,gBAAgB,aAAc,KAAK,mBAAmB,EACpE,KAAK,SAAS,gBAAgB,QAAS,KAAK,cAAc,CAC5D,CAEO,YAAmB,CACxB,KAAK,SAAS,mBAAmB,aAAc,KAAK,mBAAmB,EACvE,KAAK,SAAS,mBAAmB,QAAS,KAAK,cAAc,EAC7D,KAAK,SAAS,0BAA0B,CAC1C,CAEA,IAAW,sBAAoC,CAC7C,OAAO,KAAK,SAAS,oBACvB,CAEQ,cAAcA,EAAkB,CACtC,IAAMC,EAASD,EAAI,OACnB,OAAQC,EAAO,KAAM,CACnB,IAAK,QACH,KAAK,SAAS,uBAAuBA,CAAM,EAC3C,MACF,IAAK,GACH,KAAK,SAAS,wBAAwBA,EAAQ,KAAK,uBAAuB,EAC1E,KAAK,SAAS,0BAA0B,KAAM,KAAK,oBAAoB,EACvE,KAAK,eAAe,EACpB,KACJ,CACF,CAEQ,wBAAwBC,EAAiEC,EAA4B,CAC3H,OAAQD,EAAM,CACZ,IAAK,WACH,KAAK,SAAWC,IAAU,KAC1B,MACF,IAAK,cACH,KAAK,eAAe,EACpB,KACJ,CACF,CAEQ,oBAAoBH,EAAkB,CAC5C,IAAMI,EAAQ,IAAI,YAAYC,EAAqB,OAAO,MAAO,CAAE,QAAS,GAAM,WAAY,GAAM,SAAU,EAAK,CAAC,EACpH,KAAK,SAAS,kBAAkBD,CAAK,EAChCA,EAAM,kBACT,KAAK,SAAS,WAAW,CAE7B,CAEQ,gBAAuB,CAC7B,KAAK,eAAe,EACpB,KAAK,6BAA6B,CACpC,CAEQ,8BAAqC,CAC3C,KAAK,SAAS,4BAA4B,KAAK,YAAc,KAAK,WAAa,CAAC,KAAK,QAAQ,CAC/F,CAEA,IAAW,WAAqB,CAC9B,OAAO,KAAK,UACd,CACA,IAAW,UAAUD,EAAgB,CAC/B,KAAK,aAAeA,IACtB,KAAK,WAAaA,EAClB,KAAK,SAAS,oBAAoBE,EAAqB,WAAW,WAAYF,CAAK,EAE/EA,EACF,KAAK,SAAS,mBAAmB,KAAK,yBAAyB,EAE/D,KAAK,SAAS,sBAAsB,KAAK,yBAAyB,EAEpE,KAAK,6BAA6B,EAEtC,CAEA,IAAoB,UAAoB,CACtC,OAAO,MAAM,QACf,CACA,IAAoB,SAASA,EAAgB,CACvC,KAAK,YAAcA,IACrB,KAAK,UAAYA,EACjB,KAAK,SAAS,oBAAoBG,EAAgB,WAAW,SAAUH,CAAK,EAC5E,KAAK,SAAS,iBAAiB,WAAYA,CAAK,EAChD,KAAK,SAAS,aAAaA,CAAK,EAChC,KAAK,6BAA6B,EAEtC,CAEA,IAAoB,eAAoC,CACtD,OAAO,MAAM,aACf,CACA,IAAoB,cAAcA,EAA2B,CACvD,KAAK,iBAAmBA,IAC1B,KAAK,eAAiBA,EACtB,KAAK,SAAS,oBAAoBG,EAAgB,WAAW,eAAgB,GAAMH,CAAK,EACxF,KAAK,SAAS,iBAAiB,gBAAiBA,CAAK,EACrD,KAAK,eAAe,EAExB,CACF,EC7GA,IAAMI,EAAW,0wBACXC,EAAS,iFAyDFC,EAAN,cAAiCC,CAA8D,CAUpG,aAAc,CACZ,MAAM,EACNC,EAAqB,KAAMJ,EAAUC,CAAM,EAC3C,KAAK,YAAc,IAAII,EAAoB,IAAIC,EAAiB,IAAI,CAAC,EACrEC,EAAa,OAAOC,CAAY,CAClC,CAdA,WAAkB,oBAA+B,CAC/C,MAAO,CACL,GAAG,OAAO,OAAOC,EAAqB,kBAAkB,EACxD,GAAG,OAAO,OAAOC,EAAqB,kBAAkB,CAC1D,CACF,CAWO,mBAA0B,CAC/B,KAAK,YAAY,WAAW,CAC9B,CAEO,yBAAyBC,EAAcC,EAAkBC,EAAwB,CAEtF,OADA,MAAM,yBAAyBF,EAAMC,EAAUC,CAAQ,EAC/CF,EAAM,CACZ,KAAKD,EAAqB,WAAW,WACnC,KAAK,UAAYI,EAAcD,CAAQ,EACvC,KACJ,CACF,CAEA,IAAW,sBAAoC,CAC7C,OAAO,KAAK,YAAY,oBAC1B,CAIF,EADiBE,EAAA,CADdC,EAAmB,GAlCTd,EAmCI,yBAnCJA,EAANa,EAAA,CARNE,EAAc,CACb,KAAMP,EAAqB,YAC3B,aAAc,CACZQ,EACAC,EACAC,CACF,CACF,CAAC,GACYlB,GC5DN,SAASmB,IAAiC,CAC/CC,EAAoBC,CAAkB,CACxC",
6
+ "names": ["TextFieldAdapter", "BaseFieldAdapter", "component", "getShadowElement", "TEXT_FIELD_CONSTANTS", "FIELD_CONSTANTS", "el", "name", "listener", "disabled", "_a", "value", "inputElement", "toggleAttribute", "slot", "assignedElements", "mutations", "mutation", "attribute", "attributeName", "context", "callback", "listenOwnProperty", "force", "elements", "forgeLabel", "label", "id", "randomChars", "visible", "TextFieldFoundation", "BaseFieldFoundation", "_adapter", "evt", "target", "name", "value", "event", "TEXT_FIELD_CONSTANTS", "FIELD_CONSTANTS", "template", "styles", "TextFieldComponent", "BaseField", "attachShadowTemplate", "TextFieldFoundation", "TextFieldAdapter", "IconRegistry", "tylIconClear", "BASE_FIELD_CONSTANTS", "TEXT_FIELD_CONSTANTS", "name", "oldValue", "newValue", "coerceBoolean", "__decorateClass", "FoundationProperty", "CustomElement", "FieldComponent", "IconButtonComponent", "TooltipComponent", "defineTextFieldComponent", "defineCustomElement", "TextFieldComponent"]
7
+ }
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{b as S}from"./chunk.SHBDQPPH.js";import{c as N,d as F}from"./chunk.SYKZ74SL.js";import{A as m,l as d}from"./chunk.RLQB7224.js";import{d as h}from"./chunk.CIUPY66Y.js";import{a as A}from"./chunk.XU3YSZPA.js";import{a as C}from"./chunk.6GSVB5NB.js";import{a as E}from"./chunk.NVUMRW44.js";import{a as B,b as L}from"./chunk.UQQQSJVM.js";import{a as I,e as T,f as c,k as D}from"./chunk.BIQTNLIF.js";import{k as f}from"./chunk.J2M2MXP2.js";import{a as _,b as x,d as p}from"./chunk.M3QDAYD2.js";var R=`${L}quantity-field`,q={INVALID:"invalid",REQUIRED:"required",DISABLED:"disabled"},O={ROOT:"forge-quantity-field",INVALID:"forge-quantity-field--invalid",REQUIRED:"forge-quantity-field--required"},a={INCREMENT_BUTTON:"increment-button",DECREMENT_BUTTON:"decrement-button",LABEL:"label",HELPER_TEXT:"helper-text"},w={ROOT:`.${O.ROOT}`,INCREMENT_BUTTON_SLOT:`slot[name=${a.INCREMENT_BUTTON}]`,DECREMENT_BUTTON_SLOT:`slot[name=${a.DECREMENT_BUTTON}]`,INCREMENT_BUTTON:`[slot=${a.INCREMENT_BUTTON}], button[slot=${a.INCREMENT_BUTTON}]`,DECREMENT_BUTTON:`[slot=${a.DECREMENT_BUTTON}], button[slot=${a.DECREMENT_BUTTON}]`,TEXT_FIELD:"forge-text-field",INPUT:"input[type=number]",LABEL:`[slot=${a.LABEL}]`,HELPER_TEXT:`[slot=${a.HELPER_TEXT}]`},i={elementName:R,classes:O,slots:a,selectors:w,attributes:q};var v=class extends C{constructor(t){super(t);this._rootElement=c(t,i.selectors.ROOT),this._incrementButtonSlot=c(this._component,i.selectors.INCREMENT_BUTTON_SLOT),this._decrementButtonSlot=c(this._component,i.selectors.DECREMENT_BUTTON_SLOT)}initializeButtons(){this._incrementButton&&!this._incrementButton.hasAttribute("tabindex")&&(this._incrementButton.tabIndex=-1),this._decrementButton&&!this._decrementButton.hasAttribute("tabindex")&&(this._decrementButton.tabIndex=-1)}addRootClass(t){this._rootElement.classList.add(t)}removeRootClass(t){this._rootElement.classList.remove(t)}inputHasAttribute(t){return this.inputElement?this.inputElement.hasAttribute(t):!1}addIncrementButtonSlotListener(t){this._incrementButtonSlot.addEventListener("slotchange",t)}removeIncrementButtonSlotListener(t){this._incrementButtonSlot&&this._incrementButtonSlot.removeEventListener("slotchange",t)}addDecrementButtonSlotListener(t){this._decrementButtonSlot.addEventListener("slotchange",t)}removeDecrementButtonSlotListener(t){this._decrementButtonSlot&&this._decrementButtonSlot.removeEventListener("slotchange",t)}addTextFieldAttribute(t,e=""){this._textFieldComponent&&this._textFieldComponent.setAttribute(t,e)}removeTextFieldAttribute(t){this._textFieldComponent&&this._textFieldComponent.removeAttribute(t)}addIncrementEventListener(t,e){this._incrementButtonElement.addEventListener(t,e)}removeIncrementEventListener(t,e){this._incrementButtonElement&&this._incrementButtonElement.removeEventListener(t,e)}addDecrementEventListener(t,e){this._decrementButtonElement.addEventListener(t,e)}removeDecrementEventListener(t,e){this._decrementButtonElement&&this._decrementButtonElement.removeEventListener(t,e)}addIncrementButtonAttribute(t,e=""){this._incrementButtonElement.setAttribute(t,e)}removeIncrementButtonAttribute(t){this._incrementButtonElement.removeAttribute(t)}addDecrementButtonAttribute(t,e=""){this._decrementButtonElement.setAttribute(t,e)}removeDecrementButtonAttribute(t){this._decrementButtonElement.removeAttribute(t)}increment(){let t=this.inputElement;if(!t)return;let e=+t.value,n=this._calcPrecision(this._inputStep),o=parseFloat((e+this._inputStep).toFixed(n));this._inputMax&&this._inputMax<o&&(o=this._inputMax),this._setInputValue(o)}decrement(){let t=this.inputElement;if(!t)return;let e=+t.value,n=this._calcPrecision(this._inputStep),o=parseFloat((e-this._inputStep).toFixed(n));this._inputMin&&this._inputMin>o&&(o=this._inputMin),this._setInputValue(o)}addInputDisabledAttributeChangeListener(t){this._setupInputDisabledAttributeMutationObserver(t)}removeInputDisabledAttributeChangeListener(){this._cleanupInputDisabledAttributeMutationObserver()}_setInputValue(t){this.inputElement&&(this.inputElement.value=`${t}`,this.inputElement.dispatchEvent(new Event("input")),this.inputElement.dispatchEvent(new Event("change")))}_isNullOrUndefinedOrEmpty(t){return t==null||t===""}_setupInputDisabledAttributeMutationObserver(t){if(!this.inputElement)return;this._cleanupInputDisabledAttributeMutationObserver();let e=o=>this._inputDisabledAttributeMutationCallback(o,t);this._inputAttributeMutationObserver=new MutationObserver(e);let n={attributes:!0,attributeOldValue:!0,attributeFilter:[i.attributes.DISABLED]};this._inputAttributeMutationObserver.observe(this.inputElement,n)}_cleanupInputDisabledAttributeMutationObserver(){this._inputAttributeMutationObserver&&(this._inputAttributeMutationObserver.disconnect(),delete this._inputAttributeMutationObserver)}_inputDisabledAttributeMutationCallback(t,e){for(let n of t)n.type!=="attributes"||!n.attributeName||n.attributeName!==i.attributes.DISABLED||n.target[n.attributeName]===n.oldValue||e()}get _incrementButtonElement(){return this._incrementButton||(this._incrementButton=this._component.querySelector(i.selectors.INCREMENT_BUTTON)),this._incrementButton}get _decrementButtonElement(){return this._decrementButton||(this._decrementButton=this._component.querySelector(i.selectors.DECREMENT_BUTTON)),this._decrementButton}get _textFieldComponent(){return this._textField||(this._textField=this._component.querySelector(i.selectors.TEXT_FIELD)),this._textField}get inputElement(){return this._inputElement||(this._inputElement=this._component.querySelector(i.selectors.INPUT)),this._inputElement}get _inputStep(){let t=this.inputElement;return!t||this._isNullOrUndefinedOrEmpty(t.step)?1:+t.step}get _inputMax(){let t=this.inputElement;return!t||this._isNullOrUndefinedOrEmpty(t.max)?null:+t.max}get _inputMin(){let t=this.inputElement;return!t||this._isNullOrUndefinedOrEmpty(t.min)?null:+t.min}_calcPrecision(t){let e=String(t);return e.includes(".")?e.split(".")[1].length:0}};var b=class{constructor(r){this._adapter=r;this._incrementValue=()=>this._adapter.increment(),this._decrementValue=()=>this._adapter.decrement(),this._incrementButtonSlotChanged=()=>this._onIncrementButtonSlotChanged(),this._decrementButtonSlotChanged=()=>this._onDecrementButtonSlotChanged(),this._adapter.addIncrementButtonSlotListener(this._incrementButtonSlotChanged),this._adapter.addDecrementButtonSlotListener(this._decrementButtonSlotChanged)}connect(){this._adapter.addInputDisabledAttributeChangeListener(()=>this._syncDisabledStateOfButtons()),this._syncDisabledStateOfButtons(),this._adapter.initializeButtons()}disconnect(){this._removeIncrementEventListener(),this._removeDecrementEventListener(),this._removeIncrementButtonSlotListener(),this._removeDecrementButtonSlotListener(),this._adapter.removeInputDisabledAttributeChangeListener()}_onIncrementButtonSlotChanged(){this._addIncrementEventListener()}_onDecrementButtonSlotChanged(){this._addDecrementEventListener()}_addIncrementEventListener(){this._adapter.addIncrementEventListener("click",this._incrementValue)}_addDecrementEventListener(){this._adapter.addDecrementEventListener("click",this._decrementValue)}_removeIncrementEventListener(){this._adapter.removeIncrementEventListener("click",this._incrementValue)}_removeDecrementEventListener(){this._adapter.removeDecrementEventListener("click",this._decrementValue)}_removeIncrementButtonSlotListener(){this._adapter.removeIncrementButtonSlotListener(this._incrementButtonSlotChanged)}_removeDecrementButtonSlotListener(){this._adapter.removeDecrementButtonSlotListener(this._decrementButtonSlotChanged)}_syncDisabledStateOfButtons(){this._adapter.inputHasAttribute(i.attributes.DISABLED)?(this._adapter.addDecrementButtonAttribute(i.attributes.DISABLED),this._adapter.addIncrementButtonAttribute(i.attributes.DISABLED)):(this._adapter.removeIncrementButtonAttribute(i.attributes.DISABLED),this._adapter.removeDecrementButtonAttribute(i.attributes.DISABLED))}get required(){return this._required}set required(r){this._required!==r&&(this._required=r,this._required?(this._adapter.setHostAttribute(i.attributes.REQUIRED),this._adapter.addRootClass(i.classes.REQUIRED)):(this._adapter.removeHostAttribute(i.attributes.REQUIRED),this._adapter.removeRootClass(i.classes.REQUIRED)))}get invalid(){return this._invalid}set invalid(r){this._invalid!==r&&(this._invalid=r,this._invalid?(this._adapter.setHostAttribute(i.attributes.INVALID),this._adapter.addRootClass(i.classes.INVALID),this._adapter.addTextFieldAttribute(i.attributes.INVALID)):(this._adapter.removeHostAttribute(i.attributes.INVALID),this._adapter.removeRootClass(i.classes.INVALID),this._adapter.removeTextFieldAttribute(i.attributes.INVALID)))}};var U='<template><div class="forge-quantity-field" part="root"><slot name="label"></slot><div class="forge-quantity-field__row" part="row"><slot name="decrement-button"></slot><slot></slot><slot name="increment-button"></slot></div><slot name="helper-text"></slot></div></template>',k='.forge-quantity-field ::slotted([slot=label]){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit);color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54))}.forge-quantity-field ::slotted([slot=helper-text]){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit);height:1rem;color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54))}.forge-quantity-field ::slotted([slot=helper-text])::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.forge-quantity-field__row{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;-webkit-box-align:center;align-items:center}.forge-quantity-field ::slotted(forge-icon-button:first-of-type){color:var(--mdc-theme-text-secondary-on-light);margin-right:4px}.forge-quantity-field ::slotted(forge-icon-button:last-of-type){color:var(--mdc-theme-text-secondary-on-light);margin-left:4px}.forge-quantity-field ::slotted(forge-text-field){--forge-text-field-margin-top:0;--forge-text-field-margin-bottom:0}.forge-quantity-field--required ::slotted([slot=label])::before{color:#b00020;color:var(--mdc-theme-error,#b00020);content:"*";margin-right:4px}.forge-quantity-field--invalid ::slotted([slot=label]){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit);color:#b00020;color:var(--mdc-theme-error,#b00020)}.forge-quantity-field--invalid ::slotted([slot=helper-text]){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit);height:1rem;color:#b00020;color:var(--mdc-theme-error,#b00020)}.forge-quantity-field--invalid ::slotted([slot=helper-text])::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}:host{display:inline-block}:host([hidden]){display:none}',s=class extends D{constructor(){super();T(this,U,k),this._foundation=new b(new v(this)),h.define([m,d])}static get observedAttributes(){return[i.attributes.INVALID,i.attributes.REQUIRED]}connectedCallback(){this._requiredElementsPresent()?this._foundation.connect():this._ensureElementsPresent().then(()=>{this._foundation.connect()})}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(t,e,n){switch(t){case i.attributes.INVALID:this.invalid=f(n);break;case i.attributes.REQUIRED:this.required=f(n);break}}_ensureElementsPresent(){return new Promise(t=>{if(this._requiredElementsPresent()){t();return}let e=new MutationObserver(n=>{n.reduce((l,u)=>l+u.addedNodes.length,0)>0&&this._requiredElementsPresent()&&(e.disconnect(),t())});e.observe(this,{childList:!0,subtree:!0})})}_requiredElementsPresent(){let t=this.querySelector(i.selectors.INPUT),e=this.querySelector(i.selectors.DECREMENT_BUTTON),n=this.querySelector(i.selectors.INCREMENT_BUTTON);return!!t&&!!e&&!!n}};p([E()],s.prototype,"invalid",2),p([E()],s.prototype,"required",2),s=p([B({name:i.elementName,dependencies:[N]})],s);var M=class extends A{constructor(t){super(t);h.define([m,d])}_build(){let t=document.createElement(i.elementName);return this._attachButton(t,m.name,"decrement-button"),this._attachTextField(t),this._attachButton(t,d.name,"increment-button"),t}_configure(){var t,e,n,o,l;this.inputElement.value=(e=(t=this._config.options)==null?void 0:t.value)!=null?e:"0",this.inputElement.style.textAlign="center",this.inputElement.style.width="64px",(n=this._config.options)!=null&&n.helperText&&this.setHelperText(this._config.options.helperText),typeof((o=this._config.options)==null?void 0:o.label)=="string"&&this._createLabel(this._config.options.label),((l=this._config.options)==null?void 0:l.step)!==void 0&&(this.inputElement.step=this._config.options.step)}get value(){return this._textFieldDelegate.inputElement.value}set value(t){this._textFieldDelegate.inputElement.value=t}get disabled(){return this._textFieldDelegate.inputElement.disabled}set disabled(t){this._textFieldDelegate.inputElement.disabled=t}get invalid(){return this._element.invalid||!1}set invalid(t){this._element.invalid=t}get inputElement(){return this._textFieldDelegate.inputElement}get labelElement(){return this._labelElement}onChange(t){this._textFieldDelegate.inputElement.addEventListener("input",e=>t(e.target.value))}onFocus(t){this._textFieldDelegate.inputElement.addEventListener("focus",e=>t(e))}onBlur(t){this._textFieldDelegate.inputElement.addEventListener("blur",e=>t(e))}_attachTextField(t){var n,o,l,u,y;let e={props:_({},(o=(n=this._config.options)==null?void 0:n.textFieldDelegateConfig)==null?void 0:o.props),options:x(_({},(u=(l=this._config.options)==null?void 0:l.textFieldDelegateConfig)==null?void 0:u.options),{id:(y=this._config.options)==null?void 0:y.id,type:"number"})};this._textFieldDelegate=new S(e),t.appendChild(this._textFieldDelegate.element)}setLabel(t){t?this._labelElement?this._labelElement.textContent=t:this._createLabel(t):this._labelElement&&(this._element.removeChild(this._labelElement),this._labelElement=void 0)}setHelperText(t){t?(this._helperTextElement||(this._helperTextElement=document.createElement("span"),this._helperTextElement.slot="helper-text",this._element.appendChild(this._helperTextElement)),this._helperTextElement.textContent=t):this._helperTextElement&&(this._element.removeChild(this._helperTextElement),this._helperTextElement=void 0)}_createLabel(t){var e;this._labelElement=document.createElement("label"),this._labelElement.textContent=t,this._labelElement.slot="label",(e=this._config.options)!=null&&e.id&&this._labelElement.setAttribute("for",this._config.options.id),this._element.appendChild(this._labelElement)}_attachButton(t,e,n){return new F({options:{iconName:e,parent:t,attributes:{slot:n}}})}};function ft(){I(s)}export{i as a,v as b,b as c,s as d,M as e,ft as f};
7
- //# sourceMappingURL=chunk.2537XOFQ.js.map
6
+ import{b as S}from"./chunk.RONMNRSH.js";import{d as N,e as F}from"./chunk.GIENHEMN.js";import{A as m,l as d}from"./chunk.RLQB7224.js";import{d as h}from"./chunk.T7NWP7DB.js";import{a as A}from"./chunk.SQ3AZAHF.js";import{a as E}from"./chunk.NVUMRW44.js";import{a as C}from"./chunk.OLFOVKQG.js";import{a as B,b as L}from"./chunk.VRSPT7WX.js";import{a as I,e as T,f as c,k as D}from"./chunk.LNTTU2GL.js";import{k as f}from"./chunk.J2M2MXP2.js";import{a as _,b as x,d as p}from"./chunk.M3QDAYD2.js";var R=`${L}quantity-field`,q={INVALID:"invalid",REQUIRED:"required",DISABLED:"disabled"},O={ROOT:"forge-quantity-field",INVALID:"forge-quantity-field--invalid",REQUIRED:"forge-quantity-field--required"},a={INCREMENT_BUTTON:"increment-button",DECREMENT_BUTTON:"decrement-button",LABEL:"label",HELPER_TEXT:"helper-text"},w={ROOT:`.${O.ROOT}`,INCREMENT_BUTTON_SLOT:`slot[name=${a.INCREMENT_BUTTON}]`,DECREMENT_BUTTON_SLOT:`slot[name=${a.DECREMENT_BUTTON}]`,INCREMENT_BUTTON:`[slot=${a.INCREMENT_BUTTON}], button[slot=${a.INCREMENT_BUTTON}]`,DECREMENT_BUTTON:`[slot=${a.DECREMENT_BUTTON}], button[slot=${a.DECREMENT_BUTTON}]`,TEXT_FIELD:"forge-text-field",INPUT:"input[type=number]",LABEL:`[slot=${a.LABEL}]`,HELPER_TEXT:`[slot=${a.HELPER_TEXT}]`},i={elementName:R,classes:O,slots:a,selectors:w,attributes:q};var v=class extends C{constructor(t){super(t);this._rootElement=c(t,i.selectors.ROOT),this._incrementButtonSlot=c(this._component,i.selectors.INCREMENT_BUTTON_SLOT),this._decrementButtonSlot=c(this._component,i.selectors.DECREMENT_BUTTON_SLOT)}initializeButtons(){this._incrementButton&&!this._incrementButton.hasAttribute("tabindex")&&(this._incrementButton.tabIndex=-1),this._decrementButton&&!this._decrementButton.hasAttribute("tabindex")&&(this._decrementButton.tabIndex=-1)}addRootClass(t){this._rootElement.classList.add(t)}removeRootClass(t){this._rootElement.classList.remove(t)}inputHasAttribute(t){return this.inputElement?this.inputElement.hasAttribute(t):!1}addIncrementButtonSlotListener(t){this._incrementButtonSlot.addEventListener("slotchange",t)}removeIncrementButtonSlotListener(t){this._incrementButtonSlot&&this._incrementButtonSlot.removeEventListener("slotchange",t)}addDecrementButtonSlotListener(t){this._decrementButtonSlot.addEventListener("slotchange",t)}removeDecrementButtonSlotListener(t){this._decrementButtonSlot&&this._decrementButtonSlot.removeEventListener("slotchange",t)}addTextFieldAttribute(t,e=""){this._textFieldComponent&&this._textFieldComponent.setAttribute(t,e)}removeTextFieldAttribute(t){this._textFieldComponent&&this._textFieldComponent.removeAttribute(t)}addIncrementEventListener(t,e){this._incrementButtonElement.addEventListener(t,e)}removeIncrementEventListener(t,e){this._incrementButtonElement&&this._incrementButtonElement.removeEventListener(t,e)}addDecrementEventListener(t,e){this._decrementButtonElement.addEventListener(t,e)}removeDecrementEventListener(t,e){this._decrementButtonElement&&this._decrementButtonElement.removeEventListener(t,e)}addIncrementButtonAttribute(t,e=""){this._incrementButtonElement.setAttribute(t,e)}removeIncrementButtonAttribute(t){this._incrementButtonElement.removeAttribute(t)}addDecrementButtonAttribute(t,e=""){this._decrementButtonElement.setAttribute(t,e)}removeDecrementButtonAttribute(t){this._decrementButtonElement.removeAttribute(t)}increment(){let t=this.inputElement;if(!t)return;let e=+t.value,n=this._calcPrecision(this._inputStep),o=parseFloat((e+this._inputStep).toFixed(n));this._inputMax&&this._inputMax<o&&(o=this._inputMax),this._setInputValue(o)}decrement(){let t=this.inputElement;if(!t)return;let e=+t.value,n=this._calcPrecision(this._inputStep),o=parseFloat((e-this._inputStep).toFixed(n));this._inputMin&&this._inputMin>o&&(o=this._inputMin),this._setInputValue(o)}addInputDisabledAttributeChangeListener(t){this._setupInputDisabledAttributeMutationObserver(t)}removeInputDisabledAttributeChangeListener(){this._cleanupInputDisabledAttributeMutationObserver()}_setInputValue(t){this.inputElement&&(this.inputElement.value=`${t}`,this.inputElement.dispatchEvent(new Event("input")),this.inputElement.dispatchEvent(new Event("change")))}_isNullOrUndefinedOrEmpty(t){return t==null||t===""}_setupInputDisabledAttributeMutationObserver(t){if(!this.inputElement)return;this._cleanupInputDisabledAttributeMutationObserver();let e=o=>this._inputDisabledAttributeMutationCallback(o,t);this._inputAttributeMutationObserver=new MutationObserver(e);let n={attributes:!0,attributeOldValue:!0,attributeFilter:[i.attributes.DISABLED]};this._inputAttributeMutationObserver.observe(this.inputElement,n)}_cleanupInputDisabledAttributeMutationObserver(){this._inputAttributeMutationObserver&&(this._inputAttributeMutationObserver.disconnect(),delete this._inputAttributeMutationObserver)}_inputDisabledAttributeMutationCallback(t,e){for(let n of t)n.type!=="attributes"||!n.attributeName||n.attributeName!==i.attributes.DISABLED||n.target[n.attributeName]===n.oldValue||e()}get _incrementButtonElement(){return this._incrementButton||(this._incrementButton=this._component.querySelector(i.selectors.INCREMENT_BUTTON)),this._incrementButton}get _decrementButtonElement(){return this._decrementButton||(this._decrementButton=this._component.querySelector(i.selectors.DECREMENT_BUTTON)),this._decrementButton}get _textFieldComponent(){return this._textField||(this._textField=this._component.querySelector(i.selectors.TEXT_FIELD)),this._textField}get inputElement(){return this._inputElement||(this._inputElement=this._component.querySelector(i.selectors.INPUT)),this._inputElement}get _inputStep(){let t=this.inputElement;return!t||this._isNullOrUndefinedOrEmpty(t.step)?1:+t.step}get _inputMax(){let t=this.inputElement;return!t||this._isNullOrUndefinedOrEmpty(t.max)?null:+t.max}get _inputMin(){let t=this.inputElement;return!t||this._isNullOrUndefinedOrEmpty(t.min)?null:+t.min}_calcPrecision(t){let e=String(t);return e.includes(".")?e.split(".")[1].length:0}};var b=class{constructor(r){this._adapter=r;this._incrementValue=()=>this._adapter.increment(),this._decrementValue=()=>this._adapter.decrement(),this._incrementButtonSlotChanged=()=>this._onIncrementButtonSlotChanged(),this._decrementButtonSlotChanged=()=>this._onDecrementButtonSlotChanged(),this._adapter.addIncrementButtonSlotListener(this._incrementButtonSlotChanged),this._adapter.addDecrementButtonSlotListener(this._decrementButtonSlotChanged)}connect(){this._adapter.addInputDisabledAttributeChangeListener(()=>this._syncDisabledStateOfButtons()),this._syncDisabledStateOfButtons(),this._adapter.initializeButtons()}disconnect(){this._removeIncrementEventListener(),this._removeDecrementEventListener(),this._removeIncrementButtonSlotListener(),this._removeDecrementButtonSlotListener(),this._adapter.removeInputDisabledAttributeChangeListener()}_onIncrementButtonSlotChanged(){this._addIncrementEventListener()}_onDecrementButtonSlotChanged(){this._addDecrementEventListener()}_addIncrementEventListener(){this._adapter.addIncrementEventListener("click",this._incrementValue)}_addDecrementEventListener(){this._adapter.addDecrementEventListener("click",this._decrementValue)}_removeIncrementEventListener(){this._adapter.removeIncrementEventListener("click",this._incrementValue)}_removeDecrementEventListener(){this._adapter.removeDecrementEventListener("click",this._decrementValue)}_removeIncrementButtonSlotListener(){this._adapter.removeIncrementButtonSlotListener(this._incrementButtonSlotChanged)}_removeDecrementButtonSlotListener(){this._adapter.removeDecrementButtonSlotListener(this._decrementButtonSlotChanged)}_syncDisabledStateOfButtons(){this._adapter.inputHasAttribute(i.attributes.DISABLED)?(this._adapter.addDecrementButtonAttribute(i.attributes.DISABLED),this._adapter.addIncrementButtonAttribute(i.attributes.DISABLED)):(this._adapter.removeIncrementButtonAttribute(i.attributes.DISABLED),this._adapter.removeDecrementButtonAttribute(i.attributes.DISABLED))}get required(){return this._required}set required(r){this._required!==r&&(this._required=r,this._required?(this._adapter.setHostAttribute(i.attributes.REQUIRED),this._adapter.addRootClass(i.classes.REQUIRED)):(this._adapter.removeHostAttribute(i.attributes.REQUIRED),this._adapter.removeRootClass(i.classes.REQUIRED)))}get invalid(){return this._invalid}set invalid(r){this._invalid!==r&&(this._invalid=r,this._invalid?(this._adapter.setHostAttribute(i.attributes.INVALID),this._adapter.addRootClass(i.classes.INVALID),this._adapter.addTextFieldAttribute(i.attributes.INVALID)):(this._adapter.removeHostAttribute(i.attributes.INVALID),this._adapter.removeRootClass(i.classes.INVALID),this._adapter.removeTextFieldAttribute(i.attributes.INVALID)))}};var U='<template><div class="forge-quantity-field" part="root"><slot name="label"></slot><div class="forge-quantity-field__row" part="row"><slot name="decrement-button"></slot><slot></slot><slot name="increment-button"></slot></div><slot name="helper-text"></slot></div></template>',k='.forge-quantity-field ::slotted([slot=label]){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit);color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54))}.forge-quantity-field ::slotted([slot=helper-text]){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit);height:1rem;color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54))}.forge-quantity-field ::slotted([slot=helper-text])::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.forge-quantity-field__row{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;-webkit-box-align:center;align-items:center}.forge-quantity-field ::slotted(forge-icon-button:first-of-type){color:var(--mdc-theme-text-secondary-on-light);margin-right:4px}.forge-quantity-field ::slotted(forge-icon-button:last-of-type){color:var(--mdc-theme-text-secondary-on-light);margin-left:4px}.forge-quantity-field ::slotted(forge-text-field){--forge-text-field-margin-top:0;--forge-text-field-margin-bottom:0}.forge-quantity-field--required ::slotted([slot=label])::before{color:#b00020;color:var(--mdc-theme-error,#b00020);content:"*";margin-right:4px}.forge-quantity-field--invalid ::slotted([slot=label]){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit);color:#b00020;color:var(--mdc-theme-error,#b00020)}.forge-quantity-field--invalid ::slotted([slot=helper-text]){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit);height:1rem;color:#b00020;color:var(--mdc-theme-error,#b00020)}.forge-quantity-field--invalid ::slotted([slot=helper-text])::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}:host{display:inline-block}:host([hidden]){display:none}',s=class extends D{constructor(){super();T(this,U,k),this._foundation=new b(new v(this)),h.define([m,d])}static get observedAttributes(){return[i.attributes.INVALID,i.attributes.REQUIRED]}connectedCallback(){this._requiredElementsPresent()?this._foundation.connect():this._ensureElementsPresent().then(()=>{this._foundation.connect()})}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(t,e,n){switch(t){case i.attributes.INVALID:this.invalid=f(n);break;case i.attributes.REQUIRED:this.required=f(n);break}}_ensureElementsPresent(){return new Promise(t=>{if(this._requiredElementsPresent()){t();return}let e=new MutationObserver(n=>{n.reduce((l,u)=>l+u.addedNodes.length,0)>0&&this._requiredElementsPresent()&&(e.disconnect(),t())});e.observe(this,{childList:!0,subtree:!0})})}_requiredElementsPresent(){let t=this.querySelector(i.selectors.INPUT),e=this.querySelector(i.selectors.DECREMENT_BUTTON),n=this.querySelector(i.selectors.INCREMENT_BUTTON);return!!t&&!!e&&!!n}};p([E()],s.prototype,"invalid",2),p([E()],s.prototype,"required",2),s=p([B({name:i.elementName,dependencies:[N]})],s);var M=class extends A{constructor(t){super(t);h.define([m,d])}_build(){let t=document.createElement(i.elementName);return this._attachButton(t,m.name,"decrement-button"),this._attachTextField(t),this._attachButton(t,d.name,"increment-button"),t}_configure(){var t,e,n,o,l;this.inputElement.value=(e=(t=this._config.options)==null?void 0:t.value)!=null?e:"0",this.inputElement.style.textAlign="center",this.inputElement.style.width="64px",(n=this._config.options)!=null&&n.helperText&&this.setHelperText(this._config.options.helperText),typeof((o=this._config.options)==null?void 0:o.label)=="string"&&this._createLabel(this._config.options.label),((l=this._config.options)==null?void 0:l.step)!==void 0&&(this.inputElement.step=this._config.options.step)}get value(){return this._textFieldDelegate.inputElement.value}set value(t){this._textFieldDelegate.inputElement.value=t}get disabled(){return this._textFieldDelegate.inputElement.disabled}set disabled(t){this._textFieldDelegate.inputElement.disabled=t}get invalid(){return this._element.invalid||!1}set invalid(t){this._element.invalid=t}get inputElement(){return this._textFieldDelegate.inputElement}get labelElement(){return this._labelElement}onChange(t){this._textFieldDelegate.inputElement.addEventListener("input",e=>t(e.target.value))}onFocus(t){this._textFieldDelegate.inputElement.addEventListener("focus",e=>t(e))}onBlur(t){this._textFieldDelegate.inputElement.addEventListener("blur",e=>t(e))}_attachTextField(t){var n,o,l,u,y;let e={props:_({},(o=(n=this._config.options)==null?void 0:n.textFieldDelegateConfig)==null?void 0:o.props),options:x(_({},(u=(l=this._config.options)==null?void 0:l.textFieldDelegateConfig)==null?void 0:u.options),{id:(y=this._config.options)==null?void 0:y.id,type:"number"})};this._textFieldDelegate=new S(e),t.appendChild(this._textFieldDelegate.element)}setLabel(t){t?this._labelElement?this._labelElement.textContent=t:this._createLabel(t):this._labelElement&&(this._element.removeChild(this._labelElement),this._labelElement=void 0)}setHelperText(t){t?(this._helperTextElement||(this._helperTextElement=document.createElement("span"),this._helperTextElement.slot="helper-text",this._element.appendChild(this._helperTextElement)),this._helperTextElement.textContent=t):this._helperTextElement&&(this._element.removeChild(this._helperTextElement),this._helperTextElement=void 0)}_createLabel(t){var e;this._labelElement=document.createElement("label"),this._labelElement.textContent=t,this._labelElement.slot="label",(e=this._config.options)!=null&&e.id&&this._labelElement.setAttribute("for",this._config.options.id),this._element.appendChild(this._labelElement)}_attachButton(t,e,n){return new F({options:{iconName:e,parent:t,attributes:{slot:n}}})}};function ft(){I(s)}export{i as a,v as b,b as c,s as d,M as e,ft as f};
7
+ //# sourceMappingURL=chunk.E2BE52ME.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 at}from"./chunk.LIKJD4SK.js";import{h as nt}from"./chunk.7AAICE77.js";import{c as et}from"./chunk.2GUWHBUU.js";import{f as tt}from"./chunk.O5WAQQNR.js";import{c as it}from"./chunk.USTVZ6MZ.js";import{a as C,b as st}from"./chunk.RONMNRSH.js";import{g as ot}from"./chunk.FLBYVCQ6.js";import{a as E,d as Z}from"./chunk.GIENHEMN.js";import{k as z}from"./chunk.RLQB7224.js";import{a as J,d as Q,l as w}from"./chunk.T7NWP7DB.js";import{a as K}from"./chunk.SQ3AZAHF.js";import{A as Y,t as b,u as $,x as X,y as G,z as q}from"./chunk.J2Y5KPON.js";import{g as j}from"./chunk.XIQFHO5R.js";import{a as u}from"./chunk.NVUMRW44.js";import{a as W}from"./chunk.OLFOVKQG.js";import{a as U,b as R}from"./chunk.VRSPT7WX.js";import{a as N,e as H,h as V,k as B}from"./chunk.LNTTU2GL.js";import{k as A,p as P,r as x}from"./chunk.L4QSPQDE.js";import{a as F}from"./chunk.DJSHVUEM.js";import{a as D,k as m,l as y,o as L}from"./chunk.J2M2MXP2.js";import{a as k,d as p}from"./chunk.M3QDAYD2.js";var h=`${R}time-picker`,rt={TOGGLE:"forge-time-picker-toggle",VALUE:"value",OPEN:"open",ALLOW_SECONDS:"allow-seconds",MASKED:"masked",SHOW_MASK_FORMAT:"show-mask-format",USE_24_HOUR_TIME:"use-24-hour-time",ALLOW_INVALID_TIME:"allow-invalid-time",MIN:"min",MAX:"max",START_TIME:"start-time",STEP:"step",ALLOW_INPUT:"allow-input",SHOW_NOW:"show-now",SHOW_HOUR_OPTIONS:"show-hour-options",DISABLED:"disabled",POPUP_CLASSES:"popup-classes",ALLOW_DROPDOWN:"allow-dropdown"},bt={INPUT:"input, input[forge-time-picker-input]",TOGGLE:`[${rt.TOGGLE}]`},ft={OPEN:`${h}-open`,CLOSE:`${h}-close`,INPUT:`${h}-input`,CHANGE:`${h}-change`},gt={DEFAULT_MINUTE_STEP:60,MAX_DAY_MILLIS:864e5,MAX_DAY_MINUTES:1440},s={elementName:h,attributes:rt,selectors:bt,events:ft,numbers:gt};var f=class extends W{constructor(e){super(e)}initialize(){this._inputElement=this._component.querySelector(s.selectors.INPUT)}initializeMask(e){this.destroyMask(),this._inputMask=new j(this._inputElement,e)}destroy(){this._targetElement=void 0,this._toggleElement=void 0,this._inputElement=void 0}destroyMask(){var e;(e=this._inputMask)==null||e.destroy(),this._inputMask=void 0}initializeAccessibility(e){this._inputElement.setAttribute("autocomplete","off"),this._inputElement.setAttribute("autocorrect","off"),this._inputElement.setAttribute("autocapitalize","off"),this._inputElement.setAttribute("spellcheck","false"),this._inputElement.setAttribute("role","combobox"),this._inputElement.setAttribute("aria-live","assertive"),this._inputElement.setAttribute("aria-atomic","true"),this._inputElement.setAttribute("aria-haspopup","true"),this._inputElement.setAttribute("aria-expanded","false")}addInputListener(e,i,n){this._inputElement.addEventListener(e,i,{capture:n})}removeInputListener(e,i,n){this._inputElement&&this._inputElement.removeEventListener(e,i,{capture:n})}addToggleListener(e,i){this._toggleElement&&this._toggleElement.addEventListener(e,i)}removeToggleListener(e,i){this._toggleElement&&this._toggleElement.removeEventListener(e,i)}hasInputElement(){return!!this._inputElement}tryCreateToggle(){let e=this._component.querySelector(C.elementName),i=this._component.querySelector(s.selectors.TOGGLE);if(e){let n=e.querySelector(`${E.elementName}[slot=trailing]`);if(n||i){this._toggleElement=n||i;return}let o=document.createElement(E.elementName);o.slot="trailing",o.density="medium",o.type="button",o.tabIndex=-1,o.style.marginRight="4px",o.setAttribute("aria-label","Toggle time dropdown");let r=document.createElement(J.elementName);r.name="clock_outline",o.appendChild(r),e.appendChild(o),this._toggleElement=o}else i&&(this._toggleElement=i)}tryFocusInput(){this._inputElement.select()}tryBlurInput(){this._inputElement.blur()}selectInputText(){this._inputElement.select()}isInputDisabled(){return this._inputElement.disabled}isInputFocused(){return P(this._component.ownerDocument)===this._inputElement}setInputValue(e,i){this._inputElement.value!==e&&(this._inputElement.value=e,this._inputMask&&this._inputMask.update(),i&&(this._emitInputEvent("change"),this._emitInputEvent("input")))}getInputValue(){return this._inputMask?this._inputMask.maskedValue:this._inputElement.value}setDisabled(e){this._inputElement.disabled=e,this._inputElement.setAttribute("aria-disabled",e.toString()),this.setToggleDisabled(e)}attachDropdown(e){this._targetElement||(this._targetElement=this._getTargetElement(this._component.popupTarget)),this._listDropdown=new nt(this._targetElement,e),this._listDropdown.open(),this._inputElement.setAttribute("aria-controls",`list-dropdown-popup-${e.id}`)}async detachDropdown({destroy:e=!1}={}){this._listDropdown&&(e?this._listDropdown.destroy():await this._listDropdown.close(),this._listDropdown=void 0),this._inputElement.removeAttribute("aria-controls")}propagateKey(e){var i;(i=this._listDropdown)==null||i.handleKey(e)}setActiveDescendant(e){x(this._inputElement,!!e,"aria-activedescendant",e)}getTargetElementWidth(e){return this._getTargetElement(e).getBoundingClientRect().width}_emitInputEvent(e){this._inputElement.dispatchEvent(new Event(e))}emitInputEvent(e,i){V(this._inputElement,e,i)}setInputReadonly(e){this._inputElement.readOnly=e}setToggleDisabled(e){if(this._toggleElement)if(this._toggleElement.setAttribute("aria-disabled",e.toString()),"disabled"in this._toggleElement)this._toggleElement.disabled=e;else{let i=this._toggleElement.querySelector("button");i&&(i.disabled=e)}}hasActiveOption(){var e,i;return((i=(e=this._listDropdown)==null?void 0:e.getActiveOptionIndex())!=null?i:-1)>=0}activateOptionByIndex(e){var i;(i=this._listDropdown)==null||i.activateOption(e)}activateFirstOption(){var e;(e=this._listDropdown)==null||e.activateFirstOption()}getActiveOption(){var e;return(e=this._listDropdown)==null?void 0:e.getActiveOption()}_getTargetElement(e){return this._targetElement?this._targetElement:(this._targetElement=e?this._component.querySelector(e)||this._getDefaultTargetElement():this._getDefaultTargetElement(),this._targetElement)}_getDefaultTargetElement(){var i;let e=this._component.querySelector(C.elementName);return(i=e==null?void 0:e.popoverTargetElement)!=null?i:this._component}};function g(a,t,e){if(!a||/^\s*$/.test(a))return null;let i=0,n=0,o=0;if(b.test(a)){let r=X(a);i=+r.hours||0,n=+r.minutes||0,o=+r.seconds||0}else if($.test(a)){let r=G(a);i=+r.hours||0,n=+r.minutes||0,o=+r.seconds||0,i===12&&r.meridiem==="AM"&&(i=0),i<12&&r.meridiem==="PM"&&(i+=12)}else return null;return ut(i)+I(n)+(e?O(o):0)}function c(a,t,e){if(typeof a!="number"||a<0)return null;let i=Math.min(lt(a),23),n=Math.min(pt(a),59),r=a/(1e3*60)<720?"AM":"PM";t||(i=i<=12?i:i-12,i===0&&(i=12));let d=`${String(i).padStart(2,"0")}:${String(n).padStart(2,"0")}`;if(e){let _=Math.min(M(a),59);d+=`:${String(_).padStart(2,"0")}`}return t||(d+=` ${r}`),d}function lt(a){return Math.abs(Math.floor(a/(1e3*60*60)))}function pt(a){return Math.abs(Math.floor(v(a)%60))}function v(a){return a/(1e3*60)}function M(a){return Math.abs(Math.floor(vt(a)%60))}function vt(a){return a/1e3}function ut(a){return a*60*60*1e3}function I(a){return a*60*1e3}function O(a){return a*1e3}function dt(a){return a-O(M(a))}function S(a){let t=new Date,e=t.getHours(),i=t.getMinutes();return ut(e)+I(i)+(a?O(t.getSeconds()):0)}function Ut(a,t,e=!1){a||(a=new Date);let i=g(t,!0,e);if(!i)return a.setHours(0,0,0),a;let n=lt(i),o=828e5;n>o?n=o:n<0&&(n=0);let r=pt(i),d=e?M(i):0;return a.setHours(n,r,d),a}var T=class{constructor(t){this._adapter=t;this._value=null;this._masked=!0;this._use24HourTime=!1;this._showMaskFormat=!1;this._min=null;this._max=null;this._restrictedTimes=[];this._startTime=null;this._step=s.numbers.DEFAULT_MINUTE_STEP;this._allowInput=!0;this._open=!1;this._allowSeconds=!1;this._allowInvalidTime=!1;this._showNow=!1;this._showHourOptions=!0;this._customOptions=[];this._disabled=!1;this._popupClasses=[];this._allowDropdown=!0;this._isInitialized=!1;this._identifier=D(),this._inputListener=e=>this._onInput(e),this._inputKeydownListener=e=>this._onInputKeydown(e),this._toggleMousedownListener=e=>this._onToggleMousedown(e),this._inputFocusListener=e=>this._onInputFocus(e),this._inputBlurListener=e=>this._onInputBlur(e),this._inputMousedownListener=e=>this._onInputMousedown(e)}initialize(){if(this._adapter.initialize(),!this._adapter.hasInputElement())throw new Error("Unable to locate <input> element to attach to.");if(this._adapter.initializeAccessibility(this._identifier),!this._value){let t=this._adapter.getInputValue();this._setValue(this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds))}this._adapter.addInputListener("focus",this._inputFocusListener),this._adapter.addInputListener("blur",this._inputBlurListener),this._adapter.addInputListener("keydown",this._inputKeydownListener,!0),this._formatInputValue(!1),typeof this._value=="number"&&this._applyValue(this._value,!1),this._applyAllowInput(),this._applyAllowDropdown(),this._applyDisabled(),this._applyMask(),this._isInitialized=!0}disconnect(){this._isInitialized=!1,this._adapter.removeInputListener("input",this._inputListener),this._adapter.removeInputListener("focus",this._inputFocusListener),this._adapter.removeInputListener("blur",this._inputBlurListener),this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.removeInputListener("keydown",this._inputKeydownListener,!0),this._masked&&this._adapter.destroyMask(),this._closeDropdown({destroy:!0}),this._adapter.destroy()}_onInput(t){this._handleInput(this._adapter.getInputValue())}_onInputKeydown(t){var e,i;if(t.shiftKey)switch(t.code){case"Backspace":case"Delete":t.preventDefault(),this._trySetValue(null)&&this._formatInputValue();return}switch(t.code){case"Tab":this._open&&this._selectActiveOption();break;case"Esc":case"Escape":this._open&&(t.preventDefault(),t.stopPropagation(),this._closeDropdown({emitCloseEvent:!0}));break;case"Down":case"ArrowDown":this._allowDropdown&&(t.preventDefault(),this._open?this._adapter.hasActiveOption()?this._adapter.propagateKey(t.code):this._trySetActiveOption():(this._openDropdown(),typeof((e=this._dropdownConfig)==null?void 0:e.visibleStartIndex)=="number"&&this._dropdownConfig.visibleStartIndex>=0?this._adapter.activateOptionByIndex((i=this._dropdownConfig)==null?void 0:i.visibleStartIndex):this._adapter.activateFirstOption()));break;case"ArrowUp":this._allowDropdown&&(t.preventDefault(),this._open&&(this._adapter.hasActiveOption()?this._adapter.propagateKey(t.code):this._trySetActiveOption()));break;case"Enter":case"NumpadEnter":case"Home":case"End":this._open&&((t.code==="Enter"||t.code==="NumpadEnter")&&t.stopPropagation(),t.preventDefault(),this._adapter.propagateKey(t.code));break;case"KeyN":t.preventDefault();let n=S(this._allowSeconds);if(this._value!==n){let o=c(n,!0,this._allowSeconds);this._emitChangeEvent(o)&&(this._applyValue(n),this._selectInputText())}break}}_trySetActiveOption(){var t,e;!this._adapter.hasActiveOption()&&typeof((t=this._dropdownConfig)==null?void 0:t.visibleStartIndex)=="number"&&this._dropdownConfig.visibleStartIndex>=0&&this._adapter.activateOptionByIndex((e=this._dropdownConfig)==null?void 0:e.visibleStartIndex)}_selectActiveOption(){let t=this._adapter.getActiveOption();t&&this._onSelect(t.value)}_onToggleMousedown(t){this._disabled||!this.allowDropdown||(t.stopPropagation(),!this._adapter.isInputDisabled()&&(t.preventDefault(),this._open?this._closeDropdown({emitCloseEvent:!0}):(F.isMobile?this._adapter.tryBlurInput():this._adapter.tryFocusInput(),this._openDropdown())))}_onInputFocus(t){this.masked&&this._showMaskFormat&&this._applyMask(),this._allowInput&&this._adapter.selectInputText()}_onInputBlur(t){this.masked&&this._showMaskFormat&&this._applyMask(),this._formatInputValue(),this._open&&!this._adapter.isInputFocused()&&this._closeDropdown({emitCloseEvent:!0})}_onInputMousedown(t){!this._allowInput&&!this._open&&(this._openDropdown(),this._adapter.tryFocusInput(),window.requestAnimationFrame(()=>this._adapter.selectInputText()))}_applyDisabled(){this._adapter.setDisabled(this._disabled)}_applyMask(){if(this._masked&&this._allowInput){this._adapter.destroyMask();let t={showMaskFormat:this._showMaskFormat&&this._adapter.isInputFocused(),use24HourTime:this._use24HourTime,showSeconds:this._allowSeconds,prepareCallback:this._prepareMaskCallback,onChange:L(e=>this._handleInput(e),0,!0)};this._adapter.initializeMask(t)}else this._adapter.destroyMask(),this._formatInputValue()}_applyAllowInput(){this._adapter.setInputReadonly(!this._allowInput),this._allowInput?(this._adapter.removeInputListener("mousedown",this._inputMousedownListener),this._masked||this._adapter.addInputListener("input",this._inputListener)):(this._adapter.addInputListener("mousedown",this._inputMousedownListener),this._adapter.removeInputListener("input",this._inputListener))}_applyAllowDropdown(){this._adapter.setToggleDisabled(!this._allowDropdown),this._allowDropdown?(this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.tryCreateToggle(),this._adapter.addToggleListener("mousedown",this._toggleMousedownListener)):this._open&&this._closeDropdown({emitCloseEvent:!0})}_applyAllowSeconds(){let t=this._value;if(this._allowSeconds){if(this._isInitialized&&t!==this._value){let e=c(this._value,!0,!0);this._emitChangeEvent(e)}}else{if(typeof this._value!="number")return;if(this._setValue(dt(this._value)),this._isInitialized&&t!==this._value){let e=c(this._value,!0,!1);this._emitChangeEvent(e)}}}_handleInput(t){let e=t;if(!this._allowInput)return;this._open&&this._closeDropdown({emitCloseEvent:!0}),t=Y(t,this._use24HourTime,this._allowSeconds),typeof this._coercionCallback=="function"&&(t=this._coercionCallback.call(null,e,t,this._allowSeconds)),this._isValidTimeFormat(t)||(t="");let i;!this._masked&&typeof this._parseCallback=="function"?i=this._parseCallback.call(null,t):i=this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds),i=this._validateMillis(i),this._trySetValue(i)}_emitChangeEvent(t,e=!1){return this._adapter.emitHostEvent(s.events.CHANGE,t,!0,!e)}_trySetValue(t){if(t===this._value)return!1;let e=c(t,!0,this._allowSeconds);return this._adapter.emitInputEvent(s.events.INPUT,e),this._value!==t&&this._emitChangeEvent(e)?(this._setValue(t),!0):!1}_setValue(t){this._value=this._normalizeTimeValue(t)}_validateMillis(t){if(typeof t=="number"){let e=typeof this._min=="number"&&t<this._min,i=typeof this._max=="number"&&t>this._max;(e||i)&&(t=null)}return typeof t=="number"&&this._restrictedTimes.length&&this._restrictedTimes.includes(t)&&(t=null),t}_isValidTimeFormat(t){return!this._masked&&typeof this._validationCallback=="function"?this._validationCallback.call(this,t):q(t)}_isValidInputValue(t){return b.test(t)}_onSelect(t){if(this._closeDropdown({emitCloseEvent:!0}),!t.isCustom&&t.metadata==="now"&&(t.time=S(this._allowSeconds)),t.isCustom)if(typeof t.customCallback=="function"){let n=t.customCallback.call(null,t.metadata);if(typeof n!="number")throw new Error("Custom options must provide a time of day value in milliseconds.");t.time=n}else throw new Error("You must implement a `toMilliseconds` callback that returns the time value to use for this custom option.");if(this._value===t.time)return;let e=c(t.time,!0,this._allowSeconds);this._emitChangeEvent(e)&&(this._applyValue(t.time),this._selectInputText())}_selectInputText(){window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._adapter.isInputFocused()&&this._adapter.selectInputText()})})}_applyValue(t,e=!0){this._setValue(t);let i=this._formatValue(this._value);this._adapter.getInputValue()!==i&&this._adapter.setInputValue(i,e)}_normalizeTimeValue(t){return t==null?null:t<0?0:t>s.numbers.MAX_DAY_MILLIS?s.numbers.MAX_DAY_MILLIS:t}_openDropdown(){let t=this._generateTimeOptions();if(!this.allowDropdown||!t.length)return;this._formatInputValue(),this._open=!0,this._adapter.setHostAttribute(s.attributes.OPEN);let e=t.filter(o=>!o.divider&&!o.disabled),i=[],n=0;if(t.length)if(this._value!=null){let o=this._findClosestOptionIndex(this._value,e);o>=0&&(e[o].value.time===this._value?i=[e[o].value]:n=o)}else if(typeof this._startTime=="number"){let o=this._findClosestOptionIndex(this._startTime,e);o>=0&&o<e.length&&(n=o)}else this._startTime==null&&(n=this._getOptionIndexClosestCurrent(e));this._dropdownConfig={id:`forge-time-picker-${this._identifier}`,selectedValues:i,syncWidth:!0,visibleStartIndex:n,popupClasses:this._popupClasses,popupStatic:!0,type:"standard",options:t,selectCallback:o=>this._onSelect(o),closeCallback:()=>this._closeDropdown({emitCloseEvent:!0}),activeChangeCallback:o=>this._adapter.setActiveDescendant(o),targetWidthCallback:()=>this._adapter.getTargetElementWidth(this._popupTarget)},this._adapter.attachDropdown(this._dropdownConfig),this._adapter.emitHostEvent(s.events.OPEN,void 0,!1)}_closeDropdown({destroy:t=!1,emitCloseEvent:e=!1}={}){this._open=!1,this._dropdownConfig=void 0,this._adapter.removeHostAttribute(s.attributes.OPEN),this._adapter.detachDropdown({destroy:t}),e&&this._adapter.emitHostEvent(s.events.CLOSE,!0,!1)}_getOptionIndexClosestCurrent(t){let e=new Date,i=`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`,n=g(i,!0,!1);return this._findClosestOptionIndex(n,t)}_findClosestOptionIndex(t,e){let i=e.reduce((n,o)=>Math.abs((o.value.time||0)-t)<Math.abs((n.value.time||0)-t)?o:n);return e.indexOf(i)}_formatInputValue(t=!0){let e=this._adapter.getInputValue();if(this._allowInvalidTime&&!this._masked&&e&&!this._value)return;let i=this._formatValue(this._value);e!==i&&(this._adapter.setInputValue(i,t),this._adapter.emitInputEvent(s.events.INPUT,i))}_generateTimeOptions(){let t=this._min!=null?Math.max(v(this._min),0):0,e=this._max!=null?Math.min(v(this._max),s.numbers.MAX_DAY_MINUTES):s.numbers.MAX_DAY_MINUTES,i=this._step,n=[],o=[];if(this._showHourOptions){for(let d=t;d<=e&&d!==s.numbers.MAX_DAY_MINUTES;d+=i){let _=I(d),mt=this._restrictedTimes.includes(_),_t=c(_,this._use24HourTime,!1)||"",ht={time:_};n.push({label:_t,value:ht,disabled:mt})}let r=n.findIndex(d=>d.value.time/1e3/60>=720);r>=0&&r<n.length-1&&n.splice(r,0,{label:"",value:null,divider:!0})}if(this._showNow){let r={time:null,metadata:"now"};o.push({label:"Now",value:r})}if(Array.isArray(this._customOptions)&&this._customOptions.length){let r=this._customOptions.map(d=>{let _={time:null,metadata:d.value,isCustom:!0,customCallback:d.toMilliseconds};return{label:d.label,value:_}});o=[...o,...r]}return o.length&&(n.length&&n.splice(0,0,{label:"",value:null,divider:!0}),o.forEach((r,d)=>n.splice(d,0,r))),n}_convertTimeStringToMillis(t,e,i){return(!t||!this._isValidTimeFormat(t))&&(t=""),g(t,e,i)}_formatValue(t){return!this._masked&&typeof this._formatCallback=="function"?this._formatCallback.call(null,t,this._use24HourTime,this._allowSeconds):c(this._value,this._use24HourTime,this._allowSeconds)||""}_warnInvalidFormat(t){console.warn(`The specified value "${t}" does not conform to the required format. The format is "HH:mm", "HH:mm:ss" where HH is 00-23, mm is 00-59, and ss is 00-59.`)}get open(){return this._open}set open(t){this._open!==t&&this._isInitialized&&(this._open=t,this._open?this._openDropdown():this._closeDropdown())}get masked(){return this._masked}set masked(t){this._masked!==t&&(this._masked=t,this._isInitialized&&(this._masked?(this._adapter.removeInputListener("input",this._inputListener),this._applyMask()):(this._adapter.destroyMask(),this._formatInputValue(),this._adapter.addInputListener("input",this._inputListener))))}get showMaskFormat(){return this._showMaskFormat}set showMaskFormat(t){this._showMaskFormat!==t&&(this._showMaskFormat=t)}get allowSeconds(){return this._allowSeconds}set allowSeconds(t){this._allowSeconds!==t&&(this._allowSeconds=!!t,this._applyAllowSeconds(),this._isInitialized&&(this._applyMask(),this._formatInputValue()),this._adapter.setHostAttribute(s.attributes.ALLOW_SECONDS,`${!!t}`))}get use24HourTime(){return this._use24HourTime}set use24HourTime(t){this._use24HourTime!==t&&(this._use24HourTime=!!t,this._isInitialized&&(this._applyMask(),this._formatInputValue()),this._adapter.setHostAttribute(s.attributes.USE_24_HOUR_TIME,`${!!t}`))}get allowInvalidTime(){return this._allowInvalidTime}set allowInvalidTime(t){this._allowInvalidTime!==t&&(this._allowInvalidTime=!!t,this._adapter.setHostAttribute(s.attributes.ALLOW_INVALID_TIME,`${!!t}`))}get value(){return c(this._value,!0,this._allowSeconds)}set value(t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}let e=this._validateMillis(this._convertTimeStringToMillis(t,!0,!0));this._setValue(e),this._isInitialized&&this._applyValue(this._value)}get min(){return c(this._min,!0,this._allowSeconds)}set min(t){if(this._min!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._min=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._validateMillis(this._value);this._setValue(e),this._isInitialized&&this._applyValue(e)}}get max(){return c(this._max,!0,this._allowSeconds)}set max(t){if(this._max!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._max=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._validateMillis(this._value);this._setValue(e),this._isInitialized&&this._applyValue(e)}}get restrictedTimes(){return this._restrictedTimes.map(t=>c(t,!0,this._allowSeconds)).filter(t=>typeof t=="string")}set restrictedTimes(t){Array.isArray(t)||(t=[]),this._restrictedTimes=t.filter(e=>typeof e=="string").map(e=>this._convertTimeStringToMillis(e,!0,!0)).filter(e=>typeof e=="number")}get startTime(){return c(this._startTime,!0,this._allowSeconds)}set startTime(t){if(this._startTime!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._startTime=this._convertTimeStringToMillis(t,!0,this._allowSeconds)}}get step(){return this._step}set step(t){this._step=t}get allowInput(){return this._allowInput}set allowInput(t){this._allowInput!==t&&(this._allowInput=t,this._isInitialized&&(this._applyAllowInput(),this._applyMask()))}get popupTarget(){return this._popupTarget}set popupTarget(t){this._popupTarget!==t&&(this._popupTarget=t)}get showNow(){return this._showNow}set showNow(t){this._showNow!==t&&(this._showNow=t)}get showHourOptions(){return this._showHourOptions}set showHourOptions(t){this._showHourOptions!==t&&(this._showHourOptions=t)}get customOptions(){return this._customOptions}set customOptions(t){this._customOptions=Array.isArray(t)?t:[]}set validationCallback(t){this._validationCallback=t,this._isInitialized&&this._applyMask()}set parseCallback(t){this._parseCallback=t}set formatCallback(t){this._formatCallback=t}set coercionCallback(t){this._coercionCallback=t}set prepareMaskCallback(t){this._prepareMaskCallback=t,this._isInitialized&&this._applyMask()}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=!!t,this._isInitialized&&this._applyDisabled(),this._adapter.toggleHostAttribute(s.attributes.DISABLED,this._disabled))}get popupClasses(){return Array.isArray(this._popupClasses)?[...this._popupClasses]:this._popupClasses}set popupClasses(t){Array.isArray(t)?this._popupClasses=[...t]:this._popupClasses=[t]}get allowDropdown(){return this._allowDropdown}set allowDropdown(t){this._allowDropdown!==t&&(this._allowDropdown=t,this._isInitialized&&this._applyAllowDropdown())}};var It="<template><slot></slot></template>",Tt=":host{display:block}:host([hidden]){display:none}",l=class extends B{constructor(){super();Q.define([at,z]),H(this,It,Tt),this._foundation=new T(new f(this))}static get observedAttributes(){return[s.attributes.VALUE,s.attributes.OPEN,s.attributes.ALLOW_SECONDS,s.attributes.MASKED,s.attributes.SHOW_MASK_FORMAT,s.attributes.USE_24_HOUR_TIME,s.attributes.ALLOW_INVALID_TIME,s.attributes.MIN,s.attributes.MAX,s.attributes.START_TIME,s.attributes.STEP,s.attributes.ALLOW_INPUT,s.attributes.SHOW_NOW,s.attributes.SHOW_HOUR_OPTIONS,s.attributes.DISABLED,s.attributes.POPUP_CLASSES,s.attributes.ALLOW_DROPDOWN]}connectedCallback(){this.querySelector(s.selectors.INPUT)?this._foundation.initialize():A(this,s.selectors.INPUT).then(()=>this._foundation.initialize())}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(e,i,n){switch(e){case s.attributes.VALUE:this.value=n;break;case s.attributes.OPEN:this.open=m(n);break;case s.attributes.ALLOW_SECONDS:this.allowSeconds=m(n);break;case s.attributes.MASKED:this.masked=m(n);break;case s.attributes.SHOW_MASK_FORMAT:this.showMaskFormat=m(n);break;case s.attributes.USE_24_HOUR_TIME:this.use24HourTime=m(n);break;case s.attributes.ALLOW_INVALID_TIME:this.allowInvalidTime=m(n);break;case s.attributes.SHOW_NOW:this.showNow=m(n);break;case s.attributes.SHOW_HOUR_OPTIONS:this.showHourOptions=m(n);break;case s.attributes.MIN:this.min=n;break;case s.attributes.MAX:this.max=n;break;case s.attributes.START_TIME:this.startTime=n;break;case s.attributes.STEP:this.step=y(n);break;case s.attributes.ALLOW_INPUT:this.allowInput=m(n);break;case s.attributes.DISABLED:this.disabled=m(n);break;case s.attributes.POPUP_CLASSES:this.popupClasses=n;break;case s.attributes.ALLOW_DROPDOWN:this.allowDropdown=m(n);break}}};p([u()],l.prototype,"value",2),p([u()],l.prototype,"open",2),p([u()],l.prototype,"allowSeconds",2),p([u()],l.prototype,"masked",2),p([u()],l.prototype,"showMaskFormat",2),p([u()],l.prototype,"use24HourTime",2),p([u()],l.prototype,"allowInvalidTime",2),p([u()],l.prototype,"min",2),p([u()],l.prototype,"max",2),p([u()],l.prototype,"restrictedTimes",2),p([u()],l.prototype,"startTime",2),p([u()],l.prototype,"step",2),p([u()],l.prototype,"allowInput",2),p([u()],l.prototype,"showNow",2),p([u()],l.prototype,"showHourOptions",2),p([u()],l.prototype,"customOptions",2),p([u()],l.prototype,"validationCallback",2),p([u()],l.prototype,"parseCallback",2),p([u()],l.prototype,"formatCallback",2),p([u()],l.prototype,"coercionCallback",2),p([u()],l.prototype,"prepareMaskCallback",2),p([u()],l.prototype,"disabled",2),p([u()],l.prototype,"popupClasses",2),p([u()],l.prototype,"allowDropdown",2),p([u()],l.prototype,"popupTarget",2),l=p([U({name:s.elementName,dependencies:[et,tt,Z,w,it,w,ot]})],l);var ct=class extends K{constructor(e){super(e)}_build(){let e=document.createElement(s.elementName);return this._attachTextField(e),e}get inputElement(){return this._textFieldDelegate.inputElement}get textFieldElement(){return this._textFieldDelegate.element}get value(){return this._element.value}set value(e){this._element.value=e}get disabled(){return this._element.disabled}set disabled(e){this._element.disabled=e}get invalid(){return this._textFieldDelegate.invalid||!1}set invalid(e){this._textFieldDelegate.invalid=e}onChange(e){this._element.addEventListener(s.events.CHANGE,i=>{var n;return e((n=i.detail)!=null?n:"")})}onInput(e){this._element.addEventListener(s.events.INPUT,i=>{var n;return e((n=i.detail)!=null?n:"")})}onFocus(e){this._textFieldDelegate.inputElement.addEventListener("focus",i=>e(i))}onBlur(e){this._textFieldDelegate.inputElement.addEventListener("blur",i=>e(i))}_attachTextField(e){var n,o,r,d;let i={props:k({},(o=(n=this._config.options)==null?void 0:n.textFieldDelegateConfig)==null?void 0:o.props),options:k({},(d=(r=this._config.options)==null?void 0:r.textFieldDelegateConfig)==null?void 0:d.options)};this._textFieldDelegate=new st(i),e.appendChild(this._textFieldDelegate.element)}};function Fe(){N(l)}export{s as a,f as b,g as c,c as d,lt as e,pt as f,v as g,M as h,vt as i,ut as j,I as k,O as l,dt as m,S as n,Ut as o,T as p,l as q,ct as r,Fe as s};
7
+ //# sourceMappingURL=chunk.EHVCEEV2.js.map