@rxdi/lit-html 0.7.208 → 0.7.210
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/decorators/component.decorator.js +6 -1
- package/dist/decorators/hooks/index.d.ts +12 -4
- package/dist/decorators/hooks/index.js +0 -18
- package/package.json +1 -1
- package/dist/decorators/hooks/on-destroy.d.ts +0 -3
- package/dist/decorators/hooks/on-destroy.js +0 -2
- package/dist/decorators/hooks/on-init.d.ts +0 -3
- package/dist/decorators/hooks/on-init.js +0 -2
- package/dist/decorators/hooks/on-update-first.d.ts +0 -3
- package/dist/decorators/hooks/on-update-first.js +0 -2
- package/dist/decorators/hooks/on-update.d.ts +0 -3
- package/dist/decorators/hooks/on-update.js +0 -2
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
3
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
4
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
5
|
+
};
|
|
2
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
7
|
exports.Component = void 0;
|
|
4
8
|
const lit_html_1 = require("lit-html");
|
|
@@ -45,7 +49,7 @@ const customElement = (tag, config = {}) => (Base) => {
|
|
|
45
49
|
if (config.style) {
|
|
46
50
|
config.styles.push(config.style);
|
|
47
51
|
}
|
|
48
|
-
const ModifiedClass = (_b = class
|
|
52
|
+
const ModifiedClass = (_b = class extends Base {
|
|
49
53
|
static is() {
|
|
50
54
|
return tag;
|
|
51
55
|
}
|
|
@@ -116,6 +120,7 @@ const customElement = (tag, config = {}) => (Base) => {
|
|
|
116
120
|
OnUpdateFirst.call(this);
|
|
117
121
|
}
|
|
118
122
|
},
|
|
123
|
+
__setFunctionName(_b, "ModifiedClass"),
|
|
119
124
|
_b.styles = config.styles,
|
|
120
125
|
_b);
|
|
121
126
|
const registeredElement = window.customElements.get(tag);
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
export interface OnUpdate {
|
|
2
|
+
OnUpdate(): void;
|
|
3
|
+
}
|
|
4
|
+
export interface OnDestroy {
|
|
5
|
+
OnDestroy(): void;
|
|
6
|
+
}
|
|
7
|
+
export interface OnUpdateFirst {
|
|
8
|
+
OnUpdateFirst(): void;
|
|
9
|
+
}
|
|
10
|
+
export interface OnInit {
|
|
11
|
+
OnInit(): void;
|
|
12
|
+
}
|
|
@@ -1,20 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
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);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./on-destroy"), exports);
|
|
18
|
-
__exportStar(require("./on-init"), exports);
|
|
19
|
-
__exportStar(require("./on-update"), exports);
|
|
20
|
-
__exportStar(require("./on-update-first"), exports);
|
package/package.json
CHANGED