@vandeurenglenn/lite-elements 0.3.31 → 0.3.32

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 (64) hide show
  1. package/exports/apis/device.d.ts +33 -0
  2. package/exports/bundle/banner.js +1 -1
  3. package/exports/bundle/button.js +1 -1
  4. package/exports/bundle/card.js +1 -1
  5. package/exports/bundle/code.js +1 -1
  6. package/exports/bundle/custom-element-BOdKJYdz.js +1 -0
  7. package/exports/bundle/demo-elements.js +1 -1
  8. package/exports/bundle/demo-icons.js +1 -1
  9. package/exports/bundle/demo-shell.js +1 -1
  10. package/exports/bundle/demo.js +1 -1
  11. package/exports/bundle/device.js +1 -0
  12. package/exports/bundle/dialog.js +1 -1
  13. package/exports/bundle/divider.js +1 -1
  14. package/exports/bundle/drawer-button.js +1 -1
  15. package/exports/bundle/drawer-item.js +1 -1
  16. package/exports/bundle/drawer-layout.js +1 -1
  17. package/exports/bundle/drawer.js +4 -2
  18. package/exports/bundle/dropdown-menu.js +1 -1
  19. package/exports/bundle/dropdown.js +1 -1
  20. package/exports/bundle/elements.js +1 -1
  21. package/exports/bundle/elevation.js +1 -1
  22. package/exports/bundle/file-reader-mixin.js +1 -0
  23. package/exports/bundle/icon-button.js +1 -1
  24. package/exports/bundle/icon-set.js +1 -1
  25. package/exports/bundle/icon.js +1 -1
  26. package/exports/bundle/input.js +1 -1
  27. package/exports/bundle/list-item.js +1 -1
  28. package/exports/bundle/menu.js +1 -1
  29. package/exports/bundle/minute-field.js +1 -1
  30. package/exports/bundle/notification.js +5 -48
  31. package/exports/bundle/notifications.js +1 -1
  32. package/exports/bundle/pane.js +2 -2
  33. package/exports/bundle/property-DyuvULjI.js +44 -0
  34. package/exports/bundle/rail.js +1 -1
  35. package/exports/bundle/root.js +1 -1
  36. package/exports/bundle/section.js +1 -1
  37. package/exports/bundle/section2.js +1 -1
  38. package/exports/bundle/selector.js +1 -1
  39. package/exports/bundle/summary-mirror.js +1 -1
  40. package/exports/bundle/summary.js +1 -1
  41. package/exports/bundle/supporting-pane.js +1 -1
  42. package/exports/bundle/tab.js +1 -1
  43. package/exports/bundle/tabs.js +1 -1
  44. package/exports/bundle/text-field.js +1 -1
  45. package/exports/bundle/theme.js +1 -1
  46. package/exports/bundle/time-picker.js +1 -1
  47. package/exports/bundle/toggle-button.js +1 -1
  48. package/exports/bundle/toggle.js +1 -1
  49. package/exports/bundle/top-app-bar.js +1 -1
  50. package/exports/bundle/typography.js +1 -1
  51. package/exports/bundle/upload-file.js +1 -1
  52. package/exports/bundle/upload-image.js +1020 -0
  53. package/exports/device.js +95 -0
  54. package/exports/drawer.js +2 -0
  55. package/exports/file-reader-mixin.js +11 -0
  56. package/exports/mixins/file-reader-mixin.d.ts +341 -0
  57. package/exports/pane.js +1 -1
  58. package/exports/upload/upload-image.d.ts +381 -0
  59. package/exports/upload-image.js +417 -0
  60. package/package.json +23 -7
  61. package/exports/bundle/custom-element-BMhVvZjf.js +0 -1
  62. package/exports/bundle/upload.js +0 -1
  63. package/exports/upload/upload.d.ts +0 -5
  64. package/exports/upload.js +0 -38
