Create Libraries and basic tooltip

This commit is contained in:
2023-08-25 22:09:18 +02:00
parent 82561d8dc7
commit 14c1b97622
81 changed files with 9117 additions and 2036 deletions

View File

@@ -0,0 +1 @@
export * from './lib/destroy.controller';

View File

@@ -0,0 +1,28 @@
import { ReactiveController, ReactiveControllerHost } from 'lit';
import { Subject } from 'rxjs';
export class DestroyController implements ReactiveController {
/** Private variables */
private readonly _host: ReactiveControllerHost;
private readonly destroy$ = new Subject<void>();
/** Protected variables */
/** Public variables */
public readonly destroy = this.destroy$.asObservable();
/** constructor & lifecylce */
constructor(host: ReactiveControllerHost) {
(this._host = host).addController(this);
}
/** Public methods */
public hostDisconnected() {
this.destroy$.next();
this.destroy$.complete();
}
/** Protected methods */
/** Private methods */
}