@m3e/web 2.0.0

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 (966) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +85 -0
  3. package/dist/all.js +28231 -0
  4. package/dist/all.js.map +1 -0
  5. package/dist/all.min.js +482 -0
  6. package/dist/all.min.js.map +1 -0
  7. package/dist/app-bar.js +763 -0
  8. package/dist/app-bar.js.map +1 -0
  9. package/dist/app-bar.min.js +40 -0
  10. package/dist/app-bar.min.js.map +1 -0
  11. package/dist/autocomplete.js +883 -0
  12. package/dist/autocomplete.js.map +1 -0
  13. package/dist/autocomplete.min.js +29 -0
  14. package/dist/autocomplete.min.js.map +1 -0
  15. package/dist/avatar.js +416 -0
  16. package/dist/avatar.js.map +1 -0
  17. package/dist/avatar.min.js +23 -0
  18. package/dist/avatar.min.js.map +1 -0
  19. package/dist/badge.js +583 -0
  20. package/dist/badge.js.map +1 -0
  21. package/dist/badge.min.js +29 -0
  22. package/dist/badge.min.js.map +1 -0
  23. package/dist/bottom-sheet.js +1193 -0
  24. package/dist/bottom-sheet.js.map +1 -0
  25. package/dist/bottom-sheet.min.js +29 -0
  26. package/dist/bottom-sheet.min.js.map +1 -0
  27. package/dist/button-group.js +643 -0
  28. package/dist/button-group.js.map +1 -0
  29. package/dist/button-group.min.js +44 -0
  30. package/dist/button-group.min.js.map +1 -0
  31. package/dist/button.js +1690 -0
  32. package/dist/button.js.map +1 -0
  33. package/dist/button.min.js +40 -0
  34. package/dist/button.min.js.map +1 -0
  35. package/dist/card.js +821 -0
  36. package/dist/card.js.map +1 -0
  37. package/dist/card.min.js +40 -0
  38. package/dist/card.min.js.map +1 -0
  39. package/dist/checkbox.js +608 -0
  40. package/dist/checkbox.js.map +1 -0
  41. package/dist/checkbox.min.js +40 -0
  42. package/dist/checkbox.min.js.map +1 -0
  43. package/dist/chips.js +1761 -0
  44. package/dist/chips.js.map +1 -0
  45. package/dist/chips.min.js +46 -0
  46. package/dist/chips.min.js.map +1 -0
  47. package/dist/core-a11y.js +1810 -0
  48. package/dist/core-a11y.js.map +1 -0
  49. package/dist/core-a11y.min.js +74 -0
  50. package/dist/core-a11y.min.js.map +1 -0
  51. package/dist/core-anchoring.js +1747 -0
  52. package/dist/core-anchoring.js.map +1 -0
  53. package/dist/core-anchoring.min.js +7 -0
  54. package/dist/core-anchoring.min.js.map +1 -0
  55. package/dist/core-bidi.js +105 -0
  56. package/dist/core-bidi.js.map +1 -0
  57. package/dist/core-bidi.min.js +16 -0
  58. package/dist/core-bidi.min.js.map +1 -0
  59. package/dist/core-layout.js +64 -0
  60. package/dist/core-layout.js.map +1 -0
  61. package/dist/core-layout.min.js +15 -0
  62. package/dist/core-layout.min.js.map +1 -0
  63. package/dist/core-platform.js +46 -0
  64. package/dist/core-platform.js.map +1 -0
  65. package/dist/core-platform.min.js +15 -0
  66. package/dist/core-platform.min.js.map +1 -0
  67. package/dist/core.js +5641 -0
  68. package/dist/core.js.map +1 -0
  69. package/dist/core.min.js +55 -0
  70. package/dist/core.min.js.map +1 -0
  71. package/dist/css-custom-data.json +11892 -0
  72. package/dist/custom-elements.json +63037 -0
  73. package/dist/dialog.js +1079 -0
  74. package/dist/dialog.js.map +1 -0
  75. package/dist/dialog.min.js +51 -0
  76. package/dist/dialog.min.js.map +1 -0
  77. package/dist/divider.js +489 -0
  78. package/dist/divider.js.map +1 -0
  79. package/dist/divider.min.js +29 -0
  80. package/dist/divider.min.js.map +1 -0
  81. package/dist/drawer-container.js +861 -0
  82. package/dist/drawer-container.js.map +1 -0
  83. package/dist/drawer-container.min.js +34 -0
  84. package/dist/drawer-container.min.js.map +1 -0
  85. package/dist/expansion-panel.js +878 -0
  86. package/dist/expansion-panel.js.map +1 -0
  87. package/dist/expansion-panel.min.js +40 -0
  88. package/dist/expansion-panel.min.js.map +1 -0
  89. package/dist/fab-menu.js +850 -0
  90. package/dist/fab-menu.js.map +1 -0
  91. package/dist/fab-menu.min.js +40 -0
  92. package/dist/fab-menu.min.js.map +1 -0
  93. package/dist/fab.js +1459 -0
  94. package/dist/fab.js.map +1 -0
  95. package/dist/fab.min.js +40 -0
  96. package/dist/fab.min.js.map +1 -0
  97. package/dist/form-field.js +919 -0
  98. package/dist/form-field.js.map +1 -0
  99. package/dist/form-field.min.js +61 -0
  100. package/dist/form-field.min.js.map +1 -0
  101. package/dist/heading.js +597 -0
  102. package/dist/heading.js.map +1 -0
  103. package/dist/heading.min.js +29 -0
  104. package/dist/heading.min.js.map +1 -0
  105. package/dist/html-custom-data.json +2628 -0
  106. package/dist/icon-button.js +1419 -0
  107. package/dist/icon-button.js.map +1 -0
  108. package/dist/icon-button.min.js +40 -0
  109. package/dist/icon-button.min.js.map +1 -0
  110. package/dist/icon.js +547 -0
  111. package/dist/icon.js.map +1 -0
  112. package/dist/icon.min.js +40 -0
  113. package/dist/icon.min.js.map +1 -0
  114. package/dist/index.js +7 -0
  115. package/dist/index.js.map +1 -0
  116. package/dist/list.js +1840 -0
  117. package/dist/list.js.map +1 -0
  118. package/dist/list.min.js +52 -0
  119. package/dist/list.min.js.map +1 -0
  120. package/dist/loading-indicator.js +533 -0
  121. package/dist/loading-indicator.js.map +1 -0
  122. package/dist/loading-indicator.min.js +40 -0
  123. package/dist/loading-indicator.min.js.map +1 -0
  124. package/dist/menu.js +1509 -0
  125. package/dist/menu.js.map +1 -0
  126. package/dist/menu.min.js +45 -0
  127. package/dist/menu.min.js.map +1 -0
  128. package/dist/nav-bar.js +738 -0
  129. package/dist/nav-bar.js.map +1 -0
  130. package/dist/nav-bar.min.js +45 -0
  131. package/dist/nav-bar.min.js.map +1 -0
  132. package/dist/nav-menu.js +1498 -0
  133. package/dist/nav-menu.js.map +1 -0
  134. package/dist/nav-menu.min.js +50 -0
  135. package/dist/nav-menu.min.js.map +1 -0
  136. package/dist/nav-rail.js +565 -0
  137. package/dist/nav-rail.js.map +1 -0
  138. package/dist/nav-rail.min.js +23 -0
  139. package/dist/nav-rail.min.js.map +1 -0
  140. package/dist/option.js +802 -0
  141. package/dist/option.js.map +1 -0
  142. package/dist/option.min.js +40 -0
  143. package/dist/option.min.js.map +1 -0
  144. package/dist/paginator.js +700 -0
  145. package/dist/paginator.js.map +1 -0
  146. package/dist/paginator.min.js +37 -0
  147. package/dist/paginator.min.js.map +1 -0
  148. package/dist/progress-indicator.js +1405 -0
  149. package/dist/progress-indicator.js.map +1 -0
  150. package/dist/progress-indicator.min.js +108 -0
  151. package/dist/progress-indicator.min.js.map +1 -0
  152. package/dist/radio-group.js +757 -0
  153. package/dist/radio-group.js.map +1 -0
  154. package/dist/radio-group.min.js +40 -0
  155. package/dist/radio-group.min.js.map +1 -0
  156. package/dist/segmented-button.js +782 -0
  157. package/dist/segmented-button.js.map +1 -0
  158. package/dist/segmented-button.min.js +40 -0
  159. package/dist/segmented-button.min.js.map +1 -0
  160. package/dist/select.js +1235 -0
  161. package/dist/select.js.map +1 -0
  162. package/dist/select.min.js +57 -0
  163. package/dist/select.min.js.map +1 -0
  164. package/dist/shape.js +543 -0
  165. package/dist/shape.js.map +1 -0
  166. package/dist/shape.min.js +29 -0
  167. package/dist/shape.min.js.map +1 -0
  168. package/dist/slide-group.js +655 -0
  169. package/dist/slide-group.js.map +1 -0
  170. package/dist/slide-group.min.js +45 -0
  171. package/dist/slide-group.min.js.map +1 -0
  172. package/dist/slider.js +1343 -0
  173. package/dist/slider.js.map +1 -0
  174. package/dist/slider.min.js +50 -0
  175. package/dist/slider.min.js.map +1 -0
  176. package/dist/snackbar.js +632 -0
  177. package/dist/snackbar.js.map +1 -0
  178. package/dist/snackbar.min.js +29 -0
  179. package/dist/snackbar.min.js.map +1 -0
  180. package/dist/split-button.js +661 -0
  181. package/dist/split-button.js.map +1 -0
  182. package/dist/split-button.min.js +40 -0
  183. package/dist/split-button.min.js.map +1 -0
  184. package/dist/src/all.d.ts +47 -0
  185. package/dist/src/all.d.ts.map +1 -0
  186. package/dist/src/app-bar/AppBarElement.d.ts +139 -0
  187. package/dist/src/app-bar/AppBarElement.d.ts.map +1 -0
  188. package/dist/src/app-bar/AppBarSize.d.ts +3 -0
  189. package/dist/src/app-bar/AppBarSize.d.ts.map +1 -0
  190. package/dist/src/app-bar/index.d.ts +3 -0
  191. package/dist/src/app-bar/index.d.ts.map +1 -0
  192. package/dist/src/app-bar/styles/AppBarSizeStyle.d.ts +7 -0
  193. package/dist/src/app-bar/styles/AppBarSizeStyle.d.ts.map +1 -0
  194. package/dist/src/app-bar/styles/AppBarSizeToken.d.ts +28 -0
  195. package/dist/src/app-bar/styles/AppBarSizeToken.d.ts.map +1 -0
  196. package/dist/src/app-bar/styles/AppBarStyle.d.ts +7 -0
  197. package/dist/src/app-bar/styles/AppBarStyle.d.ts.map +1 -0
  198. package/dist/src/app-bar/styles/AppBarToken.d.ts +15 -0
  199. package/dist/src/app-bar/styles/AppBarToken.d.ts.map +1 -0
  200. package/dist/src/app-bar/styles/index.d.ts +3 -0
  201. package/dist/src/app-bar/styles/index.d.ts.map +1 -0
  202. package/dist/src/autocomplete/AutocompleteElement.d.ts +79 -0
  203. package/dist/src/autocomplete/AutocompleteElement.d.ts.map +1 -0
  204. package/dist/src/autocomplete/index.d.ts +2 -0
  205. package/dist/src/autocomplete/index.d.ts.map +1 -0
  206. package/dist/src/avatar/AvatarElement.d.ts +54 -0
  207. package/dist/src/avatar/AvatarElement.d.ts.map +1 -0
  208. package/dist/src/avatar/index.d.ts +2 -0
  209. package/dist/src/avatar/index.d.ts.map +1 -0
  210. package/dist/src/badge/BadgeElement.d.ts +76 -0
  211. package/dist/src/badge/BadgeElement.d.ts.map +1 -0
  212. package/dist/src/badge/BadgePosition.d.ts +3 -0
  213. package/dist/src/badge/BadgePosition.d.ts.map +1 -0
  214. package/dist/src/badge/BadgeSize.d.ts +3 -0
  215. package/dist/src/badge/BadgeSize.d.ts.map +1 -0
  216. package/dist/src/badge/index.d.ts +4 -0
  217. package/dist/src/badge/index.d.ts.map +1 -0
  218. package/dist/src/bottom-sheet/BottomSheetActionElement.d.ts +17 -0
  219. package/dist/src/bottom-sheet/BottomSheetActionElement.d.ts.map +1 -0
  220. package/dist/src/bottom-sheet/BottomSheetElement.d.ts +189 -0
  221. package/dist/src/bottom-sheet/BottomSheetElement.d.ts.map +1 -0
  222. package/dist/src/bottom-sheet/BottomSheetTriggerElement.d.ts +36 -0
  223. package/dist/src/bottom-sheet/BottomSheetTriggerElement.d.ts.map +1 -0
  224. package/dist/src/bottom-sheet/index.d.ts +4 -0
  225. package/dist/src/bottom-sheet/index.d.ts.map +1 -0
  226. package/dist/src/button/ButtonElement.d.ts +429 -0
  227. package/dist/src/button/ButtonElement.d.ts.map +1 -0
  228. package/dist/src/button/ButtonShape.d.ts +3 -0
  229. package/dist/src/button/ButtonShape.d.ts.map +1 -0
  230. package/dist/src/button/ButtonSize.d.ts +3 -0
  231. package/dist/src/button/ButtonSize.d.ts.map +1 -0
  232. package/dist/src/button/ButtonVariant.d.ts +3 -0
  233. package/dist/src/button/ButtonVariant.d.ts.map +1 -0
  234. package/dist/src/button/index.d.ts +5 -0
  235. package/dist/src/button/index.d.ts.map +1 -0
  236. package/dist/src/button/styles/ButtonSizeStyle.d.ts +7 -0
  237. package/dist/src/button/styles/ButtonSizeStyle.d.ts.map +1 -0
  238. package/dist/src/button/styles/ButtonSizeToken.d.ts +27 -0
  239. package/dist/src/button/styles/ButtonSizeToken.d.ts.map +1 -0
  240. package/dist/src/button/styles/ButtonStyle.d.ts +7 -0
  241. package/dist/src/button/styles/ButtonStyle.d.ts.map +1 -0
  242. package/dist/src/button/styles/ButtonVariantStyle.d.ts +7 -0
  243. package/dist/src/button/styles/ButtonVariantStyle.d.ts.map +1 -0
  244. package/dist/src/button/styles/ButtonVariantToken.d.ts +75 -0
  245. package/dist/src/button/styles/ButtonVariantToken.d.ts.map +1 -0
  246. package/dist/src/button/styles/index.d.ts +4 -0
  247. package/dist/src/button/styles/index.d.ts.map +1 -0
  248. package/dist/src/button-group/ButtonGroupElement.d.ts +98 -0
  249. package/dist/src/button-group/ButtonGroupElement.d.ts.map +1 -0
  250. package/dist/src/button-group/ButtonGroupSize.d.ts +3 -0
  251. package/dist/src/button-group/ButtonGroupSize.d.ts.map +1 -0
  252. package/dist/src/button-group/ButtonGroupVariant.d.ts +3 -0
  253. package/dist/src/button-group/ButtonGroupVariant.d.ts.map +1 -0
  254. package/dist/src/button-group/index.d.ts +4 -0
  255. package/dist/src/button-group/index.d.ts.map +1 -0
  256. package/dist/src/card/CardElement.d.ts +171 -0
  257. package/dist/src/card/CardElement.d.ts.map +1 -0
  258. package/dist/src/card/CardOrientation.d.ts +3 -0
  259. package/dist/src/card/CardOrientation.d.ts.map +1 -0
  260. package/dist/src/card/CardVariant.d.ts +3 -0
  261. package/dist/src/card/CardVariant.d.ts.map +1 -0
  262. package/dist/src/card/index.d.ts +4 -0
  263. package/dist/src/card/index.d.ts.map +1 -0
  264. package/dist/src/card/styles/CardStyle.d.ts +7 -0
  265. package/dist/src/card/styles/CardStyle.d.ts.map +1 -0
  266. package/dist/src/card/styles/CardToken.d.ts +9 -0
  267. package/dist/src/card/styles/CardToken.d.ts.map +1 -0
  268. package/dist/src/card/styles/CardVariantStyle.d.ts +7 -0
  269. package/dist/src/card/styles/CardVariantStyle.d.ts.map +1 -0
  270. package/dist/src/card/styles/CardVariantToken.d.ts +50 -0
  271. package/dist/src/card/styles/CardVariantToken.d.ts.map +1 -0
  272. package/dist/src/card/styles/index.d.ts +3 -0
  273. package/dist/src/card/styles/index.d.ts.map +1 -0
  274. package/dist/src/checkbox/CheckboxElement.d.ts +100 -0
  275. package/dist/src/checkbox/CheckboxElement.d.ts.map +1 -0
  276. package/dist/src/checkbox/index.d.ts +2 -0
  277. package/dist/src/checkbox/index.d.ts.map +1 -0
  278. package/dist/src/chips/AssistChipElement.d.ts +83 -0
  279. package/dist/src/chips/AssistChipElement.d.ts.map +1 -0
  280. package/dist/src/chips/ChipElement.d.ts +83 -0
  281. package/dist/src/chips/ChipElement.d.ts.map +1 -0
  282. package/dist/src/chips/ChipSetElement.d.ts +42 -0
  283. package/dist/src/chips/ChipSetElement.d.ts.map +1 -0
  284. package/dist/src/chips/ChipVariant.d.ts +3 -0
  285. package/dist/src/chips/ChipVariant.d.ts.map +1 -0
  286. package/dist/src/chips/FilterChipElement.d.ts +105 -0
  287. package/dist/src/chips/FilterChipElement.d.ts.map +1 -0
  288. package/dist/src/chips/FilterChipSetElement.d.ts +81 -0
  289. package/dist/src/chips/FilterChipSetElement.d.ts.map +1 -0
  290. package/dist/src/chips/InputChipElement.d.ts +117 -0
  291. package/dist/src/chips/InputChipElement.d.ts.map +1 -0
  292. package/dist/src/chips/InputChipSetElement.d.ts +74 -0
  293. package/dist/src/chips/InputChipSetElement.d.ts.map +1 -0
  294. package/dist/src/chips/SuggestionChipElement.d.ts +84 -0
  295. package/dist/src/chips/SuggestionChipElement.d.ts.map +1 -0
  296. package/dist/src/chips/index.d.ts +10 -0
  297. package/dist/src/chips/index.d.ts.map +1 -0
  298. package/dist/src/core/a11y/AriaDescriber.d.ts +31 -0
  299. package/dist/src/core/a11y/AriaDescriber.d.ts.map +1 -0
  300. package/dist/src/core/a11y/FocusTrapElement.d.ts +25 -0
  301. package/dist/src/core/a11y/FocusTrapElement.d.ts.map +1 -0
  302. package/dist/src/core/a11y/InteractivityChecker.d.ts +22 -0
  303. package/dist/src/core/a11y/InteractivityChecker.d.ts.map +1 -0
  304. package/dist/src/core/a11y/LiveAnnouncer.d.ts +56 -0
  305. package/dist/src/core/a11y/LiveAnnouncer.d.ts.map +1 -0
  306. package/dist/src/core/a11y/aria-reference.d.ts +30 -0
  307. package/dist/src/core/a11y/aria-reference.d.ts.map +1 -0
  308. package/dist/src/core/a11y/index.d.ts +8 -0
  309. package/dist/src/core/a11y/index.d.ts.map +1 -0
  310. package/dist/src/core/a11y/keycodes/KeyCode.d.ts +118 -0
  311. package/dist/src/core/a11y/keycodes/KeyCode.d.ts.map +1 -0
  312. package/dist/src/core/a11y/keycodes/ModifierKeys.d.ts +5 -0
  313. package/dist/src/core/a11y/keycodes/ModifierKeys.d.ts.map +1 -0
  314. package/dist/src/core/a11y/keycodes/getKeyCode.d.ts +7 -0
  315. package/dist/src/core/a11y/keycodes/getKeyCode.d.ts.map +1 -0
  316. package/dist/src/core/a11y/keycodes/hasModifierKey.d.ts +9 -0
  317. package/dist/src/core/a11y/keycodes/hasModifierKey.d.ts.map +1 -0
  318. package/dist/src/core/a11y/keycodes/index.d.ts +6 -0
  319. package/dist/src/core/a11y/keycodes/index.d.ts.map +1 -0
  320. package/dist/src/core/a11y/keycodes/isModifierAllowed.d.ts +9 -0
  321. package/dist/src/core/a11y/keycodes/isModifierAllowed.d.ts.map +1 -0
  322. package/dist/src/core/a11y/list-key/FocusKeyManager.d.ts +17 -0
  323. package/dist/src/core/a11y/list-key/FocusKeyManager.d.ts.map +1 -0
  324. package/dist/src/core/a11y/list-key/ListKeyManager.d.ts +125 -0
  325. package/dist/src/core/a11y/list-key/ListKeyManager.d.ts.map +1 -0
  326. package/dist/src/core/a11y/list-key/ListManager.d.ts +37 -0
  327. package/dist/src/core/a11y/list-key/ListManager.d.ts.map +1 -0
  328. package/dist/src/core/a11y/list-key/RadioKeyManager.d.ts +20 -0
  329. package/dist/src/core/a11y/list-key/RadioKeyManager.d.ts.map +1 -0
  330. package/dist/src/core/a11y/list-key/RovingTabIndexManager.d.ts +22 -0
  331. package/dist/src/core/a11y/list-key/RovingTabIndexManager.d.ts.map +1 -0
  332. package/dist/src/core/a11y/list-key/SelectionManager.d.ts +46 -0
  333. package/dist/src/core/a11y/list-key/SelectionManager.d.ts.map +1 -0
  334. package/dist/src/core/a11y/list-key/Typeahead.d.ts +64 -0
  335. package/dist/src/core/a11y/list-key/Typeahead.d.ts.map +1 -0
  336. package/dist/src/core/a11y/list-key/index.d.ts +8 -0
  337. package/dist/src/core/a11y/list-key/index.d.ts.map +1 -0
  338. package/dist/src/core/a11y/visuallyHide.d.ts +6 -0
  339. package/dist/src/core/a11y/visuallyHide.d.ts.map +1 -0
  340. package/dist/src/core/anchoring/AnchorOptions.d.ts +15 -0
  341. package/dist/src/core/anchoring/AnchorOptions.d.ts.map +1 -0
  342. package/dist/src/core/anchoring/AnchorPosition.d.ts +3 -0
  343. package/dist/src/core/anchoring/AnchorPosition.d.ts.map +1 -0
  344. package/dist/src/core/anchoring/index.d.ts +4 -0
  345. package/dist/src/core/anchoring/index.d.ts.map +1 -0
  346. package/dist/src/core/anchoring/positionAnchor.d.ts +12 -0
  347. package/dist/src/core/anchoring/positionAnchor.d.ts.map +1 -0
  348. package/dist/src/core/bidi/Directionality.d.ts +27 -0
  349. package/dist/src/core/bidi/Directionality.d.ts.map +1 -0
  350. package/dist/src/core/bidi/index.d.ts +2 -0
  351. package/dist/src/core/bidi/index.d.ts.map +1 -0
  352. package/dist/src/core/index.d.ts +2 -0
  353. package/dist/src/core/index.d.ts.map +1 -0
  354. package/dist/src/core/layout/Breakpoint.d.ts +26 -0
  355. package/dist/src/core/layout/Breakpoint.d.ts.map +1 -0
  356. package/dist/src/core/layout/BreakpointObserver.d.ts +18 -0
  357. package/dist/src/core/layout/BreakpointObserver.d.ts.map +1 -0
  358. package/dist/src/core/layout/index.d.ts +3 -0
  359. package/dist/src/core/layout/index.d.ts.map +1 -0
  360. package/dist/src/core/platform/Platform.d.ts +34 -0
  361. package/dist/src/core/platform/Platform.d.ts.map +1 -0
  362. package/dist/src/core/platform/index.d.ts +2 -0
  363. package/dist/src/core/platform/index.d.ts.map +1 -0
  364. package/dist/src/core/shared/controllers/AnimationLoopController.d.ts +13 -0
  365. package/dist/src/core/shared/controllers/AnimationLoopController.d.ts.map +1 -0
  366. package/dist/src/core/shared/controllers/FocusController.d.ts +34 -0
  367. package/dist/src/core/shared/controllers/FocusController.d.ts.map +1 -0
  368. package/dist/src/core/shared/controllers/HoverController.d.ts +40 -0
  369. package/dist/src/core/shared/controllers/HoverController.d.ts.map +1 -0
  370. package/dist/src/core/shared/controllers/IntersectionController.d.ts +40 -0
  371. package/dist/src/core/shared/controllers/IntersectionController.d.ts.map +1 -0
  372. package/dist/src/core/shared/controllers/LongPressController.d.ts +32 -0
  373. package/dist/src/core/shared/controllers/LongPressController.d.ts.map +1 -0
  374. package/dist/src/core/shared/controllers/MonitorControllerBase.d.ts +62 -0
  375. package/dist/src/core/shared/controllers/MonitorControllerBase.d.ts.map +1 -0
  376. package/dist/src/core/shared/controllers/MutationController.d.ts +37 -0
  377. package/dist/src/core/shared/controllers/MutationController.d.ts.map +1 -0
  378. package/dist/src/core/shared/controllers/PressedController.d.ts +47 -0
  379. package/dist/src/core/shared/controllers/PressedController.d.ts.map +1 -0
  380. package/dist/src/core/shared/controllers/ResizeController.d.ts +40 -0
  381. package/dist/src/core/shared/controllers/ResizeController.d.ts.map +1 -0
  382. package/dist/src/core/shared/controllers/ScrollController.d.ts +34 -0
  383. package/dist/src/core/shared/controllers/ScrollController.d.ts.map +1 -0
  384. package/dist/src/core/shared/controllers/ScrollLockController.d.ts +16 -0
  385. package/dist/src/core/shared/controllers/ScrollLockController.d.ts.map +1 -0
  386. package/dist/src/core/shared/controllers/index.d.ts +11 -0
  387. package/dist/src/core/shared/controllers/index.d.ts.map +1 -0
  388. package/dist/src/core/shared/converters/index.d.ts +2 -0
  389. package/dist/src/core/shared/converters/index.d.ts.map +1 -0
  390. package/dist/src/core/shared/converters/spaceSeparatedStringConverter.d.ts +4 -0
  391. package/dist/src/core/shared/converters/spaceSeparatedStringConverter.d.ts.map +1 -0
  392. package/dist/src/core/shared/decorators/debounce.d.ts +7 -0
  393. package/dist/src/core/shared/decorators/debounce.d.ts.map +1 -0
  394. package/dist/src/core/shared/decorators/index.d.ts +2 -0
  395. package/dist/src/core/shared/decorators/index.d.ts.map +1 -0
  396. package/dist/src/core/shared/directives/index.d.ts +2 -0
  397. package/dist/src/core/shared/directives/index.d.ts.map +1 -0
  398. package/dist/src/core/shared/directives/safeStyleMap.d.ts +44 -0
  399. package/dist/src/core/shared/directives/safeStyleMap.d.ts.map +1 -0
  400. package/dist/src/core/shared/index.d.ts +9 -0
  401. package/dist/src/core/shared/index.d.ts.map +1 -0
  402. package/dist/src/core/shared/mixins/AttachInternals.d.ts +24 -0
  403. package/dist/src/core/shared/mixins/AttachInternals.d.ts.map +1 -0
  404. package/dist/src/core/shared/mixins/Checked.d.ts +24 -0
  405. package/dist/src/core/shared/mixins/Checked.d.ts.map +1 -0
  406. package/dist/src/core/shared/mixins/CheckedIndeterminate.d.ts +25 -0
  407. package/dist/src/core/shared/mixins/CheckedIndeterminate.d.ts.map +1 -0
  408. package/dist/src/core/shared/mixins/CheckedOrSelected.d.ts +23 -0
  409. package/dist/src/core/shared/mixins/CheckedOrSelected.d.ts.map +1 -0
  410. package/dist/src/core/shared/mixins/ConstraintValidation.d.ts +48 -0
  411. package/dist/src/core/shared/mixins/ConstraintValidation.d.ts.map +1 -0
  412. package/dist/src/core/shared/mixins/Constructor.d.ts +3 -0
  413. package/dist/src/core/shared/mixins/Constructor.d.ts.map +1 -0
  414. package/dist/src/core/shared/mixins/Dirty.d.ts +27 -0
  415. package/dist/src/core/shared/mixins/Dirty.d.ts.map +1 -0
  416. package/dist/src/core/shared/mixins/Disabled.d.ts +25 -0
  417. package/dist/src/core/shared/mixins/Disabled.d.ts.map +1 -0
  418. package/dist/src/core/shared/mixins/DisabledInteractive.d.ts +25 -0
  419. package/dist/src/core/shared/mixins/DisabledInteractive.d.ts.map +1 -0
  420. package/dist/src/core/shared/mixins/EventAttribute.d.ts +11 -0
  421. package/dist/src/core/shared/mixins/EventAttribute.d.ts.map +1 -0
  422. package/dist/src/core/shared/mixins/Focusable.d.ts +11 -0
  423. package/dist/src/core/shared/mixins/Focusable.d.ts.map +1 -0
  424. package/dist/src/core/shared/mixins/FormAssociated.d.ts +34 -0
  425. package/dist/src/core/shared/mixins/FormAssociated.d.ts.map +1 -0
  426. package/dist/src/core/shared/mixins/FormSubmitter.d.ts +34 -0
  427. package/dist/src/core/shared/mixins/FormSubmitter.d.ts.map +1 -0
  428. package/dist/src/core/shared/mixins/HtmlFor.d.ts +30 -0
  429. package/dist/src/core/shared/mixins/HtmlFor.d.ts.map +1 -0
  430. package/dist/src/core/shared/mixins/KeyboardClick.d.ts +11 -0
  431. package/dist/src/core/shared/mixins/KeyboardClick.d.ts.map +1 -0
  432. package/dist/src/core/shared/mixins/Labelled.d.ts +26 -0
  433. package/dist/src/core/shared/mixins/Labelled.d.ts.map +1 -0
  434. package/dist/src/core/shared/mixins/LinkButton.d.ts +46 -0
  435. package/dist/src/core/shared/mixins/LinkButton.d.ts.map +1 -0
  436. package/dist/src/core/shared/mixins/ReadOnly.d.ts +25 -0
  437. package/dist/src/core/shared/mixins/ReadOnly.d.ts.map +1 -0
  438. package/dist/src/core/shared/mixins/Required.d.ts +26 -0
  439. package/dist/src/core/shared/mixins/Required.d.ts.map +1 -0
  440. package/dist/src/core/shared/mixins/RequiredConstraintValidation.d.ts +21 -0
  441. package/dist/src/core/shared/mixins/RequiredConstraintValidation.d.ts.map +1 -0
  442. package/dist/src/core/shared/mixins/Role.d.ts +13 -0
  443. package/dist/src/core/shared/mixins/Role.d.ts.map +1 -0
  444. package/dist/src/core/shared/mixins/Selected.d.ts +24 -0
  445. package/dist/src/core/shared/mixins/Selected.d.ts.map +1 -0
  446. package/dist/src/core/shared/mixins/Touched.d.ts +27 -0
  447. package/dist/src/core/shared/mixins/Touched.d.ts.map +1 -0
  448. package/dist/src/core/shared/mixins/Vertical.d.ts +24 -0
  449. package/dist/src/core/shared/mixins/Vertical.d.ts.map +1 -0
  450. package/dist/src/core/shared/mixins/hasKeys.d.ts +9 -0
  451. package/dist/src/core/shared/mixins/hasKeys.d.ts.map +1 -0
  452. package/dist/src/core/shared/mixins/index.d.ts +25 -0
  453. package/dist/src/core/shared/mixins/index.d.ts.map +1 -0
  454. package/dist/src/core/shared/primitives/ActionElementBase.d.ts +22 -0
  455. package/dist/src/core/shared/primitives/ActionElementBase.d.ts.map +1 -0
  456. package/dist/src/core/shared/primitives/CollapsibleElement.d.ts +58 -0
  457. package/dist/src/core/shared/primitives/CollapsibleElement.d.ts.map +1 -0
  458. package/dist/src/core/shared/primitives/ElevationElement.d.ts +87 -0
  459. package/dist/src/core/shared/primitives/ElevationElement.d.ts.map +1 -0
  460. package/dist/src/core/shared/primitives/ElevationLevel.d.ts +3 -0
  461. package/dist/src/core/shared/primitives/ElevationLevel.d.ts.map +1 -0
  462. package/dist/src/core/shared/primitives/ElevationToken.d.ts +15 -0
  463. package/dist/src/core/shared/primitives/ElevationToken.d.ts.map +1 -0
  464. package/dist/src/core/shared/primitives/FocusRingElement.d.ts +77 -0
  465. package/dist/src/core/shared/primitives/FocusRingElement.d.ts.map +1 -0
  466. package/dist/src/core/shared/primitives/FocusRingToken.d.ts +17 -0
  467. package/dist/src/core/shared/primitives/FocusRingToken.d.ts.map +1 -0
  468. package/dist/src/core/shared/primitives/PseudoCheckboxElement.d.ts +49 -0
  469. package/dist/src/core/shared/primitives/PseudoCheckboxElement.d.ts.map +1 -0
  470. package/dist/src/core/shared/primitives/PseudoRadioElement.d.ts +40 -0
  471. package/dist/src/core/shared/primitives/PseudoRadioElement.d.ts.map +1 -0
  472. package/dist/src/core/shared/primitives/RippleElement.d.ts +97 -0
  473. package/dist/src/core/shared/primitives/RippleElement.d.ts.map +1 -0
  474. package/dist/src/core/shared/primitives/RippleToken.d.ts +12 -0
  475. package/dist/src/core/shared/primitives/RippleToken.d.ts.map +1 -0
  476. package/dist/src/core/shared/primitives/ScrollContainerElement.d.ts +61 -0
  477. package/dist/src/core/shared/primitives/ScrollContainerElement.d.ts.map +1 -0
  478. package/dist/src/core/shared/primitives/ScrollDividers.d.ts +3 -0
  479. package/dist/src/core/shared/primitives/ScrollDividers.d.ts.map +1 -0
  480. package/dist/src/core/shared/primitives/SlideElement.d.ts +45 -0
  481. package/dist/src/core/shared/primitives/SlideElement.d.ts.map +1 -0
  482. package/dist/src/core/shared/primitives/StateLayerElement.d.ts +83 -0
  483. package/dist/src/core/shared/primitives/StateLayerElement.d.ts.map +1 -0
  484. package/dist/src/core/shared/primitives/StateLayerToken.d.ts +13 -0
  485. package/dist/src/core/shared/primitives/StateLayerToken.d.ts.map +1 -0
  486. package/dist/src/core/shared/primitives/TextHighlightElement.d.ts +81 -0
  487. package/dist/src/core/shared/primitives/TextHighlightElement.d.ts.map +1 -0
  488. package/dist/src/core/shared/primitives/TextOverflowElement.d.ts +38 -0
  489. package/dist/src/core/shared/primitives/TextOverflowElement.d.ts.map +1 -0
  490. package/dist/src/core/shared/primitives/index.d.ts +15 -0
  491. package/dist/src/core/shared/primitives/index.d.ts.map +1 -0
  492. package/dist/src/core/shared/tokens/ColorToken.d.ts +96 -0
  493. package/dist/src/core/shared/tokens/ColorToken.d.ts.map +1 -0
  494. package/dist/src/core/shared/tokens/DensityToken.d.ts +15 -0
  495. package/dist/src/core/shared/tokens/DensityToken.d.ts.map +1 -0
  496. package/dist/src/core/shared/tokens/DesignToken.d.ts +366 -0
  497. package/dist/src/core/shared/tokens/DesignToken.d.ts.map +1 -0
  498. package/dist/src/core/shared/tokens/ElevationToken.d.ts +16 -0
  499. package/dist/src/core/shared/tokens/ElevationToken.d.ts.map +1 -0
  500. package/dist/src/core/shared/tokens/MotionToken.d.ts +69 -0
  501. package/dist/src/core/shared/tokens/MotionToken.d.ts.map +1 -0
  502. package/dist/src/core/shared/tokens/ScrollbarToken.d.ts +10 -0
  503. package/dist/src/core/shared/tokens/ScrollbarToken.d.ts.map +1 -0
  504. package/dist/src/core/shared/tokens/ShapeToken.d.ts +79 -0
  505. package/dist/src/core/shared/tokens/ShapeToken.d.ts.map +1 -0
  506. package/dist/src/core/shared/tokens/StateToken.d.ts +10 -0
  507. package/dist/src/core/shared/tokens/StateToken.d.ts.map +1 -0
  508. package/dist/src/core/shared/tokens/TypescaleToken.d.ts +220 -0
  509. package/dist/src/core/shared/tokens/TypescaleToken.d.ts.map +1 -0
  510. package/dist/src/core/shared/tokens/index.d.ts +2 -0
  511. package/dist/src/core/shared/tokens/index.d.ts.map +1 -0
  512. package/dist/src/core/shared/utils/VelocityTracker.d.ts +22 -0
  513. package/dist/src/core/shared/utils/VelocityTracker.d.ts.map +1 -0
  514. package/dist/src/core/shared/utils/computeCssSize.d.ts +8 -0
  515. package/dist/src/core/shared/utils/computeCssSize.d.ts.map +1 -0
  516. package/dist/src/core/shared/utils/computeLineCount.d.ts +7 -0
  517. package/dist/src/core/shared/utils/computeLineCount.d.ts.map +1 -0
  518. package/dist/src/core/shared/utils/focusWhenReady.d.ts +8 -0
  519. package/dist/src/core/shared/utils/focusWhenReady.d.ts.map +1 -0
  520. package/dist/src/core/shared/utils/forcedColorsActive.d.ts +6 -0
  521. package/dist/src/core/shared/utils/forcedColorsActive.d.ts.map +1 -0
  522. package/dist/src/core/shared/utils/generateClipPaths.d.ts +8 -0
  523. package/dist/src/core/shared/utils/generateClipPaths.d.ts.map +1 -0
  524. package/dist/src/core/shared/utils/getTextContent.d.ts +8 -0
  525. package/dist/src/core/shared/utils/getTextContent.d.ts.map +1 -0
  526. package/dist/src/core/shared/utils/guid.d.ts +6 -0
  527. package/dist/src/core/shared/utils/guid.d.ts.map +1 -0
  528. package/dist/src/core/shared/utils/hasAssignedNodes.d.ts +7 -0
  529. package/dist/src/core/shared/utils/hasAssignedNodes.d.ts.map +1 -0
  530. package/dist/src/core/shared/utils/index.d.ts +15 -0
  531. package/dist/src/core/shared/utils/index.d.ts.map +1 -0
  532. package/dist/src/core/shared/utils/interceptProperty.d.ts +17 -0
  533. package/dist/src/core/shared/utils/interceptProperty.d.ts.map +1 -0
  534. package/dist/src/core/shared/utils/prefersReducedMotion.d.ts +6 -0
  535. package/dist/src/core/shared/utils/prefersReducedMotion.d.ts.map +1 -0
  536. package/dist/src/core/shared/utils/resolveElementById.d.ts +8 -0
  537. package/dist/src/core/shared/utils/resolveElementById.d.ts.map +1 -0
  538. package/dist/src/core/shared/utils/resolveFragmentUrl.d.ts +22 -0
  539. package/dist/src/core/shared/utils/resolveFragmentUrl.d.ts.map +1 -0
  540. package/dist/src/core/shared/utils/scrollIntoViewIfNeeded.d.ts +8 -0
  541. package/dist/src/core/shared/utils/scrollIntoViewIfNeeded.d.ts.map +1 -0
  542. package/dist/src/dialog/DialogActionElement.d.ts +24 -0
  543. package/dist/src/dialog/DialogActionElement.d.ts.map +1 -0
  544. package/dist/src/dialog/DialogElement.d.ts +142 -0
  545. package/dist/src/dialog/DialogElement.d.ts.map +1 -0
  546. package/dist/src/dialog/DialogTriggerElement.d.ts +21 -0
  547. package/dist/src/dialog/DialogTriggerElement.d.ts.map +1 -0
  548. package/dist/src/dialog/index.d.ts +4 -0
  549. package/dist/src/dialog/index.d.ts.map +1 -0
  550. package/dist/src/divider/DividerElement.d.ts +63 -0
  551. package/dist/src/divider/DividerElement.d.ts.map +1 -0
  552. package/dist/src/divider/index.d.ts +2 -0
  553. package/dist/src/divider/index.d.ts.map +1 -0
  554. package/dist/src/drawer-container/DrawerContainerElement.d.ts +107 -0
  555. package/dist/src/drawer-container/DrawerContainerElement.d.ts.map +1 -0
  556. package/dist/src/drawer-container/DrawerMode.d.ts +3 -0
  557. package/dist/src/drawer-container/DrawerMode.d.ts.map +1 -0
  558. package/dist/src/drawer-container/DrawerPosition.d.ts +3 -0
  559. package/dist/src/drawer-container/DrawerPosition.d.ts.map +1 -0
  560. package/dist/src/drawer-container/DrawerToggleElement.d.ts +42 -0
  561. package/dist/src/drawer-container/DrawerToggleElement.d.ts.map +1 -0
  562. package/dist/src/drawer-container/index.d.ts +5 -0
  563. package/dist/src/drawer-container/index.d.ts.map +1 -0
  564. package/dist/src/drawer-container/styles/DrawerContainerStyle.d.ts +7 -0
  565. package/dist/src/drawer-container/styles/DrawerContainerStyle.d.ts.map +1 -0
  566. package/dist/src/drawer-container/styles/DrawerContainerToken.d.ts +16 -0
  567. package/dist/src/drawer-container/styles/DrawerContainerToken.d.ts.map +1 -0
  568. package/dist/src/drawer-container/styles/index.d.ts +2 -0
  569. package/dist/src/drawer-container/styles/index.d.ts.map +1 -0
  570. package/dist/src/expansion-panel/AccordionElement.d.ts +53 -0
  571. package/dist/src/expansion-panel/AccordionElement.d.ts.map +1 -0
  572. package/dist/src/expansion-panel/ExpansionHeaderElement.d.ts +62 -0
  573. package/dist/src/expansion-panel/ExpansionHeaderElement.d.ts.map +1 -0
  574. package/dist/src/expansion-panel/ExpansionPanelElement.d.ts +132 -0
  575. package/dist/src/expansion-panel/ExpansionPanelElement.d.ts.map +1 -0
  576. package/dist/src/expansion-panel/ExpansionToggleDirection.d.ts +3 -0
  577. package/dist/src/expansion-panel/ExpansionToggleDirection.d.ts.map +1 -0
  578. package/dist/src/expansion-panel/ExpansionTogglePosition.d.ts +3 -0
  579. package/dist/src/expansion-panel/ExpansionTogglePosition.d.ts.map +1 -0
  580. package/dist/src/expansion-panel/index.d.ts +6 -0
  581. package/dist/src/expansion-panel/index.d.ts.map +1 -0
  582. package/dist/src/expansion-panel/styles/ExpansionHeaderStyle.d.ts +6 -0
  583. package/dist/src/expansion-panel/styles/ExpansionHeaderStyle.d.ts.map +1 -0
  584. package/dist/src/expansion-panel/styles/ExpansionHeaderToken.d.ts +17 -0
  585. package/dist/src/expansion-panel/styles/ExpansionHeaderToken.d.ts.map +1 -0
  586. package/dist/src/expansion-panel/styles/ExpansionPanelStyle.d.ts +6 -0
  587. package/dist/src/expansion-panel/styles/ExpansionPanelStyle.d.ts.map +1 -0
  588. package/dist/src/expansion-panel/styles/ExpansionPanelToken.d.ts +21 -0
  589. package/dist/src/expansion-panel/styles/ExpansionPanelToken.d.ts.map +1 -0
  590. package/dist/src/expansion-panel/styles/index.d.ts +3 -0
  591. package/dist/src/expansion-panel/styles/index.d.ts.map +1 -0
  592. package/dist/src/fab/FabElement.d.ts +356 -0
  593. package/dist/src/fab/FabElement.d.ts.map +1 -0
  594. package/dist/src/fab/FabSize.d.ts +3 -0
  595. package/dist/src/fab/FabSize.d.ts.map +1 -0
  596. package/dist/src/fab/FabVariant.d.ts +3 -0
  597. package/dist/src/fab/FabVariant.d.ts.map +1 -0
  598. package/dist/src/fab/index.d.ts +4 -0
  599. package/dist/src/fab/index.d.ts.map +1 -0
  600. package/dist/src/fab/styles/FabSizeStyle.d.ts +7 -0
  601. package/dist/src/fab/styles/FabSizeStyle.d.ts.map +1 -0
  602. package/dist/src/fab/styles/FabSizeToken.d.ts +25 -0
  603. package/dist/src/fab/styles/FabSizeToken.d.ts.map +1 -0
  604. package/dist/src/fab/styles/FabStyle.d.ts +7 -0
  605. package/dist/src/fab/styles/FabStyle.d.ts.map +1 -0
  606. package/dist/src/fab/styles/FabVariantStyle.d.ts +7 -0
  607. package/dist/src/fab/styles/FabVariantStyle.d.ts.map +1 -0
  608. package/dist/src/fab/styles/FabVariantToken.d.ts +52 -0
  609. package/dist/src/fab/styles/FabVariantToken.d.ts.map +1 -0
  610. package/dist/src/fab/styles/index.d.ts +4 -0
  611. package/dist/src/fab/styles/index.d.ts.map +1 -0
  612. package/dist/src/fab-menu/FabMenuElement.d.ts +110 -0
  613. package/dist/src/fab-menu/FabMenuElement.d.ts.map +1 -0
  614. package/dist/src/fab-menu/FabMenuItemElement.d.ts +74 -0
  615. package/dist/src/fab-menu/FabMenuItemElement.d.ts.map +1 -0
  616. package/dist/src/fab-menu/FabMenuTriggerElement.d.ts +43 -0
  617. package/dist/src/fab-menu/FabMenuTriggerElement.d.ts.map +1 -0
  618. package/dist/src/fab-menu/FabMenuVariant.d.ts +3 -0
  619. package/dist/src/fab-menu/FabMenuVariant.d.ts.map +1 -0
  620. package/dist/src/fab-menu/index.d.ts +5 -0
  621. package/dist/src/fab-menu/index.d.ts.map +1 -0
  622. package/dist/src/form-field/FloatLabelType.d.ts +3 -0
  623. package/dist/src/form-field/FloatLabelType.d.ts.map +1 -0
  624. package/dist/src/form-field/FormFieldControl.d.ts +48 -0
  625. package/dist/src/form-field/FormFieldControl.d.ts.map +1 -0
  626. package/dist/src/form-field/FormFieldElement.d.ts +145 -0
  627. package/dist/src/form-field/FormFieldElement.d.ts.map +1 -0
  628. package/dist/src/form-field/FormFieldVariant.d.ts +3 -0
  629. package/dist/src/form-field/FormFieldVariant.d.ts.map +1 -0
  630. package/dist/src/form-field/HideSubscriptType.d.ts +3 -0
  631. package/dist/src/form-field/HideSubscriptType.d.ts.map +1 -0
  632. package/dist/src/form-field/index.d.ts +6 -0
  633. package/dist/src/form-field/index.d.ts.map +1 -0
  634. package/dist/src/heading/HeadingElement.d.ts +176 -0
  635. package/dist/src/heading/HeadingElement.d.ts.map +1 -0
  636. package/dist/src/heading/HeadingLevel.d.ts +3 -0
  637. package/dist/src/heading/HeadingLevel.d.ts.map +1 -0
  638. package/dist/src/heading/HeadingSize.d.ts +3 -0
  639. package/dist/src/heading/HeadingSize.d.ts.map +1 -0
  640. package/dist/src/heading/HeadingVariant.d.ts +3 -0
  641. package/dist/src/heading/HeadingVariant.d.ts.map +1 -0
  642. package/dist/src/heading/index.d.ts +5 -0
  643. package/dist/src/heading/index.d.ts.map +1 -0
  644. package/dist/src/icon/IconElement.d.ts +83 -0
  645. package/dist/src/icon/IconElement.d.ts.map +1 -0
  646. package/dist/src/icon/IconGrade.d.ts +3 -0
  647. package/dist/src/icon/IconGrade.d.ts.map +1 -0
  648. package/dist/src/icon/IconVariant.d.ts +3 -0
  649. package/dist/src/icon/IconVariant.d.ts.map +1 -0
  650. package/dist/src/icon/index.d.ts +4 -0
  651. package/dist/src/icon/index.d.ts.map +1 -0
  652. package/dist/src/icon-button/IconButtonElement.d.ts +316 -0
  653. package/dist/src/icon-button/IconButtonElement.d.ts.map +1 -0
  654. package/dist/src/icon-button/IconButtonShape.d.ts +3 -0
  655. package/dist/src/icon-button/IconButtonShape.d.ts.map +1 -0
  656. package/dist/src/icon-button/IconButtonSize.d.ts +3 -0
  657. package/dist/src/icon-button/IconButtonSize.d.ts.map +1 -0
  658. package/dist/src/icon-button/IconButtonVariant.d.ts +3 -0
  659. package/dist/src/icon-button/IconButtonVariant.d.ts.map +1 -0
  660. package/dist/src/icon-button/IconButtonWidth.d.ts +3 -0
  661. package/dist/src/icon-button/IconButtonWidth.d.ts.map +1 -0
  662. package/dist/src/icon-button/index.d.ts +6 -0
  663. package/dist/src/icon-button/index.d.ts.map +1 -0
  664. package/dist/src/icon-button/styles/IconButtonSizeStyle.d.ts +7 -0
  665. package/dist/src/icon-button/styles/IconButtonSizeStyle.d.ts.map +1 -0
  666. package/dist/src/icon-button/styles/IconButtonSizeToken.d.ts +26 -0
  667. package/dist/src/icon-button/styles/IconButtonSizeToken.d.ts.map +1 -0
  668. package/dist/src/icon-button/styles/IconButtonStyle.d.ts +7 -0
  669. package/dist/src/icon-button/styles/IconButtonStyle.d.ts.map +1 -0
  670. package/dist/src/icon-button/styles/IconButtonVariantStyle.d.ts +7 -0
  671. package/dist/src/icon-button/styles/IconButtonVariantStyle.d.ts.map +1 -0
  672. package/dist/src/icon-button/styles/IconButtonVariantToken.d.ts +61 -0
  673. package/dist/src/icon-button/styles/IconButtonVariantToken.d.ts.map +1 -0
  674. package/dist/src/icon-button/styles/index.d.ts +4 -0
  675. package/dist/src/icon-button/styles/index.d.ts.map +1 -0
  676. package/dist/src/index.d.ts +1 -0
  677. package/dist/src/index.d.ts.map +1 -0
  678. package/dist/src/list/ActionListElement.d.ts +46 -0
  679. package/dist/src/list/ActionListElement.d.ts.map +1 -0
  680. package/dist/src/list/ExpandableListItemElement.d.ts +152 -0
  681. package/dist/src/list/ExpandableListItemElement.d.ts.map +1 -0
  682. package/dist/src/list/ListActionElement.d.ts +111 -0
  683. package/dist/src/list/ListActionElement.d.ts.map +1 -0
  684. package/dist/src/list/ListElement.d.ts +89 -0
  685. package/dist/src/list/ListElement.d.ts.map +1 -0
  686. package/dist/src/list/ListItemButtonElement.d.ts +25 -0
  687. package/dist/src/list/ListItemButtonElement.d.ts.map +1 -0
  688. package/dist/src/list/ListItemContentType.d.ts +3 -0
  689. package/dist/src/list/ListItemContentType.d.ts.map +1 -0
  690. package/dist/src/list/ListItemElement.d.ts +112 -0
  691. package/dist/src/list/ListItemElement.d.ts.map +1 -0
  692. package/dist/src/list/ListOptionElement.d.ts +127 -0
  693. package/dist/src/list/ListOptionElement.d.ts.map +1 -0
  694. package/dist/src/list/ListVariant.d.ts +3 -0
  695. package/dist/src/list/ListVariant.d.ts.map +1 -0
  696. package/dist/src/list/SelectionListElement.d.ts +77 -0
  697. package/dist/src/list/SelectionListElement.d.ts.map +1 -0
  698. package/dist/src/list/index.d.ts +11 -0
  699. package/dist/src/list/index.d.ts.map +1 -0
  700. package/dist/src/loading-indicator/LoadingIndicatorElement.d.ts +56 -0
  701. package/dist/src/loading-indicator/LoadingIndicatorElement.d.ts.map +1 -0
  702. package/dist/src/loading-indicator/LoadingIndicatorToken.d.ts +9 -0
  703. package/dist/src/loading-indicator/LoadingIndicatorToken.d.ts.map +1 -0
  704. package/dist/src/loading-indicator/LoadingIndicatorVariant.d.ts +3 -0
  705. package/dist/src/loading-indicator/LoadingIndicatorVariant.d.ts.map +1 -0
  706. package/dist/src/loading-indicator/ShapePolygon.d.ts +7 -0
  707. package/dist/src/loading-indicator/ShapePolygon.d.ts.map +1 -0
  708. package/dist/src/loading-indicator/index.d.ts +3 -0
  709. package/dist/src/loading-indicator/index.d.ts.map +1 -0
  710. package/dist/src/menu/MenuElement.d.ts +156 -0
  711. package/dist/src/menu/MenuElement.d.ts.map +1 -0
  712. package/dist/src/menu/MenuItemCheckboxElement.d.ts +94 -0
  713. package/dist/src/menu/MenuItemCheckboxElement.d.ts.map +1 -0
  714. package/dist/src/menu/MenuItemElement.d.ts +130 -0
  715. package/dist/src/menu/MenuItemElement.d.ts.map +1 -0
  716. package/dist/src/menu/MenuItemElementBase.d.ts +21 -0
  717. package/dist/src/menu/MenuItemElementBase.d.ts.map +1 -0
  718. package/dist/src/menu/MenuItemGroupElement.d.ts +27 -0
  719. package/dist/src/menu/MenuItemGroupElement.d.ts.map +1 -0
  720. package/dist/src/menu/MenuItemRadioElement.d.ts +95 -0
  721. package/dist/src/menu/MenuItemRadioElement.d.ts.map +1 -0
  722. package/dist/src/menu/MenuPosition.d.ts +5 -0
  723. package/dist/src/menu/MenuPosition.d.ts.map +1 -0
  724. package/dist/src/menu/MenuTriggerElement.d.ts +78 -0
  725. package/dist/src/menu/MenuTriggerElement.d.ts.map +1 -0
  726. package/dist/src/menu/MenuVariant.d.ts +3 -0
  727. package/dist/src/menu/MenuVariant.d.ts.map +1 -0
  728. package/dist/src/menu/index.d.ts +9 -0
  729. package/dist/src/menu/index.d.ts.map +1 -0
  730. package/dist/src/nav-bar/NavBarElement.d.ts +73 -0
  731. package/dist/src/nav-bar/NavBarElement.d.ts.map +1 -0
  732. package/dist/src/nav-bar/NavBarMode.d.ts +3 -0
  733. package/dist/src/nav-bar/NavBarMode.d.ts.map +1 -0
  734. package/dist/src/nav-bar/NavItemElement.d.ts +105 -0
  735. package/dist/src/nav-bar/NavItemElement.d.ts.map +1 -0
  736. package/dist/src/nav-bar/NavItemOrientation.d.ts +3 -0
  737. package/dist/src/nav-bar/NavItemOrientation.d.ts.map +1 -0
  738. package/dist/src/nav-bar/index.d.ts +5 -0
  739. package/dist/src/nav-bar/index.d.ts.map +1 -0
  740. package/dist/src/nav-menu/NavMenuElement.d.ts +113 -0
  741. package/dist/src/nav-menu/NavMenuElement.d.ts.map +1 -0
  742. package/dist/src/nav-menu/NavMenuItemElement.d.ts +189 -0
  743. package/dist/src/nav-menu/NavMenuItemElement.d.ts.map +1 -0
  744. package/dist/src/nav-menu/NavMenuItemGroupElement.d.ts +63 -0
  745. package/dist/src/nav-menu/NavMenuItemGroupElement.d.ts.map +1 -0
  746. package/dist/src/nav-menu/index.d.ts +4 -0
  747. package/dist/src/nav-menu/index.d.ts.map +1 -0
  748. package/dist/src/nav-rail/NavRailElement.d.ts +69 -0
  749. package/dist/src/nav-rail/NavRailElement.d.ts.map +1 -0
  750. package/dist/src/nav-rail/NavRailToggleElement.d.ts +46 -0
  751. package/dist/src/nav-rail/NavRailToggleElement.d.ts.map +1 -0
  752. package/dist/src/nav-rail/index.d.ts +3 -0
  753. package/dist/src/nav-rail/index.d.ts.map +1 -0
  754. package/dist/src/option/OptGroupElement.d.ts +42 -0
  755. package/dist/src/option/OptGroupElement.d.ts.map +1 -0
  756. package/dist/src/option/OptionElement.d.ts +79 -0
  757. package/dist/src/option/OptionElement.d.ts.map +1 -0
  758. package/dist/src/option/OptionPanelElement.d.ts +82 -0
  759. package/dist/src/option/OptionPanelElement.d.ts.map +1 -0
  760. package/dist/src/option/index.d.ts +4 -0
  761. package/dist/src/option/index.d.ts.map +1 -0
  762. package/dist/src/paginator/PageEventDetail.d.ts +12 -0
  763. package/dist/src/paginator/PageEventDetail.d.ts.map +1 -0
  764. package/dist/src/paginator/PaginatorElement.d.ts +170 -0
  765. package/dist/src/paginator/PaginatorElement.d.ts.map +1 -0
  766. package/dist/src/paginator/index.d.ts +3 -0
  767. package/dist/src/paginator/index.d.ts.map +1 -0
  768. package/dist/src/progress-indicator/CircularProgressIndicatorElement.d.ts +65 -0
  769. package/dist/src/progress-indicator/CircularProgressIndicatorElement.d.ts.map +1 -0
  770. package/dist/src/progress-indicator/LinearProgressIndicatorElement.d.ts +70 -0
  771. package/dist/src/progress-indicator/LinearProgressIndicatorElement.d.ts.map +1 -0
  772. package/dist/src/progress-indicator/LinearProgressMode.d.ts +3 -0
  773. package/dist/src/progress-indicator/LinearProgressMode.d.ts.map +1 -0
  774. package/dist/src/progress-indicator/ProgressElementIndicatorBase.d.ts +29 -0
  775. package/dist/src/progress-indicator/ProgressElementIndicatorBase.d.ts.map +1 -0
  776. package/dist/src/progress-indicator/ProgressIndicatorVariant.d.ts +3 -0
  777. package/dist/src/progress-indicator/ProgressIndicatorVariant.d.ts.map +1 -0
  778. package/dist/src/progress-indicator/index.d.ts +6 -0
  779. package/dist/src/progress-indicator/index.d.ts.map +1 -0
  780. package/dist/src/radio-group/RadioElement.d.ts +88 -0
  781. package/dist/src/radio-group/RadioElement.d.ts.map +1 -0
  782. package/dist/src/radio-group/RadioGroupElement.d.ts +77 -0
  783. package/dist/src/radio-group/RadioGroupElement.d.ts.map +1 -0
  784. package/dist/src/radio-group/index.d.ts +3 -0
  785. package/dist/src/radio-group/index.d.ts.map +1 -0
  786. package/dist/src/segmented-button/ButtonSegmentElement.d.ts +105 -0
  787. package/dist/src/segmented-button/ButtonSegmentElement.d.ts.map +1 -0
  788. package/dist/src/segmented-button/SegmentedButtonElement.d.ts +90 -0
  789. package/dist/src/segmented-button/SegmentedButtonElement.d.ts.map +1 -0
  790. package/dist/src/segmented-button/index.d.ts +3 -0
  791. package/dist/src/segmented-button/index.d.ts.map +1 -0
  792. package/dist/src/select/SelectElement.d.ts +119 -0
  793. package/dist/src/select/SelectElement.d.ts.map +1 -0
  794. package/dist/src/select/index.d.ts +2 -0
  795. package/dist/src/select/index.d.ts.map +1 -0
  796. package/dist/src/shape/ShapeElement.d.ts +48 -0
  797. package/dist/src/shape/ShapeElement.d.ts.map +1 -0
  798. package/dist/src/shape/ShapeName.d.ts +3 -0
  799. package/dist/src/shape/ShapeName.d.ts.map +1 -0
  800. package/dist/src/shape/ShapeNameStyle.d.ts +7 -0
  801. package/dist/src/shape/ShapeNameStyle.d.ts.map +1 -0
  802. package/dist/src/shape/ShapePolygon.d.ts +8 -0
  803. package/dist/src/shape/ShapePolygon.d.ts.map +1 -0
  804. package/dist/src/shape/ShapeStyle.d.ts +7 -0
  805. package/dist/src/shape/ShapeStyle.d.ts.map +1 -0
  806. package/dist/src/shape/ShapeToken.d.ts +13 -0
  807. package/dist/src/shape/ShapeToken.d.ts.map +1 -0
  808. package/dist/src/shape/index.d.ts +3 -0
  809. package/dist/src/shape/index.d.ts.map +1 -0
  810. package/dist/src/slide-group/SlideGroupElement.d.ts +91 -0
  811. package/dist/src/slide-group/SlideGroupElement.d.ts.map +1 -0
  812. package/dist/src/slide-group/index.d.ts +2 -0
  813. package/dist/src/slide-group/index.d.ts.map +1 -0
  814. package/dist/src/slider/SliderElement.d.ts +144 -0
  815. package/dist/src/slider/SliderElement.d.ts.map +1 -0
  816. package/dist/src/slider/SliderSize.d.ts +3 -0
  817. package/dist/src/slider/SliderSize.d.ts.map +1 -0
  818. package/dist/src/slider/SliderThumbElement.d.ts +80 -0
  819. package/dist/src/slider/SliderThumbElement.d.ts.map +1 -0
  820. package/dist/src/slider/index.d.ts +4 -0
  821. package/dist/src/slider/index.d.ts.map +1 -0
  822. package/dist/src/snackbar/Snackbar.d.ts +62 -0
  823. package/dist/src/snackbar/Snackbar.d.ts.map +1 -0
  824. package/dist/src/snackbar/SnackbarElement.d.ts +79 -0
  825. package/dist/src/snackbar/SnackbarElement.d.ts.map +1 -0
  826. package/dist/src/snackbar/index.d.ts +3 -0
  827. package/dist/src/snackbar/index.d.ts.map +1 -0
  828. package/dist/src/split-button/SplitButtonElement.d.ts +106 -0
  829. package/dist/src/split-button/SplitButtonElement.d.ts.map +1 -0
  830. package/dist/src/split-button/SplitButtonVariant.d.ts +3 -0
  831. package/dist/src/split-button/SplitButtonVariant.d.ts.map +1 -0
  832. package/dist/src/split-button/index.d.ts +3 -0
  833. package/dist/src/split-button/index.d.ts.map +1 -0
  834. package/dist/src/stepper/StepElement.d.ts +161 -0
  835. package/dist/src/stepper/StepElement.d.ts.map +1 -0
  836. package/dist/src/stepper/StepHeaderPosition.d.ts +3 -0
  837. package/dist/src/stepper/StepHeaderPosition.d.ts.map +1 -0
  838. package/dist/src/stepper/StepLabelPosition.d.ts +3 -0
  839. package/dist/src/stepper/StepLabelPosition.d.ts.map +1 -0
  840. package/dist/src/stepper/StepPanelElement.d.ts +76 -0
  841. package/dist/src/stepper/StepPanelElement.d.ts.map +1 -0
  842. package/dist/src/stepper/StepperButtonElementBase.d.ts +9 -0
  843. package/dist/src/stepper/StepperButtonElementBase.d.ts.map +1 -0
  844. package/dist/src/stepper/StepperElement.d.ts +139 -0
  845. package/dist/src/stepper/StepperElement.d.ts.map +1 -0
  846. package/dist/src/stepper/StepperNextElement.d.ts +16 -0
  847. package/dist/src/stepper/StepperNextElement.d.ts.map +1 -0
  848. package/dist/src/stepper/StepperOrientation.d.ts +3 -0
  849. package/dist/src/stepper/StepperOrientation.d.ts.map +1 -0
  850. package/dist/src/stepper/StepperPreviousElement.d.ts +16 -0
  851. package/dist/src/stepper/StepperPreviousElement.d.ts.map +1 -0
  852. package/dist/src/stepper/StepperResetElement.d.ts +16 -0
  853. package/dist/src/stepper/StepperResetElement.d.ts.map +1 -0
  854. package/dist/src/stepper/index.d.ts +11 -0
  855. package/dist/src/stepper/index.d.ts.map +1 -0
  856. package/dist/src/switch/SwitchElement.d.ts +147 -0
  857. package/dist/src/switch/SwitchElement.d.ts.map +1 -0
  858. package/dist/src/switch/SwitchIcons.d.ts +3 -0
  859. package/dist/src/switch/SwitchIcons.d.ts.map +1 -0
  860. package/dist/src/switch/index.d.ts +3 -0
  861. package/dist/src/switch/index.d.ts.map +1 -0
  862. package/dist/src/switch/styles/SwitchHandleStyle.d.ts +6 -0
  863. package/dist/src/switch/styles/SwitchHandleStyle.d.ts.map +1 -0
  864. package/dist/src/switch/styles/SwitchIconStyle.d.ts +6 -0
  865. package/dist/src/switch/styles/SwitchIconStyle.d.ts.map +1 -0
  866. package/dist/src/switch/styles/SwitchStateLayerStyle.d.ts +6 -0
  867. package/dist/src/switch/styles/SwitchStateLayerStyle.d.ts.map +1 -0
  868. package/dist/src/switch/styles/SwitchStyle.d.ts +6 -0
  869. package/dist/src/switch/styles/SwitchStyle.d.ts.map +1 -0
  870. package/dist/src/switch/styles/SwitchToken.d.ts +76 -0
  871. package/dist/src/switch/styles/SwitchToken.d.ts.map +1 -0
  872. package/dist/src/switch/styles/SwitchTrackStyle.d.ts +6 -0
  873. package/dist/src/switch/styles/SwitchTrackStyle.d.ts.map +1 -0
  874. package/dist/src/switch/styles/index.d.ts +6 -0
  875. package/dist/src/switch/styles/index.d.ts.map +1 -0
  876. package/dist/src/tabs/TabElement.d.ts +90 -0
  877. package/dist/src/tabs/TabElement.d.ts.map +1 -0
  878. package/dist/src/tabs/TabHeaderPosition.d.ts +3 -0
  879. package/dist/src/tabs/TabHeaderPosition.d.ts.map +1 -0
  880. package/dist/src/tabs/TabPanelElement.d.ts +45 -0
  881. package/dist/src/tabs/TabPanelElement.d.ts.map +1 -0
  882. package/dist/src/tabs/TabVariant.d.ts +3 -0
  883. package/dist/src/tabs/TabVariant.d.ts.map +1 -0
  884. package/dist/src/tabs/TabsElement.d.ts +118 -0
  885. package/dist/src/tabs/TabsElement.d.ts.map +1 -0
  886. package/dist/src/tabs/index.d.ts +6 -0
  887. package/dist/src/tabs/index.d.ts.map +1 -0
  888. package/dist/src/textarea-autosize/TextareaAutosizeElement.d.ts +81 -0
  889. package/dist/src/textarea-autosize/TextareaAutosizeElement.d.ts.map +1 -0
  890. package/dist/src/textarea-autosize/index.d.ts +2 -0
  891. package/dist/src/textarea-autosize/index.d.ts.map +1 -0
  892. package/dist/src/theme/ColorScheme.d.ts +3 -0
  893. package/dist/src/theme/ColorScheme.d.ts.map +1 -0
  894. package/dist/src/theme/ContrastLevel.d.ts +3 -0
  895. package/dist/src/theme/ContrastLevel.d.ts.map +1 -0
  896. package/dist/src/theme/MotionScheme.d.ts +3 -0
  897. package/dist/src/theme/MotionScheme.d.ts.map +1 -0
  898. package/dist/src/theme/ThemeElement.d.ts +91 -0
  899. package/dist/src/theme/ThemeElement.d.ts.map +1 -0
  900. package/dist/src/theme/index.d.ts +5 -0
  901. package/dist/src/theme/index.d.ts.map +1 -0
  902. package/dist/src/toc/TocElement.d.ts +86 -0
  903. package/dist/src/toc/TocElement.d.ts.map +1 -0
  904. package/dist/src/toc/TocGenerator.d.ts +25 -0
  905. package/dist/src/toc/TocGenerator.d.ts.map +1 -0
  906. package/dist/src/toc/TocItemElement.d.ts +49 -0
  907. package/dist/src/toc/TocItemElement.d.ts.map +1 -0
  908. package/dist/src/toc/index.d.ts +4 -0
  909. package/dist/src/toc/index.d.ts.map +1 -0
  910. package/dist/src/toolbar/ToolbarElement.d.ts +89 -0
  911. package/dist/src/toolbar/ToolbarElement.d.ts.map +1 -0
  912. package/dist/src/toolbar/ToolbarShape.d.ts +3 -0
  913. package/dist/src/toolbar/ToolbarShape.d.ts.map +1 -0
  914. package/dist/src/toolbar/ToolbarVariant.d.ts +3 -0
  915. package/dist/src/toolbar/ToolbarVariant.d.ts.map +1 -0
  916. package/dist/src/toolbar/index.d.ts +4 -0
  917. package/dist/src/toolbar/index.d.ts.map +1 -0
  918. package/dist/src/tooltip/RichTooltipActionElement.d.ts +21 -0
  919. package/dist/src/tooltip/RichTooltipActionElement.d.ts.map +1 -0
  920. package/dist/src/tooltip/RichTooltipElement.d.ts +116 -0
  921. package/dist/src/tooltip/RichTooltipElement.d.ts.map +1 -0
  922. package/dist/src/tooltip/RichTooltipPosition.d.ts +3 -0
  923. package/dist/src/tooltip/RichTooltipPosition.d.ts.map +1 -0
  924. package/dist/src/tooltip/TooltipElement.d.ts +73 -0
  925. package/dist/src/tooltip/TooltipElement.d.ts.map +1 -0
  926. package/dist/src/tooltip/TooltipElementBase.d.ts +69 -0
  927. package/dist/src/tooltip/TooltipElementBase.d.ts.map +1 -0
  928. package/dist/src/tooltip/TooltipPosition.d.ts +3 -0
  929. package/dist/src/tooltip/TooltipPosition.d.ts.map +1 -0
  930. package/dist/src/tooltip/TooltipTouchGestures.d.ts +3 -0
  931. package/dist/src/tooltip/TooltipTouchGestures.d.ts.map +1 -0
  932. package/dist/src/tooltip/index.d.ts +8 -0
  933. package/dist/src/tooltip/index.d.ts.map +1 -0
  934. package/dist/stepper.js +1498 -0
  935. package/dist/stepper.js.map +1 -0
  936. package/dist/stepper.min.js +57 -0
  937. package/dist/stepper.min.js.map +1 -0
  938. package/dist/switch.js +758 -0
  939. package/dist/switch.js.map +1 -0
  940. package/dist/switch.min.js +40 -0
  941. package/dist/switch.min.js.map +1 -0
  942. package/dist/tabs.js +1173 -0
  943. package/dist/tabs.js.map +1 -0
  944. package/dist/tabs.min.js +51 -0
  945. package/dist/tabs.min.js.map +1 -0
  946. package/dist/textarea-autosize.js +688 -0
  947. package/dist/textarea-autosize.js.map +1 -0
  948. package/dist/textarea-autosize.min.js +37 -0
  949. package/dist/textarea-autosize.min.js.map +1 -0
  950. package/dist/theme.js +3712 -0
  951. package/dist/theme.js.map +1 -0
  952. package/dist/theme.min.js +339 -0
  953. package/dist/theme.min.js.map +1 -0
  954. package/dist/toc.js +795 -0
  955. package/dist/toc.js.map +1 -0
  956. package/dist/toc.min.js +45 -0
  957. package/dist/toc.min.js.map +1 -0
  958. package/dist/toolbar.js +557 -0
  959. package/dist/toolbar.js.map +1 -0
  960. package/dist/toolbar.min.js +29 -0
  961. package/dist/toolbar.min.js.map +1 -0
  962. package/dist/tooltip.js +1378 -0
  963. package/dist/tooltip.js.map +1 -0
  964. package/dist/tooltip.min.js +57 -0
  965. package/dist/tooltip.min.js.map +1 -0
  966. package/package.json +287 -0
