@rxdi/lit-html 0.7.190 → 0.7.191-nightly.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.
|
@@ -48,10 +48,10 @@ export interface CustomElementConfig<T> {
|
|
|
48
48
|
*/
|
|
49
49
|
container?: HTMLElement | DocumentFragment;
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
type Constructor<T> = new (...args: unknown[]) => T;
|
|
52
52
|
export declare const Component: <T>(config: CustomElementConfig<T>) => <K extends new (...args: any[]) => {}>(Base: K) => {
|
|
53
53
|
new (...args: any[]): {
|
|
54
|
-
getTemplateResult(): any;
|
|
54
|
+
getTemplateResult(): /*elided*/ any;
|
|
55
55
|
OnInit(): any;
|
|
56
56
|
disconnectedCallback(): void;
|
|
57
57
|
connectedCallback(): void;
|
|
@@ -77,7 +77,7 @@ const customElement = (tag, config = {}) => (Base) => {
|
|
|
77
77
|
registry = null;
|
|
78
78
|
}
|
|
79
79
|
connectedCallback() {
|
|
80
|
-
var _a,
|
|
80
|
+
var _a, _c;
|
|
81
81
|
connectedCallback.call(this);
|
|
82
82
|
OnInit.call(this);
|
|
83
83
|
if (isFunction(config.registry)) {
|
|
@@ -91,7 +91,7 @@ const customElement = (tag, config = {}) => (Base) => {
|
|
|
91
91
|
if (!modifier.options) {
|
|
92
92
|
throw new Error(`Missing options for attribute inside ${config.selector}`);
|
|
93
93
|
}
|
|
94
|
-
if (!((
|
|
94
|
+
if (!((_c = modifier.options) === null || _c === void 0 ? void 0 : _c.selector)) {
|
|
95
95
|
throw new Error(`Missing attribute selector inside component "${config.selector}"`);
|
|
96
96
|
}
|
|
97
97
|
if (!registry && typeof modifier.options.registry === 'function') {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist/decorators/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdi/lit-html",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.191-nightly.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"author": "Kristiyan Tachev",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"lit-html": "2.5.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@types/node": "^
|
|
21
|
-
"typescript": "^
|
|
20
|
+
"@types/node": "^25.0.3",
|
|
21
|
+
"typescript": "^5.9.3"
|
|
22
22
|
},
|
|
23
23
|
"types": "./dist/index.d.ts",
|
|
24
24
|
"module": "./dist/index.js",
|