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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (928) hide show
  1. package/custom-elements.json +33555 -39387
  2. package/dist/dialog/forge-dialog-utils.css +1 -1
  3. package/dist/esm/accordion/index.js +1 -1
  4. package/dist/esm/app-bar/app-bar/index.js +1 -1
  5. package/dist/esm/app-bar/help-button/index.js +1 -1
  6. package/dist/esm/app-bar/index.js +1 -1
  7. package/dist/esm/app-bar/menu-button/index.js +1 -1
  8. package/dist/esm/app-bar/notification-button/index.js +1 -1
  9. package/dist/esm/app-bar/profile-button/index.js +1 -1
  10. package/dist/esm/app-bar/search/index.js +1 -1
  11. package/dist/esm/autocomplete/index.js +1 -1
  12. package/dist/esm/avatar/index.js +1 -1
  13. package/dist/esm/backdrop/index.js +1 -1
  14. package/dist/esm/badge/index.js +1 -1
  15. package/dist/esm/banner/index.js +1 -1
  16. package/dist/esm/bottom-sheet/index.js +1 -1
  17. package/dist/esm/busy-indicator/index.js +1 -1
  18. package/dist/esm/button/index.js +1 -1
  19. package/dist/esm/button-area/index.js +1 -1
  20. package/dist/esm/button-toggle/button-toggle/index.js +1 -1
  21. package/dist/esm/button-toggle/button-toggle-group/index.js +1 -1
  22. package/dist/esm/button-toggle/index.js +1 -1
  23. package/dist/esm/calendar/calendar-dropdown/index.js +1 -1
  24. package/dist/esm/calendar/calendar-menu/index.js +1 -1
  25. package/dist/esm/calendar/index.js +1 -1
  26. package/dist/esm/card/index.js +1 -1
  27. package/dist/esm/checkbox/index.js +1 -1
  28. package/dist/esm/chip-field/index.js +1 -1
  29. package/dist/esm/chips/chip/index.js +1 -1
  30. package/dist/esm/chips/chip-set/index.js +1 -1
  31. package/dist/esm/chips/index.js +1 -1
  32. package/dist/esm/chunks/{chunk.YS5JZHJ6.js → chunk.24SQJBSQ.js} +2 -2
  33. package/dist/esm/chunks/{chunk.PDDBNHVU.js → chunk.2GUWHBUU.js} +2 -2
  34. package/dist/esm/chunks/{chunk.PDDBNHVU.js.map → chunk.2GUWHBUU.js.map} +2 -2
  35. package/dist/esm/chunks/chunk.37B332ZK.js +7 -0
  36. package/dist/esm/chunks/{chunk.SOKORSUV.js.map → chunk.37B332ZK.js.map} +3 -3
  37. package/dist/esm/chunks/chunk.3IUQ4C47.js +7 -0
  38. package/dist/esm/chunks/chunk.3IUQ4C47.js.map +7 -0
  39. package/dist/esm/chunks/{chunk.IZRURH7C.js → chunk.3KAKJGUS.js} +2 -2
  40. package/dist/esm/chunks/chunk.3PMONORO.js +7 -0
  41. package/dist/esm/chunks/chunk.3PMONORO.js.map +7 -0
  42. package/dist/esm/chunks/chunk.473WRJ5G.js +7 -0
  43. package/dist/esm/chunks/chunk.5A665C5E.js +7 -0
  44. package/dist/esm/chunks/chunk.5A665C5E.js.map +7 -0
  45. package/dist/esm/chunks/chunk.5ADUSMC7.js +7 -0
  46. package/dist/esm/chunks/chunk.5ADUSMC7.js.map +7 -0
  47. package/dist/esm/chunks/{chunk.USQEIRST.js → chunk.5MB6CTBA.js} +2 -2
  48. package/dist/esm/chunks/chunk.5SUJNEC7.js +7 -0
  49. package/dist/esm/chunks/chunk.5SUJNEC7.js.map +7 -0
  50. package/dist/esm/chunks/{chunk.47U6GVGZ.js → chunk.5UOX22ML.js} +2 -2
  51. package/dist/esm/chunks/chunk.6E5WHIPF.js +7 -0
  52. package/dist/esm/chunks/chunk.6E5WHIPF.js.map +7 -0
  53. package/dist/esm/chunks/{chunk.4NABD6XG.js → chunk.6VS3LYAF.js} +2 -2
  54. package/dist/esm/chunks/chunk.72BKSMAZ.js +7 -0
  55. package/dist/esm/chunks/{chunk.3TIBP6QT.js.map → chunk.72BKSMAZ.js.map} +3 -3
  56. package/dist/esm/chunks/chunk.77C7S7ZS.js +7 -0
  57. package/dist/esm/chunks/chunk.77C7S7ZS.js.map +7 -0
  58. package/dist/esm/chunks/chunk.7AAICE77.js +7 -0
  59. package/dist/esm/chunks/chunk.7AAICE77.js.map +7 -0
  60. package/dist/esm/chunks/chunk.7IPAW4D2.js +7 -0
  61. package/dist/esm/chunks/{chunk.MCR34SZQ.js.map → chunk.7IPAW4D2.js.map} +1 -1
  62. package/dist/esm/chunks/chunk.7Y3BUR7Q.js +7 -0
  63. package/dist/esm/chunks/{chunk.3U222LE4.js.map → chunk.7Y3BUR7Q.js.map} +1 -1
  64. package/dist/esm/chunks/chunk.A2NB7CIK.js +7 -0
  65. package/dist/esm/chunks/chunk.A2NB7CIK.js.map +7 -0
  66. package/dist/esm/chunks/{chunk.AOSBUJWW.js → chunk.A7BCLPP4.js} +2 -2
  67. package/dist/esm/chunks/chunk.AFWWND2C.js +7 -0
  68. package/dist/esm/chunks/chunk.AFWWND2C.js.map +7 -0
  69. package/dist/esm/chunks/{chunk.7UBIT4NP.js → chunk.AG6IRMLZ.js} +2 -2
  70. package/dist/esm/chunks/{chunk.A4UH52SA.js → chunk.AGLI4WR4.js} +2 -2
  71. package/dist/esm/chunks/{chunk.WTUXAH7Z.js → chunk.AOVXNX7P.js} +2 -2
  72. package/dist/esm/chunks/{chunk.AN2E2SSN.js → chunk.ASLHRT3N.js} +2 -2
  73. package/dist/esm/chunks/chunk.BEFAXPXJ.js +15 -0
  74. package/dist/esm/chunks/{chunk.EO3HELQ2.js.map → chunk.BEFAXPXJ.js.map} +1 -1
  75. package/dist/esm/chunks/{chunk.CBLUXYH2.js → chunk.BHE6Z5Y2.js} +2 -2
  76. package/dist/esm/chunks/{chunk.2WRAXA3H.js → chunk.BQ52JYLA.js} +2 -2
  77. package/dist/esm/chunks/chunk.BQZKOIAW.js +7 -0
  78. package/dist/esm/chunks/chunk.BQZKOIAW.js.map +7 -0
  79. package/dist/esm/chunks/chunk.BV7EAQST.js +7 -0
  80. package/dist/esm/chunks/chunk.BV7EAQST.js.map +7 -0
  81. package/dist/esm/chunks/{chunk.ROMRJIFR.js → chunk.CE35CVDV.js} +2 -2
  82. package/dist/esm/chunks/{chunk.ZPXMKY72.js → chunk.CEGBMUSR.js} +2 -2
  83. package/dist/esm/chunks/{chunk.GBGGUYTE.js → chunk.CFAI4K3E.js} +2 -2
  84. package/dist/esm/chunks/{chunk.ZIGVO6FN.js → chunk.CGFSMACZ.js} +2 -2
  85. package/dist/esm/chunks/chunk.DJSHVUEM.js +18 -0
  86. package/dist/esm/chunks/{chunk.MGLWXAZO.js.map → chunk.DJSHVUEM.js.map} +4 -4
  87. package/dist/esm/chunks/chunk.DKERDHXH.js +7 -0
  88. package/dist/esm/chunks/{chunk.JVWJHSPM.js.map → chunk.DKERDHXH.js.map} +1 -1
  89. package/dist/esm/chunks/chunk.DZJ6HBAG.js +7 -0
  90. package/dist/esm/chunks/chunk.DZJ6HBAG.js.map +7 -0
  91. package/dist/esm/chunks/{chunk.2537XOFQ.js → chunk.E2BE52ME.js} +2 -2
  92. package/dist/esm/chunks/chunk.EHVCEEV2.js +7 -0
  93. package/dist/esm/chunks/chunk.EHVCEEV2.js.map +7 -0
  94. package/dist/esm/chunks/{chunk.UEYPCCFG.js → chunk.ENUKGA2U.js} +2 -2
  95. package/dist/esm/chunks/chunk.EO3GP6DP.js +7 -0
  96. package/dist/esm/chunks/chunk.EO3GP6DP.js.map +7 -0
  97. package/dist/esm/chunks/{chunk.XYBVD3IE.js → chunk.EUJBIOGT.js} +2 -2
  98. package/dist/esm/chunks/{chunk.XYBVD3IE.js.map → chunk.EUJBIOGT.js.map} +2 -2
  99. package/dist/esm/chunks/chunk.FLBYVCQ6.js +7 -0
  100. package/dist/esm/chunks/chunk.FLBYVCQ6.js.map +7 -0
  101. package/dist/esm/chunks/chunk.FLF5RTYO.js +7 -0
  102. package/dist/esm/chunks/chunk.FLF5RTYO.js.map +7 -0
  103. package/dist/esm/chunks/chunk.GBAVJILM.js +7 -0
  104. package/dist/esm/chunks/chunk.GBAVJILM.js.map +7 -0
  105. package/dist/esm/chunks/chunk.GG7IQL46.js +7 -0
  106. package/dist/esm/chunks/{chunk.HBAC6E7O.js.map → chunk.GG7IQL46.js.map} +1 -1
  107. package/dist/esm/chunks/chunk.GIENHEMN.js +7 -0
  108. package/dist/esm/chunks/chunk.GIENHEMN.js.map +7 -0
  109. package/dist/esm/chunks/{chunk.FOSKVNVV.js → chunk.H4VQXV2H.js} +2 -2
  110. package/dist/esm/chunks/{chunk.FOSKVNVV.js.map → chunk.H4VQXV2H.js.map} +2 -2
  111. package/dist/esm/chunks/{chunk.GA6AO6FJ.js → chunk.H5RW3A4M.js} +2 -2
  112. package/dist/esm/chunks/chunk.HG4IDRAC.js +7 -0
  113. package/dist/esm/chunks/chunk.HG4IDRAC.js.map +7 -0
  114. package/dist/esm/chunks/{chunk.CSOKFDFQ.js → chunk.HSADKCGS.js} +2 -2
  115. package/dist/esm/chunks/chunk.I7YON2TC.js +7 -0
  116. package/dist/esm/chunks/chunk.I7YON2TC.js.map +7 -0
  117. package/dist/esm/chunks/chunk.IEABOPNB.js +7 -0
  118. package/dist/esm/chunks/{chunk.22C7GQLX.js → chunk.IL4S57WO.js} +2 -2
  119. package/dist/esm/chunks/chunk.IQYOLMPG.js +7 -0
  120. package/dist/esm/chunks/chunk.IQYOLMPG.js.map +7 -0
  121. package/dist/esm/chunks/chunk.ISLJNJEE.js +7 -0
  122. package/dist/esm/chunks/chunk.ISLJNJEE.js.map +7 -0
  123. package/dist/esm/chunks/{chunk.QG5EYBS3.js → chunk.J2Y5KPON.js} +2 -2
  124. package/dist/esm/chunks/{chunk.QG5EYBS3.js.map → chunk.J2Y5KPON.js.map} +2 -2
  125. package/dist/esm/chunks/{chunk.7IJUN75W.js → chunk.JE5LSPXG.js} +2 -2
  126. package/dist/esm/chunks/{chunk.7IJUN75W.js.map → chunk.JE5LSPXG.js.map} +3 -3
  127. package/dist/esm/chunks/{chunk.GTKYO6VB.js → chunk.JGURMVW7.js} +2 -2
  128. package/dist/esm/chunks/{chunk.YXHMD73U.js → chunk.K6GJNDTY.js} +2 -2
  129. package/dist/esm/chunks/{chunk.QUWEAFGI.js → chunk.KEOLH7G3.js} +2 -2
  130. package/dist/esm/chunks/chunk.KLU54MDQ.js +7 -0
  131. package/dist/esm/chunks/chunk.KLU54MDQ.js.map +7 -0
  132. package/dist/esm/chunks/chunk.KO6ODCZC.js +7 -0
  133. package/dist/esm/chunks/chunk.KO6ODCZC.js.map +7 -0
  134. package/dist/esm/chunks/chunk.KTPEFU7V.js +7 -0
  135. package/dist/esm/chunks/{chunk.OFXSMOV6.js.map → chunk.KTPEFU7V.js.map} +2 -2
  136. package/dist/esm/chunks/chunk.L4QSPQDE.js +7 -0
  137. package/dist/esm/chunks/{chunk.DCCFF327.js.map → chunk.L4QSPQDE.js.map} +2 -2
  138. package/dist/esm/chunks/chunk.LGSCBWNR.js +7 -0
  139. package/dist/esm/chunks/chunk.LGSCBWNR.js.map +7 -0
  140. package/dist/esm/chunks/{chunk.BIQTNLIF.js → chunk.LNTTU2GL.js} +2 -2
  141. package/dist/esm/chunks/chunk.LSMHIVX2.js +7 -0
  142. package/dist/esm/chunks/chunk.LSMHIVX2.js.map +7 -0
  143. package/dist/esm/chunks/{chunk.2AM2BKEO.js → chunk.MFQRXVKO.js} +2 -2
  144. package/dist/esm/chunks/{chunk.JLSFTWPE.js → chunk.MTIPIEXA.js} +2 -2
  145. package/dist/esm/chunks/chunk.MX4JX4GT.js +7 -0
  146. package/dist/esm/chunks/{chunk.UOD3A7M4.js.map → chunk.MX4JX4GT.js.map} +1 -1
  147. package/dist/esm/chunks/chunk.NEQX2QVX.js +7 -0
  148. package/dist/esm/chunks/chunk.NEQX2QVX.js.map +7 -0
  149. package/dist/esm/chunks/chunk.NWVQ5HK2.js +7 -0
  150. package/dist/esm/chunks/{chunk.BETICEYY.js.map → chunk.NWVQ5HK2.js.map} +2 -2
  151. package/dist/esm/chunks/chunk.O5WAQQNR.js +7 -0
  152. package/dist/esm/chunks/{chunk.ZYKP23JP.js.map → chunk.O5WAQQNR.js.map} +2 -2
  153. package/dist/esm/chunks/{chunk.JSTCCUKZ.js → chunk.OEI35LFU.js} +2 -2
  154. package/dist/esm/chunks/{chunk.6GSVB5NB.js → chunk.OLFOVKQG.js} +2 -2
  155. package/dist/esm/chunks/chunk.OLFOVKQG.js.map +7 -0
  156. package/dist/esm/chunks/{chunk.IWVAI6XM.js → chunk.OOAJHLW4.js} +2 -2
  157. package/dist/esm/chunks/chunk.OOAJHLW4.js.map +7 -0
  158. package/dist/esm/chunks/chunk.OVXEOEJF.js +7 -0
  159. package/dist/esm/chunks/chunk.OVXEOEJF.js.map +7 -0
  160. package/dist/esm/chunks/chunk.PC6TW5XE.js +7 -0
  161. package/dist/esm/chunks/chunk.PC6TW5XE.js.map +7 -0
  162. package/dist/esm/chunks/chunk.PFIIBXTS.js +7 -0
  163. package/dist/esm/chunks/chunk.PFIIBXTS.js.map +7 -0
  164. package/dist/esm/chunks/chunk.Q7TBWGKN.js +12 -0
  165. package/dist/esm/chunks/chunk.Q7TBWGKN.js.map +7 -0
  166. package/dist/esm/chunks/chunk.QCPV5DEG.js +7 -0
  167. package/dist/esm/chunks/{chunk.R3AWIPPK.js → chunk.QIZBZGYT.js} +2 -2
  168. package/dist/esm/chunks/{chunk.2XPAYTK4.js → chunk.QKTK5XUE.js} +2 -2
  169. package/dist/esm/chunks/chunk.QLGJS37N.js +7 -0
  170. package/dist/esm/chunks/chunk.QLGJS37N.js.map +7 -0
  171. package/dist/esm/chunks/{chunk.R66CYS27.js → chunk.QTY25OTN.js} +2 -2
  172. package/dist/esm/chunks/chunk.QUXMLWBJ.js +7 -0
  173. package/dist/esm/chunks/{chunk.BEUQVZKZ.js.map → chunk.QUXMLWBJ.js.map} +1 -1
  174. package/dist/esm/chunks/{chunk.BSV27GU7.js → chunk.QVATEY5S.js} +2 -2
  175. package/dist/esm/chunks/chunk.RFT3BAJ2.js +7 -0
  176. package/dist/esm/chunks/chunk.RFT3BAJ2.js.map +7 -0
  177. package/dist/esm/chunks/{chunk.SHBDQPPH.js → chunk.RONMNRSH.js} +2 -2
  178. package/dist/esm/chunks/{chunk.FRTSXX33.js → chunk.RSYEG2RW.js} +2 -2
  179. package/dist/esm/chunks/{chunk.O56VP4OZ.js → chunk.RXBLU4OJ.js} +2 -2
  180. package/dist/esm/chunks/{chunk.FBDRM4YN.js → chunk.S7KEO2CH.js} +2 -2
  181. package/dist/esm/chunks/{chunk.XU3YSZPA.js → chunk.SQ3AZAHF.js} +2 -2
  182. package/dist/esm/chunks/{chunk.35MHQH7Z.js → chunk.SROEDYPL.js} +2 -2
  183. package/dist/esm/chunks/chunk.T7NWP7DB.js +7 -0
  184. package/dist/esm/chunks/chunk.T7NWP7DB.js.map +7 -0
  185. package/dist/esm/chunks/{chunk.PXRGQHWR.js → chunk.TQWZDM6T.js} +2 -2
  186. package/dist/esm/chunks/chunk.U6J4VHU6.js +7 -0
  187. package/dist/esm/chunks/{chunk.STSAE2XP.js.map → chunk.U6J4VHU6.js.map} +1 -1
  188. package/dist/esm/chunks/chunk.UKBE2FMZ.js +7 -0
  189. package/dist/esm/chunks/{chunk.OT4AIOMN.js.map → chunk.UKBE2FMZ.js.map} +3 -3
  190. package/dist/esm/chunks/{chunk.MDDX4MJU.js → chunk.UPSXYWPD.js} +2 -2
  191. package/dist/esm/chunks/{chunk.MDDX4MJU.js.map → chunk.UPSXYWPD.js.map} +2 -2
  192. package/dist/esm/chunks/chunk.USTVZ6MZ.js +7 -0
  193. package/dist/esm/chunks/chunk.USTVZ6MZ.js.map +7 -0
  194. package/dist/esm/chunks/chunk.VGIRVTBJ.js +7 -0
  195. package/dist/esm/chunks/chunk.VGIRVTBJ.js.map +7 -0
  196. package/dist/esm/chunks/chunk.VRSPT7WX.js +7 -0
  197. package/dist/esm/chunks/{chunk.UQQQSJVM.js.map → chunk.VRSPT7WX.js.map} +3 -3
  198. package/dist/esm/chunks/chunk.W4HANHUO.js +7 -0
  199. package/dist/esm/chunks/chunk.W6FT6MKN.js +7 -0
  200. package/dist/esm/chunks/chunk.W6FT6MKN.js.map +7 -0
  201. package/dist/esm/chunks/{chunk.2W276VOR.js → chunk.WMJSYYXQ.js} +2 -2
  202. package/dist/esm/chunks/chunk.WXVVOFNK.js +7 -0
  203. package/dist/esm/chunks/chunk.WXVVOFNK.js.map +7 -0
  204. package/dist/esm/chunks/{chunk.VOTT5COZ.js → chunk.XATVDHDW.js} +2 -2
  205. package/dist/esm/chunks/chunk.XATVDHDW.js.map +7 -0
  206. package/dist/esm/chunks/{chunk.4AEQ7KVU.js → chunk.XTJGWT5F.js} +2 -2
  207. package/dist/esm/chunks/chunk.YNCTSMT6.js +7 -0
  208. package/dist/esm/chunks/chunk.YNCTSMT6.js.map +7 -0
  209. package/dist/esm/chunks/{chunk.YNXWVL4B.js → chunk.YPNSK2CK.js} +2 -2
  210. package/dist/esm/chunks/chunk.YRAEFQJW.js +7 -0
  211. package/dist/esm/chunks/{chunk.XAZ6EDIZ.js.map → chunk.YRAEFQJW.js.map} +3 -3
  212. package/dist/esm/chunks/chunk.YWJVZVZX.js +7 -0
  213. package/dist/esm/chunks/{chunk.6XLTVIUD.js → chunk.ZA7JY3AY.js} +2 -2
  214. package/dist/esm/chunks/chunk.ZG6YF2HI.js +7 -0
  215. package/dist/esm/chunks/{chunk.R6VPRRTT.js.map → chunk.ZG6YF2HI.js.map} +1 -1
  216. package/dist/esm/circular-progress/index.js +1 -1
  217. package/dist/esm/color-picker/index.js +1 -1
  218. package/dist/esm/core/base/index.js +1 -1
  219. package/dist/esm/core/delegates/index.js +1 -1
  220. package/dist/esm/core/index.js +1 -1
  221. package/dist/esm/core/utils/index.js +1 -1
  222. package/dist/esm/date-picker/index.js +1 -1
  223. package/dist/esm/date-range-picker/index.js +1 -1
  224. package/dist/esm/deprecated/button/index.js +1 -1
  225. package/dist/esm/deprecated/index.js +1 -1
  226. package/dist/esm/dialog/index.js +1 -1
  227. package/dist/esm/divider/index.js +1 -1
  228. package/dist/esm/drawer/base/index.js +1 -1
  229. package/dist/esm/drawer/drawer/index.js +1 -1
  230. package/dist/esm/drawer/index.js +1 -1
  231. package/dist/esm/drawer/mini-drawer/index.js +1 -1
  232. package/dist/esm/drawer/modal-drawer/index.js +1 -1
  233. package/dist/esm/expansion-panel/index.js +1 -1
  234. package/dist/esm/{field-next → field}/base/index.js +1 -1
  235. package/dist/esm/field/index.js +7 -0
  236. package/dist/esm/file-picker/index.js +1 -1
  237. package/dist/esm/floating-action-button/index.js +1 -1
  238. package/dist/esm/focus-indicator/index.js +1 -1
  239. package/dist/esm/icon/index.js +1 -1
  240. package/dist/esm/icon-button/index.js +1 -1
  241. package/dist/esm/index.js +1 -1
  242. package/dist/esm/inline-message/index.js +1 -1
  243. package/dist/esm/keyboard-shortcut/index.js +1 -1
  244. package/dist/esm/label/index.js +1 -1
  245. package/dist/esm/label-value/index.js +1 -1
  246. package/dist/esm/linear-progress/index.js +1 -1
  247. package/dist/esm/list/index.js +1 -1
  248. package/dist/esm/list/list/index.js +1 -1
  249. package/dist/esm/list/list-item/index.js +1 -1
  250. package/dist/esm/list-dropdown/index.js +1 -1
  251. package/dist/esm/menu/index.js +1 -1
  252. package/dist/esm/open-icon/index.js +1 -1
  253. package/dist/esm/overlay/index.js +1 -1
  254. package/dist/esm/page-state/index.js +1 -1
  255. package/dist/esm/paginator/index.js +1 -1
  256. package/dist/esm/popover/index.js +1 -1
  257. package/dist/esm/profile-card/index.js +1 -1
  258. package/dist/esm/quantity-field/index.js +1 -1
  259. package/dist/esm/radio/index.js +1 -1
  260. package/dist/esm/radio/radio/index.js +1 -1
  261. package/dist/esm/radio/radio-group/index.js +1 -1
  262. package/dist/esm/scaffold/index.js +1 -1
  263. package/dist/esm/select/core/index.js +1 -1
  264. package/dist/esm/select/index.js +1 -1
  265. package/dist/esm/select/option/index.js +1 -1
  266. package/dist/esm/select/option-group/index.js +1 -1
  267. package/dist/esm/select/select/index.js +1 -1
  268. package/dist/esm/select/select-dropdown/index.js +1 -1
  269. package/dist/esm/skeleton/index.js +1 -1
  270. package/dist/esm/slider/index.js +1 -1
  271. package/dist/esm/split-button/index.js +1 -1
  272. package/dist/esm/split-view/index.js +1 -1
  273. package/dist/esm/split-view/split-view/index.js +1 -1
  274. package/dist/esm/split-view/split-view-panel/index.js +1 -1
  275. package/dist/esm/stack/index.js +1 -1
  276. package/dist/esm/state-layer/index.js +1 -1
  277. package/dist/esm/stepper/index.js +1 -1
  278. package/dist/esm/stepper/step/index.js +1 -1
  279. package/dist/esm/stepper/stepper/index.js +1 -1
  280. package/dist/esm/switch/index.js +1 -1
  281. package/dist/esm/table/index.js +1 -1
  282. package/dist/esm/tabs/index.js +1 -1
  283. package/dist/esm/tabs/tab/index.js +1 -1
  284. package/dist/esm/tabs/tab-bar/index.js +1 -1
  285. package/dist/esm/text-field/index.js +1 -1
  286. package/dist/esm/time-picker/index.js +1 -1
  287. package/dist/esm/toast/index.js +1 -1
  288. package/dist/esm/toolbar/index.js +1 -1
  289. package/dist/esm/tooltip/index.js +1 -1
  290. package/dist/esm/view-switcher/index.js +1 -1
  291. package/dist/esm/view-switcher/view/index.js +1 -1
  292. package/dist/forge-core.css +1 -1
  293. package/dist/forge-dark.css +1 -1
  294. package/dist/forge.css +1 -1
  295. package/esm/app-bar/profile-button/app-bar-profile-button-adapter.d.ts +6 -6
  296. package/esm/app-bar/profile-button/app-bar-profile-button-adapter.js +18 -10
  297. package/esm/app-bar/profile-button/app-bar-profile-button-foundation.d.ts +3 -3
  298. package/esm/app-bar/profile-button/app-bar-profile-button-foundation.js +13 -17
  299. package/esm/app-bar/profile-button/app-bar-profile-button.d.ts +4 -4
  300. package/esm/app-bar/profile-button/app-bar-profile-button.js +3 -3
  301. package/esm/autocomplete/autocomplete-adapter.d.ts +6 -2
  302. package/esm/autocomplete/autocomplete-adapter.js +27 -23
  303. package/esm/autocomplete/autocomplete-constants.d.ts +2 -2
  304. package/esm/autocomplete/autocomplete-constants.js +1 -2
  305. package/esm/autocomplete/autocomplete-foundation.js +3 -5
  306. package/esm/autocomplete/autocomplete.js +2 -2
  307. package/esm/backdrop/backdrop-constants.d.ts +10 -13
  308. package/esm/backdrop/backdrop-constants.js +12 -17
  309. package/esm/backdrop/backdrop.d.ts +17 -29
  310. package/esm/backdrop/backdrop.js +79 -50
  311. package/esm/backdrop/index.d.ts +0 -2
  312. package/esm/backdrop/index.js +0 -2
  313. package/esm/bottom-sheet/bottom-sheet-adapter.d.ts +2 -2
  314. package/esm/bottom-sheet/bottom-sheet-adapter.js +12 -5
  315. package/esm/bottom-sheet/bottom-sheet-foundation.js +1 -1
  316. package/esm/bottom-sheet/bottom-sheet.js +2 -2
  317. package/esm/busy-indicator/busy-indicator-adapter.d.ts +2 -6
  318. package/esm/busy-indicator/busy-indicator-adapter.js +8 -6
  319. package/esm/busy-indicator/busy-indicator-foundation.js +1 -1
  320. package/esm/button/base/base-button-foundation.js +2 -1
  321. package/esm/button-area/button-area-foundation.js +2 -3
  322. package/esm/calendar/calendar-constants.d.ts +1 -1
  323. package/esm/calendar/calendar-constants.js +1 -1
  324. package/esm/calendar/calendar-dropdown/calendar-dropdown.d.ts +6 -4
  325. package/esm/calendar/calendar-dropdown/calendar-dropdown.js +21 -25
  326. package/esm/calendar/calendar-menu/calendar-menu-constants.d.ts +1 -1
  327. package/esm/calendar/calendar-menu/calendar-menu-constants.js +1 -1
  328. package/esm/calendar/calendar-menu/calendar-menu.js +3 -3
  329. package/esm/calendar/calendar.js +3 -3
  330. package/esm/card/card-constants.d.ts +2 -5
  331. package/esm/card/card-constants.js +4 -10
  332. package/esm/card/card.d.ts +10 -5
  333. package/esm/card/card.js +14 -16
  334. package/esm/checkbox/checkbox-adapter.d.ts +0 -34
  335. package/esm/checkbox/checkbox-adapter.js +10 -105
  336. package/esm/checkbox/checkbox-constants.d.ts +13 -4
  337. package/esm/checkbox/checkbox-constants.js +8 -11
  338. package/esm/checkbox/checkbox-foundation.d.ts +5 -11
  339. package/esm/checkbox/checkbox-foundation.js +24 -35
  340. package/esm/checkbox/checkbox.d.ts +24 -24
  341. package/esm/checkbox/checkbox.js +65 -83
  342. package/esm/chip-field/chip-field-adapter.d.ts +48 -22
  343. package/esm/chip-field/chip-field-adapter.js +130 -30
  344. package/esm/chip-field/chip-field-component-delegate.js +1 -1
  345. package/esm/chip-field/chip-field-constants.d.ts +18 -16
  346. package/esm/chip-field/chip-field-constants.js +19 -20
  347. package/esm/chip-field/chip-field-foundation.d.ts +26 -16
  348. package/esm/chip-field/chip-field-foundation.js +128 -74
  349. package/esm/chip-field/chip-field.d.ts +9 -6
  350. package/esm/chip-field/chip-field.js +24 -11
  351. package/esm/chips/chip/chip.js +1 -1
  352. package/esm/constants.d.ts +2 -0
  353. package/esm/constants.js +2 -0
  354. package/esm/core/base/base-adapter.d.ts +1 -0
  355. package/esm/core/controllers/move-controller.d.ts +32 -0
  356. package/esm/core/controllers/move-controller.js +40 -0
  357. package/esm/core/mixins/interactions/moveable/with-moveable.d.ts +30 -0
  358. package/esm/core/mixins/interactions/moveable/with-moveable.js +131 -0
  359. package/esm/core/utils/dismissible-stack.d.ts +6 -0
  360. package/esm/core/utils/dismissible-stack.js +9 -0
  361. package/esm/core/utils/feature-detection.d.ts +5 -0
  362. package/esm/core/utils/feature-detection.js +7 -0
  363. package/esm/core/utils/index.d.ts +2 -0
  364. package/esm/core/utils/index.js +2 -0
  365. package/esm/core/utils/svg-utils.d.ts +1 -1
  366. package/esm/core/utils/svg-utils.js +2 -2
  367. package/esm/date-picker/date-picker.d.ts +0 -2
  368. package/esm/date-picker/date-picker.js +2 -4
  369. package/esm/date-range-picker/date-range-picker-adapter.js +1 -1
  370. package/esm/date-range-picker/date-range-picker-component-delegate.d.ts +1 -1
  371. package/esm/date-range-picker/date-range-picker.js +2 -2
  372. package/esm/dialog/dialog-adapter.d.ts +44 -62
  373. package/esm/dialog/dialog-adapter.js +107 -135
  374. package/esm/dialog/dialog-constants.d.ts +51 -28
  375. package/esm/dialog/dialog-constants.js +36 -33
  376. package/esm/dialog/dialog-foundation.d.ts +59 -75
  377. package/esm/dialog/dialog-foundation.js +218 -360
  378. package/esm/dialog/dialog.d.ts +127 -46
  379. package/esm/dialog/dialog.js +161 -60
  380. package/esm/drawer/modal-drawer/modal-drawer-adapter.js +1 -1
  381. package/esm/drawer/modal-drawer/modal-drawer-foundation.js +5 -6
  382. package/esm/expansion-panel/expansion-panel-adapter.d.ts +13 -20
  383. package/esm/expansion-panel/expansion-panel-adapter.js +22 -159
  384. package/esm/expansion-panel/expansion-panel-constants.d.ts +16 -22
  385. package/esm/expansion-panel/expansion-panel-constants.js +16 -30
  386. package/esm/expansion-panel/expansion-panel-foundation.d.ts +14 -37
  387. package/esm/expansion-panel/expansion-panel-foundation.js +50 -117
  388. package/esm/expansion-panel/expansion-panel.d.ts +29 -32
  389. package/esm/expansion-panel/expansion-panel.js +32 -32
  390. package/esm/{field-next → field}/base/base-field-foundation.js +14 -0
  391. package/esm/{field-next/field-foundation.d.ts → field/base/with-base-field.d.ts} +24 -39
  392. package/esm/field/base/with-base-field.js +210 -0
  393. package/esm/field/field-adapter.d.ts +49 -92
  394. package/esm/field/field-adapter.js +114 -154
  395. package/esm/field/field-constants.d.ts +82 -30
  396. package/esm/field/field-constants.js +51 -29
  397. package/esm/field/field-foundation.d.ts +78 -48
  398. package/esm/field/field-foundation.js +171 -273
  399. package/esm/field/field.d.ts +202 -24
  400. package/esm/field/field.js +267 -37
  401. package/esm/focus-indicator/focus-indicator-constants.d.ts +5 -0
  402. package/esm/focus-indicator/focus-indicator-constants.js +7 -2
  403. package/esm/focus-indicator/focus-indicator-foundation.d.ts +5 -0
  404. package/esm/focus-indicator/focus-indicator-foundation.js +21 -3
  405. package/esm/focus-indicator/focus-indicator.d.ts +5 -0
  406. package/esm/focus-indicator/focus-indicator.js +9 -7
  407. package/esm/icon/icon-adapter.d.ts +4 -2
  408. package/esm/icon/icon-adapter.js +13 -9
  409. package/esm/icon/icon-constants.d.ts +14 -2
  410. package/esm/icon/icon-constants.js +3 -1
  411. package/esm/icon/icon-foundation.d.ts +6 -2
  412. package/esm/icon/icon-foundation.js +50 -18
  413. package/esm/icon/icon-registry.d.ts +8 -2
  414. package/esm/icon/icon-registry.js +15 -2
  415. package/esm/icon/icon-utils.d.ts +6 -3
  416. package/esm/icon/icon-utils.js +6 -7
  417. package/esm/icon/icon.d.ts +35 -4
  418. package/esm/icon/icon.js +44 -18
  419. package/esm/icon/index.js +0 -6
  420. package/esm/icon-button/icon-button-component-delegate.d.ts +2 -2
  421. package/esm/index.d.ts +1 -4
  422. package/esm/index.js +2 -9
  423. package/esm/label-value/index.d.ts +0 -2
  424. package/esm/label-value/index.js +0 -2
  425. package/esm/label-value/label-value-constants.d.ts +7 -12
  426. package/esm/label-value/label-value-constants.js +7 -17
  427. package/esm/label-value/label-value.d.ts +44 -16
  428. package/esm/label-value/label-value.js +78 -36
  429. package/esm/list/list/list.d.ts +2 -3
  430. package/esm/list/list/list.js +4 -5
  431. package/esm/list/list-item/list-item.d.ts +1 -0
  432. package/esm/list/list-item/list-item.js +2 -1
  433. package/esm/list-dropdown/list-dropdown-adapter.d.ts +3 -1
  434. package/esm/list-dropdown/list-dropdown-adapter.js +24 -9
  435. package/esm/list-dropdown/list-dropdown-constants.d.ts +6 -5
  436. package/esm/list-dropdown/list-dropdown-foundation.d.ts +2 -2
  437. package/esm/list-dropdown/list-dropdown-foundation.js +3 -5
  438. package/esm/list-dropdown/list-dropdown-utils.d.ts +3 -3
  439. package/esm/list-dropdown/list-dropdown-utils.js +11 -19
  440. package/esm/list-dropdown/list-dropdown.d.ts +2 -2
  441. package/esm/list-dropdown/list-dropdown.js +1 -1
  442. package/esm/menu/menu-adapter.d.ts +4 -2
  443. package/esm/menu/menu-adapter.js +8 -2
  444. package/esm/menu/menu-foundation.d.ts +11 -10
  445. package/esm/menu/menu-foundation.js +9 -6
  446. package/esm/menu/menu.d.ts +8 -7
  447. package/esm/menu/menu.js +2 -2
  448. package/esm/overlay/overlay-adapter.d.ts +0 -1
  449. package/esm/overlay/overlay-adapter.js +1 -2
  450. package/esm/paginator/paginator.js +1 -1
  451. package/esm/popover/popover-adapter.d.ts +9 -0
  452. package/esm/popover/popover-adapter.js +41 -3
  453. package/esm/popover/popover-constants.d.ts +17 -0
  454. package/esm/popover/popover-constants.js +11 -6
  455. package/esm/popover/popover-foundation.d.ts +7 -1
  456. package/esm/popover/popover-foundation.js +35 -7
  457. package/esm/popover/popover.d.ts +15 -1
  458. package/esm/popover/popover.js +28 -15
  459. package/esm/radio/core/radio-group-manager.d.ts +18 -1
  460. package/esm/radio/core/radio-group-manager.js +27 -6
  461. package/esm/radio/radio/radio-adapter.js +4 -2
  462. package/esm/radio/radio/radio-component-delegate.d.ts +38 -0
  463. package/esm/radio/radio/radio-component-delegate.js +88 -1
  464. package/esm/radio/radio/radio-constants.d.ts +11 -0
  465. package/esm/radio/radio/radio-constants.js +3 -1
  466. package/esm/radio/radio/radio-foundation.js +3 -2
  467. package/esm/radio/radio/radio.d.ts +8 -3
  468. package/esm/radio/radio/radio.js +17 -18
  469. package/esm/radio/radio-group/radio-group-constants.d.ts +3 -0
  470. package/esm/radio/radio-group/radio-group-constants.js +3 -1
  471. package/esm/radio/radio-group/radio-group.js +5 -5
  472. package/esm/scaffold/scaffold-constants.d.ts +6 -0
  473. package/esm/scaffold/scaffold-constants.js +7 -1
  474. package/esm/scaffold/scaffold.d.ts +30 -2
  475. package/esm/scaffold/scaffold.js +43 -4
  476. package/esm/select/core/base-select-adapter.d.ts +5 -3
  477. package/esm/select/core/base-select-adapter.js +10 -9
  478. package/esm/select/core/base-select-constants.d.ts +11 -0
  479. package/esm/select/core/base-select-constants.js +1 -0
  480. package/esm/select/core/base-select-foundation.js +3 -3
  481. package/esm/select/core/base-select.d.ts +3 -3
  482. package/esm/select/select/select-adapter.d.ts +14 -60
  483. package/esm/select/select/select-adapter.js +52 -111
  484. package/esm/select/select/select-constants.d.ts +16 -14
  485. package/esm/select/select/select-constants.js +8 -16
  486. package/esm/select/select/select-foundation.d.ts +12 -58
  487. package/esm/select/select/select-foundation.js +45 -240
  488. package/esm/select/select/select.d.ts +17 -27
  489. package/esm/select/select/select.js +54 -62
  490. package/esm/select/select-dropdown/select-dropdown-adapter.d.ts +2 -2
  491. package/esm/select/select-dropdown/select-dropdown-adapter.js +1 -1
  492. package/esm/select/select-dropdown/select-dropdown.d.ts +0 -2
  493. package/esm/select/select-dropdown/select-dropdown.js +2 -4
  494. package/esm/slider/slider.d.ts +2 -2
  495. package/esm/slider/slider.js +2 -2
  496. package/esm/split-view/split-view/split-view.js +1 -1
  497. package/esm/split-view/split-view-panel/split-view-panel-adapter.d.ts +5 -10
  498. package/esm/split-view/split-view-panel/split-view-panel-adapter.js +7 -15
  499. package/esm/split-view/split-view-panel/split-view-panel-constants.d.ts +3 -3
  500. package/esm/split-view/split-view-panel/split-view-panel-constants.js +3 -3
  501. package/esm/split-view/split-view-panel/split-view-panel-foundation.js +0 -1
  502. package/esm/split-view/split-view-panel/split-view-panel-utils.js +2 -2
  503. package/esm/split-view/split-view-panel/split-view-panel.d.ts +0 -2
  504. package/esm/split-view/split-view-panel/split-view-panel.js +6 -6
  505. package/esm/stepper/step/step-adapter.d.ts +2 -9
  506. package/esm/stepper/step/step-adapter.js +5 -20
  507. package/esm/stepper/step/step-constants.js +21 -21
  508. package/esm/stepper/step/step-foundation.js +0 -2
  509. package/esm/stepper/step/step.d.ts +53 -0
  510. package/esm/stepper/step/step.js +60 -3
  511. package/esm/stepper/stepper/stepper-constants.js +9 -9
  512. package/esm/stepper/stepper/stepper.js +1 -1
  513. package/esm/switch/switch-adapter.d.ts +0 -32
  514. package/esm/switch/switch-adapter.js +15 -107
  515. package/esm/switch/switch-component-delegate.js +1 -1
  516. package/esm/switch/switch-constants.d.ts +24 -14
  517. package/esm/switch/switch-constants.js +11 -14
  518. package/esm/switch/switch-foundation.d.ts +5 -11
  519. package/esm/switch/switch-foundation.js +25 -31
  520. package/esm/switch/switch.d.ts +19 -19
  521. package/esm/switch/switch.js +59 -81
  522. package/esm/table/table-utils.js +5 -4
  523. package/esm/text-field/text-field-adapter.d.ts +2 -2
  524. package/esm/text-field/text-field-adapter.js +5 -2
  525. package/esm/text-field/text-field-foundation.d.ts +2 -2
  526. package/esm/text-field/text-field-foundation.js +2 -2
  527. package/esm/text-field/text-field.d.ts +1 -1
  528. package/esm/text-field/text-field.js +2 -2
  529. package/esm/time-picker/time-picker-adapter.d.ts +6 -2
  530. package/esm/time-picker/time-picker-adapter.js +7 -3
  531. package/esm/time-picker/time-picker-foundation.js +10 -10
  532. package/esm/time-picker/time-picker.js +2 -2
  533. package/esm/toast/toast-adapter.d.ts +18 -69
  534. package/esm/toast/toast-adapter.js +24 -121
  535. package/esm/toast/toast-constants.d.ts +25 -36
  536. package/esm/toast/toast-constants.js +20 -40
  537. package/esm/toast/toast-foundation.d.ts +22 -37
  538. package/esm/toast/toast-foundation.js +92 -92
  539. package/esm/toast/toast.d.ts +83 -24
  540. package/esm/toast/toast.js +126 -29
  541. package/esm/tooltip/tooltip-adapter.d.ts +1 -0
  542. package/esm/tooltip/tooltip-foundation.js +3 -0
  543. package/esm/tooltip/tooltip.d.ts +3 -1
  544. package/esm/tooltip/tooltip.js +4 -0
  545. package/package.json +1 -6
  546. package/styles/backdrop/_animations.scss +24 -0
  547. package/styles/backdrop/_core.scss +41 -0
  548. package/styles/backdrop/_token-utils.scss +30 -0
  549. package/styles/backdrop/backdrop.scss +38 -11
  550. package/{esm/radio/radio-group/radio-group-component-delegate.d.ts → styles/backdrop/index.scss} +1 -0
  551. package/styles/bottom-sheet/_mixins.scss +3 -8
  552. package/styles/bottom-sheet/bottom-sheet.scss +0 -4
  553. package/styles/calendar/calendar-menu/calendar-menu.scss +1 -1
  554. package/styles/calendar/calendar.scss +1 -1
  555. package/styles/card/_core.scss +35 -0
  556. package/styles/card/_token-utils.scss +30 -0
  557. package/styles/card/card.scss +37 -3
  558. package/{dist/popup/forge-popup.css → styles/card/index.scss} +1 -1
  559. package/styles/checkbox/_core.scss +9 -20
  560. package/styles/checkbox/checkbox.scss +2 -8
  561. package/styles/chip-field/_core.scss +21 -17
  562. package/styles/chip-field/_token-utils.scss +30 -0
  563. package/styles/chip-field/chip-field.scss +68 -3
  564. package/styles/chip-field/index.scss +6 -0
  565. package/styles/chips/chip/_core.scss +1 -1
  566. package/styles/core/styles/tokens/backdrop/_tokens.scss +29 -0
  567. package/styles/core/styles/tokens/card/_tokens.scss +33 -0
  568. package/styles/core/styles/tokens/checkbox/_tokens.scss +4 -3
  569. package/styles/core/styles/tokens/chip-field/_tokens.scss +16 -0
  570. package/styles/core/styles/tokens/dialog/_tokens.scss +82 -0
  571. package/styles/core/styles/tokens/expansion-panel/_tokens.scss +17 -0
  572. package/styles/core/styles/tokens/field/_tokens.scss +3 -1
  573. package/styles/core/styles/tokens/icon/_tokens.scss +20 -0
  574. package/styles/core/styles/tokens/label-value/_tokens.scss +34 -0
  575. package/styles/core/styles/tokens/list/list/_tokens.scss +2 -3
  576. package/styles/core/styles/tokens/list/list-item/_tokens.scss +7 -4
  577. package/styles/core/styles/tokens/popover/_tokens.scss +29 -7
  578. package/styles/core/styles/tokens/scaffold/_tokens.scss +18 -0
  579. package/styles/core/styles/tokens/select/_tokens.scss +18 -0
  580. package/styles/core/styles/tokens/stepper/step/_tokens.scss +62 -0
  581. package/styles/core/styles/tokens/toast/_tokens.scss +39 -0
  582. package/styles/dialog/_animations.scss +82 -0
  583. package/styles/dialog/_core.scss +310 -0
  584. package/styles/dialog/_token-utils.scss +30 -0
  585. package/styles/dialog/dialog.scss +356 -6
  586. package/styles/dialog/forge-dialog-utils.scss +23 -6
  587. package/styles/dialog/index.scss +7 -0
  588. package/styles/expansion-panel/_core.scss +65 -0
  589. package/styles/expansion-panel/_token-utils.scss +30 -0
  590. package/styles/expansion-panel/expansion-panel.scss +83 -3
  591. package/{esm/radio/radio-group/radio-group-component-delegate.js → styles/expansion-panel/index.scss} +1 -0
  592. package/styles/{field-next → field}/_core.layout.scss +6 -8
  593. package/styles/field/_core.scss +200 -50
  594. package/styles/{field-next → field}/_core.shape.scss +5 -0
  595. package/styles/{field-next → field}/_core.variant.scss +1 -0
  596. package/styles/{field-next → field}/field.scss +39 -16
  597. package/styles/forge-core.scss +2 -6
  598. package/styles/forge.scss +0 -5
  599. package/styles/icon/_core.scss +27 -0
  600. package/styles/icon/_token-utils.scss +30 -0
  601. package/styles/icon/icon.scss +27 -12
  602. package/styles/icon/index.scss +6 -0
  603. package/styles/label-value/_core.scss +85 -0
  604. package/styles/label-value/_token-utils.scss +30 -0
  605. package/styles/label-value/index.scss +6 -0
  606. package/styles/label-value/label-value.scss +71 -3
  607. package/styles/list/list/_core.scss +6 -2
  608. package/styles/list/list/list.scss +4 -0
  609. package/styles/list/list-item/_core.scss +3 -0
  610. package/styles/popover/_animations.scss +30 -0
  611. package/styles/popover/_core.scss +43 -6
  612. package/styles/popover/popover.scss +227 -170
  613. package/styles/scaffold/_core.scss +98 -0
  614. package/styles/scaffold/_token-utils.scss +30 -0
  615. package/styles/scaffold/index.scss +6 -0
  616. package/styles/scaffold/scaffold.scss +85 -5
  617. package/{dist/esm/chunks/chunk.WF2MFLG4.js → styles/select/index.scss} +1 -1
  618. package/styles/select/select/_core.scss +31 -15
  619. package/styles/select/select/_token-utils.scss +31 -0
  620. package/styles/select/select/select.scss +50 -8
  621. package/styles/split-view/split-view/split-view.scss +0 -1
  622. package/styles/split-view/split-view-panel/_mixins.scss +1 -0
  623. package/styles/split-view/split-view-panel/split-view-panel.scss +7 -1
  624. package/styles/stepper/step/_core.scss +391 -0
  625. package/styles/stepper/step/_token-utils.scss +31 -0
  626. package/styles/stepper/step/step.scss +261 -81
  627. package/styles/stepper/stepper/_core.scss +49 -0
  628. package/styles/stepper/stepper/stepper.scss +38 -4
  629. package/styles/switch/_core.scss +3 -2
  630. package/styles/theme/_theme-dark.scss +8 -8
  631. package/styles/toast/_animations.scss +42 -0
  632. package/styles/toast/_core.scss +73 -0
  633. package/styles/toast/_token-utils.scss +30 -0
  634. package/styles/toast/index.scss +6 -0
  635. package/styles/toast/toast.scss +173 -6
  636. package/styles/utils/_mixins-core.scss +5 -9
  637. package/dist/dialog/forge-dialog.css +0 -6
  638. package/dist/esm/chunks/chunk.24MZM3AY.js +0 -7
  639. package/dist/esm/chunks/chunk.24MZM3AY.js.map +0 -7
  640. package/dist/esm/chunks/chunk.2N5KNNQX.js +0 -7
  641. package/dist/esm/chunks/chunk.2N5KNNQX.js.map +0 -7
  642. package/dist/esm/chunks/chunk.3L77JY5H.js +0 -7
  643. package/dist/esm/chunks/chunk.3TIBP6QT.js +0 -7
  644. package/dist/esm/chunks/chunk.3U222LE4.js +0 -7
  645. package/dist/esm/chunks/chunk.45PPQY45.js +0 -177
  646. package/dist/esm/chunks/chunk.45PPQY45.js.map +0 -7
  647. package/dist/esm/chunks/chunk.4UU6PWR2.js +0 -7
  648. package/dist/esm/chunks/chunk.4UU6PWR2.js.map +0 -7
  649. package/dist/esm/chunks/chunk.5A34DJLZ.js +0 -7
  650. package/dist/esm/chunks/chunk.5A34DJLZ.js.map +0 -7
  651. package/dist/esm/chunks/chunk.5S7XNYRQ.js +0 -7
  652. package/dist/esm/chunks/chunk.5S7XNYRQ.js.map +0 -7
  653. package/dist/esm/chunks/chunk.66YURKP2.js +0 -7
  654. package/dist/esm/chunks/chunk.66YURKP2.js.map +0 -7
  655. package/dist/esm/chunks/chunk.6GSVB5NB.js.map +0 -7
  656. package/dist/esm/chunks/chunk.AFJ7QEVI.js +0 -7
  657. package/dist/esm/chunks/chunk.AFJ7QEVI.js.map +0 -7
  658. package/dist/esm/chunks/chunk.BETICEYY.js +0 -7
  659. package/dist/esm/chunks/chunk.BEUQVZKZ.js +0 -7
  660. package/dist/esm/chunks/chunk.CIUPY66Y.js +0 -7
  661. package/dist/esm/chunks/chunk.CIUPY66Y.js.map +0 -7
  662. package/dist/esm/chunks/chunk.CSCZRSDT.js +0 -7
  663. package/dist/esm/chunks/chunk.CSCZRSDT.js.map +0 -7
  664. package/dist/esm/chunks/chunk.CWBDPBYO.js +0 -7
  665. package/dist/esm/chunks/chunk.CWBDPBYO.js.map +0 -7
  666. package/dist/esm/chunks/chunk.D7RH43XD.js +0 -7
  667. package/dist/esm/chunks/chunk.D7RH43XD.js.map +0 -7
  668. package/dist/esm/chunks/chunk.DCCFF327.js +0 -7
  669. package/dist/esm/chunks/chunk.EO3HELQ2.js +0 -15
  670. package/dist/esm/chunks/chunk.FB4MXEIW.js +0 -7
  671. package/dist/esm/chunks/chunk.FB4MXEIW.js.map +0 -7
  672. package/dist/esm/chunks/chunk.G2HRYIIZ.js +0 -7
  673. package/dist/esm/chunks/chunk.G2HRYIIZ.js.map +0 -7
  674. package/dist/esm/chunks/chunk.G3GTO5ZC.js +0 -7
  675. package/dist/esm/chunks/chunk.G3GTO5ZC.js.map +0 -7
  676. package/dist/esm/chunks/chunk.HBAC6E7O.js +0 -7
  677. package/dist/esm/chunks/chunk.IM36A2ZI.js +0 -7
  678. package/dist/esm/chunks/chunk.IM36A2ZI.js.map +0 -7
  679. package/dist/esm/chunks/chunk.IWVAI6XM.js.map +0 -7
  680. package/dist/esm/chunks/chunk.IZ63EJ32.js +0 -7
  681. package/dist/esm/chunks/chunk.IZ63EJ32.js.map +0 -7
  682. package/dist/esm/chunks/chunk.JCEKCW4B.js +0 -7
  683. package/dist/esm/chunks/chunk.JCEKCW4B.js.map +0 -7
  684. package/dist/esm/chunks/chunk.JVWJHSPM.js +0 -7
  685. package/dist/esm/chunks/chunk.KDUH2DUE.js +0 -7
  686. package/dist/esm/chunks/chunk.KEFJZO5K.js +0 -7
  687. package/dist/esm/chunks/chunk.KEFJZO5K.js.map +0 -7
  688. package/dist/esm/chunks/chunk.KRKKMTXR.js +0 -7
  689. package/dist/esm/chunks/chunk.KRKKMTXR.js.map +0 -7
  690. package/dist/esm/chunks/chunk.LGEZI5SZ.js +0 -7
  691. package/dist/esm/chunks/chunk.LGEZI5SZ.js.map +0 -7
  692. package/dist/esm/chunks/chunk.LKA5HQQY.js +0 -7
  693. package/dist/esm/chunks/chunk.LKA5HQQY.js.map +0 -7
  694. package/dist/esm/chunks/chunk.MC3UAHWS.js +0 -7
  695. package/dist/esm/chunks/chunk.MC3UAHWS.js.map +0 -7
  696. package/dist/esm/chunks/chunk.MCR34SZQ.js +0 -7
  697. package/dist/esm/chunks/chunk.MGLWXAZO.js +0 -18
  698. package/dist/esm/chunks/chunk.MPUP6QAP.js +0 -7
  699. package/dist/esm/chunks/chunk.MZRAL4MY.js +0 -7
  700. package/dist/esm/chunks/chunk.MZRAL4MY.js.map +0 -7
  701. package/dist/esm/chunks/chunk.N632SJ7X.js +0 -7
  702. package/dist/esm/chunks/chunk.N632SJ7X.js.map +0 -7
  703. package/dist/esm/chunks/chunk.NHOGZDLN.js +0 -7
  704. package/dist/esm/chunks/chunk.NHOGZDLN.js.map +0 -7
  705. package/dist/esm/chunks/chunk.OFXSMOV6.js +0 -7
  706. package/dist/esm/chunks/chunk.OT4AIOMN.js +0 -7
  707. package/dist/esm/chunks/chunk.OY3TG55O.js +0 -7
  708. package/dist/esm/chunks/chunk.OY3TG55O.js.map +0 -7
  709. package/dist/esm/chunks/chunk.QCRO5NSG.js +0 -7
  710. package/dist/esm/chunks/chunk.QCRO5NSG.js.map +0 -7
  711. package/dist/esm/chunks/chunk.QKYCMDLB.js +0 -7
  712. package/dist/esm/chunks/chunk.R6VPRRTT.js +0 -7
  713. package/dist/esm/chunks/chunk.RFCIELJM.js +0 -7
  714. package/dist/esm/chunks/chunk.RFCIELJM.js.map +0 -7
  715. package/dist/esm/chunks/chunk.SIGRWU4V.js +0 -7
  716. package/dist/esm/chunks/chunk.SIGRWU4V.js.map +0 -7
  717. package/dist/esm/chunks/chunk.SKBOB2BD.js +0 -7
  718. package/dist/esm/chunks/chunk.SKBOB2BD.js.map +0 -7
  719. package/dist/esm/chunks/chunk.SOKORSUV.js +0 -7
  720. package/dist/esm/chunks/chunk.STSAE2XP.js +0 -7
  721. package/dist/esm/chunks/chunk.SWKKDBO6.js +0 -7
  722. package/dist/esm/chunks/chunk.SWKKDBO6.js.map +0 -7
  723. package/dist/esm/chunks/chunk.SYKZ74SL.js +0 -7
  724. package/dist/esm/chunks/chunk.SYKZ74SL.js.map +0 -7
  725. package/dist/esm/chunks/chunk.TPNZYEC7.js +0 -12
  726. package/dist/esm/chunks/chunk.TPNZYEC7.js.map +0 -7
  727. package/dist/esm/chunks/chunk.UKVC23E5.js +0 -7
  728. package/dist/esm/chunks/chunk.UKVC23E5.js.map +0 -7
  729. package/dist/esm/chunks/chunk.UOD3A7M4.js +0 -7
  730. package/dist/esm/chunks/chunk.UQQQSJVM.js +0 -7
  731. package/dist/esm/chunks/chunk.USO2XVOI.js +0 -7
  732. package/dist/esm/chunks/chunk.USO2XVOI.js.map +0 -7
  733. package/dist/esm/chunks/chunk.V3X77TCO.js +0 -7
  734. package/dist/esm/chunks/chunk.V3X77TCO.js.map +0 -7
  735. package/dist/esm/chunks/chunk.VBJ4WUVH.js +0 -7
  736. package/dist/esm/chunks/chunk.VBJ4WUVH.js.map +0 -7
  737. package/dist/esm/chunks/chunk.VOTT5COZ.js.map +0 -7
  738. package/dist/esm/chunks/chunk.VZ2XONDI.js +0 -7
  739. package/dist/esm/chunks/chunk.VZ2XONDI.js.map +0 -7
  740. package/dist/esm/chunks/chunk.WAMFFIMP.js +0 -7
  741. package/dist/esm/chunks/chunk.WAMFFIMP.js.map +0 -7
  742. package/dist/esm/chunks/chunk.WBCQTZPS.js +0 -7
  743. package/dist/esm/chunks/chunk.WBCQTZPS.js.map +0 -7
  744. package/dist/esm/chunks/chunk.WBI34ZVP.js +0 -7
  745. package/dist/esm/chunks/chunk.WF2MFLG4.js.map +0 -7
  746. package/dist/esm/chunks/chunk.WPVGFQNY.js +0 -7
  747. package/dist/esm/chunks/chunk.WPVGFQNY.js.map +0 -7
  748. package/dist/esm/chunks/chunk.XAZ6EDIZ.js +0 -7
  749. package/dist/esm/chunks/chunk.XCI7O2KJ.js +0 -7
  750. package/dist/esm/chunks/chunk.XCI7O2KJ.js.map +0 -7
  751. package/dist/esm/chunks/chunk.XNJROSDZ.js +0 -7
  752. package/dist/esm/chunks/chunk.XNJROSDZ.js.map +0 -7
  753. package/dist/esm/chunks/chunk.Z6GRWPPN.js +0 -7
  754. package/dist/esm/chunks/chunk.Z6GRWPPN.js.map +0 -7
  755. package/dist/esm/chunks/chunk.ZAREP2QH.js +0 -7
  756. package/dist/esm/chunks/chunk.ZAREP2QH.js.map +0 -7
  757. package/dist/esm/chunks/chunk.ZLNI2M3F.js +0 -7
  758. package/dist/esm/chunks/chunk.ZLNI2M3F.js.map +0 -7
  759. package/dist/esm/chunks/chunk.ZSZFWZAI.js +0 -7
  760. package/dist/esm/chunks/chunk.ZSZFWZAI.js.map +0 -7
  761. package/dist/esm/chunks/chunk.ZYKP23JP.js +0 -7
  762. package/dist/esm/field-next/index.js +0 -7
  763. package/dist/esm/floating-label/index.js +0 -7
  764. package/dist/esm/floating-label/index.js.map +0 -7
  765. package/dist/esm/popup/index.js +0 -7
  766. package/dist/esm/popup/index.js.map +0 -7
  767. package/dist/esm/ripple/index.js +0 -7
  768. package/dist/esm/ripple/index.js.map +0 -7
  769. package/dist/expansion-panel/forge-expansion-panel.css +0 -6
  770. package/dist/floating-label/forge-floating-label.css +0 -6
  771. package/dist/form-field/forge-form-field.css +0 -6
  772. package/dist/ripple/forge-ripple.css +0 -6
  773. package/dist/scaffold/forge-scaffold.css +0 -6
  774. package/esm/backdrop/backdrop-adapter.d.ts +0 -36
  775. package/esm/backdrop/backdrop-adapter.js +0 -40
  776. package/esm/backdrop/backdrop-foundation.d.ts +0 -38
  777. package/esm/backdrop/backdrop-foundation.js +0 -82
  778. package/esm/field-next/field-adapter.d.ts +0 -56
  779. package/esm/field-next/field-adapter.js +0 -132
  780. package/esm/field-next/field-constants.d.ts +0 -95
  781. package/esm/field-next/field-constants.js +0 -64
  782. package/esm/field-next/field-foundation.js +0 -221
  783. package/esm/field-next/field.d.ts +0 -205
  784. package/esm/field-next/field.js +0 -287
  785. package/esm/floating-label/floating-label-adapter.d.ts +0 -23
  786. package/esm/floating-label/floating-label-adapter.js +0 -32
  787. package/esm/floating-label/floating-label-constants.d.ts +0 -13
  788. package/esm/floating-label/floating-label-constants.js +0 -14
  789. package/esm/floating-label/floating-label-foundation.d.ts +0 -20
  790. package/esm/floating-label/floating-label-foundation.js +0 -74
  791. package/esm/floating-label/floating-label.d.ts +0 -31
  792. package/esm/floating-label/floating-label.js +0 -34
  793. package/esm/floating-label/index.d.ts +0 -9
  794. package/esm/floating-label/index.js +0 -9
  795. package/esm/label-value/label-value-adapter.d.ts +0 -24
  796. package/esm/label-value/label-value-adapter.js +0 -47
  797. package/esm/label-value/label-value-foundation.d.ts +0 -33
  798. package/esm/label-value/label-value-foundation.js +0 -80
  799. package/esm/popup/index.d.ts +0 -10
  800. package/esm/popup/index.js +0 -14
  801. package/esm/popup/popup-adapter.d.ts +0 -45
  802. package/esm/popup/popup-adapter.js +0 -152
  803. package/esm/popup/popup-constants.d.ts +0 -55
  804. package/esm/popup/popup-constants.js +0 -53
  805. package/esm/popup/popup-foundation.d.ts +0 -72
  806. package/esm/popup/popup-foundation.js +0 -258
  807. package/esm/popup/popup.d.ts +0 -59
  808. package/esm/popup/popup.js +0 -102
  809. package/esm/ripple/forge-ripple.d.ts +0 -17
  810. package/esm/ripple/forge-ripple.js +0 -22
  811. package/esm/ripple/index.d.ts +0 -11
  812. package/esm/ripple/index.js +0 -15
  813. package/esm/ripple/ripple-adapter.d.ts +0 -23
  814. package/esm/ripple/ripple-adapter.js +0 -47
  815. package/esm/ripple/ripple-constants.d.ts +0 -15
  816. package/esm/ripple/ripple-constants.js +0 -19
  817. package/esm/ripple/ripple-foundation.d.ts +0 -30
  818. package/esm/ripple/ripple-foundation.js +0 -48
  819. package/esm/ripple/ripple.d.ts +0 -36
  820. package/esm/ripple/ripple.js +0 -65
  821. package/styles/backdrop/_mixins.scss +0 -31
  822. package/styles/backdrop/_variables.scss +0 -12
  823. package/styles/card/_mixins.scss +0 -47
  824. package/styles/card/_variables.scss +0 -9
  825. package/styles/chip-field/_base.scss +0 -299
  826. package/styles/chip-field/_mixins.scss +0 -26
  827. package/styles/chip-field/_selector.scss +0 -228
  828. package/styles/chip-field/_variables.scss +0 -76
  829. package/styles/dialog/_mixins.scss +0 -199
  830. package/styles/dialog/_variables.scss +0 -22
  831. package/styles/dialog/forge-dialog.scss +0 -8
  832. package/styles/expansion-panel/_mixins.scss +0 -88
  833. package/styles/expansion-panel/forge-expansion-panel.scss +0 -16
  834. package/styles/field/_base.scss +0 -636
  835. package/styles/field/_selector.scss +0 -560
  836. package/styles/field/_utils.scss +0 -48
  837. package/styles/field/_variables.scss +0 -123
  838. package/styles/field-next/_core.scss +0 -212
  839. package/styles/floating-label/_mixins.scss +0 -291
  840. package/styles/floating-label/_variables.scss +0 -15
  841. package/styles/floating-label/forge-floating-label.scss +0 -8
  842. package/styles/form-field/_mixins.scss +0 -71
  843. package/styles/form-field/forge-form-field.scss +0 -8
  844. package/styles/icon/_mixins.scss +0 -37
  845. package/styles/icon/_variables.scss +0 -10
  846. package/styles/label-value/_mixins.scss +0 -205
  847. package/styles/label-value/_variables.scss +0 -12
  848. package/styles/popup/_mixins.scss +0 -86
  849. package/styles/popup/_variables.scss +0 -7
  850. package/styles/popup/forge-popup.scss +0 -8
  851. package/styles/popup/popup.scss +0 -20
  852. package/styles/ripple/forge-ripple.scss +0 -17
  853. package/styles/scaffold/_mixins.scss +0 -194
  854. package/styles/scaffold/forge-scaffold.scss +0 -43
  855. package/styles/select/select/_base.scss +0 -84
  856. package/styles/select/select/_mixins.scss +0 -25
  857. package/styles/select/select/_selector.scss +0 -90
  858. package/styles/select/select/_variables.scss +0 -16
  859. package/styles/stepper/step/_mixins.scss +0 -416
  860. package/styles/stepper/step/_variables.scss +0 -21
  861. package/styles/stepper/stepper/_mixins.scss +0 -113
  862. package/styles/toast/_mixins.scss +0 -242
  863. package/styles/toast/_variables.scss +0 -52
  864. /package/dist/esm/chunks/{chunk.YS5JZHJ6.js.map → chunk.24SQJBSQ.js.map} +0 -0
  865. /package/dist/esm/chunks/{chunk.IZRURH7C.js.map → chunk.3KAKJGUS.js.map} +0 -0
  866. /package/dist/esm/chunks/{chunk.KDUH2DUE.js.map → chunk.473WRJ5G.js.map} +0 -0
  867. /package/dist/esm/chunks/{chunk.USQEIRST.js.map → chunk.5MB6CTBA.js.map} +0 -0
  868. /package/dist/esm/chunks/{chunk.47U6GVGZ.js.map → chunk.5UOX22ML.js.map} +0 -0
  869. /package/dist/esm/chunks/{chunk.4NABD6XG.js.map → chunk.6VS3LYAF.js.map} +0 -0
  870. /package/dist/esm/chunks/{chunk.AOSBUJWW.js.map → chunk.A7BCLPP4.js.map} +0 -0
  871. /package/dist/esm/chunks/{chunk.7UBIT4NP.js.map → chunk.AG6IRMLZ.js.map} +0 -0
  872. /package/dist/esm/chunks/{chunk.A4UH52SA.js.map → chunk.AGLI4WR4.js.map} +0 -0
  873. /package/dist/esm/chunks/{chunk.WTUXAH7Z.js.map → chunk.AOVXNX7P.js.map} +0 -0
  874. /package/dist/esm/chunks/{chunk.AN2E2SSN.js.map → chunk.ASLHRT3N.js.map} +0 -0
  875. /package/dist/esm/chunks/{chunk.CBLUXYH2.js.map → chunk.BHE6Z5Y2.js.map} +0 -0
  876. /package/dist/esm/chunks/{chunk.2WRAXA3H.js.map → chunk.BQ52JYLA.js.map} +0 -0
  877. /package/dist/esm/chunks/{chunk.ROMRJIFR.js.map → chunk.CE35CVDV.js.map} +0 -0
  878. /package/dist/esm/chunks/{chunk.ZPXMKY72.js.map → chunk.CEGBMUSR.js.map} +0 -0
  879. /package/dist/esm/chunks/{chunk.GBGGUYTE.js.map → chunk.CFAI4K3E.js.map} +0 -0
  880. /package/dist/esm/chunks/{chunk.ZIGVO6FN.js.map → chunk.CGFSMACZ.js.map} +0 -0
  881. /package/dist/esm/chunks/{chunk.2537XOFQ.js.map → chunk.E2BE52ME.js.map} +0 -0
  882. /package/dist/esm/chunks/{chunk.UEYPCCFG.js.map → chunk.ENUKGA2U.js.map} +0 -0
  883. /package/dist/esm/chunks/{chunk.GA6AO6FJ.js.map → chunk.H5RW3A4M.js.map} +0 -0
  884. /package/dist/esm/chunks/{chunk.CSOKFDFQ.js.map → chunk.HSADKCGS.js.map} +0 -0
  885. /package/dist/esm/chunks/{chunk.WBI34ZVP.js.map → chunk.IEABOPNB.js.map} +0 -0
  886. /package/dist/esm/chunks/{chunk.22C7GQLX.js.map → chunk.IL4S57WO.js.map} +0 -0
  887. /package/dist/esm/chunks/{chunk.GTKYO6VB.js.map → chunk.JGURMVW7.js.map} +0 -0
  888. /package/dist/esm/chunks/{chunk.YXHMD73U.js.map → chunk.K6GJNDTY.js.map} +0 -0
  889. /package/dist/esm/chunks/{chunk.QUWEAFGI.js.map → chunk.KEOLH7G3.js.map} +0 -0
  890. /package/dist/esm/chunks/{chunk.BIQTNLIF.js.map → chunk.LNTTU2GL.js.map} +0 -0
  891. /package/dist/esm/chunks/{chunk.2AM2BKEO.js.map → chunk.MFQRXVKO.js.map} +0 -0
  892. /package/dist/esm/chunks/{chunk.JLSFTWPE.js.map → chunk.MTIPIEXA.js.map} +0 -0
  893. /package/dist/esm/chunks/{chunk.JSTCCUKZ.js.map → chunk.OEI35LFU.js.map} +0 -0
  894. /package/dist/esm/chunks/{chunk.QKYCMDLB.js.map → chunk.QCPV5DEG.js.map} +0 -0
  895. /package/dist/esm/chunks/{chunk.R3AWIPPK.js.map → chunk.QIZBZGYT.js.map} +0 -0
  896. /package/dist/esm/chunks/{chunk.2XPAYTK4.js.map → chunk.QKTK5XUE.js.map} +0 -0
  897. /package/dist/esm/chunks/{chunk.R66CYS27.js.map → chunk.QTY25OTN.js.map} +0 -0
  898. /package/dist/esm/chunks/{chunk.BSV27GU7.js.map → chunk.QVATEY5S.js.map} +0 -0
  899. /package/dist/esm/chunks/{chunk.SHBDQPPH.js.map → chunk.RONMNRSH.js.map} +0 -0
  900. /package/dist/esm/chunks/{chunk.FRTSXX33.js.map → chunk.RSYEG2RW.js.map} +0 -0
  901. /package/dist/esm/chunks/{chunk.O56VP4OZ.js.map → chunk.RXBLU4OJ.js.map} +0 -0
  902. /package/dist/esm/chunks/{chunk.FBDRM4YN.js.map → chunk.S7KEO2CH.js.map} +0 -0
  903. /package/dist/esm/chunks/{chunk.XU3YSZPA.js.map → chunk.SQ3AZAHF.js.map} +0 -0
  904. /package/dist/esm/chunks/{chunk.35MHQH7Z.js.map → chunk.SROEDYPL.js.map} +0 -0
  905. /package/dist/esm/chunks/{chunk.PXRGQHWR.js.map → chunk.TQWZDM6T.js.map} +0 -0
  906. /package/dist/esm/chunks/{chunk.3L77JY5H.js.map → chunk.W4HANHUO.js.map} +0 -0
  907. /package/dist/esm/chunks/{chunk.2W276VOR.js.map → chunk.WMJSYYXQ.js.map} +0 -0
  908. /package/dist/esm/chunks/{chunk.4AEQ7KVU.js.map → chunk.XTJGWT5F.js.map} +0 -0
  909. /package/dist/esm/chunks/{chunk.YNXWVL4B.js.map → chunk.YPNSK2CK.js.map} +0 -0
  910. /package/dist/esm/chunks/{chunk.MPUP6QAP.js.map → chunk.YWJVZVZX.js.map} +0 -0
  911. /package/dist/esm/chunks/{chunk.6XLTVIUD.js.map → chunk.ZA7JY3AY.js.map} +0 -0
  912. /package/dist/esm/{field-next → field}/base/index.js.map +0 -0
  913. /package/dist/esm/{field-next → field}/index.js.map +0 -0
  914. /package/esm/{field-next → field}/base/base-field-adapter.d.ts +0 -0
  915. /package/esm/{field-next → field}/base/base-field-adapter.js +0 -0
  916. /package/esm/{field-next → field}/base/base-field-constants.d.ts +0 -0
  917. /package/esm/{field-next → field}/base/base-field-constants.js +0 -0
  918. /package/esm/{field-next → field}/base/base-field-foundation.d.ts +0 -0
  919. /package/esm/{field-next → field}/base/base-field.d.ts +0 -0
  920. /package/esm/{field-next → field}/base/base-field.js +0 -0
  921. /package/esm/{field-next → field}/base/index.d.ts +0 -0
  922. /package/esm/{field-next → field}/base/index.js +0 -0
  923. /package/esm/{field-next → field}/index.d.ts +0 -0
  924. /package/esm/{field-next → field}/index.js +0 -0
  925. /package/styles/{field-next → field}/_core.slotted.scss +0 -0
  926. /package/styles/{field-next → field}/_core.state.scss +0 -0
  927. /package/styles/{field-next → field}/_token-utils.scss +0 -0
  928. /package/styles/{field-next → field}/index.scss +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../node_modules/@tylertech/forge-core/esm/resize/resize-observer.js", "../../src/split-view/split-view/split-view-adapter.ts", "../../src/split-view/split-view/split-view-foundation.ts", "../../src/split-view/split-view/split-view.ts", "../../src/split-view/split-view/index.ts"],
