@italia/globals 0.1.0-alpha.1 → 1.0.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 (58) hide show
  1. package/custom-elements.json +1655 -168
  2. package/dist/src/base-component/base-component.d.ts +28 -13
  3. package/dist/src/base-component/base-component.d.ts.map +1 -1
  4. package/dist/src/base-component/base-component.js +27 -17
  5. package/dist/src/base-component/base-component.js.map +1 -1
  6. package/dist/src/controllers/aria-keyboard-accordion-controller.d.ts +15 -0
  7. package/dist/src/controllers/aria-keyboard-accordion-controller.d.ts.map +1 -0
  8. package/dist/src/controllers/aria-keyboard-accordion-controller.js +52 -0
  9. package/dist/src/controllers/aria-keyboard-accordion-controller.js.map +1 -0
  10. package/dist/src/controllers/aria-keyboard-list-controller.d.ts +18 -0
  11. package/dist/src/controllers/aria-keyboard-list-controller.d.ts.map +1 -0
  12. package/dist/src/controllers/aria-keyboard-list-controller.js +58 -0
  13. package/dist/src/controllers/aria-keyboard-list-controller.js.map +1 -0
  14. package/dist/src/controllers/collapse-controller.d.ts +12 -0
  15. package/dist/src/controllers/collapse-controller.d.ts.map +1 -0
  16. package/dist/src/controllers/collapse-controller.js +95 -0
  17. package/dist/src/controllers/collapse-controller.js.map +1 -0
  18. package/dist/src/controllers/roving-tabindex-controller.d.ts +85 -0
  19. package/dist/src/controllers/roving-tabindex-controller.d.ts.map +1 -0
  20. package/dist/src/controllers/roving-tabindex-controller.js +200 -0
  21. package/dist/src/controllers/roving-tabindex-controller.js.map +1 -0
  22. package/dist/src/form/form-control.d.ts +61 -0
  23. package/dist/src/form/form-control.d.ts.map +1 -0
  24. package/dist/src/form/form-control.js +259 -0
  25. package/dist/src/form/form-control.js.map +1 -0
  26. package/dist/src/form/form-controller.d.ts +68 -0
  27. package/dist/src/form/form-controller.d.ts.map +1 -0
  28. package/dist/src/form/form-controller.js +398 -0
  29. package/dist/src/form/form-controller.js.map +1 -0
  30. package/dist/src/form/locales/it.d.ts +4 -0
  31. package/dist/src/form/locales/it.d.ts.map +1 -0
  32. package/dist/src/form/locales/it.js +12 -0
  33. package/dist/src/form/locales/it.js.map +1 -0
  34. package/dist/src/index.d.ts +20 -4
  35. package/dist/src/index.d.ts.map +1 -1
  36. package/dist/src/index.js +18 -4
  37. package/dist/src/index.js.map +1 -1
  38. package/dist/src/mixins/validity.d.ts +19 -19
  39. package/dist/src/mixins/validity.d.ts.map +1 -1
  40. package/dist/src/mixins/validity.js +6 -68
  41. package/dist/src/mixins/validity.js.map +1 -1
  42. package/dist/src/stories/formControlReusableStories.d.ts +19 -0
  43. package/dist/src/stories/formControlReusableStories.d.ts.map +1 -0
  44. package/dist/src/stories/formControlReusableStories.js +64 -0
  45. package/dist/src/stories/formControlReusableStories.js.map +1 -0
  46. package/dist/src/stories/reusableUsageGuidelinesStories.d.ts +13 -0
  47. package/dist/src/stories/reusableUsageGuidelinesStories.d.ts.map +1 -0
  48. package/dist/src/stories/reusableUsageGuidelinesStories.js +39 -0
  49. package/dist/src/stories/reusableUsageGuidelinesStories.js.map +1 -0
  50. package/dist/src/window-manager.d.ts +20 -0
  51. package/dist/src/window-manager.d.ts.map +1 -0
  52. package/dist/src/window-manager.js +47 -0
  53. package/dist/src/window-manager.js.map +1 -0
  54. package/package.json +10 -8
  55. package/dist/src/mixins/form.d.ts +0 -363
  56. package/dist/src/mixins/form.d.ts.map +0 -1
  57. package/dist/src/mixins/form.js +0 -36
  58. package/dist/src/mixins/form.js.map +0 -1
