@mgdis/stencil-helpers 3.2.13 → 3.2.15
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.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.d.ts.map +1 -1
- package/dist/storybook/index.d.ts +1 -1
- package/dist/storybook/index.d.ts.map +1 -1
- package/dist/tests/index.d.ts +1 -1
- package/dist/tests/index.d.ts.map +1 -1
- package/package.json +12 -12
package/dist/index.es.js
CHANGED
|
@@ -256,7 +256,7 @@ var Ee = (e, t, n = !0) => {
|
|
|
256
256
|
let i = e;
|
|
257
257
|
for (; i = i.nextSibling;) D(i) === t && (n || !i["s-sr"]) && r.push(i);
|
|
258
258
|
return r;
|
|
259
|
-
}, De = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t
|
|
259
|
+
}, De = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t || t === "", D = (e) => typeof e["s-sn"] == "string" ? e["s-sn"] : e.nodeType === 1 && e.getAttribute("slot") || void 0;
|
|
260
260
|
function Oe(e) {
|
|
261
261
|
if (e.assignedElements || e.assignedNodes || !e["s-sr"]) return;
|
|
262
262
|
let t = (t) => (function(e) {
|
|
@@ -425,7 +425,7 @@ var M, N, P, F = !1, I = !1, L = !1, R = !1, z = [], B = [], V = (e, t, n) => {
|
|
|
425
425
|
a > l ? He(e, r[f + 1] == null ? null : r[f + 1].$elm$, n, r, o, f) : o > f && Ue(t, a, l);
|
|
426
426
|
}, U = (e, t, n = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : n ? (n && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, W = (e) => e && e["s-ol"] || e, G = (e, t, n = !1) => {
|
|
427
427
|
let r = t.$elm$ = e.$elm$, i = e.$children$, a = t.$children$, o = t.$tag$, s = t.$text$, c;
|
|
428
|
-
s == null ? (R = o === "svg"
|
|
428
|
+
s == null ? (R = o === "svg" || o !== "foreignObject" && R, o === "slot" && !F && e.$name$ !== t.$name$ && (t.$elm$["s-sn"] = t.$name$ || "", Ve(t.$elm$.parentElement)), j(e, t, R), i !== null && a !== null ? We(r, i, t, a, n) : a === null ? !n && b.updatable && i !== null && Ue(i, 0, i.length - 1) : (e.$text$ !== null && (r.textContent = ""), He(r, null, t, a, 0, a.length - 1)), R && o === "svg" && (R = !1)) : (c = r["s-cr"]) ? c.parentNode.textContent = s : e.$text$ !== s && (r.data = s);
|
|
429
429
|
}, K = [], Ge = (e) => {
|
|
430
430
|
let t, n, r, i = e.__childNodes || e.childNodes;
|
|
431
431
|
for (let e of i) {
|
|
@@ -713,7 +713,7 @@ var gt = (e, t = !1) => (e = e.replace(/<\s*textarea[^>]*>((.|\n)*?)<s*\/\s*text
|
|
|
713
713
|
value: e
|
|
714
714
|
}), t++, `\n[#-# : ${t} : ${e} : #-#]\n`));
|
|
715
715
|
}, St = () => {
|
|
716
|
-
let { config: e, constants: t } = X(), n = " ".repeat(e.tab_size), r = e.tag_wrap, i = e.content_wrap, a = e.strict, o = "", s = [], c = /<[A-Za-z]+\b[^>]*(?:.|\n)*?\/?>/g, l = /\s{1}[A-Za-z
|
|
716
|
+
let { config: e, constants: t } = X(), n = " ".repeat(e.tab_size), r = e.tag_wrap, i = e.content_wrap, a = e.strict, o = "", s = [], c = /<[A-Za-z]+\b[^>]*(?:.|\n)*?\/?>/g, l = /\s{1}[A-Za-z:@#*?$()\[\].-]+(?:=".*?")?/g;
|
|
717
717
|
Q.line.forEach((e, u) => {
|
|
718
718
|
let d = e.value, f = d.startsWith("___HTMLFY_SPECIAL_IGNORE_MARKER_"), p = 0, m = Q.line[u - 1], h = m?.value ?? "";
|
|
719
719
|
o += "0", u === 0 && p++, d.trim().startsWith("</") && p++, h.trim().startsWith("<!doctype") && p++, h.trim().startsWith("<!--") && p++, (h.trim().endsWith("/>") || h.trim().endsWith(t.SELF_CLOSING_PLACEHOLDER)) && p++, h.trim().startsWith("</") && p++, m?.type === "text" && p++;
|