Skip to content

Commit

Permalink
0.0.24
Browse files Browse the repository at this point in the history
  • Loading branch information
bahrus committed Jun 29, 2024
1 parent 5bbba50 commit 910b939
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
22 changes: 13 additions & 9 deletions be-calculating.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ import {BE, BEConfig} from 'be-enhanced/BE.js';
import {Actions, AllProps, AP, ProPAP, PAP} from './types';
import {IEnhancement, BEAllProps} from 'trans-render/be/types';
import {Link} from 'be-linked/types';
import {AllProps as BeExportableAllProps} from 'be-exportable/types';


export class BeCalculating extends BE implements Actions{
static override config: BEConfig<AP & BEAllProps, Actions & IEnhancement, any> = {

};
getDefaultForAttribute(self: this): PAP {
const {enhancedElement} = self;
switch(enhancedElement.localName){
Expand Down Expand Up @@ -109,7 +113,7 @@ export class BeCalculating extends BE implements Actions{
}
}

override detach(detachedElement: Element): void {
override async detach(detachedElement: Element){
this.#disconnect();
}

Expand All @@ -126,14 +130,14 @@ export class BeCalculating extends BE implements Actions{
};
}

async onValue(self: this){
const {enhancedElement, value, propertyToSet, notify} = self;
(<any>enhancedElement)[propertyToSet!] = value;
if(notify !== undefined){
const {doNotify} = await import('./doNotify.js');
await doNotify(self);
}
}
// async onValue(self: this){
// const {enhancedElement, value, propertyToSet, notify} = self;
// (<any>enhancedElement)[propertyToSet!] = value;
// if(notify !== undefined){
// const {doNotify} = await import('./doNotify.js');
// await doNotify(self);
// }
// }
}

export interface BeCalculating extends AP{}
18 changes: 7 additions & 11 deletions behivior.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import './behance.js';
import {BeHive} from 'be-hive/be-hive.js';
import {BeHive, EMC, seed, MountObserver} from 'be-hive/be-hive.js';

BeHive.registry.register({
export const emc: EMC = {
base: 'be-calculating',
enhPropKey: 'beCalculating',
map: {
'0.0': 'ni'
},
do: {
mount:{
import: async() => {
const {BeCalculating} = await import('./be-calculating.js');
return BeCalculating;
}
}
importEnh: async () => {
const {BeCalculating} = await import('./be-calculating.js');
return BeCalculating;
}
});

};
2 changes: 1 addition & 1 deletion types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ export interface Actions{
getArgs(self: this): PAP;
observe(self: this): ProPAP;
importSymbols(self: this): ProPAP;
onValue(self: this): void;
//onValue(self: this): void;
}

0 comments on commit 910b939

Please sign in to comment.