@@ -1,363 +0,0 @@
1
- import { Constructor } from '../index.js';
2
- /**
3
- * @license
4
- *
5
- * Copyright IBM Corp. 2020, 2022
6
- *
7
- * This source code is licensed under the Apache-2.0 license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
- /**
11
- * @param Base The base class.
12
- * @returns A mix-in to handle `formdata` event on the containing form.
13
- */
14
- declare const FormMixin: <TBase extends Constructor<HTMLElement>>(Base: TBase) => (abstract new (...args: any[]) => {
15
- /**
16
- * Handles `formdata` event.
17
- *
18
- * @param event The event.
19
- */
20
- _handleFormdata(event: Event): void;
21
- connectedCallback(): void;
22
- disconnectedCallback(): void;
23
- accessKey: string;
24
- readonly accessKeyLabel: string;
25
- autocapitalize: string;
26
- dir: string;
27
- draggable: boolean;
28
- hidden: boolean;
29
- inert: boolean;
30
- innerText: string;
31
- lang: string;
32
- readonly offsetHeight: number;
33
- readonly offsetLeft: number;
34
- readonly offsetParent: Element | null;
35
- readonly offsetTop: number;
36
- readonly offsetWidth: number;
37
- outerText: string;
38
- popover: string | null;
39
- spellcheck: boolean;
40
- title: string;
41
- translate: boolean;
42
- writingSuggestions: string;
43
- attachInternals(): ElementInternals;
44
- click(): void;
45
- hidePopover(): void;
46
- showPopover(): void;
47
- togglePopover(options?: boolean): boolean;
48
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
49
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
50
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
51
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
52
- readonly attributes: NamedNodeMap;
53
- get classList(): DOMTokenList;
54
- set classList(value: string);
55
- className: string;
56
- readonly clientHeight: number;
57
- readonly clientLeft: number;
58
- readonly clientTop: number;
59
- readonly clientWidth: number;
60
- readonly currentCSSZoom: number;
61
- id: string;
62
- innerHTML: string;
63
- readonly localName: string;
64
- readonly namespaceURI: string | null;
65
- onfullscreenchange: ((this: Element, ev: Event) => any) | null;
66
- onfullscreenerror: ((this: Element, ev: Event) => any) | null;
67
- outerHTML: string;
68
- readonly ownerDocument: Document;
69
- get part(): DOMTokenList;
70
- set part(value: string);
71
- readonly prefix: string | null;
72
- readonly scrollHeight: number;
73
- scrollLeft: number;
74
- scrollTop: number;
75
- readonly scrollWidth: number;
76
- readonly shadowRoot: ShadowRoot | null;
77
- slot: string;
78
- readonly tagName: string;
79
- attachShadow(init: ShadowRootInit): ShadowRoot;
80
- checkVisibility(options?: CheckVisibilityOptions): boolean;
81
- closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
82
- closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
83
- closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
84
- closest<E extends Element = Element>(selectors: string): E | null;
85
- computedStyleMap(): StylePropertyMapReadOnly;
86
- getAttribute(qualifiedName: string): string | null;
87
- getAttributeNS(namespace: string | null, localName: string): string | null;
88
- getAttributeNames(): string[];
89
- getAttributeNode(qualifiedName: string): Attr | null;
90
- getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
91
- getBoundingClientRect(): DOMRect;
92
- getClientRects(): DOMRectList;
93
- getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
94
- getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
95
- getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
96
- getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
97
- getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
98
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
99
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
100
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
101
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
102
- getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
103
- getHTML(options?: GetHTMLOptions): string;
104
- hasAttribute(qualifiedName: string): boolean;
105
- hasAttributeNS(namespace: string | null, localName: string): boolean;
106
- hasAttributes(): boolean;
107
- hasPointerCapture(pointerId: number): boolean;
108
- insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
109
- insertAdjacentHTML(position: InsertPosition, string: string): void;
110
- insertAdjacentText(where: InsertPosition, data: string): void;
111
- matches(selectors: string): boolean;
112
- releasePointerCapture(pointerId: number): void;
113
- removeAttribute(qualifiedName: string): void;
114
- removeAttributeNS(namespace: string | null, localName: string): void;
115
- removeAttributeNode(attr: Attr): Attr;
116
- requestFullscreen(options?: FullscreenOptions): Promise<void>;
117
- requestPointerLock(options?: PointerLockOptions): Promise<void>;
118
- scroll(options?: ScrollToOptions): void;
119
- scroll(x: number, y: number): void;
120
- scrollBy(options?: ScrollToOptions): void;
121
- scrollBy(x: number, y: number): void;
122
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
123
- scrollTo(options?: ScrollToOptions): void;
124
- scrollTo(x: number, y: number): void;
125
- setAttribute(qualifiedName: string, value: string): void;
126
- setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
127
- setAttributeNode(attr: Attr): Attr | null;
128
- setAttributeNodeNS(attr: Attr): Attr | null;
129
- setHTMLUnsafe(html: string): void;
130
- setPointerCapture(pointerId: number): void;
131
- toggleAttribute(qualifiedName: string, force?: boolean): boolean;
132
- webkitMatchesSelector(selectors: string): boolean;
133
- readonly baseURI: string;
134
- readonly childNodes: NodeListOf<ChildNode>;
135
- readonly firstChild: ChildNode | null;
136
- readonly isConnected: boolean;
137
- readonly lastChild: ChildNode | null;
138
- readonly nextSibling: ChildNode | null;
139
- readonly nodeName: string;
140
- readonly nodeType: number;
141
- nodeValue: string | null;
142
- readonly parentElement: HTMLElement | null;
143
- readonly parentNode: ParentNode | null;
144
- readonly previousSibling: ChildNode | null;
145
- textContent: string | null;
146
- appendChild<T extends Node>(node: T): T;
147
- cloneNode(subtree?: boolean): Node;
148
- compareDocumentPosition(other: Node): number;
149
- contains(other: Node | null): boolean;
150
- getRootNode(options?: GetRootNodeOptions): Node;
151
- hasChildNodes(): boolean;
152
- insertBefore<T extends Node>(node: T, child: Node | null): T;
153
- isDefaultNamespace(namespace: string | null): boolean;
154
- isEqualNode(otherNode: Node | null): boolean;
155
- isSameNode(otherNode: Node | null): boolean;
156
- lookupNamespaceURI(prefix: string | null): string | null;
157
- lookupPrefix(namespace: string | null): string | null;
158
- normalize(): void;
159
- removeChild<T extends Node>(child: T): T;
160
- replaceChild<T extends Node>(node: Node, child: T): T;
161
- readonly ELEMENT_NODE: 1;
162
- readonly ATTRIBUTE_NODE: 2;
163
- readonly TEXT_NODE: 3;
164
- readonly CDATA_SECTION_NODE: 4;
165
- readonly ENTITY_REFERENCE_NODE: 5;
166
- readonly ENTITY_NODE: 6;
167
- readonly PROCESSING_INSTRUCTION_NODE: 7;
168
- readonly COMMENT_NODE: 8;
169
- readonly DOCUMENT_NODE: 9;
170
- readonly DOCUMENT_TYPE_NODE: 10;
171
- readonly DOCUMENT_FRAGMENT_NODE: 11;
172
- readonly NOTATION_NODE: 12;
173
- readonly DOCUMENT_POSITION_DISCONNECTED: 1;
174
- readonly DOCUMENT_POSITION_PRECEDING: 2;
175
- readonly DOCUMENT_POSITION_FOLLOWING: 4;
176
- readonly DOCUMENT_POSITION_CONTAINS: 8;
177
- readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
178
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
179
- dispatchEvent(event: Event): boolean;
180
- ariaAtomic: string | null;
181
- ariaAutoComplete: string | null;
182
- ariaBrailleLabel: string | null;
183
- ariaBrailleRoleDescription: string | null;
184
- ariaBusy: string | null;
185
- ariaChecked: string | null;
186
- ariaColCount: string | null;
187
- ariaColIndex: string | null;
188
- ariaColIndexText: string | null;
189
- ariaColSpan: string | null;
190
- ariaCurrent: string | null;
191
- ariaDescription: string | null;
192
- ariaDisabled: string | null;
193
- ariaExpanded: string | null;
194
- ariaHasPopup: string | null;
195
- ariaHidden: string | null;
196
- ariaInvalid: string | null;
197
- ariaKeyShortcuts: string | null;
198
- ariaLabel: string | null;
199
- ariaLevel: string | null;
200
- ariaLive: string | null;
201
- ariaModal: string | null;
202
- ariaMultiLine: string | null;
203
- ariaMultiSelectable: string | null;
204
- ariaOrientation: string | null;
205
- ariaPlaceholder: string | null;
206
- ariaPosInSet: string | null;
207
- ariaPressed: string | null;
208
- ariaReadOnly: string | null;
209
- ariaRelevant: string | null;
210
- ariaRequired: string | null;
211
- ariaRoleDescription: string | null;
212
- ariaRowCount: string | null;
213
- ariaRowIndex: string | null;
214
- ariaRowIndexText: string | null;
215
- ariaRowSpan: string | null;
216
- ariaSelected: string | null;
217
- ariaSetSize: string | null;
218
- ariaSort: string | null;
219
- ariaValueMax: string | null;
220
- ariaValueMin: string | null;
221
- ariaValueNow: string | null;
222
- ariaValueText: string | null;
223
- role: string | null;
224
- animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
225
- getAnimations(options?: GetAnimationsOptions): Animation[];
226
- after(...nodes: (Node | string)[]): void;
227
- before(...nodes: (Node | string)[]): void;
228
- remove(): void;
229
- replaceWith(...nodes: (Node | string)[]): void;
230
- readonly nextElementSibling: Element | null;
231
- readonly previousElementSibling: Element | null;
232
- readonly childElementCount: number;
233
- readonly children: HTMLCollection;
234
- readonly firstElementChild: Element | null;
235
- readonly lastElementChild: Element | null;
236
- append(...nodes: (Node | string)[]): void;
237
- prepend(...nodes: (Node | string)[]): void;
238
- querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
239
- querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
240
- querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
241
- querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
242
- querySelector<E extends Element = Element>(selectors: string): E | null;
243
- querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
244
- querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
245
- querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
246
- querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
247
- querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
248
- replaceChildren(...nodes: (Node | string)[]): void;
249
- readonly assignedSlot: HTMLSlotElement | null;
250
- readonly attributeStyleMap: StylePropertyMap;
251
- get style(): CSSStyleDeclaration;
252
- set style(cssText: string);
253
- contentEditable: string;
254
- enterKeyHint: string;
255
- inputMode: string;
256
- readonly isContentEditable: boolean;
257
- onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
258
- onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
259
- onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
260
- onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
261
- onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
262
- onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
263
- onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
264
- onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
265
- onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
266
- oncancel: ((this: GlobalEventHandlers, ev: Event) => 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
- oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
273
- oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
274
- oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
275
- oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
276
- oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
277
- oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
278
- ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
279
- ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
280
- ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
281
- ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
282
- ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
283
- ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
284
- ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
285
- ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
286
- ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
287
- onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
288
- onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
289
- onerror: OnErrorEventHandler;
290
- onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
291
- onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
292
- ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
293
- oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
294
- oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
295
- onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
296
- onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
297
- onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
298
- onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
299
- onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
300
- onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
301
- onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
302
- onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
303
- onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
304
- onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
305
- onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
306
- onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
307
- onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
308
- onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
309
- onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
310
- onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
311
- onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
312
- onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
313
- onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
314
- onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
315
- onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
316
- onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
317
- onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
318
- onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
319
- onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
320
- onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
321
- onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
322
- onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
323
- onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
324
- onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
325
- onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
326
- onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
327
- onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
328
- onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
329
- onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
330
- onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
331
- onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
332
- onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
333
- onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
334
- onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
335
- onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
336
- onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
337
- onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
338
- ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
339
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
340
- ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
341
- ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
342
- ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
343
- ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
344
- ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
345
- ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
346
- ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
347
- ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
348
- onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
349
- onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
350
- onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
351
- onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
352
- onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
353
- onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
354
- onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
355
- autofocus: boolean;
356
- readonly dataset: DOMStringMap;
357
- nonce?: string;
358
- tabIndex: number;
359
- blur(): void;
360
- focus(options?: FocusOptions): void;
361
- }) & TBase;
362
- export default FormMixin;
363
- //# sourceMappingURL=form.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/mixins/form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C;;;;;;;GAOG;AAEH;;;GAGG;AACH,QAAA,MAAM,SAAS,GAAI,KAAK,SAAS,WAAW,CAAC,WAAW,CAAC,EAAE,MAAM,KAAK;IAKlE;;;;OAIG;2BAC6B,KAAK,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAmB/C,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,36 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Copyright IBM Corp. 2020, 2022
5
- *
6
- * This source code is licensed under the Apache-2.0 license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
9
- /**
10
- * @param Base The base class.
11
- * @returns A mix-in to handle `formdata` event on the containing form.
12
- */
13
- const FormMixin = (Base) => {
14
- /**
15
- * A mix-in class to handle `formdata` event on the containing form.
16
- */
17
- class FormMixinImpl extends Base {
18
- connectedCallback() {
19
- // @ts-ignore
20
- super.connectedCallback();
21
- if (this.closest('form')) {
22
- this.closest('form')?.addEventListener('formdata', this._handleFormdata.bind(this));
23
- }
24
- }
25
- disconnectedCallback() {
26
- // if (this._hFormdata) {
27
- // this._hFormdata = this._hFormdata.release();
28
- // }
29
- // @ts-ignore
30
- super.disconnectedCallback();
31
- }
32
- }
33
- return FormMixinImpl;
34
- };
35
- export default FormMixin;
36
- //# sourceMappingURL=form.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form.js","sourceRoot":"","sources":["../../../src/mixins/form.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH;;;GAGG;AACH,MAAM,SAAS,GAAG,CAAyC,IAAW,EAAE,EAAE;IACxE;;OAEG;IACH,MAAe,aAAc,SAAQ,IAAI;QAQvC,iBAAiB;YACf,aAAa;YACb,KAAK,CAAC,iBAAiB,EAAE,CAAC;YAC1B,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;gBACzB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACtF,CAAC;QACH,CAAC;QAED,oBAAoB;YAClB,yBAAyB;YACzB,iDAAiD;YACjD,IAAI;YACJ,aAAa;YACb,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAC/B,CAAC;KACF;IACD,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["import { Constructor } from '../index.js';\n/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * @param Base The base class.\n * @returns A mix-in to handle `formdata` event on the containing form.\n */\nconst FormMixin = <TBase extends Constructor<HTMLElement>>(Base: TBase) => {\n /**\n * A mix-in class to handle `formdata` event on the containing form.\n */\n abstract class FormMixinImpl extends Base {\n /**\n * Handles `formdata` event.\n *\n * @param event The event.\n */\n abstract _handleFormdata(event: Event): void;\n\n connectedCallback() {\n // @ts-ignore\n super.connectedCallback();\n if (this.closest('form')) {\n this.closest('form')?.addEventListener('formdata', this._handleFormdata.bind(this));\n }\n }\n\n disconnectedCallback() {\n // if (this._hFormdata) {\n // this._hFormdata = this._hFormdata.release();\n // }\n // @ts-ignore\n super.disconnectedCallback();\n }\n }\n return FormMixinImpl;\n};\n\nexport default FormMixin;\n"]}