@@ -0,0 +1,95 @@
1
+ class DeviceApi {
2
+ #cameraStream;
3
+ #imageCapture;
4
+ async facingModes() {
5
+ const user = await this.hasFrontCam();
6
+ const environment = await this.hasFrontCam();
7
+ return {
8
+ user,
9
+ environment,
10
+ front: user,
11
+ back: environment
12
+ };
13
+ }
14
+ async hasFrontCam() {
15
+ try {
16
+ await navigator.mediaDevices.getUserMedia({
17
+ video: { facingMode: 'user' }
18
+ });
19
+ return true;
20
+ }
21
+ catch (e) {
22
+ return false;
23
+ }
24
+ }
25
+ async hasBackCam() {
26
+ try {
27
+ await navigator.mediaDevices.getUserMedia({
28
+ video: { facingMode: 'environment' }
29
+ });
30
+ return true;
31
+ }
32
+ catch (e) {
33
+ return false;
34
+ }
35
+ }
36
+ /**
37
+ * @param {string} facingMode ['environment'|'user'] -
38
+ * the desired camera to use
39
+ */
40
+ async _createCameraStream(facingMode = 'environment') {
41
+ if (!this.#cameraStream) {
42
+ const gotMedia = (mediaStream) => {
43
+ this.#cameraStream = mediaStream;
44
+ const mediaStreamTrack = mediaStream.getVideoTracks()[0];
45
+ this.#imageCapture = new globalThis.ImageCapture(mediaStreamTrack);
46
+ };
47
+ const stream = await navigator.mediaDevices.getUserMedia({
48
+ video: { facingMode }
49
+ });
50
+ return gotMedia(stream);
51
+ }
52
+ }
53
+ /**
54
+ * @param {HTMLElement} el
55
+ * @param {string} facingMode ['environment'|'user'] -
56
+ * the desired camera to use
57
+ */
58
+ async _previewCamera(el, facingMode) {
59
+ if (el.srcObject)
60
+ el.srcObject = null;
61
+ if (!el)
62
+ throw Error('No target HTMLElement defined');
63
+ if (!this.#cameraStream)
64
+ await this._createCameraStream(facingMode);
65
+ el.srcObject = this.#cameraStream;
66
+ }
67
+ _close() {
68
+ if (!this.#cameraStream)
69
+ return;
70
+ const tracks = this.#cameraStream.getTracks();
71
+ for (const track of tracks) {
72
+ track.stop();
73
+ this.#cameraStream.removeTrack(track);
74
+ }
75
+ this.#cameraStream = undefined;
76
+ this.#imageCapture = undefined;
77
+ }
78
+ /**
79
+ * @return {object} { preview(), takePhoto(facingMode) } - camera methods
80
+ *
81
+ */
82
+ get camera() {
83
+ return {
84
+ preview: (el, facingMode) => this._previewCamera(el, facingMode),
85
+ takePhoto: async (facingMode) => {
86
+ if (!this.#cameraStream)
87
+ await this._createCameraStream(facingMode);
88
+ return this.#imageCapture.takePhoto();
89
+ },
90
+ close: this._close.bind(this)
91
+ };
92
+ }
93
+ }
94
+
95
+ export { DeviceApi };
package/exports/drawer.js CHANGED
@@ -118,6 +118,8 @@ let CustomDrawer = (() => {
118
118
  }
119
119
 
120
120
  aside {
121
+ display: flex;
122
+ flex-direction: column;
121
123
  width: 100%;
122
124
  }
123
125
  </style>
@@ -0,0 +1,11 @@
1
+ const FileReaderMixin = (Base) => class FileReaderMixin extends Base {
2
+ readAsDataURL(file) {
3
+ return new Promise((resolve, reject) => {
4
+ const reader = new FileReader();
5
+ reader.onload = () => resolve(reader.result);
6
+ reader.readAsDataURL(file);
7
+ });
8
+ }
9
+ };
10
+
11
+ export { FileReaderMixin };
@@ -0,0 +1,341 @@
1
+ import { LiteElement } from '@vandeurenglenn/lite';
2
+ export declare const FileReaderMixin: (Base: typeof LiteElement) => {
3
+ new (): {
4
+ readAsDataURL(file: any): Promise<unknown>;
5
+ renderResolve: any;
6
+ renderedOnce: boolean;
7
+ rendered: Promise<unknown>;
8
+ attributeChangedCallback(name: string, old: string, value: string): void;
9
+ render(): import("lit-html").TemplateResult<1>;
10
+ requestRender(): void;
11
+ willChange?(propertyKey: string, value: any): Promise<any>;
12
+ onChange?(propertyKey: string, value: any): void;
13
+ firstRender?(): void;
14
+ accessKey: string;
15
+ readonly accessKeyLabel: string;
16
+ autocapitalize: string;
17
+ dir: string;
18
+ draggable: boolean;
19
+ hidden: boolean;
20
+ inert: boolean;
21
+ innerText: string;
22
+ lang: string;
23
+ readonly offsetHeight: number;
24
+ readonly offsetLeft: number;
25
+ readonly offsetParent: Element;
26
+ readonly offsetTop: number;
27
+ readonly offsetWidth: number;
28
+ outerText: string;
29
+ popover: string;
30
+ spellcheck: boolean;
31
+ title: string;
32
+ translate: boolean;
33
+ attachInternals(): ElementInternals;
34
+ click(): void;
35
+ hidePopover(): void;
36
+ showPopover(): void;
37
+ togglePopover(force?: boolean): boolean;
38
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
39
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
40
+ removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
41
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
42
+ readonly attributes: NamedNodeMap;
43
+ readonly classList: DOMTokenList;
44
+ className: string;
45
+ readonly clientHeight: number;
46
+ readonly clientLeft: number;
47
+ readonly clientTop: number;
48
+ readonly clientWidth: number;
49
+ id: string;
50
+ readonly localName: string;
51
+ readonly namespaceURI: string;
52
+ onfullscreenchange: (this: Element, ev: Event) => any;
53
+ onfullscreenerror: (this: Element, ev: Event) => any;
54
+ outerHTML: string;
55
+ readonly ownerDocument: Document;
56
+ readonly part: DOMTokenList;
57
+ readonly prefix: string;
58
+ readonly scrollHeight: number;
59
+ scrollLeft: number;
60
+ scrollTop: number;
61
+ readonly scrollWidth: number;
62
+ readonly shadowRoot: ShadowRoot;
63
+ slot: string;
64
+ readonly tagName: string;
65
+ attachShadow(init: ShadowRootInit): ShadowRoot;
66
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
67
+ closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
68
+ closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
69
+ closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4];
70
+ closest<E extends Element = Element>(selectors: string): E;
71
+ computedStyleMap(): StylePropertyMapReadOnly;
72
+ getAttribute(qualifiedName: string): string;
73
+ getAttributeNS(namespace: string, localName: string): string;
74
+ getAttributeNames(): string[];
75
+ getAttributeNode(qualifiedName: string): Attr;
76
+ getAttributeNodeNS(namespace: string, localName: string): Attr;
77
+ getBoundingClientRect(): DOMRect;
78
+ getClientRects(): DOMRectList;
79
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
80
+ getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
81
+ getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
82
+ getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
83
+ getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
84
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
85
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
86
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
87
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
88
+ getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
89
+ hasAttribute(qualifiedName: string): boolean;
90
+ hasAttributeNS(namespace: string, localName: string): boolean;
91
+ hasAttributes(): boolean;
92
+ hasPointerCapture(pointerId: number): boolean;
93
+ insertAdjacentElement(where: InsertPosition, element: Element): Element;
94
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
95
+ insertAdjacentText(where: InsertPosition, data: string): void;
96
+ matches(selectors: string): boolean;
97
+ releasePointerCapture(pointerId: number): void;
98
+ removeAttribute(qualifiedName: string): void;
99
+ removeAttributeNS(namespace: string, localName: string): void;
100
+ removeAttributeNode(attr: Attr): Attr;
101
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
102
+ requestPointerLock(): void;
103
+ scroll(options?: ScrollToOptions): void;
104
+ scroll(x: number, y: number): void;
105
+ scrollBy(options?: ScrollToOptions): void;
106
+ scrollBy(x: number, y: number): void;
107
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
108
+ scrollTo(options?: ScrollToOptions): void;
109
+ scrollTo(x: number, y: number): void;
110
+ setAttribute(qualifiedName: string, value: string): void;
111
+ setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
112
+ setAttributeNode(attr: Attr): Attr;
113
+ setAttributeNodeNS(attr: Attr): Attr;
114
+ setPointerCapture(pointerId: number): void;
115
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
116
+ webkitMatchesSelector(selectors: string): boolean;
117
+ readonly baseURI: string;
118
+ readonly childNodes: NodeListOf<ChildNode>;
119
+ readonly firstChild: ChildNode;
120
+ readonly isConnected: boolean;
121
+ readonly lastChild: ChildNode;
122
+ readonly nextSibling: ChildNode;
123
+ readonly nodeName: string;
124
+ readonly nodeType: number;
125
+ nodeValue: string;
126
+ readonly parentElement: HTMLElement;
127
+ readonly parentNode: ParentNode;
128
+ readonly previousSibling: ChildNode;
129
+ textContent: string;
130
+ appendChild<T extends Node>(node: T): T;
131
+ cloneNode(deep?: boolean): Node;
132
+ compareDocumentPosition(other: Node): number;
133
+ contains(other: Node): boolean;
134
+ getRootNode(options?: GetRootNodeOptions): Node;
135
+ hasChildNodes(): boolean;
136
+ insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1;
137
+ isDefaultNamespace(namespace: string): boolean;
138
+ isEqualNode(otherNode: Node): boolean;
139
+ isSameNode(otherNode: Node): boolean;
140
+ lookupNamespaceURI(prefix: string): string;
141
+ lookupPrefix(namespace: string): string;
142
+ normalize(): void;
143
+ removeChild<T_2 extends Node>(child: T_2): T_2;
144
+ replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
145
+ readonly ELEMENT_NODE: 1;
146
+ readonly ATTRIBUTE_NODE: 2;
147
+ readonly TEXT_NODE: 3;
148
+ readonly CDATA_SECTION_NODE: 4;
149
+ readonly ENTITY_REFERENCE_NODE: 5;
150
+ readonly ENTITY_NODE: 6;
151
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
152
+ readonly COMMENT_NODE: 8;
153
+ readonly DOCUMENT_NODE: 9;
154
+ readonly DOCUMENT_TYPE_NODE: 10;
155
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
156
+ readonly NOTATION_NODE: 12;
157
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
158
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
159
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
160
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
161
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
162
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
163
+ dispatchEvent(event: Event): boolean;
164
+ ariaAtomic: string;
165
+ ariaAutoComplete: string;
166
+ ariaBusy: string;
167
+ ariaChecked: string;
168
+ ariaColCount: string;
169
+ ariaColIndex: string;
170
+ ariaColSpan: string;
171
+ ariaCurrent: string;
172
+ ariaDescription: string;
173
+ ariaDisabled: string;
174
+ ariaExpanded: string;
175
+ ariaHasPopup: string;
176
+ ariaHidden: string;
177
+ ariaInvalid: string;
178
+ ariaKeyShortcuts: string;
179
+ ariaLabel: string;
180
+ ariaLevel: string;
181
+ ariaLive: string;
182
+ ariaModal: string;
183
+ ariaMultiLine: string;
184
+ ariaMultiSelectable: string;
185
+ ariaOrientation: string;
186
+ ariaPlaceholder: string;
187
+ ariaPosInSet: string;
188
+ ariaPressed: string;
189
+ ariaReadOnly: string;
190
+ ariaRequired: string;
191
+ ariaRoleDescription: string;
192
+ ariaRowCount: string;
193
+ ariaRowIndex: string;
194
+ ariaRowSpan: string;
195
+ ariaSelected: string;
196
+ ariaSetSize: string;
197
+ ariaSort: string;
198
+ ariaValueMax: string;
199
+ ariaValueMin: string;
200
+ ariaValueNow: string;
201
+ ariaValueText: string;
202
+ role: string;
203
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions): Animation;
204
+ getAnimations(options?: GetAnimationsOptions): Animation[];
205
+ after(...nodes: (string | Node)[]): void;
206
+ before(...nodes: (string | Node)[]): void;
207
+ remove(): void;
208
+ replaceWith(...nodes: (string | Node)[]): void;
209
+ innerHTML: string;
210
+ readonly nextElementSibling: Element;
211
+ readonly previousElementSibling: Element;
212
+ readonly childElementCount: number;
213
+ readonly children: HTMLCollection;
214
+ readonly firstElementChild: Element;
215
+ readonly lastElementChild: Element;
216
+ append(...nodes: (string | Node)[]): void;
217
+ prepend(...nodes: (string | Node)[]): void;
218
+ querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9];
219
+ querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10];
220
+ querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11];
221
+ querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12];
222
+ querySelector<E_1 extends Element = Element>(selectors: string): E_1;
223
+ querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
224
+ querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
225
+ querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
226
+ querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
227
+ querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
228
+ replaceChildren(...nodes: (string | Node)[]): void;
229
+ readonly assignedSlot: HTMLSlotElement;
230
+ readonly attributeStyleMap: StylePropertyMap;
231
+ readonly style: CSSStyleDeclaration;
232
+ contentEditable: string;
233
+ enterKeyHint: string;
234
+ inputMode: string;
235
+ readonly isContentEditable: boolean;
236
+ onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
237
+ onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
238
+ onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
239
+ onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
240
+ onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
241
+ onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
242
+ onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
243
+ onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
244
+ onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
245
+ oncancel: (this: GlobalEventHandlers, ev: Event) => any;
246
+ oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
247
+ oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any;
248
+ onchange: (this: GlobalEventHandlers, ev: Event) => any;
249
+ onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
250
+ onclose: (this: GlobalEventHandlers, ev: Event) => any;
251
+ oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
252
+ oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
253
+ oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
254
+ oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
255
+ ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
256
+ ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
257
+ ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
258
+ ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
259
+ ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
260
+ ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
261
+ ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
262
+ ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
263
+ ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
264
+ onemptied: (this: GlobalEventHandlers, ev: Event) => any;
265
+ onended: (this: GlobalEventHandlers, ev: Event) => any;
266
+ onerror: OnErrorEventHandlerNonNull;
267
+ onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
268
+ onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
269
+ ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
270
+ oninput: (this: GlobalEventHandlers, ev: Event) => any;
271
+ oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
272
+ onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
273
+ onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
274
+ onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
275
+ onload: (this: GlobalEventHandlers, ev: Event) => any;
276
+ onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
277
+ onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
278
+ onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
279
+ onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
280
+ onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
281
+ onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any;
282
+ onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any;
283
+ onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
284
+ onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
285
+ onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
286
+ onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
287
+ onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
288
+ onpause: (this: GlobalEventHandlers, ev: Event) => any;
289
+ onplay: (this: GlobalEventHandlers, ev: Event) => any;
290
+ onplaying: (this: GlobalEventHandlers, ev: Event) => any;
291
+ onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
292
+ onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
293
+ onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
294
+ onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
295
+ onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
296
+ onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
297
+ onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
298
+ onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
299
+ onprogress: (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any;
300
+ onratechange: (this: GlobalEventHandlers, ev: Event) => any;
301
+ onreset: (this: GlobalEventHandlers, ev: Event) => any;
302
+ onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
303
+ onscroll: (this: GlobalEventHandlers, ev: Event) => any;
304
+ onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
305
+ onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
306
+ onseeked: (this: GlobalEventHandlers, ev: Event) => any;
307
+ onseeking: (this: GlobalEventHandlers, ev: Event) => any;
308
+ onselect: (this: GlobalEventHandlers, ev: Event) => any;
309
+ onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
310
+ onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
311
+ onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
312
+ onstalled: (this: GlobalEventHandlers, ev: Event) => any;
313
+ onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
314
+ onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
315
+ ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
316
+ ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
317
+ ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
318
+ ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
319
+ ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
320
+ ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
321
+ ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
322
+ ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
323
+ ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
324
+ ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
325
+ onvolumechange: (this: GlobalEventHandlers, ev: Event) => any;
326
+ onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
327
+ onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
328
+ onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
329
+ onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
330
+ onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
331
+ onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
332
+ autofocus: boolean;
333
+ readonly dataset: DOMStringMap;
334
+ nonce?: string;
335
+ tabIndex: number;
336
+ blur(): void;
337
+ focus(options?: FocusOptions): void;
338
+ };
339
+ readonly observedAttributes: any;
340
+ styles?: import("@vandeurenglenn/lite/element").StyleList;
341
+ };
package/exports/pane.js CHANGED
@@ -139,7 +139,7 @@ let CustomPane = (() => {
139
139
  }
140
140
 
141
141
  .content {
142
- height: calc(100% - 54px);
142
+ height: 100%;
143
143
  width: 100%;
144
144
  overflow-y: auto;
145
145
  }