simplyview 3.4.3 → 3.5.0
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/simply.app.js +32 -83
- package/dist/simply.app.min.js +1 -1
- package/dist/simply.app.min.js.map +3 -3
- package/dist/simply.everything.js +33 -110
- package/dist/simply.everything.min.js +1 -1
- package/dist/simply.everything.min.js.map +4 -4
- package/package.json +1 -1
- package/src/action.mjs +4 -33
- package/src/app.mjs +34 -52
- package/src/everything.mjs +0 -1
- package/src/everything.mjs~ +26 -0
- package/src/path.mjs +1 -2
- package/src/render.mjs +0 -27
package/src/render.mjs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export class SimplyRender extends HTMLElement
|
|
2
|
-
{
|
|
3
|
-
constructor()
|
|
4
|
-
{
|
|
5
|
-
super()
|
|
6
|
-
let templateId = this.getAttribute("rel")
|
|
7
|
-
let template = document.getElementById(templateId)
|
|
8
|
-
|
|
9
|
-
if (template) {
|
|
10
|
-
let content = template.content.cloneNode(true)
|
|
11
|
-
for (const node of content.childNodes) {
|
|
12
|
-
const clone = node.cloneNode(true)
|
|
13
|
-
if (clone.nodeType == document.ELEMENT_NODE) {
|
|
14
|
-
clone.querySelectorAll("template").forEach(function(t) {
|
|
15
|
-
t.setAttribute("simply-render", "")
|
|
16
|
-
})
|
|
17
|
-
}
|
|
18
|
-
this.parentNode.insertBefore(clone, this)
|
|
19
|
-
}
|
|
20
|
-
this.parentNode.removeChild(this)
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
if (!customElements.get('simply-render')) {
|
|
26
|
-
customElements.define('simply-render', SimplyRender);
|
|
27
|
-
}
|