cradova 3.3.55 → 3.3.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -37,9 +37,6 @@ class Comp {
|
|
|
37
37
|
cradovaEvent.refid += 1;
|
|
38
38
|
this.id = cradovaEvent.refid;
|
|
39
39
|
}
|
|
40
|
-
clone() {
|
|
41
|
-
return new Comp(this.component);
|
|
42
|
-
}
|
|
43
40
|
preRender() {
|
|
44
41
|
this.preRendered = this.render();
|
|
45
42
|
}
|
|
@@ -640,6 +637,9 @@ class __raw_ref {
|
|
|
640
637
|
current(name) {
|
|
641
638
|
return this.tree[name];
|
|
642
639
|
}
|
|
640
|
+
swap(name1, name2) {
|
|
641
|
+
[this.tree[name1], this.tree[name2]] = [this.tree[name2], this.tree[name1]];
|
|
642
|
+
}
|
|
643
643
|
_append(name, Element) {
|
|
644
644
|
this.tree[name] = Element;
|
|
645
645
|
}
|
|
@@ -17,6 +17,10 @@ declare class __raw_ref {
|
|
|
17
17
|
* @param name - The name of the referenced DOM element.
|
|
18
18
|
*/
|
|
19
19
|
current<ElementType extends HTMLElement = HTMLElement>(name: string): ElementType | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Swap referenced DOM element.
|
|
22
|
+
*/
|
|
23
|
+
swap(name1: string, name2: string): void;
|
|
20
24
|
/**
|
|
21
25
|
* Append a DOM element to the reference, overwriting any existing reference.
|
|
22
26
|
* @param name - The name to reference the DOM element by.
|