@m3e/web 2.0.3 → 2.0.5
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.
- package/dist/all.js +571 -463
- package/dist/all.js.map +1 -1
- package/dist/all.min.js +54 -59
- package/dist/all.min.js.map +1 -1
- package/dist/app-bar.js +10 -10
- package/dist/app-bar.js.map +1 -1
- package/dist/app-bar.min.js +1 -1
- package/dist/app-bar.min.js.map +1 -1
- package/dist/autocomplete.js +31 -18
- package/dist/autocomplete.js.map +1 -1
- package/dist/autocomplete.min.js +1 -1
- package/dist/autocomplete.min.js.map +1 -1
- package/dist/avatar.js +1 -2
- package/dist/avatar.js.map +1 -1
- package/dist/avatar.min.js +1 -1
- package/dist/avatar.min.js.map +1 -1
- package/dist/badge.js +2 -2
- package/dist/badge.js.map +1 -1
- package/dist/badge.min.js +1 -1
- package/dist/badge.min.js.map +1 -1
- package/dist/bottom-sheet.js +14 -15
- package/dist/bottom-sheet.js.map +1 -1
- package/dist/bottom-sheet.min.js +1 -1
- package/dist/bottom-sheet.min.js.map +1 -1
- package/dist/button-group.js +7 -7
- package/dist/button-group.js.map +1 -1
- package/dist/button-group.min.js +1 -1
- package/dist/button-group.min.js.map +1 -1
- package/dist/button.js +17 -17
- package/dist/button.js.map +1 -1
- package/dist/button.min.js +1 -1
- package/dist/button.min.js.map +1 -1
- package/dist/card.js +2 -2
- package/dist/card.js.map +1 -1
- package/dist/card.min.js +1 -1
- package/dist/card.min.js.map +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/checkbox.js.map +1 -1
- package/dist/checkbox.min.js +1 -1
- package/dist/checkbox.min.js.map +1 -1
- package/dist/chips.js +50 -37
- package/dist/chips.js.map +1 -1
- package/dist/chips.min.js +1 -1
- package/dist/chips.min.js.map +1 -1
- package/dist/core-a11y.js +27 -1
- package/dist/core-a11y.js.map +1 -1
- package/dist/core-a11y.min.js +4 -13
- package/dist/core-a11y.min.js.map +1 -1
- package/dist/core-bidi.js +3 -5
- package/dist/core-bidi.js.map +1 -1
- package/dist/core-bidi.min.js +2 -2
- package/dist/core-bidi.min.js.map +1 -1
- package/dist/core.js +128 -49
- package/dist/core.js.map +1 -1
- package/dist/core.min.js +1 -1
- package/dist/core.min.js.map +1 -1
- package/dist/css-custom-data.json +140 -115
- package/dist/custom-elements.json +2310 -1497
- package/dist/dialog.js +10 -9
- package/dist/dialog.js.map +1 -1
- package/dist/dialog.min.js +1 -1
- package/dist/dialog.min.js.map +1 -1
- package/dist/divider.js +2 -2
- package/dist/divider.js.map +1 -1
- package/dist/divider.min.js +1 -1
- package/dist/divider.min.js.map +1 -1
- package/dist/drawer-container.js +18 -18
- package/dist/drawer-container.js.map +1 -1
- package/dist/drawer-container.min.js +1 -1
- package/dist/drawer-container.min.js.map +1 -1
- package/dist/expansion-panel.js +4 -4
- package/dist/expansion-panel.js.map +1 -1
- package/dist/expansion-panel.min.js +1 -1
- package/dist/expansion-panel.min.js.map +1 -1
- package/dist/fab-menu.js +9 -9
- package/dist/fab-menu.js.map +1 -1
- package/dist/fab-menu.min.js +1 -1
- package/dist/fab-menu.min.js.map +1 -1
- package/dist/fab.js +4 -4
- package/dist/fab.js.map +1 -1
- package/dist/fab.min.js +1 -1
- package/dist/fab.min.js.map +1 -1
- package/dist/form-field.js +22 -22
- package/dist/form-field.js.map +1 -1
- package/dist/form-field.min.js +3 -3
- package/dist/form-field.min.js.map +1 -1
- package/dist/heading.js +2 -2
- package/dist/heading.js.map +1 -1
- package/dist/heading.min.js +1 -1
- package/dist/heading.min.js.map +1 -1
- package/dist/html-custom-data.json +57 -57
- package/dist/icon-button.js +17 -17
- package/dist/icon-button.js.map +1 -1
- package/dist/icon-button.min.js +1 -1
- package/dist/icon-button.min.js.map +1 -1
- package/dist/icon.js +2 -2
- package/dist/icon.js.map +1 -1
- package/dist/icon.min.js +1 -1
- package/dist/icon.min.js.map +1 -1
- package/dist/list.js +26 -20
- package/dist/list.js.map +1 -1
- package/dist/list.min.js +1 -1
- package/dist/list.min.js.map +1 -1
- package/dist/loading-indicator.js +2 -2
- package/dist/loading-indicator.js.map +1 -1
- package/dist/loading-indicator.min.js +1 -1
- package/dist/loading-indicator.min.js.map +1 -1
- package/dist/menu.js +28 -26
- package/dist/menu.js.map +1 -1
- package/dist/menu.min.js +1 -1
- package/dist/menu.min.js.map +1 -1
- package/dist/nav-bar.js +4 -4
- package/dist/nav-bar.js.map +1 -1
- package/dist/nav-bar.min.js +1 -1
- package/dist/nav-bar.min.js.map +1 -1
- package/dist/nav-menu.js +25 -21
- package/dist/nav-menu.js.map +1 -1
- package/dist/nav-menu.min.js +1 -1
- package/dist/nav-menu.min.js.map +1 -1
- package/dist/nav-rail.js +4 -5
- package/dist/nav-rail.js.map +1 -1
- package/dist/nav-rail.min.js +1 -1
- package/dist/nav-rail.min.js.map +1 -1
- package/dist/option.js +26 -28
- package/dist/option.js.map +1 -1
- package/dist/option.min.js +1 -1
- package/dist/option.min.js.map +1 -1
- package/dist/paginator.js +7 -3
- package/dist/paginator.js.map +1 -1
- package/dist/paginator.min.js +2 -2
- package/dist/paginator.min.js.map +1 -1
- package/dist/progress-indicator.js +2 -2
- package/dist/progress-indicator.js.map +1 -1
- package/dist/progress-indicator.min.js +7 -7
- package/dist/progress-indicator.min.js.map +1 -1
- package/dist/radio-group.js +4 -4
- package/dist/radio-group.js.map +1 -1
- package/dist/radio-group.min.js +1 -1
- package/dist/radio-group.min.js.map +1 -1
- package/dist/segmented-button.js +9 -9
- package/dist/segmented-button.js.map +1 -1
- package/dist/segmented-button.min.js +1 -1
- package/dist/segmented-button.min.js.map +1 -1
- package/dist/select.js +10 -354
- package/dist/select.js.map +1 -1
- package/dist/select.min.js +1 -18
- package/dist/select.min.js.map +1 -1
- package/dist/shape.js +2 -2
- package/dist/shape.js.map +1 -1
- package/dist/shape.min.js +1 -1
- package/dist/shape.min.js.map +1 -1
- package/dist/slide-group.js +3 -2
- package/dist/slide-group.js.map +1 -1
- package/dist/slide-group.min.js +1 -1
- package/dist/slide-group.min.js.map +1 -1
- package/dist/slider.js +8 -8
- package/dist/slider.js.map +1 -1
- package/dist/slider.min.js +1 -1
- package/dist/slider.min.js.map +1 -1
- package/dist/snackbar.js +5 -3
- package/dist/snackbar.js.map +1 -1
- package/dist/snackbar.min.js +1 -1
- package/dist/snackbar.min.js.map +1 -1
- package/dist/split-button.js +3 -2
- package/dist/split-button.js.map +1 -1
- package/dist/split-button.min.js +1 -1
- package/dist/split-button.min.js.map +1 -1
- package/dist/src/autocomplete/AutocompleteElement.d.ts.map +1 -1
- package/dist/src/avatar/AvatarElement.d.ts.map +1 -1
- package/dist/src/bottom-sheet/BottomSheetActionElement.d.ts.map +1 -1
- package/dist/src/bottom-sheet/BottomSheetElement.d.ts +1 -1
- package/dist/src/bottom-sheet/BottomSheetElement.d.ts.map +1 -1
- package/dist/src/bottom-sheet/BottomSheetTriggerElement.d.ts.map +1 -1
- package/dist/src/button/ButtonElement.d.ts +2 -1
- package/dist/src/button/ButtonElement.d.ts.map +1 -1
- package/dist/src/button/styles/ButtonSizeStyle.d.ts.map +1 -1
- package/dist/src/button/styles/ButtonVariantStyle.d.ts.map +1 -1
- package/dist/src/button-group/ButtonGroupElement.d.ts.map +1 -1
- package/dist/src/card/CardElement.d.ts.map +1 -1
- package/dist/src/checkbox/CheckboxElement.d.ts.map +1 -1
- package/dist/src/chips/AssistChipElement.d.ts +3 -1
- package/dist/src/chips/AssistChipElement.d.ts.map +1 -1
- package/dist/src/chips/ChipElement.d.ts +3 -1
- package/dist/src/chips/ChipElement.d.ts.map +1 -1
- package/dist/src/chips/ChipSetElement.d.ts.map +1 -1
- package/dist/src/chips/FilterChipElement.d.ts +3 -1
- package/dist/src/chips/FilterChipElement.d.ts.map +1 -1
- package/dist/src/chips/FilterChipSetElement.d.ts.map +1 -1
- package/dist/src/chips/InputChipElement.d.ts +8 -1
- package/dist/src/chips/InputChipElement.d.ts.map +1 -1
- package/dist/src/chips/InputChipSetElement.d.ts.map +1 -1
- package/dist/src/chips/SuggestionChipElement.d.ts +3 -1
- package/dist/src/chips/SuggestionChipElement.d.ts.map +1 -1
- package/dist/src/core/bidi/Directionality.d.ts.map +1 -1
- package/dist/src/core/shared/controllers/HoverController.d.ts.map +1 -1
- package/dist/src/core/shared/controllers/IntersectionController.d.ts.map +1 -1
- package/dist/src/core/shared/decorators/component.d.ts +19 -0
- package/dist/src/core/shared/decorators/component.d.ts.map +1 -0
- package/dist/src/core/shared/decorators/customElement.d.ts +19 -0
- package/dist/src/core/shared/decorators/customElement.d.ts.map +1 -0
- package/dist/src/core/shared/decorators/element.d.ts +19 -0
- package/dist/src/core/shared/decorators/element.d.ts.map +1 -0
- package/dist/src/core/shared/decorators/index.d.ts +1 -0
- package/dist/src/core/shared/decorators/index.d.ts.map +1 -1
- package/dist/src/core/shared/mixins/AttachInternals.d.ts +27 -0
- package/dist/src/core/shared/mixins/AttachInternals.d.ts.map +1 -1
- package/dist/src/core/shared/mixins/Dirty.d.ts +2 -1
- package/dist/src/core/shared/mixins/Dirty.d.ts.map +1 -1
- package/dist/src/core/shared/mixins/HtmlFor.d.ts.map +1 -1
- package/dist/src/core/shared/mixins/Labelled.d.ts.map +1 -1
- package/dist/src/core/shared/mixins/Touched.d.ts +2 -1
- package/dist/src/core/shared/mixins/Touched.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/CollapsibleElement.d.ts +1 -1
- package/dist/src/core/shared/primitives/CollapsibleElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/ElevationElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/FocusRingElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/RippleElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/ScrollContainerElement.d.ts +3 -1
- package/dist/src/core/shared/primitives/ScrollContainerElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/SlideElement.d.ts +3 -1
- package/dist/src/core/shared/primitives/SlideElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/StateLayerElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/TextHighlightElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/TextOverflowElement.d.ts.map +1 -1
- package/dist/src/core/shared/utils/getState.d.ts +15 -0
- package/dist/src/core/shared/utils/getState.d.ts.map +1 -0
- package/dist/src/dialog/DialogActionElement.d.ts.map +1 -1
- package/dist/src/dialog/DialogElement.d.ts +3 -2
- package/dist/src/dialog/DialogElement.d.ts.map +1 -1
- package/dist/src/dialog/DialogTriggerElement.d.ts.map +1 -1
- package/dist/src/drawer-container/DrawerContainerElement.d.ts +3 -1
- package/dist/src/drawer-container/DrawerContainerElement.d.ts.map +1 -1
- package/dist/src/drawer-container/DrawerToggleElement.d.ts.map +1 -1
- package/dist/src/drawer-container/styles/DrawerContainerStyle.d.ts.map +1 -1
- package/dist/src/expansion-panel/ExpansionHeaderElement.d.ts.map +1 -1
- package/dist/src/expansion-panel/ExpansionPanelElement.d.ts.map +1 -1
- package/dist/src/fab/FabElement.d.ts.map +1 -1
- package/dist/src/fab-menu/FabMenuElement.d.ts +1 -1
- package/dist/src/fab-menu/FabMenuElement.d.ts.map +1 -1
- package/dist/src/fab-menu/FabMenuItemElement.d.ts.map +1 -1
- package/dist/src/fab-menu/FabMenuTriggerElement.d.ts.map +1 -1
- package/dist/src/form-field/FormFieldElement.d.ts.map +1 -1
- package/dist/src/icon-button/IconButtonElement.d.ts +2 -1
- package/dist/src/icon-button/IconButtonElement.d.ts.map +1 -1
- package/dist/src/icon-button/styles/IconButtonSizeStyle.d.ts.map +1 -1
- package/dist/src/icon-button/styles/IconButtonVariantStyle.d.ts.map +1 -1
- package/dist/src/list/ActionListElement.d.ts.map +1 -1
- package/dist/src/list/ListElement.d.ts +1 -1
- package/dist/src/list/ListElement.d.ts.map +1 -1
- package/dist/src/list/ListItemButtonElement.d.ts.map +1 -1
- package/dist/src/list/ListItemElement.d.ts +1 -1
- package/dist/src/list/ListItemElement.d.ts.map +1 -1
- package/dist/src/list/ListOptionElement.d.ts.map +1 -1
- package/dist/src/list/SelectionListElement.d.ts.map +1 -1
- package/dist/src/menu/MenuElement.d.ts +1 -1
- package/dist/src/menu/MenuElement.d.ts.map +1 -1
- package/dist/src/menu/MenuItemCheckboxElement.d.ts.map +1 -1
- package/dist/src/menu/MenuItemGroupElement.d.ts.map +1 -1
- package/dist/src/menu/MenuItemRadioElement.d.ts.map +1 -1
- package/dist/src/menu/MenuTriggerElement.d.ts.map +1 -1
- package/dist/src/nav-bar/NavBarElement.d.ts +1 -1
- package/dist/src/nav-bar/NavBarElement.d.ts.map +1 -1
- package/dist/src/nav-bar/NavItemElement.d.ts.map +1 -1
- package/dist/src/nav-menu/NavMenuElement.d.ts.map +1 -1
- package/dist/src/nav-menu/NavMenuItemElement.d.ts.map +1 -1
- package/dist/src/nav-menu/NavMenuItemGroupElement.d.ts +1 -1
- package/dist/src/nav-menu/NavMenuItemGroupElement.d.ts.map +1 -1
- package/dist/src/nav-rail/NavRailElement.d.ts.map +1 -1
- package/dist/src/nav-rail/NavRailToggleElement.d.ts.map +1 -1
- package/dist/src/option/OptGroupElement.d.ts.map +1 -1
- package/dist/src/option/OptionElement.d.ts +1 -2
- package/dist/src/option/OptionElement.d.ts.map +1 -1
- package/dist/src/option/OptionPanelElement.d.ts +12 -13
- package/dist/src/option/OptionPanelElement.d.ts.map +1 -1
- package/dist/src/paginator/PaginatorElement.d.ts +5 -1
- package/dist/src/paginator/PaginatorElement.d.ts.map +1 -1
- package/dist/src/progress-indicator/CircularProgressIndicatorElement.d.ts.map +1 -1
- package/dist/src/radio-group/RadioElement.d.ts.map +1 -1
- package/dist/src/radio-group/RadioGroupElement.d.ts.map +1 -1
- package/dist/src/segmented-button/ButtonSegmentElement.d.ts.map +1 -1
- package/dist/src/segmented-button/SegmentedButtonElement.d.ts.map +1 -1
- package/dist/src/select/SelectElement.d.ts.map +1 -1
- package/dist/src/shape/ShapeElement.d.ts.map +1 -1
- package/dist/src/slide-group/SlideGroupElement.d.ts +1 -0
- package/dist/src/slide-group/SlideGroupElement.d.ts.map +1 -1
- package/dist/src/slider/SliderElement.d.ts +3 -1
- package/dist/src/slider/SliderElement.d.ts.map +1 -1
- package/dist/src/slider/SliderThumbElement.d.ts.map +1 -1
- package/dist/src/snackbar/SnackbarElement.d.ts +2 -0
- package/dist/src/snackbar/SnackbarElement.d.ts.map +1 -1
- package/dist/src/split-button/SplitButtonElement.d.ts +1 -0
- package/dist/src/split-button/SplitButtonElement.d.ts.map +1 -1
- package/dist/src/stepper/StepElement.d.ts.map +1 -1
- package/dist/src/stepper/StepperElement.d.ts.map +1 -1
- package/dist/src/switch/SwitchElement.d.ts.map +1 -1
- package/dist/src/tabs/TabElement.d.ts.map +1 -1
- package/dist/src/tabs/TabPanelElement.d.ts.map +1 -1
- package/dist/src/tabs/TabsElement.d.ts +1 -0
- package/dist/src/tabs/TabsElement.d.ts.map +1 -1
- package/dist/src/toc/TocElement.d.ts.map +1 -1
- package/dist/src/toc/TocItemElement.d.ts.map +1 -1
- package/dist/src/tooltip/RichTooltipActionElement.d.ts.map +1 -1
- package/dist/src/tooltip/TooltipElementBase.d.ts +1 -1
- package/dist/src/tooltip/TooltipElementBase.d.ts.map +1 -1
- package/dist/stepper.js +9 -9
- package/dist/stepper.js.map +1 -1
- package/dist/stepper.min.js +1 -1
- package/dist/stepper.min.js.map +1 -1
- package/dist/switch.js +2 -2
- package/dist/switch.js.map +1 -1
- package/dist/switch.min.js +1 -1
- package/dist/switch.min.js.map +1 -1
- package/dist/tabs.js +8 -7
- package/dist/tabs.js.map +1 -1
- package/dist/tabs.min.js +1 -1
- package/dist/tabs.min.js.map +1 -1
- package/dist/textarea-autosize.js +2 -2
- package/dist/textarea-autosize.js.map +1 -1
- package/dist/textarea-autosize.min.js +2 -2
- package/dist/textarea-autosize.min.js.map +1 -1
- package/dist/theme.js +2 -2
- package/dist/theme.js.map +1 -1
- package/dist/theme.min.js +2 -2
- package/dist/theme.min.js.map +1 -1
- package/dist/toc.js +9 -9
- package/dist/toc.js.map +1 -1
- package/dist/toc.min.js +1 -1
- package/dist/toc.min.js.map +1 -1
- package/dist/toolbar.js +2 -2
- package/dist/toolbar.js.map +1 -1
- package/dist/toolbar.min.js +1 -1
- package/dist/toolbar.min.js.map +1 -1
- package/dist/tooltip.js +5 -5
- package/dist/tooltip.js.map +1 -1
- package/dist/tooltip.min.js +1 -1
- package/dist/tooltip.min.js.map +1 -1
- package/package.json +1 -1
package/dist/core-a11y.min.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2025 matraic
|
|
4
4
|
* See LICENSE file in the project root for full license text.
|
|
5
5
|
*/
|
|
6
|
-
import{property as t,query as e
|
|
6
|
+
import{property as t,query as e}from"lit/decorators.js";import{isServer as i,html as s,css as n,LitElement as a}from"lit";function r(t,e,i,s){var n,a=arguments.length,r=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(r=(a<3?n(r):a>3?n(e,i,r):n(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r}function o(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)}function h(t,e,i,s,n){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?n.call(t,i):n?n.value=i:e.set(t,i),i}"function"==typeof SuppressedError&&SuppressedError;const c=["alt","shift","ctrl","meta"];var l,d,u,f,m,p,v,g,w,b,y,A,k,I;function E(t){return t.which||t.charCode||t.keyCode}function S(t,...e){return e.length?e.some(e=>t[`${e}Key`]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function D(t,...e){return c.every(i=>!S(t,i)||e.includes(i))}function N(t,...e){return"object"==typeof t&&null!==t&&e.every(e=>e in t)}!function(t){t[t.Backspace=8]="Backspace",t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Shift=16]="Shift",t[t.Ctrl=17]="Ctrl",t[t.Alt=18]="Alt",t[t.PauseBreak=19]="PauseBreak",t[t.CapsLock=20]="CapsLock",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.LeftArrow=37]="LeftArrow",t[t.UpArrow=38]="UpArrow",t[t.RightArrow=39]="RightArrow",t[t.DownArrow=40]="DownArrow",t[t.Insert=45]="Insert",t[t.Delete=46]="Delete",t[t.Zero=48]="Zero",t[t.ClosedParen=48]="ClosedParen",t[t.One=49]="One",t[t.ExclamationMark=49]="ExclamationMark",t[t.Two=50]="Two",t[t.AtSign=50]="AtSign",t[t.Three=51]="Three",t[t.PoundSign=51]="PoundSign",t[t.Hash=51]="Hash",t[t.Four=52]="Four",t[t.DollarSign=52]="DollarSign",t[t.Five=53]="Five",t[t.PercentSign=53]="PercentSign",t[t.Six=54]="Six",t[t.Caret=54]="Caret",t[t.Hat=54]="Hat",t[t.Seven=55]="Seven",t[t.Ampersand=55]="Ampersand",t[t.Eight=56]="Eight",t[t.Star=56]="Star",t[t.Asterik=56]="Asterik",t[t.Nine=57]="Nine",t[t.OpenParen=57]="OpenParen",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.LeftWindowKey=91]="LeftWindowKey",t[t.RightWindowKey=92]="RightWindowKey",t[t.SelectKey=93]="SelectKey",t[t.Numpad0=96]="Numpad0",t[t.Numpad1=97]="Numpad1",t[t.Numpad2=98]="Numpad2",t[t.Numpad3=99]="Numpad3",t[t.Numpad4=100]="Numpad4",t[t.Numpad5=101]="Numpad5",t[t.Numpad6=102]="Numpad6",t[t.Numpad7=103]="Numpad7",t[t.Numpad8=104]="Numpad8",t[t.Numpad9=105]="Numpad9",t[t.Multiply=106]="Multiply",t[t.Add=107]="Add",t[t.Subtract=109]="Subtract",t[t.DecimalPoint=110]="DecimalPoint",t[t.Divide=111]="Divide",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.NumLock=144]="NumLock",t[t.ScrollLock=145]="ScrollLock",t[t.SemiColon=186]="SemiColon",t[t.Equals=187]="Equals",t[t.Comma=188]="Comma",t[t.Dash=189]="Dash",t[t.Period=190]="Period",t[t.UnderScore=189]="UnderScore",t[t.PlusSign=187]="PlusSign",t[t.ForwardSlash=191]="ForwardSlash",t[t.Tilde=192]="Tilde",t[t.GraveAccent=192]="GraveAccent",t[t.OpenBracket=219]="OpenBracket",t[t.ClosedBracket=221]="ClosedBracket",t[t.Quote=222]="Quote"}(l||(l={}));class P{constructor(){d.set(this,new Array),u.set(this,null),f.set(this,void 0)}get items(){return o(this,d,"f")}get activeItem(){return o(this,u,"f")}setItems(t){const e=this.items.filter(e=>!t.includes(e)),i=t.filter(t=>!this.items.includes(t));return h(this,d,t,"f"),this.activeItem&&!this.items.includes(this.activeItem)&&this.updateActiveItem(null),{added:i,removed:e}}setActiveItem(t){this.activeItem!==t&&(this.updateActiveItem(t),o(this,f,"f")?.call(this))}updateActiveItem(t){h(this,u,t??null,"f")}onActiveItemChange(t){return h(this,f,t,"f"),this}}d=new WeakMap,u=new WeakMap,f=new WeakMap;const M=Symbol("typeaheadLabel");function T(t){return N(t,M)}class x{constructor(t){m.add(this),p.set(this,void 0),v.set(this,-1),g.set(this,void 0),w.set(this,void 0),b.set(this,new Array),y.set(this,-1),A.set(this,[]),h(this,p,t.debounceInterval??200,"f"),h(this,g,t.callback,"f"),h(this,w,t.skipPredicate,"f")}get isTyping(){return o(this,b,"f").length>0}setItems(t){h(this,A,t,"f")}setSelectedIndex(t){h(this,y,t,"f")}reset(){o(this,b,"f").length=0}onKeyDown(t){if(t.key&&1===t.key.length)o(this,m,"m",k).call(this,t.key);else{const e=E(t);(e>=l.A&&e<=l.Z||e>=l.Zero&&e<=l.Nine)&&o(this,m,"m",k).call(this,String.fromCharCode(e))}}}
|
|
7
7
|
/**
|
|
8
8
|
* Adapted from Angular Material CDK KeyManager
|
|
9
9
|
* Source: https://github.com/angular/components/blob/main/src/cdk/a11y/key-manager/list-key-manager.ts
|
|
@@ -12,7 +12,7 @@ import{property as t,query as e,customElement as i}from"lit/decorators.js";impor
|
|
|
12
12
|
* Copyright (c) 2025 Google LLC
|
|
13
13
|
* See LICENSE file in the project root for full license text.
|
|
14
14
|
*/
|
|
15
|
-
var C,W,L,R,O,U,K,H,B,j,$,Z,_,G,Q
|
|
15
|
+
var F,C,W,L,R,O,U,K,H,B,j,$,Z,_,G,Q;p=new WeakMap,v=new WeakMap,g=new WeakMap,w=new WeakMap,b=new WeakMap,y=new WeakMap,A=new WeakMap,m=new WeakSet,k=function(t){o(this,b,"f").push(t.toLocaleUpperCase()),clearTimeout(o(this,v,"f")),h(this,v,setTimeout(()=>o(this,m,"m",I).call(this),o(this,p,"f")),"f")},I=function(){const t=o(this,b,"f").join("");for(let e=1;e<o(this,A,"f").length+1;e++){const i=(o(this,y,"f")+e)%o(this,A,"f").length,s=o(this,A,"f")[i],n=s[M]?.().toLocaleUpperCase().trim();if(!o(this,w,"f")?.call(this,s)&&0===n?.indexOf(t)){o(this,g,"f").call(this,s);break}}this.reset()};class q extends P{constructor(){super(...arguments),F.add(this),C.set(this,void 0),this.wrap=!1,this.homeAndEnd=!1,this.pageUpAndDown=!1,this.pageDelta=10,this.vertical=!1,this.allowedModifiers=[],this.skipPredicate=t=>N(t,"disabled")&&t.disabled,this.directionality="ltr"}setItems(t){return o(this,C,"f")?.setItems(t),super.setItems(t)}updateActiveItem(t){super.updateActiveItem(t),o(this,C,"f")&&o(this,C,"f").setSelectedIndex(t?this.items.indexOf(t):-1)}withHomeAndEnd(t=!0){return this.homeAndEnd=t,this}withPageUpAndDown(t=!0,e=10){return this.pageUpAndDown=t,this.pageDelta=e,this}withWrap(t=!0){return this.wrap=t,this}withVerticalOrientation(t=!0){return this.vertical=t,this}withAllowedModifiers(...t){return this.allowedModifiers=t,this}withTypeahead(t=!0){return h(this,C,t?new x({callback:t=>this.setActiveItem(t)}):void 0,"f"),this}withSkipPredicate(t){return this.skipPredicate=t,this}withDirectionality(t){return this.directionality=t,this}onKeyDown(t){if(t.defaultPrevented)return;const e=D(t,...this.allowedModifiers);switch(t.key){case"Left":case"ArrowLeft":if(e&&!this.vertical){t.preventDefault();const e="ltr"===this.directionality?o(this,F,"m",O).call(this):o(this,F,"m",R).call(this);e&&this.setActiveItem(e)}break;case"Up":case"ArrowUp":if(e){t.preventDefault();const e="ltr"===this.directionality?o(this,F,"m",O).call(this):o(this,F,"m",R).call(this);e&&this.setActiveItem(e)}break;case"Right":case"ArrowRight":if(e&&!this.vertical){t.preventDefault();const e="ltr"===this.directionality?o(this,F,"m",R).call(this):o(this,F,"m",O).call(this);e&&this.setActiveItem(e)}break;case"Down":case"ArrowDown":if(e){t.preventDefault();const e="ltr"===this.directionality?o(this,F,"m",R).call(this):o(this,F,"m",O).call(this);e&&this.setActiveItem(e)}break;case"Home":if(e&&this.homeAndEnd){t.preventDefault();const e=o(this,F,"m",W).call(this);e&&this.setActiveItem(e)}break;case"End":if(e&&this.homeAndEnd){t.preventDefault();const e=o(this,F,"m",L).call(this);e&&this.setActiveItem(e)}break;case"PageUp":if(e&&this.pageUpAndDown){t.preventDefault();const e=("ltr"===this.directionality?o(this,F,"m",U):o(this,F,"m",K))(this.activeItem?Math.max(0,this.items.indexOf(this.activeItem)-this.pageDelta):0);e&&this.setActiveItem(e)}break;case"PageDown":if(e&&this.pageUpAndDown){t.preventDefault();const e=("ltr"===this.directionality?o(this,F,"m",K):o(this,F,"m",U))(this.activeItem?Math.min(this.items.length-1,this.items.indexOf(this.activeItem)+this.pageDelta):this.items.length-1);e&&this.setActiveItem(e)}break;default:(e||S(t,"shift"))&&o(this,C,"f")?.onKeyDown(t)}}}C=new WeakMap,F=new WeakSet,W=function(){for(let t=0;t<this.items.length&&this.items[t]!==this.activeItem;t++){const e=this.items[t];if(!this.skipPredicate(e))return e}return null},L=function(){for(let t=this.items.length-1;t>=0&&this.items[t]!==this.activeItem;t--){const e=this.items[t];if(!this.skipPredicate(e))return e}return null},R=function(){for(let t=0;t<this.items.length;t++)if(this.items[t]===this.activeItem){for(let e=t+1;e<this.items.length;e++){const t=this.items[e];if(!this.skipPredicate(t))return t}break}return this.wrap?o(this,F,"m",W).call(this):null},O=function(){for(let t=0;t<this.items.length;t++)if(this.items[t]===this.activeItem){for(let e=t-1;e>=0;e--){const t=this.items[e];if(!this.skipPredicate(t))return t}break}return this.wrap?o(this,F,"m",L).call(this):null},U=function(t){for(let e=t;e>=0;e--){const t=this.items[e];if(!this.skipPredicate(t))return t}return null},K=function(t){for(let e=t;e<this.items.length;e++){const t=this.items[e];if(!this.skipPredicate(t))return t}return null};class V extends q{constructor(){super(...arguments),H.set(this,void 0)}setActiveItem(t){super.setActiveItem(t),t?.focus(o(this,H,"f"))}withOptions(t){return h(this,H,t,"f"),this}}function z(t){return N(t,"checked")}function J(t){return z(t)&&t.checked||N(t,"selected")&&t.selected}function X(t,e){z(t)?t.checked=e:t.selected=e}H=new WeakMap;class Y extends V{constructor(){super(...arguments),B.set(this,!1)}updateActiveItem(t){if(super.updateActiveItem(t),!o(this,B,"f")){t?.setAttribute("tabindex","0");for(const e of this.items)e!==t&&e.hasAttribute("tabindex")&&e.setAttribute("tabindex","-1")}}setItems(t){const e=super.setItems(t);if(!o(this,B,"f"))for(const t of e.added)t===this.activeItem||this.skipPredicate(t)||t.setAttribute("tabindex","-1");return e}disableRovingTabIndex(t=!0){if(t!==o(this,B,"f")){h(this,B,t,"f");for(const t of this.items)this.skipPredicate(t)||t?.setAttribute("tabindex",o(this,B,"f")||t===this.activeItem?"0":"-1")}return this}}B=new WeakMap;class tt extends Y{constructor(){super(...arguments),j.set(this,!1)}get disabled(){return o(this,j,"f")}set disabled(t){h(this,j,t,"f"),this.items.forEach(e=>e.disabled=t)}setItems(t){this.disabled&&t.forEach(t=>t.disabled=!0);const{added:e,removed:i}=super.setItems(t);if((e.length>0||i.length>0)&&(this.activeItem||this.updateActiveItem(e.find(t=>!this.skipPredicate(t))??null),this.activeItem&&(this.activeItem.disabled||!J(this.activeItem)))){const t=e.find(t=>!this.skipPredicate(t)&&J(t));t&&this.updateActiveItem(t)}return{added:e,removed:i}}}j=new WeakMap;const et=Symbol("selectionManager");class it extends tt{constructor(){super(...arguments),$.add(this),Z.set(this,void 0),_.set(this,new Array),G.set(this,!1)}get multi(){return o(this,G,"f")}set multi(t){h(this,G,t,"f"),o(this,$,"m",Q).call(this,!0)}get selectedItems(){return o(this,_,"f")}notifySelectionChange(t){this.items.includes(t)&&(J(t)?this.select(t):this.deselect(t))}deselect(t){if(this.items.includes(t)){J(t)&&X(t,!1);const e=o(this,_,"f").indexOf(t);e>=0&&(o(this,_,"f").splice(e,1),o(this,Z,"f")?.call(this))}}select(t,e=!0){if(!t||this.items.includes(t)){if(!this.multi){for(const e of o(this,_,"f"))e!==t&&X(e,!1);o(this,_,"f").length=0}t&&(o(this,_,"f").push(t),J(t)||X(t,!0)),e&&this.updateActiveItem(t),o(this,Z,"f")?.call(this)}}setItems(t){const{added:e,removed:i}=super.setItems(t);return h(this,_,o(this,_,"f").filter(t=>!i.includes(t)),"f"),o(this,_,"f").push(...e.filter(t=>J(t))),o(this,$,"m",Q).call(this),o(this,Z,"f")?.call(this),{added:e,removed:i}}onSelectedItemsChange(t){return h(this,Z,t,"f"),this}}
|
|
16
16
|
/**
|
|
17
17
|
* Adapted from Angular Material CDK AriaDescriber
|
|
18
18
|
* Source: https://github.com/angular/components/blob/main/src/cdk/a11y/aria-describer/aria-reference.ts
|
|
@@ -21,7 +21,7 @@ var C,W,L,R,O,U,K,H,B,j,$,Z,_,G,Q,q;v=new WeakMap,g=new WeakMap,w=new WeakMap,b=
|
|
|
21
21
|
* Copyright (c) 2025 Google LLC
|
|
22
22
|
* See LICENSE file in the project root for full license text.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
24
|
+
function st(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}function nt(t,e,i){i=i.trim();const s=st(t,e);s.some(t=>t.trim()===i)||(s.push(i),t.setAttribute(e,s.join(" ")))}function at(t,e,i){i=i.trim();const s=st(t,e).filter(t=>t!==i);s.length>0?t.setAttribute(e,s.join(" ")):t.removeAttribute(e)}function rt(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"}
|
|
25
25
|
/**
|
|
26
26
|
* Adapted from Angular Material CDK ARIA Describer
|
|
27
27
|
* Source: https://github.com/angular/components/blob/main/src/cdk/a11y/aria-describer/aria-describer.ts
|
|
@@ -29,14 +29,5 @@ function nt(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}function rt(t,e,i){
|
|
|
29
29
|
* @license MIT
|
|
30
30
|
* Copyright (c) 2025 Google LLC
|
|
31
31
|
* See LICENSE file in the project root for full license text.
|
|
32
|
-
*/var ht,ct,lt,dt
|
|
33
|
-
/**
|
|
34
|
-
* Adapted from Angular Material CDK Live Announcer
|
|
35
|
-
* Source: https://github.com/angular/components/blob/main/src/cdk/a11y/live-announcer/live-announcer.ts
|
|
36
|
-
*
|
|
37
|
-
* @license MIT
|
|
38
|
-
* Copyright (c) 2025 Google LLC
|
|
39
|
-
* See LICENSE file in the project root for full license text.
|
|
40
|
-
*/
|
|
41
|
-
var Et,St,Dt,Nt,Pt,Mt,Tt;pt=new WeakSet,vt=function(t){function e(t,e){return t===e||t instanceof HTMLElement&&null!==t.shadowRoot&&t.shadowRoot.contains(e)}const[i,s]=h(this,pt,"m",gt).call(this),n=t?.target===this._firstTrap,r=e(t.relatedTarget,i),a=e(t.relatedTarget,s),o=!r&&!a;!n&&a||n&&o?i?.focus():(n&&r||!n&&o)&&s?.focus()},gt=function(){let t=null,e=null;return h(this,pt,"m",wt).call(this,this,[],(i,s)=>{kt.isFocusable(i,s)&&i instanceof HTMLElement&&i.tabIndex>=0&&(t=t??i,e=i)}),[t,e]},wt=function t(e,i,s){i=[...i,e];for(const n of e.childNodes){if(n.nodeType!==Node.ELEMENT_NODE)continue;const e=n;s(e,i),e.shadowRoot?h(this,pt,"m",bt).call(this,e,i,s):e instanceof HTMLSlotElement?h(this,pt,"m",At).call(this,e,i,s):e.hasChildNodes()&&h(this,pt,"m",t).call(this,e,i,s)}},bt=function(t,e,i){for(const s of t.shadowRoot?.childNodes??[]){if(s.nodeType!==Node.ELEMENT_NODE)continue;const t=s;i(t,e),t.hasChildNodes()&&h(this,pt,"m",wt).call(this,t,e,i)}},At=function(t,e,i){for(const s of t.assignedElements())i(s,e),s.hasChildNodes()&&h(this,pt,"m",wt).call(this,s,e,i)},It.styles=r`:host { display: contents; } .trap { outline: none; }`,o([e(".trap")],It.prototype,"_firstTrap",void 0),It=o([i("m3e-focus-trap")],It);class xt{static announce(t,...e){if(s)return Promise.resolve();let i,n;c(this,Et,h(this,Et,"f",Dt)??h(this,Et,"m",Tt).call(this),"f",Dt),1===e.length&&"number"==typeof e[0]?n=e[0]:[i,n]=e,this.clear(),clearTimeout(h(this,Et,"f",Nt)),h(this,Et,"f",Dt).setAttribute("aria-live",i??"polite");for(const t of document.querySelectorAll("m3e-dialog"))rt(t,"aria-owns",h(this,Et,"f",Dt).id);return c(this,Et,h(this,Et,"f",Pt)??new Promise(t=>c(this,Et,t,"f",Mt)),"f",Pt),clearTimeout(h(this,Et,"f",Nt)),c(this,Et,setTimeout(()=>{h(this,Et,"f",Dt)&&(h(this,Et,"f",Dt).textContent=t,void 0!==n&&c(this,Et,setTimeout(()=>this.clear(),n),"f",Nt),h(this,Et,"f",Mt)?.call(this),c(this,Et,c(this,Et,void 0,"f",Mt),"f",Pt))},100),"f",Nt),h(this,Et,"f",Pt)}static clear(){h(this,Et,"f",Dt)&&(h(this,Et,"f",Dt).textContent="")}}Et=xt,Tt=function(){var t,e;const i=document.getElementsByClassName("m3e-live-announcer");for(let t=0;t<i.length;t++)i[t].remove();const s=document.createElement("div");return s.classList.add("m3e-live-announcer"),s.setAttribute("aria-atomic","true"),s.setAttribute("aria-live","polite"),s.id=`m3e-live-announcer-${c(this,Et,(e=h(this,Et,"f",St),t=e++,e),"f",St),t}`,ot(s.style),document.body.append(s),s},St={value:0},Dt={value:void 0},Nt={value:void 0},Pt={value:void 0},Mt={value:void 0},globalThis.M3eLiveAnnouncer=xt;export{J as FocusKeyManager,d as KeyCode,V as ListKeyManager,M as ListManager,yt as M3eAriaDescriber,It as M3eFocusTrapElement,kt as M3eInteractivityChecker,xt as M3eLiveAnnouncer,l as ModifierKeys,et as RadioKeyManager,tt as RovingTabIndexManager,st as SelectionManager,F as Typeahead,rt as addAriaReferencedId,nt as getAriaReferenceIds,S as getKeyCode,D as hasModifierKey,N as isModifierAllowed,x as isTypeaheadItem,at as removeAriaReferencedId,it as selectionManager,T as typeaheadLabel};
|
|
32
|
+
*/var ot,ht,ct,lt,dt;Z=new WeakMap,_=new WeakMap,G=new WeakMap,$=new WeakSet,Q=function(t=!1){if(!this.multi&&o(this,_,"f").length>1){for(let t=1;t<o(this,_,"f").length;t++)X(o(this,_,"f")[t],!1);o(this,_,"f").length=1,t&&o(this,Z,"f")?.call(this)}};class ut{static describe(t,e,s="tooltip"){if(i)return;const n=t.getRootNode();if(!(n instanceof ShadowRoot||n instanceof Document))return;let a=o(this,ot,"f",ct).get(n);a||(a={containerElement:o(this,ot,"m",lt).call(this),messageRegistry:new Map},(n instanceof Document?n.body:n).appendChild(a.containerElement),o(this,ot,"f",ct).set(n,a));const r=`${s}:${e}`;let h=a.messageRegistry.get(r);h||(h={messageElement:o(this,ot,"m",dt).call(this,e,s),count:0},a.containerElement.appendChild(h.messageElement),a.messageRegistry.set(r,h)),h.count++,nt(t,"aria-describedby",h.messageElement.id)}static removeDescription(t,e,s="tooltip"){if(i)return;const n=t.getRootNode(),a=o(this,ot,"f",ct).get(n);if(!a)return;const r=`${s}:${e}`,h=a.messageRegistry.get(r);h&&(h.count--,at(t,"aria-describedby",h.messageElement.id),h.count<=0&&(h.messageElement.remove(),a.messageRegistry.delete(r)),0==a.messageRegistry.size&&(a.containerElement?.remove(),o(this,ot,"f",ct).delete(n)))}}ot=ut,lt=function(){const t=document.createElement("div");return t.classList.add("m3e-describedby-message-container"),rt(t.style),t},dt=function(t,e){var i,s;const n=document.createElement("span");return n.id=`m3e-describedby-message-${h(this,ot,(s=o(this,ot,"f",ht),i=s++,s),"f",ht),i}`,n.role=e,n.ariaAtomic="true",n.innerText=t.trim(),n},ht={value:0},ct={value:new Map},globalThis.M3eAriaDescriber=ut;var ft,mt,pt,vt,gt,wt,bt,yt;class At{static isFocusable(t,e){return t.matches(":is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true]):not(:disabled,[disabled])")?!o(this,ft,"m",mt).call(this,e):!(!t.localName.includes("-")||!t.matches(":not(:disabled,[disabled])")||"true"===t.getAttribute("aria-disabled"))&&(!!t.shadowRoot?.delegatesFocus&&!o(this,ft,"m",mt).call(this,e))}static findInteractiveElements(t){const e=new Array,i=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(let t=i.nextNode();t;t=i.nextNode()){const t=i.currentNode;this.isFocusable(t)&&e.push(t)}return e}}ft=At,mt=function(t){return t?.some(t=>t.matches(":is([aria-hidden='true'],:disabled,[disabled])"))??!1},globalThis.M3eInteractivityChecker=At;let kt=class extends(function(e,i=!0){class s extends e{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([t({type:Boolean,reflect:i})],s.prototype,"disabled",void 0),s}(a)){constructor(){super(...arguments),pt.add(this)}render(){const t=s`<div class="trap" .inert="${this.disabled}" tabindex="0" aria-hidden="true" @focus="${o(this,pt,"m",vt)}"></div>`;return s`${t}<slot></slot>${t}`}};var It,Et,St,Dt,Nt,Pt,Mt,Tt;pt=new WeakSet,vt=function(t){function e(t,e){return t===e||t instanceof HTMLElement&&null!==t.shadowRoot&&t.shadowRoot.contains(e)}const[i,s]=o(this,pt,"m",gt).call(this),n=t?.target===this._firstTrap,a=e(t.relatedTarget,i),r=e(t.relatedTarget,s),h=!a&&!r;!n&&r||n&&h?i?.focus():(n&&a||!n&&h)&&s?.focus()},gt=function(){let t=null,e=null;return o(this,pt,"m",wt).call(this,this,[],(i,s)=>{At.isFocusable(i,s)&&i instanceof HTMLElement&&i.tabIndex>=0&&(t=t??i,e=i)}),[t,e]},wt=function t(e,i,s){i=[...i,e];for(const n of e.childNodes){if(n.nodeType!==Node.ELEMENT_NODE)continue;const e=n;s(e,i),e.shadowRoot?o(this,pt,"m",bt).call(this,e,i,s):e instanceof HTMLSlotElement?o(this,pt,"m",yt).call(this,e,i,s):e.hasChildNodes()&&o(this,pt,"m",t).call(this,e,i,s)}},bt=function(t,e,i){for(const s of t.shadowRoot?.childNodes??[]){if(s.nodeType!==Node.ELEMENT_NODE)continue;const t=s;i(t,e),t.hasChildNodes()&&o(this,pt,"m",wt).call(this,t,e,i)}},yt=function(t,e,i){for(const s of t.assignedElements())i(s,e),s.hasChildNodes()&&o(this,pt,"m",wt).call(this,s,e,i)},kt.styles=n`:host { display: contents; } .trap { outline: none; }`,r([e(".trap")],kt.prototype,"_firstTrap",void 0),kt=r([(It="m3e-focus-trap",(t,e)=>{const i=()=>{"undefined"==typeof window||customElements.get(It)||customElements.define(It,t)};e?e.addInitializer(i):i()})],kt);class xt{static announce(t,...e){if(i)return Promise.resolve();let s,n;h(this,Et,o(this,Et,"f",Dt)??o(this,Et,"m",Tt).call(this),"f",Dt),1===e.length&&"number"==typeof e[0]?n=e[0]:[s,n]=e,this.clear(),clearTimeout(o(this,Et,"f",Nt)),o(this,Et,"f",Dt).setAttribute("aria-live",s??"polite");for(const t of document.querySelectorAll("m3e-dialog"))nt(t,"aria-owns",o(this,Et,"f",Dt).id);return h(this,Et,o(this,Et,"f",Pt)??new Promise(t=>h(this,Et,t,"f",Mt)),"f",Pt),clearTimeout(o(this,Et,"f",Nt)),h(this,Et,setTimeout(()=>{o(this,Et,"f",Dt)&&(o(this,Et,"f",Dt).textContent=t,void 0!==n&&h(this,Et,setTimeout(()=>this.clear(),n),"f",Nt),o(this,Et,"f",Mt)?.call(this),h(this,Et,h(this,Et,void 0,"f",Mt),"f",Pt))},100),"f",Nt),o(this,Et,"f",Pt)}static clear(){o(this,Et,"f",Dt)&&(o(this,Et,"f",Dt).textContent="")}}Et=xt,Tt=function(){var t,e;const i=document.getElementsByClassName("m3e-live-announcer");for(let t=0;t<i.length;t++)i[t].remove();const s=document.createElement("div");return s.classList.add("m3e-live-announcer"),s.setAttribute("aria-atomic","true"),s.setAttribute("aria-live","polite"),s.id=`m3e-live-announcer-${h(this,Et,(e=o(this,Et,"f",St),t=e++,e),"f",St),t}`,rt(s.style),document.body.append(s),s},St={value:0},Dt={value:void 0},Nt={value:void 0},Pt={value:void 0},Mt={value:void 0},globalThis.M3eLiveAnnouncer=xt;export{V as FocusKeyManager,l as KeyCode,q as ListKeyManager,P as ListManager,ut as M3eAriaDescriber,kt as M3eFocusTrapElement,At as M3eInteractivityChecker,xt as M3eLiveAnnouncer,c as ModifierKeys,tt as RadioKeyManager,Y as RovingTabIndexManager,it as SelectionManager,x as Typeahead,nt as addAriaReferencedId,st as getAriaReferenceIds,E as getKeyCode,S as hasModifierKey,D as isModifierAllowed,T as isTypeaheadItem,at as removeAriaReferencedId,et as selectionManager,M as typeaheadLabel};
|
|
42
33
|
//# sourceMappingURL=core-a11y.min.js.map
|