mirror of
https://github.com/jaandrle/deka-dom-el
synced 2025-07-01 12:22:15 +02:00
⚡ issignal
This commit is contained in:
9
dist/dde-with-signals.js
vendored
9
dist/dde-with-signals.js
vendored
@ -177,11 +177,6 @@ var scope = {
|
||||
pop() {
|
||||
if (scopes.length === 1) return;
|
||||
return scopes.pop();
|
||||
},
|
||||
isolate(fn) {
|
||||
this.push({ prevent: true });
|
||||
fn();
|
||||
this.pop();
|
||||
}
|
||||
};
|
||||
function append(...els) {
|
||||
@ -647,7 +642,7 @@ on.disconnectedAsAbort = function(host) {
|
||||
const a = new AbortController();
|
||||
store_abort.set(host, a);
|
||||
host(on.disconnected(() => a.abort()));
|
||||
return a;
|
||||
return a.signal;
|
||||
};
|
||||
var els_attribute_store = /* @__PURE__ */ new WeakSet();
|
||||
on.attributeChanged = function(listener, options) {
|
||||
@ -713,7 +708,7 @@ var SignalReadOnly = oCreate(Signal, {
|
||||
} }
|
||||
});
|
||||
function isSignal(candidate) {
|
||||
return isProtoFrom(candidate, Signal);
|
||||
return candidate && candidate[mark];
|
||||
}
|
||||
var stack_watch = [];
|
||||
var deps = /* @__PURE__ */ new WeakMap();
|
||||
|
14
dist/dde-with-signals.min.js
vendored
14
dist/dde-with-signals.min.js
vendored
File diff suppressed because one or more lines are too long
7
dist/dde.js
vendored
7
dist/dde.js
vendored
@ -154,11 +154,6 @@ var scope = {
|
||||
pop() {
|
||||
if (scopes.length === 1) return;
|
||||
return scopes.pop();
|
||||
},
|
||||
isolate(fn) {
|
||||
this.push({ prevent: true });
|
||||
fn();
|
||||
this.pop();
|
||||
}
|
||||
};
|
||||
function append(...els) {
|
||||
@ -624,7 +619,7 @@ on.disconnectedAsAbort = function(host) {
|
||||
const a = new AbortController();
|
||||
store_abort.set(host, a);
|
||||
host(on.disconnected(() => a.abort()));
|
||||
return a;
|
||||
return a.signal;
|
||||
};
|
||||
var els_attribute_store = /* @__PURE__ */ new WeakSet();
|
||||
on.attributeChanged = function(listener, options) {
|
||||
|
8
dist/dde.min.js
vendored
8
dist/dde.min.js
vendored
File diff suppressed because one or more lines are too long
6
dist/esm-with-signals.d.min.ts
vendored
6
dist/esm-with-signals.d.min.ts
vendored
@ -76,7 +76,7 @@ export function el<
|
||||
A extends ddeComponentAttributes,
|
||||
EL extends SupportedElement | ddeDocumentFragment
|
||||
>(
|
||||
component: (attr: A)=> EL,
|
||||
component: (attr: A, ...rest: any[])=> EL,
|
||||
attrs?: NoInfer<A>,
|
||||
...addons: ddeElementAddon<EL>[]
|
||||
): EL extends ddeHTMLElementTagNameMap[keyof ddeHTMLElementTagNameMap]
|
||||
@ -86,7 +86,7 @@ export function el<
|
||||
A extends { textContent: ddeStringable },
|
||||
EL extends SupportedElement | ddeDocumentFragment
|
||||
>(
|
||||
component: (attr: A)=> EL,
|
||||
component: (attr: A, ...rest: any[])=> EL,
|
||||
attrs?: NoInfer<A>["textContent"],
|
||||
...addons: ddeElementAddon<EL>[]
|
||||
): EL extends ddeHTMLElementTagNameMap[keyof ddeHTMLElementTagNameMap]
|
||||
@ -237,8 +237,6 @@ export const scope: {
|
||||
pushRoot(): ReturnType<Array<Scope>["push"]>,
|
||||
/** Removes last/current child scope. */
|
||||
pop(): ReturnType<Array<Scope>["pop"]>,
|
||||
/** Runs function in a new (isolated) scope */
|
||||
isolate(fn: Function): void,
|
||||
};
|
||||
|
||||
export function customElementRender<
|
||||
|
6
dist/esm-with-signals.d.ts
vendored
6
dist/esm-with-signals.d.ts
vendored
@ -76,7 +76,7 @@ export function el<
|
||||
A extends ddeComponentAttributes,
|
||||
EL extends SupportedElement | ddeDocumentFragment
|
||||
>(
|
||||
component: (attr: A)=> EL,
|
||||
component: (attr: A, ...rest: any[])=> EL,
|
||||
attrs?: NoInfer<A>,
|
||||
...addons: ddeElementAddon<EL>[]
|
||||
): EL extends ddeHTMLElementTagNameMap[keyof ddeHTMLElementTagNameMap]
|
||||
@ -86,7 +86,7 @@ export function el<
|
||||
A extends { textContent: ddeStringable },
|
||||
EL extends SupportedElement | ddeDocumentFragment
|
||||
>(
|
||||
component: (attr: A)=> EL,
|
||||
component: (attr: A, ...rest: any[])=> EL,
|
||||
attrs?: NoInfer<A>["textContent"],
|
||||
...addons: ddeElementAddon<EL>[]
|
||||
): EL extends ddeHTMLElementTagNameMap[keyof ddeHTMLElementTagNameMap]
|
||||
@ -237,8 +237,6 @@ export const scope: {
|
||||
pushRoot(): ReturnType<Array<Scope>["push"]>,
|
||||
/** Removes last/current child scope. */
|
||||
pop(): ReturnType<Array<Scope>["pop"]>,
|
||||
/** Runs function in a new (isolated) scope */
|
||||
isolate(fn: Function): void,
|
||||
};
|
||||
|
||||
export function customElementRender<
|
||||
|
9
dist/esm-with-signals.js
vendored
9
dist/esm-with-signals.js
vendored
@ -175,11 +175,6 @@ var scope = {
|
||||
pop() {
|
||||
if (scopes.length === 1) return;
|
||||
return scopes.pop();
|
||||
},
|
||||
isolate(fn) {
|
||||
this.push({ prevent: true });
|
||||
fn();
|
||||
this.pop();
|
||||
}
|
||||
};
|
||||
function append(...els) {
|
||||
@ -645,7 +640,7 @@ on.disconnectedAsAbort = function(host) {
|
||||
const a = new AbortController();
|
||||
store_abort.set(host, a);
|
||||
host(on.disconnected(() => a.abort()));
|
||||
return a;
|
||||
return a.signal;
|
||||
};
|
||||
var els_attribute_store = /* @__PURE__ */ new WeakSet();
|
||||
on.attributeChanged = function(listener, options) {
|
||||
@ -711,7 +706,7 @@ var SignalReadOnly = oCreate(Signal, {
|
||||
} }
|
||||
});
|
||||
function isSignal(candidate) {
|
||||
return isProtoFrom(candidate, Signal);
|
||||
return candidate && candidate[mark];
|
||||
}
|
||||
var stack_watch = [];
|
||||
var deps = /* @__PURE__ */ new WeakMap();
|
||||
|
8
dist/esm-with-signals.min.js
vendored
8
dist/esm-with-signals.min.js
vendored
File diff suppressed because one or more lines are too long
6
dist/esm.d.min.ts
vendored
6
dist/esm.d.min.ts
vendored
@ -76,7 +76,7 @@ export function el<
|
||||
A extends ddeComponentAttributes,
|
||||
EL extends SupportedElement | ddeDocumentFragment
|
||||
>(
|
||||
component: (attr: A)=> EL,
|
||||
component: (attr: A, ...rest: any[])=> EL,
|
||||
attrs?: NoInfer<A>,
|
||||
...addons: ddeElementAddon<EL>[]
|
||||
): EL extends ddeHTMLElementTagNameMap[keyof ddeHTMLElementTagNameMap]
|
||||
@ -86,7 +86,7 @@ export function el<
|
||||
A extends { textContent: ddeStringable },
|
||||
EL extends SupportedElement | ddeDocumentFragment
|
||||
>(
|
||||
component: (attr: A)=> EL,
|
||||
component: (attr: A, ...rest: any[])=> EL,
|
||||
attrs?: NoInfer<A>["textContent"],
|
||||
...addons: ddeElementAddon<EL>[]
|
||||
): EL extends ddeHTMLElementTagNameMap[keyof ddeHTMLElementTagNameMap]
|
||||
@ -237,8 +237,6 @@ export const scope: {
|
||||
pushRoot(): ReturnType<Array<Scope>["push"]>,
|
||||
/** Removes last/current child scope. */
|
||||
pop(): ReturnType<Array<Scope>["pop"]>,
|
||||
/** Runs function in a new (isolated) scope */
|
||||
isolate(fn: Function): void,
|
||||
};
|
||||
|
||||
export function customElementRender<
|
||||
|
6
dist/esm.d.ts
vendored
6
dist/esm.d.ts
vendored
@ -76,7 +76,7 @@ export function el<
|
||||
A extends ddeComponentAttributes,
|
||||
EL extends SupportedElement | ddeDocumentFragment
|
||||
>(
|
||||
component: (attr: A)=> EL,
|
||||
component: (attr: A, ...rest: any[])=> EL,
|
||||
attrs?: NoInfer<A>,
|
||||
...addons: ddeElementAddon<EL>[]
|
||||
): EL extends ddeHTMLElementTagNameMap[keyof ddeHTMLElementTagNameMap]
|
||||
@ -86,7 +86,7 @@ export function el<
|
||||
A extends { textContent: ddeStringable },
|
||||
EL extends SupportedElement | ddeDocumentFragment
|
||||
>(
|
||||
component: (attr: A)=> EL,
|
||||
component: (attr: A, ...rest: any[])=> EL,
|
||||
attrs?: NoInfer<A>["textContent"],
|
||||
...addons: ddeElementAddon<EL>[]
|
||||
): EL extends ddeHTMLElementTagNameMap[keyof ddeHTMLElementTagNameMap]
|
||||
@ -237,8 +237,6 @@ export const scope: {
|
||||
pushRoot(): ReturnType<Array<Scope>["push"]>,
|
||||
/** Removes last/current child scope. */
|
||||
pop(): ReturnType<Array<Scope>["pop"]>,
|
||||
/** Runs function in a new (isolated) scope */
|
||||
isolate(fn: Function): void,
|
||||
};
|
||||
|
||||
export function customElementRender<
|
||||
|
7
dist/esm.js
vendored
7
dist/esm.js
vendored
@ -152,11 +152,6 @@ var scope = {
|
||||
pop() {
|
||||
if (scopes.length === 1) return;
|
||||
return scopes.pop();
|
||||
},
|
||||
isolate(fn) {
|
||||
this.push({ prevent: true });
|
||||
fn();
|
||||
this.pop();
|
||||
}
|
||||
};
|
||||
function append(...els) {
|
||||
@ -622,7 +617,7 @@ on.disconnectedAsAbort = function(host) {
|
||||
const a = new AbortController();
|
||||
store_abort.set(host, a);
|
||||
host(on.disconnected(() => a.abort()));
|
||||
return a;
|
||||
return a.signal;
|
||||
};
|
||||
var els_attribute_store = /* @__PURE__ */ new WeakSet();
|
||||
on.attributeChanged = function(listener, options) {
|
||||
|
2
dist/esm.min.js
vendored
2
dist/esm.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user