@lion/ui 0.6.0-alpha.3 → 0.6.0-alpha.4

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 (71) hide show
  1. package/components/core/src/ScopedElementsMixin.js +2 -0
  2. package/components/core/src/types.ts +19 -0
  3. package/components/input-stepper/src/LionInputStepper.js +4 -1
  4. package/custom-elements.json +66 -0
  5. package/dist-types/components/core/src/ScopedElementsMixin.d.ts +3 -352
  6. package/dist-types/components/core/src/ScopedElementsMixin.d.ts.map +1 -1
  7. package/dist-types/components/core/src/types.d.ts +15 -0
  8. package/dist-types/components/core/src/types.d.ts.map +1 -0
  9. package/dist-types/components/input-datepicker/src/LionInputDatepicker.d.ts +1 -356
  10. package/dist-types/components/input-datepicker/src/LionInputDatepicker.d.ts.map +1 -1
  11. package/dist-types/components/input-file/src/LionInputFile.d.ts +1 -349
  12. package/dist-types/components/input-file/src/LionInputFile.d.ts.map +1 -1
  13. package/dist-types/components/input-file/src/LionSelectedFileList.d.ts +1 -345
  14. package/dist-types/components/input-file/src/LionSelectedFileList.d.ts.map +1 -1
  15. package/dist-types/components/input-stepper/src/LionInputStepper.d.ts.map +1 -1
  16. package/dist-types/components/select-rich/src/LionSelectRich.d.ts +1 -345
  17. package/dist-types/components/select-rich/src/LionSelectRich.d.ts.map +1 -1
  18. package/dist-types/components/switch/src/LionSwitch.d.ts +2 -348
  19. package/dist-types/components/switch/src/LionSwitch.d.ts.map +1 -1
  20. package/dist-types/tsconfig.tsbuildinfo +1 -1
  21. package/docs/components/checkbox-group/overview.md +2 -2
  22. package/docs/components/collapsible/overview.md +1 -1
  23. package/docs/components/combobox/overview.md +1 -1
  24. package/docs/components/combobox/use-cases.md +1 -1
  25. package/docs/components/dialog/overview.md +1 -1
  26. package/docs/components/fieldset/overview.md +5 -5
  27. package/docs/components/form/overview.md +3 -3
  28. package/docs/components/icon/use-cases.md +1 -1
  29. package/docs/components/input/overview.md +1 -1
  30. package/docs/components/input-amount/overview.md +3 -3
  31. package/docs/components/input-date/overview.md +3 -3
  32. package/docs/components/input-datepicker/overview.md +5 -5
  33. package/docs/components/input-email/overview.md +2 -2
  34. package/docs/components/input-file/overview.md +1 -1
  35. package/docs/components/input-iban/overview.md +2 -2
  36. package/docs/components/input-range/overview.md +2 -2
  37. package/docs/components/input-stepper/overview.md +1 -1
  38. package/docs/components/input-tel/overview.md +1 -1
  39. package/docs/components/input-tel/use-cases.md +6 -6
  40. package/docs/components/input-tel-dropdown/overview.md +1 -1
  41. package/docs/components/radio-group/overview.md +3 -3
  42. package/docs/components/select-rich/use-cases.md +1 -1
  43. package/docs/components/tabs/examples.md +1 -1
  44. package/docs/fundamentals/index.md +4 -4
  45. package/docs/fundamentals/node-tools/providence-analytics/LocalConfiguration.md +1 -1
  46. package/docs/fundamentals/node-tools/providence-analytics/QueryResult.md +1 -1
  47. package/docs/fundamentals/node-tools/providence-analytics/analyzer.md +1 -1
  48. package/docs/fundamentals/node-tools/providence-analytics/dashboard.md +1 -1
  49. package/docs/fundamentals/node-tools/providence-analytics/overview.md +3 -3
  50. package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
  51. package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
  52. package/docs/fundamentals/rationales/accessibility.md +1 -1
  53. package/docs/fundamentals/systems/core/SlotMixin.md +1 -1
  54. package/docs/fundamentals/systems/core/overview.md +1 -1
  55. package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
  56. package/docs/fundamentals/systems/form/model-value.md +1 -1
  57. package/docs/fundamentals/systems/form/overview.md +28 -28
  58. package/docs/fundamentals/systems/form/validate.md +1 -1
  59. package/docs/fundamentals/systems/localize/overview.md +4 -4
  60. package/docs/fundamentals/systems/overlays/configuration.md +2 -2
  61. package/docs/fundamentals/systems/overlays/overview.md +5 -5
  62. package/docs/fundamentals/systems/overlays/use-cases.md +2 -2
  63. package/docs/fundamentals/tools/helpers/overview.md +1 -1
  64. package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
  65. package/docs/guides/how-to/create-a-custom-field.md +5 -5
  66. package/docs/guides/how-to/create-a-form.md +4 -4
  67. package/docs/guides/how-to/extend-a-native-input.md +2 -2
  68. package/docs/guides/index.md +8 -8
  69. package/docs/guides/principles/index.md +5 -5
  70. package/docs/guides/principles/styling.md +1 -1
  71. package/package.json +1 -1