4
- "sourcesContent": ["/**\n * Provides a set of methods for observing and responding to resizing of elements.\n */\nexport class ForgeResizeObserver {\n /**\n * Initiates the observing of a specified `Element`. Calling with an already observed `Element`\n * overwrites the exisiting observation. It is expected that the consumer will eventually\n * {@link unobserve} the `Element` to avoid memory leaks.\n *\n * @param target An `Element` reference.\n * @param callback A function that accepts a `ResizeObserverEntry` for the `Element`.\n * @param options An options object allowing you to set options for the observation.\n */\n static observe(target, callback, options) {\n var _a, _b;\n if (ForgeResizeObserver._targets.has(target)) {\n (_a = ForgeResizeObserver._observer) === null || _a === void 0 ? void 0 : _a.unobserve(target);\n }\n ForgeResizeObserver._targets.set(target, callback);\n ForgeResizeObserver._countTargets();\n (_b = ForgeResizeObserver._observer) === null || _b === void 0 ? void 0 : _b.observe(target, options);\n }\n /**\n * Ends the observing of a specified `Element`.\n *\n * @param target An `Element` reference.\n */\n static unobserve(target) {\n var _a;\n ForgeResizeObserver._targets.delete(target);\n (_a = ForgeResizeObserver._observer) === null || _a === void 0 ? void 0 : _a.unobserve(target);\n ForgeResizeObserver._countTargets();\n }\n /**\n * Creates or destroys the `ResizeObserver` based on whether targets exist.\n */\n static _countTargets() {\n if (ForgeResizeObserver._observer) {\n // If there are no targets destroy the observer\n if (ForgeResizeObserver._targets.size < 1) {\n ForgeResizeObserver._observer = undefined;\n }\n }\n else {\n // If there are targets create the observer\n if (ForgeResizeObserver._targets.size) {\n ForgeResizeObserver._observer = new ResizeObserver(ForgeResizeObserver._handleResize);\n }\n }\n }\n}\nForgeResizeObserver._targets = new Map();\n/**\n * Runs the callback function of targets when they are resized.\n *\n * @param entries An array of `ResizeObserverEntry`s.\n */\nForgeResizeObserver._handleResize = entries => {\n entries.forEach(entry => {\n var _a;\n (_a = ForgeResizeObserver._targets.get(entry.target)) === null || _a === void 0 ? void 0 : _a(entry);\n });\n};\n", "import { ForgeResizeObserver, getShadowElement } from '@tylertech/forge-core';\n\nimport { BaseAdapter, IBaseAdapter } from '../../core/base/base-adapter';\nimport { ISplitViewPanelComponent, SPLIT_VIEW_PANEL_CONSTANTS } from '../split-view-panel';\nimport { ISplitViewComponent } from './split-view';\nimport { SplitViewOrientation, SPLIT_VIEW_CONSTANTS } from './split-view-constants';\n\nexport interface ISplitViewAdapter extends IBaseAdapter {\n registerSlotListener(listener: (evt: Event) => void): void;\n registerDidOpenListener(listener: () => void): void;\n registerDidCloseListener(listener: () => void): void;\n observeResize(callback: (entry: ResizeObserverEntry) => void): void;\n unobserveResize(): void;\n getSlottedPanels(): ISplitViewPanelComponent[];\n refitSlottedPanels(orientation: SplitViewOrientation): void;\n}\n\nexport class SplitViewAdapter extends BaseAdapter<ISplitViewComponent> implements ISplitViewAdapter {\n private _root: HTMLElement;\n\n constructor(component: ISplitViewComponent) {\n super(component);\n this._root = getShadowElement(component, SPLIT_VIEW_CONSTANTS.selectors.ROOT);\n }\n\n public registerSlotListener(listener: (evt: Event) => void): void {\n this._root.addEventListener('slotchange', listener);\n }\n\n public registerDidOpenListener(listener: () => void): void {\n this._root.addEventListener(SPLIT_VIEW_PANEL_CONSTANTS.events.DID_OPEN, listener);\n }\n\n public registerDidCloseListener(listener: () => void): void {\n this._root.addEventListener(SPLIT_VIEW_PANEL_CONSTANTS.events.DID_CLOSE, listener);\n }\n\n public observeResize(callback: (entry: ResizeObserverEntry) => void): void {\n ForgeResizeObserver.observe(this._root, callback);\n }\n \n public unobserveResize(): void {\n ForgeResizeObserver.unobserve(this._root);\n }\n \n /**\n * Gets all child panels.\n * @returns All child panels.\n */\n public getSlottedPanels(): ISplitViewPanelComponent[] {\n const nodeList = this._component.querySelectorAll<ISplitViewPanelComponent>(SPLIT_VIEW_CONSTANTS.selectors.PANEL);\n const panelArray = Array.from(nodeList);\n const immediateChildPanels = panelArray.filter(panel => panel.parentElement === this._component);\n return immediateChildPanels;\n }\n\n public refitSlottedPanels(orientation: SplitViewOrientation): void {\n // Check if the combined panel size is greater than the split view size along the relevant axis\n const size = orientation === 'horizontal' ? this._root.clientWidth : this._root.clientHeight;\n const panels = this.getSlottedPanels();\n const combinedPanelSize = panels.map(panel => {\n const panelRoot = panel.shadowRoot?.querySelector(SPLIT_VIEW_PANEL_CONSTANTS.selectors.ROOT);\n const panelSize = orientation === 'horizontal' ? panelRoot?.clientWidth : panelRoot?.clientHeight;\n return panelSize ?? 0;\n }).reduce((cur, acc) => cur + acc, 0);\n\n // Do nothing if all the panels fit\n if (combinedPanelSize <= size) {\n return;\n }\n\n // Get the size adjustment needed to fit\n let diff = combinedPanelSize - size;\n\n // Size down the panels as needed in reverse order, adjusting diff accordingly\n panels.slice().reverse().forEach(panel => {\n if (diff <= 0) {\n return;\n }\n\n const panelSize = panel.getContentSize();\n const collapsibleSize = panel.getCollapsibleSize();\n const reduceBy = Math.min(diff, collapsibleSize);\n const newSize = panelSize - reduceBy;\n\n panel.setContentSize(newSize);\n\n diff -= reduceBy;\n });\n\n // If there's still overflow nothing else can be done\n }\n}\n", "import { ForgeResizeObserverCallback, ICustomElementFoundation, throttle } from '@tylertech/forge-core';\n\nimport { ISplitViewBase } from '../core/split-view-base';\nimport { ISplitViewPanelComponent, SplitViewAnimatingLayer } from '../split-view-panel';\nimport { ISplitViewAdapter } from './split-view-adapter';\nimport { ISplitViewUpdateConfig, SplitViewOrientation, SPLIT_VIEW_CONSTANTS } from './split-view-constants';\n\nexport interface ISplitViewFoundation extends ISplitViewBase, ICustomElementFoundation {\n orientation: SplitViewOrientation;\n layerSlottedPanels(target: ISplitViewPanelComponent): void;\n unlayerSlottedPanels(): void;\n update(config: ISplitViewUpdateConfig): void;\n refitSlottedPanels(): void;\n}\n\nexport class SplitViewFoundation implements ISplitViewFoundation {\n private _orientation: SplitViewOrientation = 'horizontal';\n private _disabled = false;\n private _allowClose = false;\n private _autoClose = false;\n private _autoCloseThreshold = 0;\n private _slotListener: (evt: Event) => void;\n private _didOpenListener: () => void;\n private _didCloseListener: () => void;\n private _resizeObserverCallback: ForgeResizeObserverCallback;\n private _isInitialized = false;\n\n constructor(private _adapter: ISplitViewAdapter) {\n this._slotListener = evt => this._onSlotChange(evt);\n this._didOpenListener = () => this._onDidOpen();\n this._didCloseListener = () => this._onDidClose();\n this._resizeObserverCallback = throttle((entry: ResizeObserverEntry) => this._onResize(entry), SPLIT_VIEW_CONSTANTS.numbers.RESIZE_THROTTLE_THRESHOLD);\n }\n\n public initialize(): void {\n this._adapter.registerSlotListener(this._slotListener);\n this._adapter.registerDidOpenListener(this._didOpenListener);\n this._adapter.registerDidCloseListener(this._didCloseListener);\n this._adapter.observeResize(this._resizeObserverCallback);\n \n this._applyOrientation();\n this._isInitialized = true;\n }\n\n public disconnect(): void {\n this._adapter.unobserveResize();\n }\n\n private _onSlotChange(evt: Event): void {\n this._layoutSlottedPanels();\n this.update({ accessibility: true, cursor: true, orientation: this._orientation });\n }\n\n private _onDidOpen(): void {\n this._adapter.refitSlottedPanels(this._orientation);\n this.update({ accessibility: true, cursor: true, size: true});\n }\n\n private _onDidClose(): void {\n this._adapter.refitSlottedPanels(this._orientation);\n this.update({ accessibility: true, cursor: true, size: true});\n }\n\n private _onResize(entry: ResizeObserverEntry): void {\n this.update({ accessibility: true, cursor: true, size: true });\n }\n\n /**\n * Sets the resizable value of slotted panels with no resizable value set.\n */\n private _layoutSlottedPanels(): void {\n const panels = this._adapter.getSlottedPanels();\n\n // A single panel should have resizable set to off. Just leave it alone.\n if (panels.length < 2) {\n return;\n }\n\n // Don't change any panels if resizable is already set.\n if (panels.some(panel => panel.resizable !== 'off')) {\n return;\n }\n\n // All panels after the first have resizable set to start.\n panels.slice(1).forEach(panel => panel.resizable = 'start');\n }\n\n /**\n * Get/set whether panels are arranged horizontally or vertically.\n */\n public get orientation(): SplitViewOrientation {\n return this._orientation;\n }\n public set orientation(value: SplitViewOrientation) {\n if (this._orientation !== value) {\n this._orientation = value;\n this._applyOrientation();\n }\n }\n\n private _applyOrientation(): void {\n this._adapter.setHostAttribute(SPLIT_VIEW_CONSTANTS.attributes.ORIENTATION, this._orientation);\n this.update({ orientation: this._orientation });\n\n if (this._isInitialized) {\n this._adapter.refitSlottedPanels(this._orientation);\n }\n this.update({ accessibility: true, cursor: true });\n }\n\n /**\n * Get/set whether interactions are disabled.\n */\n public get disabled(): boolean {\n return this._disabled;\n }\n public set disabled(value: boolean) {\n if (this._disabled !== value) {\n this._disabled = value;\n this._applyDisabled();\n }\n }\n\n private _applyDisabled(): void {\n this._adapter.toggleHostAttribute(SPLIT_VIEW_CONSTANTS.attributes.DISABLED, this._disabled);\n this.update({ properties: { disabled: this._disabled } });\n }\n\n /**\n * Get/set whether closing the panel is disabled.\n */\n public get allowClose(): boolean {\n return this._allowClose;\n }\n public set allowClose(value: boolean) {\n if (this._allowClose !== value) {\n this._allowClose = value;\n this._applyAllowClose();\n }\n }\n\n private _applyAllowClose(): void {\n this._adapter.toggleHostAttribute(SPLIT_VIEW_CONSTANTS.attributes.ALLOW_CLOSE, this._allowClose);\n this.update({ properties: { allowClose: this._allowClose } });\n }\n\n /**\n * Get/set whether the panel closes when a threshold size is reached.\n */\n public get autoClose(): boolean {\n return this._autoClose;\n }\n public set autoClose(value: boolean) {\n if (this._autoClose !== value) {\n this._autoClose = value;\n this._applyAutoClose();\n }\n }\n\n private _applyAutoClose(): void {\n this._adapter.toggleHostAttribute(SPLIT_VIEW_CONSTANTS.attributes.AUTO_CLOSE, this._autoClose);\n this.update({ properties: { autoClose: this._autoClose } });\n }\n\n /**\n * Get/set the size at which panels auto close.\n */\n public get autoCloseThreshold(): number {\n return this._autoCloseThreshold;\n }\n public set autoCloseThreshold(value: number) {\n if (this._autoCloseThreshold !== value) {\n this._autoCloseThreshold = value;\n this._applyAutoCloseThreshold();\n }\n }\n\n private _applyAutoCloseThreshold(): void {\n this._adapter.setHostAttribute(SPLIT_VIEW_CONSTANTS.attributes.AUTO_CLOSE_THRESHOLD, this._autoCloseThreshold.toString());\n this.update({ properties: { autoCloseThreshold: this._autoCloseThreshold } });\n }\n\n /**\n * Layers panels in a set order during an animation. Panels that the target is animating toward\n * stack above it and other layers stack under it.\n * @param target The animating panel.\n */\n public layerSlottedPanels(target: ISplitViewPanelComponent): void {\n const panels = this._adapter.getSlottedPanels();\n const increment = target.resizable === 'start' ? 1 : -1;\n let layer = target.resizable === 'start' ? SplitViewAnimatingLayer.Under : SplitViewAnimatingLayer.Above;\n\n panels.forEach(panel => {\n // Increment the layer if moving into or out of the target panel\n if (panel === target || layer === SplitViewAnimatingLayer.Active) {\n layer += increment;\n }\n panel.style.setProperty(SPLIT_VIEW_CONSTANTS.customCssProperties.ANIMATING_LAYER, layer.toString());\n });\n }\n\n /**\n * Removes layering after an animation.\n */\n public unlayerSlottedPanels(): void {\n const panels = this._adapter.getSlottedPanels();\n panels.forEach(panel => {\n panel.style.removeProperty(SPLIT_VIEW_CONSTANTS.customCssProperties.ANIMATING_LAYER);\n });\n }\n\n /**\n * Updates the provided characteristics of each panel.\n * @param config An update configuration.\n */\n public update(config: ISplitViewUpdateConfig): void {\n const panels = this._adapter.getSlottedPanels();\n panels.forEach(panel => {\n panel.update(config);\n });\n }\n\n /**\n * Resizes panels within the split view to avoid overflow.\n */\n public refitSlottedPanels(): void {\n this._adapter.refitSlottedPanels(this._orientation);\n }\n}\n", "import { CustomElement, attachShadowTemplate, FoundationProperty, coerceBoolean, coerceNumber } from '@tylertech/forge-core';\n\nimport { BaseComponent, IBaseComponent } from '../../core/base/base-component';\nimport { SplitViewAdapter } from './split-view-adapter';\nimport { SplitViewFoundation } from './split-view-foundation';\nimport { ISplitViewUpdateConfig, SplitViewOrientation, SPLIT_VIEW_CONSTANTS } from './split-view-constants';\nimport { ISplitViewPanelComponent, SplitViewPanelComponent } from '../split-view-panel';\nimport { ISplitViewBase } from '../core/split-view-base';\n\nconst template = '<template><div class=\\\"forge-split-view\\\" id=\\\"root\\\" part=\\\"root\\\"><slot></slot></div></template>';\nconst styles = '@-webkit-keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@-webkit-keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@-webkit-keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}@keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity;position:relative;outline:0;overflow:hidden}.mdc-ripple-surface::after,.mdc-ripple-surface::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\\\"\\\"}.mdc-ripple-surface::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface::after,.mdc-ripple-surface::before{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-upgraded--unbounded::after,.mdc-ripple-upgraded--unbounded::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before{top:var(--mdc-ripple-top,calc(50% - 50%));left:var(--mdc-ripple-left,calc(50% - 50%));width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-ripple-surface.mdc-ripple-surface--hover::before,.mdc-ripple-surface:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{--mdc-ripple-color:var(--mdc-theme-on-surface)}.forge-split-view{display:-webkit-box;display:flex;width:100%;height:100%}:host{--forge-split-view-handle-width:8px;display:block;height:100%;width:100%;overflow:hidden;contain:paint size}:host([hidden]){display:none}:host([orientation=horizontal]) .forge-split-view{-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row}:host([orientation=vertical]) .forge-split-view{-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}';\n\nexport interface ISplitViewComponent extends ISplitViewBase, IBaseComponent {\n orientation: SplitViewOrientation;\n layerSlottedPanels(target: ISplitViewPanelComponent): void;\n unlayerSlottedPanels(): void;\n update(config: ISplitViewUpdateConfig): void;\n refit(): void;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-split-view': ISplitViewComponent;\n }\n}\n\n/**\n * The custom element class behind the `<forge-split-view>` element.\n * \n * @tag forge-split-view\n */\n@CustomElement({\n name: SPLIT_VIEW_CONSTANTS.elementName,\n dependencies: [\n SplitViewPanelComponent\n ]\n})\nexport class SplitViewComponent extends BaseComponent implements ISplitViewComponent {\n public static get observedAttributes(): string[] {\n return [\n SPLIT_VIEW_CONSTANTS.attributes.ORIENTATION,\n SPLIT_VIEW_CONSTANTS.attributes.DISABLED,\n SPLIT_VIEW_CONSTANTS.attributes.ALLOW_CLOSE,\n SPLIT_VIEW_CONSTANTS.attributes.AUTO_CLOSE,\n SPLIT_VIEW_CONSTANTS.attributes.AUTO_CLOSE_THRESHOLD\n ];\n }\n\n private _foundation: SplitViewFoundation;\n\n constructor() {\n super();\n attachShadowTemplate(this, template, styles);\n this._foundation = new SplitViewFoundation(new SplitViewAdapter(this));\n }\n\n public connectedCallback(): void {\n this._foundation.initialize();\n }\n\n public disconnectedCallback(): void {\n this._foundation.disconnect();\n }\n\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n switch (name) {\n case SPLIT_VIEW_CONSTANTS.attributes.ORIENTATION:\n this.orientation = newValue as SplitViewOrientation;\n break;\n case SPLIT_VIEW_CONSTANTS.attributes.DISABLED:\n this.disabled = coerceBoolean(newValue);\n break;\n case SPLIT_VIEW_CONSTANTS.attributes.ALLOW_CLOSE:\n this.allowClose = coerceBoolean(newValue);\n break;\n case SPLIT_VIEW_CONSTANTS.attributes.AUTO_CLOSE:\n this.autoClose = coerceBoolean(newValue);\n break;\n case SPLIT_VIEW_CONSTANTS.attributes.AUTO_CLOSE_THRESHOLD:\n this.autoCloseThreshold = coerceNumber(newValue);\n break;\n }\n }\n\n /**\n * Whether child split view panels are laid out and resize horizontally or vertically.\n */\n @FoundationProperty()\n public orientation: SplitViewOrientation;\n\n /**\n * Whether child split view panels have resize interactions disabled or enabled.\n */\n @FoundationProperty()\n public disabled: boolean;\n\n /**\n * Whether child split view panels can be closed via keyboard interaction.\n */\n @FoundationProperty()\n public allowClose: boolean;\n\n /**\n * Whether child split view panels automatically close when they reach a size of 0.\n */\n @FoundationProperty()\n public autoClose: boolean;\n\n /**\n * The size at which panels auto close.\n */\n @FoundationProperty()\n public autoCloseThreshold: number;\n\n /**\n * Arranges split view panels to avoid overlapping during animations.\n * @param target The originating split view panel component.\n */\n public layerSlottedPanels(target: ISplitViewPanelComponent): void {\n this._foundation.layerSlottedPanels(target);\n }\n\n /**\n * Removes presentation data set during an animation.\n */\n public unlayerSlottedPanels(): void {\n this._foundation.unlayerSlottedPanels();\n }\n\n /**\n * Updates the provided characteristics of each slotted panel.\n * @param config An update configuration.\n */\n public update(config: ISplitViewUpdateConfig): void {\n this._foundation.update(config);\n }\n\n /**\n * Resizes panels within the split view to avoid overflow.\n */\n public refit(): void {\n this._foundation.refitSlottedPanels();\n }\n}\n", "import { defineCustomElement } from '@tylertech/forge-core';\n\nimport { SplitViewComponent } from './split-view';\n\nexport * from './split-view-adapter';\nexport * from './split-view-constants';\nexport * from './split-view-foundation';\nexport * from './split-view';\n\nexport function defineSplitViewComponent(): void {\n defineCustomElement(SplitViewComponent);\n}\n"],
5
- "mappings": "yUAGO,IAAMA,EAAN,MAAMC,CAAoB,CAU7B,OAAO,QAAQC,EAAQC,EAAUC,EAAS,CACtC,IAAIC,EAAIC,EACJL,EAAoB,SAAS,IAAIC,CAAM,KACtCG,EAAKJ,EAAoB,aAAe,MAAQI,IAAO,QAAkBA,EAAG,UAAUH,CAAM,GAEjGD,EAAoB,SAAS,IAAIC,EAAQC,CAAQ,EACjDF,EAAoB,cAAc,GACjCK,EAAKL,EAAoB,aAAe,MAAQK,IAAO,QAAkBA,EAAG,QAAQJ,EAAQE,CAAO,CACxG,CAMA,OAAO,UAAUF,EAAQ,CACrB,IAAIG,EACJJ,EAAoB,SAAS,OAAOC,CAAM,GACzCG,EAAKJ,EAAoB,aAAe,MAAQI,IAAO,QAAkBA,EAAG,UAAUH,CAAM,EAC7FD,EAAoB,cAAc,CACtC,CAIA,OAAO,eAAgB,CACfA,EAAoB,UAEhBA,EAAoB,SAAS,KAAO,IACpCA,EAAoB,UAAY,QAKhCA,EAAoB,SAAS,OAC7BA,EAAoB,UAAY,IAAI,eAAeA,EAAoB,aAAa,EAGhG,CACJ,EACAD,EAAoB,SAAW,IAAI,IAMnCA,EAAoB,cAAgBO,GAAW,CAC3CA,EAAQ,QAAQC,GAAS,CACrB,IAAIH,GACHA,EAAKL,EAAoB,SAAS,IAAIQ,EAAM,MAAM,KAAO,MAAQH,IAAO,QAAkBA,EAAGG,CAAK,CACvG,CAAC,CACL,EC7CO,IAAMC,EAAN,cAA+BC,CAA8D,CAGlG,YAAYC,EAAgC,CAC1C,MAAMA,CAAS,EACf,KAAK,MAAQC,EAAiBD,EAAWE,EAAqB,UAAU,IAAI,CAC9E,CAEO,qBAAqBC,EAAsC,CACh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CACLC,EAAqB,WAAW,YAChCA,EAAqB,WAAW,SAChCA,EAAqB,WAAW,YAChCA,EAAqB,WAAW,WAChCA,EAAqB,WAAW,oBAClC,CACF,CAUO,mBAA0B,CAC/B,KAAK,YAAY,WAAW,CAC9B,CAEO,sBAA6B,CAClC,KAAK,YAAY,WAAW,CAC9B,CAEO,yBAAyBC,EAAcC,EAAkBC,EAAwB,CACtF,OAAQF,EAAM,CACZ,KAAKD,EAAqB,WAAW,YACnC,KAAK,YAAcG,EACnB,MACF,KAAKH,EAAqB,WAAW,SACnC,KAAK,SAAWI,EAAcD,CAAQ,EACtC,MACF,KAAKH,EAAqB,WAAW,YACnC,KAAK,WAAaI,EAAcD,CAAQ,EACxC,MACF,KAAKH,EAAqB,WAAW,WACnC,KAAK,UAAYI,EAAcD,CAAQ,EACvC,MACF,KAAKH,EAAqB,WAAW,qBACnC,KAAK,mBAAqBK,EAAaF,CAAQ,EAC/C,KACJ,CACF,CAoCO,mBAAmBG,EAAwC,CAChE,KAAK,YAAY,mBAAmBA,CAAM,CAC5C,CAKO,sBAA6B,CAClC,KAAK,YAAY,qBAAqB,CACxC,CAMO,OAAOC,EAAsC,CAClD,KAAK,YAAY,OAAOA,CAAM,CAChC,CAKO,OAAc,CACnB,KAAK,YAAY,mBAAmB,CACtC,CACF,EAvDSC,EAAA,CADNC,EAAmB,GAlDTd,EAmDJ,2BAMAa,EAAA,CADNC,EAAmB,GAxDTd,EAyDJ,wBAMAa,EAAA,CADNC,EAAmB,GA9DTd,EA+DJ,0BAMAa,EAAA,CADNC,EAAmB,GApETd,EAqEJ,yBAMAa,EAAA,CADNC,EAAmB,GA1ETd,EA2EJ,kCA3EIA,EAANa,EAAA,CANNE,EAAc,CACb,KAAMV,EAAqB,YAC3B,aAAc,CACZW,CACF,CACF,CAAC,GACYhB,GC5BN,SAASiB,IAAiC,CAC/CC,EAAoBC,CAAkB,CACxC",
4
+ "sourcesContent": ["/**\n * Provides a set of methods for observing and responding to resizing of elements.\n */\nexport class ForgeResizeObserver {\n /**\n * Initiates the observing of a specified `Element`. Calling with an already observed `Element`\n * overwrites the exisiting observation. It is expected that the consumer will eventually\n * {@link unobserve} the `Element` to avoid memory leaks.\n *\n * @param target An `Element` reference.\n * @param callback A function that accepts a `ResizeObserverEntry` for the `Element`.\n * @param options An options object allowing you to set options for the observation.\n */\n static observe(target, callback, options) {\n var _a, _b;\n if (ForgeResizeObserver._targets.has(target)) {\n (_a = ForgeResizeObserver._observer) === null || _a === void 0 ? void 0 : _a.unobserve(target);\n }\n ForgeResizeObserver._targets.set(target, callback);\n ForgeResizeObserver._countTargets();\n (_b = ForgeResizeObserver._observer) === null || _b === void 0 ? void 0 : _b.observe(target, options);\n }\n /**\n * Ends the observing of a specified `Element`.\n *\n * @param target An `Element` reference.\n */\n static unobserve(target) {\n var _a;\n ForgeResizeObserver._targets.delete(target);\n (_a = ForgeResizeObserver._observer) === null || _a === void 0 ? void 0 : _a.unobserve(target);\n ForgeResizeObserver._countTargets();\n }\n /**\n * Creates or destroys the `ResizeObserver` based on whether targets exist.\n */\n static _countTargets() {\n if (ForgeResizeObserver._observer) {\n // If there are no targets destroy the observer\n if (ForgeResizeObserver._targets.size < 1) {\n ForgeResizeObserver._observer = undefined;\n }\n }\n else {\n // If there are targets create the observer\n if (ForgeResizeObserver._targets.size) {\n ForgeResizeObserver._observer = new ResizeObserver(ForgeResizeObserver._handleResize);\n }\n }\n }\n}\nForgeResizeObserver._targets = new Map();\n/**\n * Runs the callback function of targets when they are resized.\n *\n * @param entries An array of `ResizeObserverEntry`s.\n */\nForgeResizeObserver._handleResize = entries => {\n entries.forEach(entry => {\n var _a;\n (_a = ForgeResizeObserver._targets.get(entry.target)) === null || _a === void 0 ? void 0 : _a(entry);\n });\n};\n", "import { ForgeResizeObserver, getShadowElement } from '@tylertech/forge-core';\n\nimport { BaseAdapter, IBaseAdapter } from '../../core/base/base-adapter';\nimport { ISplitViewPanelComponent, SPLIT_VIEW_PANEL_CONSTANTS } from '../split-view-panel';\nimport { ISplitViewComponent } from './split-view';\nimport { SplitViewOrientation, SPLIT_VIEW_CONSTANTS } from './split-view-constants';\n\nexport interface ISplitViewAdapter extends IBaseAdapter {\n registerSlotListener(listener: (evt: Event) => void): void;\n registerDidOpenListener(listener: () => void): void;\n registerDidCloseListener(listener: () => void): void;\n observeResize(callback: (entry: ResizeObserverEntry) => void): void;\n unobserveResize(): void;\n getSlottedPanels(): ISplitViewPanelComponent[];\n refitSlottedPanels(orientation: SplitViewOrientation): void;\n}\n\nexport class SplitViewAdapter extends BaseAdapter<ISplitViewComponent> implements ISplitViewAdapter {\n private _root: HTMLElement;\n\n constructor(component: ISplitViewComponent) {\n super(component);\n this._root = getShadowElement(component, SPLIT_VIEW_CONSTANTS.selectors.ROOT);\n }\n\n public registerSlotListener(listener: (evt: Event) => void): void {\n this._root.addEventListener('slotchange', listener);\n }\n\n public registerDidOpenListener(listener: () => void): void {\n this._root.addEventListener(SPLIT_VIEW_PANEL_CONSTANTS.events.DID_OPEN, listener);\n }\n\n public registerDidCloseListener(listener: () => void): void {\n this._root.addEventListener(SPLIT_VIEW_PANEL_CONSTANTS.events.DID_CLOSE, listener);\n }\n\n public observeResize(callback: (entry: ResizeObserverEntry) => void): void {\n ForgeResizeObserver.observe(this._root, callback);\n }\n \n public unobserveResize(): void {\n ForgeResizeObserver.unobserve(this._root);\n }\n \n /**\n * Gets all child panels.\n * @returns All child panels.\n */\n public getSlottedPanels(): ISplitViewPanelComponent[] {\n const nodeList = this._component.querySelectorAll<ISplitViewPanelComponent>(SPLIT_VIEW_CONSTANTS.selectors.PANEL);\n const panelArray = Array.from(nodeList);\n const immediateChildPanels = panelArray.filter(panel => panel.parentElement === this._component);\n return immediateChildPanels;\n }\n\n public refitSlottedPanels(orientation: SplitViewOrientation): void {\n // Check if the combined panel size is greater than the split view size along the relevant axis\n const size = orientation === 'horizontal' ? this._root.clientWidth : this._root.clientHeight;\n const panels = this.getSlottedPanels();\n const combinedPanelSize = panels.map(panel => {\n const panelRoot = panel.shadowRoot?.querySelector(SPLIT_VIEW_PANEL_CONSTANTS.selectors.ROOT);\n const panelSize = orientation === 'horizontal' ? panelRoot?.clientWidth : panelRoot?.clientHeight;\n return panelSize ?? 0;\n }).reduce((cur, acc) => cur + acc, 0);\n\n // Do nothing if all the panels fit\n if (combinedPanelSize <= size) {\n return;\n }\n\n // Get the size adjustment needed to fit\n let diff = combinedPanelSize - size;\n\n // Size down the panels as needed in reverse order, adjusting diff accordingly\n panels.slice().reverse().forEach(panel => {\n if (diff <= 0) {\n return;\n }\n\n const panelSize = panel.getContentSize();\n const collapsibleSize = panel.getCollapsibleSize();\n const reduceBy = Math.min(diff, collapsibleSize);\n const newSize = panelSize - reduceBy;\n\n panel.setContentSize(newSize);\n\n diff -= reduceBy;\n });\n\n // If there's still overflow nothing else can be done\n }\n}\n", "import { ForgeResizeObserverCallback, ICustomElementFoundation, throttle } from '@tylertech/forge-core';\n\nimport { ISplitViewBase } from '../core/split-view-base';\nimport { ISplitViewPanelComponent, SplitViewAnimatingLayer } from '../split-view-panel';\nimport { ISplitViewAdapter } from './split-view-adapter';\nimport { ISplitViewUpdateConfig, SplitViewOrientation, SPLIT_VIEW_CONSTANTS } from './split-view-constants';\n\nexport interface ISplitViewFoundation extends ISplitViewBase, ICustomElementFoundation {\n orientation: SplitViewOrientation;\n layerSlottedPanels(target: ISplitViewPanelComponent): void;\n unlayerSlottedPanels(): void;\n update(config: ISplitViewUpdateConfig): void;\n refitSlottedPanels(): void;\n}\n\nexport class SplitViewFoundation implements ISplitViewFoundation {\n private _orientation: SplitViewOrientation = 'horizontal';\n private _disabled = false;\n private _allowClose = false;\n private _autoClose = false;\n private _autoCloseThreshold = 0;\n private _slotListener: (evt: Event) => void;\n private _didOpenListener: () => void;\n private _didCloseListener: () => void;\n private _resizeObserverCallback: ForgeResizeObserverCallback;\n private _isInitialized = false;\n\n constructor(private _adapter: ISplitViewAdapter) {\n this._slotListener = evt => this._onSlotChange(evt);\n this._didOpenListener = () => this._onDidOpen();\n this._didCloseListener = () => this._onDidClose();\n this._resizeObserverCallback = throttle((entry: ResizeObserverEntry) => this._onResize(entry), SPLIT_VIEW_CONSTANTS.numbers.RESIZE_THROTTLE_THRESHOLD);\n }\n\n public initialize(): void {\n this._adapter.registerSlotListener(this._slotListener);\n this._adapter.registerDidOpenListener(this._didOpenListener);\n this._adapter.registerDidCloseListener(this._didCloseListener);\n this._adapter.observeResize(this._resizeObserverCallback);\n \n this._applyOrientation();\n this._isInitialized = true;\n }\n\n public disconnect(): void {\n this._adapter.unobserveResize();\n }\n\n private _onSlotChange(evt: Event): void {\n this._layoutSlottedPanels();\n this.update({ accessibility: true, cursor: true, orientation: this._orientation });\n }\n\n private _onDidOpen(): void {\n this._adapter.refitSlottedPanels(this._orientation);\n this.update({ accessibility: true, cursor: true, size: true});\n }\n\n private _onDidClose(): void {\n this._adapter.refitSlottedPanels(this._orientation);\n this.update({ accessibility: true, cursor: true, size: true});\n }\n\n private _onResize(entry: ResizeObserverEntry): void {\n this.update({ accessibility: true, cursor: true, size: true });\n }\n\n /**\n * Sets the resizable value of slotted panels with no resizable value set.\n */\n private _layoutSlottedPanels(): void {\n const panels = this._adapter.getSlottedPanels();\n\n // A single panel should have resizable set to off. Just leave it alone.\n if (panels.length < 2) {\n return;\n }\n\n // Don't change any panels if resizable is already set.\n if (panels.some(panel => panel.resizable !== 'off')) {\n return;\n }\n\n // All panels after the first have resizable set to start.\n panels.slice(1).forEach(panel => panel.resizable = 'start');\n }\n\n /**\n * Get/set whether panels are arranged horizontally or vertically.\n */\n public get orientation(): SplitViewOrientation {\n return this._orientation;\n }\n public set orientation(value: SplitViewOrientation) {\n if (this._orientation !== value) {\n this._orientation = value;\n this._applyOrientation();\n }\n }\n\n private _applyOrientation(): void {\n this._adapter.setHostAttribute(SPLIT_VIEW_CONSTANTS.attributes.ORIENTATION, this._orientation);\n this.update({ orientation: this._orientation });\n\n if (this._isInitialized) {\n this._adapter.refitSlottedPanels(this._orientation);\n }\n this.update({ accessibility: true, cursor: true });\n }\n\n /**\n * Get/set whether interactions are disabled.\n */\n public get disabled(): boolean {\n return this._disabled;\n }\n public set disabled(value: boolean) {\n if (this._disabled !== value) {\n this._disabled = value;\n this._applyDisabled();\n }\n }\n\n private _applyDisabled(): void {\n this._adapter.toggleHostAttribute(SPLIT_VIEW_CONSTANTS.attributes.DISABLED, this._disabled);\n this.update({ properties: { disabled: this._disabled } });\n }\n\n /**\n * Get/set whether closing the panel is disabled.\n */\n public get allowClose(): boolean {\n return this._allowClose;\n }\n public set allowClose(value: boolean) {\n if (this._allowClose !== value) {\n this._allowClose = value;\n this._applyAllowClose();\n }\n }\n\n private _applyAllowClose(): void {\n this._adapter.toggleHostAttribute(SPLIT_VIEW_CONSTANTS.attributes.ALLOW_CLOSE, this._allowClose);\n this.update({ properties: { allowClose: this._allowClose } });\n }\n\n /**\n * Get/set whether the panel closes when a threshold size is reached.\n */\n public get autoClose(): boolean {\n return this._autoClose;\n }\n public set autoClose(value: boolean) {\n if (this._autoClose !== value) {\n this._autoClose = value;\n this._applyAutoClose();\n }\n }\n\n private _applyAutoClose(): void {\n this._adapter.toggleHostAttribute(SPLIT_VIEW_CONSTANTS.attributes.AUTO_CLOSE, this._autoClose);\n this.update({ properties: { autoClose: this._autoClose } });\n }\n\n /**\n * Get/set the size at which panels auto close.\n */\n public get autoCloseThreshold(): number {\n return this._autoCloseThreshold;\n }\n public set autoCloseThreshold(value: number) {\n if (this._autoCloseThreshold !== value) {\n this._autoCloseThreshold = value;\n this._applyAutoCloseThreshold();\n }\n }\n\n private _applyAutoCloseThreshold(): void {\n this._adapter.setHostAttribute(SPLIT_VIEW_CONSTANTS.attributes.AUTO_CLOSE_THRESHOLD, this._autoCloseThreshold.toString());\n this.update({ properties: { autoCloseThreshold: this._autoCloseThreshold } });\n }\n\n /**\n * Layers panels in a set order during an animation. Panels that the target is animating toward\n * stack above it and other layers stack under it.\n * @param target The animating panel.\n */\n public layerSlottedPanels(target: ISplitViewPanelComponent): void {\n const panels = this._adapter.getSlottedPanels();\n const increment = target.resizable === 'start' ? 1 : -1;\n let layer = target.resizable === 'start' ? SplitViewAnimatingLayer.Under : SplitViewAnimatingLayer.Above;\n\n panels.forEach(panel => {\n // Increment the layer if moving into or out of the target panel\n if (panel === target || layer === SplitViewAnimatingLayer.Active) {\n layer += increment;\n }\n panel.style.setProperty(SPLIT_VIEW_CONSTANTS.customCssProperties.ANIMATING_LAYER, layer.toString());\n });\n }\n\n /**\n * Removes layering after an animation.\n */\n public unlayerSlottedPanels(): void {\n const panels = this._adapter.getSlottedPanels();\n panels.forEach(panel => {\n panel.style.removeProperty(SPLIT_VIEW_CONSTANTS.customCssProperties.ANIMATING_LAYER);\n });\n }\n\n /**\n * Updates the provided characteristics of each panel.\n * @param config An update configuration.\n */\n public update(config: ISplitViewUpdateConfig): void {\n const panels = this._adapter.getSlottedPanels();\n panels.forEach(panel => {\n panel.update(config);\n });\n }\n\n /**\n * Resizes panels within the split view to avoid overflow.\n */\n public refitSlottedPanels(): void {\n this._adapter.refitSlottedPanels(this._orientation);\n }\n}\n", "import { CustomElement, attachShadowTemplate, FoundationProperty, coerceBoolean, coerceNumber } from '@tylertech/forge-core';\n\nimport { BaseComponent, IBaseComponent } from '../../core/base/base-component';\nimport { SplitViewAdapter } from './split-view-adapter';\nimport { SplitViewFoundation } from './split-view-foundation';\nimport { ISplitViewUpdateConfig, SplitViewOrientation, SPLIT_VIEW_CONSTANTS } from './split-view-constants';\nimport { ISplitViewPanelComponent, SplitViewPanelComponent } from '../split-view-panel';\nimport { ISplitViewBase } from '../core/split-view-base';\n\nconst template = '<template><div class=\\\"forge-split-view\\\" id=\\\"root\\\" part=\\\"root\\\"><slot></slot></div></template>';\nconst styles = '.forge-split-view{display:-webkit-box;display:flex;width:100%;height:100%}:host{--forge-split-view-handle-width:8px;display:block;height:100%;width:100%;overflow:hidden;contain:paint size}:host([hidden]){display:none}:host([orientation=horizontal]) .forge-split-view{-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row}:host([orientation=vertical]) .forge-split-view{-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}';\n\nexport interface ISplitViewComponent extends ISplitViewBase, IBaseComponent {\n orientation: SplitViewOrientation;\n layerSlottedPanels(target: ISplitViewPanelComponent): void;\n unlayerSlottedPanels(): void;\n update(config: ISplitViewUpdateConfig): void;\n refit(): void;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-split-view': ISplitViewComponent;\n }\n}\n\n/**\n * The custom element class behind the `<forge-split-view>` element.\n * \n * @tag forge-split-view\n */\n@CustomElement({\n name: SPLIT_VIEW_CONSTANTS.elementName,\n dependencies: [\n SplitViewPanelComponent\n ]\n})\nexport class SplitViewComponent extends BaseComponent implements ISplitViewComponent {\n public static get observedAttributes(): string[] {\n return [\n SPLIT_VIEW_CONSTANTS.attributes.ORIENTATION,\n SPLIT_VIEW_CONSTANTS.attributes.DISABLED,\n SPLIT_VIEW_CONSTANTS.attributes.ALLOW_CLOSE,\n SPLIT_VIEW_CONSTANTS.attributes.AUTO_CLOSE,\n SPLIT_VIEW_CONSTANTS.attributes.AUTO_CLOSE_THRESHOLD\n ];\n }\n\n private _foundation: SplitViewFoundation;\n\n constructor() {\n super();\n attachShadowTemplate(this, template, styles);\n this._foundation = new SplitViewFoundation(new SplitViewAdapter(this));\n }\n\n public connectedCallback(): void {\n this._foundation.initialize();\n }\n\n public disconnectedCallback(): void {\n this._foundation.disconnect();\n }\n\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n switch (name) {\n case SPLIT_VIEW_CONSTANTS.attributes.ORIENTATION:\n this.orientation = newValue as SplitViewOrientation;\n break;\n case SPLIT_VIEW_CONSTANTS.attributes.DISABLED:\n this.disabled = coerceBoolean(newValue);\n break;\n case SPLIT_VIEW_CONSTANTS.attributes.ALLOW_CLOSE:\n this.allowClose = coerceBoolean(newValue);\n break;\n case SPLIT_VIEW_CONSTANTS.attributes.AUTO_CLOSE:\n this.autoClose = coerceBoolean(newValue);\n break;\n case SPLIT_VIEW_CONSTANTS.attributes.AUTO_CLOSE_THRESHOLD:\n this.autoCloseThreshold = coerceNumber(newValue);\n break;\n }\n }\n\n /**\n * Whether child split view panels are laid out and resize horizontally or vertically.\n */\n @FoundationProperty()\n public orientation: SplitViewOrientation;\n\n /**\n * Whether child split view panels have resize interactions disabled or enabled.\n */\n @FoundationProperty()\n public disabled: boolean;\n\n /**\n * Whether child split view panels can be closed via keyboard interaction.\n */\n @FoundationProperty()\n public allowClose: boolean;\n\n /**\n * Whether child split view panels automatically close when they reach a size of 0.\n */\n @FoundationProperty()\n public autoClose: boolean;\n\n /**\n * The size at which panels auto close.\n */\n @FoundationProperty()\n public autoCloseThreshold: number;\n\n /**\n * Arranges split view panels to avoid overlapping during animations.\n * @param target The originating split view panel component.\n */\n public layerSlottedPanels(target: ISplitViewPanelComponent): void {\n this._foundation.layerSlottedPanels(target);\n }\n\n /**\n * Removes presentation data set during an animation.\n */\n public unlayerSlottedPanels(): void {\n this._foundation.unlayerSlottedPanels();\n }\n\n /**\n * Updates the provided characteristics of each slotted panel.\n * @param config An update configuration.\n */\n public update(config: ISplitViewUpdateConfig): void {\n this._foundation.update(config);\n }\n\n /**\n * Resizes panels within the split view to avoid overflow.\n */\n public refit(): void {\n this._foundation.refitSlottedPanels();\n }\n}\n", "import { defineCustomElement } from '@tylertech/forge-core';\n\nimport { SplitViewComponent } from './split-view';\n\nexport * from './split-view-adapter';\nexport * from './split-view-constants';\nexport * from './split-view-foundation';\nexport * from './split-view';\n\nexport function defineSplitViewComponent(): void {\n defineCustomElement(SplitViewComponent);\n}\n"],
5
+ "mappings": "yUAGO,IAAMA,EAAN,MAAMC,CAAoB,CAU7B,OAAO,QAAQC,EAAQC,EAAUC,EAAS,CACtC,IAAIC,EAAIC,EACJL,EAAoB,SAAS,IAAIC,CAAM,KACtCG,EAAKJ,EAAoB,aAAe,MAAQI,IAAO,QAAkBA,EAAG,UAAUH,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,MACF,KAAKH,EAAqB,WAAW,YACnC,KAAK,WAAaI,EAAcD,CAAQ,EACxC,MACF,KAAKH,EAAqB,WAAW,WACnC,KAAK,UAAYI,EAAcD,CAAQ,EACvC,MACF,KAAKH,EAAqB,WAAW,qBACnC,KAAK,mBAAqBK,EAAaF,CAAQ,EAC/C,KACJ,CACF,CAoCO,mBAAmBG,EAAwC,CAChE,KAAK,YAAY,mBAAmBA,CAAM,CAC5C,CAKO,sBAA6B,CAClC,KAAK,YAAY,qBAAqB,CACxC,CAMO,OAAOC,EAAsC,CAClD,KAAK,YAAY,OAAOA,CAAM,CAChC,CAKO,OAAc,CACnB,KAAK,YAAY,mBAAmB,CACtC,CACF,EAvDSC,EAAA,CADNC,EAAmB,GAlDTd,EAmDJ,2BAMAa,EAAA,CADNC,EAAmB,GAxDTd,EAyDJ,wBAMAa,EAAA,CADNC,EAAmB,GA9DTd,EA+DJ,0BAMAa,EAAA,CADNC,EAAmB,GApETd,EAqEJ,yBAMAa,EAAA,CADNC,EAAmB,GA1ETd,EA2EJ,kCA3EIA,EAANa,EAAA,CANNE,EAAc,CACb,KAAMV,EAAqB,YAC3B,aAAc,CACZW,CACF,CACF,CAAC,GACYhB,GC5BN,SAASiB,IAAiC,CAC/CC,EAAoBC,CAAkB,CACxC",
6
6
  "names": ["ForgeResizeObserver", "_ForgeResizeObserver", "target", "callback", "options", "_a", "_b", "entries", "entry", "SplitViewAdapter", "BaseAdapter", "component", "getShadowElement", "SPLIT_VIEW_CONSTANTS", "listener", "SPLIT_VIEW_PANEL_CONSTANTS", "callback", "ForgeResizeObserver", "nodeList", "panel", "orientation", "size", "panels", "combinedPanelSize", "_a", "panelRoot", "panelSize", "cur", "acc", "diff", "collapsibleSize", "reduceBy", "newSize", "SplitViewFoundation", "_adapter", "evt", "throttle", "entry", "SPLIT_VIEW_CONSTANTS", "panels", "panel", "value", "target", "increment", "layer", "config", "template", "styles", "SplitViewComponent", "BaseComponent", "attachShadowTemplate", "SplitViewFoundation", "SplitViewAdapter", "SPLIT_VIEW_CONSTANTS", "name", "oldValue", "newValue", "coerceBoolean", "coerceNumber", "target", "config", "__decorateClass", "FoundationProperty", "CustomElement", "SplitViewPanelComponent", "defineSplitViewComponent", "defineCustomElement", "SplitViewComponent"]
