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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (570) hide show
  1. package/custom-elements.json +28789 -33252
  2. package/dist/esm/accordion/index.js +1 -1
  3. package/dist/esm/app-bar/app-bar/index.js +1 -1
  4. package/dist/esm/app-bar/help-button/index.js +1 -1
  5. package/dist/esm/app-bar/index.js +1 -1
  6. package/dist/esm/app-bar/menu-button/index.js +1 -1
  7. package/dist/esm/app-bar/notification-button/index.js +1 -1
  8. package/dist/esm/app-bar/profile-button/index.js +1 -1
  9. package/dist/esm/app-bar/search/index.js +1 -1
  10. package/dist/esm/autocomplete/index.js +1 -1
  11. package/dist/esm/avatar/index.js +1 -1
  12. package/dist/esm/backdrop/index.js +1 -1
  13. package/dist/esm/badge/index.js +1 -1
  14. package/dist/esm/banner/index.js +1 -1
  15. package/dist/esm/bottom-sheet/index.js +1 -1
  16. package/dist/esm/button/index.js +1 -1
  17. package/dist/esm/button-area/index.js +1 -1
  18. package/dist/esm/button-toggle/button-toggle/index.js +1 -1
  19. package/dist/esm/button-toggle/button-toggle-group/index.js +1 -1
  20. package/dist/esm/button-toggle/index.js +1 -1
  21. package/dist/esm/calendar/calendar-dropdown/index.js +1 -1
  22. package/dist/esm/calendar/calendar-menu/index.js +1 -1
  23. package/dist/esm/calendar/index.js +1 -1
  24. package/dist/esm/card/index.js +1 -1
  25. package/dist/esm/checkbox/index.js +1 -1
  26. package/dist/esm/chip-field/index.js +1 -1
  27. package/dist/esm/chips/chip/index.js +1 -1
  28. package/dist/esm/chips/chip-set/index.js +1 -1
  29. package/dist/esm/chips/index.js +1 -1
  30. package/dist/esm/chunks/{chunk.AOVXNX7P.js → chunk.24L6GVJK.js} +2 -2
  31. package/dist/esm/chunks/{chunk.WMJSYYXQ.js → chunk.27YQZWEJ.js} +2 -2
  32. package/dist/esm/chunks/{chunk.AG6IRMLZ.js → chunk.2CP5CIRB.js} +2 -2
  33. package/dist/esm/chunks/chunk.2FF7EQQ3.js +7 -0
  34. package/dist/esm/chunks/chunk.2FF7EQQ3.js.map +7 -0
  35. package/dist/esm/chunks/{chunk.USTVZ6MZ.js → chunk.345JBXIL.js} +2 -2
  36. package/dist/esm/chunks/{chunk.USTVZ6MZ.js.map → chunk.345JBXIL.js.map} +2 -2
  37. package/dist/esm/chunks/chunk.3B573FQF.js +7 -0
  38. package/dist/esm/chunks/chunk.3B573FQF.js.map +7 -0
  39. package/dist/esm/chunks/{chunk.H4VQXV2H.js → chunk.3CXCYRCE.js} +2 -2
  40. package/dist/esm/chunks/{chunk.MTIPIEXA.js → chunk.3LNZRQAL.js} +2 -2
  41. package/dist/esm/chunks/{chunk.BQ52JYLA.js → chunk.3LUG3LPU.js} +2 -2
  42. package/dist/esm/chunks/{chunk.IL4S57WO.js → chunk.3ODT27TD.js} +2 -2
  43. package/dist/esm/chunks/chunk.3S3NH5P4.js +7 -0
  44. package/dist/esm/chunks/chunk.3S3NH5P4.js.map +7 -0
  45. package/dist/esm/chunks/{chunk.XZ23XHFE.js → chunk.45N7ZZVL.js} +2 -2
  46. package/dist/esm/chunks/{chunk.YWJVZVZX.js → chunk.4GFUXXXH.js} +2 -2
  47. package/dist/esm/chunks/chunk.4UMFAYZH.js +7 -0
  48. package/dist/esm/chunks/chunk.4UMFAYZH.js.map +7 -0
  49. package/dist/esm/chunks/{chunk.ZA7JY3AY.js → chunk.5DDR6QSF.js} +2 -2
  50. package/dist/esm/chunks/{chunk.3KAKJGUS.js → chunk.5NEWFXFX.js} +2 -2
  51. package/dist/esm/chunks/{chunk.VRSPT7WX.js → chunk.5OT53ZJM.js} +2 -2
  52. package/dist/esm/chunks/{chunk.VL5RWSAV.js → chunk.6DWRGYKV.js} +2 -2
  53. package/dist/esm/chunks/{chunk.IEABOPNB.js → chunk.6T7KPDCD.js} +2 -2
  54. package/dist/esm/chunks/chunk.6TQDZAMD.js +7 -0
  55. package/dist/esm/chunks/chunk.6TQDZAMD.js.map +7 -0
  56. package/dist/esm/chunks/chunk.6V6VLKIK.js +7 -0
  57. package/dist/esm/chunks/chunk.6V6VLKIK.js.map +7 -0
  58. package/dist/esm/chunks/{chunk.SROEDYPL.js → chunk.7JO5MB55.js} +2 -2
  59. package/dist/esm/chunks/{chunk.CLYGTLXN.js → chunk.7TE74NJZ.js} +2 -2
  60. package/dist/esm/chunks/{chunk.AGLI4WR4.js → chunk.AJLS5C7O.js} +2 -2
  61. package/dist/esm/chunks/{chunk.TSSZQPLE.js → chunk.BURDWL57.js} +2 -2
  62. package/dist/esm/chunks/chunk.BYSMPFWQ.js +7 -0
  63. package/dist/esm/chunks/chunk.BYSMPFWQ.js.map +7 -0
  64. package/dist/esm/chunks/{chunk.BHE6Z5Y2.js → chunk.CQ4XBOX5.js} +2 -2
  65. package/dist/esm/chunks/{chunk.NEQX2QVX.js → chunk.DJQXJO3T.js} +2 -2
  66. package/dist/esm/chunks/chunk.DN6Y3VXC.js +7 -0
  67. package/dist/esm/chunks/{chunk.RLQB7224.js.map → chunk.DN6Y3VXC.js.map} +2 -2
  68. package/dist/esm/chunks/{chunk.VJZ7VDG5.js → chunk.DPJJB67L.js} +2 -2
  69. package/dist/esm/chunks/{chunk.7Y3BUR7Q.js → chunk.EBRMG6N3.js} +2 -2
  70. package/dist/esm/chunks/{chunk.7Y3BUR7Q.js.map → chunk.EBRMG6N3.js.map} +2 -2
  71. package/dist/esm/chunks/chunk.EPMDEQF7.js +7 -0
  72. package/dist/esm/chunks/chunk.EPMDEQF7.js.map +7 -0
  73. package/dist/esm/chunks/{chunk.OOAJHLW4.js → chunk.EZIABLIR.js} +2 -2
  74. package/dist/esm/chunks/{chunk.ZG6YF2HI.js → chunk.F53DSRUO.js} +2 -2
  75. package/dist/esm/chunks/{chunk.7AAICE77.js → chunk.FIO22U2C.js} +2 -2
  76. package/dist/esm/chunks/{chunk.U6J4VHU6.js → chunk.FKMTIOBA.js} +2 -2
  77. package/dist/esm/chunks/chunk.FMDUCGOU.js +7 -0
  78. package/dist/esm/chunks/{chunk.OJ7JO4O6.js.map → chunk.FMDUCGOU.js.map} +1 -1
  79. package/dist/esm/chunks/{chunk.W4HANHUO.js → chunk.FMGBPF7B.js} +2 -2
  80. package/dist/esm/chunks/{chunk.5MB6CTBA.js → chunk.FVFPDWA4.js} +2 -2
  81. package/dist/esm/chunks/{chunk.ENUKGA2U.js → chunk.FYPIHFXD.js} +2 -2
  82. package/dist/esm/chunks/chunk.GNQ24XWK.js +7 -0
  83. package/dist/esm/chunks/chunk.GNQ24XWK.js.map +7 -0
  84. package/dist/esm/chunks/chunk.GP6LHJDA.js +7 -0
  85. package/dist/esm/chunks/chunk.GP6LHJDA.js.map +7 -0
  86. package/dist/esm/chunks/{chunk.CE35CVDV.js → chunk.GQ33JZVE.js} +2 -2
  87. package/dist/esm/chunks/{chunk.2W23MOPP.js → chunk.GUBLRHCG.js} +2 -2
  88. package/dist/esm/chunks/{chunk.473WRJ5G.js → chunk.HJUXBSFZ.js} +2 -2
  89. package/dist/esm/chunks/chunk.HJUXBSFZ.js.map +7 -0
  90. package/dist/esm/chunks/{chunk.37B332ZK.js → chunk.HSNVTV7K.js} +2 -2
  91. package/dist/esm/chunks/{chunk.PC6TW5XE.js → chunk.HXNNWUI3.js} +2 -2
  92. package/dist/esm/chunks/{chunk.QCPV5DEG.js → chunk.IOGCI64X.js} +2 -2
  93. package/dist/esm/chunks/chunk.JB2F2HQE.js +7 -0
  94. package/dist/esm/chunks/chunk.JB2F2HQE.js.map +7 -0
  95. package/dist/esm/chunks/chunk.JGPWKCAU.js +7 -0
  96. package/dist/esm/chunks/chunk.JGPWKCAU.js.map +7 -0
  97. package/dist/esm/chunks/chunk.JU76GN6C.js +7 -0
  98. package/dist/esm/chunks/{chunk.KLU54MDQ.js.map → chunk.JU76GN6C.js.map} +2 -2
  99. package/dist/esm/chunks/chunk.K7I5FWBT.js +7 -0
  100. package/dist/esm/chunks/chunk.K7I5FWBT.js.map +7 -0
  101. package/dist/esm/chunks/{chunk.5UOX22ML.js → chunk.KKVQNKMV.js} +2 -2
  102. package/dist/esm/chunks/{chunk.YPNSK2CK.js → chunk.KW5A2U5U.js} +2 -2
  103. package/dist/esm/chunks/chunk.L6L3CPBH.js +7 -0
  104. package/dist/esm/chunks/chunk.L6L3CPBH.js.map +7 -0
  105. package/dist/esm/chunks/{chunk.KO6ODCZC.js → chunk.LIJE4T3D.js} +2 -2
  106. package/dist/esm/chunks/{chunk.KEOLH7G3.js → chunk.LQN5U4QH.js} +2 -2
  107. package/dist/esm/chunks/{chunk.5QIWLZG3.js → chunk.LSUIJDFO.js} +2 -2
  108. package/dist/esm/chunks/{chunk.77C7S7ZS.js → chunk.N65CAIE5.js} +2 -2
  109. package/dist/esm/chunks/{chunk.UKBE2FMZ.js → chunk.NNLZKMFX.js} +2 -2
  110. package/dist/esm/chunks/{chunk.EO3GP6DP.js → chunk.ON6FFHRE.js} +2 -2
  111. package/dist/esm/chunks/{chunk.OVXEOEJF.js → chunk.ONFZ3H7M.js} +2 -2
  112. package/dist/esm/chunks/{chunk.32APLNN2.js → chunk.OVVBXM6K.js} +2 -2
  113. package/dist/esm/chunks/{chunk.FLBYVCQ6.js → chunk.P3Q3IVVX.js} +2 -2
  114. package/dist/esm/chunks/{chunk.FLBYVCQ6.js.map → chunk.P3Q3IVVX.js.map} +2 -2
  115. package/dist/esm/chunks/{chunk.DKERDHXH.js → chunk.P74RZEWP.js} +2 -2
  116. package/dist/esm/chunks/{chunk.QLGJS37N.js → chunk.PBORL6KX.js} +2 -2
  117. package/dist/esm/chunks/chunk.PDJ2H5ZG.js +7 -0
  118. package/dist/esm/chunks/{chunk.UPSXYWPD.js.map → chunk.PDJ2H5ZG.js.map} +3 -3
  119. package/dist/esm/chunks/{chunk.JGURMVW7.js → chunk.PGMOAILY.js} +2 -2
  120. package/dist/esm/chunks/{chunk.OEI35LFU.js → chunk.PKCMTSWR.js} +2 -2
  121. package/dist/esm/chunks/{chunk.QUXMLWBJ.js → chunk.Q3Z6VZUD.js} +2 -2
  122. package/dist/esm/chunks/{chunk.TQWZDM6T.js → chunk.QBHJFCLL.js} +2 -2
  123. package/dist/esm/chunks/{chunk.WXVVOFNK.js → chunk.QDG6TP2Z.js} +2 -2
  124. package/dist/esm/chunks/{chunk.H5RW3A4M.js → chunk.QH27OIAK.js} +2 -2
  125. package/dist/esm/chunks/chunk.QKCPE4LW.js +7 -0
  126. package/dist/esm/chunks/{chunk.2GUWHBUU.js → chunk.QM32CJAX.js} +2 -2
  127. package/dist/esm/chunks/{chunk.2GUWHBUU.js.map → chunk.QM32CJAX.js.map} +2 -2
  128. package/dist/esm/chunks/{chunk.FLF5RTYO.js → chunk.R2CJMM2F.js} +2 -2
  129. package/dist/esm/chunks/{chunk.IQYOLMPG.js → chunk.RGDLRUSM.js} +2 -2
  130. package/dist/esm/chunks/{chunk.QIZBZGYT.js → chunk.RKPWFEFJ.js} +2 -2
  131. package/dist/esm/chunks/{chunk.RXBLU4OJ.js → chunk.S5EU72NR.js} +2 -2
  132. package/dist/esm/chunks/chunk.SJYEDGBN.js +7 -0
  133. package/dist/esm/chunks/chunk.SJYEDGBN.js.map +7 -0
  134. package/dist/esm/chunks/{chunk.T7NWP7DB.js → chunk.SW6JDC2Y.js} +2 -2
  135. package/dist/esm/chunks/{chunk.7IPAW4D2.js → chunk.TAQRHBGS.js} +2 -2
  136. package/dist/esm/chunks/{chunk.MFQRXVKO.js → chunk.TEZFEC5B.js} +2 -2
  137. package/dist/esm/chunks/{chunk.MX4JX4GT.js → chunk.THIUQ2AU.js} +2 -2
  138. package/dist/esm/chunks/{chunk.LY2Z2Z7S.js → chunk.TQMT7BIZ.js} +2 -2
  139. package/dist/esm/chunks/{chunk.GIENHEMN.js → chunk.TR45SGWL.js} +2 -2
  140. package/dist/esm/chunks/chunk.TZHVZMOB.js +12 -0
  141. package/dist/esm/chunks/chunk.TZHVZMOB.js.map +7 -0
  142. package/dist/esm/chunks/{chunk.CFAI4K3E.js → chunk.UBVWYWO7.js} +2 -2
  143. package/dist/esm/chunks/{chunk.NWVQ5HK2.js → chunk.UHPODZWA.js} +2 -2
  144. package/dist/esm/chunks/{chunk.3PMONORO.js → chunk.V4R7FCZ2.js} +2 -2
  145. package/dist/esm/chunks/chunk.V5YGDB7V.js +7 -0
  146. package/dist/esm/chunks/{chunk.3II7OT2I.js.map → chunk.V5YGDB7V.js.map} +2 -2
  147. package/dist/esm/chunks/chunk.VAE5IFEM.js +7 -0
  148. package/dist/esm/chunks/{chunk.GBAVJILM.js.map → chunk.VAE5IFEM.js.map} +4 -4
  149. package/dist/esm/chunks/{chunk.QTY25OTN.js → chunk.VCASLYVR.js} +2 -2
  150. package/dist/esm/chunks/{chunk.QTY25OTN.js.map → chunk.VCASLYVR.js.map} +2 -2
  151. package/dist/esm/chunks/chunk.W4CL56G7.js +7 -0
  152. package/dist/esm/chunks/{chunk.BQZKOIAW.js.map → chunk.W4CL56G7.js.map} +2 -2
  153. package/dist/esm/chunks/{chunk.BEFAXPXJ.js → chunk.WNX3GGYT.js} +2 -2
  154. package/dist/esm/chunks/chunk.X4NHJE7S.js +7 -0
  155. package/dist/esm/chunks/chunk.X4NHJE7S.js.map +7 -0
  156. package/dist/esm/chunks/{chunk.I7YON2TC.js → chunk.X5MI5OFS.js} +2 -2
  157. package/dist/esm/chunks/{chunk.QKTK5XUE.js → chunk.XHRBFPZ2.js} +2 -2
  158. package/dist/esm/chunks/{chunk.ASLHRT3N.js → chunk.XT6RPXTM.js} +2 -2
  159. package/dist/esm/chunks/{chunk.VGIRVTBJ.js → chunk.XWVFJVBN.js} +2 -2
  160. package/dist/esm/chunks/{chunk.YNCTSMT6.js → chunk.YXFGOJ5Z.js} +2 -2
  161. package/dist/esm/chunks/chunk.YZ26YDCO.js +7 -0
  162. package/dist/esm/chunks/{chunk.A7BCLPP4.js.map → chunk.YZ26YDCO.js.map} +2 -2
  163. package/dist/esm/chunks/chunk.Z6G2RUC2.js +7 -0
  164. package/dist/esm/chunks/chunk.Z6G2RUC2.js.map +7 -0
  165. package/dist/esm/chunks/{chunk.K6GJNDTY.js → chunk.Z7IUKJHZ.js} +2 -2
  166. package/dist/esm/chunks/{chunk.K6GJNDTY.js.map → chunk.Z7IUKJHZ.js.map} +1 -1
  167. package/dist/esm/chunks/{chunk.GG7IQL46.js → chunk.ZPH3TMNA.js} +2 -2
  168. package/dist/esm/chunks/chunk.ZSHPKAXP.js +7 -0
  169. package/dist/esm/chunks/chunk.ZSHPKAXP.js.map +7 -0
  170. package/dist/esm/chunks/{chunk.CEGBMUSR.js → chunk.ZWELGTD7.js} +2 -2
  171. package/dist/esm/circular-progress/index.js +1 -1
  172. package/dist/esm/color-picker/index.js +1 -1
  173. package/dist/esm/core/index.js +1 -1
  174. package/dist/esm/date-picker/index.js +1 -1
  175. package/dist/esm/date-range-picker/index.js +1 -1
  176. package/dist/esm/deprecated/button/index.js +1 -1
  177. package/dist/esm/deprecated/icon-button/index.js +7 -0
  178. package/dist/esm/deprecated/index.js +1 -1
  179. package/dist/esm/dialog/index.js +1 -1
  180. package/dist/esm/divider/index.js +1 -1
  181. package/dist/esm/drawer/drawer/index.js +1 -1
  182. package/dist/esm/drawer/index.js +1 -1
  183. package/dist/esm/drawer/mini-drawer/index.js +1 -1
  184. package/dist/esm/drawer/modal-drawer/index.js +1 -1
  185. package/dist/esm/expansion-panel/index.js +1 -1
  186. package/dist/esm/field/index.js +1 -1
  187. package/dist/esm/file-picker/index.js +1 -1
  188. package/dist/esm/floating-action-button/index.js +1 -1
  189. package/dist/esm/focus-indicator/index.js +1 -1
  190. package/dist/esm/icon/index.js +1 -1
  191. package/dist/esm/icon-button/index.js +1 -1
  192. package/dist/esm/index.js +1 -1
  193. package/dist/esm/inline-message/index.js +1 -1
  194. package/dist/esm/keyboard-shortcut/index.js +1 -1
  195. package/dist/esm/label/index.js +1 -1
  196. package/dist/esm/label-value/index.js +1 -1
  197. package/dist/esm/linear-progress/index.js +1 -1
  198. package/dist/esm/list/index.js +1 -1
  199. package/dist/esm/list/list/index.js +1 -1
  200. package/dist/esm/list/list-item/index.js +1 -1
  201. package/dist/esm/list-dropdown/index.js +1 -1
  202. package/dist/esm/menu/index.js +1 -1
  203. package/dist/esm/open-icon/index.js +1 -1
  204. package/dist/esm/overlay/index.js +1 -1
  205. package/dist/esm/page-state/index.js +1 -1
  206. package/dist/esm/paginator/index.js +1 -1
  207. package/dist/esm/popover/index.js +1 -1
  208. package/dist/esm/profile-card/index.js +1 -1
  209. package/dist/esm/radio/index.js +1 -1
  210. package/dist/esm/radio/radio/index.js +1 -1
  211. package/dist/esm/radio/radio-group/index.js +1 -1
  212. package/dist/esm/scaffold/index.js +1 -1
  213. package/dist/esm/select/core/index.js +1 -1
  214. package/dist/esm/select/index.js +1 -1
  215. package/dist/esm/select/option/index.js +1 -1
  216. package/dist/esm/select/option-group/index.js +1 -1
  217. package/dist/esm/select/select/index.js +1 -1
  218. package/dist/esm/select/select-dropdown/index.js +1 -1
  219. package/dist/esm/skeleton/index.js +1 -1
  220. package/dist/esm/slider/index.js +1 -1
  221. package/dist/esm/split-button/index.js +1 -1
  222. package/dist/esm/split-view/index.js +1 -1
  223. package/dist/esm/split-view/split-view/index.js +1 -1
  224. package/dist/esm/split-view/split-view-panel/index.js +1 -1
  225. package/dist/esm/stack/index.js +1 -1
  226. package/dist/esm/state-layer/index.js +1 -1
  227. package/dist/esm/stepper/index.js +1 -1
  228. package/dist/esm/stepper/step/index.js +1 -1
  229. package/dist/esm/stepper/stepper/index.js +1 -1
  230. package/dist/esm/switch/index.js +1 -1
  231. package/dist/esm/table/index.js +1 -1
  232. package/dist/esm/tabs/index.js +1 -1
  233. package/dist/esm/tabs/tab/index.js +1 -1
  234. package/dist/esm/tabs/tab-bar/index.js +1 -1
  235. package/dist/esm/text-field/index.js +1 -1
  236. package/dist/esm/time-picker/index.js +1 -1
  237. package/dist/esm/toast/index.js +1 -1
  238. package/dist/esm/toolbar/index.js +1 -1
  239. package/dist/esm/tooltip/index.js +1 -1
  240. package/dist/esm/utils/index.js +1 -1
  241. package/dist/esm/view-switcher/index.js +1 -1
  242. package/dist/esm/view-switcher/view/index.js +1 -1
  243. package/dist/forge-dark.css +1 -1
  244. package/dist/forge-tokens.css +6 -0
  245. package/dist/forge.css +1 -1
  246. package/dist/table/forge-table.css +1 -1
  247. package/dist/theme/forge-theme.css +1 -1
  248. package/dist/typography/forge-typography.css +1 -1
  249. package/esm/app-bar/search/app-bar-search.d.ts +3 -3
  250. package/esm/app-bar/search/app-bar-search.js +3 -3
  251. package/esm/avatar/avatar-constants.d.ts +0 -1
  252. package/esm/avatar/avatar-constants.js +0 -2
  253. package/esm/bottom-sheet/bottom-sheet-adapter.d.ts +26 -42
  254. package/esm/bottom-sheet/bottom-sheet-adapter.js +46 -85
  255. package/esm/bottom-sheet/bottom-sheet-constants.d.ts +16 -13
  256. package/esm/bottom-sheet/bottom-sheet-constants.js +24 -27
  257. package/esm/bottom-sheet/bottom-sheet-foundation.d.ts +17 -43
  258. package/esm/bottom-sheet/bottom-sheet-foundation.js +106 -213
  259. package/esm/bottom-sheet/bottom-sheet.d.ts +42 -29
  260. package/esm/bottom-sheet/bottom-sheet.js +52 -41
  261. package/esm/calendar/calendar-constants.d.ts +0 -1
  262. package/esm/calendar/calendar-constants.js +0 -1
  263. package/esm/calendar/calendar-dom-utils.js +10 -4
  264. package/esm/calendar/calendar-menu/calendar-menu-adapter.js +9 -2
  265. package/esm/calendar/calendar-menu/calendar-menu-constants.d.ts +0 -1
  266. package/esm/calendar/calendar-menu/calendar-menu-constants.js +0 -1
  267. package/esm/calendar/calendar-menu/calendar-menu-utils.js +10 -0
  268. package/esm/calendar/calendar-menu/calendar-menu.js +8 -2
  269. package/esm/calendar/calendar.js +6 -2
  270. package/esm/checkbox/checkbox-foundation.js +9 -9
  271. package/esm/color-picker/color-picker.js +1 -1
  272. package/esm/deprecated/icon-button/deprecated-icon-button-component-delegate.d.ts +38 -0
  273. package/esm/deprecated/icon-button/deprecated-icon-button-component-delegate.js +93 -0
  274. package/esm/deprecated/icon-button/deprecated-icon-button-constants.d.ts +28 -0
  275. package/esm/deprecated/icon-button/deprecated-icon-button-constants.js +28 -0
  276. package/esm/deprecated/icon-button/deprecated-icon-button.d.ts +62 -0
  277. package/esm/deprecated/icon-button/deprecated-icon-button.js +208 -0
  278. package/esm/deprecated/icon-button/index.d.ts +12 -0
  279. package/esm/deprecated/icon-button/index.js +16 -0
  280. package/esm/dialog/dialog.js +1 -1
  281. package/esm/drawer/drawer/drawer.js +1 -1
  282. package/esm/drawer/mini-drawer/mini-drawer.js +1 -1
  283. package/esm/drawer/modal-drawer/modal-drawer.js +1 -1
  284. package/esm/field/field.js +1 -1
  285. package/esm/index.d.ts +1 -3
  286. package/esm/index.js +4 -8
  287. package/esm/list/list/list.js +1 -1
  288. package/esm/list/list-item/list-item-adapter.js +4 -0
  289. package/esm/list/list-item/list-item.d.ts +6 -4
  290. package/esm/list/list-item/list-item.js +7 -5
  291. package/esm/open-icon/index.d.ts +0 -2
  292. package/esm/open-icon/index.js +0 -2
  293. package/esm/open-icon/open-icon-constants.d.ts +10 -6
  294. package/esm/open-icon/open-icon-constants.js +9 -11
  295. package/esm/open-icon/open-icon.d.ts +37 -12
  296. package/esm/open-icon/open-icon.js +67 -22
  297. package/esm/paginator/paginator-adapter.d.ts +19 -52
  298. package/esm/paginator/paginator-adapter.js +25 -106
  299. package/esm/paginator/paginator-constants.d.ts +22 -35
  300. package/esm/paginator/paginator-constants.js +17 -40
  301. package/esm/paginator/paginator-foundation.d.ts +10 -12
  302. package/esm/paginator/paginator-foundation.js +39 -51
  303. package/esm/paginator/paginator.d.ts +4 -7
  304. package/esm/paginator/paginator.js +24 -45
  305. package/esm/popover/popover.js +1 -1
  306. package/esm/profile-card/profile-card.js +1 -1
  307. package/esm/radio/radio/radio-foundation.js +2 -2
  308. package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
  309. package/esm/stepper/step/step.js +1 -1
  310. package/esm/switch/switch-foundation.js +6 -6
  311. package/esm/table/table-constants.d.ts +1 -0
  312. package/esm/table/table-constants.js +4 -3
  313. package/esm/table/table-foundation.js +2 -2
  314. package/esm/table/table-utils.js +31 -14
  315. package/esm/tooltip/tooltip.js +1 -1
  316. package/esm/utils/color-utils.d.ts +0 -4
  317. package/esm/utils/color-utils.js +0 -19
  318. package/esm/view-switcher/view-switcher.js +1 -1
  319. package/package.json +1 -12
  320. package/styles/bottom-sheet/_core.scss +19 -0
  321. package/styles/bottom-sheet/_token-utils.scss +30 -0
  322. package/styles/bottom-sheet/bottom-sheet.scss +59 -3
  323. package/styles/{color-picker/_variables.scss → bottom-sheet/index.scss} +1 -1
  324. package/styles/calendar/_mixins.scss +33 -56
  325. package/styles/calendar/_variables.scss +39 -39
  326. package/styles/calendar/calendar-menu/_mixins.scss +25 -84
  327. package/styles/color-picker/_mixins.scss +15 -21
  328. package/styles/color-picker/color-picker.scss +0 -1
  329. package/styles/core/styles/animation/index.scss +22 -0
  330. package/styles/core/styles/border/index.scss +10 -1
  331. package/styles/core/styles/elevation/index.scss +19 -26
  332. package/styles/core/styles/shape/index.scss +9 -0
  333. package/styles/core/styles/spacing/index.scss +9 -0
  334. package/styles/core/styles/theme/index.scss +2 -13
  335. package/styles/core/styles/tokens/bottom-sheet/_tokens.scss +21 -0
  336. package/styles/core/styles/tokens/elevation/_tokens.scss +35 -84
  337. package/styles/core/styles/tokens/list/list/_tokens.scss +14 -1
  338. package/styles/core/styles/tokens/list/list-item/_tokens.scss +6 -6
  339. package/styles/core/styles/tokens/open-icon/_tokens.scss +25 -0
  340. package/styles/core/styles/tokens/popover/_tokens.scss +1 -1
  341. package/styles/core/styles/tokens/theme/_tokens.core.scss +60 -30
  342. package/styles/core/styles/tokens/theme/_tokens.scss +1 -48
  343. package/styles/core/styles/tokens/theme/_tokens.status.scss +78 -32
  344. package/styles/core/styles/tokens/theme/_tokens.surface.scss +33 -51
  345. package/styles/core/styles/tokens/theme/_tokens.text.scss +20 -26
  346. package/styles/core/styles/tokens/theme/_tokens.utilities.scss +13 -23
  347. package/styles/core/styles/tokens/tooltip/_tokens.scss +1 -1
  348. package/styles/deprecated/icon-button/deprecated-icon-button.scss +114 -0
  349. package/styles/dialog/_core.scss +3 -1
  350. package/styles/dialog/dialog.scss +1 -1
  351. package/styles/drawer/base/_mixins.scss +11 -10
  352. package/styles/drawer/base/_variables.scss +6 -5
  353. package/styles/drawer/drawer/_variables.scss +6 -5
  354. package/styles/drawer/mini-drawer/_mixins.scss +11 -14
  355. package/styles/drawer/modal-drawer/_mixins.scss +4 -9
  356. package/styles/field/_core.variant.scss +0 -1
  357. package/styles/forge-tokens.scss +40 -0
  358. package/styles/forge.scss +1 -10
  359. package/styles/linear-progress/_core.scss +0 -1
  360. package/styles/list/list/list.scss +23 -7
  361. package/styles/list/list-item/_core.scss +10 -10
  362. package/styles/list/list-item/list-item.scss +4 -4
  363. package/styles/open-icon/_core.scss +26 -0
  364. package/styles/open-icon/_token-utils.scss +30 -0
  365. package/styles/{paginator/_variables.scss → open-icon/index.scss} +1 -1
  366. package/styles/open-icon/open-icon.scss +75 -3
  367. package/styles/paginator/_core.scss +42 -0
  368. package/styles/{typography/_index.scss → paginator/index.scss} +1 -2
  369. package/styles/paginator/paginator.scss +49 -5
  370. package/styles/profile-card/profile-card.scss +0 -1
  371. package/styles/split-view/split-view/_mixins.scss +0 -2
  372. package/styles/split-view/split-view-panel/_mixins.scss +12 -16
  373. package/styles/split-view/split-view-panel/_variables.scss +0 -1
  374. package/styles/table/_core.scss +333 -0
  375. package/styles/table/_variables.scss +22 -37
  376. package/styles/table/forge-table.scss +217 -3
  377. package/styles/{theme/_index.scss → table/index.scss} +1 -2
  378. package/styles/theme/_theme-dark.scss +0 -5
  379. package/styles/theme/forge-theme.scss +0 -7
  380. package/styles/typography/forge-typography.scss +0 -3
  381. package/styles/view-switcher/_mixins.scss +8 -8
  382. package/dist/busy-indicator/forge-busy-indicator.css +0 -6
  383. package/dist/esm/busy-indicator/index.js +0 -7
  384. package/dist/esm/chunks/chunk.3CTKWBV2.js +0 -7
  385. package/dist/esm/chunks/chunk.3CTKWBV2.js.map +0 -7
  386. package/dist/esm/chunks/chunk.3II7OT2I.js +0 -7
  387. package/dist/esm/chunks/chunk.6VS3LYAF.js +0 -7
  388. package/dist/esm/chunks/chunk.6VS3LYAF.js.map +0 -7
  389. package/dist/esm/chunks/chunk.7RLY2O3H.js +0 -7
  390. package/dist/esm/chunks/chunk.7RLY2O3H.js.map +0 -7
  391. package/dist/esm/chunks/chunk.A7BCLPP4.js +0 -7
  392. package/dist/esm/chunks/chunk.AFWWND2C.js +0 -7
  393. package/dist/esm/chunks/chunk.AFWWND2C.js.map +0 -7
  394. package/dist/esm/chunks/chunk.AIJK3CTV.js +0 -12
  395. package/dist/esm/chunks/chunk.AIJK3CTV.js.map +0 -7
  396. package/dist/esm/chunks/chunk.BQZKOIAW.js +0 -7
  397. package/dist/esm/chunks/chunk.BV7EAQST.js +0 -7
  398. package/dist/esm/chunks/chunk.BV7EAQST.js.map +0 -7
  399. package/dist/esm/chunks/chunk.CGFSMACZ.js +0 -7
  400. package/dist/esm/chunks/chunk.CGFSMACZ.js.map +0 -7
  401. package/dist/esm/chunks/chunk.GBAVJILM.js +0 -7
  402. package/dist/esm/chunks/chunk.GRYO5XP2.js +0 -7
  403. package/dist/esm/chunks/chunk.GRYO5XP2.js.map +0 -7
  404. package/dist/esm/chunks/chunk.HD2SLIL2.js +0 -7
  405. package/dist/esm/chunks/chunk.HD2SLIL2.js.map +0 -7
  406. package/dist/esm/chunks/chunk.HG4IDRAC.js +0 -7
  407. package/dist/esm/chunks/chunk.HG4IDRAC.js.map +0 -7
  408. package/dist/esm/chunks/chunk.KCCW4AMU.js +0 -7
  409. package/dist/esm/chunks/chunk.KCCW4AMU.js.map +0 -7
  410. package/dist/esm/chunks/chunk.KLU54MDQ.js +0 -7
  411. package/dist/esm/chunks/chunk.MFS7AVW6.js +0 -7
  412. package/dist/esm/chunks/chunk.MFS7AVW6.js.map +0 -7
  413. package/dist/esm/chunks/chunk.O5WAQQNR.js +0 -7
  414. package/dist/esm/chunks/chunk.O5WAQQNR.js.map +0 -7
  415. package/dist/esm/chunks/chunk.OJ7JO4O6.js +0 -7
  416. package/dist/esm/chunks/chunk.OQHDHS2C.js +0 -7
  417. package/dist/esm/chunks/chunk.OQHDHS2C.js.map +0 -7
  418. package/dist/esm/chunks/chunk.OREDK5MJ.js +0 -7
  419. package/dist/esm/chunks/chunk.OREDK5MJ.js.map +0 -7
  420. package/dist/esm/chunks/chunk.QVATEY5S.js +0 -7
  421. package/dist/esm/chunks/chunk.QVATEY5S.js.map +0 -7
  422. package/dist/esm/chunks/chunk.RKIJTSSL.js +0 -7
  423. package/dist/esm/chunks/chunk.RKIJTSSL.js.map +0 -7
  424. package/dist/esm/chunks/chunk.RLQB7224.js +0 -7
  425. package/dist/esm/chunks/chunk.RSYEG2RW.js +0 -7
  426. package/dist/esm/chunks/chunk.RSYEG2RW.js.map +0 -7
  427. package/dist/esm/chunks/chunk.SZOZIJZI.js +0 -7
  428. package/dist/esm/chunks/chunk.SZOZIJZI.js.map +0 -7
  429. package/dist/esm/chunks/chunk.UPSXYWPD.js +0 -7
  430. package/dist/esm/chunks/chunk.V6KUOCAR.js +0 -7
  431. package/dist/esm/chunks/chunk.V6KUOCAR.js.map +0 -7
  432. package/dist/esm/chunks/chunk.X77NKT6Z.js +0 -7
  433. package/dist/esm/chunks/chunk.X77NKT6Z.js.map +0 -7
  434. package/dist/esm/chunks/chunk.YRAEFQJW.js +0 -7
  435. package/dist/esm/chunks/chunk.YRAEFQJW.js.map +0 -7
  436. package/dist/esm/quantity-field/index.js +0 -7
  437. package/dist/esm/quantity-field/index.js.map +0 -7
  438. package/dist/esm/theme/index.js +0 -7
  439. package/dist/esm/theme/index.js.map +0 -7
  440. package/dist/quantity-field/forge-quantity-field.css +0 -6
  441. package/dist/typography/forge-typography-legacy.css +0 -6
  442. package/dist/utils/forge-utils.css +0 -6
  443. package/esm/busy-indicator/busy-indicator-adapter.d.ts +0 -155
  444. package/esm/busy-indicator/busy-indicator-adapter.js +0 -203
  445. package/esm/busy-indicator/busy-indicator-constants.d.ts +0 -49
  446. package/esm/busy-indicator/busy-indicator-constants.js +0 -58
  447. package/esm/busy-indicator/busy-indicator-foundation.d.ts +0 -97
  448. package/esm/busy-indicator/busy-indicator-foundation.js +0 -268
  449. package/esm/busy-indicator/busy-indicator.d.ts +0 -77
  450. package/esm/busy-indicator/busy-indicator.js +0 -115
  451. package/esm/busy-indicator/index.d.ts +0 -10
  452. package/esm/busy-indicator/index.js +0 -14
  453. package/esm/open-icon/open-icon-adapter.d.ts +0 -18
  454. package/esm/open-icon/open-icon-adapter.js +0 -27
  455. package/esm/open-icon/open-icon-foundation.d.ts +0 -22
  456. package/esm/open-icon/open-icon-foundation.js +0 -35
  457. package/esm/quantity-field/index.d.ts +0 -11
  458. package/esm/quantity-field/index.js +0 -15
  459. package/esm/quantity-field/quantity-field-adapter.d.ts +0 -77
  460. package/esm/quantity-field/quantity-field-adapter.js +0 -221
  461. package/esm/quantity-field/quantity-field-component-delegate.d.ts +0 -44
  462. package/esm/quantity-field/quantity-field-component-delegate.js +0 -129
  463. package/esm/quantity-field/quantity-field-constants.d.ts +0 -35
  464. package/esm/quantity-field/quantity-field-constants.js +0 -41
  465. package/esm/quantity-field/quantity-field-foundation.d.ts +0 -36
  466. package/esm/quantity-field/quantity-field-foundation.js +0 -100
  467. package/esm/quantity-field/quantity-field.d.ts +0 -34
  468. package/esm/quantity-field/quantity-field.js +0 -100
  469. package/esm/theme/color-constants.d.ts +0 -313
  470. package/esm/theme/color-constants.js +0 -363
  471. package/esm/theme/index.d.ts +0 -7
  472. package/esm/theme/index.js +0 -7
  473. package/esm/theme/theme-utils.d.ts +0 -9
  474. package/esm/theme/theme-utils.js +0 -68
  475. package/styles/bottom-sheet/_mixins.scss +0 -93
  476. package/styles/bottom-sheet/_variables.scss +0 -7
  477. package/styles/busy-indicator/_mixins.scss +0 -185
  478. package/styles/busy-indicator/_variables.scss +0 -9
  479. package/styles/busy-indicator/busy-indicator.scss +0 -22
  480. package/styles/busy-indicator/forge-busy-indicator.scss +0 -8
  481. package/styles/open-icon/_mixins.scss +0 -39
  482. package/styles/open-icon/_variables.scss +0 -8
  483. package/styles/paginator/_mixins.scss +0 -136
  484. package/styles/quantity-field/_mixins.scss +0 -116
  485. package/styles/quantity-field/forge-quantity-field.scss +0 -18
  486. package/styles/quantity-field/quantity-field.scss +0 -16
  487. package/styles/table/_mixins.scss +0 -547
  488. package/styles/theme/_custom-properties.scss +0 -311
  489. package/styles/theme/_keys.scss +0 -477
  490. package/styles/theme/_theme-utils.scss +0 -23
  491. package/styles/theme/_theme-values.scss +0 -246
  492. package/styles/theme/_theme.scss +0 -279
  493. package/styles/typography/_mixins.scss +0 -73
  494. package/styles/typography/_variables.scss +0 -100
  495. package/styles/typography/forge-typography-legacy.scss +0 -8
  496. package/styles/utils/forge-utils.scss +0 -45
  497. /package/dist/esm/chunks/{chunk.AOVXNX7P.js.map → chunk.24L6GVJK.js.map} +0 -0
  498. /package/dist/esm/chunks/{chunk.WMJSYYXQ.js.map → chunk.27YQZWEJ.js.map} +0 -0
  499. /package/dist/esm/chunks/{chunk.AG6IRMLZ.js.map → chunk.2CP5CIRB.js.map} +0 -0
  500. /package/dist/esm/chunks/{chunk.H4VQXV2H.js.map → chunk.3CXCYRCE.js.map} +0 -0
  501. /package/dist/esm/chunks/{chunk.MTIPIEXA.js.map → chunk.3LNZRQAL.js.map} +0 -0
  502. /package/dist/esm/chunks/{chunk.BQ52JYLA.js.map → chunk.3LUG3LPU.js.map} +0 -0
  503. /package/dist/esm/chunks/{chunk.IL4S57WO.js.map → chunk.3ODT27TD.js.map} +0 -0
  504. /package/dist/esm/chunks/{chunk.XZ23XHFE.js.map → chunk.45N7ZZVL.js.map} +0 -0
  505. /package/dist/esm/chunks/{chunk.YWJVZVZX.js.map → chunk.4GFUXXXH.js.map} +0 -0
  506. /package/dist/esm/chunks/{chunk.ZA7JY3AY.js.map → chunk.5DDR6QSF.js.map} +0 -0
  507. /package/dist/esm/chunks/{chunk.3KAKJGUS.js.map → chunk.5NEWFXFX.js.map} +0 -0
  508. /package/dist/esm/chunks/{chunk.VRSPT7WX.js.map → chunk.5OT53ZJM.js.map} +0 -0
  509. /package/dist/esm/chunks/{chunk.VL5RWSAV.js.map → chunk.6DWRGYKV.js.map} +0 -0
  510. /package/dist/esm/chunks/{chunk.IEABOPNB.js.map → chunk.6T7KPDCD.js.map} +0 -0
  511. /package/dist/esm/chunks/{chunk.SROEDYPL.js.map → chunk.7JO5MB55.js.map} +0 -0
  512. /package/dist/esm/chunks/{chunk.CLYGTLXN.js.map → chunk.7TE74NJZ.js.map} +0 -0
  513. /package/dist/esm/chunks/{chunk.AGLI4WR4.js.map → chunk.AJLS5C7O.js.map} +0 -0
  514. /package/dist/esm/chunks/{chunk.TSSZQPLE.js.map → chunk.BURDWL57.js.map} +0 -0
  515. /package/dist/esm/chunks/{chunk.BHE6Z5Y2.js.map → chunk.CQ4XBOX5.js.map} +0 -0
  516. /package/dist/esm/chunks/{chunk.NEQX2QVX.js.map → chunk.DJQXJO3T.js.map} +0 -0
  517. /package/dist/esm/chunks/{chunk.VJZ7VDG5.js.map → chunk.DPJJB67L.js.map} +0 -0
  518. /package/dist/esm/chunks/{chunk.OOAJHLW4.js.map → chunk.EZIABLIR.js.map} +0 -0
  519. /package/dist/esm/chunks/{chunk.ZG6YF2HI.js.map → chunk.F53DSRUO.js.map} +0 -0
  520. /package/dist/esm/chunks/{chunk.7AAICE77.js.map → chunk.FIO22U2C.js.map} +0 -0
  521. /package/dist/esm/chunks/{chunk.U6J4VHU6.js.map → chunk.FKMTIOBA.js.map} +0 -0
  522. /package/dist/esm/chunks/{chunk.W4HANHUO.js.map → chunk.FMGBPF7B.js.map} +0 -0
  523. /package/dist/esm/chunks/{chunk.5MB6CTBA.js.map → chunk.FVFPDWA4.js.map} +0 -0
  524. /package/dist/esm/chunks/{chunk.ENUKGA2U.js.map → chunk.FYPIHFXD.js.map} +0 -0
  525. /package/dist/esm/chunks/{chunk.CE35CVDV.js.map → chunk.GQ33JZVE.js.map} +0 -0
  526. /package/dist/esm/chunks/{chunk.2W23MOPP.js.map → chunk.GUBLRHCG.js.map} +0 -0
  527. /package/dist/esm/chunks/{chunk.37B332ZK.js.map → chunk.HSNVTV7K.js.map} +0 -0
  528. /package/dist/esm/chunks/{chunk.PC6TW5XE.js.map → chunk.HXNNWUI3.js.map} +0 -0
  529. /package/dist/esm/chunks/{chunk.77C7S7ZS.js.map → chunk.IOGCI64X.js.map} +0 -0
  530. /package/dist/esm/chunks/{chunk.5UOX22ML.js.map → chunk.KKVQNKMV.js.map} +0 -0
  531. /package/dist/esm/chunks/{chunk.YPNSK2CK.js.map → chunk.KW5A2U5U.js.map} +0 -0
  532. /package/dist/esm/chunks/{chunk.KO6ODCZC.js.map → chunk.LIJE4T3D.js.map} +0 -0
  533. /package/dist/esm/chunks/{chunk.KEOLH7G3.js.map → chunk.LQN5U4QH.js.map} +0 -0
  534. /package/dist/esm/chunks/{chunk.5QIWLZG3.js.map → chunk.LSUIJDFO.js.map} +0 -0
  535. /package/dist/esm/chunks/{chunk.QCPV5DEG.js.map → chunk.N65CAIE5.js.map} +0 -0
  536. /package/dist/esm/chunks/{chunk.UKBE2FMZ.js.map → chunk.NNLZKMFX.js.map} +0 -0
  537. /package/dist/esm/chunks/{chunk.EO3GP6DP.js.map → chunk.ON6FFHRE.js.map} +0 -0
  538. /package/dist/esm/chunks/{chunk.OVXEOEJF.js.map → chunk.ONFZ3H7M.js.map} +0 -0
  539. /package/dist/esm/chunks/{chunk.32APLNN2.js.map → chunk.OVVBXM6K.js.map} +0 -0
  540. /package/dist/esm/chunks/{chunk.DKERDHXH.js.map → chunk.P74RZEWP.js.map} +0 -0
  541. /package/dist/esm/chunks/{chunk.QLGJS37N.js.map → chunk.PBORL6KX.js.map} +0 -0
  542. /package/dist/esm/chunks/{chunk.JGURMVW7.js.map → chunk.PGMOAILY.js.map} +0 -0
  543. /package/dist/esm/chunks/{chunk.OEI35LFU.js.map → chunk.PKCMTSWR.js.map} +0 -0
  544. /package/dist/esm/chunks/{chunk.QUXMLWBJ.js.map → chunk.Q3Z6VZUD.js.map} +0 -0
  545. /package/dist/esm/chunks/{chunk.TQWZDM6T.js.map → chunk.QBHJFCLL.js.map} +0 -0
  546. /package/dist/esm/chunks/{chunk.WXVVOFNK.js.map → chunk.QDG6TP2Z.js.map} +0 -0
  547. /package/dist/esm/chunks/{chunk.H5RW3A4M.js.map → chunk.QH27OIAK.js.map} +0 -0
  548. /package/dist/esm/chunks/{chunk.473WRJ5G.js.map → chunk.QKCPE4LW.js.map} +0 -0
  549. /package/dist/esm/chunks/{chunk.FLF5RTYO.js.map → chunk.R2CJMM2F.js.map} +0 -0
  550. /package/dist/esm/chunks/{chunk.IQYOLMPG.js.map → chunk.RGDLRUSM.js.map} +0 -0
  551. /package/dist/esm/chunks/{chunk.QIZBZGYT.js.map → chunk.RKPWFEFJ.js.map} +0 -0
  552. /package/dist/esm/chunks/{chunk.RXBLU4OJ.js.map → chunk.S5EU72NR.js.map} +0 -0
  553. /package/dist/esm/chunks/{chunk.T7NWP7DB.js.map → chunk.SW6JDC2Y.js.map} +0 -0
  554. /package/dist/esm/chunks/{chunk.7IPAW4D2.js.map → chunk.TAQRHBGS.js.map} +0 -0
  555. /package/dist/esm/chunks/{chunk.MFQRXVKO.js.map → chunk.TEZFEC5B.js.map} +0 -0
  556. /package/dist/esm/chunks/{chunk.MX4JX4GT.js.map → chunk.THIUQ2AU.js.map} +0 -0
  557. /package/dist/esm/chunks/{chunk.LY2Z2Z7S.js.map → chunk.TQMT7BIZ.js.map} +0 -0
  558. /package/dist/esm/chunks/{chunk.GIENHEMN.js.map → chunk.TR45SGWL.js.map} +0 -0
  559. /package/dist/esm/chunks/{chunk.CFAI4K3E.js.map → chunk.UBVWYWO7.js.map} +0 -0
  560. /package/dist/esm/chunks/{chunk.NWVQ5HK2.js.map → chunk.UHPODZWA.js.map} +0 -0
  561. /package/dist/esm/chunks/{chunk.3PMONORO.js.map → chunk.V4R7FCZ2.js.map} +0 -0
  562. /package/dist/esm/chunks/{chunk.BEFAXPXJ.js.map → chunk.WNX3GGYT.js.map} +0 -0
  563. /package/dist/esm/chunks/{chunk.I7YON2TC.js.map → chunk.X5MI5OFS.js.map} +0 -0
  564. /package/dist/esm/chunks/{chunk.QKTK5XUE.js.map → chunk.XHRBFPZ2.js.map} +0 -0
  565. /package/dist/esm/chunks/{chunk.ASLHRT3N.js.map → chunk.XT6RPXTM.js.map} +0 -0
  566. /package/dist/esm/chunks/{chunk.VGIRVTBJ.js.map → chunk.XWVFJVBN.js.map} +0 -0
  567. /package/dist/esm/chunks/{chunk.YNCTSMT6.js.map → chunk.YXFGOJ5Z.js.map} +0 -0
  568. /package/dist/esm/chunks/{chunk.GG7IQL46.js.map → chunk.ZPH3TMNA.js.map} +0 -0
  569. /package/dist/esm/chunks/{chunk.CEGBMUSR.js.map → chunk.ZWELGTD7.js.map} +0 -0
  570. /package/dist/esm/{busy-indicator → deprecated/icon-button}/index.js.map +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/avatar/avatar-constants.ts", "../../src/avatar/avatar-adapter.ts", "../../src/avatar/avatar-foundation.ts", "../../src/avatar/avatar.ts", "../../src/avatar/index.ts"],