@@ -35,6 +35,7 @@ import { ScopedElementsMixin as OpenWcLitScopedElementsMixin } from '@open-wc/sc
35
35
  * @typedef {typeof import('lit').LitElement} TypeofLitElement
36
36
  * @typedef {import('@open-wc/dedupe-mixin').Constructor<LitElement>} LitElementConstructor
37
37
  * @typedef {import('@open-wc/dedupe-mixin').Constructor<ScopedElementsHost>} ScopedElementsHostConstructor
38
+ * @typedef {import('./types.js').ScopedElementsHostV2Constructor} ScopedElementsHostV2Constructor
38
39
  */
39
40
 
40
41
  const supportsScopedRegistry = Boolean(
@@ -45,6 +46,7 @@ const supportsScopedRegistry = Boolean(
45
46
  /**
46
47
  * @template {LitElementConstructor} T
47
48
  * @param {T} superclass
49
+ * @return {T & ScopedElementsHostConstructor & ScopedElementsHostV2Constructor}
48
50
  */
49
51
  const ScopedElementsMixinImplementation = superclass =>
50
52
  /** @type {ScopedElementsHost} */
@@ -0,0 +1,19 @@
1
+ // Note. This file is a partial copy of https://github.com/open-wc/open-wc/blob/scoped-elements-v2/packages/scoped-elements/src/types.d.ts
2
+
3
+ import { Constructor } from '@open-wc/dedupe-mixin';
4
+
5
+ export declare class ScopedElementsHostV2 {
6
+ /**
7
+ * Defines a scoped element inside the CustomElementRegistry bound to the shadowRoot.
8
+ */
9
+ defineScopedElement<T extends HTMLElement>(tagName: string, klass: Constructor<T>): void;
10
+
11
+ /**
12
+ * Create a scoped element inside the CustomElementRegistry bound to the shadowRoot.
13
+ *
14
+ * @param tagName string The tag name of the element to create
15
+ */
16
+ createScopedElement(tagName: string): HTMLElement;
17
+ }
18
+
19
+ export type ScopedElementsHostV2Constructor = Constructor<ScopedElementsHostV2>;
@@ -196,7 +196,10 @@ export class LionInputStepper extends LocalizeMixin(LionInput) {
196
196
  const incrementButton = this.__getSlot('suffix');
197
197
  const disableIncrementor = this.currentValue >= max && max !== Infinity;
198
198
  const disableDecrementor = this.currentValue <= min && min !== Infinity;
199
- if (disableDecrementor || disableIncrementor) {
199
+ if (
200
+ (disableDecrementor && decrementButton === document.activeElement) ||
201
+ (disableIncrementor && incrementButton === document.activeElement)
202
+ ) {
200
203
  this._inputNode.focus();
201
204
  }
202
205
  decrementButton[disableDecrementor ? 'setAttribute' : 'removeAttribute']('disabled', 'true');
@@ -21906,6 +21906,72 @@
21906
21906
  }
21907
21907
  ]
21908
21908
  },
21909
+ {
21910
+ "kind": "javascript-module",
21911
+ "path": "components/core/src/types.ts",
21912
+ "declarations": [
21913
+ {
21914
+ "kind": "class",
21915
+ "description": "",
21916
+ "name": "ScopedElementsHostV2",
21917
+ "members": [
21918
+ {
21919
+ "kind": "method",
21920
+ "name": "defineScopedElement",
21921
+ "return": {
21922
+ "type": {
21923
+ "text": "void"
21924
+ }
21925
+ },
21926
+ "parameters": [
21927
+ {
21928
+ "name": "tagName",
21929
+ "type": {
21930
+ "text": "string"
21931
+ }
21932
+ },
21933
+ {
21934
+ "name": "klass",
21935
+ "type": {
21936
+ "text": "Constructor<T>"
21937
+ }
21938
+ }
21939
+ ],
21940
+ "description": "Defines a scoped element inside the CustomElementRegistry bound to the shadowRoot."
21941
+ },
21942
+ {
21943
+ "kind": "method",
21944
+ "name": "createScopedElement",
21945
+ "return": {
21946
+ "type": {
21947
+ "text": "HTMLElement"
21948
+ }
21949
+ },
21950
+ "parameters": [
21951
+ {
21952
+ "name": "tagName",
21953
+ "type": {
21954
+ "text": "string"
21955
+ },
21956
+ "description": "string The tag name of the element to create"
21957
+ }
21958
+ ],
21959
+ "description": "Create a scoped element inside the CustomElementRegistry bound to the shadowRoot."
21960
+ }
21961
+ ]
21962
+ }
21963
+ ],
21964
+ "exports": [
21965
+ {
21966
+ "kind": "js",
21967
+ "name": "ScopedElementsHostV2",
21968
+ "declaration": {
21969
+ "name": "ScopedElementsHostV2",
21970
+ "module": "components/core/src/types.ts"
21971
+ }
21972
+ }
21973
+ ]
21974
+ },
21909
21975
  {
21910
21976
  "kind": "javascript-module",
21911
21977
  "path": "components/core/src/uuid.js",
@@ -1,359 +1,9 @@
1
1
  /**
2
2
  * @template {LitElementConstructor} T
3
3
  * @param {T} superclass
4
+ * @return {T & ScopedElementsHostConstructor & ScopedElementsHostV2Constructor}
4
5
  */
5
- export function ScopedElementsMixin<T extends LitElementConstructor>(superclass: T): {
6
- new (...args: any[]): {
7
- createScopedElement(tagName: string): any;
8
- /**
9
- * Defines a scoped element.
10
- *
11
- * @param {string} tagName
12
- * @param {typeof HTMLElement} klass
13
- */
14
- defineScopedElement(tagName: string, klass: typeof HTMLElement): any;
15
- /**
16
- * @param {ShadowRootInit} options
17
- * @returns {ShadowRoot}
18
- */
19
- attachShadow(options: ShadowRootInit): ShadowRoot;
20
- registry: any;
21
- createRenderRoot(): ShadowRoot;
22
- readonly renderOptions: import("lit-html").RenderOptions;
23
- __childPart: any;
24
- update(changedProperties: import("lit").PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
25
- connectedCallback(): void;
26
- disconnectedCallback(): void;
27
- render(): unknown;
28
- __instanceProperties?: any;
29
- readonly renderRoot: HTMLElement | DocumentFragment;
30
- __updatePromise: any;
31
- isUpdatePending: boolean;
32
- hasUpdated: boolean;
33
- __reflectingProperties?: any;
34
- __reflectingProperty: any;
35
- __controllers?: any;
36
- __initialize: any;
37
- addController(controller: import("lit").ReactiveController): void;
38
- removeController(controller: import("lit").ReactiveController): void;
39
- __saveInstanceProperties: any;
40
- enableUpdating(_requestedUpdate: boolean): void;
41
- attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
42
- __propertyToAttribute: any;
43
- requestUpdate(name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined): void;
44
- __enqueueUpdate: any;
45
- scheduleUpdate(): void | Promise<unknown>;
46
- performUpdate(): void;
47
- willUpdate(_changedProperties: import("lit").PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
48
- __markUpdated: any;
49
- readonly updateComplete: Promise<boolean>;
50
- getUpdateComplete(): Promise<boolean>;
51
- shouldUpdate(_changedProperties: import("lit").PropertyValueMap<any> | Map<PropertyKey, unknown>): boolean;
52
- updated(_changedProperties: import("lit").PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
53
- firstUpdated(_changedProperties: import("lit").PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
54
- accessKey: string;
55
- readonly accessKeyLabel: string;
56
- autocapitalize: string;
57
- dir: string;
58
- draggable: boolean;
59
- hidden: boolean;
60
- inert: boolean;
61
- innerText: string;
62
- lang: string;
63
- readonly offsetHeight: number;
64
- readonly offsetLeft: number;
65
- readonly offsetParent: Element | null;
66
- readonly offsetTop: number;
67
- readonly offsetWidth: number;
68
- outerText: string;
69
- spellcheck: boolean;
70
- title: string;
71
- translate: boolean;
72
- attachInternals(): ElementInternals;
73
- click(): void;
74
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
75
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
76
- removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
77
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
78
- readonly attributes: NamedNodeMap;
79
- readonly classList: DOMTokenList;
80
- className: string;
81
- readonly clientHeight: number;
82
- readonly clientLeft: number;
83
- readonly clientTop: number;
84
- readonly clientWidth: number;
85
- id: string;
86
- readonly localName: string;
87
- readonly namespaceURI: string | null;
88
- onfullscreenchange: ((this: Element, ev: Event) => any) | null;
89
- onfullscreenerror: ((this: Element, ev: Event) => any) | null;
90
- outerHTML: string;
91
- readonly ownerDocument: Document;
92
- readonly part: DOMTokenList;
93
- readonly prefix: string | null;
94
- readonly scrollHeight: number;
95
- scrollLeft: number;
96
- scrollTop: number;
97
- readonly scrollWidth: number;
98
- readonly shadowRoot: ShadowRoot | null;
99
- slot: string;
100
- readonly tagName: string;
101
- closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
102
- closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
103
- closest<E extends Element = Element>(selectors: string): E | null;
104
- getAttribute(qualifiedName: string): string | null;
105
- getAttributeNS(namespace: string | null, localName: string): string | null;
106
- getAttributeNames(): string[];
107
- getAttributeNode(qualifiedName: string): Attr | null;
108
- getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
109
- getBoundingClientRect(): DOMRect;
110
- getClientRects(): DOMRectList;
111
- getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
112
- getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
113
- getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
114
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
115
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
116
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
117
- getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
118
- hasAttribute(qualifiedName: string): boolean;
119
- hasAttributeNS(namespace: string | null, localName: string): boolean;
120
- hasAttributes(): boolean;
121
- hasPointerCapture(pointerId: number): boolean;
122
- insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
123
- insertAdjacentHTML(position: InsertPosition, text: string): void;
124
- insertAdjacentText(where: InsertPosition, data: string): void;
125
- matches(selectors: string): boolean;
126
- releasePointerCapture(pointerId: number): void;
127
- removeAttribute(qualifiedName: string): void;
128
- removeAttributeNS(namespace: string | null, localName: string): void;
129
- removeAttributeNode(attr: Attr): Attr;
130
- requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
131
- requestPointerLock(): void;
132
- scroll(options?: ScrollToOptions | undefined): void;
133
- scroll(x: number, y: number): void;
134
- scrollBy(options?: ScrollToOptions | undefined): void;
135
- scrollBy(x: number, y: number): void;
136
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
137
- scrollTo(options?: ScrollToOptions | undefined): void;
138
- scrollTo(x: number, y: number): void;
139
- setAttribute(qualifiedName: string, value: string): void;
140
- setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
141
- setAttributeNode(attr: Attr): Attr | null;
142
- setAttributeNodeNS(attr: Attr): Attr | null;
143
- setPointerCapture(pointerId: number): void;
144
- toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
145
- webkitMatchesSelector(selectors: string): boolean;
146
- readonly baseURI: string;
147
- readonly childNodes: NodeListOf<ChildNode>;
148
- readonly firstChild: ChildNode | null;
149
- readonly isConnected: boolean;
150
- readonly lastChild: ChildNode | null;
151
- readonly nextSibling: ChildNode | null;
152
- readonly nodeName: string;
153
- readonly nodeType: number;
154
- nodeValue: string | null;
155
- readonly parentElement: HTMLElement | null;
156
- readonly parentNode: ParentNode | null;
157
- readonly previousSibling: ChildNode | null;
158
- textContent: string | null;
159
- appendChild<T_1 extends Node>(node: T_1): T_1;
160
- cloneNode(deep?: boolean | undefined): Node;
161
- compareDocumentPosition(other: Node): number;
162
- contains(other: Node | null): boolean;
163
- getRootNode(options?: GetRootNodeOptions | undefined): Node;
164
- hasChildNodes(): boolean;
165
- insertBefore<T_2 extends Node>(node: T_2, child: Node | null): T_2;
166
- isDefaultNamespace(namespace: string | null): boolean;
167
- isEqualNode(otherNode: Node | null): boolean;
168
- isSameNode(otherNode: Node | null): boolean;
169
- lookupNamespaceURI(prefix: string | null): string | null;
170
- lookupPrefix(namespace: string | null): string | null;
171
- normalize(): void;
172
- removeChild<T_3 extends Node>(child: T_3): T_3;
173
- replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
174
- readonly ATTRIBUTE_NODE: number;
175
- readonly CDATA_SECTION_NODE: number;
176
- readonly COMMENT_NODE: number;
177
- readonly DOCUMENT_FRAGMENT_NODE: number;
178
- readonly DOCUMENT_NODE: number;
179
- readonly DOCUMENT_POSITION_CONTAINED_BY: number;
180
- readonly DOCUMENT_POSITION_CONTAINS: number;
181
- readonly DOCUMENT_POSITION_DISCONNECTED: number;
182
- readonly DOCUMENT_POSITION_FOLLOWING: number;
183
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
184
- readonly DOCUMENT_POSITION_PRECEDING: number;
185
- readonly DOCUMENT_TYPE_NODE: number;
186
- readonly ELEMENT_NODE: number;
187
- readonly ENTITY_NODE: number;
188
- readonly ENTITY_REFERENCE_NODE: number;
189
- readonly NOTATION_NODE: number;
190
- readonly PROCESSING_INSTRUCTION_NODE: number;
191
- readonly TEXT_NODE: number;
192
- dispatchEvent(event: Event): boolean;
193
- ariaAtomic: string | null;
194
- ariaAutoComplete: string | null;
195
- ariaBusy: string | null;
196
- ariaChecked: string | null;
197
- ariaColCount: string | null;
198
- ariaColIndex: string | null;
199
- ariaColSpan: string | null;
200
- ariaCurrent: string | null;
201
- ariaDisabled: string | null;
202
- ariaExpanded: string | null;
203
- ariaHasPopup: string | null;
204
- ariaHidden: string | null;
205
- ariaKeyShortcuts: string | null;
206
- ariaLabel: string | null;
207
- ariaLevel: string | null;
208
- ariaLive: string | null;
209
- ariaModal: string | null;
210
- ariaMultiLine: string | null;
211
- ariaMultiSelectable: string | null;
212
- ariaOrientation: string | null;
213
- ariaPlaceholder: string | null;
214
- ariaPosInSet: string | null;
215
- ariaPressed: string | null;
216
- ariaReadOnly: string | null;
217
- ariaRequired: string | null;
218
- ariaRoleDescription: string | null;
219
- ariaRowCount: string | null;
220
- ariaRowIndex: string | null;
221
- ariaRowSpan: string | null;
222
- ariaSelected: string | null;
223
- ariaSetSize: string | null;
224
- ariaSort: string | null;
225
- ariaValueMax: string | null;
226
- ariaValueMin: string | null;
227
- ariaValueNow: string | null;
228
- ariaValueText: string | null;
229
- animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
230
- getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
231
- after(...nodes: (string | Node)[]): void;
232
- before(...nodes: (string | Node)[]): void;
233
- remove(): void;
234
- replaceWith(...nodes: (string | Node)[]): void;
235
- innerHTML: string;
236
- readonly nextElementSibling: Element | null;
237
- readonly previousElementSibling: Element | null;
238
- readonly childElementCount: number;
239
- readonly children: HTMLCollection;
240
- readonly firstElementChild: Element | null;
241
- readonly lastElementChild: Element | null;
242
- append(...nodes: (string | Node)[]): void;
243
- prepend(...nodes: (string | Node)[]): void;
244
- querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6] | null;
245
- querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7] | null;
246
- querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
247
- querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
248
- querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
249
- querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
250
- replaceChildren(...nodes: (string | Node)[]): void;
251
- readonly assignedSlot: HTMLSlotElement | null;
252
- oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
253
- oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
254
- onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
255
- readonly style: CSSStyleDeclaration;
256
- contentEditable: string;
257
- enterKeyHint: string;
258
- inputMode: string;
259
- readonly isContentEditable: boolean;
260
- onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
261
- onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
262
- onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
263
- onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
264
- onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
265
- onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
266
- onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
267
- oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
268
- oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
269
- onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
270
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
271
- onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
272
- oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
273
- oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
274
- ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
275
- ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
276
- ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
277
- ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
278
- ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
279
- ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
280
- ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
281
- ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
282
- ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
283
- onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
284
- onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
285
- onerror: OnErrorEventHandler;
286
- onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
287
- onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
288
- ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
289
- oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
290
- oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
291
- onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
292
- onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
293
- onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
294
- onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
295
- onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
296
- onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
297
- onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
298
- onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
299
- onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
300
- onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
301
- onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
302
- onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
303
- onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
304
- onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
305
- onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
306
- onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
307
- onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
308
- onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
309
- onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
310
- onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
311
- onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
312
- onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
313
- onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
314
- onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
315
- onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
316
- onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
317
- onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
318
- onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
319
- onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
320
- onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
321
- onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
322
- onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
323
- onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
324
- onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
325
- onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
326
- onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
327
- onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
328
- onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
329
- onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
330
- onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
331
- onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
332
- ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
333
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
334
- ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
335
- ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
336
- ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
337
- ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
338
- ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
339
- ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
340
- ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
341
- ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
342
- onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
343
- onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
344
- onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
345
- onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
346
- onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
347
- onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
348
- onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
349
- autofocus: boolean;
350
- readonly dataset: DOMStringMap;
351
- nonce?: string | undefined;
352
- tabIndex: number;
353
- blur(): void;
354
- focus(options?: FocusOptions | undefined): void;
355
- };
356
- } & T;
6
+ export function ScopedElementsMixin<T extends LitElementConstructor>(superclass: T): T & ScopedElementsHostConstructor & import("./types.js").ScopedElementsHostV2Constructor;
357
7
  export type ScopedElementsHost = import('@open-wc/scoped-elements/lit-element.js').ScopedElementsHost;
358
8
  export type ScopedElementsMap = import('../../form-core/types/validate/ValidateMixinTypes.js').ScopedElementsMap;
359
9
  export type CSSResultOrNative = import('lit').CSSResultOrNative;
@@ -361,4 +11,5 @@ export type LitElement = import('lit').LitElement;
361
11
  export type TypeofLitElement = typeof import('lit').LitElement;
362
12
  export type LitElementConstructor = import('@open-wc/dedupe-mixin').Constructor<LitElement>;
363
13
  export type ScopedElementsHostConstructor = import('@open-wc/dedupe-mixin').Constructor<ScopedElementsHost>;
14
+ export type ScopedElementsHostV2Constructor = import('./types.js').ScopedElementsHostV2Constructor;
364
15
  //# sourceMappingURL=ScopedElementsMixin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScopedElementsMixin.d.ts","sourceRoot":"","sources":["../../../../components/core/src/ScopedElementsMixin.js"],"names":[],"mappings":"AA4CA;;;GAGG;AACH;;qCAGmC,MAAM;QAMrC;;;;;WAKG;qCAFQ,MAAM,SACN,kBAAkB;QA0B7B;;;WAGG;8BAFQ,cAAc,GACZ,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsDxB;iCAjHU,OAAO,yCAAyC,EAAE,kBAAkB;gCACpE,OAAO,sDAAsD,EAAE,iBAAiB;gCAChF,OAAO,KAAK,EAAE,iBAAiB;yBAC/B,OAAO,KAAK,EAAE,UAAU;+BACxB,cAAc,KAAK,EAAE,UAAU;oCAC/B,OAAO,uBAAuB,EAAE,WAAW,CAAC,UAAU,CAAC;4CACvD,OAAO,uBAAuB,EAAE,WAAW,CAAC,kBAAkB,CAAC"}
1
+ {"version":3,"file":"ScopedElementsMixin.d.ts","sourceRoot":"","sources":["../../../../components/core/src/ScopedElementsMixin.js"],"names":[],"mappings":"AA6CA;;;;GAIG;AACH,8KA+FG;iCAnHU,OAAO,yCAAyC,EAAE,kBAAkB;gCACpE,OAAO,sDAAsD,EAAE,iBAAiB;gCAChF,OAAO,KAAK,EAAE,iBAAiB;yBAC/B,OAAO,KAAK,EAAE,UAAU;+BACxB,cAAc,KAAK,EAAE,UAAU;oCAC/B,OAAO,uBAAuB,EAAE,WAAW,CAAC,UAAU,CAAC;4CACvD,OAAO,uBAAuB,EAAE,WAAW,CAAC,kBAAkB,CAAC;8CAC/D,OAAO,YAAY,EAAE,+BAA+B"}
@@ -0,0 +1,15 @@
1
+ import { Constructor } from '@open-wc/dedupe-mixin';
2
+ export declare class ScopedElementsHostV2 {
3
+ /**
4
+ * Defines a scoped element inside the CustomElementRegistry bound to the shadowRoot.
5
+ */
6
+ defineScopedElement<T extends HTMLElement>(tagName: string, klass: Constructor<T>): void;
7
+ /**
8
+ * Create a scoped element inside the CustomElementRegistry bound to the shadowRoot.
9
+ *
10
+ * @param tagName string The tag name of the element to create
11
+ */
12
+ createScopedElement(tagName: string): HTMLElement;
13
+ }
14
+ export declare type ScopedElementsHostV2Constructor = Constructor<ScopedElementsHostV2>;
15
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../components/core/src/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,oBAAoB;IACvC;;OAEG;IACH,mBAAmB,CAAC,CAAC,SAAS,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI;IAExF;;;;OAIG;IACH,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW;CAClD;AAED,oBAAY,+BAA+B,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAAC"}