@lion/ui 0.16.1 → 0.17.0-menu-system.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.
- package/collapsible.js +1 -0
- package/components/button/src/LionButton.js +5 -0
- package/components/button/test-suites/LionButton.suite.js +1 -0
- package/components/calendar/src/LionCalendar.js +2 -0
- package/components/collapsible/src/DisclosureMixin.js +313 -0
- package/components/collapsible/types/DisclosureMixinTypes.ts +48 -0
- package/components/combobox/src/utils/makeMatchingTextBold.js +3 -1
- package/components/combobox/test/lion-combobox.test.js +105 -0
- package/components/form-core/src/form-group/FormGroupMixin.js +7 -0
- package/components/form-core/src/registration/FormRegistrarMixin.js +11 -0
- package/components/form-core/test/FormControlMixin.test.js +1 -0
- package/components/form-core/test/validate/Validator.test.js +2 -0
- package/components/form-core/test-suites/ValidateMixin.suite.js +2 -0
- package/components/form-core/test-suites/ValidateMixinFeedbackPart.suite.js +1 -0
- package/components/input-datepicker/src/LionInputDatepicker.js +6 -2
- package/components/input-datepicker/src/localizeNamespaceLoader.js +1 -0
- package/components/input-datepicker/test/lion-input-datepicker.test.js +17 -2
- package/components/input-datepicker/translations/bg.js +1 -1
- package/components/input-datepicker/translations/cs.js +1 -1
- package/components/input-datepicker/translations/de.js +1 -1
- package/components/input-datepicker/translations/en.js +1 -1
- package/components/input-datepicker/translations/es.js +1 -1
- package/components/input-datepicker/translations/fr.js +1 -1
- package/components/input-datepicker/translations/hu.js +1 -1
- package/components/input-datepicker/translations/it.js +1 -1
- package/components/input-datepicker/translations/nl.js +1 -1
- package/components/input-datepicker/translations/pl.js +1 -1
- package/components/input-datepicker/translations/ro.js +1 -1
- package/components/input-datepicker/translations/ru.js +1 -1
- package/components/input-datepicker/translations/sk.js +1 -1
- package/components/input-datepicker/translations/tr.js +1 -1
- package/components/input-datepicker/translations/uk.js +1 -1
- package/components/input-datepicker/translations/zh.js +1 -1
- package/components/input-stepper/src/LionInputStepper.js +15 -7
- package/components/input-stepper/test-suites/lion-input-stepper.suite.js +28 -4
- package/components/localize/test/date/formatDate.test.js +1 -0
- package/components/menu/CHANGELOG.md +37 -0
- package/components/menu/README.md +335 -0
- package/components/menu/index.js +2 -0
- package/components/menu/lion-menu-overlay.js +3 -0
- package/components/menu/lion-menu.js +3 -0
- package/components/menu/lion-spinbutton.js +3 -0
- package/components/menu/lion-toolbar.js +3 -0
- package/components/menu/lion-tree.js +3 -0
- package/components/menu/package.json +46 -0
- package/components/menu/requirements.temp.md +12 -0
- package/components/menu/src/InteractiveListMixin.js +796 -0
- package/components/menu/src/LionMenu.js +250 -0
- package/components/menu/src/LionMenuHybrid.js +46 -0
- package/components/menu/src/LionMenuOverlay.js +155 -0
- package/components/menu/src/LionSpinbutton.js +213 -0
- package/components/menu/src/LionToolbar.js +94 -0
- package/components/menu/src/LionTree.js +52 -0
- package/components/menu/src/MultiLevelListMixin.js +275 -0
- package/components/menu/src/utils/isInView.js +26 -0
- package/components/menu/src/utils/listItemInteractions.js +104 -0
- package/components/menu/src/utils/uuid.js +3 -0
- package/components/menu/test/lion-menu.test.js +3 -0
- package/components/menu/test-suites/InteractiveListMixin.suite.js +142 -0
- package/components/menu/types/InteractiveListMixinTypes.d.ts +82 -0
- package/components/navigation-bar/README.md +1 -0
- package/components/navigation-bar/src/LionNavigationBar.js +449 -0
- package/components/navigation-bar/src/types.js +41 -0
- package/components/overlays/NEXT.md +49 -0
- package/components/overlays/src/OverlayController.js +165 -115
- package/components/overlays/src/OverlayMixin.js +75 -12
- package/components/overlays/src/OverlaysManager.js +98 -0
- package/components/overlays/src/overlayShadowDomStyle.js +2 -2
- package/components/overlays/src/utils/adopt-styles.js +2 -1
- package/components/overlays/src/utils/get-focusable-elements.js +4 -0
- package/components/overlays/src/utils/is-equal-config.js +4 -1
- package/components/overlays/test/OverlayController.test.js +117 -6
- package/components/overlays/types/OverlayConfig.ts +19 -4
- package/components/select-rich/test/lion-select-rich.test.js +3 -0
- package/custom-elements.json +15785 -5337
- package/dist-types/components/button/src/LionButton.d.ts +1 -0
- package/dist-types/components/button/src/LionButton.d.ts.map +1 -1
- package/dist-types/components/button/test-suites/LionButton.suite.d.ts.map +1 -1
- package/dist-types/components/calendar/src/LionCalendar.d.ts.map +1 -1
- package/dist-types/components/collapsible/src/DisclosureMixin.d.ts +3 -0
- package/dist-types/components/collapsible/src/DisclosureMixin.d.ts.map +1 -0
- package/dist-types/components/collapsible/types/DisclosureMixinTypes.d.ts +24 -0
- package/dist-types/components/collapsible/types/DisclosureMixinTypes.d.ts.map +1 -0
- package/dist-types/components/combobox/src/utils/makeMatchingTextBold.d.ts.map +1 -1
- package/dist-types/components/dialog/src/LionDialog.d.ts +2 -1
- package/dist-types/components/dialog/src/LionDialog.d.ts.map +1 -1
- package/dist-types/components/form-core/src/form-group/FormGroupMixin.d.ts.map +1 -1
- package/dist-types/components/form-core/src/registration/FormRegistrarMixin.d.ts.map +1 -1
- package/dist-types/components/form-core/test-suites/ValidateMixin.suite.d.ts.map +1 -1
- package/dist-types/components/form-core/test-suites/ValidateMixinFeedbackPart.suite.d.ts.map +1 -1
- package/dist-types/components/input-datepicker/src/LionInputDatepicker.d.ts.map +1 -1
- package/dist-types/components/input-datepicker/src/localizeNamespaceLoader.d.ts.map +1 -1
- package/dist-types/components/input-stepper/src/LionInputStepper.d.ts +4 -2
- package/dist-types/components/input-stepper/src/LionInputStepper.d.ts.map +1 -1
- package/dist-types/components/input-stepper/test-suites/lion-input-stepper.suite.d.ts.map +1 -1
- package/dist-types/components/menu/index.d.ts +3 -0
- package/dist-types/components/menu/index.d.ts.map +1 -0
- package/dist-types/components/menu/lion-menu-overlay.d.ts +2 -0
- package/dist-types/components/menu/lion-menu-overlay.d.ts.map +1 -0
- package/dist-types/components/menu/lion-menu.d.ts +2 -0
- package/dist-types/components/menu/lion-menu.d.ts.map +1 -0
- package/dist-types/components/menu/lion-spinbutton.d.ts +2 -0
- package/dist-types/components/menu/lion-spinbutton.d.ts.map +1 -0
- package/dist-types/components/menu/lion-toolbar.d.ts +2 -0
- package/dist-types/components/menu/lion-toolbar.d.ts.map +1 -0
- package/dist-types/components/menu/lion-tree.d.ts +2 -0
- package/dist-types/components/menu/lion-tree.d.ts.map +1 -0
- package/dist-types/components/menu/src/InteractiveListMixin.d.ts +611 -0
- package/dist-types/components/menu/src/InteractiveListMixin.d.ts.map +1 -0
- package/dist-types/components/menu/src/LionMenu.d.ts +563 -0
- package/dist-types/components/menu/src/LionMenu.d.ts.map +1 -0
- package/dist-types/components/menu/src/LionMenuHybrid.d.ts +19 -0
- package/dist-types/components/menu/src/LionMenuHybrid.d.ts.map +1 -0
- package/dist-types/components/menu/src/LionMenuOverlay.d.ts +1006 -0
- package/dist-types/components/menu/src/LionMenuOverlay.d.ts.map +1 -0
- package/dist-types/components/menu/src/LionSpinbutton.d.ts +58 -0
- package/dist-types/components/menu/src/LionSpinbutton.d.ts.map +1 -0
- package/dist-types/components/menu/src/LionToolbar.d.ts +8 -0
- package/dist-types/components/menu/src/LionToolbar.d.ts.map +1 -0
- package/dist-types/components/menu/src/LionTree.d.ts +445 -0
- package/dist-types/components/menu/src/LionTree.d.ts.map +1 -0
- package/dist-types/components/menu/src/MultiLevelListMixin.d.ts +493 -0
- package/dist-types/components/menu/src/MultiLevelListMixin.d.ts.map +1 -0
- package/dist-types/components/menu/src/utils/isInView.d.ts +9 -0
- package/dist-types/components/menu/src/utils/isInView.d.ts.map +1 -0
- package/dist-types/components/menu/src/utils/listItemInteractions.d.ts +42 -0
- package/dist-types/components/menu/src/utils/listItemInteractions.d.ts.map +1 -0
- package/dist-types/components/menu/src/utils/uuid.d.ts +2 -0
- package/dist-types/components/menu/src/utils/uuid.d.ts.map +1 -0
- package/dist-types/components/menu/test/lion-menu.test.d.ts +2 -0
- package/dist-types/components/menu/test/lion-menu.test.d.ts.map +1 -0
- package/dist-types/components/menu/test-suites/InteractiveListMixin.suite.d.ts +13 -0
- package/dist-types/components/menu/test-suites/InteractiveListMixin.suite.d.ts.map +1 -0
- package/dist-types/components/navigation-bar/src/LionNavigationBar.d.ts +226 -0
- package/dist-types/components/navigation-bar/src/LionNavigationBar.d.ts.map +1 -0
- package/dist-types/components/navigation-bar/src/types.d.ts +85 -0
- package/dist-types/components/navigation-bar/src/types.d.ts.map +1 -0
- package/dist-types/components/overlays/src/OverlayController.d.ts +7 -13
- package/dist-types/components/overlays/src/OverlayController.d.ts.map +1 -1
- package/dist-types/components/overlays/src/OverlayMixin.d.ts +3 -0
- package/dist-types/components/overlays/src/OverlayMixin.d.ts.map +1 -1
- package/dist-types/components/overlays/src/OverlaysManager.d.ts +31 -0
- package/dist-types/components/overlays/src/OverlaysManager.d.ts.map +1 -1
- package/dist-types/components/overlays/src/utils/get-focusable-elements.d.ts.map +1 -1
- package/dist-types/components/overlays/src/utils/is-equal-config.d.ts.map +1 -1
- package/dist-types/components/overlays/types/OverlayConfig.d.ts +6 -2
- package/dist-types/components/overlays/types/OverlayConfig.d.ts.map +1 -1
- package/dist-types/components/select-rich/src/LionSelectRich.d.ts +11 -2
- package/dist-types/components/select-rich/src/LionSelectRich.d.ts.map +1 -1
- package/dist-types/exports/define/lion-item.d.ts +2 -0
- package/dist-types/exports/define/lion-item.d.ts.map +1 -0
- package/dist-types/exports/define/lion-menu-overlay.d.ts +2 -0
- package/dist-types/exports/define/lion-menu-overlay.d.ts.map +1 -0
- package/dist-types/exports/define/lion-menu.d.ts +2 -0
- package/dist-types/exports/define/lion-menu.d.ts.map +1 -0
- package/dist-types/exports/define/lion-navigation-bar.d.ts +2 -0
- package/dist-types/exports/define/lion-navigation-bar.d.ts.map +1 -0
- package/dist-types/exports/define/lion-toolbar.d.ts +2 -0
- package/dist-types/exports/define/lion-toolbar.d.ts.map +1 -0
- package/dist-types/exports/define/lion-tree.d.ts +2 -0
- package/dist-types/exports/define/lion-tree.d.ts.map +1 -0
- package/dist-types/exports/menu.d.ts +7 -0
- package/dist-types/exports/menu.d.ts.map +1 -0
- package/dist-types/exports/navigation-bar.d.ts +2 -0
- package/dist-types/exports/navigation-bar.d.ts.map +1 -0
- package/dist-types/exports/overlays.d.ts +2 -0
- package/dist-types/exports/types/overlays.d.ts +1 -0
- package/dist-types/exports/types/overlays.d.ts.map +1 -1
- package/dist-types/tsconfig.tsbuildinfo +1 -1
- package/docs/components/checkbox-group/overview.md +2 -2
- package/docs/components/collapsible/overview.md +1 -1
- package/docs/components/combobox/overview.md +1 -1
- package/docs/components/combobox/use-cases.md +1 -1
- package/docs/components/dialog/overview.md +1 -1
- package/docs/components/fieldset/overview.md +5 -5
- package/docs/components/form/overview.md +3 -3
- package/docs/components/form/use-cases.md +2 -2
- package/docs/components/icon/use-cases.md +1 -1
- package/docs/components/index.md +1 -1
- package/docs/components/input/overview.md +1 -1
- package/docs/components/input-amount/overview.md +3 -3
- package/docs/components/input-date/overview.md +3 -3
- package/docs/components/input-datepicker/overview.md +5 -5
- package/docs/components/input-datepicker/use-cases.md +16 -1
- package/docs/components/input-email/overview.md +2 -2
- package/docs/components/input-file/overview.md +1 -1
- package/docs/components/input-iban/overview.md +2 -2
- package/docs/components/input-range/api-table.md +1 -1
- package/docs/components/input-range/overview.md +2 -2
- package/docs/components/input-stepper/api-table.md +2 -2
- package/docs/components/input-stepper/overview.md +1 -1
- package/docs/components/input-stepper/use-cases.md +26 -0
- package/docs/components/input-tel/overview.md +1 -1
- package/docs/components/input-tel/use-cases.md +6 -6
- package/docs/components/input-tel-dropdown/overview.md +1 -1
- package/docs/components/listbox/use-cases.md +1 -1
- package/docs/components/menu/api-table.md +450 -0
- package/docs/components/menu/applyMenuDemoStyles.js +173 -0
- package/docs/components/menu/extensions.md +216 -0
- package/docs/components/menu/index.md +13 -0
- package/docs/components/menu/overview.md +422 -0
- package/docs/components/radio-group/overview.md +3 -3
- package/docs/components/select/use-cases.md +1 -1
- package/docs/components/select-rich/api-table.md +1 -1
- package/docs/components/select-rich/use-cases.md +2 -2
- package/docs/components/tabs/examples.md +1 -1
- package/docs/fundamentals/index.md +4 -4
- package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
- package/docs/fundamentals/rationales/accessibility.md +1 -1
- package/docs/fundamentals/systems/core/SlotMixin.md +18 -18
- package/docs/fundamentals/systems/core/overview.md +1 -1
- package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
- package/docs/fundamentals/systems/form/interaction-states.md +0 -1
- package/docs/fundamentals/systems/form/model-value.md +1 -1
- package/docs/fundamentals/systems/form/overview.md +28 -28
- package/docs/fundamentals/systems/form/validate.md +2 -2
- package/docs/fundamentals/systems/localize/overview.md +4 -4
- package/docs/fundamentals/systems/localize/text.md +1 -1
- package/docs/fundamentals/systems/overlays/api-table.md +92 -45
- package/docs/fundamentals/systems/overlays/configuration.md +2 -2
- package/docs/fundamentals/systems/overlays/overview.md +5 -5
- package/docs/fundamentals/systems/overlays/use-cases.md +2 -2
- package/docs/fundamentals/tools/helpers/overview.md +1 -1
- package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
- package/docs/guides/how-to/create-a-custom-field.md +5 -5
- package/docs/guides/how-to/create-a-form.md +4 -4
- package/docs/guides/how-to/extend-a-native-input.md +2 -2
- package/docs/guides/how-to/index.md +14 -0
- package/docs/guides/index.md +8 -8
- package/docs/guides/principles/index.md +5 -5
- package/docs/guides/principles/styling.md +1 -2
- package/exports/collapsible.js +1 -0
- package/exports/define/lion-item.js +3 -0
- package/exports/define/lion-menu-overlay.js +3 -0
- package/exports/define/lion-menu.js +3 -0
- package/exports/define/lion-navigation-bar.js +3 -0
- package/exports/define/lion-toolbar.js +3 -0
- package/exports/define/lion-tree.js +3 -0
- package/exports/menu.js +6 -0
- package/exports/navigation-bar.js +1 -0
- package/exports/overlays.js +2 -0
- package/exports/types/overlays.ts +1 -0
- package/menu.js +6 -0
- package/navigation-bar.js +1 -0
- package/overlays.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lightweight component supporting InteractiveListItemRole as a type.
|
|
3
|
+
*
|
|
4
|
+
* Supports:
|
|
5
|
+
* - 1. menu item
|
|
6
|
+
* <lion-item> Item label </lion-item>
|
|
7
|
+
* - 2. sub menu
|
|
8
|
+
* <lion-item>
|
|
9
|
+
* <button slot="invoker"> Item label </button>
|
|
10
|
+
* <lion-menu slot="subitems"> ... </lion-menu>
|
|
11
|
+
* </lion-item>
|
|
12
|
+
*
|
|
13
|
+
* Sets the role property on the right element. For case 1, this would be the item itself,
|
|
14
|
+
* for case 2 it would be the [slot=invoker].
|
|
15
|
+
*/
|
|
16
|
+
export class LionItem extends LitElement {
|
|
17
|
+
/** @type {any} */
|
|
18
|
+
static get properties(): any;
|
|
19
|
+
static styles: import("lit").CSSResult[];
|
|
20
|
+
get _invokerNode(): Element | undefined;
|
|
21
|
+
/** @type {InteractiveListItemRole |''} */
|
|
22
|
+
type: InteractiveListItemRole | '';
|
|
23
|
+
_computedType: string | undefined;
|
|
24
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
25
|
+
}
|
|
26
|
+
export class LionMenuitem extends LionItem {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Handles keyboard interaction plus bookkeeping for active and selected states.
|
|
30
|
+
* Can be used as a fundament for:
|
|
31
|
+
* - [role="menu|menubar"] having children with [role="menuitem|menuitemcheckbox|menuitemradio"]
|
|
32
|
+
* - [role="listbox"] having children with [role="option"]
|
|
33
|
+
* - [role="toolbar"] having children with [role="radiogroup|radio|group|checkbox|spinbutton"]
|
|
34
|
+
* - [role="tree"] having children with [role="group|treeitem"]
|
|
35
|
+
*
|
|
36
|
+
* An interactive list accepts two types of items:
|
|
37
|
+
* - 'smart' items: responsible for registering themselves and reflecting accessibility properties,
|
|
38
|
+
* for example LionOption
|
|
39
|
+
* - 'regular' items with a [role="menuitem|menuitemcheckbox|menuitemradio|option|radio|checkbox|treeitem|listitem]
|
|
40
|
+
*
|
|
41
|
+
* Features:
|
|
42
|
+
* - keyboard navigation according to [aria specs](https://www.w3.org/TR/wai-aria-practices-1.1) for role
|
|
43
|
+
* - types
|
|
44
|
+
*
|
|
45
|
+
* @param {import('@open-wc/dedupe-mixin').Constructor<import('lit').LitElement>} superclass
|
|
46
|
+
*/
|
|
47
|
+
export function InteractiveListMixin(superclass: import('@open-wc/dedupe-mixin').Constructor<import('lit').LitElement>): {
|
|
48
|
+
new (): {
|
|
49
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
50
|
+
readonly slots: {
|
|
51
|
+
list: () => HTMLDivElement;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* This is the (usually focusable, unless combobox) element that will contain [aria-activedescendant]
|
|
55
|
+
* Depending on the children, role will be "listbox|menu|menubar|tree|toolbar"
|
|
56
|
+
* @type {HTMLElement}
|
|
57
|
+
*/
|
|
58
|
+
readonly _listNode: HTMLElement;
|
|
59
|
+
readonly _scrollTargetNode: any;
|
|
60
|
+
/**
|
|
61
|
+
* Place in the template that contains children with ._childrenRoles
|
|
62
|
+
* @type {HTMLSlotElement}
|
|
63
|
+
*/
|
|
64
|
+
readonly _listItemsSlot: HTMLSlotElement;
|
|
65
|
+
/**
|
|
66
|
+
* When used with FormRegistrarMixin, children will register themselves. Otherwise,
|
|
67
|
+
* __listItems are gathered via a slotchange listener
|
|
68
|
+
* @type {HTMLElement[]}
|
|
69
|
+
*/
|
|
70
|
+
readonly listItems: HTMLElement[];
|
|
71
|
+
/**
|
|
72
|
+
* The roles to look for when children are registered to listItems
|
|
73
|
+
* @overridable
|
|
74
|
+
* @type {InteractiveListItemRole[]}
|
|
75
|
+
*/
|
|
76
|
+
readonly _childrenRoles: import("../types/InteractiveListMixinTypes.js").InteractiveListItemRole[];
|
|
77
|
+
readonly _interactiveChildrenRoles: string[];
|
|
78
|
+
activeIndex: number;
|
|
79
|
+
readonly activeItem: HTMLElement;
|
|
80
|
+
/**
|
|
81
|
+
* @type {number | number[]}
|
|
82
|
+
*/
|
|
83
|
+
checkedIndex: number | number[];
|
|
84
|
+
/**
|
|
85
|
+
* When `multipleChoice` is false, will toggle, else will check provided index
|
|
86
|
+
* @param {Number} index
|
|
87
|
+
*/
|
|
88
|
+
setCheckedIndex(index: number): void;
|
|
89
|
+
/**
|
|
90
|
+
* Since we cannot check instanceof with mixins, use this getter instead.
|
|
91
|
+
* This way, the outside world can confirm the type of an element
|
|
92
|
+
*/
|
|
93
|
+
readonly isInteractiveList: boolean;
|
|
94
|
+
orientation: string;
|
|
95
|
+
multipleChoice: boolean;
|
|
96
|
+
selectionFollowsFocus: boolean;
|
|
97
|
+
rotateKeyboardNavigation: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* By default, checkedIndex is set to 0. When noPreselect is true,
|
|
100
|
+
* checkedIndex will not be set
|
|
101
|
+
* @type {boolean}
|
|
102
|
+
*/
|
|
103
|
+
noPreselect: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Whenever possible (for [role="listbox|menu"], usually with one level) we use an
|
|
106
|
+
* [active descendant](https://www.w3.org/TR/wai-aria-practices-1.1/#kbd_focus_activedescendant).
|
|
107
|
+
* For [role=toolbar], we use a [roving tabindex](https://www.w3.org/TR/wai-aria-practices-1.1/#kbd_roving_tabindex)
|
|
108
|
+
* Other examples:
|
|
109
|
+
* - [role="menubar"](https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html)
|
|
110
|
+
* - [role="tree"](https://www.w3.org/TR/wai-aria-practices-1.1/examples/treeview/treeview-1/treeview-1b.html)
|
|
111
|
+
* For disclosure menus, we need keyboard navigation, but treat every list item
|
|
112
|
+
* (more precisely its anchor child) as a tab stop. Also we apply aria-current
|
|
113
|
+
* @type {'activedescendant'|'roving-tabindex'|'tabbable-disclosure'|'none'}
|
|
114
|
+
*/
|
|
115
|
+
_activeMode: 'activedescendant' | 'roving-tabindex' | 'tabbable-disclosure' | 'none';
|
|
116
|
+
/**
|
|
117
|
+
* When children are 'smart' (like LionOption), checked and active states will be set
|
|
118
|
+
* to them and they are responsible for setting [aria-selected].
|
|
119
|
+
* When false, `get listItems()` needs to be configured to point to the list items.
|
|
120
|
+
* @type {boolean}
|
|
121
|
+
*/
|
|
122
|
+
_hasSmartChildren: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* The role that will be put on _listNode
|
|
125
|
+
* @type {'menu'|'menubar'|'listbox'|'tree'|'toolbar'}
|
|
126
|
+
*/
|
|
127
|
+
_listRole: 'menu' | 'menubar' | 'listbox' | 'tree' | 'toolbar';
|
|
128
|
+
/**
|
|
129
|
+
* @type {HTMLElement[]}
|
|
130
|
+
*/
|
|
131
|
+
__listItems: HTMLElement[];
|
|
132
|
+
/**
|
|
133
|
+
* By default, a typed character (or a sequence thereof) will be matched against
|
|
134
|
+
* the values of list items. The first and closest match, becomes active
|
|
135
|
+
* (focused or activedescendant depending on _matchMode)
|
|
136
|
+
* @type {boolean}
|
|
137
|
+
*/
|
|
138
|
+
_activateOnTypedChars: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* The pending char sequence that will set active list item
|
|
141
|
+
* @type {number}
|
|
142
|
+
*/
|
|
143
|
+
_activateOnCharTimeout: number;
|
|
144
|
+
/**
|
|
145
|
+
* @type {string[]}
|
|
146
|
+
*/
|
|
147
|
+
__typedChars: string[];
|
|
148
|
+
/**
|
|
149
|
+
* @overridable
|
|
150
|
+
* @param {MouseEvent} ev
|
|
151
|
+
*/
|
|
152
|
+
_onListClick(ev: MouseEvent): void;
|
|
153
|
+
/**
|
|
154
|
+
* @overridable
|
|
155
|
+
* @param {KeyboardEvent} ev
|
|
156
|
+
*/
|
|
157
|
+
_onListKeyUp(ev: KeyboardEvent): void;
|
|
158
|
+
/**
|
|
159
|
+
* Handles various keyboard controls
|
|
160
|
+
* @param {KeyboardEvent} ev - the keydown event object
|
|
161
|
+
*/
|
|
162
|
+
_onListKeyDown(ev: KeyboardEvent): void;
|
|
163
|
+
/**
|
|
164
|
+
* @overridable
|
|
165
|
+
* @param {FocusEvent} ev
|
|
166
|
+
*/
|
|
167
|
+
_onListFocusIn(ev: FocusEvent): void;
|
|
168
|
+
/**
|
|
169
|
+
* @param {import('lit').PropertyValues } changedProperties
|
|
170
|
+
*/
|
|
171
|
+
firstUpdated(changedProperties: import('lit').PropertyValues): void;
|
|
172
|
+
/**
|
|
173
|
+
* @param {Node[]} nodes
|
|
174
|
+
*/
|
|
175
|
+
"__#6@#identifyNewItemsAndInitListItems"(nodes: Node[]): void;
|
|
176
|
+
_setupList(): void;
|
|
177
|
+
/**
|
|
178
|
+
* When _listItemsSlot receives new items, they are initialized via this method
|
|
179
|
+
* @param {LionItem[]|HTMLElement[]} newItems the newly added items needing initialization
|
|
180
|
+
*/
|
|
181
|
+
_initListItems(newItems: LionItem[] | HTMLElement[]): void;
|
|
182
|
+
/**
|
|
183
|
+
* @param {KeyboardEvent} ev - the keydown event object
|
|
184
|
+
* @returns {boolean} whether a character key or a number was typed
|
|
185
|
+
*/
|
|
186
|
+
__onKeydownActivateTypedChars(ev: KeyboardEvent): boolean;
|
|
187
|
+
__clearCharTimeout: NodeJS.Timeout | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* @overridable
|
|
190
|
+
* @param {{chars: string[], item: HTMLElement}} config
|
|
191
|
+
*/
|
|
192
|
+
_matchCharsAgainstItem({ chars, item }: {
|
|
193
|
+
chars: string[];
|
|
194
|
+
item: HTMLElement;
|
|
195
|
+
}): any;
|
|
196
|
+
/**
|
|
197
|
+
* @param {KeyboardEvent} ev
|
|
198
|
+
*/
|
|
199
|
+
__preventScrollingWithArrowKeys(ev: KeyboardEvent): void;
|
|
200
|
+
/**
|
|
201
|
+
* @param {number} currentIndex
|
|
202
|
+
* @param {number} offset
|
|
203
|
+
*/
|
|
204
|
+
__getNextOption(currentIndex: number, offset: number): number;
|
|
205
|
+
/**
|
|
206
|
+
* @param {number} currentIndex
|
|
207
|
+
* @param {number} [offset=1]
|
|
208
|
+
*/
|
|
209
|
+
_getNextEnabledOption(currentIndex: number, offset?: number | undefined): number;
|
|
210
|
+
/**
|
|
211
|
+
* @param {number} currentIndex
|
|
212
|
+
* @param {number} [offset=-1]
|
|
213
|
+
*/
|
|
214
|
+
_getPreviousEnabledOption(currentIndex: number, offset?: number | undefined): number;
|
|
215
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
216
|
+
__childPart: any;
|
|
217
|
+
createRenderRoot(): HTMLElement | DocumentFragment;
|
|
218
|
+
update(changedProperties: import("lit").PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
219
|
+
connectedCallback: (() => void) & (() => void);
|
|
220
|
+
disconnectedCallback(): void;
|
|
221
|
+
__instanceProperties?: any;
|
|
222
|
+
readonly renderRoot: HTMLElement | DocumentFragment;
|
|
223
|
+
__updatePromise: any;
|
|
224
|
+
isUpdatePending: boolean;
|
|
225
|
+
hasUpdated: boolean;
|
|
226
|
+
__defaultValues?: any;
|
|
227
|
+
__reflectingProperties?: any;
|
|
228
|
+
__reflectingProperty: any;
|
|
229
|
+
__controllers?: any;
|
|
230
|
+
__initialize: any;
|
|
231
|
+
addController(controller: import("lit").ReactiveController): void;
|
|
232
|
+
removeController(controller: import("lit").ReactiveController): void;
|
|
233
|
+
__saveInstanceProperties: any;
|
|
234
|
+
enableUpdating(_requestedUpdate: boolean): void;
|
|
235
|
+
attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
|
|
236
|
+
__propertyToAttribute: any;
|
|
237
|
+
requestUpdate(name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined, useNewValue?: boolean | undefined, newValue?: unknown): void;
|
|
238
|
+
__enqueueUpdate: any;
|
|
239
|
+
scheduleUpdate(): void | Promise<unknown>;
|
|
240
|
+
performUpdate(): void;
|
|
241
|
+
willUpdate(_changedProperties: import("lit").PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
242
|
+
__markUpdated: any;
|
|
243
|
+
readonly updateComplete: Promise<boolean>;
|
|
244
|
+
getUpdateComplete(): Promise<boolean>;
|
|
245
|
+
shouldUpdate(_changedProperties: import("lit").PropertyValueMap<any> | Map<PropertyKey, unknown>): boolean;
|
|
246
|
+
updated(_changedProperties: import("lit").PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
247
|
+
accessKey: string;
|
|
248
|
+
readonly accessKeyLabel: string;
|
|
249
|
+
autocapitalize: string;
|
|
250
|
+
dir: string;
|
|
251
|
+
draggable: boolean;
|
|
252
|
+
hidden: boolean;
|
|
253
|
+
inert: boolean;
|
|
254
|
+
innerText: string;
|
|
255
|
+
lang: string;
|
|
256
|
+
readonly offsetHeight: number;
|
|
257
|
+
readonly offsetLeft: number;
|
|
258
|
+
readonly offsetParent: Element | null;
|
|
259
|
+
readonly offsetTop: number;
|
|
260
|
+
readonly offsetWidth: number;
|
|
261
|
+
outerText: string;
|
|
262
|
+
spellcheck: boolean;
|
|
263
|
+
title: string;
|
|
264
|
+
translate: boolean;
|
|
265
|
+
attachInternals(): ElementInternals;
|
|
266
|
+
click(): void;
|
|
267
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
268
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
269
|
+
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
270
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
271
|
+
readonly attributes: NamedNodeMap;
|
|
272
|
+
readonly classList: DOMTokenList;
|
|
273
|
+
className: string;
|
|
274
|
+
readonly clientHeight: number;
|
|
275
|
+
readonly clientLeft: number;
|
|
276
|
+
readonly clientTop: number;
|
|
277
|
+
readonly clientWidth: number;
|
|
278
|
+
id: string;
|
|
279
|
+
readonly localName: string;
|
|
280
|
+
readonly namespaceURI: string | null;
|
|
281
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
282
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
283
|
+
outerHTML: string;
|
|
284
|
+
readonly ownerDocument: Document;
|
|
285
|
+
readonly part: DOMTokenList;
|
|
286
|
+
readonly prefix: string | null;
|
|
287
|
+
readonly scrollHeight: number;
|
|
288
|
+
scrollLeft: number;
|
|
289
|
+
scrollTop: number;
|
|
290
|
+
readonly scrollWidth: number;
|
|
291
|
+
readonly shadowRoot: ShadowRoot | null;
|
|
292
|
+
slot: string;
|
|
293
|
+
readonly tagName: string;
|
|
294
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
295
|
+
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
|
|
296
|
+
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
|
|
297
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
|
298
|
+
getAttribute(qualifiedName: string): string | null;
|
|
299
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
300
|
+
getAttributeNames(): string[];
|
|
301
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
|
302
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
303
|
+
getBoundingClientRect(): DOMRect;
|
|
304
|
+
getClientRects(): DOMRectList;
|
|
305
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
306
|
+
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
307
|
+
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
308
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
309
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
310
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
311
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
312
|
+
hasAttribute(qualifiedName: string): boolean;
|
|
313
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
314
|
+
hasAttributes(): boolean;
|
|
315
|
+
hasPointerCapture(pointerId: number): boolean;
|
|
316
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
317
|
+
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
318
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
319
|
+
matches(selectors: string): boolean;
|
|
320
|
+
releasePointerCapture(pointerId: number): void;
|
|
321
|
+
removeAttribute(qualifiedName: string): void;
|
|
322
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
323
|
+
removeAttributeNode(attr: Attr): Attr;
|
|
324
|
+
requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
|
|
325
|
+
requestPointerLock(): void;
|
|
326
|
+
scroll(options?: ScrollToOptions | undefined): void;
|
|
327
|
+
scroll(x: number, y: number): void;
|
|
328
|
+
scrollBy(options?: ScrollToOptions | undefined): void;
|
|
329
|
+
scrollBy(x: number, y: number): void;
|
|
330
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
|
|
331
|
+
scrollTo(options?: ScrollToOptions | undefined): void;
|
|
332
|
+
scrollTo(x: number, y: number): void;
|
|
333
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
334
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
335
|
+
setAttributeNode(attr: Attr): Attr | null;
|
|
336
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
337
|
+
setPointerCapture(pointerId: number): void;
|
|
338
|
+
toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
|
|
339
|
+
webkitMatchesSelector(selectors: string): boolean;
|
|
340
|
+
setHTMLUnsafe(html: string): void;
|
|
341
|
+
readonly baseURI: string;
|
|
342
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
343
|
+
readonly firstChild: ChildNode | null;
|
|
344
|
+
readonly isConnected: boolean;
|
|
345
|
+
readonly lastChild: ChildNode | null;
|
|
346
|
+
readonly nextSibling: ChildNode | null;
|
|
347
|
+
readonly nodeName: string;
|
|
348
|
+
readonly nodeType: number;
|
|
349
|
+
nodeValue: string | null;
|
|
350
|
+
readonly parentElement: HTMLElement | null;
|
|
351
|
+
readonly parentNode: ParentNode | null;
|
|
352
|
+
readonly previousSibling: ChildNode | null;
|
|
353
|
+
textContent: string | null;
|
|
354
|
+
appendChild<T extends Node>(node: T): T;
|
|
355
|
+
cloneNode(deep?: boolean | undefined): Node;
|
|
356
|
+
compareDocumentPosition(other: Node): number;
|
|
357
|
+
contains(other: Node | null): boolean;
|
|
358
|
+
getRootNode(options?: GetRootNodeOptions | undefined): Node;
|
|
359
|
+
hasChildNodes(): boolean;
|
|
360
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
|
361
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
|
362
|
+
isEqualNode(otherNode: Node | null): boolean;
|
|
363
|
+
isSameNode(otherNode: Node | null): boolean;
|
|
364
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
|
365
|
+
lookupPrefix(namespace: string | null): string | null;
|
|
366
|
+
normalize(): void;
|
|
367
|
+
removeChild<T_2 extends Node>(child: T_2): T_2;
|
|
368
|
+
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
|
369
|
+
readonly ATTRIBUTE_NODE: number;
|
|
370
|
+
readonly CDATA_SECTION_NODE: number;
|
|
371
|
+
readonly COMMENT_NODE: number;
|
|
372
|
+
readonly DOCUMENT_FRAGMENT_NODE: number;
|
|
373
|
+
readonly DOCUMENT_NODE: number;
|
|
374
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
375
|
+
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
376
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
377
|
+
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
378
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
379
|
+
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
380
|
+
readonly DOCUMENT_TYPE_NODE: number;
|
|
381
|
+
readonly ELEMENT_NODE: number;
|
|
382
|
+
readonly ENTITY_NODE: number;
|
|
383
|
+
readonly ENTITY_REFERENCE_NODE: number;
|
|
384
|
+
readonly NOTATION_NODE: number;
|
|
385
|
+
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
386
|
+
readonly TEXT_NODE: number;
|
|
387
|
+
dispatchEvent(event: Event): boolean;
|
|
388
|
+
ariaAtomic: string | null;
|
|
389
|
+
ariaAutoComplete: string | null;
|
|
390
|
+
ariaBusy: string | null;
|
|
391
|
+
ariaChecked: string | null;
|
|
392
|
+
ariaColCount: string | null;
|
|
393
|
+
ariaColIndex: string | null;
|
|
394
|
+
ariaColIndexText: string | null;
|
|
395
|
+
ariaColSpan: string | null;
|
|
396
|
+
ariaCurrent: string | null;
|
|
397
|
+
ariaDisabled: string | null;
|
|
398
|
+
ariaExpanded: string | null;
|
|
399
|
+
ariaHasPopup: string | null;
|
|
400
|
+
ariaHidden: string | null;
|
|
401
|
+
ariaInvalid: string | null;
|
|
402
|
+
ariaKeyShortcuts: string | null;
|
|
403
|
+
ariaLabel: string | null;
|
|
404
|
+
ariaLevel: string | null;
|
|
405
|
+
ariaLive: string | null;
|
|
406
|
+
ariaModal: string | null;
|
|
407
|
+
ariaMultiLine: string | null;
|
|
408
|
+
ariaMultiSelectable: string | null;
|
|
409
|
+
ariaOrientation: string | null;
|
|
410
|
+
ariaPlaceholder: string | null;
|
|
411
|
+
ariaPosInSet: string | null;
|
|
412
|
+
ariaPressed: string | null;
|
|
413
|
+
ariaReadOnly: string | null;
|
|
414
|
+
ariaRequired: string | null;
|
|
415
|
+
ariaRoleDescription: string | null;
|
|
416
|
+
ariaRowCount: string | null;
|
|
417
|
+
ariaRowIndex: string | null;
|
|
418
|
+
ariaRowIndexText: string | null;
|
|
419
|
+
ariaRowSpan: string | null;
|
|
420
|
+
ariaSelected: string | null;
|
|
421
|
+
ariaSetSize: string | null;
|
|
422
|
+
ariaSort: string | null;
|
|
423
|
+
ariaValueMax: string | null;
|
|
424
|
+
ariaValueMin: string | null;
|
|
425
|
+
ariaValueNow: string | null;
|
|
426
|
+
ariaValueText: string | null;
|
|
427
|
+
role: string | null;
|
|
428
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
429
|
+
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
430
|
+
after(...nodes: (string | Node)[]): void;
|
|
431
|
+
before(...nodes: (string | Node)[]): void;
|
|
432
|
+
remove(): void;
|
|
433
|
+
replaceWith(...nodes: (string | Node)[]): void;
|
|
434
|
+
innerHTML: string;
|
|
435
|
+
readonly nextElementSibling: Element | null;
|
|
436
|
+
readonly previousElementSibling: Element | null;
|
|
437
|
+
readonly childElementCount: number;
|
|
438
|
+
readonly children: HTMLCollection;
|
|
439
|
+
readonly firstElementChild: Element | null;
|
|
440
|
+
readonly lastElementChild: Element | null;
|
|
441
|
+
append(...nodes: (string | Node)[]): void;
|
|
442
|
+
prepend(...nodes: (string | Node)[]): void;
|
|
443
|
+
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6] | null;
|
|
444
|
+
querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7] | null;
|
|
445
|
+
querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
446
|
+
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
|
|
447
|
+
querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
|
|
448
|
+
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
449
|
+
replaceChildren(...nodes: (string | Node)[]): void;
|
|
450
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
451
|
+
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
452
|
+
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
453
|
+
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
454
|
+
readonly style: CSSStyleDeclaration;
|
|
455
|
+
contentEditable: string;
|
|
456
|
+
enterKeyHint: string;
|
|
457
|
+
inputMode: string;
|
|
458
|
+
readonly isContentEditable: boolean;
|
|
459
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
460
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
461
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
462
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
463
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
464
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
465
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
466
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
467
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
468
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
469
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
470
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
471
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
472
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
473
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
474
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
475
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
476
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
477
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
478
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
479
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
480
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
481
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
482
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
483
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
484
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
485
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
486
|
+
onerror: OnErrorEventHandler;
|
|
487
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
488
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
489
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
490
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
491
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
492
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
493
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
494
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
495
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
496
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
497
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
498
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
499
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
500
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
501
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
502
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
503
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
504
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
505
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
506
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
507
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
508
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
509
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
510
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
511
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
512
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
513
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
514
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
515
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
516
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
517
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
518
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
|
|
519
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
520
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
521
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
522
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
523
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
524
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
525
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
526
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
527
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
528
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
529
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
530
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
531
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
532
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
533
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
534
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
535
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
536
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
537
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
538
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
539
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
540
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
541
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
542
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
543
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
544
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
545
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
546
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
547
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
548
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
549
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
550
|
+
autofocus: boolean;
|
|
551
|
+
readonly dataset: DOMStringMap;
|
|
552
|
+
nonce?: string | undefined;
|
|
553
|
+
tabIndex: number;
|
|
554
|
+
blur(): void;
|
|
555
|
+
focus(options?: FocusOptions | undefined): void;
|
|
556
|
+
_connectSlotMixin(): void;
|
|
557
|
+
_isPrivateSlot(slotName: string): boolean;
|
|
558
|
+
disabled: boolean;
|
|
559
|
+
makeRequestToBeDisabled(): void;
|
|
560
|
+
retractRequestToBeDisabled(): void;
|
|
561
|
+
__internalSetDisabled(value: boolean): void;
|
|
562
|
+
_requestedToBeDisabled: boolean;
|
|
563
|
+
};
|
|
564
|
+
/** @type {any} */
|
|
565
|
+
styles: any;
|
|
566
|
+
readonly properties: {
|
|
567
|
+
orientation: {
|
|
568
|
+
type: StringConstructor;
|
|
569
|
+
reflect: boolean;
|
|
570
|
+
};
|
|
571
|
+
multipleChoice: {
|
|
572
|
+
type: BooleanConstructor;
|
|
573
|
+
attribute: string;
|
|
574
|
+
};
|
|
575
|
+
selectionFollowsFocus: {
|
|
576
|
+
type: BooleanConstructor;
|
|
577
|
+
attribute: string;
|
|
578
|
+
};
|
|
579
|
+
rotateKeyboardNavigation: {
|
|
580
|
+
type: BooleanConstructor;
|
|
581
|
+
attribute: string;
|
|
582
|
+
};
|
|
583
|
+
noPreselect: {
|
|
584
|
+
type: BooleanConstructor;
|
|
585
|
+
attribute: string;
|
|
586
|
+
};
|
|
587
|
+
itemWrap: {
|
|
588
|
+
type: BooleanConstructor;
|
|
589
|
+
attribute: string;
|
|
590
|
+
};
|
|
591
|
+
_activateOnTypedChars: BooleanConstructor;
|
|
592
|
+
_hasSmartListItems: BooleanConstructor;
|
|
593
|
+
_activeMode: StringConstructor;
|
|
594
|
+
};
|
|
595
|
+
[Symbol.metadata]: object & Record<PropertyKey, unknown>;
|
|
596
|
+
_$litElement$: boolean;
|
|
597
|
+
enabledWarnings?: import("lit").WarningKind[] | undefined;
|
|
598
|
+
enableWarning?: ((warningKind: import("lit").WarningKind) => void) | undefined;
|
|
599
|
+
disableWarning?: ((warningKind: import("lit").WarningKind) => void) | undefined;
|
|
600
|
+
addInitializer: typeof import("lit").ReactiveElement.addInitializer;
|
|
601
|
+
_initializers?: import("lit").Initializer[] | undefined;
|
|
602
|
+
elementProperties: Map<PropertyKey, import("lit").PropertyDeclaration<unknown, unknown>>;
|
|
603
|
+
elementStyles: import("lit").CSSResultOrNative[];
|
|
604
|
+
readonly observedAttributes: string[];
|
|
605
|
+
createProperty: typeof import("lit").ReactiveElement.createProperty;
|
|
606
|
+
getPropertyOptions: typeof import("lit").ReactiveElement.getPropertyOptions;
|
|
607
|
+
shadowRootOptions: ShadowRootInit;
|
|
608
|
+
};
|
|
609
|
+
export type InteractiveListItemRole = import('../types/InteractiveListMixinTypes.js').InteractiveListItemRole;
|
|
610
|
+
import { LitElement } from "lit";
|
|
611
|
+
//# sourceMappingURL=InteractiveListMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractiveListMixin.d.ts","sourceRoot":"","sources":["../../../../components/menu/src/InteractiveListMixin.js"],"names":[],"mappings":"AAsCA;;;;;;;;;;;;;;GAcG;AACH;IACE,kBAAkB;IAClB,6BAEC;IAyBD,yCAME;IA7BF,wCAEC;IAIC,0CAA0C;IAC1C,MADW,uBAAuB,GAAE,EAAE,CACxB;IAOZ,kCAA4C;IAiBhD,+CAKC;CACF;AAED;CAKC;AAGD;;;;;;;;;;;;;;;;;;GAkBG;AACH,iDAFW,OAAO,uBAAuB,EAAE,WAAW,CAAC,OAAO,KAAK,EAAE,UAAU,CAAC;;;;;;QAkE5E;;;;WAIG;;;QASH;;;WAGG;;QAQH;;;;WAIG;;QAMH;;;;WAIG;;;;;QA+EH;;WAEG;;QAkBH;;;WAGG;;QAgBH;;;WAGG;;;;;;QAeD;;;;WAIG;qBADO,OAAO;QAIjB;;;;;;;;;;WAUG;qBADO,kBAAkB,GAAC,iBAAiB,GAAC,qBAAqB,GAAC,MAAM;QAI3E;;;;;WAKG;2BADO,OAAO;QAIjB;;;WAGG;mBADO,MAAM,GAAC,SAAS,GAAC,SAAS,GAAC,MAAM,GAAC,SAAS;QAIrD;;WAEG;qBADO,WAAW,EAAE;QAIvB;;;;;WAKG;+BADO,OAAO;QAIjB;;;WAGG;gCADO,MAAM;QAIhB;;WAEG;sBADO,MAAM,EAAE;QAwSpB;;;WAGG;yBADQ,UAAU;QAerB;;;WAGG;yBADQ,aAAa;QAxKxB;;;WAGG;2BADQ,aAAa;QA2HxB;;;WAGG;2BADQ,UAAU;QAxQrB;;WAEG;wCADQ,OAAO,KAAK,EAAE,cAAc;QAOvC;;WAEG;wDADQ,IAAI,EAAE;;QA4GjB;;;WAGG;iCADQ,QAAQ,EAAE,GAAC,WAAW,EAAE;QAgFnC;;;WAGG;0CAFQ,aAAa,GACX,OAAO;;QAiCpB;;;WAGG;gDADQ;YAAC,KAAK,EAAE,MAAM,EAAE,CAAC;YAAC,IAAI,EAAE,WAAW,CAAA;SAAC;QAQ/C;;WAEG;4CADQ,aAAa;QAgFxB;;;WAGG;sCAFQ,MAAM,UACN,MAAM;QAyBjB;;;WAGG;4CAFQ,MAAM;QAOjB;;;WAGG;gDAFQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAppBjB,kBAAkB;YAAP,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0pBf;sCAxwBU,OAAO,uCAAuC,EAAE,uBAAuB"}
|