4
- "sourcesContent": ["import { COMPONENT_NAME_PREFIX } from '../constants';\nimport { COLOR_CONSTANTS } from '../theme';\n\nconst elementName: keyof HTMLElementTagNameMap = `${COMPONENT_NAME_PREFIX}avatar`;\n\nconst attributes = {\n IMAGE_URL: 'image-url',\n TEXT: 'text',\n LETTER_COUNT: 'letter-count'\n};\n\nconst numbers = {\n DEFAULT_LETTER_COUNT: 2\n};\n\nconst selectors = {\n ROOT: '.forge-avatar',\n DEFAULT_SLOT: '.forge-avatar > slot:not([name])'\n};\n\nconst strings = {\n DEFAULT_COLOR: COLOR_CONSTANTS.themeColors.tertiary,\n BACKGROUND_VARNAME: '--forge-avatar-background'\n};\n\nexport const AVATAR_CONSTANTS = {\n elementName,\n attributes,\n numbers,\n selectors,\n strings\n};\n", "import { getShadowElement, removeAllChildren } from '@tylertech/forge-core';\nimport { BaseAdapter, IBaseAdapter } from '../core/base/base-adapter';\nimport { IAvatarComponent } from './avatar';\nimport { AVATAR_CONSTANTS } from './avatar-constants';\n\nexport interface IAvatarAdapter extends IBaseAdapter {\n setBackgroundImageUrl(url: string): Promise<boolean>;\n removeBackgroundImage(): void;\n setText(value: string): void;\n clearText(): void;\n}\n\n/**\n * The DOM adapter behind the `<forge-avatar>` element.\n */\nexport class AvatarAdapter extends BaseAdapter<IAvatarComponent> implements IAvatarAdapter {\n private _root: HTMLElement;\n private _defaultSlot: HTMLSlotElement;\n\n constructor(component: IAvatarComponent) {\n super(component);\n this._root = getShadowElement(this._component, AVATAR_CONSTANTS.selectors.ROOT);\n this._defaultSlot = getShadowElement(this._component, AVATAR_CONSTANTS.selectors.DEFAULT_SLOT) as HTMLSlotElement;\n }\n\n /**\n * Sets the background image URL.\n * @param url The URL.\n */\n public async setBackgroundImageUrl(url: string): Promise<boolean> {\n // Set before loading image to prevent a flash of background color\n this._root.classList.add('forge-avatar--image');\n return new Promise<boolean>(resolve => {\n const image = new Image();\n image.onload = () => {\n this._root.style.backgroundImage = `url(${image.src})`;\n resolve(true);\n };\n\n image.onerror = () => {\n this._root.classList.remove('forge-avatar--image');\n resolve(false);\n };\n\n image.src = url;\n });\n }\n\n /**\n * Removes the background image URL.\n */\n public removeBackgroundImage(): void {\n this._root.style.removeProperty('background-image');\n this._root.classList.remove('forge-avatar--image');\n }\n\n /**\n * Sets the avatar text content.\n * @param value The text value.\n */\n public setText(value: string): void {\n this._defaultSlot.textContent = value;\n }\n\n public clearText(): void {\n removeAllChildren(this._defaultSlot);\n }\n}\n", "import { ICustomElementFoundation, isDefined, isString } from '@tylertech/forge-core';\nimport { IAvatarAdapter } from './avatar-adapter';\nimport { AVATAR_CONSTANTS } from './avatar-constants';\n\nexport interface IAvatarFoundation extends ICustomElementFoundation {\n imageUrl: string;\n text: string;\n letterCount: number;\n}\n\n/**\n * The custom element class behind the `<forge-avatar>` class.\n */\nexport class AvatarFoundation implements IAvatarFoundation {\n private _imageUrl: string;\n private _text = '';\n private _letterCount = AVATAR_CONSTANTS.numbers.DEFAULT_LETTER_COUNT;\n private _initialized = false;\n\n constructor(private _adapter: IAvatarAdapter) {}\n\n public initialize(): void {\n this._render();\n this._initialized = true;\n }\n\n public disconnect(): void {\n this._initialized = false;\n }\n\n private _render(): void {\n this._setText();\n this._setBackgroundImageUrl();\n }\n\n private async _setBackgroundImageUrl(): Promise<void> {\n if (this._imageUrl) {\n if (await this._adapter.setBackgroundImageUrl(this._imageUrl)) {\n this._adapter.clearText();\n }\n } else {\n this._adapter.removeBackgroundImage();\n }\n }\n\n private _setText(): void {\n const data = this._getTextContent(this._text, this._letterCount);\n\n if (data) {\n this._adapter.setText(data);\n } else {\n this._adapter.clearText();\n }\n }\n\n /**\n * Gets the text content to display in the avatar.\n * @param {string} value The text to parse.\n */\n private _getTextContent(value: string, count: number): string {\n if (!value || !isString(value) || count <= 0) {\n return '';\n }\n\n let text: string;\n\n if (count === 1) {\n text = value[0].toUpperCase();\n } else {\n const words = value.match(/\\S+/g) || [];\n text = words.slice(0, count).reduce((prev, curr) => prev += curr[0].toUpperCase(), '');\n }\n\n return text;\n }\n\n /** Gets/sets the text to display. */\n public get text(): string {\n return this._text;\n }\n public set text(value: string) {\n if (this._text !== value) {\n this._text = value || '';\n this._adapter.setHostAttribute(AVATAR_CONSTANTS.attributes.TEXT, this._text);\n if (this._initialized) {\n this._render();\n }\n }\n }\n\n /** Controls the number of letters to display from the text. By default the text is split on spaces and the first character of each word is used. */\n public get letterCount(): number {\n return this._letterCount;\n }\n public set letterCount(value: number) {\n if (this._letterCount !== value) {\n this._letterCount = value;\n this._adapter.setHostAttribute(AVATAR_CONSTANTS.attributes.LETTER_COUNT, isDefined(this._letterCount) ? this._letterCount.toString() : '');\n if (this._initialized) {\n this._render();\n }\n }\n }\n\n /** Sets the background image URL to use. */\n public get imageUrl(): string {\n return this._imageUrl;\n }\n public set imageUrl(value: string) {\n if (this._imageUrl !== value) {\n this._imageUrl = value;\n if (this._initialized) {\n this._render();\n }\n }\n }\n}\n", "import { CustomElement, attachShadowTemplate, coerceNumber, FoundationProperty } from '@tylertech/forge-core';\n\nimport { AvatarAdapter } from './avatar-adapter';\nimport { AvatarFoundation } from './avatar-foundation';\nimport { AVATAR_CONSTANTS } from './avatar-constants';\nimport { BaseComponent, IBaseComponent } from '../core/base/base-component';\n\nconst template = '<template><div class=\\\"forge-avatar\\\" aria-hidden=\\\"true\\\" part=\\\"root\\\"><slot></slot></div></template>';\nconst styles = ':host{contain:content;display:inline-block}:host([hidden]){display:none}.forge-avatar{--_avatar-size:var(--forge-avatar-size, 40px);--_avatar-background:var(--forge-avatar-background, var(--forge-theme-tertiary, #3d5afe));--_avatar-color:var(--forge-avatar-color, var(--forge-theme-on-tertiary, #ffffff));--_avatar-transition-duration:var(--forge-avatar-transition-duration, var(--forge-animation-duration-short4, 200ms));--_avatar-transition-timing:var(--forge-avatar-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_avatar-shape:var(--forge-avatar-shape, var(--forge-shape-round, 50%))}.forge-avatar{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;overflow:hidden;-webkit-transition:height var(--_avatar-transition-duration) var(--_avatar-transition-timing),width var(--_avatar-transition-duration) var(--_avatar-transition-timing);transition:height var(--_avatar-transition-duration) var(--_avatar-transition-timing),width var(--_avatar-transition-duration) var(--_avatar-transition-timing);border-radius:var(--_avatar-shape);-webkit-box-sizing:border-box;box-sizing:border-box;width:var(--_avatar-size);height:var(--_avatar-size);background-color:var(--_avatar-background);background-position:center;background-repeat:no-repeat;background-size:cover;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-subheading2-font-family, var(--forge-typography-font-family, \\\"Roboto\\\", sans-serif));font-size:var(--forge-typography-subheading2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-subheading2-font-size-scale, 1)));font-weight:var(--forge-typography-subheading2-font-weight,400);line-height:var(--forge-typography-subheading2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-subheading2-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-subheading2-letter-spacing, normal);text-transform:var(--forge-typography-subheading2-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-subheading2-text-decoration,inherit);text-decoration:var(--forge-typography-subheading2-text-decoration,inherit);color:var(--_avatar-color)}.forge-avatar--image{background-color:inherit}';\n\nexport interface IAvatarComponent extends IBaseComponent {\n imageUrl: string;\n text: string;\n letterCount: number;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-avatar': IAvatarComponent;\n }\n}\n\n/**\n * @tag forge-avatar\n * \n * @summary Avatars represent an entity via text or image.\n * \n * @description\n * The avatar component allows you to provide text or images to display that represent an entity. By default, the\n * avatar will display textual content as single characters (character count is configurable), or display an image or\n * icon based on the URL provided to it.\n * \n * @property {string} text - The text to display in the avatar.\n * @property {number} letterCount - Controls the number of letters to display from the text. By default the text is split on spaces and the first character of each word is used.\n * @property {string} imageUrl - The background image URL to use.\n * \n * @attribute {string} text - The text to display in the avatar.\n * @attribute {number} letter-count - Controls the number of letters to display from the text. By default the text is split on spaces and the first character of each word is used.\n * @attribute {string} image-url - The background image URL to use.\n * \n * @cssproperty --forge-avatar-background - The background color of the avatar.\n * @cssproperty --forge-avatar-shape - The border radius of the avatar, defaults to 50%.\n * @cssproperty --forge-avatar-color - The text color of the avatar.\n * @cssproperty --forge-avatar-size - The height and width of the avatar.\n * @cssproperty --forge-avatar-transition-duration - The transition duration for animations.\n * @cssproperty --forge-avatar-transition-timing - The transition timing function for animations.\n * \n * @csspart root - The root container element.\n * \n * @slot - The default/unnamed slot for avatar content if not provided via text/imageUrl.\n */\n@CustomElement({\n name: AVATAR_CONSTANTS.elementName\n})\nexport class AvatarComponent extends BaseComponent implements IAvatarComponent {\n public static get observedAttributes(): string[] {\n return [\n AVATAR_CONSTANTS.attributes.TEXT,\n AVATAR_CONSTANTS.attributes.LETTER_COUNT,\n AVATAR_CONSTANTS.attributes.IMAGE_URL\n ];\n }\n\n private _foundation: AvatarFoundation;\n\n constructor() {\n super();\n attachShadowTemplate(this, template, styles);\n this._foundation = new AvatarFoundation(new AvatarAdapter(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 AVATAR_CONSTANTS.attributes.TEXT:\n this.text = newValue;\n break;\n case AVATAR_CONSTANTS.attributes.LETTER_COUNT:\n this.letterCount = coerceNumber(newValue);\n break;\n case AVATAR_CONSTANTS.attributes.IMAGE_URL:\n this.imageUrl = newValue;\n break;\n }\n }\n\n /** The text to display in the avatar. */\n @FoundationProperty()\n public declare text: string;\n\n /** Controls the number of letters to display from the text. By default the text is split on spaces and the first character of each word is used. */\n @FoundationProperty()\n public declare letterCount: number;\n\n /** The background image URL to use. */\n @FoundationProperty()\n public declare imageUrl: string;\n}\n", "import { defineCustomElement } from '@tylertech/forge-core';\n\nimport { AvatarComponent } from './avatar';\n\nexport * from './avatar-adapter';\nexport * from './avatar-constants';\nexport * from './avatar-foundation';\nexport * from './avatar';\n\nexport function defineAvatarComponent(): void {\n defineCustomElement(AvatarComponent);\n}\n"],
5
- "mappings": "qWAGA,IAAMA,EAA2C,GAAGC,UAE9CC,EAAa,CACjB,UAAW,YACX,KAAM,OACN,aAAc,cAChB,EAEMC,EAAU,CACd,qBAAsB,CACxB,EAEMC,EAAY,CAChB,KAAM,gBACN,aAAc,kCAChB,EAEMC,EAAU,CACd,cAAeC,EAAgB,YAAY,SAC3C,mBAAoB,2BACtB,EAEaC,EAAmB,CAC9B,YAAAP,EACA,WAAAE,EACA,QAAAC,EACA,UAAAC,EACA,QAAAC,CACF,EChBO,IAAMG,EAAN,cAA4BC,CAAwD,CAIzF,YAAYC,EAA6B,CACvC,MAAMA,CAAS,EACf,KAAK,MAAQC,EAAiB,KAAK,WAAYC,EAAiB,UAAU,IAAI,EAC9E,KAAK,aAAeD,EAAiB,KAAK,WAAYC,EAAiB,UAAU,YAAY,CAC/F,CAMA,MAAa,sBAAsBC,EAA+B,CAEhE,YAAK,MAAM,UAAU,IAAI,qBAAqB,EACvC,IAAI,QAAiBC,GAAW,CACrC,IAAMC,EAAQ,IAAI,MAClBA,EAAM,OAAS,IAAM,CACnB,KAAK,MAAM,MAAM,gBAAkB,OAAOA,EAAM,OAChDD,EAAQ,EAAI,CACd,EAEAC,EAAM,QAAU,IAAM,CACpB,KAAK,MAAM,UAAU,OAAO,qBAAqB,EACjDD,EAAQ,EAAK,CACf,EAEAC,EAAM,IAAMF,CACd,CAAC,CACH,CAKO,uBAA8B,CACnC,KAAK,MAAM,MAAM,eAAe,kBAAkB,EAClD,KAAK,MAAM,UAAU,OAAO,qBAAqB,CACnD,CAMO,QAAQG,EAAqB,CAClC,KAAK,aAAa,YAAcA,CAClC,CAEO,WAAkB,CACvBC,EAAkB,KAAK,YAAY,CACrC,CACF,ECtDO,IAAMC,EAAN,KAAoD,CAMzD,YAAoBC,EAA0B,CAA1B,cAAAA,EAJpB,KAAQ,MAAQ,GAChB,KAAQ,aAAeC,EAAiB,QAAQ,qBAChD,KAAQ,aAAe,EAEwB,CAExC,YAAmB,CACxB,KAAK,QAAQ,EACb,KAAK,aAAe,EACtB,CAEO,YAAmB,CACxB,KAAK,aAAe,EACtB,CAEQ,SAAgB,CACtB,KAAK,SAAS,EACd,KAAK,uBAAuB,CAC9B,CAEA,MAAc,wBAAwC,CAChD,KAAK,UACH,MAAM,KAAK,SAAS,sBAAsB,KAAK,SAAS,GAC1D,KAAK,SAAS,UAAU,EAG1B,KAAK,SAAS,sBAAsB,CAExC,CAEQ,UAAiB,CACvB,IAAMC,EAAO,KAAK,gBAAgB,KAAK,MAAO,KAAK,YAAY,EAE3DA,EACF,KAAK,SAAS,QAAQA,CAAI,EAE1B,KAAK,SAAS,UAAU,CAE5B,CAMQ,gBAAgBC,EAAeC,EAAuB,CAC5D,GAAI,CAACD,GAAS,CAACE,EAASF,CAAK,GAAKC,GAAS,EACzC,MAAO,GAGT,IAAIE,EAEJ,OAAIF,IAAU,EACZE,EAAOH,EAAM,CAAC,EAAE,YAAY,EAG5BG,GADcH,EAAM,MAAM,MAAM,GAAK,CAAC,GACzB,MAAM,EAAGC,CAAK,EAAE,OAAO,CAACG,EAAMC,IAASD,GAAQC,EAAK,CAAC,EAAE,YAAY,EAAG,EAAE,EAGhFF,CACT,CAGA,IAAW,MAAe,CACxB,OAAO,KAAK,KACd,CACA,IAAW,KAAKH,EAAe,CACzB,KAAK,QAAUA,IACjB,KAAK,MAAQA,GAAS,GACtB,KAAK,SAAS,iBAAiBF,EAAiB,WAAW,KAAM,KAAK,KAAK,EACvE,KAAK,cACP,KAAK,QAAQ,EAGnB,CAGA,IAAW,aAAsB,CAC/B,OAAO,KAAK,YACd,CACA,IAAW,YAAYE,EAAe,CAChC,KAAK,eAAiBA,IACxB,KAAK,aAAeA,EACpB,KAAK,SAAS,iBAAiBF,EAAiB,WAAW,aAAcQ,EAAU,KAAK,YAAY,EAAI,KAAK,aAAa,SAAS,EAAI,EAAE,EACrI,KAAK,cACP,KAAK,QAAQ,EAGnB,CAGA,IAAW,UAAmB,CAC5B,OAAO,KAAK,SACd,CACA,IAAW,SAASN,EAAe,CAC7B,KAAK,YAAcA,IACrB,KAAK,UAAYA,EACb,KAAK,cACP,KAAK,QAAQ,EAGnB,CACF,EC7GA,IAAMO,EAAW,oGACXC,EAAS,gyEA8CFC,EAAN,cAA8BC,CAA0C,CAW7E,aAAc,CACZ,MAAM,EACNC,EAAqB,KAAMJ,EAAUC,CAAM,EAC3C,KAAK,YAAc,IAAII,EAAiB,IAAIC,EAAc,IAAI,CAAC,CACjE,CAdA,WAAkB,oBAA+B,CAC/C,MAAO,CACLC,EAAiB,WAAW,KAC5BA,EAAiB,WAAW,aAC5BA,EAAiB,WAAW,SAC9B,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,EAAiB,WAAW,KAC/B,KAAK,KAAOG,EACZ,MACF,KAAKH,EAAiB,WAAW,aAC/B,KAAK,YAAcI,EAAaD,CAAQ,EACxC,MACF,KAAKH,EAAiB,WAAW,UAC/B,KAAK,SAAWG,EAChB,KACJ,CACF,CAaF,EATiBE,EAAA,CADdC,EAAmB,GAxCTX,EAyCI,oBAIAU,EAAA,CADdC,EAAmB,GA5CTX,EA6CI,2BAIAU,EAAA,CADdC,EAAmB,GAhDTX,EAiDI,wBAjDJA,EAANU,EAAA,CAHNE,EAAc,CACb,KAAMP,EAAiB,WACzB,CAAC,GACYL,GC7CN,SAASa,IAA8B,CAC5CC,EAAoBC,CAAe,CACrC",
6
- "names": ["elementName", "COMPONENT_NAME_PREFIX", "attributes", "numbers", "selectors", "strings", "COLOR_CONSTANTS", "AVATAR_CONSTANTS", "AvatarAdapter", "BaseAdapter", "component", "getShadowElement", "AVATAR_CONSTANTS", "url", "resolve", "image", "value", "removeAllChildren", "AvatarFoundation", "_adapter", "AVATAR_CONSTANTS", "data", "value", "count", "isString", "text", "prev", "curr", "isDefined", "template", "styles", "AvatarComponent", "BaseComponent", "attachShadowTemplate", "AvatarFoundation", "AvatarAdapter", "AVATAR_CONSTANTS", "name", "oldValue", "newValue", "coerceNumber", "__decorateClass", "FoundationProperty", "CustomElement", "defineAvatarComponent", "defineCustomElement", "AvatarComponent"]
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{a as e}from"./chunk.3CTKWBV2.js";function l(){let o="0123456789ABCDEF".split(""),r="#";for(let t=0;t<6;t++)r+=o[Math.floor(Math.random()*16)];return r}function s(o){(!o||typeof o!="string")&&(o=""),o=o.toUpperCase();let r;if(o.charCodeAt(0)<65)r=l();else{let t=Math.floor((o.charCodeAt(0)-65)%e.letterColors.length);r=e.letterColors[t]}return r}export{l as a,s as b};
7
- //# sourceMappingURL=chunk.RKIJTSSL.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/utils/color-utils.ts"],
4
- "sourcesContent": ["import { COLOR_CONSTANTS } from '../theme';\n\n/**\n * Gets a random hex color.\n * @returns {string} The CSS-compatible hex color string.\n */\nexport function randomHexColor(): string {\n const letters = '0123456789ABCDEF'.split('');\n let color = '#';\n\n for (let i = 0; i < 6; i++) {\n color += letters[Math.floor(Math.random() * 16)];\n }\n\n return color;\n}\n\n/**\n * Gets the color for the provided letter.\n */\nexport function getTextColor(text?: string): string {\n if (!text || typeof text !== 'string') {\n text = '';\n }\n\n text = text.toUpperCase();\n\n let color: string;\n\n if (text.charCodeAt(0) < 65) {\n color = randomHexColor();\n } else {\n const colorIndex = Math.floor((text.charCodeAt(0) - 65) % COLOR_CONSTANTS.letterColors.length);\n color = COLOR_CONSTANTS.letterColors[colorIndex];\n }\n\n return color;\n}\n"],
5
- "mappings": "wCAMO,SAASA,GAAyB,CACvC,IAAMC,EAAU,mBAAmB,MAAM,EAAE,EACvCC,EAAQ,IAEZ,QAASC,EAAI,EAAGA,EAAI,EAAGA,IACrBD,GAASD,EAAQ,KAAK,MAAM,KAAK,OAAO,EAAI,EAAE,CAAC,EAGjD,OAAOC,CACT,CAKO,SAASE,EAAaC,EAAuB,EAC9C,CAACA,GAAQ,OAAOA,GAAS,YAC3BA,EAAO,IAGTA,EAAOA,EAAK,YAAY,EAExB,IAAIH,EAEJ,GAAIG,EAAK,WAAW,CAAC,EAAI,GACvBH,EAAQF,EAAe,MAClB,CACL,IAAMM,EAAa,KAAK,OAAOD,EAAK,WAAW,CAAC,EAAI,IAAME,EAAgB,aAAa,MAAM,EAC7FL,EAAQK,EAAgB,aAAaD,CAAU,EAGjD,OAAOJ,CACT",
6
- "names": ["randomHexColor", "letters", "color", "i", "getTextColor", "text", "colorIndex", "COLOR_CONSTANTS"]
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- var v={name:"add",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>'};var t={name:"arrow_downward",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/></svg>'};var h={name:"arrow_drop_down",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M7 10l5 5 5-5z"/></svg>'};var a={name:"arrow_right",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 17l5-5-5-5v10z"/><path d="M0 24V0h24v24H0z" fill="none"/></svg>'};var l={name:"block",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9A7.902 7.902 0 014 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1A7.902 7.902 0 0120 12c0 4.42-3.58 8-8 8z"/></svg>'};var o={name:"cancel",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>'};var e={name:"check_box_outline_blank",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg>'},n={name:"check_box",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>'};var s={name:"check",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>'};var c={name:"clear",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>'};var w={name:"close",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>'};var r={name:"control_point",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>'};var p={name:"date_range",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"/></svg>'};var z={name:"drag_handle",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/></svg>'};var g={name:"first_page",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/><path d="M24 24H0V0h24v24z" fill="none"/></svg>'};var m={name:"help",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/></svg>'};var d={name:"insert_invitation",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/></svg>'};var i={name:"keyboard_arrow_down",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/></svg>'},x={name:"keyboard_arrow_left",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"/></svg>'},H={name:"keyboard_arrow_right",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></svg>'},M={name:"keyboard_arrow_up",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/></svg>'};var V={name:"last_page",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/></svg>'};var f={name:"lens",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/></svg>'};var y={name:"menu",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>'};var L={name:"mode_edit",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 000-1.41l-2.34-2.34a.996.996 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>'};var B={name:"notifications",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 22c1.1 0 2-.9 2-2h-4a2 2 0 002 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"/></svg>'};var I={name:"remove_circle_outline",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>'};var _={name:"search",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>'};var C={name:"unfold_more",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"/></svg>'};var u={name:"warning",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>'};export{v as a,t as b,h as c,a as d,l as e,o as f,e as g,n as h,s as i,c as j,w as k,r as l,p as m,z as n,g as o,m as p,d as q,i as r,x as s,H as t,M as u,V as v,f as w,y as x,L as y,B as z,I as A,_ as B,C,u as D};
7
- //# sourceMappingURL=chunk.RLQB7224.js.map
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{r as g,t as h}from"./chunk.RLQB7224.js";import{a as u,d as C,l as T}from"./chunk.T7NWP7DB.js";import{a as p}from"./chunk.NVUMRW44.js";import{a as _}from"./chunk.OLFOVKQG.js";import{a as f,b}from"./chunk.VRSPT7WX.js";import{a as O,e as d,f as s,k as N}from"./chunk.LNTTU2GL.js";import{q as I}from"./chunk.L4QSPQDE.js";import{k as l}from"./chunk.J2M2MXP2.js";import{d as i}from"./chunk.M3QDAYD2.js";var E=`${b}open-icon`,A={ICON:"forge-open-icon",ICON_OPEN:"forge-open-icon--open"},x={OPEN:"open",ORIENTATION:"orientation"},S={ORIENTATION_VERTICAL:"vertical",ORIENTATION_HORIZONTAL:"horizontal"},e={elementName:E,classes:A,attributes:x,strings:S};var r=class{constructor(o){this._adapter=o;this._open=!1;this._orientation=e.strings.ORIENTATION_VERTICAL}initialize(){this._adapter.setOrientation(this._orientation),this._adapter.setOpenState(this._open)}get open(){return this._open}set open(o){o=!!o,this._open!==o&&(this._open=o,this._adapter.setOpenState(this._open))}get orientation(){return this._orientation}set orientation(o){this._orientation=o,this._adapter.setOrientation(this._orientation)}};var a=class extends _{constructor(t){super(t);this._openIcon=s(t,`.${e.classes.ICON}`),this._iconElement=s(t,u.elementName)}setOrientation(t){t===e.strings.ORIENTATION_HORIZONTAL?this._iconElement.name="keyboard_arrow_right":this._iconElement.name="keyboard_arrow_down"}setOpenState(t){I(this._openIcon,t,e.classes.ICON_OPEN)}};var w='<template><span class="forge-open-icon" part="root"><forge-icon class="icon" part="icon"></forge-icon></span></template>',v=".forge-open-icon{color:#757575;color:var(--forge-theme-icon-color,#757575)}.forge-open-icon .icon{-webkit-transition:-webkit-transform .4s;transition:-webkit-transform .4s;transition:transform .4s;transition:transform .4s,-webkit-transform .4s}.forge-open-icon.forge-open-icon--open .icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host{line-height:.5}:host([hidden]){display:none}",n=class extends N{constructor(){super();C.define([h,g]),d(this,w,v),this._foundation=new r(new a(this))}static get observedAttributes(){return[e.attributes.OPEN,e.attributes.ORIENTATION]}initializedCallback(){this._foundation.initialize()}attributeChangedCallback(t,R,m){switch(t){case e.attributes.OPEN:this.open=l(m);break;case e.attributes.ORIENTATION:this.orientation=m;break}}};i([p()],n.prototype,"open",2),i([p()],n.prototype,"orientation",2),n=i([f({name:e.elementName,dependencies:[T]})],n);function ee(){O(n)}export{e as a,r as b,a as c,n as d,ee as e};
7
- //# sourceMappingURL=chunk.RSYEG2RW.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/open-icon/open-icon-constants.ts", "../../src/open-icon/open-icon-foundation.ts", "../../src/open-icon/open-icon-adapter.ts", "../../src/open-icon/open-icon.ts", "../../src/open-icon/index.ts"],
4
- "sourcesContent": ["import { COMPONENT_NAME_PREFIX } from '../constants';\n\nconst elementName: keyof HTMLElementTagNameMap = `${COMPONENT_NAME_PREFIX}open-icon`;\n\nconst classes = {\n ICON: 'forge-open-icon',\n ICON_OPEN: 'forge-open-icon--open'\n};\n\nconst attributes = {\n OPEN: 'open',\n ORIENTATION: 'orientation'\n};\n\nconst strings = {\n ORIENTATION_VERTICAL: 'vertical',\n ORIENTATION_HORIZONTAL: 'horizontal'\n};\n\nexport const OPEN_ICON_CONSTANTS = {\n elementName,\n classes,\n attributes,\n strings\n};\n", "import { ICustomElementFoundation } from '@tylertech/forge-core';\n\nimport { IOpenIconAdapter } from './open-icon-adapter';\nimport { OPEN_ICON_CONSTANTS } from './open-icon-constants';\n\nexport interface IOpenIconFoundation extends ICustomElementFoundation {\n open: boolean;\n}\n\nexport class OpenIconFoundation implements IOpenIconFoundation {\n private _open = false;\n private _orientation = OPEN_ICON_CONSTANTS.strings.ORIENTATION_VERTICAL;\n\n constructor(private _adapter: IOpenIconAdapter) {}\n\n public initialize(): void {\n this._adapter.setOrientation(this._orientation);\n this._adapter.setOpenState(this._open);\n }\n\n /** Controls the open state of the icon. */\n public get open(): boolean {\n return this._open;\n }\n public set open(value: boolean) {\n value = Boolean(value);\n if (this._open !== value) {\n this._open = value;\n this._adapter.setOpenState(this._open);\n }\n }\n\n public get orientation(): string {\n return this._orientation;\n }\n public set orientation(value: string) {\n this._orientation = value;\n this._adapter.setOrientation(this._orientation);\n }\n}\n", "import { getShadowElement, toggleClass } from '@tylertech/forge-core';\nimport { BaseAdapter, IBaseAdapter } from '../core/base/base-adapter';\nimport { IOpenIconComponent } from './open-icon';\nimport { OPEN_ICON_CONSTANTS } from './open-icon-constants';\nimport { ICON_CONSTANTS, IIconComponent } from '../icon';\n\nexport interface IOpenIconAdapter extends IBaseAdapter {\n setOrientation: (orientation: string) => void;\n setOpenState: (open: boolean) => void;\n}\n\nexport class OpenIconAdapter extends BaseAdapter<IOpenIconComponent> implements IOpenIconAdapter {\n private _openIcon: HTMLElement;\n private _iconElement: IIconComponent;\n\n constructor(component: IOpenIconComponent) {\n super(component);\n this._openIcon = getShadowElement(component, `.${OPEN_ICON_CONSTANTS.classes.ICON}`);\n this._iconElement = getShadowElement(component, ICON_CONSTANTS.elementName) as IIconComponent;\n }\n\n public setOrientation(orientation: string): void {\n if (orientation === OPEN_ICON_CONSTANTS.strings.ORIENTATION_HORIZONTAL) {\n this._iconElement.name = 'keyboard_arrow_right';\n } else {\n this._iconElement.name = 'keyboard_arrow_down';\n }\n }\n\n public setOpenState(open: boolean): void {\n toggleClass(this._openIcon, open, OPEN_ICON_CONSTANTS.classes.ICON_OPEN);\n }\n}\n", "import { CustomElement, attachShadowTemplate, coerceBoolean, FoundationProperty } from '@tylertech/forge-core';\nimport { tylIconKeyboardArrowRight, tylIconKeyboardArrowDown } from '@tylertech/tyler-icons/standard';\nimport { OpenIconFoundation } from './open-icon-foundation';\nimport { OpenIconAdapter } from './open-icon-adapter';\nimport { OPEN_ICON_CONSTANTS } from './open-icon-constants';\nimport { IconRegistry, IconComponent } from '../icon';\nimport { BaseComponent, IBaseComponent } from '../core/base/base-component';\n\nconst template = '<template><span class=\\\"forge-open-icon\\\" part=\\\"root\\\"><forge-icon class=\\\"icon\\\" part=\\\"icon\\\"></forge-icon></span></template>';\nconst styles = '.forge-open-icon{color:#757575;color:var(--forge-theme-icon-color,#757575)}.forge-open-icon .icon{-webkit-transition:-webkit-transform .4s;transition:-webkit-transform .4s;transition:transform .4s;transition:transform .4s,-webkit-transform .4s}.forge-open-icon.forge-open-icon--open .icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host{line-height:.5}:host([hidden]){display:none}';\n\nexport interface IOpenIconComponent extends IBaseComponent {\n open: boolean;\n orientation: string;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-open-icon': IOpenIconComponent;\n }\n}\n\n/**\n * The web component class behind the `<forge-open-icon>` custom element.\n * \n * @tag forge-open-icon\n */\n@CustomElement({\n name: OPEN_ICON_CONSTANTS.elementName,\n dependencies: [IconComponent]\n})\nexport class OpenIconComponent extends BaseComponent implements IOpenIconComponent {\n public static get observedAttributes(): string[] {\n return [\n OPEN_ICON_CONSTANTS.attributes.OPEN,\n OPEN_ICON_CONSTANTS.attributes.ORIENTATION\n ];\n }\n\n private _foundation: OpenIconFoundation;\n\n constructor() {\n super();\n IconRegistry.define([tylIconKeyboardArrowRight, tylIconKeyboardArrowDown]);\n attachShadowTemplate(this, template, styles);\n this._foundation = new OpenIconFoundation(new OpenIconAdapter(this));\n }\n\n public initializedCallback(): void {\n this._foundation.initialize();\n }\n\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n switch (name) {\n case OPEN_ICON_CONSTANTS.attributes.OPEN:\n this.open = coerceBoolean(newValue);\n break;\n case OPEN_ICON_CONSTANTS.attributes.ORIENTATION:\n this.orientation = newValue;\n break;\n }\n }\n\n /** Controls the open state of the icon. */\n @FoundationProperty()\n public declare open: boolean;\n\n /**\n * Gets/sets the orientation of the icon.\n * Valid values are 'vertical' (default) or 'horizontal'.\n */\n @FoundationProperty()\n public declare orientation: string;\n}\n", "import { defineCustomElement } from '@tylertech/forge-core';\n\nimport { OpenIconComponent } from './open-icon';\n\nexport * from './open-icon-adapter';\nexport * from './open-icon-constants';\nexport * from './open-icon-foundation';\nexport * from './open-icon';\n\nexport function defineOpenIconComponent(): void {\n defineCustomElement(OpenIconComponent);\n}\n"],
5
- "mappings": "oZAEA,IAAMA,EAA2C,GAAGC,aAE9CC,EAAU,CACd,KAAM,kBACN,UAAW,uBACb,EAEMC,EAAa,CACjB,KAAM,OACN,YAAa,aACf,EAEMC,EAAU,CACd,qBAAsB,WACtB,uBAAwB,YAC1B,EAEaC,EAAsB,CACjC,YAAAL,EACA,QAAAE,EACA,WAAAC,EACA,QAAAC,CACF,ECfO,IAAME,EAAN,KAAwD,CAI7D,YAAoBC,EAA4B,CAA5B,cAAAA,EAHpB,KAAQ,MAAQ,GAChB,KAAQ,aAAeC,EAAoB,QAAQ,oBAEF,CAE1C,YAAmB,CACxB,KAAK,SAAS,eAAe,KAAK,YAAY,EAC9C,KAAK,SAAS,aAAa,KAAK,KAAK,CACvC,CAGA,IAAW,MAAgB,CACzB,OAAO,KAAK,KACd,CACA,IAAW,KAAKC,EAAgB,CAC9BA,EAAQ,EAAQA,EACZ,KAAK,QAAUA,IACjB,KAAK,MAAQA,EACb,KAAK,SAAS,aAAa,KAAK,KAAK,EAEzC,CAEA,IAAW,aAAsB,CAC/B,OAAO,KAAK,YACd,CACA,IAAW,YAAYA,EAAe,CACpC,KAAK,aAAeA,EACpB,KAAK,SAAS,eAAe,KAAK,YAAY,CAChD,CACF,EC5BO,IAAMC,EAAN,cAA8BC,CAA4D,CAI/F,YAAYC,EAA+B,CACzC,MAAMA,CAAS,EACf,KAAK,UAAYC,EAAiBD,EAAW,IAAIE,EAAoB,QAAQ,MAAM,EACnF,KAAK,aAAeD,EAAiBD,EAAWG,EAAe,WAAW,CAC5E,CAEO,eAAeC,EAA2B,CAC3CA,IAAgBF,EAAoB,QAAQ,uBAC9C,KAAK,aAAa,KAAO,uBAEzB,KAAK,aAAa,KAAO,qBAE7B,CAEO,aAAaG,EAAqB,CACvCC,EAAY,KAAK,UAAWD,EAAMH,EAAoB,QAAQ,SAAS,CACzE,CACF,ECxBA,IAAMK,EAAW,2HACXC,EAAS,gZAsBFC,EAAN,cAAgCC,CAA4C,CAUjF,aAAc,CACZ,MAAM,EACNC,EAAa,OAAO,CAACC,EAA2BC,CAAwB,CAAC,EACzEC,EAAqB,KAAMP,EAAUC,CAAM,EAC3C,KAAK,YAAc,IAAIO,EAAmB,IAAIC,EAAgB,IAAI,CAAC,CACrE,CAdA,WAAkB,oBAA+B,CAC/C,MAAO,CACLC,EAAoB,WAAW,KAC/BA,EAAoB,WAAW,WACjC,CACF,CAWO,qBAA4B,CACjC,KAAK,YAAY,WAAW,CAC9B,CAEO,yBAAyBC,EAAcC,EAAkBC,EAAwB,CACtF,OAAQF,EAAM,CACZ,KAAKD,EAAoB,WAAW,KAClC,KAAK,KAAOI,EAAcD,CAAQ,EAClC,MACF,KAAKH,EAAoB,WAAW,YAClC,KAAK,YAAcG,EACnB,KACJ,CACF,CAYF,EARiBE,EAAA,CADdC,EAAmB,GAjCTd,EAkCI,oBAOAa,EAAA,CADdC,EAAmB,GAxCTd,EAyCI,2BAzCJA,EAANa,EAAA,CAJNE,EAAc,CACb,KAAMP,EAAoB,YAC1B,aAAc,CAACQ,CAAa,CAC9B,CAAC,GACYhB,GCtBN,SAASiB,IAAgC,CAC9CC,EAAoBC,CAAiB,CACvC",
6
- "names": ["elementName", "COMPONENT_NAME_PREFIX", "classes", "attributes", "strings", "OPEN_ICON_CONSTANTS", "OpenIconFoundation", "_adapter", "OPEN_ICON_CONSTANTS", "value", "OpenIconAdapter", "BaseAdapter", "component", "getShadowElement", "OPEN_ICON_CONSTANTS", "ICON_CONSTANTS", "orientation", "open", "toggleClass", "template", "styles", "OpenIconComponent", "BaseComponent", "IconRegistry", "tylIconKeyboardArrowRight", "tylIconKeyboardArrowDown", "attachShadowTemplate", "OpenIconFoundation", "OpenIconAdapter", "OPEN_ICON_CONSTANTS", "name", "oldValue", "newValue", "coerceBoolean", "__decorateClass", "FoundationProperty", "CustomElement", "IconComponent", "defineOpenIconComponent", "defineCustomElement", "OpenIconComponent"]
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{g as m}from"./chunk.CLYGTLXN.js";import{a}from"./chunk.SQ3AZAHF.js";import{b as r}from"./chunk.VRSPT7WX.js";import{a as p}from"./chunk.M3QDAYD2.js";var d=`${r}text-field`,u={SHOW_CLEAR:"show-clear"},_=p({},u),h={FIELD:"#field",CLEAR_BUTTON_SLOT:"slot[name=clear-button]",FORGE_LABEL:m.elementName,INPUT:":where(input:not([type=button], [type=checkbox], [type=color], [type=hidden], [type=image], [type=radio], [type=range], [type=reset], [type=submit]), textarea)"},g=["disabled","placeholder"],f={TEXTAREA:"TEXTAREA",LABEL:"LABEL"},T={CLEAR:`${d}-clear`},E={elementName:d,observedAttributes:u,attributes:_,selectors:h,observedInputAttributes:g,tagNames:f,events:T};var c=class extends a{constructor(e){super(e)}_build(){let e=document.createElement(E.elementName);return this._inputElement=this._buildInputElement(e),e.append(this._inputElement),e}_configure(){var e,t,n,i,l,o,s;(e=this._config.options)!=null&&e.id&&(this._element.id=this._config.options.id),(t=this._config.options)!=null&&t.label&&this._createLabel(this._config.options.label),(n=this._config.options)!=null&&n.startElement&&(this._config.options.startElement.slot="start",this._element.append(this._config.options.startElement)),(i=this._config.options)!=null&&i.leadingElement&&(this._config.options.leadingElement.slot="start",this._element.append(this._config.options.leadingElement)),(l=this._config.options)!=null&&l.endElement&&(this._config.options.endElement.slot="end",this._element.append(this._config.options.endElement)),(o=this._config.options)!=null&&o.trailingElement&&(this._config.options.trailingElement.slot="end",this._element.append(this._config.options.trailingElement)),(s=this._config.options)!=null&&s.accessoryElement&&(this._config.options.accessoryElement.slot="accessory",this._element.append(this._config.options.accessoryElement))}get value(){return this._inputElement.value}set value(e){this._inputElement.value=e}get disabled(){return this._inputElement.disabled}set disabled(e){this._inputElement.disabled=e}get invalid(){return this._element.invalid}set invalid(e){this._element.invalid=e}get inputElement(){return this._inputElement}get labelElement(){return this._labelElement}onChange(e){this._inputElement.addEventListener("input",t=>e(t.target.value))}onFocus(e){this._inputElement.addEventListener("focus",t=>e(t))}onBlur(e){this._inputElement.addEventListener("blur",t=>e(t))}setLabel(e){var t;if(e){this._labelElement?this._labelElement.textContent=e:this._createLabel(e);return}(t=this._labelElement)==null||t.remove(),this._labelElement=void 0}setSupportTextStart(e){var t;if(e){this._supportTextStartElement||(this._supportTextStartElement=document.createElement("span"),this._supportTextStartElement.slot="support-text-start",this._element.append(this._supportTextStartElement)),this._supportTextStartElement.textContent=e;return}(t=this._supportTextStartElement)==null||t.remove(),this._supportTextStartElement=void 0}setHelperText(e){this.setSupportTextStart(e)}setSupportTextEnd(e){var t;if(e){this._supportTextEndElement||(this._supportTextEndElement=document.createElement("span"),this._supportTextEndElement.slot="support-text-end",this._element.append(this._supportTextEndElement)),this._supportTextEndElement.textContent=e;return}(t=this._supportTextEndElement)==null||t.remove(),this._supportTextEndElement=void 0}floatLabel(e){this._element.floatLabel=e}_createLabel(e){var t;this._labelElement=document.createElement("label"),this._labelElement.textContent=e,this._labelElement.slot="label",(t=this._config.options)!=null&&t.id&&(this._labelElement.htmlFor=this._config.options.id),this._element.append(this._labelElement)}_buildInputElement(e){var n,i,l,o,s;let t=document.createElement("input");return t.type=(i=(n=this._config.options)==null?void 0:n.type)!=null?i:"text",((l=this._config.options)==null?void 0:l.value)!==void 0&&(t.value=this._config.options.value),(o=this._config.options)!=null&&o.id&&(t.id=this._config.options.id),((s=this._config.options)==null?void 0:s.placeholder)!==void 0&&(t.placeholder=this._config.options.placeholder),e.append(t),t}};export{E as a,c as b};
7
- //# sourceMappingURL=chunk.SZOZIJZI.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/text-field/text-field-constants.ts", "../../src/text-field/text-field-component-delegate.ts"],
4
- "sourcesContent": ["import { COMPONENT_NAME_PREFIX } from '../constants';\nimport { LABEL_CONSTANTS } from '../label';\n\nconst elementName: keyof HTMLElementTagNameMap = `${COMPONENT_NAME_PREFIX}text-field`;\n\nconst observedAttributes = {\n SHOW_CLEAR: 'show-clear'\n};\n\nconst attributes = {\n ...observedAttributes\n};\n\nconst selectors = {\n FIELD: '#field',\n CLEAR_BUTTON_SLOT: 'slot[name=clear-button]',\n FORGE_LABEL: LABEL_CONSTANTS.elementName,\n INPUT: ':where(input:not([type=button], [type=checkbox], [type=color], [type=hidden], [type=image], [type=radio], [type=range], [type=reset], [type=submit]), textarea)'\n};\n\nconst observedInputAttributes = ['disabled', 'placeholder'];\n\nconst tagNames = {\n TEXTAREA: 'TEXTAREA',\n LABEL: 'LABEL'\n};\n\nconst events = {\n CLEAR: `${elementName}-clear`\n};\n\nexport const TEXT_FIELD_CONSTANTS = {\n elementName,\n observedAttributes,\n attributes,\n selectors,\n observedInputAttributes,\n tagNames,\n events\n};\n\nexport type TextFieldInputAttributeObserver = (name: keyof typeof observedInputAttributes, value: string | null) => void;\nexport type TextFieldValueChangeListener = (value: string | null) => void;\n", "import { IBaseComponentDelegateConfig } from '../core/delegates/base-component-delegate';\nimport { FormFieldComponentDelegate, IFormFieldComponentDelegateOptions } from '../core/delegates/form-field-component-delegate';\nimport { ITextFieldComponent } from './text-field';\nimport { TEXT_FIELD_CONSTANTS } from './text-field-constants';\n\nexport type TextFieldComponentDelegateProps = Partial<ITextFieldComponent>;\nexport interface ITextFieldComponentDelegateOptions extends IFormFieldComponentDelegateOptions {\n id?: string;\n label?: string;\n type?: string;\n value?: string;\n placeholder?: string;\n startElement?: HTMLElement;\n endElement?: HTMLElement;\n accessoryElement?: HTMLElement;\n supportTextStart?: string;\n supportTextEndElement?: string;\n // Deprecated properties\n leadingElement?: HTMLElement;\n trailingElement?: HTMLElement;\n helperText?: string;\n}\nexport interface ITextFieldComponentDelegateConfig extends IBaseComponentDelegateConfig<ITextFieldComponent, ITextFieldComponentDelegateOptions> {}\n\nexport class TextFieldComponentDelegate extends FormFieldComponentDelegate<ITextFieldComponent, ITextFieldComponentDelegateOptions> {\n private _inputElement: HTMLInputElement;\n private _labelElement?: HTMLLabelElement;\n private _supportTextStartElement?: HTMLSpanElement;\n private _supportTextEndElement?: HTMLSpanElement;\n\n constructor(config?: ITextFieldComponentDelegateConfig) {\n super(config);\n }\n\n protected _build(): ITextFieldComponent {\n const textField = document.createElement(TEXT_FIELD_CONSTANTS.elementName);\n\n this._inputElement = this._buildInputElement(textField);\n\n textField.append(this._inputElement);\n return textField;\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._createLabel(this._config.options.label);\n }\n if (this._config.options?.startElement) {\n this._config.options.startElement.slot = 'start';\n this._element.append(this._config.options.startElement);\n }\n if (this._config.options?.leadingElement) {\n this._config.options.leadingElement.slot = 'start';\n this._element.append(this._config.options.leadingElement);\n }\n if (this._config.options?.endElement) {\n this._config.options.endElement.slot = 'end';\n this._element.append(this._config.options.endElement);\n }\n if (this._config.options?.trailingElement) {\n this._config.options.trailingElement.slot = 'end';\n this._element.append(this._config.options.trailingElement);\n }\n if (this._config.options?.accessoryElement) {\n this._config.options.accessoryElement.slot = 'accessory';\n this._element.append(this._config.options.accessoryElement);\n }\n }\n\n public get value(): string {\n return this._inputElement.value;\n }\n public set value(value: string) {\n this._inputElement.value = value;\n }\n\n public get disabled(): boolean {\n return this._inputElement.disabled;\n }\n public set disabled(value: boolean) {\n this._inputElement.disabled = value;\n }\n\n public get invalid(): boolean {\n return this._element.invalid;\n }\n public set invalid(value: boolean) {\n this._element.invalid = value;\n }\n\n public get inputElement(): HTMLInputElement {\n return this._inputElement;\n }\n\n public get labelElement(): HTMLLabelElement | undefined {\n return this._labelElement;\n }\n\n public onChange(listener: (value: string) => void): void {\n this._inputElement.addEventListener('input', evt => listener((evt.target as HTMLInputElement).value));\n }\n\n public onFocus(listener: (evt: Event) => void): void {\n this._inputElement.addEventListener('focus', evt => listener(evt));\n }\n\n public onBlur(listener: (evt: Event) => void): void {\n this._inputElement.addEventListener('blur', evt => listener(evt));\n }\n\n public setLabel(text: string | null): void {\n if (text) {\n if (this._labelElement) {\n this._labelElement.textContent = text;\n } else {\n this._createLabel(text);\n }\n return;\n }\n this._labelElement?.remove();\n this._labelElement = undefined;\n }\n\n public setSupportTextStart(text: string | null): void {\n if (text) {\n if (!this._supportTextStartElement) {\n this._supportTextStartElement = document.createElement('span');\n this._supportTextStartElement.slot = 'support-text-start';\n this._element.append(this._supportTextStartElement);\n }\n this._supportTextStartElement.textContent = text;\n return;\n }\n this._supportTextStartElement?.remove();\n this._supportTextStartElement = undefined;\n }\n\n // Deprecated alias for `setSupportTextStart`\n public setHelperText(text: string | null): void {\n this.setSupportTextStart(text);\n }\n\n public setSupportTextEnd(text: string | null): void {\n if (text) {\n if (!this._supportTextEndElement) {\n this._supportTextEndElement = document.createElement('span');\n this._supportTextEndElement.slot = 'support-text-end';\n this._element.append(this._supportTextEndElement);\n }\n this._supportTextEndElement.textContent = text;\n return;\n }\n this._supportTextEndElement?.remove();\n this._supportTextEndElement = undefined;\n }\n\n public floatLabel(value: boolean): void {\n this._element.floatLabel = value;\n }\n\n private _createLabel(text: string): void {\n this._labelElement = document.createElement('label');\n this._labelElement.textContent = text;\n this._labelElement.slot = 'label';\n if (this._config.options?.id) {\n this._labelElement.htmlFor = this._config.options.id;\n }\n this._element.append(this._labelElement);\n }\n\n private _buildInputElement(textField: ITextFieldComponent): HTMLInputElement {\n const inputElement = document.createElement('input');\n inputElement.type = this._config.options?.type ?? 'text';\n\n if (this._config.options?.value !== undefined) {\n inputElement.value = this._config.options.value;\n }\n if (this._config.options?.id) {\n inputElement.id = this._config.options.id;\n }\n if (this._config.options?.placeholder !== undefined) {\n inputElement.placeholder = this._config.options.placeholder;\n }\n\n textField.append(inputElement);\n return inputElement;\n }\n}\n"],
5
- "mappings": "2JAGA,IAAMA,EAA2C,GAAGC,cAE9CC,EAAqB,CACzB,WAAY,YACd,EAEMC,EAAaC,EAAA,GACdF,GAGCG,EAAY,CAChB,MAAO,SACP,kBAAmB,0BACnB,YAAaC,EAAgB,YAC7B,MAAO,iKACT,EAEMC,EAA0B,CAAC,WAAY,aAAa,EAEpDC,EAAW,CACf,SAAU,WACV,MAAO,OACT,EAEMC,EAAS,CACb,MAAO,GAAGT,SACZ,EAEaU,EAAuB,CAClC,YAAAV,EACA,mBAAAE,EACA,WAAAC,EACA,UAAAE,EACA,wBAAAE,EACA,SAAAC,EACA,OAAAC,CACF,ECfO,IAAME,EAAN,cAAyCC,CAAoF,CAMlI,YAAYC,EAA4C,CACtD,MAAMA,CAAM,CACd,CAEU,QAA8B,CACtC,IAAMC,EAAY,SAAS,cAAcC,EAAqB,WAAW,EAEzE,YAAK,cAAgB,KAAK,mBAAmBD,CAAS,EAEtDA,EAAU,OAAO,KAAK,aAAa,EAC5BA,CACT,CAEmB,YAAmB,CA3CxC,IAAAE,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GA4CQN,EAAA,KAAK,QAAQ,UAAb,MAAAA,EAAsB,KACxB,KAAK,SAAS,GAAK,KAAK,QAAQ,QAAQ,KAEtCC,EAAA,KAAK,QAAQ,UAAb,MAAAA,EAAsB,OACxB,KAAK,aAAa,KAAK,QAAQ,QAAQ,KAAK,GAE1CC,EAAA,KAAK,QAAQ,UAAb,MAAAA,EAAsB,eACxB,KAAK,QAAQ,QAAQ,aAAa,KAAO,QACzC,KAAK,SAAS,OAAO,KAAK,QAAQ,QAAQ,YAAY,IAEpDC,EAAA,KAAK,QAAQ,UAAb,MAAAA,EAAsB,iBACxB,KAAK,QAAQ,QAAQ,eAAe,KAAO,QAC3C,KAAK,SAAS,OAAO,KAAK,QAAQ,QAAQ,cAAc,IAEtDC,EAAA,KAAK,QAAQ,UAAb,MAAAA,EAAsB,aACxB,KAAK,QAAQ,QAAQ,WAAW,KAAO,MACvC,KAAK,SAAS,OAAO,KAAK,QAAQ,QAAQ,UAAU,IAElDC,EAAA,KAAK,QAAQ,UAAb,MAAAA,EAAsB,kBACxB,KAAK,QAAQ,QAAQ,gBAAgB,KAAO,MAC5C,KAAK,SAAS,OAAO,KAAK,QAAQ,QAAQ,eAAe,IAEvDC,EAAA,KAAK,QAAQ,UAAb,MAAAA,EAAsB,mBACxB,KAAK,QAAQ,QAAQ,iBAAiB,KAAO,YAC7C,KAAK,SAAS,OAAO,KAAK,QAAQ,QAAQ,gBAAgB,EAE9D,CAEA,IAAW,OAAgB,CACzB,OAAO,KAAK,cAAc,KAC5B,CACA,IAAW,MAAMC,EAAe,CAC9B,KAAK,cAAc,MAAQA,CAC7B,CAEA,IAAW,UAAoB,CAC7B,OAAO,KAAK,cAAc,QAC5B,CACA,IAAW,SAASA,EAAgB,CAClC,KAAK,cAAc,SAAWA,CAChC,CAEA,IAAW,SAAmB,CAC5B,OAAO,KAAK,SAAS,OACvB,CACA,IAAW,QAAQA,EAAgB,CACjC,KAAK,SAAS,QAAUA,CAC1B,CAEA,IAAW,cAAiC,CAC1C,OAAO,KAAK,aACd,CAEA,IAAW,cAA6C,CACtD,OAAO,KAAK,aACd,CAEO,SAASC,EAAyC,CACvD,KAAK,cAAc,iBAAiB,QAASC,GAAOD,EAAUC,EAAI,OAA4B,KAAK,CAAC,CACtG,CAEO,QAAQD,EAAsC,CACnD,KAAK,cAAc,iBAAiB,QAASC,GAAOD,EAASC,CAAG,CAAC,CACnE,CAEO,OAAOD,EAAsC,CAClD,KAAK,cAAc,iBAAiB,OAAQC,GAAOD,EAASC,CAAG,CAAC,CAClE,CAEO,SAASC,EAA2B,CAjH7C,IAAAV,EAkHI,GAAIU,EAAM,CACJ,KAAK,cACP,KAAK,cAAc,YAAcA,EAEjC,KAAK,aAAaA,CAAI,EAExB,QAEFV,EAAA,KAAK,gBAAL,MAAAA,EAAoB,SACpB,KAAK,cAAgB,MACvB,CAEO,oBAAoBU,EAA2B,CA9HxD,IAAAV,EA+HI,GAAIU,EAAM,CACH,KAAK,2BACR,KAAK,yBAA2B,SAAS,cAAc,MAAM,EAC7D,KAAK,yBAAyB,KAAO,qBACrC,KAAK,SAAS,OAAO,KAAK,wBAAwB,GAEpD,KAAK,yBAAyB,YAAcA,EAC5C,QAEFV,EAAA,KAAK,2BAAL,MAAAA,EAA+B,SAC/B,KAAK,yBAA2B,MAClC,CAGO,cAAcU,EAA2B,CAC9C,KAAK,oBAAoBA,CAAI,CAC/B,CAEO,kBAAkBA,EAA2B,CAjJtD,IAAAV,EAkJI,GAAIU,EAAM,CACH,KAAK,yBACR,KAAK,uBAAyB,SAAS,cAAc,MAAM,EAC3D,KAAK,uBAAuB,KAAO,mBACnC,KAAK,SAAS,OAAO,KAAK,sBAAsB,GAElD,KAAK,uBAAuB,YAAcA,EAC1C,QAEFV,EAAA,KAAK,yBAAL,MAAAA,EAA6B,SAC7B,KAAK,uBAAyB,MAChC,CAEO,WAAWO,EAAsB,CACtC,KAAK,SAAS,WAAaA,CAC7B,CAEQ,aAAaG,EAAoB,CAnK3C,IAAAV,EAoKI,KAAK,cAAgB,SAAS,cAAc,OAAO,EACnD,KAAK,cAAc,YAAcU,EACjC,KAAK,cAAc,KAAO,SACtBV,EAAA,KAAK,QAAQ,UAAb,MAAAA,EAAsB,KACxB,KAAK,cAAc,QAAU,KAAK,QAAQ,QAAQ,IAEpD,KAAK,SAAS,OAAO,KAAK,aAAa,CACzC,CAEQ,mBAAmBF,EAAkD,CA7K/E,IAAAE,EAAAC,EAAAC,EAAAC,EAAAC,EA8KI,IAAMO,EAAe,SAAS,cAAc,OAAO,EACnD,OAAAA,EAAa,MAAOV,GAAAD,EAAA,KAAK,QAAQ,UAAb,YAAAA,EAAsB,OAAtB,KAAAC,EAA8B,SAE9CC,EAAA,KAAK,QAAQ,UAAb,YAAAA,EAAsB,SAAU,SAClCS,EAAa,MAAQ,KAAK,QAAQ,QAAQ,QAExCR,EAAA,KAAK,QAAQ,UAAb,MAAAA,EAAsB,KACxBQ,EAAa,GAAK,KAAK,QAAQ,QAAQ,MAErCP,EAAA,KAAK,QAAQ,UAAb,YAAAA,EAAsB,eAAgB,SACxCO,EAAa,YAAc,KAAK,QAAQ,QAAQ,aAGlDb,EAAU,OAAOa,CAAY,EACtBA,CACT,CACF",
6
- "names": ["elementName", "COMPONENT_NAME_PREFIX", "observedAttributes", "attributes", "__spreadValues", "selectors", "LABEL_CONSTANTS", "observedInputAttributes", "tagNames", "events", "TEXT_FIELD_CONSTANTS", "TextFieldComponentDelegate", "FormFieldComponentDelegate", "config", "textField", "TEXT_FIELD_CONSTANTS", "_a", "_b", "_c", "_d", "_e", "_f", "_g", "value", "listener", "evt", "text", "inputElement"]
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{a as w}from"./chunk.44IUAOBP.js";import{A as Ne,B as O,C as Ye,D as q,a as r,f as E,g as m,h as ye,i as Ee,j as we,l as b,m as Ce,n as Me,o as Te,p as ke,q as Oe,r as Se,s as Ae,t as Be,u as z,v as Ie,w as xe,x as U,y as Le,z as Fe}from"./chunk.BV7EAQST.js";import{a as k,j as De}from"./chunk.HG4IDRAC.js";import{a as ae}from"./chunk.LEVFMI2Q.js";import{c as be}from"./chunk.GBAVJILM.js";import{d as me}from"./chunk.QIZBZGYT.js";import{d as ge}from"./chunk.GIENHEMN.js";import{a as oe,c as le,s as de,t as ce,w as he}from"./chunk.RLQB7224.js";import{d as fe,l as ve}from"./chunk.T7NWP7DB.js";import{e as g,f as _e,g as pe}from"./chunk.J2Y5KPON.js";import{a as ue}from"./chunk.HSADKCGS.js";import{a as c}from"./chunk.NVUMRW44.js";import{a as se}from"./chunk.OLFOVKQG.js";import{a as ne}from"./chunk.VRSPT7WX.js";import{a as ie,e as re,f as y}from"./chunk.LNTTU2GL.js";import{a as Q,c as L,r as F,s as ee,t as te}from"./chunk.L4QSPQDE.js";import{b as B,g as I,i as T,k as v,l as x}from"./chunk.J2M2MXP2.js";import{d}from"./chunk.M3QDAYD2.js";function V(n,e,t=0){let a=[],i=S(new Date(e,n,1),t),s=new Date(i);s.setDate(i.getDate()+r.numbers.MONTH_LENGTH);for(let o=i;o<s;o.setDate(o.getDate()+1))a.push(new Date(o));return a}function pt(n,e=0){let t=[],a=S(n,e),i=new Date(a);i.setDate(a.getDate()+7);for(let s=a;s<i;s.setDate(s.getDate()+1))t.push(new Date(s));return t}function S(n,e=0){let t=n.getDay(),a=new Date(n),i=t>=e?t-e:7+(t-e);return a.setDate(n.getDate()-i),a.setHours(0,0,0,0),a}function Re(n,e=0){let t=S(n,e);return t.setDate(t.getDate()+6),t}function ft(n,e){return new Date(e,n,1).getDay()}function N(n=0){let e=[],t=n;do e.push(t),t+=1,t%=7;while(t!==n);return e}function He(n){return g(new Date,n)}function u(n,e,t){return n.getMonth()===e&&n.getFullYear()===t}function Ze(n,e,t){return n>e&&n<t||g(n,e)||g(n,t)}function Y(n){return n.sort((e,t)=>e.getTime()-t.getTime())}function We(n){let e=[];for(let t=0;t<n.length;t+=7){let a=n.slice(t,t+7);e.push(a)}return e}function D(n){if(!n.length)return new w;if(n.length===1)return new w({from:new Date(n[0])});let e=R(n);return new w({from:e[0],to:e[e.length-1]})}function Pe(n){let e=[];return n.from&&e.push(new Date(n.from)),n.to&&e.push(new Date(n.to)),e}function R(n){if(!n.length)return[];if(n.length===1)return[new Date(n[0])];let e=Y(n.slice().map(t=>new Date(t)));return[new Date(e[0]),new Date(e[e.length-1])]}function H(n,e,t){return!e||!t?[]:n.filter(a=>Ze(a,e,t))}function K(n){let e=`${n.length} event${n.length===1?"":"s"}`,t=n.map(a=>a.label).join(", ");return t!=null&&t.length&&(e+=`: ${t}`),e}function Je(n){var a,i;let e=new Date;return((i=(a=n.match(/-?[0-9]*[a-zA-Z]/g))==null?void 0:a.map(s=>s.trim()))!=null?i:[]).forEach(s=>{let o=s.slice(-1),h=+s.slice(0,-1);switch(o){case"y":e.setFullYear(e.getFullYear()+h);break;case"m":e.setMonth(e.getMonth()+h);break;case"w":e.setDate(e.getDate()+h*7);break;case"d":e.setDate(e.getDate()+h);break}}),e.setHours(0,0,0,0),e}function Ge(n){let e=n.split(":");if((e==null?void 0:e.length)<2)return{min:1970,max:1970};let t=new Date().getFullYear(),a=e.slice(0,2).map(i=>i.startsWith("-")?t-+i.substring(1):i.startsWith("+")?t+ +i.substring(1):+i);return{min:a[0],max:a[1]}}function ze(n){var s,o,h,p,f,j,Z,J;let e=(o=(s=n.min)==null?void 0:s.getFullYear())!=null?o:0,t=(p=(h=n.max)==null?void 0:h.getFullYear())!=null?p:0,a=(j=(f=n.min)==null?void 0:f.getMonth())!=null?j:-1,i=(J=(Z=n.max)==null?void 0:Z.getMonth())!=null?J:12;return[...Array(12).keys()].map(M=>{let $e=n.min?n.selectedYear<e||n.selectedYear===e&&M<a:!1,Xe=n.max?n.selectedYear>t||n.selectedYear===t&&M>i:!1;return{value:M,label:E(M,"long",n.locale),selected:M===n.selectedMonth,disabled:$e||Xe}})}function Ue(n){let e=[],t=n.yearInView%r.numbers.YEARS_IN_VIEW,a=n.yearInView-t;for(let i=a;i<a+r.numbers.YEARS_IN_VIEW;i++)e.push({value:i,label:m(i,"numeric",n.locale),selected:i===n.selectedYear,disabled:i<n.min||i>n.max});return e}function qe(n){let e=[];for(let t=n.min;t<=n.max;t++)e.push({value:t,label:m(t,"numeric",n.locale),selected:t===n.selectedYear});return e}function C(n,e){return e.some(t=>g(t,n))}function _(n,e){return!!(e.minDate&&n<e.minDate||e.maxDate&&n>e.maxDate||e.otherMonth||e.disabledDates.some(t=>g(t,n))||e.disabledDaysOfWeek.includes(n.getDay())||e.builder&&e.builder(n))}function A(n,e){return e.findIndex(t=>g(t,n))}function W(n,e,t){let a=e.filter(i=>g(i.date,n));if(t){let i=t(n);i&&(T(i)?a.push(...i):a.push(i))}return a}function Ve(n,e){if(!n.length)return[];let t=new Date(n[0]),a=n[n.length-1],i=[];for(;t<=a;)(!e||!_(t,e))&&i.push(new Date(t)),t.setDate(t.getDate()+1);return i}function $(n){let e=null;return typeof n=="string"&&!n.length&&(n=null),n!=null&&(I(new Date(n))?e=new Date(n):n.length&&(e=Je(n)),e==null||e.setHours(0,0,0,0)),e}function X(n,e,t){return t||!ae(n).length||!!(e==="date"&&O(n))||!!(e!=="date"&&Ye(n,r.ids.MENU))}var P=class extends se{constructor(t){super(t);this._container=y(t,r.selectors.CALENDAR),this._dateView=y(t,r.selectors.DATE_VIEW),this._dayRow=y(t,r.selectors.DAY_ROW),this._dateGrid=y(t,r.selectors.DATE_GRID),this._menu=y(t,r.selectors.MENU)}toggleContainerAttribute(t,a,i){F(this._container,t,a,i)}registerMonthButtonListener(t){let a=this._container.querySelector(r.selectors.MONTH_BUTTON);a==null||a.addEventListener("click",t)}unregisterMonthButtonListener(t){let a=this._container.querySelector(r.selectors.MONTH_BUTTON);a==null||a.removeEventListener("click",t)}registerYearButtonListener(t){let a=this._container.querySelector(r.selectors.YEAR_BUTTON);a==null||a.addEventListener("click",t)}unregisterYearButtonListener(t){let a=this._container.querySelector(r.selectors.YEAR_BUTTON);a==null||a.removeEventListener("click",t)}registerMenuListener(t){this._menu.addEventListener(k.events.SELECT,t)}unregisterMenuListener(t){this._menu.removeEventListener(k.events.SELECT,t)}registerMenuFocusChangeEventListener(t){this._menu.addEventListener(k.events.FOCUS_CHANGE,t)}unregisterMenuFocusChangeEventListener(t){this._menu.addEventListener(k.events.FOCUS_CHANGE,t)}registerNextButtonListener(t){let a=this._container.querySelector(r.selectors.NEXT_BUTTON);a==null||a.addEventListener("click",t)}unregisterNextButtonListener(t){let a=this._container.querySelector(r.selectors.NEXT_BUTTON);a==null||a.removeEventListener("click",t)}registerPreviousButtonListener(t){let a=this._container.querySelector(r.selectors.PREVIOUS_BUTTON);a==null||a.addEventListener("click",t)}unregisterPreviousButtonListener(t){let a=this._container.querySelector(r.selectors.PREVIOUS_BUTTON);a==null||a.removeEventListener("click",t)}registerClearButtonListener(t){let a=this._container.querySelector(r.selectors.CLEAR_BUTTON);a==null||a.addEventListener("click",t)}unregisterClearButtonListener(t){let a=this._container.querySelector(r.selectors.CLEAR_BUTTON);a==null||a.removeEventListener("click",t)}registerTodayButtonListener(t){let a=this._container.querySelector(r.selectors.TODAY_BUTTON);a==null||a.addEventListener("click",t)}unregisterTodayButtonListener(t){let a=this._container.querySelector(r.selectors.TODAY_BUTTON);a==null||a.removeEventListener("click",t)}registerDateClickListener(t){this._dateGrid.addEventListener("click",t)}unregisterDateClickListener(t){this._dateGrid.removeEventListener("click",t)}registerKeydownListener(t){this._container.addEventListener("keydown",t)}registerHoverListener(t){this._dateGrid.addEventListener("mouseover",t)}unregisterHoverListener(t){this._dateGrid.removeEventListener("mouseover",t)}registerPreventFocusListener(t){this._container.addEventListener("mousedown",t)}unregisterPreventFocusListener(t){this._container.removeEventListener("mousedown",t)}setContainerClass(t,a){this._container.classList.toggle(t,a)}setHeader(){let t=this._container.querySelector(r.selectors.ACCESSIBLE_HEADER);t==null||t.remove();let a=this._container.querySelector(r.selectors.HEADER);a?a.replaceWith(z()):this._container.prepend(z())}removeHeader(){let t=this._container.querySelector(r.selectors.HEADER);t==null||t.remove();let a=this._container.querySelector(r.selectors.ACCESSIBLE_HEADER);a?a.replaceWith(U()):this._container.prepend(U())}setNextButtonDisabled(t){let a=this._container.querySelector(r.selectors.NEXT_BUTTON);a==null||a.toggleAttribute("disabled",t)}setPreviousButtonDisabled(t){let a=this._container.querySelector(r.selectors.PREVIOUS_BUTTON);a==null||a.toggleAttribute("disabled",t)}setNextButtonLabel(t){let a=this._container.querySelector(r.selectors.NEXT_BUTTON);a==null||a.setAttribute("aria-label",t);let i=this._container.querySelector(r.selectors.NEXT_BUTTON_TOOLTIP);i&&(i.innerHTML=t)}setPreviousButtonLabel(t){let a=this._container.querySelector(r.selectors.PREVIOUS_BUTTON);a==null||a.setAttribute("aria-label",t);let i=this._container.querySelector(r.selectors.PREVIOUS_BUTTON_TOOLTIP);i&&(i.innerHTML=t)}setMonthButtonPressed(t){let a=this._container.querySelector(r.selectors.MONTH_BUTTON);a&&(a.setAttribute("aria-pressed",t.toString()),this._container.classList.toggle(r.classes.MONTH_MENU_OPEN,t))}setYearButtonPressed(t){let a=this._container.querySelector(r.selectors.YEAR_BUTTON);a&&(a.setAttribute("aria-pressed",t.toString()),this._container.classList.toggle(r.classes.YEAR_MENU_OPEN,t))}setMonth(t,a){let i=this._container.querySelector(r.selectors.MONTH_BUTTON);if(i){let o=Ie(t,a);i.replaceChildren(o[0],o[1]);return}let s=this._container.querySelector(r.selectors.ACCESSIBLE_MONTH);s&&(s.textContent=E(t,"long",a))}setYear(t,a){let i=this._container.querySelector(r.selectors.YEAR_BUTTON);if(i){let o=xe(t,a);i.replaceChildren(o[0],o[1]);return}let s=this._container.querySelector(r.selectors.ACCESSIBLE_YEAR);s&&(s.textContent=m(t,"numeric",a))}setFooter(){this._container.querySelector(r.selectors.FOOTER)||this._container.appendChild(Le())}removeFooter(){var a;let t=this._container.querySelector(r.selectors.FOOTER);(a=t==null?void 0:t.parentNode)==null||a.removeChild(t)}setClearButton(){let t=this._container.querySelector(r.selectors.FOOTER);if(!t)return;t.querySelector(r.selectors.CLEAR_BUTTON)||t.prepend(Fe())}removeClearButton(){var a;let t=this._container.querySelector(r.selectors.CLEAR_BUTTON);(a=t==null?void 0:t.parentNode)==null||a.removeChild(t)}setTodayButton(){let t=this._container.querySelector(r.selectors.FOOTER);if(!t)return;t.querySelector(r.selectors.TODAY_BUTTON)||t.appendChild(Ne())}removeTodayButton(){var a;let t=this._container.querySelector(r.selectors.TODAY_BUTTON);(a=t==null?void 0:t.parentNode)==null||a.removeChild(t)}setDays(t,a){L(this._dayRow),t.forEach(i=>{let s=Me(i,a==null?void 0:a.locale);a!=null&&a.builder&&(s=a.builder(i,s)),this._dayRow.appendChild(s)})}setDates(t,a){L(this._dateGrid),We(t).forEach((i,s)=>{let o=Te(i,s,a);this._dateGrid.appendChild(o)})}replaceDate(t,a){let i=this._dateGrid.querySelector(`#${b(t.date)}`);if(i){let s=ke(t,a==null?void 0:a.locale);a!=null&&a.builder?i.replaceWith(a.builder(t,s)):i.replaceWith(s)}}replaceDateWithSpacer(t){let a=this._dateGrid.querySelector(`#${b(t)}`);a==null||a.replaceWith(Oe(t))}setDateDisabled(t,a){let i=this._dateGrid.querySelector(`#${b(t)}`);i&&(i.toggleAttribute("disabled",a),i.setAttribute("aria-disabled",a.toString()))}setDateSelected(t,a){let i=this._dateGrid.querySelector(`#${b(t)}`);i&&(i.classList.toggle(r.classes.DATE_SELECTED,a),i.setAttribute("aria-selected",a.toString()))}setWeekend(t,a){let i=this._dateGrid.querySelector(`#${b(t)}`),s=i==null?void 0:i.querySelector(r.selectors.DATE_INNER);s&&ee(s,"part",r.parts.WEEKEND,a)}appendDateAttribute(t,a,i){let s=this._dateGrid.querySelector(`#${b(t)}`);s&&te(s,a,i)}setMultiple(t){this._dateView.setAttribute("aria-multiselectable",t.toString())}setDateViewHidden(t){F(this._dateView,t,"aria-hidden",t.toString()),this.setAllDatesUnfocusable()}setRange(t){this._dateGrid.querySelectorAll(r.selectors.RANGE).forEach(i=>i.classList.remove(r.classes.RANGE)),t&&t.forEach(i=>{let s=this._dateGrid.querySelector(`#${b(i)}`);s==null||s.classList.add(r.classes.RANGE)})}setRangeStart(t){let a=this._dateGrid.querySelector(r.selectors.RANGE_START);if(a==null||a.classList.remove(r.classes.RANGE_START),!t)return;let i=this._dateGrid.querySelector(`#${b(t)}`);i==null||i.classList.add(r.classes.RANGE_START)}setRangeEnd(t){let a=this._dateGrid.querySelector(r.selectors.RANGE_END);if(a==null||a.classList.remove(r.classes.RANGE_END),!t)return;let i=this._dateGrid.querySelector(`#${b(t)}`);i==null||i.classList.add(r.classes.RANGE_END)}setActiveDate(t,a,i){let s=t.toDateString();this._dateGrid.querySelectorAll(r.selectors.DATE).forEach(h=>{let p=h.getAttribute(r.attributes.DATA_DATE)===s;q(h,p?0:-1,a,i)})}setAllDatesUnfocusable(){this._dateGrid.querySelectorAll(r.selectors.DATE).forEach(a=>q(a,-1,!1,!0))}setDateDescription(t,a){let i=this._dateGrid.querySelector(`#${b(t)}`);i&&F(i,!!a,a)}setDateTooltip(t,a){let i=this._dateGrid.querySelector(`#${b(t)}`);if(!i)return;let s=i.querySelector(r.selectors.TOOLTIP);s?a!=null&&a.length?s.textContent=a:s.remove():a!=null&&a.length&&i.prepend(Be(a))}setEventWrapperOnDate(t,a){let i=this._dateGrid.querySelector(`#${b(t)}`);if(!i)return;let s=i.querySelector(r.selectors.EVENT_WRAPPER);s?a?L(s):s.remove():a&&i.appendChild(Se(t))}setEvent(t,a){let i=this._dateGrid.querySelector(`#${Ce(t.date)}`);i==null||i.appendChild(Ae(t,a))}openMenuAsGrid(t,a){this._menu.openAsGrid(t,a)}openMenuAsList(t,a){this._menu.openAsList(t,a)}closeMenu(){this._menu.close()}setMenuAnimation(t){this._menu.animationType=t}animateIntoSelectionMenu(t,a,i){this._menu.animateIn(t,a,i)}moveMenuFocusDown(){this._menu.moveFocusDown()}moveMenuFocusBackward(){return this._menu.moveFocusBackward()}moveMenuFocusForward(){return this._menu.moveFocusForward()}moveMenuFocusUp(){this._menu.moveFocusUp()}selectFocusedMenuItem(){this._menu.selectFocusedItem()}setPreventFocusOnMenu(t){this._menu.preventFocus=t}};var G=class{constructor(e){this._adapter=e;this._dates=[];this._month=new Date().getMonth();this._year=new Date().getFullYear();this._showToday=!0;this._showOtherMonths=!1;this._fixedHeight=!1;this._events=[];this._value=[];this._mode="single";this._readonly=!1;this._selectionFollowsMonth=!1;this._rangeSelectionState="none";this._allowSingleDateRange=!0;this._min=null;this._max=null;this._minAttribute=null;this._maxAttribute=null;this._disabledDates=[];this._disabledDaysOfWeek=[];this._constrainToEnabled=!0;this._showHeader=!0;this._clearButton=!1;this._todayButton=!1;this._view="date";this._menuAnimation="scale";this._menuYear=null;this._listYears=!0;this._menuIncludedYear=new Date().getFullYear();this._menuYearsInView=null;this._yearRange=`-${r.numbers.DEFAULT_MIN_YEAR_OFFSET}:+${r.numbers.DEFAULT_MAX_YEAR_OFFSET}`;this._weekendDays=null;this._localeFirstDayOfWeek=0;this._localeWeekendDays=[];this._rtl=!1;this._preventFocus=!1;this._isInitialized=!1;this._clearButtonListener=()=>this._onClearClicked(),this._dateClickListener=t=>this._onDateClick(t),this._keydownListener=t=>this._onKeydown(t),this._hoverListener=t=>this._onHover(t),this._menuFocusChangeListener=t=>this._onMenuFocusChange(t),this._menuListener=t=>this._onMenuSelect(t),this._monthButtonListener=()=>this._onMonthButtonClicked(),this._nextButtonListener=()=>this._onNextButtonClicked(),this._preventFocusListener=t=>t.preventDefault(),this._previousButtonListener=()=>this._onPreviousButtonClicked(),this._todayButtonListener=()=>this._onTodayClicked(),this._yearButtonListener=()=>this._onYearButtonClicked()}initialize(){this._adapter.registerMenuListener(this._menuListener),this._adapter.registerMenuFocusChangeEventListener(this._menuFocusChangeListener),this._adapter.registerKeydownListener(this._keydownListener),this._applyMin(),this._applyMax(),this._applyFixedHeight(),this._applyReadOnly(),this._applyShowToday(),this._applyPreventFocus(),this._applyShowHeader(),this._applyMonth(),this._applyYear(),this._applyListYears(),this._applyMenuAnimation(),this._applyLocale(),this._applyClearButton(),this._applyTodayButton(),this._applyFirstDayOfWeek(),this._applyShowOtherMonths(),this._createDateView(),this._applyConstrainToEnabled(),this._applyAllowSingleDateRange(),this._applyMode(),this._applyYearRange(),this._applySelectionFollowsMonth(),this._isInitialized=!0}disconnect(){this._isInitialized=!1}_onMonthButtonClicked(){this._toggleMonthMenu()}_toggleMonthMenu(e=!1){this._view!=="month"?this._openMonthMenu(e):this._closeMenu(!1,e)}_onYearButtonClicked(){this._toggleYearMenu()}_toggleYearMenu(e=!1){this._view!=="year"?this._openYearMenu(e):this._closeMenu(!1,e)}_onMenuFocusChange(e){this._emitFocusChangeEvent(e.detail)}_onMenuSelect(e){switch(this._view){case"month":this._onMonthSelected(e.detail);break;case"year":this._onYearSelected(e.detail);break}}_onNextButtonClicked(){this._view==="date"?(this._goToNextMonth(),this._setFocusInMonth(1,!1)):this._view==="month"?this._goToNextYear():this._goToNextSetOfYears()}_onPreviousButtonClicked(){this._view==="date"?(this._goToPreviousMonth(),this._setFocusInMonth(2,!1)):this._view==="month"?this._goToPreviousYear():this._goToPreviousSetOfYears()}_onHover(e){if(this._mode==="range"){let t=O(e,!1);if(!t)return;let a=new Date(Date.parse(t.getAttribute(r.attributes.DATA_DATE)));u(a,this._month,this._year)&&this._setRangePreview(a)}}_onDateClick(e){let t=O(e,!1);if(!t)return;let a=t.getAttribute(r.attributes.DATA_DATE);if(!a)return;let i=new Date(a);u(i,this._month,this._year)&&(this._focusedDate=i,this._beforeDateSelected(i)),this._resumeTabindexOnDate(!1)}_onKeydown(e){switch(e.key){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":this._handleArrowKey(e);break;case"Home":case"End":case"PageUp":case"PageDown":this._handleNavigationKey(e);break;case" ":case"Enter":this._handleEnterOrSpaceKey(e);break;case"m":case"M":e.preventDefault(),this._toggleMonthMenu(!0);break;case"y":case"Y":e.preventDefault(),this._toggleYearMenu(!0);break;case"t":case"T":case"n":case"N":e.preventDefault(),this.today();break;case"Delete":case"Backspace":e.preventDefault(),this._deselectAllDates();break;case"Escape":this._view!=="date"&&(e.preventDefault(),e.stopPropagation(),this._closeMenu(!1,!0));break}}_handleArrowKey(e){if(!X(e,this._view,this._preventFocus))return;e.preventDefault();let t;switch(e.key){case"ArrowLeft":t=this._rtl?"next":"previous";break;case"ArrowRight":t=this._rtl?"previous":"next";break;case"ArrowUp":t="up";break;case"ArrowDown":t="down";break}switch(t){case"previous":this._view==="date"?this._moveFocusToPreviousDate(!0):!this._adapter.moveMenuFocusBackward()&&this._canGoBackward()&&(this._view==="month"?this._goToPreviousYear(!0):this._goToPreviousSetOfYears(!0));break;case"next":this._view==="date"?this._moveFocusToNextDate(!0):!this._adapter.moveMenuFocusForward()&&this._canGoForward()&&(this._view==="month"?this._goToNextYear(!0):this._goToNextSetOfYears(!0));break;case"up":this._view==="date"?this._moveFocusToPreviousWeek(!0):this._adapter.moveMenuFocusUp();break;case"down":this._view==="date"?this._moveFocusToNextWeek(!0):this._adapter.moveMenuFocusDown();break}this._mode==="range"&&this._setRangePreview(this._focusedDate)}_handleNavigationKey(e){switch(e.preventDefault(),e.key){case"Home":if(this._view!=="date")break;e.shiftKey?this._moveFocusToFirstOfMonth(!0):this._moveFocusToFirstOfWeek(!0);break;case"End":if(this._view!=="date")break;e.shiftKey?this._moveFocusToLastOfMonth(!0):this._moveFocusToLastOfWeek(!0);break;case"PageUp":this._view==="date"?e.shiftKey?this._moveFocusToPreviousYear(!0):this._moveFocusToPreviousMonth(!0):this._view==="month"&&!e.shiftKey&&this._canGoBackward()?this._goToPreviousYear(!0):this._view==="year"&&!e.shiftKey&&this._canGoBackward()&&this._goToPreviousSetOfYears(!0);break;case"PageDown":this._view==="date"?e.shiftKey?this._moveFocusToNextYear(!0):this._moveFocusToNextMonth(!0):this._view==="month"&&!e.shiftKey&&this._canGoForward()?this._goToNextYear(!0):this._view==="year"&&!e.shiftKey&&this._canGoForward()&&this._goToNextSetOfYears(!0);break}}_handleEnterOrSpaceKey(e){if(X(e,this._view,this._preventFocus))switch(e.preventDefault(),this._view){case"date":if(this._readonly)break;this._setSelectOnFocusedDate();break;case"month":case"year":this._adapter.selectFocusedMenuItem();break}}_onMonthSelected(e){this._year!==this._menuYear&&this._menuYear!=null&&(this._year=this._menuYear,this._setYear()),this._month=e,this._setMonth(!0),this._trySetValueMonthAndYear(this._month,this._year,"month"),this._closeMenu(!0)}_onYearSelected(e){this._year=e,this._setYear(!0),this._trySetValueMonthAndYear(this._month,this._year,"year"),this._closeMenu(!0)}_onClearClicked(){this.clear()}_onTodayClicked(){this.today()}_trySetValueMonthAndYear(e,t,a="date"){var o;if(!this.selectionFollowsMonth||this._mode!=="single"||!((o=this._value)!=null&&o.length))return;let i=new Date(this._value[0]),s=pe(e,t);i.setDate(Math.min(i.getDate(),s)),i.setFullYear(t),i.setMonth(e),!_(i,this._getDisabledDateParams())&&this._beforeDateSelected(i,a)}_setInitialDateFocus(e=!1){let t=new Date;if(u(t,this._month,this._year)&&!_(t,this._getDisabledDateParams(!1))){this._setFocusedDate(t,e);return}let a=new Date(this._year,this._month,1);this._setFocusedDate(this._getNextEnabledDate(a,1,!1,!0,!0),e)}_resumeTabindexOnDate(e){return u(this._focusedDate,this._month,this._year)?(this._adapter.setActiveDate(this._focusedDate,e,this._preventFocus),this._emitFocusChangeEvent(this._focusedDate),!0):!1}_moveFocusToNextDate(e){this._setFocusedDate(this._getNextEnabledDate(this._focusedDate),e)}_moveFocusToPreviousDate(e){this._setFocusedDate(this._getPreviousEnabledDate(this._focusedDate),e)}_moveFocusToNextWeek(e){this._setFocusedDate(this._getNextEnabledDate(this._focusedDate,7,!0),e)}_moveFocusToPreviousWeek(e){this._setFocusedDate(this._getPreviousEnabledDate(this._focusedDate,7,!0),e)}_moveFocusToFirstOfWeek(e){this._setFocusedDate(this._getFirstEnabledDayOfWeek(this._focusedDate,!0),e)}_moveFocusToLastOfWeek(e){this._setFocusedDate(this._getLastEnabledDayOfWeek(this._focusedDate,!0),e)}_moveFocusToFirstOfMonth(e){let t=new Date(this._year,this._month,1);this._setFocusedDate(this._getNextEnabledDate(t,1,!1,!0),e)}_moveFocusToLastOfMonth(e){let t=new Date(this._year,this._month+1,0);this._setFocusedDate(this._getPreviousEnabledDate(t,1,!1,!0),e)}_moveFocusToNextMonth(e){let t=A(this._focusedDate,this._dates),a=(this._month+1)%12,i=a===0?this._year+1:this._year;this._setFocusedDate(this._getDateAtIndexInMonth(t,a,i),e)}_moveFocusToPreviousMonth(e){let t=A(this._focusedDate,this._dates),a=this._month===0?11:this._month-1,i=a===11?this._year-1:this._year;this._setFocusedDate(this._getDateAtIndexInMonth(t,a,i),e)}_moveFocusToNextYear(e){let t=A(this._focusedDate,this._dates);this._setFocusedDate(this._getDateAtIndexInMonth(t,this._month,this._year+1),e)}_moveFocusToPreviousYear(e){let t=A(this._focusedDate,this._dates);this._setFocusedDate(this._getDateAtIndexInMonth(t,this._month,this._year-1),e)}_setFocusInMonth(e,t){switch(e){case 1:this._moveFocusToFirstOfMonth(t);break;case 2:this._moveFocusToLastOfMonth(t);break;default:this._resumeTabindexOnDate(t);break}}_setSelectOnFocusedDate(){u(this._focusedDate,this._month,this._year)&&!_(this._focusedDate,this._getDisabledDateParams(!1))&&this._beforeDateSelected(this._focusedDate)}_emitFocusChangeEvent(e){let t={type:this._view,value:e};switch(this._view){case"date":t.selected=C(e,this._value),t.text=e.toLocaleDateString(this.locale,{month:"long",day:"2-digit",year:"numeric"});break;case"month":t.selected=this._month===e,t.text=E(e,"long");break;case"year":t.selected=this._year===e,t.text=m(e,"numeric");break}this._adapter.emitHostEvent(r.events.FOCUS_CHANGE,t)}_getPreviousEnabledDate(e,t=1,a=!1,i=!1,s=!1){let o=this._getDisabledDateParams(),h=new Date(e);if(i&&!_(h,o))return h;let p=e.getMonth(),f=!1;do h.setDate(h.getDate()-t),a&&(t=1),(s&&h.getMonth()!==p||this._min&&h<this._min)&&(f=!0);while(!f&&_(h,o));return f?null:h}_getNextEnabledDate(e,t=1,a=!1,i=!1,s=!1){let o=this._getDisabledDateParams(),h=new Date(e);if(i&&!_(h,o))return h;let p=e.getMonth(),f=!1;do h.setDate(h.getDate()+t),a&&(t=1),(s&&h.getMonth()!==p||this._max&&h>this._max)&&(f=!0);while(!f&&_(h,o));return f?null:h}_getClosestEnabledDate(e,t=!1,a=!1){if(this._min&&e<this._min)return this._getFirstEnabledDate();if(this._max&&e>this._max)return this._getLastEnabledDate();let i=this._getDisabledDateParams();if(a&&!_(e,i))return new Date(e);let s=e.getDate(),o,h=!1,p=!1,f=1;for(;!h||!p;){if(!h){if(o=new Date(e),o.setDate(s+f),h=!u(o,e.getMonth(),e.getFullYear()),!h&&!_(o,i))return o;this._max&&o>this._max&&(h=!0)}if(!p){if(o=new Date(e),o.setDate(s-f),p=!u(o,e.getMonth(),e.getFullYear()),!p&&!_(o,i))return o;this._min&&o<this._min&&(p=!0)}f+=1}return null}_getFirstEnabledDayOfWeek(e,t=!0){let a=S(e),i=this._getDisabledDateParams(t?a.getMonth()!==e.getMonth()||a.getFullYear()!==e.getFullYear():void 0),s=0;for(;s<7&&_(a,i);)a.setDate(a.getDate()+1),i.otherMonth=t?a.getMonth()!==e.getMonth()||a.getFullYear()!==e.getFullYear():void 0,s+=1;return s<7?a:null}_getLastEnabledDayOfWeek(e,t=!0){let a=Re(e),i=this._getDisabledDateParams(t?a.getMonth()!==e.getMonth()||a.getFullYear()!==e.getFullYear():void 0),s=0;for(;s<7&&_(a,i);)a.setDate(a.getDate()-1),i.otherMonth=t?a.getMonth()!==e.getMonth()||a.getFullYear()!==e.getFullYear():void 0,s+=1;return s<7?a:null}_getDateAtIndexInMonth(e,t,a){var s;let i=V(t,a,(s=this._firstDayOfWeek)!=null?s:this._localeFirstDayOfWeek);return this._min&&i[e]<this._min?this._getFirstEnabledDate():this._max&&i[e]>this._max?this._getLastEnabledDate():u(i[e],t,a)?this._getClosestEnabledDate(i[e],!0):e<20?this._getNextEnabledDate(i[e],7,!0):this._getPreviousEnabledDate(i[e],7,!0)}_getFirstEnabledDate(){return this._min?this._getNextEnabledDate(this._min,1,!1,!0):null}_getLastEnabledDate(){return this._max?this._getPreviousEnabledDate(this._max,1,!1,!0):null}_setFocusedDate(e,t){if(!e)return;let a=this._month!==e.getMonth(),i=this._year!==e.getFullYear();(a||i)&&(a&&(this._month=e.getMonth(),this._setMonth()),i&&(this._year=e.getFullYear(),this._setYear()),this._resetDateGrid()),this._focusedDate=e,this._adapter.setActiveDate(this._focusedDate,t,this._preventFocus),this._emitFocusChangeEvent(this._focusedDate)}_getDisabledDateParams(e){return{builder:this._disabledDateBuilder,disabledDates:this._disabledDates,disabledDaysOfWeek:this._disabledDaysOfWeek,maxDate:this._max,minDate:this._min,otherMonth:e}}_createDateView(){this._resetDateGrid(),(!this._focusedDate||!this._resumeTabindexOnDate(!1))&&this._setInitialDateFocus()}_openMonthMenu(e=!1){this._view="month",this._menuYear==null&&(this._menuYear=this._year),this._showHeader&&(this._setNavButtonLabels(),this._adapter.setMonthButtonPressed(!0),this._adapter.setYearButtonPressed(!1)),this._adapter.openMenuAsGrid(this._getMonthsForMenu(),e),this._adapter.setDateViewHidden(!0),this._setNavigationButtonStates(),this._adapter.emitHostEvent(r.events.VIEW_CHANGE,this._view)}_openYearMenu(e=!1){var t;this._view="year",this._menuIncludedYear=(t=this._menuYear)!=null?t:this._year,this._showHeader&&(this._setNavButtonLabels(),this._adapter.setMonthButtonPressed(!1),this._adapter.setYearButtonPressed(!0)),this._listYears?this._adapter.openMenuAsList(this._getYearsForMenu(),e):this._adapter.openMenuAsGrid(this._getYearsForMenu(),e),this._adapter.setDateViewHidden(!0),this._setNavigationButtonStates(),this._adapter.emitHostEvent(r.events.VIEW_CHANGE,this._view)}_getMonthsForMenu(){var t;let e={locale:this._locale,max:this._max,min:this._min,selectedMonth:this._year===this._menuYear?this._month:-1,selectedYear:(t=this._menuYear)!=null?t:this._year};return ze(e)}_getYearsForMenu(){let e=this._min?this._min.getFullYear():this._minYear,t=this._max?this._max.getFullYear():this._maxYear,a={locale:this._locale,max:t,min:e,selectedYear:this._year,yearInView:this._menuIncludedYear},i=this._listYears?qe(a):Ue(a);return this._menuYearsInView={min:i[0].value,max:i[i.length-1].value},i}_closeMenu(e,t=!1){this._view="date",this._menuYear=null,this._adapter.closeMenu(),this._adapter.setDateViewHidden(!1),this._adapter.setYear(this._year,this._locale),e&&this._resetDateGrid(),this._showHeader&&(this._setNavButtonLabels(),this._setNavigationButtonStates(),this._adapter.setMonthButtonPressed(!1),this._adapter.setYearButtonPressed(!1)),this._resumeTabindexOnDate(t)||this._setInitialDateFocus(t),this._adapter.emitHostEvent(r.events.VIEW_CHANGE,this._view)}_setNavButtonLabels(){switch(this._view){case"date":this._adapter.setPreviousButtonLabel("Previous month"),this._adapter.setNextButtonLabel("Next month");break;case"month":this._adapter.setPreviousButtonLabel("Previous year"),this._adapter.setNextButtonLabel("Next year");break;case"year":this._adapter.setPreviousButtonLabel("Previous years"),this._adapter.setNextButtonLabel("Next years");break}}_resetDateGrid(){var t;this._dates=V(this._month,this._year,(t=this._firstDayOfWeek)!=null?t:this._localeFirstDayOfWeek);let e=this._dates.map(a=>this._getDateConfig(a));this._adapter.setDates(e,{builder:this._dateBuilder,locale:this._locale,showOtherMonths:this._showOtherMonths}),this._setNavigationButtonStates(),this._applyWeekendDays(),this._applyEvents(),this._mode==="range"&&(this._adapter.setRangeStart(this._value[0]),this._setRangePreview())}_getDateConfig(e){let t=u(e,this._month,this._year);return{date:new Date(e),selected:C(e,this._value),today:He(e),thisMonth:t,disabled:_(e,this._getDisabledDateParams(!t))}}_getCalendarDate(e){return{date:new Date(e),selected:C(e,this._value),events:W(e,this._events,this._eventBuilder)}}_setEventsOnDate(e){var i;if(!this._showOtherMonths&&!u(e,this._month,this._year)){this._adapter.setEventWrapperOnDate(e,!1);return}let t=W(e,this._events,this._eventBuilder);this._adapter.setEventWrapperOnDate(e,!!t.length),t.forEach((s,o)=>{o>2||this._adapter.setEvent(s,o===2&&t.length>3)});let a=t.length?K(t):"";this._tooltipBuilder&&(a=(i=this._tooltipBuilder(this._getCalendarDate(e),a))!=null?i:""),this._adapter.setDateTooltip(e,a)}_beforeDateSelected(e,t="date"){this._dateSelectCallback?Promise.resolve(this._dateSelectCallback(this._getCalendarDate(e))).then(a=>{a&&this._onDateSelected(e,void 0,t)}):this._onDateSelected(e,void 0,t)}_onDateSelected(e,t,a="date"){if(this._mode==="range"&&this._emitRangeSelectionEvent(e)){this._applyRangeSelection(e),this._rangeSelectionStore=void 0;return}let i=C(e,this._value),s={date:new Date(e),selected:i,type:a};this._adapter.emitHostEvent(r.events.DATE_SELECT,s,!0,!0)&&(this._rangeSelectionStore=void 0,this._mode==="single"?i&&!t||t===!1?this._deselectDate(e):(t===void 0||t===!0)&&(this._value.length&&this._deselectDate(this._value[0]),this._selectDate(e)):i&&!t||t===!1?this._deselectDate(e):(t===void 0||t===!0)&&this._selectDate(e),Y(this._value))}_emitRangeSelectionEvent(e){let t={date:new Date(e),selected:C(e,this._value),type:"date"};switch(this._rangeSelectionState){case"none":case"to":t.range=D([e]),t.rangeSelectionState="from";break;case"from":g(e,this._value[0])?this._allowSingleDateRange?(t.range=D([this._value[0],e]),t.rangeSelectionState="to"):(t.range=D([]),t.rangeSelectionState="none"):e<this._value[0]?(t.range=D([e]),t.rangeSelectionState="from"):(t.range=D([this._value[0],e]),t.rangeSelectionState="to");break}return this._adapter.emitHostEvent(r.events.DATE_SELECT,t,!0,!0)}_applyRangeSelection(e){switch(this._rangeSelectionState){case"none":case"to":this._deselectAllDates(),this._selectDate(e),this._adapter.setRange(null),this._adapter.setRangeStart(e),this._rangeSelectionState="from";break;case"from":g(e,this._value[0])?this._allowSingleDateRange?(this._value.push(e),this._rangeSelectionState="to"):(this._deselectDate(e),this._rangeSelectionState="none"):e<this._value[0]?(this._deselectDate(this._value[0]),this._selectDate(e),this._adapter.setRangeStart(e)):(this._selectDate(e),this._setRangePreview(e),this._rangeSelectionState="to");break}}_setRangePreview(e){switch(this._rangeSelectionState){case"from":if(!e)return;e<this._value[0]?this._adapter.setRange(null):(this._adapter.setRange(H(this._dates,this._value[0],e)),this._adapter.setRangeEnd(e));break;case"to":this._adapter.setRange(H(this._dates,this._value[0],this._value[1])),this._adapter.setRangeEnd(this._value[1]);break}}_clearRangePreview(){this._adapter.setRange(null),this._adapter.setRangeStart(null),this._adapter.setRangeEnd(null)}_selectDate(e){this._value.push(e),this._focusedDate=e,this._adapter.setDateSelected(e,!0)}_deselectDate(e){let t=this._value.findIndex(a=>g(a,e));t>-1&&this._value.splice(t,1),this._adapter.setDateSelected(e,!1)}_deselectAllDates(){this._value.forEach(e=>this._adapter.setDateSelected(e,!1)),this._clearRangePreview(),this._value=[]}_goToDate(e,t){let a=e.getFullYear(),i=e.getMonth();this._focusedDate=e,this._month=i,this._setMonth(),this._year=a,this._setYear(),this._view!=="date"?this._closeMenu(!1,t):this._resetDateGrid(),this._adapter.setActiveDate(e,t,this._preventFocus),this._emitFocusChangeEvent(this._focusedDate)}_goToNextMonth(){this._month<11?this._month+=1:(this._month=0,this._year+=1,this._setYear()),this._setMonth(),this._resetDateGrid()}_goToPreviousMonth(){this._month>0?this._month-=1:(this._month=11,this._year-=1,this._setYear()),this._setMonth(),this._resetDateGrid()}_goToNextYear(e=!1){this._view==="month"?(this._menuYear&&(this._menuYear+=1,this._setMenuYear()),this._adapter.animateIntoSelectionMenu(this._getMonthsForMenu(),this._rtl?"left":"right",e)):(this._year+=1,this._setYear(),this._resetDateGrid())}_goToPreviousYear(e=!1){this._view==="month"?(this._menuYear&&(this._menuYear-=1,this._setMenuYear()),this._adapter.animateIntoSelectionMenu(this._getMonthsForMenu(),this._rtl?"right":"left",e)):(this._year-=1,this._setYear(),this._resetDateGrid())}_goToNextSetOfYears(e=!1){this._menuIncludedYear+=r.numbers.YEARS_IN_VIEW,this._adapter.animateIntoSelectionMenu(this._getYearsForMenu(),this._rtl?"left":"right",e),this._setNavigationButtonStates()}_goToPreviousSetOfYears(e=!1){this._menuIncludedYear-=r.numbers.YEARS_IN_VIEW,this._adapter.animateIntoSelectionMenu(this._getYearsForMenu(),this._rtl?"right":"left",e),this._setNavigationButtonStates()}_canGoBackward(e){var t;if(!e&&!this._constrainToEnabled)return!0;switch(this._view){case"date":return!this._min||this._min<new Date(this._year,this._month,1);case"month":let a=(t=this._min)==null?void 0:t.getFullYear();return this._menuYear!=null&&(a==null||a<this._menuYear);case"year":return!!this._menuYearsInView&&this._minYear<this._menuYearsInView.min;default:return!1}}_canGoForward(e){var t;if(!e&&!this._constrainToEnabled)return!0;switch(this._view){case"date":return!this._max||this._max>_e(this._month,this._year);case"month":let a=(t=this._max)==null?void 0:t.getFullYear();return this._menuYear!=null&&(a==null||a>this._menuYear);case"year":return!!this._menuYearsInView&&this._maxYear>this._menuYearsInView.max;default:return!1}}_setNavigationButtonStates(){if(this._showHeader){if(!this._constrainToEnabled){this._adapter.setPreviousButtonDisabled(!1),this._adapter.setNextButtonDisabled(!1);return}this._adapter.setPreviousButtonDisabled(!this._canGoBackward()),this._adapter.setNextButtonDisabled(!this._canGoForward())}}_setMonth(e){this._adapter.setMonth(this._month,this._locale),this._adapter.setHostAttribute(r.attributes.MONTH,this._month.toString()),this._isInitialized&&(this._setNavigationButtonStates(),this._adapter.emitHostEvent(r.events.MONTH_CHANGE,{month:this._month,userSelected:e!=null?e:!1,year:this._year}))}_setYear(e){this._adapter.setYear(this._year,this._locale),this._adapter.setHostAttribute(r.attributes.YEAR,this._year.toString()),this._isInitialized&&(this._setNavigationButtonStates(),this._adapter.emitHostEvent(r.events.MONTH_CHANGE,{month:this._month,userSelected:e!=null?e:!1,year:this._year}))}_setMenuYear(){this._menuYear!=null&&(this._setNavigationButtonStates(),this._adapter.setYear(this._menuYear,this._locale))}_applyAllowSingleDateRange(){this._adapter.toggleHostAttribute(r.attributes.ALLOW_SINGLE_DATE_RANGE,this._allowSingleDateRange),this._adapter.setContainerClass(r.classes.ALLOW_SINGLE_DATE_RANGE,this._allowSingleDateRange)}_applyClearButton(){this._adapter.toggleHostAttribute(r.attributes.CLEAR_BUTTON,!0,this._clearButton.toString()),this._clearButton?(this._adapter.setFooter(),this._adapter.setClearButton(),this._adapter.registerClearButtonListener(this._clearButtonListener)):(this._adapter.unregisterClearButtonListener(this._clearButtonListener),this._adapter.removeClearButton(),this._todayButton||this._adapter.removeFooter())}_applyConstrainToEnabled(){this._adapter.toggleHostAttribute(r.attributes.CONSTRAIN_TO_ENABLED,!0,this._constrainToEnabled.toString()),this._isInitialized&&this._setNavigationButtonStates()}_applyDateBuilder(){this._view==="date"&&(this._resetDateGrid(),this._resumeTabindexOnDate(!1))}_applyDayBuilder(){var e;this._adapter.setDays(N((e=this._firstDayOfWeek)!=null?e:this._localeFirstDayOfWeek),{builder:this._dayBuilder,locale:this._locale})}_applyDisabledDates(){switch(this._view){case"date":this._dates.forEach(e=>{let t=u(e,this._month,this._year),a=this._getDisabledDateParams(!t);this._adapter.setDateDisabled(e,_(e,a))});break;case"month":this._openMonthMenu();break;case"year":this._openYearMenu();break}this._setNavigationButtonStates()}_applyEvents(){this._view==="date"&&this._dates.forEach(e=>{this._setEventsOnDate(e)})}_applyFirstDayOfWeek(){var e,t;this._adapter.toggleHostAttribute(r.attributes.FIRST_DAY_OF_WEEK,B(this._firstDayOfWeek),((e=this._firstDayOfWeek)!=null?e:0).toString()),this._adapter.setDays(N((t=this._firstDayOfWeek)!=null?t:this._localeFirstDayOfWeek),{builder:this._dayBuilder,locale:this._locale}),this._isInitialized&&this._view==="date"&&(this._resetDateGrid(),this._resumeTabindexOnDate(!1))}_applyFixedHeight(){this._adapter.toggleHostAttribute(r.attributes.FIXED_HEIGHT,this._fixedHeight),this._adapter.setContainerClass(r.classes.FIXED_HEIGHT,this._fixedHeight)}_applyListYears(){this._adapter.toggleHostAttribute(r.attributes.LIST_YEARS,this._listYears),this._isInitialized&&this._view==="year"&&this._openYearMenu()}_applyLocale(){var e;if(this._adapter.toggleHostAttribute(r.attributes.LOCALE,!!this._locale,this._locale),this._adapter.toggleContainerAttribute(!!this._locale,"lang",this._locale),this._localeFirstDayOfWeek=ye(this._locale),this._localeWeekendDays=Ee(this._locale),this._applyRtl(),this._isInitialized)switch(this._adapter.setMonth(this._month,this._locale),this._adapter.setYear(this._year,this._locale),this._view){case"date":this._adapter.setDays(N((e=this._firstDayOfWeek)!=null?e:this._localeFirstDayOfWeek),{builder:this._dayBuilder,locale:this._locale}),this._resetDateGrid(),this._resumeTabindexOnDate(!1);break;case"month":this._openMonthMenu();break;case"year":this._openYearMenu();break}}_applyMenuAnimation(){this._adapter.setHostAttribute(r.attributes.MENU_ANIMATION,this._menuAnimation),this._adapter.setMenuAnimation(this._menuAnimation)}_applyMin(){if(this._adapter.toggleHostAttribute(r.attributes.MIN,!!this._minAttribute,this._minAttribute),this._min){let e=new Date(this._min.getFullYear(),this._min.getMonth(),1),t=new Date(this._year,this._month,1);e>t&&(this._year=this._min.getFullYear(),this._month=this._min.getMonth())}if(this._isInitialized&&(this._applyDisabledDates(),this._min&&this._min>this._focusedDate)){let e=this._getFirstEnabledDate();e&&this._goToDate(e,!1)}}_applyMax(){if(this._adapter.toggleHostAttribute(r.attributes.MAX,!!this._maxAttribute,this._maxAttribute),this._max){let e=new Date(this._max.getFullYear(),this._max.getMonth(),1),t=new Date(this._year,this._month,1);e<t&&(this._year=this._max.getFullYear(),this._month=this._max.getMonth())}if(this._isInitialized&&(this._applyDisabledDates(),this._max&&this._max<this._focusedDate)){let e=this._getLastEnabledDate();e&&this._goToDate(e,!1)}}_applyMode(e){switch(this._mode){case"single":this._applySingleMode();break;case"multiple":this._applyMultipleMode(e==="range");break;case"range":this._applyRangeMode();break}this._mode!=="range"&&(this._rangeSelectionState="none",this._adapter.unregisterHoverListener(this._hoverListener),this._clearRangePreview())}_applySingleMode(){if(this._adapter.setHostAttribute(r.attributes.MODE,"single"),this._adapter.setMultiple(!1),this._value.length>1)for(let e=this._value.length-2;e>=0;e-=1)this._deselectDate(this._value[e])}_applyMultipleMode(e=!1){if(this._adapter.setHostAttribute(r.attributes.MODE,"multiple"),this._adapter.setMultiple(!0),e){let t=Ve(this._value,this._getDisabledDateParams());this._deselectAllDates(),t.forEach(a=>{this._selectDate(a)})}}_applyRangeMode(){var t,a;this._adapter.setHostAttribute(r.attributes.MODE,"range"),this._adapter.setMultiple(!1);let e=R(this._value);this._deselectAllDates(),e.forEach(i=>{this._selectDate(i)}),this._rangeSelectionState=this._value[0]?this._value[1]?"to":"from":"none",this._adapter.registerHoverListener(this._hoverListener),this._adapter.setRange(H(this._dates,this._value[0],this._value[1])),this._adapter.setRangeStart((t=this._value[0])!=null?t:null),this._adapter.setRangeEnd((a=this._value[1])!=null?a:null)}_applyMonth(){this._setMonth(),this._isInitialized&&this._view==="date"&&(this._resetDateGrid(),this._moveFocusToFirstOfMonth(!1))}_applyPreventFocus(){this._adapter.toggleHostAttribute(r.attributes.PREVENT_FOCUS,this._preventFocus),this._adapter.setContainerClass(r.classes.PREVENT_FOCUS,this._preventFocus),this._adapter.setPreventFocusOnMenu(this._preventFocus),this._preventFocus?this._adapter.registerPreventFocusListener(this._preventFocusListener):this._adapter.unregisterPreventFocusListener(this._preventFocusListener),this._isInitialized&&this._view==="date"&&this._resumeTabindexOnDate(!1)}_applyReadOnly(){this._adapter.toggleHostAttribute(r.attributes.READONLY,this._readonly),this._adapter.toggleHostAttribute("aria-readonly",this._readonly,"true"),this._adapter.setContainerClass(r.classes.READONLY,this._readonly),this._readonly?(this._adapter.unregisterDateClickListener(this._dateClickListener),this._adapter.unregisterHoverListener(this._hoverListener)):(this._adapter.registerDateClickListener(this._dateClickListener),this._mode==="range"&&this._adapter.registerHoverListener(this._hoverListener))}_applyRtl(){this._rtl=we(this._locale),this._adapter.setContainerClass(r.classes.RTL,this._rtl),this._adapter.toggleContainerAttribute(this._rtl,"dir","rtl")}_applySelectionFollowsMonth(){this._adapter.setHostAttribute(r.attributes.SELECTION_FOLLOWS_MONTH,this._selectionFollowsMonth.toString())}_applyShowHeader(){this._adapter.toggleHostAttribute(r.attributes.SHOW_HEADER,this._showHeader,this._showHeader.toString()),this._showHeader?(this._adapter.setHeader(),this._adapter.registerMonthButtonListener(this._monthButtonListener),this._adapter.registerNextButtonListener(this._nextButtonListener),this._adapter.registerPreviousButtonListener(this._previousButtonListener),this._adapter.registerYearButtonListener(this._yearButtonListener),this._setNavButtonLabels()):(this._adapter.unregisterMonthButtonListener(this._monthButtonListener),this._adapter.unregisterNextButtonListener(this._nextButtonListener),this._adapter.unregisterPreviousButtonListener(this._previousButtonListener),this._adapter.unregisterYearButtonListener(this._yearButtonListener),this._adapter.removeHeader()),this._isInitialized&&(this._adapter.setMonth(this._month,this._locale),this._adapter.setYear(this._year,this._locale),this._setNavigationButtonStates())}_applyShowOtherMonths(){if(this._adapter.toggleHostAttribute(r.attributes.SHOW_OTHER_MONTHS,this._showOtherMonths),this._isInitialized&&this._view==="date"){let e=!1;this._dates.forEach((t,a)=>{u(t,this._month,this._year)||((a===r.numbers.PENULTIMATE_WEEK_BEGIN_INDEX||a===r.numbers.FINAL_WEEK_BEGIN_INDEX)&&(e=!0),this._showOtherMonths&&!e?this._adapter.replaceDate(this._getDateConfig(t),{builder:this._dateBuilder,locale:this._locale}):this._adapter.replaceDateWithSpacer(t),this._setEventsOnDate(t),this._applyWeekendDays())})}}_applyShowToday(){this._adapter.toggleHostAttribute(r.attributes.SHOW_TODAY,this._showToday),this._adapter.setContainerClass(r.classes.SHOW_TODAY,this._showToday)}_applyTodayButton(){this._adapter.toggleHostAttribute(r.attributes.TODAY_BUTTON,!0,this._todayButton.toString()),this._todayButton?(this._adapter.setFooter(),this._adapter.setTodayButton(),this._adapter.registerTodayButtonListener(this._todayButtonListener)):(this._adapter.unregisterTodayButtonListener(this._todayButtonListener),this._adapter.removeTodayButton(),this._clearButton||this._adapter.removeFooter())}_applyTooltipBuilder(){this._view==="date"&&this._dates.forEach(e=>{var i;if(!this._showOtherMonths&&!u(e,this._month,this._year))return;let t=W(e,this._events,this._eventBuilder),a=K(t);this._tooltipBuilder&&(a=(i=this._tooltipBuilder(this._getCalendarDate(e),a))!=null?i:""),this._adapter.setDateTooltip(e,a)})}_applyWeekendDays(){var t;let e=(t=this._weekendDays)!=null?t:this._localeWeekendDays;this._view==="date"&&this._dates.forEach(a=>{let i=a.getDay();this._adapter.setWeekend(a,(this._showOtherMonths||u(a,this._month,this._year))&&e.includes(i))})}_applyValue(e){e=e.map(t=>new Date(t)),Y(e),this._deselectAllDates(),e.forEach(t=>this._selectDate(t)),this._mode==="range"&&(this._rangeSelectionState=this._value.length===2?"to":this._value.length===1?"from":"none",this._clearRangePreview(),this._adapter.setRangeStart(this._value[0]),this._setRangePreview())}_applyView(){switch(this._adapter.setHostAttribute(r.attributes.VIEW,this._view),this._view){case"date":this._closeMenu();break;case"month":this._openMonthMenu();break;case"year":this._openYearMenu();break}}_applyYear(){this._setYear(),this._isInitialized&&this._view==="date"&&(this._resetDateGrid(),this._moveFocusToFirstOfMonth(!1))}_applyYearRange(){this._adapter.setHostAttribute(r.attributes.YEAR_RANGE,this._yearRange);let e=Ge(this._yearRange);this._minYear=e.min,this._maxYear=e.max,this._view==="year"&&(this._openYearMenu(),this._setNavigationButtonStates())}get activeDate(){return new Date(this._focusedDate)}get allowSingleDateRange(){return this._allowSingleDateRange}set allowSingleDateRange(e){this._allowSingleDateRange!==e&&(this._allowSingleDateRange=e,this._applyAllowSingleDateRange())}get clearButton(){return this._clearButton}set clearButton(e){this._clearButton!==e&&(this._clearButton=e,this._isInitialized&&this._applyClearButton())}get clearCallback(){return this._clearCallback}set clearCallback(e){this._clearCallback=e}get constrainToEnabled(){return this._constrainToEnabled}set constrainToEnabled(e){this._constrainToEnabled!==e&&(this._constrainToEnabled=e,this._isInitialized&&this._applyConstrainToEnabled())}get dateBuilder(){return this._dateBuilder}set dateBuilder(e){this._dateBuilder=e,this._isInitialized&&this._applyDateBuilder()}get dateSelectCallback(){return this._dateSelectCallback}set dateSelectCallback(e){this._dateSelectCallback=e}get dayBuilder(){return this.dayBuilder}set dayBuilder(e){this._dayBuilder=e,this._isInitialized&&this._applyDayBuilder()}get disabledDateBuilder(){return this._disabledDateBuilder}set disabledDateBuilder(e){this._disabledDateBuilder=e,this._isInitialized&&this._applyDisabledDates()}get disabledDates(){let e=this._disabledDates.map(t=>new Date(t));return e.length?e:null}set disabledDates(e){let t=e?T(e)?e:[e]:[];this._disabledDates=t.map(a=>{let i=new Date(a);return i.setHours(0,0,0,0),i}),this._isInitialized&&this._applyDisabledDates()}get disabledDaysOfWeek(){return this._disabledDaysOfWeek.length?[...this._disabledDaysOfWeek]:null}set disabledDaysOfWeek(e){this._disabledDaysOfWeek=B(e)?T(e)?e:[e]:[],this._isInitialized&&this._applyDisabledDates()}get eventBuilder(){return this._eventBuilder}set eventBuilder(e){this._eventBuilder=e,this._isInitialized&&this._applyEvents()}get events(){return this._events?[...this._events]:null}set events(e){this._events=e!=null&&e.length?[...e]:[],this._isInitialized&&this._applyEvents()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek!==e&&(this._firstDayOfWeek=B(e)?+e:e,this._isInitialized&&this._applyFirstDayOfWeek())}get fixedHeight(){return this._fixedHeight}set fixedHeight(e){this._fixedHeight!==e&&(this._fixedHeight=e,this._isInitialized&&this._applyFixedHeight())}get listYears(){return this._listYears}set listYears(e){this._listYears!==e&&(this._listYears=e,this._applyListYears())}get locale(){return this._locale}set locale(e){typeof e=="string"&&!e.length&&(e=void 0),this._locale!==e&&(this._locale=e,this._isInitialized&&this._applyLocale())}get max(){return this._max}set max(e){var t;this._maxAttribute!==e&&(this._maxAttribute=(t=e==null?void 0:e.toString())!=null?t:null,this._max=$(e),this._applyMax())}get menuAnimation(){return this._menuAnimation}set menuAnimation(e){this._menuAnimation!==e&&(this._menuAnimation=e,this._isInitialized&&this._applyMenuAnimation())}get min(){return this._min}set min(e){var t;this._minAttribute!==e&&(this._minAttribute=(t=e==null?void 0:e.toString())!=null?t:null,this._min=$(e),this._applyMin())}get mode(){return this._mode}set mode(e){if(this._mode!==e){let t=this._mode;this._mode=e,this._isInitialized&&this._applyMode(t)}}get month(){return this._month}set month(e){if(this._month!==e){let t=isNaN(+e)?this._month:+e;if(this._month===t)return;this._month=+e,this._isInitialized&&this._applyMonth()}}get preventFocus(){return this._preventFocus}set preventFocus(e){this._preventFocus!==e&&(this._preventFocus=e,this._isInitialized&&this._applyPreventFocus())}get readonly(){return this._readonly}set readonly(e){this._readonly!==e&&(this._readonly=e,this._isInitialized&&this._applyReadOnly())}get selectionFollowsMonth(){return this._selectionFollowsMonth}set selectionFollowsMonth(e){this._selectionFollowsMonth!==e&&(this._selectionFollowsMonth=e,this._isInitialized&&this._applySelectionFollowsMonth())}get showHeader(){return this._showHeader}set showHeader(e){this._showHeader!==e&&(this._showHeader=e,this._isInitialized&&this._applyShowHeader())}get showOtherMonths(){return this._showOtherMonths}set showOtherMonths(e){this._showOtherMonths!==e&&(this._showOtherMonths=e,this._isInitialized&&this._applyShowOtherMonths())}get showToday(){return this._showToday}set showToday(e){this._showToday!==e&&(this._showToday=e,this._isInitialized&&this._applyShowToday())}get todayButton(){return this._todayButton}set todayButton(e){this._todayButton!==e&&(this._todayButton=e,this._isInitialized&&this._applyTodayButton())}get todayCallback(){return this._todayCallback}set todayCallback(e){this._todayCallback=e}get tooltipBuilder(){return this._tooltipBuilder}set tooltipBuilder(e){this._tooltipBuilder=e,this._isInitialized&&this._applyTooltipBuilder()}get value(){var t;if(this._mode==="range")return(t=this._rangeSelectionStore)!=null?t:D(this._value);let e=this._value.map(a=>new Date(a));return this._mode==="multiple"?e:e.length?e[0]:null}set value(e){let t=[];if(this._rangeSelectionStore=void 0,!e||Array.isArray(e)&&!e.length)this._value=[];else if(Array.isArray(e))switch(this._mode){case"single":t=[e[0]];break;case"multiple":t=e;break;case"range":let a=R(e);t.push(a[0]),a.length>1&&t.push(a[1]);break}else I(new Date(e))?t=[e]:(this._rangeSelectionStore=new w(e),t=Pe(e));this._applyValue(t)}get view(){return this._view}set view(e){this._view!==e&&(this._view=e,this._applyView())}get weekendDays(){return this._weekendDays?[...this._weekendDays]:null}set weekendDays(e){var t;this._weekendDays=(t=e==null?void 0:e.map(a=>+a))!=null?t:null,this._isInitialized&&this._applyWeekendDays()}get year(){return this._year}set year(e){if(this._year!==e){let t=isNaN(+e)?this._year:+e;if(this._year===t)return;this._year=t,this._isInitialized&&this._applyYear()}}get yearRange(){return this._yearRange}set yearRange(e){this._yearRange!==e&&(this._yearRange=e,this._isInitialized&&this._applyYearRange())}clear(){this._deselectAllDates(),this._clearCallback&&this._clearCallback()}deselectDate(e,t){this._onDateSelected(e,!1),t&&(this._focusedDate=e,this._resumeTabindexOnDate(!0))}goToDate(e,t){this._goToDate(e,t!=null?t:!1)}handleExternalKeyEvent(e){this._onKeydown(e)}layout(){this._applyFirstDayOfWeek(),this._createDateView(),this._applyShowHeader(),this._applyConstrainToEnabled()}selectDate(e,t){this._onDateSelected(e,!0),t&&(this._focusedDate=e,this._resumeTabindexOnDate(!0))}setActiveDate(e,t){return this._dates.some(a=>g(a,e)&&(this._showOtherMonths||u(a,this._month,this._year)))?(this._goToDate(e,t!=null?t:!1),!0):!1}today(){let e=new Date;e.setHours(0,0,0,0),this._goToDate(e,!0),this._todayCallback&&this._todayCallback()}toggleDate(e,t){this._onDateSelected(e)}};var Qe='<template><div class="forge-calendar" part="root"><div id="view" class="forge-calendar__view" part="view"><div id="date-view" class="forge-calendar__date-view" role="grid" part="date-view"><div role="rowgroup" part="date-view-container"><div id="day-row" class="forge-calendar__date-view__row" role="row" part="date-view-row"></div></div><div id="date-grid" class="forge-calendar__date-grid" role="rowgroup" part="date-grid-container"></div></div><forge-calendar-menu id="menu" part="calendar-menu"></forge-calendar-menu></div></div></template>',et='.forge-calendar{width:100%;width:var(--forge-calendar-width,100%);height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:relative}.forge-calendar__header{padding:0;padding:var(--forge-calendar-controls-padding,0);display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:justify;justify-content:space-between}.forge-calendar__footer{padding:0;padding:var(--forge-calendar-controls-padding,0);display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:justify;justify-content:space-between}.forge-calendar__view{position:relative}.forge-calendar__date-view{display:block}.forge-calendar__date-view__row{display:grid;grid-template-columns:repeat(7,1fr)}.forge-calendar__date-grid{display:grid}.forge-calendar__day{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit);display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;min-width:0;padding:0;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.forge-calendar__day::after{float:left;padding-top:100%;content:""}.forge-calendar__date{margin-top:2px;margin-top:var(--forge-calendar-row-gap,2px);min-width:0;padding:0;border-radius:50%;position:relative;outline:0;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.forge-calendar__date::after{float:left;padding-top:100%;content:""}.forge-calendar__date .mdc-ripple-surface{border-radius:inherit}.forge-calendar__date .mdc-ripple-surface::after,.forge-calendar__date .mdc-ripple-surface::before{position:absolute;width:calc(100% - 2px)!important;height:calc(100% - 2px)!important;top:calc(2px / 2)!important;left:calc(2px / 2)!important;border-radius:inherit!important}.forge-calendar__date__inner{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);position:absolute;width:calc(100% - 2px);height:calc(100% - 2px);top:calc(2px / 2);left:calc(2px / 2);display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;border-radius:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.forge-calendar--show-today .forge-calendar__date--today:not([disabled]){color:#6200ee;color:var(--mdc-theme-primary,#6200ee);border-color:#6200ee;border-color:var(--mdc-theme-primary,#6200ee)}.forge-calendar--show-today .forge-calendar__date--today .forge-calendar__date__inner{border-color:inherit;border-width:1px;border-style:solid;font-weight:700}.forge-calendar--show-today .forge-calendar__date--today.forge-calendar__date--selected{color:#fff;color:var(--mdc-theme-on-primary,#fff)}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]){--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;cursor:pointer}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]) .mdc-ripple-surface::after,.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]) .mdc-ripple-surface::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]) .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)}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]) .mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]).mdc-ripple-upgraded .mdc-ripple-surface::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]).mdc-ripple-upgraded .mdc-ripple-surface::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]).mdc-ripple-upgraded--unbounded .mdc-ripple-surface::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]).mdc-ripple-upgraded--foreground-activation .mdc-ripple-surface::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}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]).mdc-ripple-upgraded--foreground-deactivation .mdc-ripple-surface::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))}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]) .mdc-ripple-surface::after,.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]) .mdc-ripple-surface::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]).mdc-ripple-upgraded .mdc-ripple-surface::after,.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]).mdc-ripple-upgraded .mdc-ripple-surface::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%)}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]).mdc-ripple-upgraded .mdc-ripple-surface::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]) .mdc-ripple-surface::after,.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]) .mdc-ripple-surface::before{background-color:#000;background-color:var(--mdc-ripple-color,var(--mdc-theme-on-surface,#000))}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]).mdc-ripple-surface--hover .mdc-ripple-surface::before,.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]):hover .mdc-ripple-surface::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]).mdc-ripple-upgraded--background-focused .mdc-ripple-surface::before,.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]):not(.mdc-ripple-upgraded):focus .mdc-ripple-surface::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]):not(.mdc-ripple-upgraded) .mdc-ripple-surface::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]):not(.mdc-ripple-upgraded):active .mdc-ripple-surface::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]).mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.forge-calendar__date--selected:not([disabled]) .forge-calendar__date__inner{background-color:#6200ee;background-color:var(--mdc-theme-primary,#6200ee);color:#fff;color:var(--mdc-theme-on-primary,#fff)}.forge-calendar__date--selected[disabled] .forge-calendar__date__inner{background-color:#f5f5f5;background-color:var(--forge-theme-form-field-disabled-on-background,#f5f5f5);color:rgba(0,0,0,.38);color:var(--mdc-theme-text-disabled-on-background,rgba(0,0,0,.38))}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date--selected:hover .forge-calendar__date__inner{opacity:.87}.forge-calendar__date--selected.mdc-ripple-upgraded--background-focused .forge-calendar__date__inner,.forge-calendar__date--selected:focus .forge-calendar__date__inner{opacity:.54}.forge-calendar__date[disabled]{color:rgba(0,0,0,.38);color:var(--mdc-theme-text-disabled-on-background,rgba(0,0,0,.38))}.forge-calendar__date-spacer{pointer-events:none}.forge-calendar--fixed-height .forge-calendar__date-spacer{margin-top:2px;margin-top:var(--forge-calendar-row-gap,2px)}.forge-calendar--fixed-height .forge-calendar__date-spacer::after{float:left;padding-top:100%;content:""}.forge-calendar__range:not(.forge-calendar__date-spacer) .forge-calendar__range__target{background-color:#6200ee;background-color:var(--mdc-theme-primary,#6200ee);position:absolute;width:100%;height:100%;opacity:.14;border-radius:0}.forge-calendar__range:not(.forge-calendar__date-spacer).forge-calendar__range--start .forge-calendar__range__target{border-top-left-radius:50%;border-bottom-left-radius:50%}.forge-calendar__range:not(.forge-calendar__date-spacer).forge-calendar__range--end .forge-calendar__range__target{border-top-right-radius:50%;border-bottom-right-radius:50%}.forge-calendar__range:not(.forge-calendar__range--start):first-of-type .forge-calendar__range__target{border-top-left-radius:4px;border-bottom-left-radius:4px}.forge-calendar__range:not(.forge-calendar__range--end):last-of-type .forge-calendar__range__target{border-top-right-radius:4px;border-bottom-right-radius:4px}.forge-calendar--allow-single-date-range .forge-calendar__range--start.forge-calendar__range--end .forge-calendar__range__target{-webkit-transition:-webkit-transform .2s;transition:-webkit-transform .2s;transition:transform .2s;transition:transform .2s,-webkit-transform .2s;-webkit-transform:scale(1.15);transform:scale(1.15);-webkit-transform-origin:center;transform-origin:center}.forge-calendar__event{font-size:12px;font-size:var(--forge-calendar-event-dot-size, 12px)}.forge-calendar__event[data-event-theme=primary]{color:#3f51b5;color:var(--forge-calendar-theme-event-primary-accent,#3f51b5)}.forge-calendar__event[data-event-theme=secondary]{color:#ffc107;color:var(--forge-calendar-theme-event-secondary-accent,#ffc107)}.forge-calendar__event[data-event-theme=blue]{color:#2196f3;color:var(--forge-calendar-theme-event-blue-accent,#2196f3)}.forge-calendar__event[data-event-theme=light-green]{color:#8bc34a;color:var(--forge-calendar-theme-event-light-green-accent,#8bc34a)}.forge-calendar__event[data-event-theme=cyan]{color:#00bcd4;color:var(--forge-calendar-theme-event-cyan-accent,#00bcd4)}.forge-calendar__event[data-event-theme=teal]{color:#009688;color:var(--forge-calendar-theme-event-teal-accent,#009688)}.forge-calendar__event[data-event-theme=orange]{color:#ff9800;color:var(--forge-calendar-theme-event-orange-accent,#ff9800)}.forge-calendar__event[data-event-theme=blue-grey]{color:#607d8b;color:var(--forge-calendar-theme-event-blue-grey-accent,#607d8b)}.forge-calendar__event[data-event-theme=grey]{color:#9e9e9e;color:var(--forge-calendar-theme-event-grey-accent,#9e9e9e)}.forge-calendar__event[data-event-theme=red]{color:#f44336;color:var(--forge-calendar-theme-event-red-accent,#f44336)}.forge-calendar__event[data-event-theme=pink]{color:#e91e63;color:var(--forge-calendar-theme-event-pink-accent,#e91e63)}.forge-calendar__event[data-event-theme=purple]{color:#9c27b0;color:var(--forge-calendar-theme-event-purple-accent,#9c27b0)}.forge-calendar__event[data-event-theme=light-blue]{color:#03a9f4;color:var(--forge-calendar-theme-event-light-blue-accent,#03a9f4)}.forge-calendar__event[data-event-theme=deep-purple]{color:#673ab7;color:var(--forge-calendar-theme-event-deep-purple-accent,#673ab7)}.forge-calendar__event[data-event-theme=green]{color:#4caf50;color:var(--forge-calendar-theme-event-green-accent,#4caf50)}.forge-calendar__event[data-event-theme=lime]{color:#cddc39;color:var(--forge-calendar-theme-event-lime-accent,#cddc39)}.forge-calendar__event[data-event-theme=yellow]{color:#ffeb3b;color:var(--forge-calendar-theme-event-yellow-accent,#ffeb3b)}.forge-calendar__event[data-event-theme=brown]{color:#795548;color:var(--forge-calendar-theme-event-brown-accent,#795548)}.forge-calendar__event[data-event-theme=deep-orange]{color:#ff5722;color:var(--forge-calendar-theme-event-deep-orange-accent,#ff5722)}.forge-calendar__date[disabled] .forge-calendar__event{opacity:.14}.forge-calendar__event--overflow{color:#000;color:var(--mdc-theme-on-surface,#000);background-color:var(--mdc-theme-surface);border-radius:50%}.forge-calendar__event__wrapper{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;gap:2px;position:absolute;bottom:0;left:0;width:100%;padding-bottom:2px;pointer-events:none}.forge-calendar__date-spacer .forge-calendar__event__wrapper{display:none}.forge-calendar--rtl .forge-calendar__header forge-icon-button forge-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}#accessible-header{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;outline:0;-webkit-appearance:none;-moz-appearance:none}#month-button forge-icon{-webkit-transition:-webkit-transform .2s;transition:-webkit-transform .2s;transition:transform .2s;transition:transform .2s,-webkit-transform .2s}.forge-calendar--month-menu-open #month-button forge-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}#year-button forge-icon{-webkit-transition:-webkit-transform .2s;transition:-webkit-transform .2s;transition:transform .2s;transition:transform .2s,-webkit-transform .2s}.forge-calendar--year-menu-open #year-button forge-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host{--forge-calendar-event-stroke-color:#fff;--forge-calendar-event-stroke-color:var(--mdc-theme-surface, #fff);display:inline-block}:host([hidden]){display:none}:host([forge-popover-context=true]){--forge-calendar-event-stroke-color:#ffffff;--forge-calendar-event-stroke-color:var(--forge-theme-elevated-surface, #ffffff)}',l=class extends HTMLElement{constructor(){super();fe.define([de,ce,le,he,oe]),re(this,Qe,et),this._foundation=new G(new P(this))}static get observedAttributes(){return[r.attributes.ALLOW_SINGLE_DATE_RANGE,r.attributes.CLEAR_BUTTON,r.attributes.CONSTRAIN_TO_ENABLED,r.attributes.FIRST_DAY_OF_WEEK,r.attributes.FIXED_HEIGHT,r.attributes.LIST_YEARS,r.attributes.LOCALE,r.attributes.MAX,r.attributes.MENU_ANIMATION,r.attributes.MIN,r.attributes.MODE,r.attributes.MONTH,r.attributes.PREVENT_FOCUS,r.attributes.READONLY,r.attributes.SELECTION_FOLLOWS_MONTH,r.attributes.SHOW_HEADER,r.attributes.SHOW_OTHER_MONTHS,r.attributes.SHOW_TODAY,r.attributes.TODAY_BUTTON,r.attributes.VIEW,r.attributes.YEAR,r.attributes.YEAR_RANGE]}connectedCallback(){!this.hasAttribute(r.attributes.POPOVER_CONTEXT)&&Q(this).some(t=>t.tagName.toLowerCase()==="forge-popover")&&this.setAttribute(r.attributes.POPOVER_CONTEXT,"true"),this._foundation.initialize()}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(t,a,i){switch(t){case r.attributes.ALLOW_SINGLE_DATE_RANGE:this.allowSingleDateRange=v(i);break;case r.attributes.CLEAR_BUTTON:this.clearButton=v(i);break;case r.attributes.CONSTRAIN_TO_ENABLED:this.constrainToEnabled=v(i);break;case r.attributes.FIRST_DAY_OF_WEEK:this.firstDayOfWeek=x(i);break;case r.attributes.FIXED_HEIGHT:this.fixedHeight=v(i);break;case r.attributes.LIST_YEARS:this.listYears=v(i);break;case r.attributes.LOCALE:this.locale=i;break;case r.attributes.MAX:this.max=i;break;case r.attributes.MENU_ANIMATION:this.menuAnimation=i;break;case r.attributes.MIN:this.min=i;break;case r.attributes.MODE:this.mode=i;break;case r.attributes.MONTH:this.month=x(i);break;case r.attributes.PREVENT_FOCUS:this.preventFocus=v(i);break;case r.attributes.READONLY:this.readonly=v(i);break;case r.attributes.SELECTION_FOLLOWS_MONTH:this.selectionFollowsMonth=v(i);break;case r.attributes.SHOW_HEADER:this.showHeader=v(i);break;case r.attributes.SHOW_OTHER_MONTHS:this.showOtherMonths=v(i);break;case r.attributes.SHOW_TODAY:this.showToday=v(i);break;case r.attributes.TODAY_BUTTON:this.todayButton=v(i);break;case r.attributes.VIEW:this.view=i;break;case r.attributes.YEAR:this.year=x(i);break;case r.attributes.YEAR_RANGE:this.yearRange=i;break}}clear(){this._foundation.clear()}deselectDate(t){this._foundation.deselectDate(new Date(t))}goToDate(t,a){this._foundation.goToDate(new Date(t),a)}handleKey(t){this._foundation.handleExternalKeyEvent(t)}layout(){this._foundation.layout()}selectDate(t){this._foundation.selectDate(new Date(t))}setActiveDate(t,a){return this._foundation.setActiveDate(new Date(t),a)}today(){this._foundation.today()}toggleDate(t,a){this._foundation.toggleDate(new Date(t),a)}};d([c({set:!1})],l.prototype,"activeDate",2),d([c()],l.prototype,"allowSingleDateRange",2),d([c()],l.prototype,"clearButton",2),d([c()],l.prototype,"clearCallback",2),d([c()],l.prototype,"constrainToEnabled",2),d([c()],l.prototype,"dateBuilder",2),d([c()],l.prototype,"dateSelectCallback",2),d([c()],l.prototype,"dayBuilder",2),d([c()],l.prototype,"disabledDateBuilder",2),d([c()],l.prototype,"disabledDates",2),d([c()],l.prototype,"disabledDaysOfWeek",2),d([c()],l.prototype,"eventBuilder",2),d([c()],l.prototype,"events",2),d([c()],l.prototype,"firstDayOfWeek",2),d([c()],l.prototype,"fixedHeight",2),d([c()],l.prototype,"listYears",2),d([c()],l.prototype,"locale",2),d([c()],l.prototype,"max",2),d([c()],l.prototype,"menuAnimation",2),d([c()],l.prototype,"min",2),d([c()],l.prototype,"mode",2),d([c()],l.prototype,"month",2),d([c()],l.prototype,"preventFocus",2),d([c()],l.prototype,"readonly",2),d([c()],l.prototype,"selectionFollowsMonth",2),d([c()],l.prototype,"showHeader",2),d([c()],l.prototype,"showOtherMonths",2),d([c()],l.prototype,"showToday",2),d([c()],l.prototype,"todayButton",2),d([c()],l.prototype,"todayCallback",2),d([c()],l.prototype,"tooltipBuilder",2),d([c()],l.prototype,"value",2),d([c()],l.prototype,"view",2),d([c()],l.prototype,"weekendDays",2),d([c()],l.prototype,"year",2),d([c()],l.prototype,"yearRange",2),l=d([ne({name:r.elementName,dependencies:[me,De,ge,ve,be]})],l);var Ke=class extends ue{constructor(e){super(e)}_build(){return document.createElement(r.elementName)}onDateSelect(e){this._element.addEventListener(r.events.DATE_SELECT,e)}onFocusChange(e){this._element.addEventListener(r.events.FOCUS_CHANGE,e)}onMonthChange(e){this._element.addEventListener(r.events.MONTH_CHANGE,e)}onViewChange(e){this._element.addEventListener(r.events.VIEW_CHANGE,e)}};function Va(){ie(l)}export{V as a,pt as b,S as c,Re as d,ft as e,N as f,He as g,u as h,Ze as i,Y as j,We as k,D as l,Pe as m,R as n,H as o,K as p,Je as q,Ge as r,ze as s,Ue as t,qe as u,C as v,_ as w,A as x,W as y,Ve as z,$ as A,X as B,P as C,G as D,l as E,Ke as F,Va as G};
7
- //# sourceMappingURL=chunk.UPSXYWPD.js.map
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{a as 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 u,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 w,k as l}from"./chunk.J2M2MXP2.js";import{a as p,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=p({},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, start);--_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[u].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[u].setFormValue(e,a),a){let o=w(a)?a:a[this.name];this.on=o===i.state.ON;return}w(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.V6KUOCAR.js.map