element-vir 6.1.2 → 6.1.3
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.
|
@@ -27,7 +27,7 @@ export declare abstract class DeclarativeElement<InputsGeneric extends PropertyI
|
|
|
27
27
|
abstract assignInputs(inputs: InputsGeneric): void;
|
|
28
28
|
abstract readonly haveInputsBeenSet: boolean;
|
|
29
29
|
abstract markInputsAsHavingBeenSet(): void;
|
|
30
|
-
abstract readonly
|
|
30
|
+
abstract readonly definition: DeclarativeElementDefinition<InputsGeneric, PropertyInitGeneric, EventsInitGeneric, HostClassKeys, CssVarKeys>;
|
|
31
31
|
}
|
|
32
32
|
export interface StaticDeclarativeElementProperties<InputsGeneric extends PropertyInitMapBase, PropertyInitGeneric extends PropertyInitMapBase, EventsInitGeneric extends EventsInitMap, HostClassKeys extends string, CssVarKeys extends string> {
|
|
33
33
|
/** Pass through the render callback for direct unit testability */
|
|
@@ -32,7 +32,7 @@ export function defineElementNoInputs(initInput) {
|
|
|
32
32
|
this.initCalled = false;
|
|
33
33
|
this.haveInputsBeenSet = false;
|
|
34
34
|
// this is set below in Object.defineProperties
|
|
35
|
-
this.
|
|
35
|
+
this.definition = {};
|
|
36
36
|
this.instanceInputs = createElementUpdaterProxy(this, false);
|
|
37
37
|
this.instanceState = createElementUpdaterProxy(this, true);
|
|
38
38
|
const stateInit = initInput.stateInit || {};
|
|
@@ -40,6 +40,7 @@ export function defineElementNoInputs(initInput) {
|
|
|
40
40
|
property()(this, propName);
|
|
41
41
|
this[propName] = stateInit[propName];
|
|
42
42
|
});
|
|
43
|
+
this.definition = anonymousClass;
|
|
43
44
|
}
|
|
44
45
|
createRenderParams() {
|
|
45
46
|
return createRenderParams(this, eventsMap);
|
|
@@ -109,10 +110,6 @@ export function defineElementNoInputs(initInput) {
|
|
|
109
110
|
}),
|
|
110
111
|
writable: true,
|
|
111
112
|
},
|
|
112
|
-
creator: {
|
|
113
|
-
value: anonymousClass,
|
|
114
|
-
writable: false,
|
|
115
|
-
},
|
|
116
113
|
isStrictInstance: {
|
|
117
114
|
value: (element) => {
|
|
118
115
|
return element instanceof anonymousClass;
|