@m3e/core 1.0.0-rc.1 → 1.0.0-rc.2

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 (338) hide show
  1. package/README.md +1 -2
  2. package/dist/a11y.js +6 -18
  3. package/dist/a11y.js.map +1 -1
  4. package/dist/a11y.min.js +5 -5
  5. package/dist/a11y.min.js.map +1 -1
  6. package/dist/custom-elements.json +3449 -3429
  7. package/dist/html-custom-data.json +14 -6
  8. package/dist/index.js +198 -29
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.min.js +87 -87
  11. package/dist/index.min.js.map +1 -1
  12. package/package.json +1 -1
  13. package/cem.config.mjs +0 -16
  14. package/demo/index.html +0 -58
  15. package/dist/src/a11y/AriaDescriber.d.ts +0 -31
  16. package/dist/src/a11y/AriaDescriber.d.ts.map +0 -1
  17. package/dist/src/a11y/FocusTrapElement.d.ts +0 -25
  18. package/dist/src/a11y/FocusTrapElement.d.ts.map +0 -1
  19. package/dist/src/a11y/InteractivityChecker.d.ts +0 -22
  20. package/dist/src/a11y/InteractivityChecker.d.ts.map +0 -1
  21. package/dist/src/a11y/LiveAnnouncer.d.ts +0 -56
  22. package/dist/src/a11y/LiveAnnouncer.d.ts.map +0 -1
  23. package/dist/src/a11y/aria-reference.d.ts +0 -30
  24. package/dist/src/a11y/aria-reference.d.ts.map +0 -1
  25. package/dist/src/a11y/index.d.ts +0 -8
  26. package/dist/src/a11y/index.d.ts.map +0 -1
  27. package/dist/src/a11y/keycodes/KeyCode.d.ts +0 -118
  28. package/dist/src/a11y/keycodes/KeyCode.d.ts.map +0 -1
  29. package/dist/src/a11y/keycodes/ModifierKeys.d.ts +0 -5
  30. package/dist/src/a11y/keycodes/ModifierKeys.d.ts.map +0 -1
  31. package/dist/src/a11y/keycodes/getKeyCode.d.ts +0 -7
  32. package/dist/src/a11y/keycodes/getKeyCode.d.ts.map +0 -1
  33. package/dist/src/a11y/keycodes/hasModifierKey.d.ts +0 -9
  34. package/dist/src/a11y/keycodes/hasModifierKey.d.ts.map +0 -1
  35. package/dist/src/a11y/keycodes/index.d.ts +0 -6
  36. package/dist/src/a11y/keycodes/index.d.ts.map +0 -1
  37. package/dist/src/a11y/keycodes/isModifierAllowed.d.ts +0 -9
  38. package/dist/src/a11y/keycodes/isModifierAllowed.d.ts.map +0 -1
  39. package/dist/src/a11y/list-key/FocusKeyManager.d.ts +0 -17
  40. package/dist/src/a11y/list-key/FocusKeyManager.d.ts.map +0 -1
  41. package/dist/src/a11y/list-key/ListKeyManager.d.ts +0 -114
  42. package/dist/src/a11y/list-key/ListKeyManager.d.ts.map +0 -1
  43. package/dist/src/a11y/list-key/ListManager.d.ts +0 -37
  44. package/dist/src/a11y/list-key/ListManager.d.ts.map +0 -1
  45. package/dist/src/a11y/list-key/RadioKeyManager.d.ts +0 -20
  46. package/dist/src/a11y/list-key/RadioKeyManager.d.ts.map +0 -1
  47. package/dist/src/a11y/list-key/RovingTabIndexManager.d.ts +0 -22
  48. package/dist/src/a11y/list-key/RovingTabIndexManager.d.ts.map +0 -1
  49. package/dist/src/a11y/list-key/SelectionManager.d.ts +0 -46
  50. package/dist/src/a11y/list-key/SelectionManager.d.ts.map +0 -1
  51. package/dist/src/a11y/list-key/Typeahead.d.ts +0 -64
  52. package/dist/src/a11y/list-key/Typeahead.d.ts.map +0 -1
  53. package/dist/src/a11y/list-key/index.d.ts +0 -8
  54. package/dist/src/a11y/list-key/index.d.ts.map +0 -1
  55. package/dist/src/a11y/visuallyHide.d.ts +0 -6
  56. package/dist/src/a11y/visuallyHide.d.ts.map +0 -1
  57. package/dist/src/anchoring/AnchorOptions.d.ts +0 -15
  58. package/dist/src/anchoring/AnchorOptions.d.ts.map +0 -1
  59. package/dist/src/anchoring/AnchorPosition.d.ts +0 -3
  60. package/dist/src/anchoring/AnchorPosition.d.ts.map +0 -1
  61. package/dist/src/anchoring/index.d.ts +0 -4
  62. package/dist/src/anchoring/index.d.ts.map +0 -1
  63. package/dist/src/anchoring/positionAnchor.d.ts +0 -12
  64. package/dist/src/anchoring/positionAnchor.d.ts.map +0 -1
  65. package/dist/src/bidi/Directionality.d.ts +0 -27
  66. package/dist/src/bidi/Directionality.d.ts.map +0 -1
  67. package/dist/src/bidi/index.d.ts +0 -2
  68. package/dist/src/bidi/index.d.ts.map +0 -1
  69. package/dist/src/index.d.ts +0 -2
  70. package/dist/src/index.d.ts.map +0 -1
  71. package/dist/src/layout/Breakpoint.d.ts +0 -26
  72. package/dist/src/layout/Breakpoint.d.ts.map +0 -1
  73. package/dist/src/layout/BreakpointObserver.d.ts +0 -18
  74. package/dist/src/layout/BreakpointObserver.d.ts.map +0 -1
  75. package/dist/src/layout/index.d.ts +0 -3
  76. package/dist/src/layout/index.d.ts.map +0 -1
  77. package/dist/src/platform/Platform.d.ts +0 -34
  78. package/dist/src/platform/Platform.d.ts.map +0 -1
  79. package/dist/src/platform/index.d.ts +0 -2
  80. package/dist/src/platform/index.d.ts.map +0 -1
  81. package/dist/src/shared/controllers/FocusController.d.ts +0 -30
  82. package/dist/src/shared/controllers/FocusController.d.ts.map +0 -1
  83. package/dist/src/shared/controllers/HoverController.d.ts +0 -40
  84. package/dist/src/shared/controllers/HoverController.d.ts.map +0 -1
  85. package/dist/src/shared/controllers/IntersectionController.d.ts +0 -40
  86. package/dist/src/shared/controllers/IntersectionController.d.ts.map +0 -1
  87. package/dist/src/shared/controllers/LongPressController.d.ts +0 -32
  88. package/dist/src/shared/controllers/LongPressController.d.ts.map +0 -1
  89. package/dist/src/shared/controllers/MonitorControllerBase.d.ts +0 -62
  90. package/dist/src/shared/controllers/MonitorControllerBase.d.ts.map +0 -1
  91. package/dist/src/shared/controllers/MutationController.d.ts +0 -37
  92. package/dist/src/shared/controllers/MutationController.d.ts.map +0 -1
  93. package/dist/src/shared/controllers/PressedController.d.ts +0 -45
  94. package/dist/src/shared/controllers/PressedController.d.ts.map +0 -1
  95. package/dist/src/shared/controllers/ResizeController.d.ts +0 -40
  96. package/dist/src/shared/controllers/ResizeController.d.ts.map +0 -1
  97. package/dist/src/shared/controllers/ScrollController.d.ts +0 -34
  98. package/dist/src/shared/controllers/ScrollController.d.ts.map +0 -1
  99. package/dist/src/shared/controllers/index.d.ts +0 -9
  100. package/dist/src/shared/controllers/index.d.ts.map +0 -1
  101. package/dist/src/shared/decorators/debounce.d.ts +0 -7
  102. package/dist/src/shared/decorators/debounce.d.ts.map +0 -1
  103. package/dist/src/shared/decorators/index.d.ts +0 -2
  104. package/dist/src/shared/decorators/index.d.ts.map +0 -1
  105. package/dist/src/shared/directives/index.d.ts +0 -2
  106. package/dist/src/shared/directives/index.d.ts.map +0 -1
  107. package/dist/src/shared/directives/safeStyleMap.d.ts +0 -44
  108. package/dist/src/shared/directives/safeStyleMap.d.ts.map +0 -1
  109. package/dist/src/shared/index.d.ts +0 -8
  110. package/dist/src/shared/index.d.ts.map +0 -1
  111. package/dist/src/shared/mixins/AttachInternals.d.ts +0 -24
  112. package/dist/src/shared/mixins/AttachInternals.d.ts.map +0 -1
  113. package/dist/src/shared/mixins/Checked.d.ts +0 -24
  114. package/dist/src/shared/mixins/Checked.d.ts.map +0 -1
  115. package/dist/src/shared/mixins/CheckedIndeterminate.d.ts +0 -25
  116. package/dist/src/shared/mixins/CheckedIndeterminate.d.ts.map +0 -1
  117. package/dist/src/shared/mixins/CheckedOrSelected.d.ts +0 -23
  118. package/dist/src/shared/mixins/CheckedOrSelected.d.ts.map +0 -1
  119. package/dist/src/shared/mixins/ConstraintValidation.d.ts +0 -48
  120. package/dist/src/shared/mixins/ConstraintValidation.d.ts.map +0 -1
  121. package/dist/src/shared/mixins/Constructor.d.ts +0 -3
  122. package/dist/src/shared/mixins/Constructor.d.ts.map +0 -1
  123. package/dist/src/shared/mixins/Dirty.d.ts +0 -27
  124. package/dist/src/shared/mixins/Dirty.d.ts.map +0 -1
  125. package/dist/src/shared/mixins/Disabled.d.ts +0 -25
  126. package/dist/src/shared/mixins/Disabled.d.ts.map +0 -1
  127. package/dist/src/shared/mixins/DisabledInteractive.d.ts +0 -25
  128. package/dist/src/shared/mixins/DisabledInteractive.d.ts.map +0 -1
  129. package/dist/src/shared/mixins/EventAttribute.d.ts +0 -11
  130. package/dist/src/shared/mixins/EventAttribute.d.ts.map +0 -1
  131. package/dist/src/shared/mixins/Focusable.d.ts +0 -11
  132. package/dist/src/shared/mixins/Focusable.d.ts.map +0 -1
  133. package/dist/src/shared/mixins/FormAssociated.d.ts +0 -34
  134. package/dist/src/shared/mixins/FormAssociated.d.ts.map +0 -1
  135. package/dist/src/shared/mixins/FormSubmitter.d.ts +0 -31
  136. package/dist/src/shared/mixins/FormSubmitter.d.ts.map +0 -1
  137. package/dist/src/shared/mixins/HtmlFor.d.ts +0 -30
  138. package/dist/src/shared/mixins/HtmlFor.d.ts.map +0 -1
  139. package/dist/src/shared/mixins/KeyboardClick.d.ts +0 -11
  140. package/dist/src/shared/mixins/KeyboardClick.d.ts.map +0 -1
  141. package/dist/src/shared/mixins/Labelled.d.ts +0 -22
  142. package/dist/src/shared/mixins/Labelled.d.ts.map +0 -1
  143. package/dist/src/shared/mixins/LinkButton.d.ts +0 -36
  144. package/dist/src/shared/mixins/LinkButton.d.ts.map +0 -1
  145. package/dist/src/shared/mixins/ReadOnly.d.ts +0 -25
  146. package/dist/src/shared/mixins/ReadOnly.d.ts.map +0 -1
  147. package/dist/src/shared/mixins/Required.d.ts +0 -26
  148. package/dist/src/shared/mixins/Required.d.ts.map +0 -1
  149. package/dist/src/shared/mixins/RequiredConstraintValidation.d.ts +0 -21
  150. package/dist/src/shared/mixins/RequiredConstraintValidation.d.ts.map +0 -1
  151. package/dist/src/shared/mixins/Role.d.ts +0 -13
  152. package/dist/src/shared/mixins/Role.d.ts.map +0 -1
  153. package/dist/src/shared/mixins/Selected.d.ts +0 -24
  154. package/dist/src/shared/mixins/Selected.d.ts.map +0 -1
  155. package/dist/src/shared/mixins/Touched.d.ts +0 -27
  156. package/dist/src/shared/mixins/Touched.d.ts.map +0 -1
  157. package/dist/src/shared/mixins/Vertical.d.ts +0 -24
  158. package/dist/src/shared/mixins/Vertical.d.ts.map +0 -1
  159. package/dist/src/shared/mixins/hasKeys.d.ts +0 -9
  160. package/dist/src/shared/mixins/hasKeys.d.ts.map +0 -1
  161. package/dist/src/shared/mixins/index.d.ts +0 -25
  162. package/dist/src/shared/mixins/index.d.ts.map +0 -1
  163. package/dist/src/shared/primitives/CollapsibleElement.d.ts +0 -58
  164. package/dist/src/shared/primitives/CollapsibleElement.d.ts.map +0 -1
  165. package/dist/src/shared/primitives/ElevationElement.d.ts +0 -88
  166. package/dist/src/shared/primitives/ElevationElement.d.ts.map +0 -1
  167. package/dist/src/shared/primitives/ElevationLevel.d.ts +0 -3
  168. package/dist/src/shared/primitives/ElevationLevel.d.ts.map +0 -1
  169. package/dist/src/shared/primitives/ElevationToken.d.ts +0 -15
  170. package/dist/src/shared/primitives/ElevationToken.d.ts.map +0 -1
  171. package/dist/src/shared/primitives/FocusRingElement.d.ts +0 -78
  172. package/dist/src/shared/primitives/FocusRingElement.d.ts.map +0 -1
  173. package/dist/src/shared/primitives/FocusRingToken.d.ts +0 -17
  174. package/dist/src/shared/primitives/FocusRingToken.d.ts.map +0 -1
  175. package/dist/src/shared/primitives/PseudoCheckboxElement.d.ts +0 -50
  176. package/dist/src/shared/primitives/PseudoCheckboxElement.d.ts.map +0 -1
  177. package/dist/src/shared/primitives/PseudoRadioElement.d.ts +0 -41
  178. package/dist/src/shared/primitives/PseudoRadioElement.d.ts.map +0 -1
  179. package/dist/src/shared/primitives/RippleElement.d.ts +0 -110
  180. package/dist/src/shared/primitives/RippleElement.d.ts.map +0 -1
  181. package/dist/src/shared/primitives/RippleToken.d.ts +0 -12
  182. package/dist/src/shared/primitives/RippleToken.d.ts.map +0 -1
  183. package/dist/src/shared/primitives/ScrollContainerElement.d.ts +0 -64
  184. package/dist/src/shared/primitives/ScrollContainerElement.d.ts.map +0 -1
  185. package/dist/src/shared/primitives/ScrollDividers.d.ts +0 -3
  186. package/dist/src/shared/primitives/ScrollDividers.d.ts.map +0 -1
  187. package/dist/src/shared/primitives/SlideElement.d.ts +0 -48
  188. package/dist/src/shared/primitives/SlideElement.d.ts.map +0 -1
  189. package/dist/src/shared/primitives/StateLayerElement.d.ts +0 -77
  190. package/dist/src/shared/primitives/StateLayerElement.d.ts.map +0 -1
  191. package/dist/src/shared/primitives/StateLayerToken.d.ts +0 -13
  192. package/dist/src/shared/primitives/StateLayerToken.d.ts.map +0 -1
  193. package/dist/src/shared/primitives/TextOverflowElement.d.ts +0 -39
  194. package/dist/src/shared/primitives/TextOverflowElement.d.ts.map +0 -1
  195. package/dist/src/shared/primitives/index.d.ts +0 -13
  196. package/dist/src/shared/primitives/index.d.ts.map +0 -1
  197. package/dist/src/shared/tokens/ColorToken.d.ts +0 -96
  198. package/dist/src/shared/tokens/ColorToken.d.ts.map +0 -1
  199. package/dist/src/shared/tokens/DensityToken.d.ts +0 -15
  200. package/dist/src/shared/tokens/DensityToken.d.ts.map +0 -1
  201. package/dist/src/shared/tokens/DesignToken.d.ts +0 -366
  202. package/dist/src/shared/tokens/DesignToken.d.ts.map +0 -1
  203. package/dist/src/shared/tokens/ElevationToken.d.ts +0 -16
  204. package/dist/src/shared/tokens/ElevationToken.d.ts.map +0 -1
  205. package/dist/src/shared/tokens/MotionToken.d.ts +0 -69
  206. package/dist/src/shared/tokens/MotionToken.d.ts.map +0 -1
  207. package/dist/src/shared/tokens/ScrollbarToken.d.ts +0 -10
  208. package/dist/src/shared/tokens/ScrollbarToken.d.ts.map +0 -1
  209. package/dist/src/shared/tokens/ShapeToken.d.ts +0 -79
  210. package/dist/src/shared/tokens/ShapeToken.d.ts.map +0 -1
  211. package/dist/src/shared/tokens/StateToken.d.ts +0 -10
  212. package/dist/src/shared/tokens/StateToken.d.ts.map +0 -1
  213. package/dist/src/shared/tokens/TypescaleToken.d.ts +0 -220
  214. package/dist/src/shared/tokens/TypescaleToken.d.ts.map +0 -1
  215. package/dist/src/shared/tokens/index.d.ts +0 -2
  216. package/dist/src/shared/tokens/index.d.ts.map +0 -1
  217. package/dist/src/shared/utils/getTextContent.d.ts +0 -8
  218. package/dist/src/shared/utils/getTextContent.d.ts.map +0 -1
  219. package/dist/src/shared/utils/guid.d.ts +0 -6
  220. package/dist/src/shared/utils/guid.d.ts.map +0 -1
  221. package/dist/src/shared/utils/hasAssignedNodes.d.ts +0 -7
  222. package/dist/src/shared/utils/hasAssignedNodes.d.ts.map +0 -1
  223. package/dist/src/shared/utils/index.d.ts +0 -6
  224. package/dist/src/shared/utils/index.d.ts.map +0 -1
  225. package/dist/src/shared/utils/prefersReducedMotion.d.ts +0 -6
  226. package/dist/src/shared/utils/prefersReducedMotion.d.ts.map +0 -1
  227. package/dist/src/shared/utils/scrollIntoViewIfNeeded.d.ts +0 -8
  228. package/dist/src/shared/utils/scrollIntoViewIfNeeded.d.ts.map +0 -1
  229. package/eslint.config.mjs +0 -21
  230. package/rollup.config.js +0 -132
  231. package/src/a11y/AriaDescriber.ts +0 -130
  232. package/src/a11y/FocusTrapElement.ts +0 -136
  233. package/src/a11y/InteractivityChecker.ts +0 -62
  234. package/src/a11y/LiveAnnouncer.ts +0 -143
  235. package/src/a11y/aria-reference.ts +0 -51
  236. package/src/a11y/index.ts +0 -8
  237. package/src/a11y/keycodes/KeyCode.ts +0 -128
  238. package/src/a11y/keycodes/ModifierKeys.ts +0 -5
  239. package/src/a11y/keycodes/getKeyCode.ts +0 -8
  240. package/src/a11y/keycodes/hasModifierKey.ts +0 -11
  241. package/src/a11y/keycodes/index.ts +0 -5
  242. package/src/a11y/keycodes/isModifierAllowed.ts +0 -12
  243. package/src/a11y/list-key/FocusKeyManager.ts +0 -25
  244. package/src/a11y/list-key/ListKeyManager.ts +0 -350
  245. package/src/a11y/list-key/ListManager.ts +0 -66
  246. package/src/a11y/list-key/RadioKeyManager.ts +0 -49
  247. package/src/a11y/list-key/RovingTabIndexManager.ts +0 -56
  248. package/src/a11y/list-key/SelectionManager.ts +0 -132
  249. package/src/a11y/list-key/Typeahead.ts +0 -131
  250. package/src/a11y/list-key/index.ts +0 -7
  251. package/src/a11y/visuallyHide.ts +0 -18
  252. package/src/anchoring/AnchorOptions.ts +0 -19
  253. package/src/anchoring/AnchorPosition.ts +0 -14
  254. package/src/anchoring/index.ts +0 -3
  255. package/src/anchoring/positionAnchor.ts +0 -53
  256. package/src/bidi/Directionality.ts +0 -85
  257. package/src/bidi/index.ts +0 -1
  258. package/src/index.ts +0 -1
  259. package/src/layout/Breakpoint.ts +0 -26
  260. package/src/layout/BreakpointObserver.ts +0 -44
  261. package/src/layout/index.ts +0 -2
  262. package/src/platform/Platform.ts +0 -67
  263. package/src/platform/index.ts +0 -1
  264. package/src/shared/controllers/FocusController.ts +0 -60
  265. package/src/shared/controllers/HoverController.ts +0 -140
  266. package/src/shared/controllers/IntersectionController.ts +0 -81
  267. package/src/shared/controllers/LongPressController.ts +0 -87
  268. package/src/shared/controllers/MonitorControllerBase.ts +0 -99
  269. package/src/shared/controllers/MutationController.ts +0 -89
  270. package/src/shared/controllers/PressedController.ts +0 -137
  271. package/src/shared/controllers/ResizeController.ts +0 -83
  272. package/src/shared/controllers/ScrollController.ts +0 -100
  273. package/src/shared/controllers/index.ts +0 -8
  274. package/src/shared/decorators/debounce.ts +0 -19
  275. package/src/shared/decorators/index.ts +0 -1
  276. package/src/shared/directives/index.ts +0 -1
  277. package/src/shared/directives/safeStyleMap.ts +0 -108
  278. package/src/shared/index.ts +0 -7
  279. package/src/shared/mixins/AttachInternals.ts +0 -48
  280. package/src/shared/mixins/Checked.ts +0 -50
  281. package/src/shared/mixins/CheckedIndeterminate.ts +0 -47
  282. package/src/shared/mixins/CheckedOrSelected.ts +0 -36
  283. package/src/shared/mixins/ConstraintValidation.ts +0 -213
  284. package/src/shared/mixins/Constructor.ts +0 -2
  285. package/src/shared/mixins/Dirty.ts +0 -71
  286. package/src/shared/mixins/Disabled.ts +0 -49
  287. package/src/shared/mixins/DisabledInteractive.ts +0 -78
  288. package/src/shared/mixins/EventAttribute.ts +0 -25
  289. package/src/shared/mixins/Focusable.ts +0 -52
  290. package/src/shared/mixins/FormAssociated.ts +0 -152
  291. package/src/shared/mixins/FormSubmitter.ts +0 -123
  292. package/src/shared/mixins/HtmlFor.ts +0 -89
  293. package/src/shared/mixins/KeyboardClick.ts +0 -46
  294. package/src/shared/mixins/Labelled.ts +0 -88
  295. package/src/shared/mixins/LinkButton.ts +0 -169
  296. package/src/shared/mixins/ReadOnly.ts +0 -48
  297. package/src/shared/mixins/Required.ts +0 -50
  298. package/src/shared/mixins/RequiredConstraintValidation.ts +0 -45
  299. package/src/shared/mixins/Role.ts +0 -134
  300. package/src/shared/mixins/Selected.ts +0 -50
  301. package/src/shared/mixins/Touched.ts +0 -71
  302. package/src/shared/mixins/Vertical.ts +0 -44
  303. package/src/shared/mixins/hasKeys.ts +0 -10
  304. package/src/shared/mixins/index.ts +0 -24
  305. package/src/shared/primitives/CollapsibleElement.ts +0 -227
  306. package/src/shared/primitives/ElevationElement.ts +0 -254
  307. package/src/shared/primitives/ElevationLevel.ts +0 -2
  308. package/src/shared/primitives/ElevationToken.ts +0 -18
  309. package/src/shared/primitives/FocusRingElement.ts +0 -199
  310. package/src/shared/primitives/FocusRingToken.ts +0 -24
  311. package/src/shared/primitives/PseudoCheckboxElement.ts +0 -116
  312. package/src/shared/primitives/PseudoRadioElement.ts +0 -83
  313. package/src/shared/primitives/RippleElement.ts +0 -289
  314. package/src/shared/primitives/RippleToken.ts +0 -15
  315. package/src/shared/primitives/ScrollContainerElement.ts +0 -151
  316. package/src/shared/primitives/ScrollDividers.ts +0 -2
  317. package/src/shared/primitives/SlideElement.ts +0 -128
  318. package/src/shared/primitives/StateLayerElement.ts +0 -191
  319. package/src/shared/primitives/StateLayerToken.ts +0 -16
  320. package/src/shared/primitives/TextOverflowElement.ts +0 -60
  321. package/src/shared/primitives/index.ts +0 -12
  322. package/src/shared/tokens/ColorToken.ts +0 -142
  323. package/src/shared/tokens/DensityToken.ts +0 -23
  324. package/src/shared/tokens/DesignToken.ts +0 -35
  325. package/src/shared/tokens/ElevationToken.ts +0 -115
  326. package/src/shared/tokens/MotionToken.ts +0 -107
  327. package/src/shared/tokens/ScrollbarToken.ts +0 -13
  328. package/src/shared/tokens/ShapeToken.ts +0 -138
  329. package/src/shared/tokens/StateToken.ts +0 -13
  330. package/src/shared/tokens/TypescaleToken.ts +0 -230
  331. package/src/shared/tokens/index.ts +0 -1
  332. package/src/shared/utils/getTextContent.ts +0 -31
  333. package/src/shared/utils/guid.ts +0 -11
  334. package/src/shared/utils/hasAssignedNodes.ts +0 -8
  335. package/src/shared/utils/index.ts +0 -5
  336. package/src/shared/utils/prefersReducedMotion.ts +0 -9
  337. package/src/shared/utils/scrollIntoViewIfNeeded.ts +0 -18
  338. package/tsconfig.json +0 -9
