custom-elements-ts 0.0.16 → 0.0.17
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/README.md +191 -168
- package/bundles/custom-elements-ts.umd.js +314 -270
- package/bundles/custom-elements-ts.umd.js.map +1 -1
- package/esm2015/custom-elements-ts.js +270 -247
- package/esm2015/custom-elements-ts.js.map +1 -1
- package/{custom-element.d.ts → esm5/custom-element.d.ts} +12 -12
- package/esm5/custom-elements-ts.js +308 -262
- package/esm5/custom-elements-ts.js.map +1 -1
- package/{index.d.ts → esm5/index.d.ts} +5 -5
- package/{listen.d.ts → esm5/listen.d.ts} +17 -17
- package/{prop.d.ts → esm5/prop.d.ts} +2 -2
- package/{toggle.d.ts → esm5/toggle.d.ts} +1 -1
- package/esm5/util.d.ts +4 -0
- package/{watch.d.ts → esm5/watch.d.ts} +1 -1
- package/package.json +9 -14
- package/util.d.ts +0 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
interface ListenerMetadata {
|
|
2
|
-
eventName: string;
|
|
3
|
-
handler:
|
|
4
|
-
selector?: string;
|
|
5
|
-
}
|
|
6
|
-
interface CustomEventOptions {
|
|
7
|
-
bubbles?: boolean;
|
|
8
|
-
composed?: boolean;
|
|
9
|
-
detail?: any;
|
|
10
|
-
}
|
|
11
|
-
interface DispatchEmitter {
|
|
12
|
-
emit(options?: CustomEventOptions): void;
|
|
13
|
-
}
|
|
14
|
-
declare const Listen: (eventName: string, selector?: string) => (target: any, methodName: string) => void;
|
|
15
|
-
declare const addEventListeners: (target: any) => void;
|
|
16
|
-
declare const Dispatch: (eventName?: string) => (target: HTMLElement, propertyName: string) => void;
|
|
17
|
-
export { Listen, addEventListeners, DispatchEmitter, Dispatch, CustomEventOptions, ListenerMetadata };
|
|
1
|
+
interface ListenerMetadata {
|
|
2
|
+
eventName: string;
|
|
3
|
+
handler: (e: Event) => void;
|
|
4
|
+
selector?: string;
|
|
5
|
+
}
|
|
6
|
+
interface CustomEventOptions {
|
|
7
|
+
bubbles?: boolean;
|
|
8
|
+
composed?: boolean;
|
|
9
|
+
detail?: any;
|
|
10
|
+
}
|
|
11
|
+
interface DispatchEmitter {
|
|
12
|
+
emit(options?: CustomEventOptions): void;
|
|
13
|
+
}
|
|
14
|
+
declare const Listen: (eventName: string, selector?: string) => (target: any, methodName: string) => void;
|
|
15
|
+
declare const addEventListeners: (target: any) => void;
|
|
16
|
+
declare const Dispatch: (eventName?: string) => (target: HTMLElement, propertyName: string) => void;
|
|
17
|
+
export { Listen, addEventListeners, DispatchEmitter, Dispatch, CustomEventOptions, ListenerMetadata, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const Prop: () => any;
|
|
2
|
-
export declare const initializeProps: (target: any) => void;
|
|
1
|
+
export declare const Prop: () => any;
|
|
2
|
+
export declare const initializeProps: (target: any) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Toggle: () => any;
|
|
1
|
+
export declare const Toggle: () => any;
|
package/esm5/util.d.ts
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Watch: (attrName: string) => (target: any, propertyName: string) => void;
|
|
1
|
+
export declare const Watch: (attrName: string) => (target: any, propertyName: string) => void;
|
package/package.json
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "custom-elements-ts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "Create native Custom Elements using Typescript without using any third party libraries",
|
|
5
5
|
"main": "./bundles/custom-elements-ts.umd.js",
|
|
6
6
|
"module": "./esm2015/custom-elements-ts.js",
|
|
7
|
+
"esm5": "./esm5/custom-elements-ts.js",
|
|
8
|
+
"esm2015": "./esm2015/custom-elements-ts.js",
|
|
9
|
+
"typings": "index.d.ts",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/geocine/custom-elements-ts.git"
|
|
13
|
+
},
|
|
7
14
|
"keywords": [
|
|
8
15
|
"components",
|
|
9
16
|
"custom",
|
|
@@ -13,17 +20,5 @@
|
|
|
13
20
|
"typescript"
|
|
14
21
|
],
|
|
15
22
|
"license": "MIT",
|
|
16
|
-
"
|
|
17
|
-
"contributors": [
|
|
18
|
-
"Aivan Monceller",
|
|
19
|
-
"Arjay Elbore",
|
|
20
|
-
"Martin Llaneza"
|
|
21
|
-
],
|
|
22
|
-
"repository": {
|
|
23
|
-
"type": "git",
|
|
24
|
-
"url": "git+https://github.com/geocine/custom-elements-ts.git"
|
|
25
|
-
},
|
|
26
|
-
"homepage": "https://geocine.github.io/custom-elements-ts/",
|
|
27
|
-
"esm2015": "./esm2015/custom-elements-ts.js",
|
|
28
|
-
"esm5": "./esm5/custom-elements-ts.js"
|
|
23
|
+
"homepage": "https://geocine.github.io/custom-elements-ts/"
|
|
29
24
|
}
|
package/util.d.ts
DELETED