fix(core): update

This commit is contained in:
2022-04-14 16:56:04 +02:00
parent 6917145b58
commit 03c00919df
7 changed files with 916 additions and 1016 deletions

View File

@ -243,7 +243,7 @@ export class WccProperties extends DeesElement {
});
return enumValues;
};
const determinePropertyType = (propertyArg: any): TPropertyType => {
const determinePropertyType = async (propertyArg: any): Promise<TPropertyType> => {
const typeName: any | undefined = propertyArg.type.name;
if (typeName) {
return typeName;
@ -265,7 +265,7 @@ export class WccProperties extends DeesElement {
console.log(anonItem.elementProperties);
const wccFrame = await this.dashboardRef.wccFrame;
let firstFoundInstantiatedElement: HTMLElement;
for (const element of Array.from(wccFrame.children)) {
for (const element of Array.from((await wccFrame.getViewportElement()).children)) {
if (element instanceof (this.selectedItem as any)) {
firstFoundInstantiatedElement = element as HTMLElement;
break;
@ -287,7 +287,7 @@ export class WccProperties extends DeesElement {
continue;
}
const property = classProperties.get(key);
const propertyTypeString = determinePropertyType(property);
const propertyTypeString = await determinePropertyType(property);
propertyArray.push(
html`
<div class="property">