1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-01 12:22:15 +02:00
This commit is contained in:
2025-03-05 19:29:03 +01:00
parent 05413cb2bb
commit 17e40fdd9c
28 changed files with 215 additions and 98 deletions

View File

@ -177,6 +177,11 @@ var scope = {
pop() {
if (scopes.length === 1) return;
return scopes.pop();
},
isolate(fn) {
this.push({ prevent: true });
fn();
this.pop();
}
};
function append(...els) {

File diff suppressed because one or more lines are too long

5
dist/dde.js vendored
View File

@ -154,6 +154,11 @@ var scope = {
pop() {
if (scopes.length === 1) return;
return scopes.pop();
},
isolate(fn) {
this.push({ prevent: true });
fn();
this.pop();
}
};
function append(...els) {

8
dist/dde.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -232,11 +232,13 @@ export const scope: {
state: Scope[],
/** Adds new child scope. All attributes are inherited by default. */
push(scope: Partial<Scope>): ReturnType<Array<Scope>["push"]>,
push(scope?: Partial<Scope>): ReturnType<Array<Scope>["push"]>,
/** Adds root scope as a child of the current 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<

View File

@ -232,11 +232,13 @@ export const scope: {
state: Scope[],
/** Adds new child scope. All attributes are inherited by default. */
push(scope: Partial<Scope>): ReturnType<Array<Scope>["push"]>,
push(scope?: Partial<Scope>): ReturnType<Array<Scope>["push"]>,
/** Adds root scope as a child of the current 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<

View File

@ -175,6 +175,11 @@ var scope = {
pop() {
if (scopes.length === 1) return;
return scopes.pop();
},
isolate(fn) {
this.push({ prevent: true });
fn();
this.pop();
}
};
function append(...els) {

File diff suppressed because one or more lines are too long

4
dist/esm.d.min.ts vendored
View File

@ -232,11 +232,13 @@ export const scope: {
state: Scope[],
/** Adds new child scope. All attributes are inherited by default. */
push(scope: Partial<Scope>): ReturnType<Array<Scope>["push"]>,
push(scope?: Partial<Scope>): ReturnType<Array<Scope>["push"]>,
/** Adds root scope as a child of the current 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<

4
dist/esm.d.ts vendored
View File

@ -232,11 +232,13 @@ export const scope: {
state: Scope[],
/** Adds new child scope. All attributes are inherited by default. */
push(scope: Partial<Scope>): ReturnType<Array<Scope>["push"]>,
push(scope?: Partial<Scope>): ReturnType<Array<Scope>["push"]>,
/** Adds root scope as a child of the current 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<

5
dist/esm.js vendored
View File

@ -152,6 +152,11 @@ var scope = {
pop() {
if (scopes.length === 1) return;
return scopes.pop();
},
isolate(fn) {
this.push({ prevent: true });
fn();
this.pop();
}
};
function append(...els) {

2
dist/esm.min.js vendored

File diff suppressed because one or more lines are too long