mirror of
https://github.com/jaandrle/deka-dom-el
synced 2024-11-24 09:29:37 +01:00
📦 dist
This commit is contained in:
parent
8dcf4b83ff
commit
8c27fe8015
50
dist/dde-with-observables.js
vendored
50
dist/dde-with-observables.js
vendored
File diff suppressed because one or more lines are too long
40
dist/dde.js
vendored
40
dist/dde.js
vendored
File diff suppressed because one or more lines are too long
4
dist/esm-with-observables.d.ts
vendored
4
dist/esm-with-observables.d.ts
vendored
@ -3,6 +3,7 @@ type Action<V>= (this: { value: V, stopPropagation(): void }, ...a: any[])=> typ
|
|||||||
//type SymbolObservable= Symbol;
|
//type SymbolObservable= Symbol;
|
||||||
type SymbolOnclear= symbol;
|
type SymbolOnclear= symbol;
|
||||||
type Actions<V>= Record<string | SymbolOnclear, Action<V>>;
|
type Actions<V>= Record<string | SymbolOnclear, Action<V>>;
|
||||||
|
type OnListenerOptions= Pick<AddEventListenerOptions, "signal"> & { first_time?: boolean };
|
||||||
interface observable{
|
interface observable{
|
||||||
_: Symbol
|
_: Symbol
|
||||||
/**
|
/**
|
||||||
@ -40,7 +41,7 @@ interface observable{
|
|||||||
...params: A[N] extends (...args: infer P)=> any ? P : never
|
...params: A[N] extends (...args: infer P)=> any ? P : never
|
||||||
): void;
|
): void;
|
||||||
clear(...observables: Observable<any, any>[]): void;
|
clear(...observables: Observable<any, any>[]): void;
|
||||||
on<T>(observable: Observable<T, any>, onchange: (a: T)=> void, options?: AddEventListenerOptions): void;
|
on<T>(observable: Observable<T, any>, onchange: (a: T)=> void, options?: OnListenerOptions): void;
|
||||||
symbols: {
|
symbols: {
|
||||||
//observable: SymbolObservable;
|
//observable: SymbolObservable;
|
||||||
onclear: SymbolOnclear;
|
onclear: SymbolOnclear;
|
||||||
@ -239,6 +240,7 @@ export function customElementRender<
|
|||||||
P extends any = Record<string, any>
|
P extends any = Record<string, any>
|
||||||
>(
|
>(
|
||||||
custom_element: EL,
|
custom_element: EL,
|
||||||
|
target: ShadowRoot | EL,
|
||||||
render: (props: P)=> SupportedElement,
|
render: (props: P)=> SupportedElement,
|
||||||
props?: P | ((...args: any[])=> P)
|
props?: P | ((...args: any[])=> P)
|
||||||
): EL
|
): EL
|
||||||
|
8
dist/esm-with-observables.js
vendored
8
dist/esm-with-observables.js
vendored
File diff suppressed because one or more lines are too long
4
dist/esm.d.ts
vendored
4
dist/esm.d.ts
vendored
@ -3,6 +3,7 @@ type Action<V>= (this: { value: V, stopPropagation(): void }, ...a: any[])=> typ
|
|||||||
//type SymbolObservable= Symbol;
|
//type SymbolObservable= Symbol;
|
||||||
type SymbolOnclear= symbol;
|
type SymbolOnclear= symbol;
|
||||||
type Actions<V>= Record<string | SymbolOnclear, Action<V>>;
|
type Actions<V>= Record<string | SymbolOnclear, Action<V>>;
|
||||||
|
type OnListenerOptions= Pick<AddEventListenerOptions, "signal"> & { first_time?: boolean };
|
||||||
interface observable{
|
interface observable{
|
||||||
_: Symbol
|
_: Symbol
|
||||||
/**
|
/**
|
||||||
@ -40,7 +41,7 @@ interface observable{
|
|||||||
...params: A[N] extends (...args: infer P)=> any ? P : never
|
...params: A[N] extends (...args: infer P)=> any ? P : never
|
||||||
): void;
|
): void;
|
||||||
clear(...observables: Observable<any, any>[]): void;
|
clear(...observables: Observable<any, any>[]): void;
|
||||||
on<T>(observable: Observable<T, any>, onchange: (a: T)=> void, options?: AddEventListenerOptions): void;
|
on<T>(observable: Observable<T, any>, onchange: (a: T)=> void, options?: OnListenerOptions): void;
|
||||||
symbols: {
|
symbols: {
|
||||||
//observable: SymbolObservable;
|
//observable: SymbolObservable;
|
||||||
onclear: SymbolOnclear;
|
onclear: SymbolOnclear;
|
||||||
@ -239,6 +240,7 @@ export function customElementRender<
|
|||||||
P extends any = Record<string, any>
|
P extends any = Record<string, any>
|
||||||
>(
|
>(
|
||||||
custom_element: EL,
|
custom_element: EL,
|
||||||
|
target: ShadowRoot | EL,
|
||||||
render: (props: P)=> SupportedElement,
|
render: (props: P)=> SupportedElement,
|
||||||
props?: P | ((...args: any[])=> P)
|
props?: P | ((...args: any[])=> P)
|
||||||
): EL
|
): EL
|
||||||
|
2
dist/esm.js
vendored
2
dist/esm.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user