@descope/sdk-mixins 0.12.0 → 0.13.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/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/mixins/descopeUiMixin/constants.js +6 -17
- package/dist/cjs/mixins/descopeUiMixin/constants.js.map +1 -1
- package/dist/cjs/mixins/descopeUiMixin/descopeUiMixin.js +17 -89
- package/dist/cjs/mixins/descopeUiMixin/descopeUiMixin.js.map +1 -1
- package/dist/cjs/mixins/descopeUiMixin/helpers.js +0 -10
- package/dist/cjs/mixins/descopeUiMixin/helpers.js.map +1 -1
- package/dist/cjs/mixins/injectNpmLibMixin/constants.js +10 -0
- package/dist/cjs/mixins/injectNpmLibMixin/constants.js.map +1 -0
- package/dist/cjs/mixins/injectNpmLibMixin/helpers.js +112 -0
- package/dist/cjs/mixins/injectNpmLibMixin/helpers.js.map +1 -0
- package/dist/cjs/mixins/injectNpmLibMixin/injectNpmLibMixin.js +28 -0
- package/dist/cjs/mixins/injectNpmLibMixin/injectNpmLibMixin.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/mixins/descopeUiMixin/constants.js +4 -11
- package/dist/esm/mixins/descopeUiMixin/constants.js.map +1 -1
- package/dist/esm/mixins/descopeUiMixin/descopeUiMixin.js +18 -90
- package/dist/esm/mixins/descopeUiMixin/descopeUiMixin.js.map +1 -1
- package/dist/esm/mixins/descopeUiMixin/helpers.js +1 -9
- package/dist/esm/mixins/descopeUiMixin/helpers.js.map +1 -1
- package/dist/esm/mixins/injectNpmLibMixin/constants.js +8 -0
- package/dist/esm/mixins/injectNpmLibMixin/constants.js.map +1 -0
- package/dist/esm/mixins/injectNpmLibMixin/helpers.js +109 -0
- package/dist/esm/mixins/injectNpmLibMixin/helpers.js.map +1 -0
- package/dist/esm/mixins/injectNpmLibMixin/injectNpmLibMixin.js +26 -0
- package/dist/esm/mixins/injectNpmLibMixin/injectNpmLibMixin.js.map +1 -0
- package/dist/index.d.ts +509 -175
- package/dist/types/index.d.ts +1 -0
- package/dist/types/mixins/configMixin/configMixin.d.ts +12 -12
- package/dist/types/mixins/createStateManagementMixin.d.ts +2 -2
- package/dist/types/mixins/createValidateAttributesMixin/createValidateAttributesMixin.d.ts +5 -5
- package/dist/types/mixins/debuggerMixin/debuggerMixin.d.ts +8 -8
- package/dist/types/mixins/descopeUiMixin/constants.d.ts +3 -7
- package/dist/types/mixins/descopeUiMixin/descopeUiMixin.d.ts +26 -31
- package/dist/types/mixins/descopeUiMixin/helpers.d.ts +0 -1
- package/dist/types/mixins/formMixin.d.ts +2 -2
- package/dist/types/mixins/initLifecycleMixin.d.ts +1 -1
- package/dist/types/mixins/injectNpmLibMixin/constants.d.ts +1 -0
- package/dist/types/mixins/injectNpmLibMixin/helpers.d.ts +7 -0
- package/dist/types/mixins/injectNpmLibMixin/index.d.ts +1 -0
- package/dist/types/mixins/injectNpmLibMixin/injectNpmLibMixin.d.ts +343 -0
- package/dist/types/mixins/loggerMixin/loggerMixin.d.ts +2 -2
- package/dist/types/mixins/modalMixin/modalMixin.d.ts +28 -30
- package/dist/types/mixins/notificationsMixin/notificationsMixin.d.ts +28 -30
- package/dist/types/mixins/observeAttributesMixin/observeAttributesMixin.d.ts +4 -4
- package/dist/types/mixins/projectIdMixin.d.ts +5 -5
- package/dist/types/mixins/resetMixin.d.ts +6 -6
- package/dist/types/mixins/staticResourcesMixin/staticResourcesMixin.d.ts +8 -8
- package/dist/types/mixins/themeMixin/themeMixin.d.ts +33 -35
- package/package.json +10 -10
package/dist/types/index.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ export declare const configMixin: <T extends CustomElementConstructor>(superclas
|
|
|
3
3
|
new (...params: any[]): {
|
|
4
4
|
init(): Promise<void>;
|
|
5
5
|
readonly config: Promise<Config>;
|
|
6
|
-
"__#
|
|
7
|
-
"__#
|
|
8
|
-
"__#
|
|
9
|
-
"__#
|
|
6
|
+
"__#13559@#configCacheClear"(): void;
|
|
7
|
+
"__#13559@#_configResource": Promise<Config>;
|
|
8
|
+
"__#13559@#fetchConfig": () => Promise<Config>;
|
|
9
|
+
"__#13554@#isInit": boolean;
|
|
10
10
|
connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
|
|
11
11
|
accessKey: string;
|
|
12
12
|
readonly accessKeyLabel: string;
|
|
@@ -333,21 +333,21 @@ export declare const configMixin: <T extends CustomElementConstructor>(superclas
|
|
|
333
333
|
tabIndex: number;
|
|
334
334
|
blur(): void;
|
|
335
335
|
focus(options?: FocusOptions): void;
|
|
336
|
-
"__#
|
|
336
|
+
"__#13558@#callbacks": Map<string, () => void>;
|
|
337
337
|
onReset(sectionId: string, callback: () => void | Promise<void>): () => void;
|
|
338
338
|
reset(...sectionIds: string[]): Promise<void>;
|
|
339
|
-
"__#
|
|
340
|
-
"__#
|
|
339
|
+
"__#13556@#handleError": ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void);
|
|
340
|
+
"__#13555@#observeMappings": {} & {};
|
|
341
341
|
observeAttribute: ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any);
|
|
342
342
|
observeAttributes: ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void);
|
|
343
|
-
"__#
|
|
344
|
-
"__#
|
|
343
|
+
"__#13553@#logger": import("../loggerMixin").Logger;
|
|
344
|
+
"__#13553@#wrapLogger": ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger);
|
|
345
345
|
get logger(): import("../loggerMixin").Logger;
|
|
346
346
|
set logger(logger: Partial<import("../loggerMixin").Logger>);
|
|
347
347
|
onLogEvent: ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void);
|
|
348
|
-
"__#
|
|
349
|
-
"__#
|
|
350
|
-
"__#
|
|
348
|
+
"__#13557@#lastBaseUrl"?: string;
|
|
349
|
+
"__#13557@#workingBaseUrl"?: string;
|
|
350
|
+
"__#13557@#getResourceUrls"(filename: string): (URL & {
|
|
351
351
|
baseUrl: string;
|
|
352
352
|
}) | (URL & {
|
|
353
353
|
baseUrl: string;
|
|
@@ -6,8 +6,8 @@ export declare const createStateManagementMixin: <State, CaseReducers extends Sl
|
|
|
6
6
|
new (...args: any): {
|
|
7
7
|
actions: import("@reduxjs/toolkit").CaseReducerActions<CaseReducers, Name> & AsyncActions;
|
|
8
8
|
subscribe: <SelectorR = State extends Draft<infer S> ? S : State>(cb: (state: SelectorR) => void, selector?: (state: State) => SelectorR) => Unsubscribe;
|
|
9
|
-
"__#
|
|
10
|
-
"__#
|
|
9
|
+
"__#13553@#logger": import("./loggerMixin").Logger;
|
|
10
|
+
"__#13553@#wrapLogger"(logger: Partial<import("./loggerMixin").Logger>): import("./loggerMixin").Logger;
|
|
11
11
|
get logger(): import("./loggerMixin").Logger;
|
|
12
12
|
set logger(logger: Partial<import("./loggerMixin").Logger>);
|
|
13
13
|
onLogEvent(logLevel: "error" | "warn" | "info" | "debug", data: any[]): void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare const createValidateAttributesMixin: {
|
|
2
2
|
(mappings: Record<string, CheckValueFn | string>): <T extends CustomElementConstructor>(superclass: T) => {
|
|
3
3
|
new (...args: any): {
|
|
4
|
-
"__#
|
|
4
|
+
"__#13556@#handleError"(attrName: string, newValue: string | null): void;
|
|
5
5
|
init(): Promise<void>;
|
|
6
|
-
"__#
|
|
6
|
+
"__#13555@#observeMappings": {};
|
|
7
7
|
observeAttribute(attrName: string, onAttrChange: (attrName: string, value: string) => void): () => any;
|
|
8
8
|
observeAttributes(attrs: string[], cb: (attrName: string, value: string) => void): () => void;
|
|
9
|
-
"__#
|
|
9
|
+
"__#13554@#isInit": boolean;
|
|
10
10
|
connectedCallback: (() => void) & (() => void) & (() => void);
|
|
11
11
|
accessKey: string;
|
|
12
12
|
readonly accessKeyLabel: string;
|
|
@@ -333,8 +333,8 @@ declare const createValidateAttributesMixin: {
|
|
|
333
333
|
tabIndex: number;
|
|
334
334
|
blur(): void;
|
|
335
335
|
focus(options?: FocusOptions): void;
|
|
336
|
-
"__#
|
|
337
|
-
"__#
|
|
336
|
+
"__#13553@#logger": import("../loggerMixin").Logger;
|
|
337
|
+
"__#13553@#wrapLogger": ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger);
|
|
338
338
|
get logger(): import("../loggerMixin").Logger;
|
|
339
339
|
set logger(logger: Partial<import("../loggerMixin").Logger>);
|
|
340
340
|
onLogEvent: ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void);
|
|
@@ -2,19 +2,19 @@ import { LogLevel } from '../loggerMixin';
|
|
|
2
2
|
import { DebuggerMessage } from './types';
|
|
3
3
|
export declare const debuggerMixin: <T extends CustomElementConstructor>(superclass: T) => {
|
|
4
4
|
new (...params: any[]): {
|
|
5
|
-
"__#
|
|
5
|
+
"__#13561@#debuggerEle": (HTMLElement & {
|
|
6
6
|
updateData: (data: DebuggerMessage | DebuggerMessage[]) => void;
|
|
7
7
|
}) | null;
|
|
8
|
-
"__#
|
|
9
|
-
"__#
|
|
8
|
+
"__#13561@#disableDebugger"(): void;
|
|
9
|
+
"__#13561@#enableDebugger"(): Promise<void>;
|
|
10
10
|
attributeChangedCallback: (attrName: string, oldValue: string | null, newValue: string | null) => void;
|
|
11
11
|
readonly debug: boolean;
|
|
12
|
-
"__#
|
|
12
|
+
"__#13561@#handleDebugMode"(): void;
|
|
13
13
|
onLogEvent(logLevel: LogLevel, args: any[]): void;
|
|
14
14
|
init(): Promise<void>;
|
|
15
|
-
"__#
|
|
16
|
-
"__#
|
|
17
|
-
"__#
|
|
15
|
+
"__#13561@#updateDebuggerMessages"(title: string, description: string): void;
|
|
16
|
+
"__#13553@#logger": import("../loggerMixin").Logger;
|
|
17
|
+
"__#13553@#wrapLogger"(logger: Partial<import("../loggerMixin").Logger>): import("../loggerMixin").Logger;
|
|
18
18
|
get logger(): import("../loggerMixin").Logger;
|
|
19
19
|
set logger(logger: Partial<import("../loggerMixin").Logger>);
|
|
20
20
|
accessKey: string;
|
|
@@ -342,6 +342,6 @@ export declare const debuggerMixin: <T extends CustomElementConstructor>(supercl
|
|
|
342
342
|
tabIndex: number;
|
|
343
343
|
blur(): void;
|
|
344
344
|
focus(options?: FocusOptions): void;
|
|
345
|
-
"__#
|
|
345
|
+
"__#13554@#isInit": boolean;
|
|
346
346
|
};
|
|
347
347
|
} & T;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
export declare const DESCOPE_UI_SCRIPT_ID = "load-descope-ui";
|
|
2
|
-
export declare const DESCOPE_UI_FALLBACK_SCRIPT_ID = "load-descope-ui-fallback-script";
|
|
3
|
-
export declare const DESCOPE_UI_FALLBACK_2_SCRIPT_ID = "load-descope-ui-fallback-script-2";
|
|
4
1
|
export declare const UI_COMPONENTS_URL_KEY = "base.ui.components.url";
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const UI_COMPONENTS_URL_VERSION_PLACEHOLDER = "<version>";
|
|
2
|
+
export declare const LOCAL_STORAGE_OVERRIDE: string;
|
|
3
|
+
export declare const JS_FILE_PATH = "dist/umd/index.js";
|
|
4
|
+
export declare const WEB_COMPONENTS_UI_LIB_NAME = "@descope/web-components-ui";
|
|
@@ -1,27 +1,21 @@
|
|
|
1
|
-
type ErrorCb = (error: string) => void;
|
|
2
|
-
type LoadCb = () => void;
|
|
3
1
|
export declare const descopeUiMixin: <T extends CustomElementConstructor>(superclass: T) => {
|
|
4
2
|
new (...params: any[]): {
|
|
5
|
-
"__#
|
|
6
|
-
"__#
|
|
7
|
-
"__#13295@#getComponentsVersion"(): Promise<string>;
|
|
8
|
-
"__#13295@#exposeAlternateEvents"(scriptEle: HTMLScriptElement): void;
|
|
9
|
-
"__#13295@#handleFallbackScript"(errorCbs: ErrorCb[], loadCbs: LoadCb[], elemId: string, scriptUrl: string): Promise<void>;
|
|
10
|
-
"__#13295@#registerEvents"(scriptEle: HTMLScriptElement): void;
|
|
11
|
-
"__#13295@#getDescopeUiLoadingScript"(): Promise<HTMLElement>;
|
|
12
|
-
"__#13295@#descopeUi": Promise<any>;
|
|
3
|
+
"__#13562@#getComponentsVersion"(): Promise<string>;
|
|
4
|
+
"__#13562@#descopeUi": Promise<any>;
|
|
13
5
|
readonly descopeUi: Promise<any>;
|
|
14
|
-
"__#
|
|
6
|
+
"__#13562@#loadDescopeUiComponent"(componentName: string): Promise<any>;
|
|
7
|
+
"__#13562@#getDescopeUi"(): Promise<any>;
|
|
15
8
|
loadDescopeUiComponents(templateOrComponentNames: HTMLTemplateElement | string[]): Promise<any[]>;
|
|
16
|
-
"__#13295@#getDescopeUi"(): Promise<unknown>;
|
|
17
9
|
readonly baseCdnUrl: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"__#
|
|
23
|
-
"__#
|
|
24
|
-
|
|
10
|
+
injectNpmLib(libName: string, version: string, filePath?: string, overrides?: string[]): Promise<{
|
|
11
|
+
id: string;
|
|
12
|
+
url: URL;
|
|
13
|
+
}>;
|
|
14
|
+
"__#13553@#logger": import("../loggerMixin").Logger;
|
|
15
|
+
"__#13553@#wrapLogger": ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger);
|
|
16
|
+
get logger(): import("../loggerMixin").Logger;
|
|
17
|
+
set logger(logger: Partial<import("../loggerMixin").Logger>);
|
|
18
|
+
onLogEvent: ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void);
|
|
25
19
|
accessKey: string;
|
|
26
20
|
readonly accessKeyLabel: string;
|
|
27
21
|
autocapitalize: string;
|
|
@@ -51,6 +45,7 @@ export declare const descopeUiMixin: <T extends CustomElementConstructor>(superc
|
|
|
51
45
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
|
52
46
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
53
47
|
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
48
|
+
connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
|
|
54
49
|
readonly attributes: NamedNodeMap;
|
|
55
50
|
readonly classList: DOMTokenList;
|
|
56
51
|
className: string;
|
|
@@ -347,21 +342,22 @@ export declare const descopeUiMixin: <T extends CustomElementConstructor>(superc
|
|
|
347
342
|
tabIndex: number;
|
|
348
343
|
blur(): void;
|
|
349
344
|
focus(options?: FocusOptions): void;
|
|
350
|
-
|
|
345
|
+
init(): Promise<void>;
|
|
346
|
+
readonly config: Promise<import("../configMixin").Config>;
|
|
347
|
+
"__#13559@#configCacheClear"(): void;
|
|
348
|
+
"__#13559@#_configResource": Promise<import("../configMixin").Config>;
|
|
349
|
+
"__#13559@#fetchConfig": () => Promise<import("../configMixin").Config>;
|
|
350
|
+
"__#13554@#isInit": boolean;
|
|
351
|
+
"__#13558@#callbacks": Map<string, () => void>;
|
|
351
352
|
onReset(sectionId: string, callback: () => void | Promise<void>): () => void;
|
|
352
353
|
reset(...sectionIds: string[]): Promise<void>;
|
|
353
|
-
"__#
|
|
354
|
-
"__#
|
|
354
|
+
"__#13556@#handleError": ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void);
|
|
355
|
+
"__#13555@#observeMappings": {} & {};
|
|
355
356
|
observeAttribute: ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any);
|
|
356
357
|
observeAttributes: ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void);
|
|
357
|
-
"__#
|
|
358
|
-
"__#
|
|
359
|
-
|
|
360
|
-
set logger(logger: Partial<import("../loggerMixin").Logger>);
|
|
361
|
-
onLogEvent: ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void);
|
|
362
|
-
"__#13290@#lastBaseUrl"?: string;
|
|
363
|
-
"__#13290@#workingBaseUrl"?: string;
|
|
364
|
-
"__#13290@#getResourceUrls"(filename: string): (URL & {
|
|
358
|
+
"__#13557@#lastBaseUrl"?: string;
|
|
359
|
+
"__#13557@#workingBaseUrl"?: string;
|
|
360
|
+
"__#13557@#getResourceUrls"(filename: string): (URL & {
|
|
365
361
|
baseUrl: string;
|
|
366
362
|
}) | (URL & {
|
|
367
363
|
baseUrl: string;
|
|
@@ -375,4 +371,3 @@ export declare const descopeUiMixin: <T extends CustomElementConstructor>(superc
|
|
|
375
371
|
readonly projectId: string;
|
|
376
372
|
};
|
|
377
373
|
} & T;
|
|
378
|
-
export {};
|
|
@@ -9,8 +9,8 @@ export declare const formMixin: <T extends CustomElementConstructor>(superclass:
|
|
|
9
9
|
getFormFieldNames(rootEle: ElementOrEmpty): string[];
|
|
10
10
|
disableFormField(rootEle: ElementOrEmpty, name: string): void;
|
|
11
11
|
removeFormField(rootEle: ElementOrEmpty, name: string): void;
|
|
12
|
-
"__#
|
|
13
|
-
"__#
|
|
12
|
+
"__#13553@#logger": import("./loggerMixin").Logger;
|
|
13
|
+
"__#13553@#wrapLogger"(logger: Partial<import("./loggerMixin").Logger>): import("./loggerMixin").Logger;
|
|
14
14
|
get logger(): import("./loggerMixin").Logger;
|
|
15
15
|
set logger(logger: Partial<import("./loggerMixin").Logger>);
|
|
16
16
|
onLogEvent(logLevel: "error" | "warn" | "info" | "debug", data: any[]): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BASE_URLS: string[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type ScriptData = {
|
|
2
|
+
id: string;
|
|
3
|
+
url: URL;
|
|
4
|
+
};
|
|
5
|
+
export declare const injectScriptWithFallbacks: (scriptsData: ScriptData[], onError: (scriptData: ScriptData, existingScript: boolean) => void) => Promise<ScriptData>;
|
|
6
|
+
export declare const generateLibUrls: (baseUrls: string[], libName: string, version: string, path?: string) => any[];
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './injectNpmLibMixin';
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
var descope: any;
|
|
3
|
+
}
|
|
4
|
+
export declare const injectNpmLibMixin: <T extends CustomElementConstructor>(superclass: T) => {
|
|
5
|
+
new (...params: any[]): {
|
|
6
|
+
readonly baseCdnUrl: string;
|
|
7
|
+
injectNpmLib(libName: string, version: string, filePath?: string, overrides?: string[]): Promise<{
|
|
8
|
+
id: string;
|
|
9
|
+
url: URL;
|
|
10
|
+
}>;
|
|
11
|
+
"__#13553@#logger": import("../loggerMixin").Logger;
|
|
12
|
+
"__#13553@#wrapLogger"(logger: Partial<import("../loggerMixin").Logger>): import("../loggerMixin").Logger;
|
|
13
|
+
get logger(): import("../loggerMixin").Logger;
|
|
14
|
+
set logger(logger: Partial<import("../loggerMixin").Logger>);
|
|
15
|
+
onLogEvent(logLevel: "error" | "warn" | "info" | "debug", data: any[]): void;
|
|
16
|
+
accessKey: string;
|
|
17
|
+
readonly accessKeyLabel: string;
|
|
18
|
+
autocapitalize: string;
|
|
19
|
+
dir: string;
|
|
20
|
+
draggable: boolean;
|
|
21
|
+
hidden: boolean;
|
|
22
|
+
inert: boolean;
|
|
23
|
+
innerText: string;
|
|
24
|
+
lang: string;
|
|
25
|
+
readonly offsetHeight: number;
|
|
26
|
+
readonly offsetLeft: number;
|
|
27
|
+
readonly offsetParent: Element;
|
|
28
|
+
readonly offsetTop: number;
|
|
29
|
+
readonly offsetWidth: number;
|
|
30
|
+
outerText: string;
|
|
31
|
+
popover: string;
|
|
32
|
+
spellcheck: boolean;
|
|
33
|
+
title: string;
|
|
34
|
+
translate: boolean;
|
|
35
|
+
attachInternals(): ElementInternals;
|
|
36
|
+
click(): void;
|
|
37
|
+
hidePopover(): void;
|
|
38
|
+
showPopover(): void;
|
|
39
|
+
togglePopover(force?: boolean): boolean;
|
|
40
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
41
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
42
|
+
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
|
43
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
44
|
+
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
45
|
+
connectedCallback(): void;
|
|
46
|
+
readonly attributes: NamedNodeMap;
|
|
47
|
+
readonly classList: DOMTokenList;
|
|
48
|
+
className: string;
|
|
49
|
+
readonly clientHeight: number;
|
|
50
|
+
readonly clientLeft: number;
|
|
51
|
+
readonly clientTop: number;
|
|
52
|
+
readonly clientWidth: number;
|
|
53
|
+
id: string;
|
|
54
|
+
readonly localName: string;
|
|
55
|
+
readonly namespaceURI: string;
|
|
56
|
+
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
57
|
+
onfullscreenerror: (this: Element, ev: Event) => any;
|
|
58
|
+
outerHTML: string;
|
|
59
|
+
readonly ownerDocument: Document;
|
|
60
|
+
readonly part: DOMTokenList;
|
|
61
|
+
readonly prefix: string;
|
|
62
|
+
readonly scrollHeight: number;
|
|
63
|
+
scrollLeft: number;
|
|
64
|
+
scrollTop: number;
|
|
65
|
+
readonly scrollWidth: number;
|
|
66
|
+
readonly shadowRoot: ShadowRoot;
|
|
67
|
+
slot: string;
|
|
68
|
+
readonly tagName: string;
|
|
69
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
70
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
71
|
+
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
|
72
|
+
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
|
|
73
|
+
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4];
|
|
74
|
+
closest<E extends Element = Element>(selectors: string): E;
|
|
75
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
|
76
|
+
getAttribute(qualifiedName: string): string;
|
|
77
|
+
getAttributeNS(namespace: string, localName: string): string;
|
|
78
|
+
getAttributeNames(): string[];
|
|
79
|
+
getAttributeNode(qualifiedName: string): Attr;
|
|
80
|
+
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
81
|
+
getBoundingClientRect(): DOMRect;
|
|
82
|
+
getClientRects(): DOMRectList;
|
|
83
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
84
|
+
getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
|
|
85
|
+
getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
|
|
86
|
+
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
|
87
|
+
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
|
88
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
89
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
90
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
91
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
92
|
+
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
93
|
+
hasAttribute(qualifiedName: string): boolean;
|
|
94
|
+
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
95
|
+
hasAttributes(): boolean;
|
|
96
|
+
hasPointerCapture(pointerId: number): boolean;
|
|
97
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
98
|
+
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
99
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
100
|
+
matches(selectors: string): boolean;
|
|
101
|
+
releasePointerCapture(pointerId: number): void;
|
|
102
|
+
removeAttribute(qualifiedName: string): void;
|
|
103
|
+
removeAttributeNS(namespace: string, localName: string): void;
|
|
104
|
+
removeAttributeNode(attr: Attr): Attr;
|
|
105
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
106
|
+
requestPointerLock(): void;
|
|
107
|
+
scroll(options?: ScrollToOptions): void;
|
|
108
|
+
scroll(x: number, y: number): void;
|
|
109
|
+
scrollBy(options?: ScrollToOptions): void;
|
|
110
|
+
scrollBy(x: number, y: number): void;
|
|
111
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
112
|
+
scrollTo(options?: ScrollToOptions): void;
|
|
113
|
+
scrollTo(x: number, y: number): void;
|
|
114
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
115
|
+
setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
|
|
116
|
+
setAttributeNode(attr: Attr): Attr;
|
|
117
|
+
setAttributeNodeNS(attr: Attr): Attr;
|
|
118
|
+
setPointerCapture(pointerId: number): void;
|
|
119
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
120
|
+
webkitMatchesSelector(selectors: string): boolean;
|
|
121
|
+
readonly baseURI: string;
|
|
122
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
123
|
+
readonly firstChild: ChildNode;
|
|
124
|
+
readonly isConnected: boolean;
|
|
125
|
+
readonly lastChild: ChildNode;
|
|
126
|
+
readonly nextSibling: ChildNode;
|
|
127
|
+
readonly nodeName: string;
|
|
128
|
+
readonly nodeType: number;
|
|
129
|
+
nodeValue: string;
|
|
130
|
+
readonly parentElement: HTMLElement;
|
|
131
|
+
readonly parentNode: ParentNode;
|
|
132
|
+
readonly previousSibling: ChildNode;
|
|
133
|
+
textContent: string;
|
|
134
|
+
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
135
|
+
cloneNode(deep?: boolean): Node;
|
|
136
|
+
compareDocumentPosition(other: Node): number;
|
|
137
|
+
contains(other: Node): boolean;
|
|
138
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
|
139
|
+
hasChildNodes(): boolean;
|
|
140
|
+
insertBefore<T_2 extends Node>(node: T_2, child: Node): T_2;
|
|
141
|
+
isDefaultNamespace(namespace: string): boolean;
|
|
142
|
+
isEqualNode(otherNode: Node): boolean;
|
|
143
|
+
isSameNode(otherNode: Node): boolean;
|
|
144
|
+
lookupNamespaceURI(prefix: string): string;
|
|
145
|
+
lookupPrefix(namespace: string): string;
|
|
146
|
+
normalize(): void;
|
|
147
|
+
removeChild<T_3 extends Node>(child: T_3): T_3;
|
|
148
|
+
replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
|
|
149
|
+
readonly ELEMENT_NODE: 1;
|
|
150
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
151
|
+
readonly TEXT_NODE: 3;
|
|
152
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
153
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
154
|
+
readonly ENTITY_NODE: 6;
|
|
155
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
156
|
+
readonly COMMENT_NODE: 8;
|
|
157
|
+
readonly DOCUMENT_NODE: 9;
|
|
158
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
159
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
160
|
+
readonly NOTATION_NODE: 12;
|
|
161
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
162
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
163
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
164
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
165
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
166
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
167
|
+
dispatchEvent(event: Event): boolean;
|
|
168
|
+
ariaAtomic: string;
|
|
169
|
+
ariaAutoComplete: string;
|
|
170
|
+
ariaBusy: string;
|
|
171
|
+
ariaChecked: string;
|
|
172
|
+
ariaColCount: string;
|
|
173
|
+
ariaColIndex: string;
|
|
174
|
+
ariaColSpan: string;
|
|
175
|
+
ariaCurrent: string;
|
|
176
|
+
ariaDescription: string;
|
|
177
|
+
ariaDisabled: string;
|
|
178
|
+
ariaExpanded: string;
|
|
179
|
+
ariaHasPopup: string;
|
|
180
|
+
ariaHidden: string;
|
|
181
|
+
ariaInvalid: string;
|
|
182
|
+
ariaKeyShortcuts: string;
|
|
183
|
+
ariaLabel: string;
|
|
184
|
+
ariaLevel: string;
|
|
185
|
+
ariaLive: string;
|
|
186
|
+
ariaModal: string;
|
|
187
|
+
ariaMultiLine: string;
|
|
188
|
+
ariaMultiSelectable: string;
|
|
189
|
+
ariaOrientation: string;
|
|
190
|
+
ariaPlaceholder: string;
|
|
191
|
+
ariaPosInSet: string;
|
|
192
|
+
ariaPressed: string;
|
|
193
|
+
ariaReadOnly: string;
|
|
194
|
+
ariaRequired: string;
|
|
195
|
+
ariaRoleDescription: string;
|
|
196
|
+
ariaRowCount: string;
|
|
197
|
+
ariaRowIndex: string;
|
|
198
|
+
ariaRowSpan: string;
|
|
199
|
+
ariaSelected: string;
|
|
200
|
+
ariaSetSize: string;
|
|
201
|
+
ariaSort: string;
|
|
202
|
+
ariaValueMax: string;
|
|
203
|
+
ariaValueMin: string;
|
|
204
|
+
ariaValueNow: string;
|
|
205
|
+
ariaValueText: string;
|
|
206
|
+
role: string;
|
|
207
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions): Animation;
|
|
208
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
209
|
+
after(...nodes: (string | Node)[]): void;
|
|
210
|
+
before(...nodes: (string | Node)[]): void;
|
|
211
|
+
remove(): void;
|
|
212
|
+
replaceWith(...nodes: (string | Node)[]): void;
|
|
213
|
+
innerHTML: string;
|
|
214
|
+
readonly nextElementSibling: Element;
|
|
215
|
+
readonly previousElementSibling: Element;
|
|
216
|
+
readonly childElementCount: number;
|
|
217
|
+
readonly children: HTMLCollection;
|
|
218
|
+
readonly firstElementChild: Element;
|
|
219
|
+
readonly lastElementChild: Element;
|
|
220
|
+
append(...nodes: (string | Node)[]): void;
|
|
221
|
+
prepend(...nodes: (string | Node)[]): void;
|
|
222
|
+
querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9];
|
|
223
|
+
querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10];
|
|
224
|
+
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11];
|
|
225
|
+
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12];
|
|
226
|
+
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
|
227
|
+
querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
228
|
+
querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
229
|
+
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
230
|
+
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
231
|
+
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
232
|
+
replaceChildren(...nodes: (string | Node)[]): void;
|
|
233
|
+
readonly assignedSlot: HTMLSlotElement;
|
|
234
|
+
readonly attributeStyleMap: StylePropertyMap;
|
|
235
|
+
readonly style: CSSStyleDeclaration;
|
|
236
|
+
contentEditable: string;
|
|
237
|
+
enterKeyHint: string;
|
|
238
|
+
inputMode: string;
|
|
239
|
+
readonly isContentEditable: boolean;
|
|
240
|
+
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
|
241
|
+
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
242
|
+
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
243
|
+
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
244
|
+
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
245
|
+
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
246
|
+
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
|
|
247
|
+
onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
248
|
+
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
249
|
+
oncancel: (this: GlobalEventHandlers, ev: Event) => any;
|
|
250
|
+
oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
251
|
+
oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any;
|
|
252
|
+
onchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
253
|
+
onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
254
|
+
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
|
255
|
+
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
256
|
+
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
257
|
+
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
258
|
+
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
259
|
+
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
260
|
+
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
261
|
+
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
262
|
+
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
263
|
+
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
264
|
+
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
265
|
+
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
266
|
+
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
267
|
+
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
268
|
+
onemptied: (this: GlobalEventHandlers, ev: Event) => any;
|
|
269
|
+
onended: (this: GlobalEventHandlers, ev: Event) => any;
|
|
270
|
+
onerror: OnErrorEventHandlerNonNull;
|
|
271
|
+
onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
272
|
+
onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
|
|
273
|
+
ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
274
|
+
oninput: (this: GlobalEventHandlers, ev: Event) => any;
|
|
275
|
+
oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
|
|
276
|
+
onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
277
|
+
onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
278
|
+
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
279
|
+
onload: (this: GlobalEventHandlers, ev: Event) => any;
|
|
280
|
+
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
|
|
281
|
+
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
|
|
282
|
+
onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
283
|
+
onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
284
|
+
onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
285
|
+
onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
286
|
+
onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
287
|
+
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
288
|
+
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
289
|
+
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
290
|
+
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
291
|
+
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
292
|
+
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
|
293
|
+
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
294
|
+
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
|
295
|
+
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
296
|
+
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
297
|
+
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
298
|
+
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
299
|
+
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
300
|
+
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
301
|
+
onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
302
|
+
onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
303
|
+
onprogress: (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any;
|
|
304
|
+
onratechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
305
|
+
onreset: (this: GlobalEventHandlers, ev: Event) => any;
|
|
306
|
+
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
|
307
|
+
onscroll: (this: GlobalEventHandlers, ev: Event) => any;
|
|
308
|
+
onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
309
|
+
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
|
|
310
|
+
onseeked: (this: GlobalEventHandlers, ev: Event) => any;
|
|
311
|
+
onseeking: (this: GlobalEventHandlers, ev: Event) => any;
|
|
312
|
+
onselect: (this: GlobalEventHandlers, ev: Event) => any;
|
|
313
|
+
onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
314
|
+
onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
315
|
+
onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
316
|
+
onstalled: (this: GlobalEventHandlers, ev: Event) => any;
|
|
317
|
+
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
|
318
|
+
onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
319
|
+
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
|
|
320
|
+
ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
321
|
+
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
322
|
+
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
323
|
+
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
324
|
+
ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
325
|
+
ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
|
|
326
|
+
ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
|
|
327
|
+
ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
|
|
328
|
+
ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
|
|
329
|
+
onvolumechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
330
|
+
onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
|
|
331
|
+
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
332
|
+
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
|
|
333
|
+
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
334
|
+
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
335
|
+
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
|
|
336
|
+
autofocus: boolean;
|
|
337
|
+
readonly dataset: DOMStringMap;
|
|
338
|
+
nonce?: string;
|
|
339
|
+
tabIndex: number;
|
|
340
|
+
blur(): void;
|
|
341
|
+
focus(options?: FocusOptions): void;
|
|
342
|
+
};
|
|
343
|
+
} & T;
|
|
@@ -3,8 +3,8 @@ declare const logLevels: readonly ["error", "warn", "info", "debug"];
|
|
|
3
3
|
export type LogLevel = (typeof logLevels)[number];
|
|
4
4
|
export declare const loggerMixin: <T extends CustomElementConstructor>(superclass: T) => {
|
|
5
5
|
new (...params: any[]): {
|
|
6
|
-
"__#
|
|
7
|
-
"__#
|
|
6
|
+
"__#13553@#logger": Logger;
|
|
7
|
+
"__#13553@#wrapLogger"(logger: Partial<Logger>): Logger;
|
|
8
8
|
get logger(): Logger;
|
|
9
9
|
set logger(logger: Partial<Logger> | undefined);
|
|
10
10
|
onLogEvent(logLevel: LogLevel, data: any[]): void;
|