package/dist/a11y.min.js CHANGED
@@ -13,12 +13,12 @@ import{isServer as t,html as e,css as s,LitElement as i}from"lit";function r(t,e
13
13
  * @license
14
14
  * Copyright 2019 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
- */let v=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(f&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=m.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&m.set(e,t))}return t}toString(){return this.cssText}};const g=(t,e)=>{if(f)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),i=u.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=s.cssText,t.appendChild(e)}},w=f?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new v("string"==typeof t?t:t+"",void 0,p))(e)})(t):t,{is:b,defineProperty:y,getOwnPropertyDescriptor:E,getOwnPropertyNames:S,getOwnPropertySymbols:A,getPrototypeOf:P}=Object,k=globalThis,$=k.trustedTypes,_=$?$.emptyScript:"",C=k.reactiveElementPolyfillSupport,I=(t,e)=>t,M={toAttribute(t,e){switch(e){case Boolean:t=t?_:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},D=(t,e)=>!b(t,e),N={attribute:!0,type:String,converter:M,reflect:!1,useDefault:!1,hasChanged:D};
16
+ */let v=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(f&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=m.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&m.set(e,t))}return t}toString(){return this.cssText}};const g=(t,e)=>{if(f)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),i=u.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=s.cssText,t.appendChild(e)}},w=f?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new v("string"==typeof t?t:t+"",void 0,p))(e)})(t):t,{is:b,defineProperty:y,getOwnPropertyDescriptor:E,getOwnPropertyNames:S,getOwnPropertySymbols:A,getPrototypeOf:P}=Object,k=globalThis,$=k.trustedTypes,_=$?$.emptyScript:"",I=k.reactiveElementPolyfillSupport,C=(t,e)=>t,M={toAttribute(t,e){switch(e){case Boolean:t=t?_:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},D=(t,e)=>!b(t,e),N={attribute:!0,type:String,converter:M,reflect:!1,useDefault:!1,hasChanged:D};
17
17
  /**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */Symbol.metadata??=Symbol("metadata"),k.litPropertyMetadata??=new WeakMap;class T extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=N){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&y(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:r}=E(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const n=i?.call(this);r?.call(this,e),this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??N}static _$Ei(){if(this.hasOwnProperty(I("elementProperties")))return;const t=P(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(I("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(I("properties"))){const t=this.properties,e=[...S(t),...A(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(w(t))}else void 0!==t&&e.push(w(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return g(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:M).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:M;this._$Em=i;const n=r.fromAttribute(e,t.type);this[i]=n??this._$Ej?.get(i)??n,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const i=this.constructor,r=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??D)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:r},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),!0!==r||void 0!==n)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[I("elementProperties")]=new Map,T[I("finalized")]=new Map,C?.({ReactiveElement:T}),(k.reactiveElementVersions??=[]).push("2.1.1");
21
+ */Symbol.metadata??=Symbol("metadata"),k.litPropertyMetadata??=new WeakMap;class T extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=N){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&y(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:r}=E(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const n=i?.call(this);r?.call(this,e),this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??N}static _$Ei(){if(this.hasOwnProperty(C("elementProperties")))return;const t=P(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(C("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(C("properties"))){const t=this.properties,e=[...S(t),...A(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(w(t))}else void 0!==t&&e.push(w(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return g(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:M).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:M;this._$Em=i;const n=r.fromAttribute(e,t.type);this[i]=n??this._$Ej?.get(i)??n,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const i=this.constructor,r=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??D)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:r},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),!0!==r||void 0!==n)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[C("elementProperties")]=new Map,T[C("finalized")]=new Map,I?.({ReactiveElement:T}),(k.reactiveElementVersions??=[]).push("2.1.1");
22
22
  /**
23
23
  * @license
24
24
  * Copyright 2017 Google LLC
@@ -47,7 +47,7 @@ var et,st,it,rt,nt,ot,at,ht,ct,lt,dt,ut,ft,pt,mt,vt;K=new WeakMap,B=new WeakMap,
47
47
  * Copyright (c) 2025 Google LLC
48
48
  * See LICENSE file in the project root for full license text.
49
49
  */
50
- function $t(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}function _t(t,e,s){s=s.trim();const i=$t(t,e);i.some(t=>t.trim()===s)||(i.push(s),t.setAttribute(e,i.join(" ")))}function Ct(t,e,s){s=s.trim();const i=$t(t,e).filter(t=>t!==s);i.length>0?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}function It(t){t.position="absolute",t.appearance="none",t.visibility="hidden",t.border="0",t.outline="0",t.overflow="hidden",t.left="0",t.height="1px",t.width="1px",t.margin="-1px",t.padding="0",t.whiteSpace="nowrap"}
50
+ function $t(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}function _t(t,e,s){s=s.trim();const i=$t(t,e);i.some(t=>t.trim()===s)||(i.push(s),t.setAttribute(e,i.join(" ")))}function It(t,e,s){s=s.trim();const i=$t(t,e).filter(t=>t!==s);i.length>0?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}function Ct(t){t.position="absolute",t.appearance="none",t.visibility="hidden",t.border="0",t.outline="0",t.overflow="hidden",t.left="0",t.height="1px",t.width="1px",t.margin="-1px",t.padding="0",t.whiteSpace="nowrap"}
51
51
  /**
52
52
  * Adapted from Angular Material CDK ARIA Describer
53
53
  * Source: https://github.com/angular/components/blob/main/src/cdk/a11y/aria-describer/aria-describer.ts
@@ -55,7 +55,7 @@ function $t(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}function _t(t,e,s){
55
55
  * @license MIT
56
56
  * Copyright (c) 2025 Google LLC
57
57
  * See LICENSE file in the project root for full license text.
58
- */var Mt,Dt,Nt,Tt,Ut,Ot,xt,Rt,Ft,Lt,Wt,jt,Kt;ft=new WeakMap,pt=new WeakMap,mt=new WeakMap,ut=new WeakSet,vt=function(t=!1){if(!this.multi&&n(this,pt,"f").length>1){for(let t=1;t<n(this,pt,"f").length;t++)Et(n(this,pt,"f")[t],!1);n(this,pt,"f").length=1,t&&n(this,ft,"f")?.call(this)}};class Bt{static describe(e,s,i="tooltip"){if(t)return;const r=e.getRootNode();if(!(r instanceof ShadowRoot||r instanceof Document))return;let o=n(this,Mt,"f",Nt).get(r);o||(o={containerElement:n(this,Mt,"m",Tt).call(this),messageRegistry:new Map},(r instanceof Document?r.body:r).appendChild(o.containerElement),n(this,Mt,"f",Nt).set(r,o));const a=`${i}:${s}`;let h=o.messageRegistry.get(a);h||(h={messageElement:n(this,Mt,"m",Ut).call(this,s,i),count:0},o.containerElement.appendChild(h.messageElement),o.messageRegistry.set(a,h)),h.count++,_t(e,"aria-describedby",h.messageElement.id)}static removeDescription(e,s,i="tooltip"){if(t)return;const r=e.getRootNode(),o=n(this,Mt,"f",Nt).get(r);if(!o)return;const a=`${i}:${s}`,h=o.messageRegistry.get(a);h&&(h.count--,Ct(e,"aria-describedby",h.messageElement.id),h.count<=0&&(h.messageElement.remove(),o.messageRegistry.delete(a)),0==o.messageRegistry.size&&(o.containerElement?.remove(),n(this,Mt,"f",Nt).delete(r)))}}Mt=Bt,Tt=function(){const t=document.createElement("div");return t.classList.add("m3e-describedby-message-container"),It(t.style),t},Ut=function(t,e){var s,i;const r=document.createElement("span");return r.id=`m3e-describedby-message-${o(this,Mt,(i=n(this,Mt,"f",Dt),s=i++,i),"f",Dt),s}`,r.role=e,r.ariaAtomic="true",r.innerText=t.trim(),r},Dt={value:0},Nt={value:new Map},globalThis.M3eAriaDescriber=Bt;class Ht{static isFocusable(t,e){return t.matches(":is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true]):not(:disabled,[disabled])")?!n(this,Ot,"m",xt).call(this,e):!(!t.localName.includes("-")||!t.matches(":not(:disabled,[disabled])")||"true"===t.getAttribute("aria-disabled"))&&(!!t.shadowRoot?.delegatesFocus&&!n(this,Ot,"m",xt).call(this,e))}static findInteractiveElements(t){const e=new Array,s=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(let t=s.nextNode();t;t=s.nextNode()){const t=s.currentNode;this.isFocusable(t)&&e.push(t)}return e}}Ot=Ht,xt=function(t){return t?.some(t=>t.matches(":is([aria-hidden='true'],:disabled,[disabled])"))??!1},globalThis.M3eInteractivityChecker=Ht;let zt=class extends(function(t,e=!0){class s extends t{constructor(){super(...arguments),this.disabled=!1}update(t){super.update(t),t.has("disabled")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaDisabled=this.disabled?"true":null)}}return r([x({type:Boolean,reflect:e})],s.prototype,"disabled",void 0),s}(function(t,e){return class extends t{connectedCallback(){this.role=this.role||e,super.connectedCallback()}}}(i,"none"))){constructor(){super(...arguments),Rt.add(this)}render(){const t=e`<div
58
+ */var Mt,Dt,Nt,Tt,Ut,Ot,xt,Rt,Ft,Lt,Wt,jt,Kt;ft=new WeakMap,pt=new WeakMap,mt=new WeakMap,ut=new WeakSet,vt=function(t=!1){if(!this.multi&&n(this,pt,"f").length>1){for(let t=1;t<n(this,pt,"f").length;t++)Et(n(this,pt,"f")[t],!1);n(this,pt,"f").length=1,t&&n(this,ft,"f")?.call(this)}};class Bt{static describe(e,s,i="tooltip"){if(t)return;const r=e.getRootNode();if(!(r instanceof ShadowRoot||r instanceof Document))return;let o=n(this,Mt,"f",Nt).get(r);o||(o={containerElement:n(this,Mt,"m",Tt).call(this),messageRegistry:new Map},(r instanceof Document?r.body:r).appendChild(o.containerElement),n(this,Mt,"f",Nt).set(r,o));const a=`${i}:${s}`;let h=o.messageRegistry.get(a);h||(h={messageElement:n(this,Mt,"m",Ut).call(this,s,i),count:0},o.containerElement.appendChild(h.messageElement),o.messageRegistry.set(a,h)),h.count++,_t(e,"aria-describedby",h.messageElement.id)}static removeDescription(e,s,i="tooltip"){if(t)return;const r=e.getRootNode(),o=n(this,Mt,"f",Nt).get(r);if(!o)return;const a=`${i}:${s}`,h=o.messageRegistry.get(a);h&&(h.count--,It(e,"aria-describedby",h.messageElement.id),h.count<=0&&(h.messageElement.remove(),o.messageRegistry.delete(a)),0==o.messageRegistry.size&&(o.containerElement?.remove(),n(this,Mt,"f",Nt).delete(r)))}}Mt=Bt,Tt=function(){const t=document.createElement("div");return t.classList.add("m3e-describedby-message-container"),Ct(t.style),t},Ut=function(t,e){var s,i;const r=document.createElement("span");return r.id=`m3e-describedby-message-${o(this,Mt,(i=n(this,Mt,"f",Dt),s=i++,i),"f",Dt),s}`,r.role=e,r.ariaAtomic="true",r.innerText=t.trim(),r},Dt={value:0},Nt={value:new Map},globalThis.M3eAriaDescriber=Bt;class Ht{static isFocusable(t,e){return t.matches(":is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true]):not(:disabled,[disabled])")?!n(this,Ot,"m",xt).call(this,e):!(!t.localName.includes("-")||!t.matches(":not(:disabled,[disabled])")||"true"===t.getAttribute("aria-disabled"))&&(!!t.shadowRoot?.delegatesFocus&&!n(this,Ot,"m",xt).call(this,e))}static findInteractiveElements(t){const e=new Array,s=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(let t=s.nextNode();t;t=s.nextNode()){const t=s.currentNode;this.isFocusable(t)&&e.push(t)}return e}}Ot=Ht,xt=function(t){return t?.some(t=>t.matches(":is([aria-hidden='true'],:disabled,[disabled])"))??!1},globalThis.M3eInteractivityChecker=Ht;let zt=class extends(function(t,e=!0){class s extends t{constructor(){super(...arguments),this.disabled=!1}update(t){super.update(t),t.has("disabled")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaDisabled=this.disabled?"true":null)}}return r([x({type:Boolean,reflect:e})],s.prototype,"disabled",void 0),s}(i)){constructor(){super(...arguments),Rt.add(this)}render(){const t=e`<div
59
59
  class="trap"
60
60
  .inert="${this.disabled}"
61
61
  tabindex="0"
@@ -83,5 +83,5 @@ var qt,Zt,Gt,Jt,Qt,Vt,Xt;Rt=new WeakSet,Ft=function(t){const[e,s]=n(this,Rt,"m",
83
83
  * Copyright 2017 Google LLC
84
84
  * SPDX-License-Identifier: BSD-3-Clause
85
85
  */
86
- function(t){return(e,s,i)=>((t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,s),s))(e,s,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}(".trap")],zt.prototype,"_firstTrap",void 0),zt=r([(t=>(e,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)})("m3e-focus-trap")],zt);class Yt{static announce(e,...s){if(t)return Promise.resolve();let i,r;o(this,qt,n(this,qt,"f",Gt)??n(this,qt,"m",Xt).call(this),"f",Gt),1===s.length&&"number"==typeof s[0]?r=s[0]:[i,r]=s,this.clear(),clearTimeout(n(this,qt,"f",Jt)),n(this,qt,"f",Gt).setAttribute("aria-live",i??"polite");for(const t of document.querySelectorAll("m3e-dialog"))_t(t,"aria-owns",n(this,qt,"f",Gt).id);return o(this,qt,n(this,qt,"f",Qt)??new Promise(t=>o(this,qt,t,"f",Vt)),"f",Qt),clearTimeout(n(this,qt,"f",Jt)),o(this,qt,setTimeout(()=>{n(this,qt,"f",Gt)&&(n(this,qt,"f",Gt).textContent=e,void 0!==r&&o(this,qt,setTimeout(()=>this.clear(),r),"f",Jt),n(this,qt,"f",Vt)?.call(this),o(this,qt,o(this,qt,void 0,"f",Vt),"f",Qt))},100),"f",Jt),n(this,qt,"f",Qt)}static clear(){n(this,qt,"f",Gt)&&(n(this,qt,"f",Gt).textContent="")}}qt=Yt,Xt=function(){var t,e;const s=document.getElementsByClassName("m3e-live-announcer");for(let t=0;t<s.length;t++)s[t].remove();const i=document.createElement("div");return i.classList.add("m3e-live-announcer"),i.setAttribute("aria-atomic","true"),i.setAttribute("aria-live","polite"),i.id=`m3e-live-announcer-${o(this,qt,(e=n(this,qt,"f",Zt),t=e++,e),"f",Zt),t}`,It(i.style),document.body.append(i),i},Zt={value:0},Gt={value:void 0},Jt={value:void 0},Qt={value:void 0},Vt={value:void 0},globalThis.M3eLiveAnnouncer=Yt;export{wt as FocusKeyManager,h as KeyCode,gt as ListKeyManager,V as ListManager,Bt as M3eAriaDescriber,zt as M3eFocusTrapElement,Ht as M3eInteractivityChecker,Yt as M3eLiveAnnouncer,a as ModifierKeys,At as RadioKeyManager,St as RovingTabIndexManager,kt as SelectionManager,tt as Typeahead,_t as addAriaReferencedId,$t as getAriaReferenceIds,c as getKeyCode,l as hasModifierKey,d as isModifierAllowed,Y as isTypeaheadItem,Ct as removeAriaReferencedId,Pt as selectionManager,X as typeaheadLabel};
86
+ function(t){return(e,s,i)=>((t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,s),s))(e,s,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}(".trap")],zt.prototype,"_firstTrap",void 0),zt=r([(t=>(e,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)})("m3e-focus-trap")],zt);class Yt{static announce(e,...s){if(t)return Promise.resolve();let i,r;o(this,qt,n(this,qt,"f",Gt)??n(this,qt,"m",Xt).call(this),"f",Gt),1===s.length&&"number"==typeof s[0]?r=s[0]:[i,r]=s,this.clear(),clearTimeout(n(this,qt,"f",Jt)),n(this,qt,"f",Gt).setAttribute("aria-live",i??"polite");for(const t of document.querySelectorAll("m3e-dialog"))_t(t,"aria-owns",n(this,qt,"f",Gt).id);return o(this,qt,n(this,qt,"f",Qt)??new Promise(t=>o(this,qt,t,"f",Vt)),"f",Qt),clearTimeout(n(this,qt,"f",Jt)),o(this,qt,setTimeout(()=>{n(this,qt,"f",Gt)&&(n(this,qt,"f",Gt).textContent=e,void 0!==r&&o(this,qt,setTimeout(()=>this.clear(),r),"f",Jt),n(this,qt,"f",Vt)?.call(this),o(this,qt,o(this,qt,void 0,"f",Vt),"f",Qt))},100),"f",Jt),n(this,qt,"f",Qt)}static clear(){n(this,qt,"f",Gt)&&(n(this,qt,"f",Gt).textContent="")}}qt=Yt,Xt=function(){var t,e;const s=document.getElementsByClassName("m3e-live-announcer");for(let t=0;t<s.length;t++)s[t].remove();const i=document.createElement("div");return i.classList.add("m3e-live-announcer"),i.setAttribute("aria-atomic","true"),i.setAttribute("aria-live","polite"),i.id=`m3e-live-announcer-${o(this,qt,(e=n(this,qt,"f",Zt),t=e++,e),"f",Zt),t}`,Ct(i.style),document.body.append(i),i},Zt={value:0},Gt={value:void 0},Jt={value:void 0},Qt={value:void 0},Vt={value:void 0},globalThis.M3eLiveAnnouncer=Yt;export{wt as FocusKeyManager,h as KeyCode,gt as ListKeyManager,V as ListManager,Bt as M3eAriaDescriber,zt as M3eFocusTrapElement,Ht as M3eInteractivityChecker,Yt as M3eLiveAnnouncer,a as ModifierKeys,At as RadioKeyManager,St as RovingTabIndexManager,kt as SelectionManager,tt as Typeahead,_t as addAriaReferencedId,$t as getAriaReferenceIds,c as getKeyCode,l as hasModifierKey,d as isModifierAllowed,Y as isTypeaheadItem,It as removeAriaReferencedId,Pt as selectionManager,X as typeaheadLabel};
87
87
  //# sourceMappingURL=a11y.min.js.map