package/dist/switch.js ADDED
@@ -0,0 +1,758 @@
1
+ /**
2
+ * @license MIT
3
+ * Copyright (c) 2025 matraic
4
+ * See LICENSE file in the project root for full license text.
5
+ */
6
+ import { unsafeCSS, css, LitElement, html } from 'lit';
7
+ import { DesignToken, Labelled, Dirty, Touched, ConstraintValidation, Checked, FormAssociated, KeyboardClick, Focusable, Disabled, AttachInternals, Role, HoverController, PressedController, formValue } from '@m3e/web/core';
8
+
9
+ /******************************************************************************
10
+ Copyright (c) Microsoft Corporation.
11
+
12
+ Permission to use, copy, modify, and/or distribute this software for any
13
+ purpose with or without fee is hereby granted.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
16
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
17
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
18
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
19
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21
+ PERFORMANCE OF THIS SOFTWARE.
22
+ ***************************************************************************** */
23
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
24
+
25
+ function __decorate(decorators, target, key, desc) {
26
+ var c = arguments.length,
27
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
28
+ d;
29
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
30
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
31
+ }
32
+ function __classPrivateFieldGet(receiver, state, kind, f) {
33
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
34
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
35
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
36
+ }
37
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
38
+ var e = new Error(message);
39
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
40
+ };
41
+
42
+ /**
43
+ * @license
44
+ * Copyright 2017 Google LLC
45
+ * SPDX-License-Identifier: BSD-3-Clause
46
+ */
47
+ const t$1 = t => (e, o) => {
48
+ void 0 !== o ? o.addInitializer(() => {
49
+ customElements.define(t, e);
50
+ }) : customElements.define(t, e);
51
+ };
52
+
53
+ /**
54
+ * @license
55
+ * Copyright 2019 Google LLC
56
+ * SPDX-License-Identifier: BSD-3-Clause
57
+ */
58
+ const t = globalThis,
59
+ e$3 = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
60
+ s = Symbol(),
61
+ o$2 = new WeakMap();
62
+ let n$2 = class n {
63
+ constructor(t, e, o) {
64
+ if (this._$cssResult$ = true, o !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
65
+ this.cssText = t, this.t = e;
66
+ }
67
+ get styleSheet() {
68
+ let t = this.o;
69
+ const s = this.t;
70
+ if (e$3 && void 0 === t) {
71
+ const e = void 0 !== s && 1 === s.length;
72
+ e && (t = o$2.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$2.set(s, t));
73
+ }
74
+ return t;
75
+ }
76
+ toString() {
77
+ return this.cssText;
78
+ }
79
+ };
80
+ const r$2 = t => new n$2("string" == typeof t ? t : t + "", void 0, s),
81
+ S = (s, o) => {
82
+ if (e$3) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
83
+ const o = document.createElement("style"),
84
+ n = t.litNonce;
85
+ void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
86
+ }
87
+ },
88
+ c$1 = e$3 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
89
+ let e = "";
90
+ for (const s of t.cssRules) e += s.cssText;
91
+ return r$2(e);
92
+ })(t) : t;
93
+
94
+ /**
95
+ * @license
96
+ * Copyright 2017 Google LLC
97
+ * SPDX-License-Identifier: BSD-3-Clause
98
+ */
99
+ const {
100
+ is: i,
101
+ defineProperty: e$2,
102
+ getOwnPropertyDescriptor: h,
103
+ getOwnPropertyNames: r$1,
104
+ getOwnPropertySymbols: o$1,
105
+ getPrototypeOf: n$1
106
+ } = Object,
107
+ a = globalThis,
108
+ c = a.trustedTypes,
109
+ l = c ? c.emptyScript : "",
110
+ p = a.reactiveElementPolyfillSupport,
111
+ d = (t, s) => t,
112
+ u = {
113
+ toAttribute(t, s) {
114
+ switch (s) {
115
+ case Boolean:
116
+ t = t ? l : null;
117
+ break;
118
+ case Object:
119
+ case Array:
120
+ t = null == t ? t : JSON.stringify(t);
121
+ }
122
+ return t;
123
+ },
124
+ fromAttribute(t, s) {
125
+ let i = t;
126
+ switch (s) {
127
+ case Boolean:
128
+ i = null !== t;
129
+ break;
130
+ case Number:
131
+ i = null === t ? null : Number(t);
132
+ break;
133
+ case Object:
134
+ case Array:
135
+ try {
136
+ i = JSON.parse(t);
137
+ } catch (t) {
138
+ i = null;
139
+ }
140
+ }
141
+ return i;
142
+ }
143
+ },
144
+ f = (t, s) => !i(t, s),
145
+ b = {
146
+ attribute: true,
147
+ type: String,
148
+ converter: u,
149
+ reflect: false,
150
+ useDefault: false,
151
+ hasChanged: f
152
+ };
153
+ Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= new WeakMap();
154
+ class y extends HTMLElement {
155
+ static addInitializer(t) {
156
+ this._$Ei(), (this.l ??= []).push(t);
157
+ }
158
+ static get observedAttributes() {
159
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
160
+ }
161
+ static createProperty(t, s = b) {
162
+ if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
163
+ const i = Symbol(),
164
+ h = this.getPropertyDescriptor(t, i, s);
165
+ void 0 !== h && e$2(this.prototype, t, h);
166
+ }
167
+ }
168
+ static getPropertyDescriptor(t, s, i) {
169
+ const {
170
+ get: e,
171
+ set: r
172
+ } = h(this.prototype, t) ?? {
173
+ get() {
174
+ return this[s];
175
+ },
176
+ set(t) {
177
+ this[s] = t;
178
+ }
179
+ };
180
+ return {
181
+ get: e,
182
+ set(s) {
183
+ const h = e?.call(this);
184
+ r?.call(this, s), this.requestUpdate(t, h, i);
185
+ },
186
+ configurable: true,
187
+ enumerable: true
188
+ };
189
+ }
190
+ static getPropertyOptions(t) {
191
+ return this.elementProperties.get(t) ?? b;
192
+ }
193
+ static _$Ei() {
194
+ if (this.hasOwnProperty(d("elementProperties"))) return;
195
+ const t = n$1(this);
196
+ t.finalize(), void 0 !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
197
+ }
198
+ static finalize() {
199
+ if (this.hasOwnProperty(d("finalized"))) return;
200
+ if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
201
+ const t = this.properties,
202
+ s = [...r$1(t), ...o$1(t)];
203
+ for (const i of s) this.createProperty(i, t[i]);
204
+ }
205
+ const t = this[Symbol.metadata];
206
+ if (null !== t) {
207
+ const s = litPropertyMetadata.get(t);
208
+ if (void 0 !== s) for (const [t, i] of s) this.elementProperties.set(t, i);
209
+ }
210
+ this._$Eh = new Map();
211
+ for (const [t, s] of this.elementProperties) {
212
+ const i = this._$Eu(t, s);
213
+ void 0 !== i && this._$Eh.set(i, t);
214
+ }
215
+ this.elementStyles = this.finalizeStyles(this.styles);
216
+ }
217
+ static finalizeStyles(s) {
218
+ const i = [];
219
+ if (Array.isArray(s)) {
220
+ const e = new Set(s.flat(1 / 0).reverse());
221
+ for (const s of e) i.unshift(c$1(s));
222
+ } else void 0 !== s && i.push(c$1(s));
223
+ return i;
224
+ }
225
+ static _$Eu(t, s) {
226
+ const i = s.attribute;
227
+ return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
228
+ }
229
+ constructor() {
230
+ super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
231
+ }
232
+ _$Ev() {
233
+ this._$ES = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(t => t(this));
234
+ }
235
+ addController(t) {
236
+ (this._$EO ??= new Set()).add(t), void 0 !== this.renderRoot && this.isConnected && t.hostConnected?.();
237
+ }
238
+ removeController(t) {
239
+ this._$EO?.delete(t);
240
+ }
241
+ _$E_() {
242
+ const t = new Map(),
243
+ s = this.constructor.elementProperties;
244
+ for (const i of s.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
245
+ t.size > 0 && (this._$Ep = t);
246
+ }
247
+ createRenderRoot() {
248
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
249
+ return S(t, this.constructor.elementStyles), t;
250
+ }
251
+ connectedCallback() {
252
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach(t => t.hostConnected?.());
253
+ }
254
+ enableUpdating(t) {}
255
+ disconnectedCallback() {
256
+ this._$EO?.forEach(t => t.hostDisconnected?.());
257
+ }
258
+ attributeChangedCallback(t, s, i) {
259
+ this._$AK(t, i);
260
+ }
261
+ _$ET(t, s) {
262
+ const i = this.constructor.elementProperties.get(t),
263
+ e = this.constructor._$Eu(t, i);
264
+ if (void 0 !== e && true === i.reflect) {
265
+ const h = (void 0 !== i.converter?.toAttribute ? i.converter : u).toAttribute(s, i.type);
266
+ this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
267
+ }
268
+ }
269
+ _$AK(t, s) {
270
+ const i = this.constructor,
271
+ e = i._$Eh.get(t);
272
+ if (void 0 !== e && this._$Em !== e) {
273
+ const t = i.getPropertyOptions(e),
274
+ h = "function" == typeof t.converter ? {
275
+ fromAttribute: t.converter
276
+ } : void 0 !== t.converter?.fromAttribute ? t.converter : u;
277
+ this._$Em = e;
278
+ const r = h.fromAttribute(s, t.type);
279
+ this[e] = r ?? this._$Ej?.get(e) ?? r, this._$Em = null;
280
+ }
281
+ }
282
+ requestUpdate(t, s, i) {
283
+ if (void 0 !== t) {
284
+ const e = this.constructor,
285
+ h = this[t];
286
+ if (i ??= e.getPropertyOptions(t), !((i.hasChanged ?? f)(h, s) || i.useDefault && i.reflect && h === this._$Ej?.get(t) && !this.hasAttribute(e._$Eu(t, i)))) return;
287
+ this.C(t, s, i);
288
+ }
289
+ false === this.isUpdatePending && (this._$ES = this._$EP());
290
+ }
291
+ C(t, s, {
292
+ useDefault: i,
293
+ reflect: e,
294
+ wrapped: h
295
+ }, r) {
296
+ i && !(this._$Ej ??= new Map()).has(t) && (this._$Ej.set(t, r ?? s ?? this[t]), true !== h || void 0 !== r) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), true === e && this._$Em !== t && (this._$Eq ??= new Set()).add(t));
297
+ }
298
+ async _$EP() {
299
+ this.isUpdatePending = true;
300
+ try {
301
+ await this._$ES;
302
+ } catch (t) {
303
+ Promise.reject(t);
304
+ }
305
+ const t = this.scheduleUpdate();
306
+ return null != t && (await t), !this.isUpdatePending;
307
+ }
308
+ scheduleUpdate() {
309
+ return this.performUpdate();
310
+ }
311
+ performUpdate() {
312
+ if (!this.isUpdatePending) return;
313
+ if (!this.hasUpdated) {
314
+ if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
315
+ for (const [t, s] of this._$Ep) this[t] = s;
316
+ this._$Ep = void 0;
317
+ }
318
+ const t = this.constructor.elementProperties;
319
+ if (t.size > 0) for (const [s, i] of t) {
320
+ const {
321
+ wrapped: t
322
+ } = i,
323
+ e = this[s];
324
+ true !== t || this._$AL.has(s) || void 0 === e || this.C(s, void 0, i, e);
325
+ }
326
+ }
327
+ let t = false;
328
+ const s = this._$AL;
329
+ try {
330
+ t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$EM();
331
+ } catch (s) {
332
+ throw t = false, this._$EM(), s;
333
+ }
334
+ t && this._$AE(s);
335
+ }
336
+ willUpdate(t) {}
337
+ _$AE(t) {
338
+ this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
339
+ }
340
+ _$EM() {
341
+ this._$AL = new Map(), this.isUpdatePending = false;
342
+ }
343
+ get updateComplete() {
344
+ return this.getUpdateComplete();
345
+ }
346
+ getUpdateComplete() {
347
+ return this._$ES;
348
+ }
349
+ shouldUpdate(t) {
350
+ return true;
351
+ }
352
+ update(t) {
353
+ this._$Eq &&= this._$Eq.forEach(t => this._$ET(t, this[t])), this._$EM();
354
+ }
355
+ updated(t) {}
356
+ firstUpdated(t) {}
357
+ }
358
+ y.elementStyles = [], y.shadowRootOptions = {
359
+ mode: "open"
360
+ }, y[d("elementProperties")] = new Map(), y[d("finalized")] = new Map(), p?.({
361
+ ReactiveElement: y
362
+ }), (a.reactiveElementVersions ??= []).push("2.1.1");
363
+
364
+ /**
365
+ * @license
366
+ * Copyright 2017 Google LLC
367
+ * SPDX-License-Identifier: BSD-3-Clause
368
+ */
369
+ const o = {
370
+ attribute: true,
371
+ type: String,
372
+ converter: u,
373
+ reflect: false,
374
+ hasChanged: f
375
+ },
376
+ r = (t = o, e, r) => {
377
+ const {
378
+ kind: n,
379
+ metadata: i
380
+ } = r;
381
+ let s = globalThis.litPropertyMetadata.get(i);
382
+ if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map()), "setter" === n && ((t = Object.create(t)).wrapped = true), s.set(r.name, t), "accessor" === n) {
383
+ const {
384
+ name: o
385
+ } = r;
386
+ return {
387
+ set(r) {
388
+ const n = e.get.call(this);
389
+ e.set.call(this, r), this.requestUpdate(o, n, t);
390
+ },
391
+ init(e) {
392
+ return void 0 !== e && this.C(o, void 0, t, e), e;
393
+ }
394
+ };
395
+ }
396
+ if ("setter" === n) {
397
+ const {
398
+ name: o
399
+ } = r;
400
+ return function (r) {
401
+ const n = this[o];
402
+ e.call(this, r), this.requestUpdate(o, n, t);
403
+ };
404
+ }
405
+ throw Error("Unsupported decorator location: " + n);
406
+ };
407
+ function n(t) {
408
+ return (e, o) => "object" == typeof o ? r(t, e, o) : ((t, e, o) => {
409
+ const r = e.hasOwnProperty(o);
410
+ return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
411
+ })(t, e, o);
412
+ }
413
+
414
+ /**
415
+ * @license
416
+ * Copyright 2017 Google LLC
417
+ * SPDX-License-Identifier: BSD-3-Clause
418
+ */
419
+ const e$1 = (e, t, c) => (c.configurable = true, c.enumerable = true, Reflect.decorate && "object" != typeof t && Object.defineProperty(e, t, c), c);
420
+
421
+ /**
422
+ * @license
423
+ * Copyright 2017 Google LLC
424
+ * SPDX-License-Identifier: BSD-3-Clause
425
+ */
426
+ function e(e, r) {
427
+ return (n, s, i) => {
428
+ const o = t => t.renderRoot?.querySelector(e) ?? null;
429
+ return e$1(n, s, {
430
+ get() {
431
+ return o(this);
432
+ }
433
+ });
434
+ };
435
+ }
436
+
437
+ /**
438
+ * Component design tokens that control `M3eSwitchElement`.
439
+ * @internal
440
+ */
441
+ const SwitchToken = {
442
+ selectedIconColor: unsafeCSS(`var(--m3e-switch-selected-icon-color, ${DesignToken.color.onPrimaryContainer})`),
443
+ selectedIconSize: unsafeCSS("var(--m3e-switch-selected-icon-size, 1rem)"),
444
+ unselectedIconColor: unsafeCSS(`var(--m3e-switch-unselected-icon-color, ${DesignToken.color.surfaceContainerHighest})`),
445
+ unselectedIconSize: unsafeCSS("var(--m3e-switch-unselected-icon-size, 1rem)"),
446
+ trackHeight: unsafeCSS("var(--m3e-switch-track-height, 2rem)"),
447
+ trackWidth: unsafeCSS("var(--m3e-switch-track-width, 3.25rem)"),
448
+ trackOutlineColor: unsafeCSS(`var(--m3e-switch-track-outline-color, ${DesignToken.color.outline})`),
449
+ trackOutlineWidth: unsafeCSS("var(--m3e-switch-track-outline-width, 0.125rem)"),
450
+ trackShape: unsafeCSS(`var(--m3e-switch-track-shape, ${DesignToken.shape.corner.full})`),
451
+ selectedTrackColor: unsafeCSS(`var(--m3e-switch-selected-track-color, ${DesignToken.color.primary})`),
452
+ unselectedTrackColor: unsafeCSS(`var(--m3e-switch-unselected-track-color, ${DesignToken.color.surfaceContainerHighest})`),
453
+ unselectedHandleHeight: unsafeCSS("var(--m3e-switch-unselected-handle-height, 1rem)"),
454
+ unselectedHandleWidth: unsafeCSS("var(--m3e-switch-unselected-handle-width, 1rem)"),
455
+ withIconHandleHeight: unsafeCSS("var(--m3e-switch-with-icon-handle-height, 1.5rem)"),
456
+ withIconHandleWidth: unsafeCSS("var(--m3e-switch-with-icon-handle-width, 1.5rem)"),
457
+ selectedHandleHeight: unsafeCSS("var(--m3e-switch-selected-handle-height, 1.5rem)"),
458
+ selectedHandleWidth: unsafeCSS("var(--m3e-switch-selected-handle-width, 1.5rem)"),
459
+ pressedHandleHeight: unsafeCSS("var(--m3e-switch-pressed-handle-height, 1.75rem)"),
460
+ pressedHandleWidth: unsafeCSS("var(--m3e-switch-pressed-handle-width, 1.75rem)"),
461
+ handleShape: unsafeCSS(`var(--m3e-switch-handle-shape, ${DesignToken.shape.corner.full})`),
462
+ selectedHandleColor: unsafeCSS(`var(--m3e-switch-selected-handle-color, ${DesignToken.color.onPrimary})`),
463
+ unselectedHandleColor: unsafeCSS(`var(--m3e-switch-unselected-handle-color, ${DesignToken.color.outline})`),
464
+ stateLayerSize: unsafeCSS("var(--m3e-switch-state-layer-size, 2.5rem)"),
465
+ stateLayerShape: unsafeCSS(`var(--m3e-switch-state-layer-shape, ${DesignToken.shape.corner.full})`),
466
+ disabledSelectedIconColor: unsafeCSS(`var(--m3e-switch-disabled-selected-icon-color, ${DesignToken.color.onSurface})`),
467
+ disabledSelectedIconOpacity: unsafeCSS("var(--m3e-switch-disabled-selected-icon-opacity, 38%)"),
468
+ disabledUnselectedIconColor: unsafeCSS(`var(--m3e-switch-disabled-unselected-icon-color, ${DesignToken.color.surfaceContainerHighest})`),
469
+ disabledUnselectedIconOpacity: unsafeCSS("var(--m3e-switch-disabled-unselected-icon-opacity, 38%)"),
470
+ disabledTrackOpacity: unsafeCSS("var(--m3e-switch-disabled-track-opacity, 12%)"),
471
+ disabledSelectedTrackColor: unsafeCSS(`var(--m3e-switch-disabled-selected-track-color, ${DesignToken.color.onSurface})`),
472
+ disabledUnselectedTrackColor: unsafeCSS(`var(--m3e-switch-disabled-unselected-track-color, ${DesignToken.color.surfaceContainerHighest})`),
473
+ disabledUnselectedTrackOutlineColor: unsafeCSS(`var(--m3e-switch-disabled-unselected-track-outline-color, ${DesignToken.color.onSurface})`),
474
+ disabledUnselectedHandleOpacity: unsafeCSS("var(--m3e-switch-disabled-unselected-handle-opacity, 38%)"),
475
+ disabledSelectedHandleOpacity: unsafeCSS("var(--m3e-switch-disabled-selected-handle-opacity, 100%)"),
476
+ disabledSelectedHandleColor: unsafeCSS(`var(--m3e-switch-disabled-selected-handle-color, ${DesignToken.color.surface})`),
477
+ disabledUnselectedHandleColor: unsafeCSS(`var(--m3e-switch-disabled-unselected-handle-color, ${DesignToken.color.onSurface})`),
478
+ selectedHoverIconColor: unsafeCSS(`var(--m3e-switch-selected-hover-icon-color, ${DesignToken.color.onPrimaryContainer})`),
479
+ unselectedHoverIconColor: unsafeCSS(`var(--m3e-switch-unselected-hover-icon-color, ${DesignToken.color.surfaceContainerHighest})`),
480
+ selectedHoverTrackColor: unsafeCSS(`var(--m3e-switch-selected-hover-track-color, ${DesignToken.color.primary})`),
481
+ selectedHoverStateLayerColor: unsafeCSS(`var(--m3e-switch-selected-hover-state-layer-color, ${DesignToken.color.primary})`),
482
+ selectedHoverStateLayerOpacity: unsafeCSS("var(--m3e-switch-selected-hover-state-layer-opacity, 8%)"),
483
+ unselectedHoverTrackColor: unsafeCSS(`var(--m3e-switch-unselected-hover-track-color, ${DesignToken.color.surfaceContainerHighest})`),
484
+ unselectedHoverTrackOutlineColor: unsafeCSS(`var(--m3e-switch-unselected-hover-track-outline-color, ${DesignToken.color.outline})`),
485
+ unselectedHoverStateLayerColor: unsafeCSS(`var(--m3e-switch-unselected-hover-state-layer-color, ${DesignToken.color.onSurface})`),
486
+ unselectedHoverStateLayerOpacity: unsafeCSS("var(--m3e-switch-unselected-hover-state-layer-opacity, 8%)"),
487
+ selectedHoverHandleColor: unsafeCSS(`var(--m3e-switch-selected-hover-handle-color, ${DesignToken.color.surfaceContainerHighest})`),
488
+ unselectedHoverHandleColor: unsafeCSS(`var(--m3e-switch-unselected-hover-handle-color, ${DesignToken.color.onSurfaceVariant})`),
489
+ selectedFocusIconColor: unsafeCSS(`var(--m3e-switch-selected-focus-icon-color, ${DesignToken.color.onPrimaryContainer})`),
490
+ unselectedFocusIconColor: unsafeCSS(`var(--m3e-switch-unselected-focus-icon-color, ${DesignToken.color.surfaceContainerHighest})`),
491
+ selectedFocusTrackColor: unsafeCSS(`var(--m3e-switch-selected-focus-track-color, ${DesignToken.color.primary})`),
492
+ selectedFocusStateLayerColor: unsafeCSS(`var(--m3e-switch-selected-focus-state-layer-color, ${DesignToken.color.primary})`),
493
+ selectedFocusStateLayerOpacity: unsafeCSS("var(--m3e-switch-selected-focus-state-layer-opacity, 10%)"),
494
+ unselectedFocusTrackColor: unsafeCSS(`var(--m3e-switch-unselected-focus-track-color, ${DesignToken.color.surfaceContainerHighest})`),
495
+ unselectedFocusTrackOutlineColor: unsafeCSS(`var(--m3e-switch-unselected-focus-track-outline-color, ${DesignToken.color.outline})`),
496
+ unselectedFocusStateLayerColor: unsafeCSS(`var(--m3e-switch-unselected-focus-state-layer-color, ${DesignToken.color.onSurface})`),
497
+ unselectedFocusStateLayerOpacity: unsafeCSS("var(--m3e-switch-unselected-focus-state-layer-opacity, 10%)"),
498
+ selectedFocusHandleColor: unsafeCSS(`var(--m3e-switch-selected-focus-handle-color, ${DesignToken.color.primaryContainer})`),
499
+ unselectedFocusHandleColor: unsafeCSS(`var(--m3e-switch-unselected-focus-handle-color, ${DesignToken.color.onSurfaceVariant})`),
500
+ selectedPressedIconColor: unsafeCSS(`var(--m3e-switch-selected-pressed-icon-color, ${DesignToken.color.onPrimaryContainer})`),
501
+ unselectedPressedIconColor: unsafeCSS(`var(--m3e-switch-unselected-pressed-icon-color, ${DesignToken.color.surfaceContainerHighest})`),
502
+ selectedPressedTrackColor: unsafeCSS(`var(--m3e-switch-selected-pressed-track-color, ${DesignToken.color.primary})`),
503
+ selectedPressedStateLayerColor: unsafeCSS(`var(--m3e-switch-selected-pressed-state-layer-color, ${DesignToken.color.primary})`),
504
+ selectedPressedStateLayerOpacity: unsafeCSS("var(--m3e-switch-selected-pressed-state-layer-opacity, 10%)"),
505
+ unselectedPressedTrackColor: unsafeCSS(`var(--m3e-switch-unselected-pressed-track-color, ${DesignToken.color.surfaceContainerHighest})`),
506
+ unselectedPressedTrackOutlineColor: unsafeCSS(`var(--m3e-switch-unselected-pressed-track-outline-color, ${DesignToken.color.outline})`),
507
+ unselectedPressedStateLayerColor: unsafeCSS(`var(--m3e-switch-unselected-pressed-state-layer-color, ${DesignToken.color.onSurface})`),
508
+ unselectedPressedStateLayerOpacity: unsafeCSS("var(--m3e-switch-unselected-pressed-state-layer-opacity, 10%)"),
509
+ selectedPressedHandleColor: unsafeCSS(`var(--m3e-switch-selected-pressed-handle-color, ${DesignToken.color.primaryContainer})`),
510
+ unselectedPressedHandleColor: unsafeCSS(`var(--m3e-switch-unselected-pressed-handle-color, ${DesignToken.color.onSurfaceVariant})`)
511
+ };
512
+
513
+ /**
514
+ * Handle styles for `M3eSwitchElement`.
515
+ * @internal
516
+ */
517
+ const SwitchHandleStyle = css`.handle { position: relative; display: flex; align-items: center; justify-content: center; pointer-events: none; transform-origin: center center; border-radius: ${SwitchToken.handleShape}; transition: ${unsafeCSS(`background-color ${DesignToken.motion.duration.short4} ${DesignToken.motion.easing.standard},
518
+ transform var(--_switch-handle-effect),
519
+ width ${DesignToken.motion.spring.fastEffects},
520
+ height ${DesignToken.motion.spring.fastEffects}`)}; } .track:not(.pressed) .handle { --_switch-handle-effect: ${DesignToken.motion.spring.fastSpatial}; } .track.pressed .handle { --_switch-handle-effect: ${DesignToken.motion.spring.fastEffects}; } :host(:not([aria-disabled="true"]):not([checked])[icons="both"]) .track:not(.pressed) .handle { width: ${SwitchToken.withIconHandleWidth}; height: ${SwitchToken.withIconHandleHeight}; } :host(:not([checked]):not([icons="both"])) .track:not(.pressed) .handle, :host([aria-disabled="true"]:not([checked])) .handle { width: ${SwitchToken.unselectedHandleWidth}; height: ${SwitchToken.unselectedHandleHeight}; } :host([checked]) .track:not(.pressed) .handle { width: ${SwitchToken.selectedHandleWidth}; height: ${SwitchToken.selectedHandleHeight}; } .track.pressed .handle { width: ${SwitchToken.pressedHandleWidth}; height: ${SwitchToken.pressedHandleHeight}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .handle { background-color: ${SwitchToken.unselectedHandleColor}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .handle { background-color: ${SwitchToken.unselectedHoverHandleColor}; } :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .handle { background-color: ${SwitchToken.unselectedFocusHandleColor}; } :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .handle { background-color: ${SwitchToken.unselectedPressedHandleColor}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .handle { background-color: ${SwitchToken.selectedHandleColor}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .handle { background-color: ${SwitchToken.selectedHoverHandleColor}; } :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .handle { background-color: ${SwitchToken.selectedFocusHandleColor}; } :host(:not([aria-disabled="true"])[checked]) .track.pressed .handle { background-color: ${SwitchToken.selectedPressedHandleColor}; } :host([aria-disabled="true"]:not([checked])) .handle { background-color: color-mix( in srgb, ${SwitchToken.disabledUnselectedHandleColor} ${SwitchToken.disabledUnselectedHandleOpacity}, transparent ); } :host([aria-disabled="true"][checked]) .handle { background-color: color-mix( in srgb, ${SwitchToken.disabledSelectedHandleColor} ${SwitchToken.disabledSelectedHandleOpacity}, transparent ); } :host(:not(:dir(rtl))[checked]) .track:not(.pressed) .handle { transform: translateX( calc(${SwitchToken.trackWidth} - ${SwitchToken.selectedHandleWidth} - calc(${SwitchToken.trackOutlineWidth} * 2)) ); } :host(:dir(rtl)[checked]) .track:not(.pressed) .handle { transform: translateX( calc( 0px - calc( ${SwitchToken.trackWidth} - ${SwitchToken.selectedHandleWidth} - calc(${SwitchToken.trackOutlineWidth} * 2) ) ) ); } :host(:not(:dir(rtl))[checked]) .track.pressed .handle { transform: translateX( calc(${SwitchToken.trackWidth} - ${SwitchToken.pressedHandleWidth} - ${SwitchToken.trackOutlineWidth}) ); } :host(:dir(rtl)[checked]) .track.pressed .handle { transform: translateX( calc(0px - calc(${SwitchToken.trackWidth} - ${SwitchToken.pressedHandleWidth} - ${SwitchToken.trackOutlineWidth})) ); } :host(:not(:dir(rtl)):not([checked]):not([icons="both"])) .track:not(.pressed) .handle, :host(:not(:dir(rtl))[aria-disabled="true"]:not([checked])) .handle { transform: translateX( calc( ${SwitchToken.trackOutlineWidth} + calc(${SwitchToken.pressedHandleWidth} - ${SwitchToken.withIconHandleWidth}) ) ); } :host(:dir(rtl):not([checked]):not([icons="both"])) .track:not(.pressed) .handle, :host(:dir(rtl)[aria-disabled="true"]:not([checked])) .handle { transform: translateX( calc( 0px - calc( ${SwitchToken.trackOutlineWidth} + calc(${SwitchToken.pressedHandleWidth} - ${SwitchToken.withIconHandleWidth}) ) ) ); } :host(:not(:dir(rtl)):not([aria-disabled="true"]):not([checked])[icons="both"]) .track:not(.pressed) .handle { transform: translateX(${SwitchToken.trackOutlineWidth}); } :host(:dir(rtl):not([aria-disabled="true"]):not([checked])[icons="both"]) .track:not(.pressed) .handle { transform: translateX(calc(0px - ${SwitchToken.trackOutlineWidth})); } @media (forced-colors: active) { .handle { transition: ${unsafeCSS(`transform var(--_switch-handle-effect),
521
+ width ${DesignToken.motion.spring.fastEffects},
522
+ height ${DesignToken.motion.spring.fastEffects}`)}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .handle { background-color: ButtonText; } :host([aria-disabled="true"]:not([checked])) .handle { background-color: GrayText; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"])[checked]) .track.pressed .handle { background-color: Canvas; } :host([aria-disabled="true"][checked]) .handle { background-color: Canvas; } } @media (prefers-reduced-motion) { .handle { transition: none; } }`;
523
+
524
+ /**
525
+ * Icon styles for `M3eSwitchElement`.
526
+ * @internal
527
+ */
528
+ const SwitchIconStyle = css`:host([icons="none"]) .icon, :host([icons="selected"]:not([checked])) .icon, :host([aria-disabled="true"]:not([checked])) .icon { display: none; } .icon { width: 1em; transition: ${unsafeCSS(`color ${DesignToken.motion.duration.short4} ${DesignToken.motion.easing.standard}`)}; } :host(:not([checked])) .icon { font-size: ${SwitchToken.unselectedIconSize}; } :host([checked]) .icon { font-size: ${SwitchToken.selectedIconSize}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .icon { color: ${SwitchToken.unselectedIconColor}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .icon { color: ${SwitchToken.unselectedHoverIconColor}; } :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .icon { color: ${SwitchToken.unselectedFocusIconColor}; } :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .icon { color: ${SwitchToken.unselectedPressedIconColor}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .icon { color: ${SwitchToken.selectedIconColor}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .icon { color: ${SwitchToken.selectedHoverIconColor}; } :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .icon { color: ${SwitchToken.selectedFocusIconColor}; } :host(:not([aria-disabled="true"])[checked]) .track.pressed .icon { color: ${SwitchToken.selectedPressedIconColor}; } :host([aria-disabled="true"]:not([checked])) .icon { color: color-mix( in srgb, ${SwitchToken.disabledUnselectedIconColor} ${SwitchToken.disabledUnselectedIconOpacity}, transparent ); } :host([aria-disabled="true"][checked]) .icon { color: color-mix( in srgb, ${SwitchToken.disabledSelectedIconColor} ${SwitchToken.disabledSelectedIconOpacity}, transparent ); } @media (forced-colors: active) { :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .icon { color: Canvas; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"])[checked]) .track.pressed .icon { color: CanvasText; } :host([aria-disabled="true"]:not([checked])) .icon { color: Canvas; } :host([aria-disabled="true"][checked]) .icon { color: GrayText; } } @media (prefers-reduced-motion) { .icon { transition: none; } }`;
529
+
530
+ /**
531
+ * State layer styles for `M3eSwitchElement`.
532
+ * @internal
533
+ */
534
+ const SwitchStateLayerStyle = css`.state-layer { width: ${SwitchToken.stateLayerSize}; height: ${SwitchToken.stateLayerSize}; border-radius: ${SwitchToken.stateLayerShape}; transition: ${unsafeCSS(`top ${DesignToken.motion.spring.fastEffects},
535
+ left ${DesignToken.motion.spring.fastEffects},
536
+ right ${DesignToken.motion.spring.fastEffects}`)}; } :host(:not([checked])[icons="both"]) .track:not(.pressed) .state-layer { inset-inline-start: calc(0px - calc(calc(${SwitchToken.stateLayerSize} - ${SwitchToken.withIconHandleWidth}) / 2)); top: calc(0px - calc(calc(${SwitchToken.stateLayerSize} - ${SwitchToken.withIconHandleHeight}) / 2)); } :host(:not([checked]):not([icons="both"])) .track:not(.pressed) .state-layer { inset-inline-start: calc( 0px - calc(calc(${SwitchToken.stateLayerSize} - ${SwitchToken.unselectedHandleWidth}) / 2) ); top: calc(0px - calc(calc(${SwitchToken.stateLayerSize} - ${SwitchToken.unselectedHandleHeight}) / 2)); } :host([checked]) .track:not(.pressed) .state-layer { inset-inline-start: calc(0px - calc(calc(${SwitchToken.stateLayerSize} - ${SwitchToken.selectedHandleWidth}) / 2)); top: calc(0px - calc(calc(${SwitchToken.stateLayerSize} - ${SwitchToken.selectedHandleHeight}) / 2)); } .track.pressed .state-layer { inset-inline-start: calc(0px - calc(calc(${SwitchToken.stateLayerSize} - ${SwitchToken.pressedHandleWidth}) / 2)); top: calc(0px - calc(calc(${SwitchToken.stateLayerSize} - ${SwitchToken.pressedHandleWidth}) / 2)); } :host(:not([checked])) .state-layer { --m3e-state-layer-hover-color: ${SwitchToken.unselectedHoverStateLayerColor}; --m3e-state-layer-hover-opacity: ${SwitchToken.unselectedHoverStateLayerOpacity}; --m3e-state-layer-focus-color: ${SwitchToken.unselectedFocusStateLayerColor}; --m3e-state-layer-focus-opacity: ${SwitchToken.unselectedFocusStateLayerOpacity}; } :host([checked]) .state-layer { --m3e-state-layer-hover-color: ${SwitchToken.selectedHoverStateLayerColor}; --m3e-state-layer-hover-opacity: ${SwitchToken.selectedHoverStateLayerOpacity}; --m3e-state-layer-focus-color: ${SwitchToken.selectedFocusStateLayerColor}; --m3e-state-layer-focus-opacity: ${SwitchToken.selectedFocusStateLayerOpacity}; }`;
537
+
538
+ /**
539
+ * Baseline styles for `M3eSwitchElement`.
540
+ * @internal
541
+ */
542
+ const SwitchStyle = css`:host { display: inline-block; position: relative; outline: none; height: fit-content; width: fit-content; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .focus-ring { border-radius: ${SwitchToken.trackShape}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .base { display: flex; align-items: center; justify-content: center; }`;
543
+
544
+ /**
545
+ * Track styles for `M3eSwitchElement`.
546
+ * @internal
547
+ */
548
+ const SwitchTrackStyle = css`.track { display: flex; align-items: center; position: relative; box-sizing: border-box; border-radius: ${SwitchToken.trackShape}; width: ${SwitchToken.trackWidth}; height: ${SwitchToken.trackHeight}; transition: ${unsafeCSS(`background-color ${DesignToken.motion.duration.short4} ${DesignToken.motion.easing.standard}`)}; } :host(:not([checked])) .track { border-width: ${SwitchToken.trackOutlineWidth}; border-style: solid; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) { border-color: ${SwitchToken.trackOutlineColor}; background-color: ${SwitchToken.unselectedTrackColor}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) { border-color: ${SwitchToken.unselectedHoverTrackOutlineColor}; background-color: ${SwitchToken.unselectedHoverTrackColor}; } :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) { border-color: ${SwitchToken.unselectedFocusTrackOutlineColor}; background-color: ${SwitchToken.unselectedFocusTrackColor}; } :host(:not([aria-disabled="true"]):not([checked])) .track.pressed { border-color: ${SwitchToken.unselectedPressedTrackOutlineColor}; background-color: ${SwitchToken.unselectedPressedTrackColor}; } :host([aria-disabled="true"]:not([checked])) .track { border-color: color-mix( in srgb, ${SwitchToken.disabledUnselectedTrackOutlineColor} ${SwitchToken.disabledTrackOpacity}, transparent ); background-color: color-mix( in srgb, ${SwitchToken.disabledUnselectedTrackColor} ${SwitchToken.disabledTrackOpacity}, transparent ); } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) { background-color: ${SwitchToken.selectedTrackColor}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) { background-color: ${SwitchToken.selectedHoverTrackColor}; } :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) { background-color: ${SwitchToken.selectedFocusTrackColor}; } :host(:not([aria-disabled="true"])[checked]) .track.pressed { background-color: ${SwitchToken.selectedPressedTrackColor}; } :host([aria-disabled="true"][checked]) .track { background-color: color-mix( in srgb, ${SwitchToken.disabledSelectedTrackColor} ${SwitchToken.disabledTrackOpacity}, transparent ); } @media (forced-colors: active) { .track { transition: none; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed), :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed), :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed), :host(:not([aria-disabled="true"]):not([checked])) .track.pressed { border-color: ButtonText; background-color: Canvas; } :host([aria-disabled="true"]:not([checked])) .track { border-color: GrayText; background-color: Canvas; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed), :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed), :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed), :host(:not([aria-disabled="true"])[checked]) .track.pressed { background-color: ButtonText; } :host([aria-disabled="true"][checked]) .track { background-color: GrayText; } } @media (prefers-reduced-motion) { .track { transition: none; } }`;
549
+
550
+ var _M3eSwitchElement_instances, _M3eSwitchElement_clickHandler, _M3eSwitchElement_hoverController, _M3eSwitchElement_pressedController, _M3eSwitchElement_renderIcon, _M3eSwitchElement_handleClick;
551
+ /**
552
+ * An on/off control that can be toggled by clicking.
553
+ *
554
+ * @description
555
+ * The `m3e-switch` component is a semantic, accessible toggle control that reflects a binary state.
556
+ * Designed according to Material Design 3 guidelines, it supports shape transitions, and adaptive color
557
+ * theming across selected, unselected, and disabled states. The component responds to user interaction
558
+ * with smooth motion and expressive feedback. It supports optional icons (`none`, `selected`, or `both`)
559
+ * and integrates with form-associated behavior, emitting `input` and `change` events when toggled.
560
+ *
561
+ * @example
562
+ * The following example illustrates a switch wrapped by a `label`.
563
+ *
564
+ * ```html
565
+ * <label>Switch label&nbsp;<m3e-switch></m3e-switch></label>
566
+ * ```
567
+ *
568
+ * @example
569
+ * By default, icons are not presented. Use the `icons` attribute to control which icons to show. The next
570
+ * example illustrates showing both the unselected and selected icons.
571
+ *
572
+ * ```html
573
+ * <label>Switch label&nbsp;<m3e-switch icons="both"></m3e-switch></label>
574
+ * ```
575
+ *
576
+ * @tag m3e-switch
577
+ *
578
+ * @attr checked - Whether the element is checked.
579
+ * @attr disabled - Whether the element is disabled.
580
+ * @attr icons - The icons to present.
581
+ * @attr name - The name that identifies the element when submitting the associated form.
582
+ * @attr value - A string representing the value of the switch.
583
+ *
584
+ * @fires input - Emitted when the checked state changes.
585
+ * @fires change - Emitted when the checked state changes.
586
+ * @fires click - Emitted when the element is clicked.
587
+ *
588
+ * @cssprop --m3e-switch-selected-icon-color - Color of the icon when the switch is selected.
589
+ * @cssprop --m3e-switch-selected-icon-size - Size of the icon in the selected state.
590
+ * @cssprop --m3e-switch-unselected-icon-color - Color of the icon when the switch is unselected.
591
+ * @cssprop --m3e-switch-unselected-icon-size - Size of the icon in the unselected state.
592
+ * @cssprop --m3e-switch-track-height - Height of the switch track.
593
+ * @cssprop --m3e-switch-track-width - Width of the switch track.
594
+ * @cssprop --m3e-switch-track-outline-color - Color of the track’s outline.
595
+ * @cssprop --m3e-switch-track-outline-width - Thickness of the track’s outline.
596
+ * @cssprop --m3e-switch-track-shape - Corner shape of the track.
597
+ * @cssprop --m3e-switch-selected-track-color - Track color when selected.
598
+ * @cssprop --m3e-switch-unselected-track-color - Track color when unselected.
599
+ * @cssprop --m3e-switch-unselected-handle-height - Height of the handle when unselected.
600
+ * @cssprop --m3e-switch-unselected-handle-width - Width of the handle when unselected.
601
+ * @cssprop --m3e-switch-with-icon-handle-height - Height of the handle when icons are present.
602
+ * @cssprop --m3e-switch-with-icon-handle-width - Width of the handle when icons are present.
603
+ * @cssprop --m3e-switch-selected-handle-height - Height of the handle when selected.
604
+ * @cssprop --m3e-switch-selected-handle-width - Width of the handle when selected.
605
+ * @cssprop --m3e-switch-pressed-handle-height - Height of the handle during press.
606
+ * @cssprop --m3e-switch-pressed-handle-width - Width of the handle during press.
607
+ * @cssprop --m3e-switch-handle-shape - Corner shape of the handle.
608
+ * @cssprop --m3e-switch-selected-handle-color - Handle color when selected.
609
+ * @cssprop --m3e-switch-unselected-handle-color - Handle color when unselected.
610
+ * @cssprop --m3e-switch-state-layer-size - Diameter of the state layer overlay.
611
+ * @cssprop --m3e-switch-state-layer-shape - Corner shape of the state layer.
612
+ * @cssprop --m3e-switch-disabled-selected-icon-color - Icon color when selected and disabled.
613
+ * @cssprop --m3e-switch-disabled-selected-icon-opacity - Icon opacity when selected and disabled.
614
+ * @cssprop --m3e-switch-disabled-unselected-icon-color - Icon color when unselected and disabled.
615
+ * @cssprop --m3e-switch-disabled-unselected-icon-opacity - Icon opacity when unselected and disabled.
616
+ * @cssprop --m3e-switch-disabled-track-opacity - Track opacity when disabled.
617
+ * @cssprop --m3e-switch-disabled-selected-track-color - Track color when selected and disabled.
618
+ * @cssprop --m3e-switch-disabled-unselected-track-color - Track color when unselected and disabled.
619
+ * @cssprop --m3e-switch-disabled-unselected-track-outline-color - Outline color when unselected and disabled.
620
+ * @cssprop --m3e-switch-disabled-unselected-handle-opacity - Handle opacity when unselected and disabled.
621
+ * @cssprop --m3e-switch-disabled-selected-handle-opacity - Handle opacity when selected and disabled.
622
+ * @cssprop --m3e-switch-disabled-selected-handle-color - Handle color when selected and disabled.
623
+ * @cssprop --m3e-switch-disabled-unselected-handle-color - Handle color when unselected and disabled.
624
+ * @cssprop --m3e-switch-selected-hover-icon-color - Icon color when selected and hovered.
625
+ * @cssprop --m3e-switch-unselected-hover-icon-color - Icon color when unselected and hovered.
626
+ * @cssprop --m3e-switch-selected-hover-track-color - Track color when selected and hovered.
627
+ * @cssprop --m3e-switch-selected-hover-state-layer-color - State layer color when selected and hovered.
628
+ * @cssprop --m3e-switch-selected-hover-state-layer-opacity - State layer opacity when selected and hovered.
629
+ * @cssprop --m3e-switch-unselected-hover-track-color - Track color when unselected and hovered.
630
+ * @cssprop --m3e-switch-unselected-hover-track-outline-color - Outline color when unselected and hovered.
631
+ * @cssprop --m3e-switch-unselected-hover-state-layer-color - State layer color when unselected and hovered.
632
+ * @cssprop --m3e-switch-unselected-hover-state-layer-opacity - State layer opacity when unselected and hovered.
633
+ * @cssprop --m3e-switch-selected-hover-handle-color - Handle color when selected and hovered.
634
+ * @cssprop --m3e-switch-unselected-hover-handle-color - Handle color when unselected and hovered.
635
+ * @cssprop --m3e-switch-selected-focus-icon-color - Icon color when selected and focused.
636
+ * @cssprop --m3e-switch-unselected-focus-icon-color - Icon color when unselected and focused.
637
+ * @cssprop --m3e-switch-selected-focus-track-color - Track color when selected and focused.
638
+ * @cssprop --m3e-switch-selected-focus-state-layer-color - State layer color when selected and focused.
639
+ * @cssprop --m3e-switch-selected-focus-state-layer-opacity - State layer opacity when selected and focused.
640
+ * @cssprop --m3e-switch-unselected-focus-track-color - Track color when unselected and focused.
641
+ * @cssprop --m3e-switch-unselected-focus-track-outline-color - Outline color when unselected and focused.
642
+ * @cssprop --m3e-switch-unselected-focus-state-layer-color - State layer color when unselected and focused.
643
+ * @cssprop --m3e-switch-unselected-focus-state-layer-opacity - State layer opacity when unselected and focused.
644
+ * @cssprop --m3e-switch-selected-focus-handle-color - Handle color when selected and focused.
645
+ * @cssprop --m3e-switch-unselected-focus-handle-color - Handle color when unselected and focused.
646
+ * @cssprop --m3e-switch-selected-pressed-icon-color - Icon color when selected and pressed.
647
+ * @cssprop --m3e-switch-unselected-pressed-icon-color - Icon color when unselected and pressed.
648
+ * @cssprop --m3e-switch-selected-pressed-track-color - Track color when selected and pressed.
649
+ * @cssprop --m3e-switch-selected-pressed-state-layer-color - State layer color when selected and pressed.
650
+ * @cssprop --m3e-switch-selected-pressed-state-layer-opacity - State layer opacity when selected and pressed.
651
+ * @cssprop --m3e-switch-unselected-pressed-track-color - Track color when unselected and pressed.
652
+ * @cssprop --m3e-switch-unselected-pressed-track-outline-color - Outline color when unselected and pressed.
653
+ * @cssprop --m3e-switch-unselected-pressed-state-layer-color - State layer color when unselected and pressed.
654
+ * @cssprop --m3e-switch-unselected-pressed-state-layer-opacity - State layer opacity when unselected and pressed.
655
+ * @cssprop --m3e-switch-selected-pressed-handle-color - Handle color when selected and pressed.
656
+ * @cssprop --m3e-switch-unselected-pressed-handle-color - Handle color when unselected and pressed.
657
+ */
658
+ let M3eSwitchElement = class M3eSwitchElement extends Labelled(Dirty(Touched(ConstraintValidation(Checked(FormAssociated(KeyboardClick(Focusable(Disabled(AttachInternals(Role(LitElement, "switch"))))))))))) {
659
+ constructor() {
660
+ super();
661
+ _M3eSwitchElement_instances.add(this);
662
+ /** @private */
663
+ _M3eSwitchElement_clickHandler.set(this, e => __classPrivateFieldGet(this, _M3eSwitchElement_instances, "m", _M3eSwitchElement_handleClick).call(this, e));
664
+ /** @private */
665
+ _M3eSwitchElement_hoverController.set(this, new HoverController(this, {
666
+ target: null,
667
+ callback: hovering => {
668
+ if (this.disabled) return;
669
+ if (hovering) {
670
+ this._stateLayer?.show("hover");
671
+ } else {
672
+ this._stateLayer?.hide("hover");
673
+ }
674
+ }
675
+ }));
676
+ /** @private */
677
+ _M3eSwitchElement_pressedController.set(this, new PressedController(this, {
678
+ target: null,
679
+ callback: pressed => this._track?.classList.toggle("pressed", pressed && !this.disabled)
680
+ }));
681
+ /**
682
+ * The icons to present.
683
+ * @default "none"
684
+ */
685
+ this.icons = "none";
686
+ /**
687
+ * A string representing the value of the switch.
688
+ * @default "on"
689
+ */
690
+ this.value = "on";
691
+ new PressedController(this, {
692
+ isPressedKey: key => key === " ",
693
+ callback: pressed => this._track?.classList.toggle("pressed", pressed && !this.disabled)
694
+ });
695
+ }
696
+ /** @inheritdoc @private */
697
+ get [(_M3eSwitchElement_clickHandler = new WeakMap(), _M3eSwitchElement_hoverController = new WeakMap(), _M3eSwitchElement_pressedController = new WeakMap(), _M3eSwitchElement_instances = new WeakSet(), formValue)]() {
698
+ return this.checked && !this.disabled ? this.value : null;
699
+ }
700
+ /** @inheritdoc */
701
+ connectedCallback() {
702
+ super.connectedCallback();
703
+ this.addEventListener("click", __classPrivateFieldGet(this, _M3eSwitchElement_clickHandler, "f"));
704
+ for (const label of this.labels) {
705
+ __classPrivateFieldGet(this, _M3eSwitchElement_hoverController, "f").observe(label);
706
+ __classPrivateFieldGet(this, _M3eSwitchElement_pressedController, "f").observe(label);
707
+ }
708
+ }
709
+ /** @inheritdoc */
710
+ disconnectedCallback() {
711
+ super.disconnectedCallback();
712
+ this.removeEventListener("click", __classPrivateFieldGet(this, _M3eSwitchElement_clickHandler, "f"));
713
+ for (const label of this.labels) {
714
+ __classPrivateFieldGet(this, _M3eSwitchElement_hoverController, "f").unobserve(label);
715
+ __classPrivateFieldGet(this, _M3eSwitchElement_pressedController, "f").unobserve(label);
716
+ }
717
+ }
718
+ /** @inheritdoc */
719
+ firstUpdated(_changedProperties) {
720
+ super.firstUpdated(_changedProperties);
721
+ [this._focusRing, this._stateLayer].forEach(x => x?.attach(this));
722
+ }
723
+ /** @inheritdoc */
724
+ render() {
725
+ return html`<m3e-focus-ring class="focus-ring"></m3e-focus-ring><div class="track" aria-hidden="true"><div class="touch" aria-hidden="true"></div><div class="handle"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><div class="base">${__classPrivateFieldGet(this, _M3eSwitchElement_instances, "m", _M3eSwitchElement_renderIcon).call(this)}</div></div></div>`;
726
+ }
727
+ };
728
+ _M3eSwitchElement_renderIcon = function _M3eSwitchElement_renderIcon() {
729
+ return this.checked ? html`<svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"></path></svg>` : html`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg>`;
730
+ };
731
+ _M3eSwitchElement_handleClick = function _M3eSwitchElement_handleClick(e) {
732
+ if (e.defaultPrevented) return;
733
+ this.checked = !this.checked;
734
+ if (this.dispatchEvent(new Event("input", {
735
+ bubbles: true,
736
+ composed: true,
737
+ cancelable: true
738
+ }))) {
739
+ this.dispatchEvent(new Event("change", {
740
+ bubbles: true
741
+ }));
742
+ } else {
743
+ this.checked = !this.checked;
744
+ }
745
+ };
746
+ /** The styles of the element. */
747
+ M3eSwitchElement.styles = [SwitchStyle, SwitchStateLayerStyle, SwitchTrackStyle, SwitchHandleStyle, SwitchIconStyle];
748
+ __decorate([e(".track")], M3eSwitchElement.prototype, "_track", void 0);
749
+ __decorate([e(".focus-ring")], M3eSwitchElement.prototype, "_focusRing", void 0);
750
+ __decorate([e(".state-layer")], M3eSwitchElement.prototype, "_stateLayer", void 0);
751
+ __decorate([n({
752
+ reflect: true
753
+ })], M3eSwitchElement.prototype, "icons", void 0);
754
+ __decorate([n()], M3eSwitchElement.prototype, "value", void 0);
755
+ M3eSwitchElement = __decorate([t$1("m3e-switch")], M3eSwitchElement);
756
+
757
+ export { M3eSwitchElement };
758
+ //# sourceMappingURL=switch.js.map