7
7
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Tyler Technologies, Inc.
4
+ * License: Apache-2.0
5
+ */
6
+ import{i as a}from"./chunk.J2M2MXP2.js";function u(t){return t.ownerDocument||document}function p(t){return t&&t.nodeType===1}function S(t,e){if(!p(t))throw new Error("DOMUtils - elementParents: invalid element argument");let o=[];for(;t.parentElement&&(o.push(t.parentElement),!(t.parentElement===e||t.parentElement===u(t).body));)t.parentElement&&t.parentElement.parentNode&&t.parentElement.parentNode.nodeType===11?t=t.parentElement.parentNode.host:t=t.parentElement;return o}function g(t,e){if(!p(t))throw new Error("DOMUtils - offset: invalid element argument");let o=t.getBoundingClientRect(),n=u(t).defaultView,i=e||n.document.documentElement,r={width:o.width,height:o.width,top:0,left:0,bottom:0,right:0};if(!e||i===n.document.documentElement||i===n.document.body)r.top=n.scrollY+o.top,r.bottom=i.clientHeight-n.scrollY-o.bottom,r.left=n.scrollX+o.left,r.right=i.clientWidth-n.scrollX-o.right;else{if(!p(e))throw new Error("DOMUtils - offset: invalid parentElement argument");let s=e.getBoundingClientRect();r.top=o.top-s.top,r.bottom=s.bottom-o.bottom,r.left=o.left-s.left,r.right=s.right-o.right}return{width:Math.round(o.width),height:Math.round(o.height),top:Math.round(r.top),bottom:Math.round(r.bottom),left:Math.round(r.left),right:Math.round(r.right)}}function L(t,e,o){let n=r=>{let s=()=>{r.stopPropagation(),r.cancelable&&r.preventDefault();let l=r.type==="touchstart"?r.target:u(t).activeElement;t.contains(l)||e(l)};o?window.requestAnimationFrame(()=>s()):s()},i=u(t);return i.addEventListener("blur",n,!0),i.addEventListener("touchstart",n,!0),()=>{i.removeEventListener("blur",n,!0),i.removeEventListener("touchstart",n,!0)}}function M(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function N(t,e){return e.parentNode.replaceChild(t,e)}function b(t,e){a(t)?t.forEach(o=>e.classList.add(o)):e.classList.add(t)}function v(t,e){a(t)?t.forEach(o=>e.classList.remove(o)):e.classList.remove(t)}function x(){let t=document.createElement("fakeelement"),e={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(let o in e)if(t.style[o]!==void 0)return e[o]}async function P(t,e,o=!0){return t.classList.add(e),new Promise(n=>{let i=x(),r=()=>{o&&t.classList.remove(e),t.removeEventListener(i,r),n()};t.addEventListener(i,r)})}function W(t){t.removeNode?t.removeNode(!0):t.remove?t.remove():t.parentNode.removeChild(t)}function O(t){if(typeof t=="string"){if(t[t.length-1]==="%")return t;if(t.slice(-2)==="px")return t;if(Number(t)>=0)return`${t}px`}else if(typeof t=="number"&&t>=0)return`${t}px`}function R(t){return t.children.length?Promise.resolve():new Promise(e=>{let o=new MutationObserver(n=>{t.children.length&&(o.disconnect(),e())});o.observe(t,{childList:!0})})}function H(t,e){let o=f(t,e);return o.length?Promise.resolve(o[0]):new Promise(n=>{let i=new MutationObserver(r=>{if(r.reduce((l,c)=>l+c.addedNodes.length,0)>0){let l=f(t,e);l.length&&(i.disconnect(),n(l[0]))}});i.observe(t,{childList:!0,subtree:!0})})}function T(t){return new Promise(e=>{let o=t.querySelector("input");o&&e(o);let n=new MutationObserver(i=>{if(i.reduce((s,l)=>s+l.addedNodes.length,0)>0){let s=t.querySelector("input");s&&(n.disconnect(),e(s))}});n.observe(t,{childList:!0,subtree:!0})})}function D(t,e){let o=t&&t.parentNode;for(;o;){if(e(o))return o;o=o.parentNode}return null}function E(t,e){if(t.nodeType!==Node.ELEMENT_NODE)return!1;typeof e=="string"&&(e=e.replace(/\s+/,"").split(","));let o=Element.prototype.matches;return e.some(n=>o.call(t,n))}function f(t,e,o=!1){let n=[];if(!t)return n;if(typeof e=="string"&&(e=e.replace(/\s+/,"").split(",")),o&&E(t,e)&&n.indexOf(t)===-1&&n.push(t),t.tagName==="SLOT")t.assignedNodes().forEach(r=>n=n.concat(f(r,e,!0)));else{let i=t.shadowRoot?t.shadowRoot.firstElementChild:t.firstElementChild;for(;i;)n=n.concat(f(i,e,!0)),i=i.nextElementSibling}return n}function U(t=document){let e=t.activeElement;return!e||e===t.body?e:m(e)}function m(t){return t.shadowRoot&&t.shadowRoot.activeElement&&(t=m(t.shadowRoot.activeElement)),t}function V(t,e,o){e?b(o,t):v(o,t)}function $(t,e,o,n=""){e?t.setAttribute(o,n):t.removeAttribute(o)}function B(t,e,o,n){let i=t.getAttribute(e);(n===void 0||n===!0)&&(!i||!i.includes(o))?y(t,e,o):n||A(t,e,o)}function y(t,e,o){let n=t.getAttribute(e);!n||!n.length?t.setAttribute(e,o):t.setAttribute(e,`${n} ${o}`)}function A(t,e,o){if(!t.hasAttribute(e))return;let n=t.getAttribute(e);if(n){let i=n==null?void 0:n.replace(o,"");i=i.replace(/\s+/g," ").trim(),i.length?t.setAttribute(e,i):t.removeAttribute(e)}}function F(t,e,o="auto",n="nearest"){if(!t)return;if(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth){let r=g(e,t),s=r.top<=e.clientHeight,l=r.bottom<=e.clientHeight;if(s||l){let d=h(n,s,e.offsetTop,e.clientHeight,t.offsetTop,t.offsetHeight);t.scrollTo({top:d,behavior:o});return}let c=r.left<=e.clientWidth,w=r.right<=e.clientWidth;if(c||w){let d=h(n,c,e.offsetLeft,e.clientWidth,t.offsetLeft,t.offsetWidth);t.scrollTo({left:d,behavior:o})}}}function h(t,e,o,n,i,r){return t==="nearest"?e?o-i-n:o-r+n*2:o-i-r/2+n/2}function I(t){let e=document.createElement("template");return t=t.trim(),e.innerHTML=t,e.content.firstElementChild}export{S as a,L as b,M as c,N as d,b as e,v as f,P as g,W as h,O as i,R as j,H as k,T as l,D as m,E as n,f as o,U as p,V as q,$ as r,B as s,y as t,F as u,I as v};
7
+ //# sourceMappingURL=chunk.L4QSPQDE.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../node_modules/@tylertech/forge-core/esm/utils/dom-utils.js"],
4
4
  "sourcesContent": ["import { isArray } from './utils';\n/**\n * Holds regular expressions\n */\n/* tslint:disable-next-line:require-private-underscore */\nconst REGULAR_EXPRESSIONS = {\n placement: {\n auto: /\\s?auto?\\s?/i,\n primary: /^(top|bottom|left|right)$/,\n secondary: /^(top|bottom|left|right|center)$/,\n topBottom: /^(top|bottom)$/\n },\n overflow: /(auto|scroll)/\n};\n/**\n * Holds the browser scrollbar width.\n */\n/* tslint:disable-next-line:require-private-underscore */\nlet SCROLLBAR_WIDTH;\n/**\n * Gets the ownerDocument for an element, if null, than returns the document element.\n * @param {Element} element The element to get the ownerDocument for\n * @returns {Document}\n */\nfunction _ownerDocument(element) {\n return element.ownerDocument || document;\n}\n/**\n * Retrieves an element based on the provided root and selector.\n * @param {Element} root The root element to search within.\n * @param {string} selector The selector for the child element.\n * @param {boolean} [allowNull=false] Should the method allow the element to be not found? Default is false.\n * @returns {HTMLElement}\n */\nexport function getElement(root, selector, allowNull = false) {\n const element = root.querySelector(selector);\n if (!element && !allowNull) {\n throw new Error(`Element not found with selector: ${selector}`);\n }\n return element;\n}\n/**\n * Checks if an element is a valid element.\n * @param {Element} element The node to test\n * @returns {boolean}\n */\nexport function isElement(element) {\n return element && element.nodeType === 1;\n}\n/**\n * Checks if an element is statically positioned.\n * @param {Element} element The node to test.\n * @returns {boolean}\n */\nexport function isPositionStatic(element) {\n return (window.getComputedStyle(element).position || 'static') === 'static';\n}\n/**\n * Parses a style string to a numeric value (removes 'px').\n * @param {string} value The style string to parse.\n * @returns {number}\n */\nexport function parseStyle(value) {\n if (!value || !value.length) {\n return 0;\n }\n const parsedValue = parseFloat(value);\n return isFinite(parsedValue) ? parsedValue : 0;\n}\n/**\n * Gets the index of an element in the parent element children.\n * @param {Element} element The element to get the index on.\n * @returns {number}\n */\nexport function elementIndex(element) {\n if (!isElement(element)) {\n throw new Error('DOMUtils - elementIndex: invalid element argument');\n }\n if (!element.parentElement) {\n return -1;\n }\n return Array.from(element.parentElement.children).indexOf(element);\n}\n/**\n * Gets an array of parent elements up to the body element.\n * @param {Element} element The element to get the parents of.\n * @param {Element=} untilElement Optional element where traversal should stop.\n * @returns {Array}\n */\nexport function elementParents(element, untilElement) {\n if (!isElement(element)) {\n throw new Error('DOMUtils - elementParents: invalid element argument');\n }\n const parentElements = [];\n while (element.parentElement) {\n parentElements.push(element.parentElement);\n if (element.parentElement === untilElement || element.parentElement === _ownerDocument(element).body) {\n break;\n }\n // pierce shadow DOM\n if (element.parentElement && element.parentElement.parentNode && element.parentElement.parentNode.nodeType === 11) {\n element = element.parentElement.parentNode.host;\n }\n else {\n element = element.parentElement;\n }\n }\n return parentElements;\n}\n/**\n * Gets the non-statically positioned parent of an element.\n * @param element The element to get the offset parent of.\n * @returns {Element}\n */\nexport function offsetParent(element) {\n if (!isElement(element)) {\n throw new Error('DOMUtils - offsetParent: invalid element argument');\n }\n let offsetParentElem = element.offsetParent;\n while (offsetParentElem && isPositionStatic(offsetParentElem)) {\n offsetParentElem = offsetParentElem.offsetParent;\n }\n return offsetParentElem || _ownerDocument(element).documentElement;\n}\n/**\n * Gets the browser scrollbar width.\n * @returns {number}\n */\nexport function scrollbarWidth() {\n if (SCROLLBAR_WIDTH === undefined) {\n const elem = document.createElement('div');\n elem.style.position = 'absolute';\n elem.style.top = '-100px';\n elem.style.left = '-100px';\n elem.style.width = '50px';\n elem.style.height = '50px';\n elem.style.overflow = 'scroll';\n document.body.appendChild(elem);\n const width = elem.offsetWidth - elem.clientWidth;\n removeElement(elem);\n SCROLLBAR_WIDTH = isFinite(width) ? width : 0;\n }\n return SCROLLBAR_WIDTH;\n}\n/**\n * Checks if an element is scrollable.\n * @param {Element} element The element to test for scrollability\n * @returns {boolean}\n */\nexport function isScrollable(element) {\n const elemStyle = window.getComputedStyle(element);\n return REGULAR_EXPRESSIONS.overflow.test('' + elemStyle.overflow + elemStyle.overflowY + elemStyle.overflowX);\n}\n/**\n * Gets the scroll parent of an element.\n * @param {Element} element The element to get the scroll parent of.\n * @param {boolean} [includeSelf=false] Should the element be checked for scrollability.\n * @returns {Element}\n */\nexport function scrollParent(element, includeSelf = false) {\n if (!isElement(element)) {\n throw new Error('DOMUtils - scrollParent: invalid element argument');\n }\n const docElem = _ownerDocument(element).documentElement;\n const elemStyle = window.getComputedStyle(element);\n if (includeSelf && REGULAR_EXPRESSIONS.overflow.test('' + elemStyle.overflow + elemStyle.overflowY + elemStyle.overflowX)) {\n return element;\n }\n let excludeStatic = elemStyle.position === 'absolute';\n let scrollParentElem = element.parentElement || docElem;\n if (scrollParentElem === docElem || elemStyle.position === 'fixed') {\n return scrollParentElem;\n }\n while (scrollParentElem && scrollParentElem !== docElem) {\n const scrollParentStyle = window.getComputedStyle(scrollParentElem);\n if (excludeStatic && scrollParentStyle.position !== 'static') {\n excludeStatic = false;\n }\n if (!excludeStatic && REGULAR_EXPRESSIONS.overflow.test('' + scrollParentStyle.overflow + scrollParentStyle.overflowY + scrollParentStyle.overflowX)) {\n break;\n }\n scrollParentElem = scrollParentElem.scrollParent;\n }\n return scrollParentElem || docElem;\n}\n/**\n * Checks if the elements scroll parent scrollbars are visible.\n * @param {Element} element The element to check the scroll parent of.\n * @returns {IScrollbarVisibility}\n */\nexport function isScrollbarVisible(element) {\n if (!isElement(element)) {\n throw new Error('DOMUtils - isDocumentScrolled: invalid element argument');\n }\n const scrollParentElem = scrollParent(element);\n return {\n x: scrollParentElem.scrollWidth > scrollParentElem.clientWidth,\n y: scrollParentElem.scrollHeight > scrollParentElem.clientHeight\n };\n}\n/**\n * Gets the offset from the element to the parent element edges.\n * If no parentElement is supplied, the documentElement will be used.\n * @param {Element} element The element to compute the offset for.\n * @param {Element=} parentElement Optional parent element to measure from.\n * @returns {DOMRect}\n */\nexport function offset(element, parentElement) {\n if (!isElement(element)) {\n throw new Error('DOMUtils - offset: invalid element argument');\n }\n const elemBCR = element.getBoundingClientRect();\n const win = _ownerDocument(element).defaultView;\n const docElem = parentElement || win.document.documentElement;\n const offsetValues = { width: elemBCR.width, height: elemBCR.width, top: 0, left: 0, bottom: 0, right: 0 };\n if (!parentElement || docElem === win.document.documentElement || docElem === win.document.body) {\n offsetValues.top = win.scrollY + elemBCR.top;\n offsetValues.bottom = docElem.clientHeight - win.scrollY - elemBCR.bottom;\n offsetValues.left = win.scrollX + elemBCR.left;\n offsetValues.right = docElem.clientWidth - win.scrollX - elemBCR.right;\n }\n else {\n if (!isElement(parentElement)) {\n throw new Error('DOMUtils - offset: invalid parentElement argument');\n }\n const parentBCR = parentElement.getBoundingClientRect();\n offsetValues.top = elemBCR.top - parentBCR.top;\n offsetValues.bottom = parentBCR.bottom - elemBCR.bottom;\n offsetValues.left = elemBCR.left - parentBCR.left;\n offsetValues.right = parentBCR.right - elemBCR.right;\n }\n return {\n width: Math.round(elemBCR.width),\n height: Math.round(elemBCR.height),\n top: Math.round(offsetValues.top),\n bottom: Math.round(offsetValues.bottom),\n left: Math.round(offsetValues.left),\n right: Math.round(offsetValues.right)\n };\n}\n/**\n * Gets the offset from the element to the parent element viewable edges.\n * If no parentElement is supplied, the documentElement will be used.\n * @param {Element} element The element to measure\n * @param {Element=} parentElement The parent element to measure to.\n * @returns {DOMRect}\n */\nexport function viewportOffset(element, parentElement) {\n if (!isElement(element)) {\n throw new Error('DOMUtils - offset: invalid element argument');\n }\n const win = _ownerDocument(element).defaultView;\n parentElement = parentElement || win.document.documentElement;\n const parentElementOffset = offset(element, parentElement);\n const offsetValues = {\n top: parentElementOffset.top,\n bottom: 0,\n left: parentElementOffset.left,\n right: 0\n };\n if (parentElement === win.document.documentElement) {\n offsetValues.top -= win.scrollY;\n offsetValues.left -= win.scrollX;\n }\n else {\n const parentStyle = window.getComputedStyle(parentElement);\n offsetValues.top -= parseStyle('' + parentStyle.borderTopWidth);\n offsetValues.left -= parseStyle('' + parentStyle.borderLeftWidth);\n }\n offsetValues.bottom = parentElement.clientHeight - offsetValues.top - element.offsetHeight;\n offsetValues.right = parentElement.clientWidth - offsetValues.left - element.offsetWidth;\n return {\n width: parentElementOffset.width,\n height: parentElementOffset.height,\n top: Math.round(offsetValues.top),\n bottom: Math.round(offsetValues.bottom),\n left: Math.round(offsetValues.left),\n right: Math.round(offsetValues.right)\n };\n}\n/**\n * Checks if any part of an element is visible in the viewport.\n * @param {Element} element The element to check.\n * @returns {boolean}\n */\nexport function isElementInViewport(element) {\n if (!isElement(element)) {\n throw new Error('DOMUtils - isElementInViewport: invalid element argument');\n }\n const document = _ownerDocument(element);\n const scrollParentElem = scrollParent(element);\n const elemBCR = element.getBoundingClientRect();\n if (scrollParentElem !== document.documentElement && scrollParentElem !== document.body) {\n const scrollParentOffset = offset(element, scrollParentElem);\n if (scrollParentOffset.top + elemBCR.height < 0 ||\n scrollParentOffset.left + elemBCR.width < 0 ||\n scrollParentOffset.bottom + elemBCR.height - this.scrollbarWidth < 0 ||\n scrollParentOffset.right + elemBCR.width - this.scrollbarWidth < 0) {\n return false;\n }\n }\n if (elemBCR.top + elemBCR.height < 0 ||\n elemBCR.left + elemBCR.width < 0 ||\n elemBCR.bottom + elemBCR.height > document.documentElement.clientHeight ||\n elemBCR.right + elemBCR.width > document.documentElement.clientWidth) {\n return false;\n }\n return true;\n}\n/**\n * Adds an event listener to the document that will call the provided callback function\n * when an element and it's children no longer have focus. The blur and touchstart events are used\n * to evaluate the active element to determine if the callback should be called.\n *\n * @param {Element} element The element to add the event listener to.\n * @param {Function} callback The function to call when the element and children don't have focus.\n * @param {boolean} [delay=false] Should a RAF cycle occur before the callback is called.\n * @returns {Function} The function to call to remove the document events.\n */\nexport function notChildEventListener(element, callback, delay) {\n const evtHandler = (event) => {\n const handle = () => {\n event.stopPropagation();\n if (event.cancelable) {\n event.preventDefault();\n }\n const activeElement = (event.type === 'touchstart' ? event.target : _ownerDocument(element).activeElement);\n if (!element.contains(activeElement)) {\n callback(activeElement);\n }\n };\n if (delay) {\n window.requestAnimationFrame(() => handle());\n }\n else {\n handle();\n }\n };\n const docElem = _ownerDocument(element);\n docElem.addEventListener('blur', evtHandler, true);\n docElem.addEventListener('touchstart', evtHandler, true);\n return () => {\n docElem.removeEventListener('blur', evtHandler, true);\n docElem.removeEventListener('touchstart', evtHandler, true);\n };\n}\n/**\n * Removes all children from a DOM node.\n * @param node The DOM node to remove children from.\n */\nexport function removeAllChildren(node) {\n while (node.lastChild) {\n node.removeChild(node.lastChild);\n }\n}\n/**\n * Replaces one child node of the specified node with another.\n * @param newChild The new node to replace `oldChild`.\n * @param oldChild The existing node to be replaced.\n * @returns {Node} The replaced node. Same node as `oldChild`.\n */\nexport function replaceElement(newChild, oldChild) {\n return oldChild.parentNode.replaceChild(newChild, oldChild);\n}\n/**\n * Adds a class or array of classes to an element.\n *\n * @param {string | string[]} name The class(es) to add to the element\n * @param {Element} element The element to add class(es) to.\n */\nexport function addClass(name, element) {\n if (isArray(name)) {\n name.forEach(n => element.classList.add(n));\n }\n else {\n element.classList.add(name);\n }\n}\n/**\n * Removes a class or array of classes to an element.\n *\n * @param {string | string[]} name The class(es) to remove from the element\n * @param {Element} element The element to remove class(es) from.\n */\nexport function removeClass(name, element) {\n if (isArray(name)) {\n name.forEach(n => element.classList.remove(n));\n }\n else {\n element.classList.remove(name);\n }\n}\n/** Determines which type of animation event is supported. */\nexport function getAnimationEvent() {\n const el = document.createElement('fakeelement');\n // tslint:disable:object-literal-key-quotes\n const animations = {\n 'animation': 'animationend',\n 'OAnimation': 'oAnimationEnd',\n 'MozAnimation': 'animationend',\n 'WebkitAnimation': 'webkitAnimationEnd'\n };\n for (const t in animations) {\n if (el.style[t] !== undefined) {\n return animations[t];\n }\n }\n}\n/**\n * A helper method to trigger a keyframe animation via adding a class, and removing the class when the animation completes.\n * @param {HTMLElement} element The element to play the animation on.\n * @param {string} className The class to add that triggers the animation.\n */\nexport async function playKeyframeAnimation(element, className, remove = true) {\n element.classList.add(className);\n return new Promise(resolve => {\n const animationEvent = getAnimationEvent();\n const animationCompletedListener = () => {\n if (remove) {\n element.classList.remove(className);\n }\n element.removeEventListener(animationEvent, animationCompletedListener);\n resolve();\n };\n element.addEventListener(animationEvent, animationCompletedListener);\n });\n}\n/**\n * Removes an element from the DOM using the available remove method for that platform.\n * @param {HTMLElement} element The element to remove.\n */\nexport function removeElement(element) {\n if (element.removeNode) {\n element.removeNode(true);\n }\n else if (element.remove) {\n element.remove();\n }\n else {\n element.parentNode.removeChild(element);\n }\n}\n/**\n * Returns a width string that is safe for css based on the provided input.\n * @param {string | number} width\n * @returns {string | undefined} A width safe for using in CSS.\n */\nexport function safeCssWidth(width) {\n if (typeof width === 'string') {\n if (width[width.length - 1] === '%') {\n return width;\n }\n else if (width.slice(-2) === 'px') {\n return width;\n }\n else if (Number(width) >= 0) {\n return `${width}px`;\n }\n }\n else if (typeof width === 'number') {\n if (width >= 0) {\n return `${width}px`;\n }\n }\n return undefined;\n}\n/**\n * Calculates the size of an element that is not attached to the DOM.\n * @param {HTMLElement} element The element to calc the size of.\n * @returns {width, height} The size of the element.\n */\nexport function calcSizeUnattached(element) {\n let container = document.createElement('div');\n container.style.position = 'absolute';\n container.style.top = '-99999px';\n container.style.left = '-99999px';\n container.style.visibility = 'hidden';\n container.appendChild(element.cloneNode(true));\n document.body.appendChild(container);\n const size = {\n width: container.scrollWidth,\n height: container.scrollHeight\n };\n removeElement(container);\n container = undefined;\n return size;\n}\n/**\n * Resolves a promise when the provided element has children.\n * @param {Element} element An element that does or will contain children.\n */\nexport function ensureChildren(element) {\n if (element.children.length) {\n return Promise.resolve();\n }\n return new Promise(resolve => {\n const observer = new MutationObserver(changes => {\n if (element.children.length) {\n observer.disconnect();\n resolve();\n }\n });\n observer.observe(element, { childList: true });\n });\n}\n/**\n * Resolves a promise when the provided element has a child that matches a given selector.\n * @param {Element} element An element that does or will contain children.\n * @param {string} selector A CSS selector to use for finding an element.\n */\nexport function ensureChild(element, selector) {\n const initialElements = deepQuerySelectorAll(element, selector);\n if (initialElements.length) {\n return Promise.resolve(initialElements[0]);\n }\n return new Promise(resolve => {\n const observer = new MutationObserver(changes => {\n const hasAddedNodes = changes.reduce((prev, curr) => prev + curr.addedNodes.length, 0) > 0;\n if (hasAddedNodes) {\n const foundElements = deepQuerySelectorAll(element, selector);\n if (foundElements.length) {\n observer.disconnect();\n resolve(foundElements[0]);\n }\n }\n });\n observer.observe(element, { childList: true, subtree: true });\n });\n}\n/**\n * Resolves a promise when the provided host element has an `<input>` element child\n * @param {HTMLElement} host An element that does or will contain children.\n */\nexport function ensureInputElement(host) {\n return new Promise(resolve => {\n const element = host.querySelector('input');\n if (element) {\n resolve(element);\n }\n const observer = new MutationObserver(changes => {\n const hasAddedNodes = changes.reduce((prev, curr) => prev + curr.addedNodes.length, 0) > 0;\n if (hasAddedNodes) {\n const foundElement = host.querySelector('input');\n if (foundElement) {\n observer.disconnect();\n resolve(foundElement);\n }\n }\n });\n observer.observe(host, { childList: true, subtree: true });\n });\n}\n/**\n * Walks up the tree starting a specific node and stops when the provided matcher function returns true.\n * @param {Node} node The node to start searching from.\n * @returns {Node | null} The closest matching ancestor node, or null if not found.\n */\nexport function walkUpUntil(node, matcher) {\n let parent = node && node.parentNode;\n while (parent) {\n if (matcher(parent)) {\n return parent;\n }\n parent = parent.parentNode;\n }\n return null;\n}\n/**\n * Calculates the width of a string given the provided font information.\n */\nexport function calculateFontWidth(value, info) {\n const canvas = document.createElement('canvas');\n const ctx = canvas.getContext('2d');\n const fontSize = info ? info.fontSize : 16;\n const fontFamily = info ? info.fontFamily : 'Roboto';\n ctx.font = `${fontSize}px ${fontFamily}`;\n return ctx.measureText(value).width;\n}\n/**\n * Generates a CSS text-shadow style value based on the number of iterations and color provided.\n * @param {number} iterations The number of iterations for how long the shadow should be.\n * @param {string} color The color of the text shadow. Can be any CSS-safe color format. Ex. hex, rgb, rgba, hsl... etc.\n */\nexport function generateTextShadow(iterations, color) {\n const shadows = [];\n for (let i = 1; i <= iterations; i++) {\n shadows.push(`${i}px ${i}px ${color}`);\n }\n return shadows.join(', ');\n}\n/**\n * Checks if an element matches any of the provided selectors.\n * @param {Element} el The element to match.\n * @param {string[]} selectors The selectors to check the element against.\n */\nexport function matchesSelectors(el, selectors) {\n if (el.nodeType !== Node.ELEMENT_NODE) {\n return false;\n }\n if (typeof selectors === 'string') {\n selectors = selectors.replace(/\\s+/, '').split(',');\n }\n const matchesFn = Element.prototype.matches;\n return selectors.some(selector => matchesFn.call(el, selector));\n}\n/**\n * Walks the DOM tree starting at a root element and checks if any of its children\n * match the provided selectors. Similar to the native `querySelectorAll` except\n * that it will traverse the shadow DOM as well as slotted nodes.\n * @param {Element} rootElement The element to start querying from.\n * @param {string[]} selectors An array of CSS selectors.\n * @param {boolean} [checkRootElement] True if the provided root element is to be matched against the selectors.\n */\nexport function deepQuerySelectorAll(rootElement, selectors, checkRootElement = false) {\n let nodes = [];\n if (!rootElement) {\n return nodes;\n }\n if (typeof selectors === 'string') {\n selectors = selectors.replace(/\\s+/, '').split(',');\n }\n if (checkRootElement && matchesSelectors(rootElement, selectors) && nodes.indexOf(rootElement) === -1) {\n nodes.push(rootElement);\n }\n if (rootElement.tagName === 'SLOT') {\n const slotNodes = rootElement.assignedNodes();\n slotNodes.forEach(slottedNode => nodes = nodes.concat(deepQuerySelectorAll(slottedNode, selectors, true)));\n }\n else {\n let node = rootElement.shadowRoot ? rootElement.shadowRoot.firstElementChild : rootElement.firstElementChild;\n while (node) {\n nodes = nodes.concat(deepQuerySelectorAll(node, selectors, true));\n node = node.nextElementSibling;\n }\n }\n return nodes;\n}\n/**\n * Gets the currently focused element within the document by also traversing shadow roots.\n * @param {Document} doc The document to get the active element from. Defaults to the current document.\n * @returns {Element}\n */\nexport function getActiveElement(doc = document) {\n const activeElement = doc.activeElement;\n if (!activeElement || activeElement === doc.body) {\n return activeElement;\n }\n return getActiveShadowElement(activeElement);\n}\n/**\n * Gets the active element within the provided elements shadow root. If the element\n * does not have a shadow root, the provided element is returned.\n * @param {Element} element The active element.\n */\nexport function getActiveShadowElement(element) {\n if (element.shadowRoot && element.shadowRoot.activeElement) {\n element = getActiveShadowElement(element.shadowRoot.activeElement);\n }\n return element;\n}\n/** Toggles a CSS class (or classes) on an element based on a boolean. */\nexport function toggleClass(el, hasClass, className) {\n if (hasClass) {\n addClass(className, el);\n }\n else {\n removeClass(className, el);\n }\n}\n/** Toggles a value-less attribute on an element. */\nexport function toggleAttribute(el, hasAttribute, name, value = '') {\n if (hasAttribute) {\n el.setAttribute(name, value);\n }\n else {\n el.removeAttribute(name);\n }\n}\n/** Toggles part of an attribute on an element. */\nexport function toggleOnAttribute(el, attribute, value, force) {\n const oldValue = el.getAttribute(attribute);\n if ((force === undefined || force === true) && (!oldValue || !oldValue.includes(value))) {\n appendToAttribute(el, attribute, value);\n }\n else if (!force) {\n removeFromAttribute(el, attribute, value);\n }\n}\n/** Appends a value to an attribute on an element, first setting it if it doesn't exist. */\nexport function appendToAttribute(el, attribute, value) {\n const oldValue = el.getAttribute(attribute);\n if (!oldValue || !oldValue.length) {\n el.setAttribute(attribute, value);\n }\n else {\n el.setAttribute(attribute, `${oldValue} ${value}`);\n }\n}\n/** Removes a value from an attribute on an element, removing the attribute if empty. */\nexport function removeFromAttribute(el, attribute, value) {\n if (!el.hasAttribute(attribute)) {\n return;\n }\n const oldValue = el.getAttribute(attribute);\n if (oldValue) {\n let newValue = oldValue === null || oldValue === void 0 ? void 0 : oldValue.replace(value, '');\n newValue = newValue.replace(/\\s+/g, ' ').trim();\n if (newValue.length) {\n el.setAttribute(attribute, newValue);\n }\n else {\n el.removeAttribute(attribute);\n }\n }\n}\n/**\n * Attempts to scroll a target element into view within a scrollable parent element, unless already visible within the container.\n * @param scrollElement The scrollable parent element.\n * @param targetElement The element to scroll into view.\n * @param behavior The scroll behavior. Defaults to 'auto'.\n * @param block The block position to anchor the target element to within the scroll element.\n */\nexport function tryScrollIntoView(scrollElement, targetElement, behavior = 'auto', block = 'nearest') {\n if (!scrollElement) {\n return;\n }\n const canScroll = scrollElement.scrollHeight > scrollElement.clientHeight || scrollElement.scrollWidth > scrollElement.clientWidth;\n if (canScroll) {\n const offsetRect = offset(targetElement, scrollElement);\n const isClippedTop = offsetRect.top <= targetElement.clientHeight;\n const isClippedBottom = offsetRect.bottom <= targetElement.clientHeight;\n if (isClippedTop || isClippedBottom) {\n const top = calcBlockScroll(block, isClippedTop, targetElement.offsetTop, targetElement.clientHeight, scrollElement.offsetTop, scrollElement.offsetHeight);\n scrollElement.scrollTo({ top, behavior });\n return;\n }\n const isClippedLeft = offsetRect.left <= targetElement.clientWidth;\n const isClippedRight = offsetRect.right <= targetElement.clientWidth;\n if (isClippedLeft || isClippedRight) {\n const left = calcBlockScroll(block, isClippedLeft, targetElement.offsetLeft, targetElement.clientWidth, scrollElement.offsetLeft, scrollElement.offsetWidth);\n scrollElement.scrollTo({ left, behavior });\n }\n }\n}\n/** Calculates the block anchor position for a target element within a scrollable parent element. */\nexport function calcBlockScroll(block, isClippedStart, targetOffset, targetSize, scrollOffset, scrollSize) {\n if (block === 'nearest') {\n if (isClippedStart) {\n return (targetOffset - scrollOffset) - targetSize;\n }\n return (targetOffset - scrollSize) + targetSize * 2;\n }\n return targetOffset - scrollOffset - scrollSize / 2 + targetSize / 2;\n}\n/**\n * Creates an element from an HTML string.\n */\nexport function elementFromHTML(html) {\n const template = document.createElement('template');\n html = html.trim();\n template.innerHTML = html;\n return template.content.firstElementChild;\n}\n/**\n * Observes changes to the provided attributes on a target element and executes a provided callback when changed.\n * @param element The element to observe.\n * @param listener The callback to execute when an attribute changes on the element.\n * @param attributeFilter The attributes to observe.\n * @returns A `MutationObserver` instasnce.\n */\nexport function createElementAttributeObserver(element, listener, attributeFilter) {\n const observer = new MutationObserver(mutations => {\n for (const mutation of mutations) {\n if (mutation.attributeName) {\n listener(mutation.attributeName, element.getAttribute(mutation.attributeName));\n }\n }\n });\n observer.observe(element, { attributes: true, attribut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AAOU,EAAgBC,EAAcC,EAAYC,EAAcC,EAAY,CACvG,OAAId,IAAU,UACNU,EACQC,EAAeE,EAAgBD,EAEnCD,EAAeG,EAAcF,EAAa,EAE/CD,EAAeE,EAAeC,EAAa,EAAIF,EAAa,CACvE,CAIO,SAASG,EAAgBC,EAAM,CAClC,IAAMC,EAAW,SAAS,cAAc,UAAU,EAClD,OAAAD,EAAOA,EAAK,KAAK,EACjBC,EAAS,UAAYD,EACdC,EAAS,QAAQ,iBAC5B,CAQO,SAASC,EAA+BvC,EAASwC,EAAUC,EAAiB,CAC/E,IAAMC,EAAW,IAAI,iBAAiBC,GAAa,CAC/C,QAAWC,KAAYD,EACfC,EAAS,eACTJ,EAASI,EAAS,cAAe5C,EAAQ,aAAa4C,EAAS,aAAa,CAAC,CAGzF,CAAC,EACD,OAAAF,EAAS,QAAQ1C,EAAS,CAAE,WAAY,GAAM,gBAAAyC,CAAgB,CAAC,EACxDC,CACX",
6
- "names": ["_ownerDocument", "element", "isElement", "element", "elementParents", "element", "untilElement", "isElement", "parentElements", "_ownerDocument", "offset", "element", "parentElement", "isElement", "elemBCR", "win", "_ownerDocument", "docElem", "offsetValues", "parentBCR", "notChildEventListener", "element", "callback", "delay", "evtHandler", "event", "handle", "activeElement", "_ownerDocument", "docElem", "removeAllChildren", "node", "replaceElement", "newChild", "oldChild", "addClass", "name", "isArray", "n", "removeClass", "getAnimationEvent", "el", "animations", "t", "playKeyframeAnimation", "className", "remove", "resolve", "animationEvent", "animationCompletedListener", "removeElement", "safeCssWidth", "width", "calcSizeUnattached", "container", "size", "ensureChildren", "observer", "changes", "ensureChild", "selector", "initialElements", "deepQuerySelectorAll", "prev", "curr", "foundElements", "ensureInputElement", "host", "foundElement", "walkUpUntil", "matcher", "parent", "calculateFontWidth", "value", "info", "ctx", "fontSize", "fontFamily", "matchesSelectors", "el", "selectors", "matchesFn", "selector", "deepQuerySelectorAll", "rootElement", "checkRootElement", "nodes", "slottedNode", "node", "getActiveElement", "doc", "activeElement", "getActiveShadowElement", "element", "toggleClass", "hasClass", "className", "addClass", "removeClass", "toggleAttribute", "hasAttribute", "name", "value", "toggleOnAttribute", "attribute", "force", "oldValue", "appendToAttribute", "removeFromAttribute", "newValue", "tryScrollIntoView", "scrollElement", "targetElement", "behavior", "block", "offsetRect", "offset", "isClippedTop", "isClippedBottom", "top", "calcBlockScroll", "isClippedLeft", "isClippedRight", "left", "isClippedStart", "targetOffset", "targetSize", "scrollOffset", "scrollSize", "elementFromHTML", "html", "template", "createElementAttributeObserver", "listener", "attributeFilter", "observer", "mutations", "mutation"]
5
+ "mappings": "wCAwBA,SAASA,EAAeC,EAAS,CAC7B,OAAOA,EAAQ,eAAiB,QACpC,CAoBO,SAASC,EAAUC,EAAS,CAC/B,OAAOA,GAAWA,EAAQ,WAAa,CAC3C,CAyCO,SAASC,EAAeC,EAASC,EAAc,CAClD,GAAI,CAACC,EAAUF,CAAO,EAClB,MAAM,IAAI,MAAM,qDAAqD,EAEzE,IAAMG,EAAiB,CAAC,EACxB,KAAOH,EAAQ,gBACXG,EAAe,KAAKH,EAAQ,aAAa,EACrC,EAAAA,EAAQ,gBAAkBC,GAAgBD,EAAQ,gBAAkBI,EAAeJ,CAAO,EAAE,QAI5FA,EAAQ,eAAiBA,EAAQ,cAAc,YAAcA,EAAQ,cAAc,WAAW,WAAa,GAC3GA,EAAUA,EAAQ,cAAc,WAAW,KAG3CA,EAAUA,EAAQ,cAG1B,OAAOG,CACX,CAmGO,SAASE,EAAOC,EAASC,EAAe,CAC3C,GAAI,CAACC,EAAUF,CAAO,EAClB,MAAM,IAAI,MAAM,6CAA6C,EAEjE,IAAMG,EAAUH,EAAQ,sBAAsB,EACxCI,EAAMC,EAAeL,CAAO,EAAE,YAC9BM,EAAUL,GAAiBG,EAAI,SAAS,gBACxCG,EAAe,CAAE,MAAOJ,EAAQ,MAAO,OAAQA,EAAQ,MAAO,IAAK,EAAG,KAAM,EAAG,OAAQ,EAAG,MAAO,CAAE,EACzG,GA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AAQ,iBAC5B",
6
+ "names": ["_ownerDocument", "element", "isElement", "element", "elementParents", "element", "untilElement", "isElement", "parentElements", "_ownerDocument", "offset", "element", "parentElement", "isElement", "elemBCR", "win", "_ownerDocument", "docElem", "offsetValues", "parentBCR", "notChildEventListener", "element", "callback", "delay", "evtHandler", "event", "handle", "activeElement", "_ownerDocument", "docElem", "removeAllChildren", "node", "replaceElement", "newChild", "oldChild", "addClass", "name", "isArray", "n", "removeClass", "getAnimationEvent", "el", "animations", "t", "playKeyframeAnimation", "className", "remove", "resolve", "animationEvent", "animationCompletedListener", "removeElement", "safeCssWidth", "width", "ensureChildren", "element", "resolve", "observer", "changes", "ensureChild", "selector", "initialElements", "deepQuerySelectorAll", "prev", "curr", "foundElements", "ensureInputElement", "host", "foundElement", "walkUpUntil", "node", "matcher", "parent", "matchesSelectors", "el", "selectors", "matchesFn", "selector", "deepQuerySelectorAll", "rootElement", "checkRootElement", "nodes", "slottedNode", "node", "getActiveElement", "doc", "activeElement", "getActiveShadowElement", "element", "toggleClass", "hasClass", "className", "addClass", "removeClass", "toggleAttribute", "hasAttribute", "name", "value", "toggleOnAttribute", "attribute", "force", "oldValue", "appendToAttribute", "removeFromAttribute", "newValue", "tryScrollIntoView", "scrollElement", "targetElement", "behavior", "block", "offsetRect", "offset", "isClippedTop", "isClippedBottom", "top", "calcBlockScroll", "isClippedLeft", "isClippedRight", "left", "isClippedStart", "targetOffset", "targetSize", "scrollOffset", "scrollSize", "elementFromHTML", "html", "template"]
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 H}from"./chunk.BEFAXPXJ.js";import{a as F}from"./chunk.MFQRXVKO.js";import{a as P}from"./chunk.INQZNXG6.js";import{d as D}from"./chunk.FLF5RTYO.js";import{p as N}from"./chunk.ASLHRT3N.js";import{a as T,b as V}from"./chunk.BQ52JYLA.js";import{a as z}from"./chunk.SQ3AZAHF.js";import{a as s}from"./chunk.NVUMRW44.js";import{a as x}from"./chunk.OLFOVKQG.js";import{a as k,b as I,g as L,h as S,i as d,j as O,k as p,l as A,m as C,n as c}from"./chunk.VRSPT7WX.js";import{a as m,e as y,f as h,k as E}from"./chunk.LNTTU2GL.js";import{q as _}from"./chunk.L4QSPQDE.js";import{b as g,c as v,k as l}from"./chunk.J2M2MXP2.js";import{a as u,d as n}from"./chunk.M3QDAYD2.js";var q=`${I}switch`,R={ON:"on",SELECTED:"selected",DEFAULT_ON:"default-on",VALUE:"value",DENSE:"dense",DISABLED:"disabled",REQUIRED:"required",READONLY:"readonly",ICON:"icon",LABEL_POSITION:"label-position",TABINDEX:"tabindex"},W=u({},R),M={HIDDEN:"hidden"},U={ROOT:".forge-switch",LABEL:"#label",ICON_ON:"#icon-on",ICON_OFF:"#icon-off",STATE_LAYER:"forge-state-layer"},j={CHANGE:`${q}-change`},K={ON:"on",OFF:"off"},i={attributes:W,observedAttributes:R,classes:M,selectors:U,elementName:q,events:j,state:K};var b=class extends x{constructor(e){super(e);this._rootElement=h(e,i.selectors.ROOT),this._labelElement=h(e,i.selectors.LABEL),this._iconOnElement=h(e,i.selectors.ICON_ON),this._iconOffElement=h(e,i.selectors.ICON_OFF),this._stateLayerElement=h(e,i.selectors.STATE_LAYER)}setOn(e){this._component[d](),this._component[c]({ariaChecked:e?"true":"false"})}setDisabled(e){this._component[C]=!e,this._component[c]({ariaDisabled:e?"true":"false"}),this._stateLayerElement.disabled=e}setRequired(e){this._component[d](),this._component[c]({ariaRequired:e?"true":"false"})}setReadonly(e){this._component[c]({ariaReadOnly:e?"true":"false"}),this._stateLayerElement.disabled=e}setIconVisibility(e){let a=e==="none"||e==="off",o=e==="none"||e==="on";_(this._iconOnElement,a,i.classes.HIDDEN),_(this._iconOffElement,o,i.classes.HIDDEN)}setLabelPosition(e){this._labelElement.remove(),e==="start"?this._rootElement.prepend(this._labelElement):this._rootElement.append(this._labelElement)}syncValue(e){let a=e?new FormData:null,o=e?i.state.ON:i.state.OFF;a&&e&&a.append(this._component.name,e),this._component.setFormValue(a,o)}};var f=class{constructor(t){this._adapter=t;this._on=!1;this._defaultOn=!1;this._value="on";this._dense=!1;this._disabled=!1;this._required=!1;this._readonly=!1;this._icon="on";this._labelPosition="end";this._clickListener=()=>this._handleChange();this._keydownListener=t=>this._handleKeydown(t);this._keyupListener=t=>this._handleKeyup(t)}get _submittedValue(){return this._on?this._value:null}initialize(){this._adapter.addHostListener("click",this._clickListener),this._adapter.addHostListener("keydown",this._keydownListener),this._adapter.addHostListener("keyup",this._keyupListener),this._adapter.setIconVisibility(this._icon),this._adapter.syncValue(this._submittedValue)}_handleKeydown(t){t.key===" "&&t.preventDefault()}_handleKeyup(t){t.key===" "&&this._handleChange()}_handleChange(){if(this._readonly)return;let t=this._on,e=!this._on;this.on=e;let a=new Event("change",{cancelable:!0}),o=new CustomEvent(i.events.CHANGE,{detail:e,bubbles:!0,cancelable:!0});if(this._adapter.dispatchHostEvent(a),this._adapter.dispatchHostEvent(o),a.defaultPrevented||o.defaultPrevented){this.on=t;return}}_setOnAttribute(){this._adapter.toggleHostAttribute(i.attributes.ON,this._on),this._adapter.toggleHostAttribute(i.attributes.SELECTED,this._on)}get on(){return this._on}set on(t){this._on!==t&&(this._on=t,this._adapter.setOn(this._on),this._adapter.syncValue(this._submittedValue),this._setOnAttribute())}get defaultOn(){return this._defaultOn}set defaultOn(t){this._defaultOn!==t&&(this._defaultOn=t,this._adapter.toggleHostAttribute(i.attributes.DEFAULT_ON,this._defaultOn))}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._adapter.syncValue(this._submittedValue),this._adapter.toggleHostAttribute(i.attributes.VALUE,!0,this._value))}get dense(){return this._dense}set dense(t){this._dense!==t&&(this._dense=t,this._adapter.toggleHostAttribute(i.attributes.DENSE,this._dense))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(i.attributes.DISABLED,this._disabled))}get required(){return this._required}set required(t){this._required!==t&&(this._required=t,this._adapter.setRequired(this._required),this._adapter.toggleHostAttribute(i.attributes.REQUIRED,this._required))}get readonly(){return this._readonly}set readonly(t){this._readonly!==t&&(this._readonly=t,this._adapter.setReadonly(this._readonly),this._adapter.toggleHostAttribute(i.attributes.READONLY,this._readonly))}get icon(){return this._icon}set icon(t){this._icon!==t&&(this._icon=t,this._adapter.setIconVisibility(this._icon),this._adapter.setHostAttribute(i.attributes.ICON,this._icon))}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition!==t&&(this._labelPosition=t,this._adapter.setLabelPosition(this._labelPosition),this._adapter.setHostAttribute(i.attributes.LABEL_POSITION,this._labelPosition))}};var Y='<template><div class="forge-switch" part="switch"><div id="container" class="container"><div class="track" part="track"></div><div class="handle" part="handle"><div id="icon-off" class="icon icon__off" part="icon-off"><slot name="icon-off"><svg aria-hidden="true" viewBox="0 0 24 24"><path d="M20 13H4v-2h16v2z"/></svg></slot></div><div id="icon-on" class="icon icon__on" part="icon-on"><slot name="icon-on"><svg aria-hidden="true" viewBox="0 0 24 24"><path d="M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"/></svg></slot></div><forge-state-layer target=":host" exportparts="surface:state-layer"></forge-state-layer></div><forge-focus-indicator target=":host" part="focus-indicator"></forge-focus-indicator></div><label id="label" class="label" part="label"><slot></slot></label></div></template>',G=':host{display:inline-block;outline:0;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}.forge-switch{--_switch-handle-size:var(--forge-switch-handle-size, 20px);--_switch-handle-scale:var(--forge-switch-handle-scale, 1);--_switch-handle-elevation:var(--forge-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12));--_switch-track-border-width:var(--forge-switch-track-border-width, 0);--_switch-track-border-color:var(--forge-switch-track-border-color, transparent);--_switch-icon-color:var(--forge-switch-icon-color, var(--forge-theme-on-tertiary, #ffffff));--_switch-icon-size:var(--forge-switch-icon-size, 16px);--_switch-icon-scale:var(--forge-switch-icon-scale, 1);--_switch-state-layer-size:var(--forge-switch-state-layer-size, 40px);--_switch-state-layer-dense-size:var(--forge-switch-state-layer-dense-size, 28px);--_switch-handle-on-color:var(--forge-switch-handle-on-color, var(--forge-theme-tertiary, #3d5afe));--_switch-handle-off-color:var(--forge-switch-handle-off-color, var(--forge-theme-surface-container-high, #9e9e9e));--_switch-handle-width:var(--forge-switch-handle-width, var(--_switch-handle-size));--_switch-handle-height:var(--forge-switch-handle-height, var(--_switch-handle-size));--_switch-handle-on-scale:var(--forge-switch-handle-on-scale, var(--_switch-handle-scale));--_switch-handle-off-scale:var(--forge-switch-handle-off-scale, var(--_switch-handle-scale));--_switch-handle-shape:var(--forge-switch-handle-shape, var(--forge-shape-round, 50%));--_switch-handle-on-elevation:var(--forge-switch-handle-on-elevation, var(--_switch-handle-elevation));--_switch-handle-off-elevation:var(--forge-switch-handle-off-elevation, var(--_switch-handle-elevation));--_switch-track-on-color:var(--forge-switch-track-on-color, var(--forge-theme-tertiary-container, #d0d7ff));--_switch-track-off-color:var(--forge-switch-track-off-color, var(--forge-theme-surface-container, #e0e0e0));--_switch-track-width:var(--forge-switch-track-width, 36px);--_switch-track-height:var(--forge-switch-track-height, 14px);--_switch-track-shape:var(--forge-switch-track-shape, var(--forge-shape-full, 9999px));--_switch-track-on-border-width:var(--forge-switch-track-on-border-width, var(--_switch-track-border-width));--_switch-track-off-border-width:var(--forge-switch-track-off-border-width, var(--_switch-track-border-width));--_switch-track-on-border-color:var(--forge-switch-track-on-border-color, var(--_switch-track-border-color));--_switch-track-off-border-color:var(--forge-switch-track-off-border-color, var(--_switch-track-border-color));--_switch-icon-on-color:var(--forge-switch-icon-on-color, var(--_switch-icon-color));--_switch-icon-off-color:var(--forge-switch-icon-off-color, var(--_switch-icon-color));--_switch-icon-on-size:var(--forge-switch-icon-on-size, var(--_switch-icon-size));--_switch-icon-off-size:var(--forge-switch-icon-off-size, var(--_switch-icon-size));--_switch-icon-on-scale:var(--forge-switch-icon-on-scale, var(--_switch-icon-scale));--_switch-icon-off-scale:var(--forge-switch-icon-off-scale, var(--_switch-icon-scale));--_switch-gap:var(--forge-switch-gap, 0);--_switch-justify:var(--forge-switch-justify, space-between);--_switch-direction:var(--forge-switch-direction, initial);--_switch-state-layer-width:var(--forge-switch-state-layer-width, var(--_switch-state-layer-size));--_switch-state-layer-height:var(--forge-switch-state-layer-height, var(--_switch-state-layer-size));--_switch-state-layer-on-color:var(--forge-switch-state-layer-on-color, var(--_switch-handle-on-color));--_switch-state-layer-off-color:var(--forge-switch-state-layer-off-color, var(--_switch-color));--_switch-state-layer-dense-width:var(--forge-switch-state-layer-dense-width, var(--_switch-state-layer-dense-size));--_switch-state-layer-dense-height:var(--forge-switch-state-layer-dense-height, var(--_switch-state-layer-dense-size));--_switch-disabled-opacity:var(--forge-switch-disabled-opacity, 0.38);--_switch-handle-active-on-color:var(--forge-switch-handle-active-on-color, var(--_switch-handle-on-color));--_switch-handle-active-off-color:var(--forge-switch-handle-active-off-color, var(--_switch-handle-off-color));--_switch-handle-active-scale:var(--forge-switch-handle-active-scale, 1.2);--_switch-handle-active-on-scale:var(--forge-switch-handle-active-on-scale, var(--_switch-handle-active-scale));--_switch-handle-active-off-scale:var(--forge-switch-handle-active-off-scale, var(--_switch-handle-active-scale));--_switch-handle-active-elevation:var(--forge-switch-handle-active-elevation, var(--_switch-handle-elevation));--_switch-handle-active-on-elevation:var(--forge-switch-handle-active-on-elevation, var(--_switch-handle-active-elevation));--_switch-handle-active-off-elevation:var(--forge-switch-handle-active-off-elevation, var(--_switch-handle-active-elevation));--_switch-track-active-on-color:var(--forge-switch-track-active-on-color, var(--_switch-track-on-color));--_switch-track-active-off-color:var(--forge-switch-track-active-off-color, var(--_switch-track-off-color));--_switch-track-active-on-border-width:var(--forge-switch-track-active-on-border-width, var(--_switch-track-on-border-width));--_switch-track-active-off-border-width:var(--forge-switch-track-active-off-border-width, var(--_switch-track-off-border-width));--_switch-track-active-on-border-color:var(--forge-switch-track-active-on-border-color, var(--_switch-track-on-border-color));--_switch-track-active-off-border-color:var(--forge-switch-track-active-off-border-color, var(--_switch-track-off-border-color));--_switch-icon-active-on-color:var(--forge-switch-icon-active-on-color, var(--_switch-icon-on-color));--_switch-icon-active-off-color:var(--forge-switch-icon-active-off-color, var(--_switch-icon-off-color));--_switch-icon-active-on-scale:var(--forge-switch-icon-active-on-scale, var(--_switch-icon-on-scale));--_switch-icon-active-off-scale:var(--forge-switch-icon-active-off-scale, var(--_switch-icon-off-scale));--_switch-animation-duration:var(--forge-switch-animation-duration, var(--forge-animation-duration-short2, 100ms));--_switch-animation-timing:var(--forge-switch-animation-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_switch-active-animation-timing:var(--forge-switch-active-animation-timing, var(--forge-animation-easing-linear, cubic-bezier(0, 0, 1, 1)))}.forge-switch{display:-webkit-box;display:flex;position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:var(--_switch-direction);flex-shrink:0;-webkit-box-align:center;align-items:center;-webkit-box-pack:var(--_switch-justify);justify-content:var(--_switch-justify);gap:var(--_switch-gap);--_switch-current-state-layer-width:var(--_switch-state-layer-width);--_switch-current-state-layer-height:var(--_switch-state-layer-height)}.forge-switch .container{position:relative;-webkit-box-align:center;align-items:center;display:-webkit-box;display:flex;block-size:max(var(--_switch-handle-height),var(--_switch-track-height),var(--_switch-current-state-layer-height));cursor:pointer}.forge-switch .input{position:absolute;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;margin:0;inline-size:100%;block-size:100%;cursor:unset}.forge-switch .track{-webkit-transition-property:background-color,border-color,border-width;transition-property:background-color,border-color,border-width;-webkit-transition-duration:var(--_switch-animation-duration);transition-duration:var(--_switch-animation-duration);-webkit-transition-timing-function:var(--_switch-animation-timing);transition-timing-function:var(--_switch-animation-timing);-webkit-box-sizing:border-box;box-sizing:border-box;margin-inline:calc(max(var(--_switch-handle-width),var(--_switch-current-state-layer-width))/ 2 - calc(var(--_switch-track-height)/ 2));border-width:var(--_switch-track-off-border-width);border-color:var(--_switch-track-off-border-color);border-style:solid;border-radius:var(--_switch-track-shape);inline-size:var(--_switch-track-width);block-size:var(--_switch-track-height);background-color:var(--_switch-track-off-color)}.forge-switch .handle{position:absolute;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;display:-webkit-box;display:flex;-webkit-transition-property:translate;transition-property:translate;-webkit-transition-duration:var(--_switch-animation-duration);transition-duration:var(--_switch-animation-duration);-webkit-transition-timing-function:var(--_switch-animation-timing);transition-timing-function:var(--_switch-animation-timing);border-radius:var(--_switch-handle-shape);inline-size:var(--_switch-current-state-layer-width);block-size:var(--_switch-current-state-layer-height)}.forge-switch .handle::before{content:"";position:relative;display:block;scale:var(--_switch-handle-off-scale);-webkit-transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing),-webkit-box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing);transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing),-webkit-box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing);transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing);transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing),-webkit-box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing);-webkit-box-shadow:var(--_switch-handle-off-elevation);box-shadow:var(--_switch-handle-off-elevation);border-radius:var(--_switch-handle-shape);inline-size:var(--_switch-handle-width);block-size:var(--_switch-handle-height);background-color:var(--_switch-handle-off-color)}.forge-switch .icon{position:absolute;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;display:-webkit-box;display:flex;-webkit-transition-property:opacity,scale;transition-property:opacity,scale;-webkit-transition-duration:var(--_switch-animation-duration);transition-duration:var(--_switch-animation-duration);-webkit-transition-timing-function:var(--_switch-animation-timing);transition-timing-function:var(--_switch-animation-timing);inline-size:var(--_switch-icon-off-size);block-size:var(--_switch-icon-off-size);color:var(--_switch-icon-off-color);fill:var(--_switch-icon-off-color);font-size:var(--_switch-icon-off-size);--forge-icon-font-size:var(--_switch-icon-off-size)}.forge-switch .icon__on{--forge-icon-font-size:var(--_switch-icon-on-size);inline-size:var(--_switch-icon-on-size);block-size:var(--_switch-icon-on-size);color:var(--_switch-icon-on-color);fill:var(--_switch-icon-on-color);font-size:var(--_switch-icon-on-size);opacity:0;scale:0.4}.forge-switch .icon__off{opacity:1;scale:var(--_switch-icon-off-scale)}.forge-switch .label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-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)}.forge-switch .label:empty{display:none}.forge-switch .hidden{display:none}.forge-switch ::slotted([slot=input]){position:absolute;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;margin:0;inline-size:100%;block-size:100%;cursor:unset}:host([on]) .track{border-width:var(--_switch-track-on-border-width);border-color:var(--_switch-track-on-border-color);background-color:var(--_switch-track-on-color)}:host([on]) .handle{translate:calc(var(--_switch-track-width) - calc(var(--_switch-track-height)/ 2) * 2)}:host([on]) .handle::before{scale:var(--_switch-handle-on-scale);-webkit-box-shadow:var(--_switch-handle-on-elevation);box-shadow:var(--_switch-handle-on-elevation);background-color:var(--_switch-handle-on-color)}:host([on]) .handle .icon__on{opacity:1;scale:var(--_switch-icon-on-scale)}:host([on]) .handle .icon__off{opacity:0;scale:0.4}:host([on]) forge-state-layer{--forge-state-layer-color:var(--_switch-state-layer-on-color)}:host(:not([disabled]):not([readonly])) .forge-switch .container:active .track{border-width:var(--_switch-track-active-off-border-width);border-color:var(--_switch-track-active-off-border-color);background-color:var(--_switch-track-active-off-color)}:host(:not([disabled]):not([readonly])) .forge-switch .container:active .handle::before{scale:var(--_switch-handle-active-off-scale);-webkit-box-shadow:var(--_switch-handle-active-off-elevation);box-shadow:var(--_switch-handle-active-off-elevation);background-color:var(--_switch-handle-active-off-color)}:host(:not([disabled]):not([readonly])) .forge-switch .container:active .handle .icon{scale:var(--_switch-icon-active-off-scale);color:var(--_switch-icon-active-off-color);fill:var(--_switch-icon-active-off-color)}:host(:not([disabled]):not([readonly])[on]) .forge-switch .container:active .track{border-width:var(--_switch-track-active-on-border-width);border-color:var(--_switch-track-active-on-border-color);background-color:var(--_switch-track-active-on-color)}:host(:not([disabled]):not([readonly])[on]) .forge-switch .container:active .handle::before{scale:var(--_switch-handle-active-on-scale);-webkit-box-shadow:var(--_switch-handle-active-on-elevation);box-shadow:var(--_switch-handle-active-on-elevation);background-color:var(--_switch-handle-active-on-color)}:host(:not([disabled]):not([readonly])[on]) .forge-switch .container:active .handle .icon{scale:var(--_switch-icon-active-on-scale);color:var(--_switch-icon-active-on-color);fill:var(--_switch-icon-active-on-color)}:host([dense]) .forge-switch{--_switch-current-state-layer-width:var(--_switch-state-layer-dense-width);--_switch-current-state-layer-height:var(--_switch-state-layer-dense-height)}:host([disabled]) .forge-switch{opacity:var(--_switch-disabled-opacity)}:host([disabled]) .forge-switch .container{cursor:not-allowed}:host([disabled]) .forge-switch .handle::before{-webkit-box-shadow:none;box-shadow:none}:host([readonly]) .forge-switch .container{cursor:not-allowed}@media (prefers-reduced-motion){.switch{--_switch-animation-duration:var(--forge-switch-animation-duration, 0s)}}forge-state-layer{--forge-state-layer-color:var(--_switch-state-layer-off-color)}forge-focus-indicator{--forge-focus-indicator-shape:var(--_switch-track-shape);--forge-focus-indicator-outward-offset:0px}',Q=H(P(F(V(T(E))))),r=class extends Q{constructor(){super();y(this,Y,G),this[A]="checkbox",this._foundation=new f(new b(this))}static get observedAttributes(){return Object.values(i.observedAttributes)}connectedCallback(){super.connectedCallback(),this[c]({role:"switch",ariaChecked:this.on?"true":"false",ariaDisabled:this.disabled?"true":"false",ariaRequired:this.required?"true":"false"}),this._foundation.initialize()}attributeChangedCallback(e,a,o){switch(e){case i.observedAttributes.ON:case i.observedAttributes.SELECTED:this.on=l(o);break;case i.observedAttributes.DEFAULT_ON:this.defaultOn=l(o);break;case i.observedAttributes.VALUE:this.value=o;break;case i.observedAttributes.DENSE:this.dense=l(o);break;case i.observedAttributes.DISABLED:this.disabled=l(o);break;case i.observedAttributes.REQUIRED:this.required=l(o);break;case i.observedAttributes.READONLY:this.readonly=l(o);break;case i.observedAttributes.ICON:this.icon=o;break;case i.observedAttributes.LABEL_POSITION:this.labelPosition=o;break}super.attributeChangedCallback(e,a,o)}[L](){return this.on?this.value:null}[S](){return this.on?i.state.ON:i.state.OFF}[d](){this[p].setValidity({valueMissing:this.required&&!this.on},this[O]({checked:this.on,required:this.required}))}formResetCallback(){this.on=this.defaultOn}formStateRestoreCallback(e){this.on=e===i.state.ON}labelClickedCallback(){this.click(),this.focus()}labelChangedCallback(e){this[c]({ariaLabel:e})}setFormValue(e,a){if(this[p].setFormValue(e,a),a){let o=v(a)?a:a[this.name];this.on=o===i.state.ON;return}v(e)?this.on=!!e:e!=null&&e[this.name]?this.on=!!e[this.name]:this.on=!1}toggle(e){g(e)?this._foundation.on=e:this._foundation.on=!this._foundation.on}};n([s()],r.prototype,"on",2),n([s({name:"on"})],r.prototype,"selected",2),n([s()],r.prototype,"defaultOn",2),n([s()],r.prototype,"value",2),n([s()],r.prototype,"dense",2),n([s()],r.prototype,"disabled",2),n([s()],r.prototype,"required",2),n([s()],r.prototype,"readonly",2),n([s()],r.prototype,"icon",2),n([s()],r.prototype,"labelPosition",2),r=n([k({name:i.elementName,dependencies:[D,N]})],r);var B=class extends z{constructor(t){super(t)}get value(){return this._element.value}set value(t){this._element.value=t}get on(){return this._element.on}set on(t){this._element.on=t}get selected(){return this._element.selected}set selected(t){this._element.selected=t}get defaultOn(){return this._element.defaultOn}set defaultOn(t){this._element.defaultOn=t}get icon(){return this._element.icon}set icon(t){this._element.icon=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get dense(){return this._element.dense}set dense(t){this._element.dense=t}get required(){return this._element.required}set required(t){this._element.required=t}get readonly(){return this._element.readonly}set readonly(t){this._element.readonly=t}get name(){return this._element.name}set name(t){this._element.name=t}get labelPosition(){return this._element.labelPosition}set labelPosition(t){this._element.labelPosition=t}onChange(t){this._element.addEventListener(i.events.CHANGE,({detail:e})=>t(e))}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}setLabel(t){this._element.innerText=t!=null?t:""}toggle(t){this._element.toggle(t)}_build(){return document.createElement(i.elementName)}_configure(){var t,e;(t=this._config.options)!=null&&t.id&&(this._element.id=this._config.options.id),(e=this._config.options)!=null&&e.label&&(this._element.innerText=this._config.options.label)}};function Mt(){m(r)}export{i as a,b,f as c,r as d,B as e,Mt as f};
7
+ //# sourceMappingURL=chunk.LGSCBWNR.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/switch/switch-constants.ts", "../../src/switch/switch-adapter.ts", "../../src/switch/switch-foundation.ts", "../../src/switch/switch.ts", "../../src/switch/switch-component-delegate.ts", "../../src/switch/index.ts"],
4
+ "sourcesContent": ["import { COMPONENT_NAME_PREFIX } from '../constants';\n\nconst elementName: keyof HTMLElementTagNameMap = `${COMPONENT_NAME_PREFIX}switch`;\n\nconst observedAttributes = {\n ON: 'on',\n SELECTED: 'selected',\n DEFAULT_ON: 'default-on',\n VALUE: 'value',\n DENSE: 'dense',\n DISABLED: 'disabled',\n REQUIRED: 'required',\n READONLY: 'readonly',\n ICON: 'icon',\n LABEL_POSITION: 'label-position',\n TABINDEX: 'tabindex'\n};\n\nconst attributes = {\n ...observedAttributes\n};\n\nconst classes = {\n HIDDEN: 'hidden'\n};\n\nconst selectors = {\n ROOT: '.forge-switch',\n LABEL: '#label',\n ICON_ON: '#icon-on',\n ICON_OFF: '#icon-off',\n STATE_LAYER: 'forge-state-layer'\n};\n\nconst events = {\n CHANGE: `${elementName}-change`\n};\n\nconst state = {\n ON: 'on',\n OFF: 'off'\n};\n\nexport const SWITCH_CONSTANTS = {\n attributes,\n observedAttributes,\n classes,\n selectors,\n elementName,\n events,\n state\n};\n\nexport type SwitchLabelPosition = 'start' | 'end';\nexport type SwitchIconVisibility = 'both' | 'none' | 'off' | 'on';\n", "import { getShadowElement, toggleClass } from '@tylertech/forge-core';\nimport { internals, isFocusable, setDefaultAria, setValidity } from '../constants';\nimport { BaseAdapter, IBaseAdapter } from '../core';\nimport { StateLayerComponent } from '../state-layer';\nimport { ISwitchComponent } from './switch';\nimport { SwitchIconVisibility, SwitchLabelPosition, SWITCH_CONSTANTS } from './switch-constants';\n\nexport interface ISwitchAdapter extends IBaseAdapter {\n setOn(value: boolean): void;\n setDisabled(value: boolean): void;\n setRequired(value: boolean): void;\n setReadonly(value: boolean): void;\n setIconVisibility(value: SwitchIconVisibility): void;\n setLabelPosition(value: SwitchLabelPosition): void;\n syncValue(value: string | null): void;\n}\n\nexport class SwitchAdapter extends BaseAdapter<ISwitchComponent> implements ISwitchAdapter {\n private readonly _rootElement: HTMLElement;\n private readonly _labelElement: HTMLElement;\n private readonly _iconOnElement: HTMLElement;\n private readonly _iconOffElement: HTMLElement;\n private readonly _stateLayerElement: StateLayerComponent;\n\n constructor(component: ISwitchComponent) {\n super(component);\n \n this._rootElement = getShadowElement(component, SWITCH_CONSTANTS.selectors.ROOT);\n this._labelElement = getShadowElement(component, SWITCH_CONSTANTS.selectors.LABEL);\n this._iconOnElement = getShadowElement(component, SWITCH_CONSTANTS.selectors.ICON_ON);\n this._iconOffElement = getShadowElement(component, SWITCH_CONSTANTS.selectors.ICON_OFF);\n this._stateLayerElement = getShadowElement(component, SWITCH_CONSTANTS.selectors.STATE_LAYER) as StateLayerComponent;\n }\n\n public setOn(value: boolean): void {\n this._component[setValidity]();\n this._component[setDefaultAria]({ ariaChecked: value ? 'true' : 'false' });\n }\n\n public setDisabled(value: boolean): void {\n this._component[isFocusable] = !value;\n this._component[setDefaultAria]({ ariaDisabled: value ? 'true' : 'false' });\n this._stateLayerElement.disabled = value;\n }\n\n public setRequired(value: boolean): void {\n this._component[setValidity]();\n this._component[setDefaultAria]({ ariaRequired: value ? 'true' : 'false' });\n }\n\n public setReadonly(value: boolean): void {\n this._component[setDefaultAria]({ ariaReadOnly: value ? 'true' : 'false' });\n this._stateLayerElement.disabled = value;\n }\n\n public setIconVisibility(value: SwitchIconVisibility): void {\n const hideOn = value === 'none' || value === 'off';\n const hideOff = value === 'none' || value === 'on';\n toggleClass(this._iconOnElement, hideOn, SWITCH_CONSTANTS.classes.HIDDEN);\n toggleClass(this._iconOffElement, hideOff, SWITCH_CONSTANTS.classes.HIDDEN);\n }\n\n public setLabelPosition(value: SwitchLabelPosition): void {\n this._labelElement.remove();\n\n if (value === 'start') {\n this._rootElement.prepend(this._labelElement);\n } else {\n this._rootElement.append(this._labelElement);\n }\n }\n\n public syncValue(value: string | null): void {\n const data = value ? new FormData() : null;\n const state = value ? SWITCH_CONSTANTS.state.ON : SWITCH_CONSTANTS.state.OFF;\n if (data && value) {\n data.append(this._component.name, value);\n }\n this._component.setFormValue(data, state);\n }\n}\n", "import { ICustomElementFoundation } from '@tylertech/forge-core';\n\nimport { ISwitchAdapter } from './switch-adapter';\nimport { SWITCH_CONSTANTS, SwitchIconVisibility, SwitchLabelPosition } from './switch-constants';\n\nexport interface ISwitchFoundation extends ICustomElementFoundation {\n on: boolean;\n defaultOn: boolean;\n value: string;\n dense: boolean;\n disabled: boolean;\n required: boolean;\n readonly: boolean;\n icon: SwitchIconVisibility;\n labelPosition: SwitchLabelPosition;\n}\n\nexport class SwitchFoundation implements ISwitchFoundation {\n // State\n private _on = false;\n private _defaultOn = false;\n private _value = 'on';\n private _dense = false;\n private _disabled = false;\n private _required = false;\n private _readonly = false;\n private _icon: SwitchIconVisibility = 'on';\n private _labelPosition: SwitchLabelPosition = 'end';\n\n private get _submittedValue(): string | null {\n return this._on ? this._value : null;\n }\n\n // Listeners\n private readonly _clickListener: EventListener = () => this._handleChange();\n private readonly _keydownListener: EventListener = (evt: KeyboardEvent) => this._handleKeydown(evt);\n private readonly _keyupListener: EventListener = (evt: KeyboardEvent) => this._handleKeyup(evt);\n\n constructor(private readonly _adapter: ISwitchAdapter) {}\n\n public initialize(): void {\n this._adapter.addHostListener('click', this._clickListener);\n this._adapter.addHostListener('keydown', this._keydownListener);\n this._adapter.addHostListener('keyup', this._keyupListener);\n this._adapter.setIconVisibility(this._icon);\n this._adapter.syncValue(this._submittedValue);\n }\n\n private _handleKeydown(evt: KeyboardEvent): void {\n if (evt.key === ' ') {\n evt.preventDefault();\n }\n }\n\n private _handleKeyup(evt: KeyboardEvent): void {\n if (evt.key === ' ') {\n this._handleChange();\n }\n }\n\n private _handleChange(): void {\n if (this._readonly) {\n return;\n }\n\n const oldValue = this._on;\n const newValue = !this._on;\n // Call the public setter to ensure all the update logic is run\n this.on = newValue;\n\n const event = new Event('change', { cancelable: true });\n const forgeEvent = new CustomEvent(SWITCH_CONSTANTS.events.CHANGE, { detail: newValue, bubbles: true, cancelable: true });\n this._adapter.dispatchHostEvent(event);\n this._adapter.dispatchHostEvent(forgeEvent);\n if (event.defaultPrevented || forgeEvent.defaultPrevented) {\n this.on = oldValue;\n return;\n }\n }\n\n private _setOnAttribute(): void {\n this._adapter.toggleHostAttribute(SWITCH_CONSTANTS.attributes.ON, this._on);\n // Also set selected for backwards compatibility\n this._adapter.toggleHostAttribute(SWITCH_CONSTANTS.attributes.SELECTED, this._on);\n }\n\n public get on(): boolean {\n return this._on;\n }\n public set on(value: boolean) {\n if (this._on !== value) {\n this._on = value;\n this._adapter.setOn(this._on);\n this._adapter.syncValue(this._submittedValue);\n this._setOnAttribute();\n }\n }\n\n public get defaultOn(): boolean {\n return this._defaultOn;\n }\n public set defaultOn(value: boolean) {\n if (this._defaultOn !== value) {\n this._defaultOn = value;\n this._adapter.toggleHostAttribute(SWITCH_CONSTANTS.attributes.DEFAULT_ON, this._defaultOn);\n }\n }\n\n public get value(): string {\n return this._value;\n }\n public set value(value: string) {\n if (this._value !== value) {\n this._value = value;\n this._adapter.syncValue(this._submittedValue);\n this._adapter.toggleHostAttribute(SWITCH_CONSTANTS.attributes.VALUE, true, this._value);\n }\n }\n\n public get dense(): boolean {\n return this._dense;\n }\n public set dense(value: boolean) {\n if (this._dense !== value) {\n this._dense = value;\n this._adapter.toggleHostAttribute(SWITCH_CONSTANTS.attributes.DENSE, this._dense);\n }\n }\n\n public get disabled(): boolean {\n return this._disabled;\n }\n public set disabled(value: boolean) {\n if (this._disabled !== value) {\n this._disabled = value;\n this._adapter.setDisabled(this._disabled);\n this._adapter.toggleHostAttribute(SWITCH_CONSTANTS.attributes.DISABLED, this._disabled);\n }\n }\n\n public get required(): boolean {\n return this._required;\n }\n public set required(value: boolean) {\n if (this._required !== value) {\n this._required = value;\n this._adapter.setRequired(this._required);\n this._adapter.toggleHostAttribute(SWITCH_CONSTANTS.attributes.REQUIRED, this._required);\n }\n }\n\n public get readonly(): boolean {\n return this._readonly;\n }\n public set readonly(value: boolean) {\n if (this._readonly !== value) {\n this._readonly = value;\n this._adapter.setReadonly(this._readonly);\n this._adapter.toggleHostAttribute(SWITCH_CONSTANTS.attributes.READONLY, this._readonly);\n }\n }\n\n public get icon(): SwitchIconVisibility {\n return this._icon;\n }\n public set icon(value: SwitchIconVisibility) {\n if (this._icon !== value) {\n this._icon = value;\n this._adapter.setIconVisibility(this._icon);\n this._adapter.setHostAttribute(SWITCH_CONSTANTS.attributes.ICON, this._icon);\n }\n }\n\n public get labelPosition(): SwitchLabelPosition {\n return this._labelPosition;\n }\n public set labelPosition(value: SwitchLabelPosition) {\n if (this._labelPosition !== value) {\n this._labelPosition = value;\n this._adapter.setLabelPosition(this._labelPosition);\n this._adapter.setHostAttribute(SWITCH_CONSTANTS.attributes.LABEL_POSITION, this._labelPosition);\n }\n }\n}\n", "import { attachShadowTemplate, coerceBoolean, CustomElement, FoundationProperty, isDefined, isString } from '@tylertech/forge-core';\nimport { getFormState, getFormValue, getValidationMessage, inputType, internals, setDefaultAria, setValidity } from '../constants';\nimport { BaseComponent, FormValue } from '../core';\nimport { IWithFocusable, WithFocusable } from '../core/mixins/focus/with-focusable';\nimport { IWithFormAssociation, WithFormAssociation } from '../core/mixins/form/with-form-associated';\nimport { IWithDefaultAria, WithDefaultAria } from '../core/mixins/internals/with-default-aria';\nimport { IWithElementInternals, WithElementInternals } from '../core/mixins/internals/with-element-internals';\nimport { IWithLabelAwareness, WithLabelAwareness } from '../core/mixins/label/with-label-aware';\nimport { FocusIndicatorComponent } from '../focus-indicator/focus-indicator';\nimport { StateLayerComponent } from '../state-layer/state-layer';\nimport { SwitchAdapter } from './switch-adapter';\nimport { SwitchIconVisibility, SwitchLabelPosition, SWITCH_CONSTANTS } from './switch-constants';\nimport { SwitchFoundation } from './switch-foundation';\n\nconst template = '<template><div class=\\\"forge-switch\\\" part=\\\"switch\\\"><div id=\\\"container\\\" class=\\\"container\\\"><div class=\\\"track\\\" part=\\\"track\\\"></div><div class=\\\"handle\\\" part=\\\"handle\\\"><div id=\\\"icon-off\\\" class=\\\"icon icon__off\\\" part=\\\"icon-off\\\"><slot name=\\\"icon-off\\\"><svg aria-hidden=\\\"true\\\" viewBox=\\\"0 0 24 24\\\"><path d=\\\"M20 13H4v-2h16v2z\\\"/></svg></slot></div><div id=\\\"icon-on\\\" class=\\\"icon icon__on\\\" part=\\\"icon-on\\\"><slot name=\\\"icon-on\\\"><svg aria-hidden=\\\"true\\\" viewBox=\\\"0 0 24 24\\\"><path d=\\\"M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z\\\"/></svg></slot></div><forge-state-layer target=\\\":host\\\" exportparts=\\\"surface:state-layer\\\"></forge-state-layer></div><forge-focus-indicator target=\\\":host\\\" part=\\\"focus-indicator\\\"></forge-focus-indicator></div><label id=\\\"label\\\" class=\\\"label\\\" part=\\\"label\\\"><slot></slot></label></div></template>';\nconst styles = ':host{display:inline-block;outline:0;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}.forge-switch{--_switch-handle-size:var(--forge-switch-handle-size, 20px);--_switch-handle-scale:var(--forge-switch-handle-scale, 1);--_switch-handle-elevation:var(--forge-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12));--_switch-track-border-width:var(--forge-switch-track-border-width, 0);--_switch-track-border-color:var(--forge-switch-track-border-color, transparent);--_switch-icon-color:var(--forge-switch-icon-color, var(--forge-theme-on-tertiary, #ffffff));--_switch-icon-size:var(--forge-switch-icon-size, 16px);--_switch-icon-scale:var(--forge-switch-icon-scale, 1);--_switch-state-layer-size:var(--forge-switch-state-layer-size, 40px);--_switch-state-layer-dense-size:var(--forge-switch-state-layer-dense-size, 28px);--_switch-handle-on-color:var(--forge-switch-handle-on-color, var(--forge-theme-tertiary, #3d5afe));--_switch-handle-off-color:var(--forge-switch-handle-off-color, var(--forge-theme-surface-container-high, #9e9e9e));--_switch-handle-width:var(--forge-switch-handle-width, var(--_switch-handle-size));--_switch-handle-height:var(--forge-switch-handle-height, var(--_switch-handle-size));--_switch-handle-on-scale:var(--forge-switch-handle-on-scale, var(--_switch-handle-scale));--_switch-handle-off-scale:var(--forge-switch-handle-off-scale, var(--_switch-handle-scale));--_switch-handle-shape:var(--forge-switch-handle-shape, var(--forge-shape-round, 50%));--_switch-handle-on-elevation:var(--forge-switch-handle-on-elevation, var(--_switch-handle-elevation));--_switch-handle-off-elevation:var(--forge-switch-handle-off-elevation, var(--_switch-handle-elevation));--_switch-track-on-color:var(--forge-switch-track-on-color, var(--forge-theme-tertiary-container, #d0d7ff));--_switch-track-off-color:var(--forge-switch-track-off-color, var(--forge-theme-surface-container, #e0e0e0));--_switch-track-width:var(--forge-switch-track-width, 36px);--_switch-track-height:var(--forge-switch-track-height, 14px);--_switch-track-shape:var(--forge-switch-track-shape, var(--forge-shape-full, 9999px));--_switch-track-on-border-width:var(--forge-switch-track-on-border-width, var(--_switch-track-border-width));--_switch-track-off-border-width:var(--forge-switch-track-off-border-width, var(--_switch-track-border-width));--_switch-track-on-border-color:var(--forge-switch-track-on-border-color, var(--_switch-track-border-color));--_switch-track-off-border-color:var(--forge-switch-track-off-border-color, var(--_switch-track-border-color));--_switch-icon-on-color:var(--forge-switch-icon-on-color, var(--_switch-icon-color));--_switch-icon-off-color:var(--forge-switch-icon-off-color, var(--_switch-icon-color));--_switch-icon-on-size:var(--forge-switch-icon-on-size, var(--_switch-icon-size));--_switch-icon-off-size:var(--forge-switch-icon-off-size, var(--_switch-icon-size));--_switch-icon-on-scale:var(--forge-switch-icon-on-scale, var(--_switch-icon-scale));--_switch-icon-off-scale:var(--forge-switch-icon-off-scale, var(--_switch-icon-scale));--_switch-gap:var(--forge-switch-gap, 0);--_switch-justify:var(--forge-switch-justify, space-between);--_switch-direction:var(--forge-switch-direction, initial);--_switch-state-layer-width:var(--forge-switch-state-layer-width, var(--_switch-state-layer-size));--_switch-state-layer-height:var(--forge-switch-state-layer-height, var(--_switch-state-layer-size));--_switch-state-layer-on-color:var(--forge-switch-state-layer-on-color, var(--_switch-handle-on-color));--_switch-state-layer-off-color:var(--forge-switch-state-layer-off-color, var(--_switch-color));--_switch-state-layer-dense-width:var(--forge-switch-state-layer-dense-width, var(--_switch-state-layer-dense-size));--_switch-state-layer-dense-height:var(--forge-switch-state-layer-dense-height, var(--_switch-state-layer-dense-size));--_switch-disabled-opacity:var(--forge-switch-disabled-opacity, 0.38);--_switch-handle-active-on-color:var(--forge-switch-handle-active-on-color, var(--_switch-handle-on-color));--_switch-handle-active-off-color:var(--forge-switch-handle-active-off-color, var(--_switch-handle-off-color));--_switch-handle-active-scale:var(--forge-switch-handle-active-scale, 1.2);--_switch-handle-active-on-scale:var(--forge-switch-handle-active-on-scale, var(--_switch-handle-active-scale));--_switch-handle-active-off-scale:var(--forge-switch-handle-active-off-scale, var(--_switch-handle-active-scale));--_switch-handle-active-elevation:var(--forge-switch-handle-active-elevation, var(--_switch-handle-elevation));--_switch-handle-active-on-elevation:var(--forge-switch-handle-active-on-elevation, var(--_switch-handle-active-elevation));--_switch-handle-active-off-elevation:var(--forge-switch-handle-active-off-elevation, var(--_switch-handle-active-elevation));--_switch-track-active-on-color:var(--forge-switch-track-active-on-color, var(--_switch-track-on-color));--_switch-track-active-off-color:var(--forge-switch-track-active-off-color, var(--_switch-track-off-color));--_switch-track-active-on-border-width:var(--forge-switch-track-active-on-border-width, var(--_switch-track-on-border-width));--_switch-track-active-off-border-width:var(--forge-switch-track-active-off-border-width, var(--_switch-track-off-border-width));--_switch-track-active-on-border-color:var(--forge-switch-track-active-on-border-color, var(--_switch-track-on-border-color));--_switch-track-active-off-border-color:var(--forge-switch-track-active-off-border-color, var(--_switch-track-off-border-color));--_switch-icon-active-on-color:var(--forge-switch-icon-active-on-color, var(--_switch-icon-on-color));--_switch-icon-active-off-color:var(--forge-switch-icon-active-off-color, var(--_switch-icon-off-color));--_switch-icon-active-on-scale:var(--forge-switch-icon-active-on-scale, var(--_switch-icon-on-scale));--_switch-icon-active-off-scale:var(--forge-switch-icon-active-off-scale, var(--_switch-icon-off-scale));--_switch-animation-duration:var(--forge-switch-animation-duration, var(--forge-animation-duration-short2, 100ms));--_switch-animation-timing:var(--forge-switch-animation-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_switch-active-animation-timing:var(--forge-switch-active-animation-timing, var(--forge-animation-easing-linear, cubic-bezier(0, 0, 1, 1)))}.forge-switch{display:-webkit-box;display:flex;position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:var(--_switch-direction);flex-shrink:0;-webkit-box-align:center;align-items:center;-webkit-box-pack:var(--_switch-justify);justify-content:var(--_switch-justify);gap:var(--_switch-gap);--_switch-current-state-layer-width:var(--_switch-state-layer-width);--_switch-current-state-layer-height:var(--_switch-state-layer-height)}.forge-switch .container{position:relative;-webkit-box-align:center;align-items:center;display:-webkit-box;display:flex;block-size:max(var(--_switch-handle-height),var(--_switch-track-height),var(--_switch-current-state-layer-height));cursor:pointer}.forge-switch .input{position:absolute;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;margin:0;inline-size:100%;block-size:100%;cursor:unset}.forge-switch .track{-webkit-transition-property:background-color,border-color,border-width;transition-property:background-color,border-color,border-width;-webkit-transition-duration:var(--_switch-animation-duration);transition-duration:var(--_switch-animation-duration);-webkit-transition-timing-function:var(--_switch-animation-timing);transition-timing-function:var(--_switch-animation-timing);-webkit-box-sizing:border-box;box-sizing:border-box;margin-inline:calc(max(var(--_switch-handle-width),var(--_switch-current-state-layer-width))/ 2 - calc(var(--_switch-track-height)/ 2));border-width:var(--_switch-track-off-border-width);border-color:var(--_switch-track-off-border-color);border-style:solid;border-radius:var(--_switch-track-shape);inline-size:var(--_switch-track-width);block-size:var(--_switch-track-height);background-color:var(--_switch-track-off-color)}.forge-switch .handle{position:absolute;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;display:-webkit-box;display:flex;-webkit-transition-property:translate;transition-property:translate;-webkit-transition-duration:var(--_switch-animation-duration);transition-duration:var(--_switch-animation-duration);-webkit-transition-timing-function:var(--_switch-animation-timing);transition-timing-function:var(--_switch-animation-timing);border-radius:var(--_switch-handle-shape);inline-size:var(--_switch-current-state-layer-width);block-size:var(--_switch-current-state-layer-height)}.forge-switch .handle::before{content:\\\"\\\";position:relative;display:block;scale:var(--_switch-handle-off-scale);-webkit-transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing),-webkit-box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing);transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing),-webkit-box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing);transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing);transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing),-webkit-box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing);-webkit-box-shadow:var(--_switch-handle-off-elevation);box-shadow:var(--_switch-handle-off-elevation);border-radius:var(--_switch-handle-shape);inline-size:var(--_switch-handle-width);block-size:var(--_switch-handle-height);background-color:var(--_switch-handle-off-color)}.forge-switch .icon{position:absolute;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;display:-webkit-box;display:flex;-webkit-transition-property:opacity,scale;transition-property:opacity,scale;-webkit-transition-duration:var(--_switch-animation-duration);transition-duration:var(--_switch-animation-duration);-webkit-transition-timing-function:var(--_switch-animation-timing);transition-timing-function:var(--_switch-animation-timing);inline-size:var(--_switch-icon-off-size);block-size:var(--_switch-icon-off-size);color:var(--_switch-icon-off-color);fill:var(--_switch-icon-off-color);font-size:var(--_switch-icon-off-size);--forge-icon-font-size:var(--_switch-icon-off-size)}.forge-switch .icon__on{--forge-icon-font-size:var(--_switch-icon-on-size);inline-size:var(--_switch-icon-on-size);block-size:var(--_switch-icon-on-size);color:var(--_switch-icon-on-color);fill:var(--_switch-icon-on-color);font-size:var(--_switch-icon-on-size);opacity:0;scale:0.4}.forge-switch .icon__off{opacity:1;scale:var(--_switch-icon-off-scale)}.forge-switch .label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-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)}.forge-switch .label:empty{display:none}.forge-switch .hidden{display:none}.forge-switch ::slotted([slot=input]){position:absolute;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;margin:0;inline-size:100%;block-size:100%;cursor:unset}:host([on]) .track{border-width:var(--_switch-track-on-border-width);border-color:var(--_switch-track-on-border-color);background-color:var(--_switch-track-on-color)}:host([on]) .handle{translate:calc(var(--_switch-track-width) - calc(var(--_switch-track-height)/ 2) * 2)}:host([on]) .handle::before{scale:var(--_switch-handle-on-scale);-webkit-box-shadow:var(--_switch-handle-on-elevation);box-shadow:var(--_switch-handle-on-elevation);background-color:var(--_switch-handle-on-color)}:host([on]) .handle .icon__on{opacity:1;scale:var(--_switch-icon-on-scale)}:host([on]) .handle .icon__off{opacity:0;scale:0.4}:host([on]) forge-state-layer{--forge-state-layer-color:var(--_switch-state-layer-on-color)}:host(:not([disabled]):not([readonly])) .forge-switch .container:active .track{border-width:var(--_switch-track-active-off-border-width);border-color:var(--_switch-track-active-off-border-color);background-color:var(--_switch-track-active-off-color)}:host(:not([disabled]):not([readonly])) .forge-switch .container:active .handle::before{scale:var(--_switch-handle-active-off-scale);-webkit-box-shadow:var(--_switch-handle-active-off-elevation);box-shadow:var(--_switch-handle-active-off-elevation);background-color:var(--_switch-handle-active-off-color)}:host(:not([disabled]):not([readonly])) .forge-switch .container:active .handle .icon{scale:var(--_switch-icon-active-off-scale);color:var(--_switch-icon-active-off-color);fill:var(--_switch-icon-active-off-color)}:host(:not([disabled]):not([readonly])[on]) .forge-switch .container:active .track{border-width:var(--_switch-track-active-on-border-width);border-color:var(--_switch-track-active-on-border-color);background-color:var(--_switch-track-active-on-color)}:host(:not([disabled]):not([readonly])[on]) .forge-switch .container:active .handle::before{scale:var(--_switch-handle-active-on-scale);-webkit-box-shadow:var(--_switch-handle-active-on-elevation);box-shadow:var(--_switch-handle-active-on-elevation);background-color:var(--_switch-handle-active-on-color)}:host(:not([disabled]):not([readonly])[on]) .forge-switch .container:active .handle .icon{scale:var(--_switch-icon-active-on-scale);color:var(--_switch-icon-active-on-color);fill:var(--_switch-icon-active-on-color)}:host([dense]) .forge-switch{--_switch-current-state-layer-width:var(--_switch-state-layer-dense-width);--_switch-current-state-layer-height:var(--_switch-state-layer-dense-height)}:host([disabled]) .forge-switch{opacity:var(--_switch-disabled-opacity)}:host([disabled]) .forge-switch .container{cursor:not-allowed}:host([disabled]) .forge-switch .handle::before{-webkit-box-shadow:none;box-shadow:none}:host([readonly]) .forge-switch .container{cursor:not-allowed}@media (prefers-reduced-motion){.switch{--_switch-animation-duration:var(--forge-switch-animation-duration, 0s)}}forge-state-layer{--forge-state-layer-color:var(--_switch-state-layer-off-color)}forge-focus-indicator{--forge-focus-indicator-shape:var(--_switch-track-shape);--forge-focus-indicator-outward-offset:0px}';\n\nexport interface ISwitchComponent extends IWithFormAssociation, IWithFocusable, IWithLabelAwareness, IWithElementInternals, IWithDefaultAria {\n value: string;\n on: boolean;\n /**\n * @deprecated use `on` instead\n */\n selected: boolean;\n defaultOn: boolean;\n required: boolean;\n dense: boolean;\n icon: SwitchIconVisibility;\n labelPosition: SwitchLabelPosition;\n toggle(force?: boolean): void;\n setFormValue(value: FormValue | null, state?: FormValue | null | undefined): void;\n [setValidity](): void;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-switch': ISwitchComponent;\n }\n\n interface HTMLElementEventMap {\n 'forge-switch-change': CustomEvent<boolean>;\n }\n}\n\nconst BaseSwitchClass = WithFormAssociation(WithLabelAwareness(WithFocusable(WithDefaultAria(WithElementInternals(BaseComponent)))));\n\n/**\n * @tag forge-switch\n * \n * @summary Switches toggle the state of a single setting on or off.\n * \n * @description\n * Use switches to:\n * - Toggle a single item on or off, on mobile and tablet\n * - Immediately activate or deactivate something\n * \n * @property {boolean} on - Whether the switch is on the on or off state.\n * @property {boolean} selected - Deprecated. Alias for `on`.\n * @property {boolean} defaultOn - Whether the switch is on or off by default.\n * @property {string} value - The value of the switch.\n * @property {boolean} dense - The density state.\n * @property {boolean} disabled - Controls if the switch is disabled.\n * @property {boolean} required = Controls if the switch is required.\n * @property {boolean} readonly - Controls if the switch is readonly.\n * @property {SwitchIconVisibility} icon - Controls the presence of the off and on icons.\n * @property {SwitchLabelPosition} labelPosition - Whether the label appears before or after the switch.\n * \n * @attribute {string} on - Controls whether the switch is in the on or off state.\n * @attribute {string} selected - Deprecated. Alias for `on`.\n * @attribute {string} default-on - Controls whether the switch is in the on or off state by default.\n * @attribute {string} value - The value of the switch.\n * @attribute {string} dense - Sets the density state.\n * @attribute {string} disabled - Controls if the switch is disabled.\n * @attribute {string} required - Controls if the switch is required.\n * @attribute {string} readonly - Controls if the switch is readonly.\n * @attribute {string} icon - Controls the presence of the off and on icons.\n * @attribute {string} label-position - Sets whether the label appears before or after the switch.\n * \n * @method {(force?: boolean) => void} toggle - Toggles whether the switch is selected or forces a selected state.\n * \n * @event {CustomEvent} forge-switch-change - Dispatches when the switch's value changes.\n * \n * @cssproperty --forge-theme-primary - The primary color of the switch.\n * @cssproperty --forge-theme-on-primary - The color of elements placed on top of the primary color (the handle icons for example).\n * @cssproperty --forge-switch-handle-on-color - The color of the handle in the switch's on state.\n * @cssproperty --forge-switch-handle-off-color - The color of the handle in the switch's off state.\n * @cssproperty --forge-switch-handle-active-on-color - The color of the handle when the switch is active (pressed) in its on state.\n * @cssproperty --forge-switch-handle-active-off-color - The color of the handle when the switch is active (pressed) in its off state.\n * @cssproperty --forge-switch-handle-size - The inline and block size of the handle.\n * @cssproperty --forge-switch-handle-width - The inline size of the handle.\n * @cssproperty --forge-switch-handle-height - The block size of the handle.\n * @cssproperty --forge-switch-handle-scale - The scale transformation applied to the handle.\n * @cssproperty --forge-switch-handle-on-scale - The scale transformation applied to the handle in the switch's on state.\n * @cssproperty --forge-switch-handle-off-scale - The scale transformation applied to the handle in the switch's off state.\n * @cssproperty --forge-switch-handle-active-scale - The scale transformation applied to the handle when the switch is active (pressed).\n * @cssproperty --forge-switch-handle-active-on-scale - The scale transformation applied to the handle when the switch is active (pressed) in its on state.\n * @cssproperty --forge-switch-handle-active-off-scale - The scale transformation applied to the handle when the switch is active (pressed) in its off state.\n * @cssproperty --forge-switch-handle-shape - The shape of the handle.\n * @cssproperty --forge-switch-handle-elevation - The handle's shadow.\n * @cssproperty --forge-switch-handle-on-elevation - The handle's shadow in the switch's on state.\n * @cssproperty --forge-switch-handle-off-elevation - The handle's shadow in the switch's off state.\n * @cssproperty --forge-switch-handle-active-elevation - The handle's shadow when the switch is active (pressed).\n * @cssproperty --forge-switch-handle-active-on-elevation - The handle's shadow when the switch is active (pressed) in its on state.\n * @cssproperty --forge-switch-handle-active-off-elevation - The handle's shadow when the switch is active (pressed) in its off state.\n * @cssproperty --forge-switch-track-on-color - The color of the track in the switch's on state.\n * @cssproperty --forge-switch-track-off-color - The color fo the track in the switch's off state.\n * @cssproperty --forge-switch-track-active-on-color - The color of the track when the switch is active (pressed) in its on state.\n * @cssproperty --forge-switch-track-active-off-color - The color fo the track when the switch is active (pressed) in its off state.\n * @cssproperty --forge-switch-track-width - The inline size of the track.\n * @cssproperty --forge-switch-track-height - The block size of the track.\n * @cssproperty --forge-switch-track-shape - The shape of the track.\n * @cssproperty --forge-switch-track-border-width - The width of the track border.\n * @cssproperty --forge-switch-track-on-border-width - The width of the track border in the switch's on state.\n * @cssproperty --forge-switch-track-off-border-width - The width of the track border in the switch's off state.\n * @cssproperty --forge-switch-track-active-on-border-width - The width of the track border when the switch is active (pressed) in its on state.\n * @cssproperty --forge-switch-track-active-off-border-width - The width of the track border when the switch is active (pressed) in its off state.\n * @cssproperty --forge-switch-track-border-color - The color of the track border.\n * @cssproperty --forge-switch-track-on-border-color - The color of the track border in the switch's on state.\n * @cssproperty --forge-switch-track-off-border-color - The color of the track border in the switch's off state.\n * @cssproperty --forge-switch-track-active-on-border-color - The color of the track border when the switch is active (pressed) in its on state.\n * @cssproperty --forge-switch-track-active-off-border-color - The color of the track border when the switch is active (pressed) in its off state.\n * @cssproperty --forge-switch-icon-color - The color of the handle icons.\n * @cssproperty --forge-switch-icon-on-color - The color of the handle icon in the switch's on state.\n * @cssproperty --forge-switch-icon-off-color - The color of the handle icon in the switch's off state.\n * @cssproperty --forge-switch-icon-active-on-color - The color of the handle icon when the switch is active (pressed) in its on state.\n * @cssproperty --forge-switch-icon-active-off-color - The color of the handle icon when the switch is active (pressed) in its off state.\n * @cssproperty --forge-switch-icon-size - The size of the handle icon.\n * @cssproperty --forge-switch-icon-on-size - The size of the handle icon in the switch's on state.\n * @cssproperty --forge-switch-icon-off-size - The size of the handle icon in the switch's off state.\n * @cssproperty --forge-switch-icon-scale - The scale transformation applied to the handle icons.\n * @cssproperty --forge-switch-icon-on-scale - The scale transformation applied to the handle icons in the switch's on state.\n * @cssproperty --forge-switch-icon-off-scale - The scale transformation applied to the handle icons in the switch's off state.\n * @cssproperty --forge-switch-icon-active-on-scale - The scale transformation applied to the handle icons when the switch is active (pressed) in its on state.\n * @cssproperty --forge-switch-icon-active-off-scale - The scale transformation applied to the handle icons when the switch is active (pressed) in its off state.\n * @cssproperty --forge-switch-gap - The space between the switch and label.\n * @cssproperty --forge-switch-justify - How the switch and label are distributed along their main axis.\n * @cssproperty --forge-switch-direction - Whether the switch and label are arranged along the inline or block axis.\n * @cssproperty --forge-switch-state-layer-size - The inline and block size of the handle's state layer.\n * @cssproperty --forge-switch-state-layer-width - The inline size of the handle's state layer.\n * @cssproperty --forge-switch-state-layer-height - The block size of the handle's state layer.\n * @cssproperty --forge-switch-state-layer-on-color - The color of the handle's state layer when the switch is in its on state.\n * @cssproperty --forge-switch-state-layer-off-color - The color of the handle's state layer when the switch is in its off state.\n * @cssproperty --forge-switch-state-layer-dense-size - The inline and block size of the handle's state layer when the dense switch is used.\n * @cssproperty --forge-switch-state-layer-dense-width - The inline size of the handle's state layer when the dense switch is used.\n * @cssproperty --forge-switch-state-layer-dense-height - The block size of the handle's state layer when the dense switch is used.\n * @cssproperty --forge-switch-disabled-opacity - The opacity of the switch when disabled.\n * @cssproperty --forge-switch-animation-duration - The duration of animations.\n * @cssproperty --forge-switch-animation-timing - The timing function used in most animations.\n * @cssproperty --forge-switch-active-animation-timing - The timing function used in active state animations.\n * \n * @csspart switch - Styles the switch container element.\n * @csspart track - Styles the track element.\n * @csspart handle - Styles the handle element.\n * @csspart icon-on - Styles the on icon element.\n * @csspart icon-off - Styles the off icon element.\n * @csspart label - Styles the label element.\n * @csspart state-layer - Styles the state layer root element.\n * @csspart focus-indicator - Styles the focus indicator root element.\n */\n@CustomElement({\n name: SWITCH_CONSTANTS.elementName,\n dependencies: [\n FocusIndicatorComponent,\n StateLayerComponent\n ]\n})\nexport class SwitchComponent extends BaseSwitchClass implements ISwitchComponent {\n public static get observedAttributes(): string[] {\n return Object.values(SWITCH_CONSTANTS.observedAttributes);\n }\n\n private readonly _foundation: SwitchFoundation;\n\n constructor() {\n super();\n attachShadowTemplate(this, template, styles);\n this[inputType] = 'checkbox';\n this._foundation = new SwitchFoundation(new SwitchAdapter(this));\n }\n\n public connectedCallback(): void {\n super.connectedCallback();\n this[setDefaultAria]({\n role: 'switch',\n ariaChecked: this.on ? 'true' : 'false',\n ariaDisabled: this.disabled ? 'true' : 'false',\n ariaRequired: this.required ? 'true' : 'false'\n });\n this._foundation.initialize();\n }\n\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n switch (name) {\n case SWITCH_CONSTANTS.observedAttributes.ON:\n case SWITCH_CONSTANTS.observedAttributes.SELECTED:\n this.on = coerceBoolean(newValue);\n break;\n case SWITCH_CONSTANTS.observedAttributes.DEFAULT_ON:\n this.defaultOn = coerceBoolean(newValue);\n break;\n case SWITCH_CONSTANTS.observedAttributes.VALUE:\n this.value = newValue;\n break;\n case SWITCH_CONSTANTS.observedAttributes.DENSE:\n this.dense = coerceBoolean(newValue);\n break;\n case SWITCH_CONSTANTS.observedAttributes.DISABLED:\n this.disabled = coerceBoolean(newValue);\n break;\n case SWITCH_CONSTANTS.observedAttributes.REQUIRED:\n this.required = coerceBoolean(newValue);\n break;\n case SWITCH_CONSTANTS.observedAttributes.READONLY:\n this.readonly = coerceBoolean(newValue);\n break;\n case SWITCH_CONSTANTS.observedAttributes.ICON:\n this.icon = newValue as SwitchIconVisibility;\n break;\n case SWITCH_CONSTANTS.observedAttributes.LABEL_POSITION:\n this.labelPosition = newValue as SwitchLabelPosition;\n break;\n }\n super.attributeChangedCallback(name, oldValue, newValue);\n }\n\n public override [getFormValue](): FormValue | null {\n return this.on ? this.value : null;\n }\n\n public override [getFormState](): string {\n return this.on ? SWITCH_CONSTANTS.state.ON : SWITCH_CONSTANTS.state.OFF;\n }\n\n public [setValidity](): void {\n this[internals].setValidity({ valueMissing: this.required && !this.on }, this[getValidationMessage]({\n checked: this.on,\n required: this.required\n }));\n }\n\n public formResetCallback(): void {\n this.on = this.defaultOn;\n }\n\n public formStateRestoreCallback(state: string): void {\n this.on = state === SWITCH_CONSTANTS.state.ON;\n }\n\n public labelClickedCallback(): void {\n this.click();\n // TODO: use `{ focusVisible: false }` when supported.\n this.focus();\n }\n\n public labelChangedCallback(value: string | null): void {\n this[setDefaultAria]({ ariaLabel: value });\n }\n\n public setFormValue(value: FormValue | null, state?: FormValue | null | undefined): void {\n this[internals].setFormValue(value, state);\n\n if (state) {\n const stateValue = isString(state) ? state : state[this.name];\n this.on = stateValue === SWITCH_CONSTANTS.state.ON;\n return;\n }\n\n if (isString(value)) {\n this.on = !!value;\n } else if (value?.[this.name]) {\n this.on = !!value[this.name];\n } else {\n this.on = false;\n }\n }\n\n @FoundationProperty()\n public declare on: boolean;\n\n /**\n * @deprecated use `on` instead\n */\n @FoundationProperty({ name: 'on' })\n public declare selected: boolean;\n\n @FoundationProperty()\n public declare defaultOn: boolean;\n\n @FoundationProperty()\n public declare value: string;\n\n @FoundationProperty()\n public declare dense: boolean;\n\n @FoundationProperty()\n public declare disabled: boolean;\n\n @FoundationProperty()\n public declare required: boolean;\n\n @FoundationProperty()\n public declare readonly: boolean;\n\n @FoundationProperty()\n public declare icon: SwitchIconVisibility;\n\n @FoundationProperty()\n public declare labelPosition: SwitchLabelPosition;\n\n /**\n * Toggles the switch on or off.\n * @param force Whether to set the switch on or off.\n */\n public toggle(force?: boolean): void {\n if (isDefined(force)) {\n this._foundation.on = force as boolean;\n } else {\n this._foundation.on = !this._foundation.on;\n }\n }\n}\n", "import { FormFieldComponentDelegate, IFormFieldComponentDelegateOptions } from '../core';\nimport { IBaseComponentDelegateConfig } from '../core/delegates/base-component-delegate';\nimport { ISwitchComponent } from './switch';\nimport { SWITCH_CONSTANTS, SwitchIconVisibility, SwitchLabelPosition } from './switch-constants';\n\nexport type SwitchComponentDelegateProps = Partial<ISwitchComponent>;\nexport interface ISwitchComponentDelegateOptions extends IFormFieldComponentDelegateOptions {\n id?: string;\n label?: string;\n}\nexport interface ISwitchComponentDelegateConfig extends IBaseComponentDelegateConfig<ISwitchComponent, ISwitchComponentDelegateOptions> {}\n\nexport class SwitchComponentDelegate extends FormFieldComponentDelegate<ISwitchComponent, ISwitchComponentDelegateOptions> {\n constructor(config?: ISwitchComponentDelegateConfig) {\n super(config);\n }\n\n public get value(): string {\n return this._element.value;\n }\n public set value(value: string) {\n this._element.value = value;\n }\n\n public get on(): boolean {\n return this._element.on;\n }\n public set on(value: boolean) {\n this._element.on = value;\n }\n\n public get selected(): boolean {\n return this._element.selected;\n }\n public set selected(value: boolean) {\n this._element.selected = value;\n }\n\n public get defaultOn(): boolean {\n return this._element.defaultOn;\n }\n public set defaultOn(value: boolean) {\n this._element.defaultOn = value;\n }\n\n public get icon(): SwitchIconVisibility {\n return this._element.icon;\n }\n public set icon(value: SwitchIconVisibility) {\n this._element.icon = value;\n }\n\n public get disabled(): boolean {\n return this._element.disabled;\n }\n public set disabled(value: boolean) {\n this._element.disabled = value;\n }\n\n public get dense(): boolean {\n return this._element.dense;\n }\n public set dense(value: boolean) {\n this._element.dense = value;\n }\n\n public get required(): boolean {\n return this._element.required;\n }\n public set required(value: boolean) {\n this._element.required = value;\n }\n\n public get readonly(): boolean {\n return this._element.readonly;\n }\n public set readonly(value: boolean) {\n this._element.readonly = value;\n }\n\n public get name(): string {\n return this._element.name;\n }\n public set name(value: string) {\n this._element.name = value;\n }\n\n public get labelPosition(): SwitchLabelPosition {\n return this._element.labelPosition;\n }\n public set labelPosition(value: SwitchLabelPosition) {\n this._element.labelPosition = value;\n }\n\n public onChange(listener: (value: boolean) => void): void {\n this._element.addEventListener(SWITCH_CONSTANTS.events.CHANGE, ({ detail }: CustomEvent<boolean>) => listener(detail));\n }\n\n public onFocus(listener: (evt: Event) => void): void {\n this._element.addEventListener('focus', evt => listener(evt));\n }\n\n public onBlur(listener: (evt: Event) => void): void {\n this._element.addEventListener('blur', evt => listener(evt));\n }\n\n public setLabel(text: string | null): void {\n this._element.innerText = text ?? '';\n }\n\n public toggle(force?: boolean): void {\n this._element.toggle(force);\n }\n\n protected _build(): ISwitchComponent {\n return document.createElement(SWITCH_CONSTANTS.elementName);\n }\n\n protected override _configure(): void {\n if (this._config.options?.id) {\n this._element.id = this._config.options.id;\n }\n if (this._config.options?.label) {\n this._element.innerText = this._config.options.label;\n }\n }\n}\n", "import { defineCustomElement } from '@tylertech/forge-core';\n\nimport { SwitchComponent } from './switch';\n\nexport * from './switch-adapter';\nexport * from './switch-constants';\nexport * from './switch-foundation';\nexport * from './switch';\nexport * from './switch-component-delegate';\n\nexport function defineSwitchComponent(): void {\n defineCustomElement(SwitchComponent);\n}\n"],
5
+ "mappings": "gqBAEA,IAAMA,EAA2C,GAAGC,UAE9CC,EAAqB,CACzB,GAAI,KACJ,SAAU,WACV,WAAY,aACZ,MAAO,QACP,MAAO,QACP,SAAU,WACV,SAAU,WACV,SAAU,WACV,KAAM,OACN,eAAgB,iBAChB,SAAU,UACZ,EAEMC,EAAaC,EAAA,GACdF,GAGCG,EAAU,CACd,OAAQ,QACV,EAEMC,EAAY,CAChB,KAAM,gBACN,MAAO,SACP,QAAS,WACT,SAAU,YACV,YAAa,mBACf,EAEMC,EAAS,CACb,OAAQ,GAAGP,UACb,EAEMQ,EAAQ,CACZ,GAAI,KACJ,IAAK,KACP,EAEaC,EAAmB,CAC9B,WAAAN,EACA,mBAAAD,EACA,QAAAG,EACA,UAAAC,EACA,YAAAN,EACA,OAAAO,EACA,MAAAC,CACF,EClCO,IAAME,EAAN,cAA4BC,CAAwD,CAOzF,YAAYC,EAA6B,CACvC,MAAMA,CAAS,EAEf,KAAK,aAAeC,EAAiBD,EAAWE,EAAiB,UAAU,IAAI,EAC/E,KAAK,cAAgBD,EAAiBD,EAAWE,EAAiB,UAAU,KAAK,EACjF,KAAK,eAAiBD,EAAiBD,EAAWE,EAAiB,UAAU,OAAO,EACpF,KAAK,gBAAkBD,EAAiBD,EAAWE,EAAiB,UAAU,QAAQ,EACtF,KAAK,mBAAqBD,EAAiBD,EAAWE,EAAiB,UAAU,WAAW,CAC9F,CAEO,MAAMC,EAAsB,CACjC,KAAK,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ASE,CAAM,CAAC,CACvH,CAEO,QAAQF,EAAsC,CACnD,KAAK,SAAS,iBAAiB,QAASG,GAAOH,EAASG,CAAG,CAAC,CAC9D,CAEO,OAAOH,EAAsC,CAClD,KAAK,SAAS,iBAAiB,OAAQG,GAAOH,EAASG,CAAG,CAAC,CAC7D,CAEO,SAASC,EAA2B,CACzC,KAAK,SAAS,UAAYA,GAAA,KAAAA,EAAQ,EACpC,CAEO,OAAOC,EAAuB,CACnC,KAAK,SAAS,OAAOA,CAAK,CAC5B,CAEU,QAA2B,CACnC,OAAO,SAAS,cAAcJ,EAAiB,WAAW,CAC5D,CAEmB,YAAmB,CAtHxC,IAAAK,EAAAC,GAuHQD,EAAA,KAAK,QAAQ,UAAb,MAAAA,EAAsB,KACxB,KAAK,SAAS,GAAK,KAAK,QAAQ,QAAQ,KAEtCC,EAAA,KAAK,QAAQ,UAAb,MAAAA,EAAsB,QACxB,KAAK,SAAS,UAAY,KAAK,QAAQ,QAAQ,MAEnD,CACF,ECpHO,SAASC,IAA8B,CAC5CC,EAAoBC,CAAe,CACrC",
6
+ "names": ["elementName", "COMPONENT_NAME_PREFIX", "observedAttributes", "attributes", "__spreadValues", "classes", "selectors", "events", "state", "SWITCH_CONSTANTS", "SwitchAdapter", "BaseAdapter", "component", "getShadowElement", "SWITCH_CONSTANTS", "value", "setValidity", "setDefaultAria", "isFocusable", "hideOn", "hideOff", "toggleClass", "data", "state", "SwitchFoundation", "_adapter", "evt", "oldValue", "newValue", "event", "forgeEvent", "SWITCH_CONSTANTS", "value", "template", "styles", "BaseSwitchClass", "WithFormAssociation", "WithLabelAwareness", "WithFocusable", "WithDefaultAria", "WithElementInternals", "BaseComponent", "SwitchComponent", "attachShadowTemplate", "inputType", "SwitchFoundation", "SwitchAdapter", "SWITCH_CONSTANTS", "setDefaultAria", "name", "oldValue", "newValue", "coerceBoolean", "getFormValue", "getFormState", "setValidity", "internals", "getValidationMessage", "state", "value", "stateValue", "isString", "force", "isDefined", "__decorateClass", "FoundationProperty", "CustomElement", "FocusIndicatorComponent", "StateLayerComponent", "SwitchComponentDelegate", "FormFieldComponentDelegate", "config", "value", "listener", "SWITCH_CONSTANTS", "detail", "evt", "text", "force", "_a", "_b", "defineSwitchComponent", "defineCustomElement", "SwitchComponent"]
7
+ }
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{e as l}from"./chunk.DCCFF327.js";import{i as u}from"./chunk.J2M2MXP2.js";var a="_forgeElementStyles",c=window.ShadowRoot&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function m(e){h(e._customElementName,e),u(e._customElementDependencies)&&p(e._customElementDependencies)}function p(e){e.forEach(m)}function h(e,t,n){var o;!((o=window==null?void 0:window.customElements)===null||o===void 0)&&o.get(e)||window.customElements.define(e,t,n)}function v(e,t){let n=e;for(;n.parentNode&&(n=n.parentNode,!!n.tagName);)if(!n.tagName||n.tagName.toLowerCase()===t.toLowerCase())return n;return null}function d(e){return new DOMParser().parseFromString(e,"text/html").querySelector("template")}function T(e,t){e.appendChild(d(t).content.cloneNode(!0))}function N(e,t,n,o=!1){let r=w(t);e.attachShadow({mode:"open",delegatesFocus:o}),n&&S(e,n),E(e,r)}function w(e,t){let n=d(e);if(t){t=t instanceof Array?t:[t];let o=document.createElement("style"),r=window.forgeNonce;r&&o.setAttribute("nonce",r),o.textContent=t.join(" "),n.content.appendChild(o)}return n}function E(e,t){e.shadowRoot.appendChild(t.content.cloneNode(!0))}function S(e,t,{force:n}={force:!1}){let o=e.constructor;if(!e.shadowRoot||!t){c&&(o[a]&&(o[a]=[]),e.shadowRoot&&(e.shadowRoot.adoptedStyleSheets=[]));return}if(t=t instanceof Array?t:[t],c){if(n||!o[a]){let r=new CSSStyleSheet;r.replaceSync(t.join(" ")),o[a]=[r]}e.shadowRoot.adoptedStyleSheets=o[a]}else{let r=document.createElement("style"),i=window.forgeNonce;i&&r.setAttribute("nonce",i),r.textContent=t.join(" "),e.shadowRoot.appendChild(r)}}function x(e,t){return e.shadowRoot.querySelector(t)}function y(e,t){return e.querySelector(t)}function _(e,t,n,o=!0,r=!1){let i;return typeof CustomEvent=="function"?i=new CustomEvent(t,{detail:n,bubbles:o,cancelable:r}):(i=document.createEvent("CustomEvent"),i.initCustomEvent(t,o,r,n)),e.dispatchEvent(i)}function b(e,t,n,o,r,i){let s=!!x(e,o);return i||(i=document.createComment(`(${n}) ${o}`)),t&&!s?l(r,i):!t&&s&&l(i,r),i}function D(e,t){function n(o){return!o||o===document||o===window?null:(o.assignedSlot&&(o=o.assignedSlot),o.closest(e)||n(o.getRootNode().host))}return n(t)}var f=class extends HTMLElement{};export{m as a,p as b,v as c,T as d,N as e,x as f,y as g,_ as h,b as i,D as j,f as k};
7
- //# sourceMappingURL=chunk.BIQTNLIF.js.map
6
+ import{d as l}from"./chunk.L4QSPQDE.js";import{i as u}from"./chunk.J2M2MXP2.js";var a="_forgeElementStyles",c=window.ShadowRoot&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function m(e){h(e._customElementName,e),u(e._customElementDependencies)&&p(e._customElementDependencies)}function p(e){e.forEach(m)}function h(e,t,n){var o;!((o=window==null?void 0:window.customElements)===null||o===void 0)&&o.get(e)||window.customElements.define(e,t,n)}function v(e,t){let n=e;for(;n.parentNode&&(n=n.parentNode,!!n.tagName);)if(!n.tagName||n.tagName.toLowerCase()===t.toLowerCase())return n;return null}function d(e){return new DOMParser().parseFromString(e,"text/html").querySelector("template")}function T(e,t){e.appendChild(d(t).content.cloneNode(!0))}function N(e,t,n,o=!1){let r=w(t);e.attachShadow({mode:"open",delegatesFocus:o}),n&&S(e,n),E(e,r)}function w(e,t){let n=d(e);if(t){t=t instanceof Array?t:[t];let o=document.createElement("style"),r=window.forgeNonce;r&&o.setAttribute("nonce",r),o.textContent=t.join(" "),n.content.appendChild(o)}return n}function E(e,t){e.shadowRoot.appendChild(t.content.cloneNode(!0))}function S(e,t,{force:n}={force:!1}){let o=e.constructor;if(!e.shadowRoot||!t){c&&(o[a]&&(o[a]=[]),e.shadowRoot&&(e.shadowRoot.adoptedStyleSheets=[]));return}if(t=t instanceof Array?t:[t],c){if(n||!o[a]){let r=new CSSStyleSheet;r.replaceSync(t.join(" ")),o[a]=[r]}e.shadowRoot.adoptedStyleSheets=o[a]}else{let r=document.createElement("style"),i=window.forgeNonce;i&&r.setAttribute("nonce",i),r.textContent=t.join(" "),e.shadowRoot.appendChild(r)}}function x(e,t){return e.shadowRoot.querySelector(t)}function y(e,t){return e.querySelector(t)}function _(e,t,n,o=!0,r=!1){let i;return typeof CustomEvent=="function"?i=new CustomEvent(t,{detail:n,bubbles:o,cancelable:r}):(i=document.createEvent("CustomEvent"),i.initCustomEvent(t,o,r,n)),e.dispatchEvent(i)}function b(e,t,n,o,r,i){let s=!!x(e,o);return i||(i=document.createComment(`(${n}) ${o}`)),t&&!s?l(r,i):!t&&s&&l(i,r),i}function D(e,t){function n(o){return!o||o===document||o===window?null:(o.assignedSlot&&(o=o.assignedSlot),o.closest(e)||n(o.getRootNode().host))}return n(t)}var f=class extends HTMLElement{};export{m as a,p as b,v as c,T as d,N as e,x as f,y as g,_ as h,b as i,D as j,f as k};
7
+ //# sourceMappingURL=chunk.LNTTU2GL.js.map