@mgdis/core-ui-helpers 1.3.2 → 1.4.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/stencil/index.cjs +11 -0
- package/dist/stencil/index.cjs.map +1 -1
- package/dist/stencil/index.d.ts +11 -1
- package/dist/stencil/index.js +11 -1
- package/dist/stencil/index.js.map +1 -1
- package/dist/stencil/index.umd.js +11 -0
- package/dist/stencil/index.umd.js.map +1 -1
- package/dist/storybook/index.cjs +17 -6
- package/dist/storybook/index.cjs.map +1 -1
- package/dist/storybook/index.js +17 -6
- package/dist/storybook/index.js.map +1 -1
- package/dist/storybook/index.umd.js +17 -6
- package/dist/storybook/index.umd.js.map +1 -1
- package/dist/utils/index.cjs +31 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +10 -1
- package/dist/utils/index.js +31 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.umd.js +31 -0
- package/dist/utils/index.umd.js.map +1 -1
- package/dist/vue/index.cjs +44 -1882
- package/dist/vue/index.cjs.map +1 -1
- package/dist/vue/index.d.ts +0 -1
- package/dist/vue/index.js +44 -1882
- package/dist/vue/index.js.map +1 -1
- package/dist/vue/index.umd.js +97 -1935
- package/dist/vue/index.umd.js.map +1 -1
- package/package.json +5 -7
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
slotRelocation: true};
|
|
11
11
|
|
|
12
12
|
/*
|
|
13
|
-
Stencil Client Platform v4.
|
|
13
|
+
Stencil Client Platform v4.45.1 | MIT Licensed | https://stenciljs.com
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
return void 0;
|
|
27
27
|
};
|
|
28
28
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
29
|
+
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
29
30
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
30
31
|
var win = typeof window !== "undefined" ? window : {};
|
|
31
32
|
var plt = {
|
|
@@ -78,7 +79,7 @@
|
|
|
78
79
|
slottedNodes.push(childNode);
|
|
79
80
|
if (typeof slotName !== "undefined") return slottedNodes;
|
|
80
81
|
}
|
|
81
|
-
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode
|
|
82
|
+
slottedNodes = [...slottedNodes, ...getHostSlotNodes(internalCall(childNode, "childNodes"), hostName, slotName)];
|
|
82
83
|
}
|
|
83
84
|
return slottedNodes;
|
|
84
85
|
}
|
|
@@ -180,6 +181,11 @@
|
|
|
180
181
|
} else if (child != null && typeof child !== "boolean") {
|
|
181
182
|
if (simple = !isComplexType(child)) {
|
|
182
183
|
child = String(child);
|
|
184
|
+
} else if (child.$flags$ === void 0) {
|
|
185
|
+
{
|
|
186
|
+
consoleError("Invalid vNode child");
|
|
187
|
+
}
|
|
188
|
+
continue;
|
|
183
189
|
}
|
|
184
190
|
if (simple && lastSimple) {
|
|
185
191
|
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
@@ -342,7 +348,7 @@
|
|
|
342
348
|
}
|
|
343
349
|
}
|
|
344
350
|
if (newValue == null || newValue === false) {
|
|
345
|
-
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
351
|
+
if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
|
|
346
352
|
if (xlink) {
|
|
347
353
|
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
348
354
|
} else {
|
|
@@ -359,6 +365,8 @@
|
|
|
359
365
|
}
|
|
360
366
|
}
|
|
361
367
|
};
|
|
368
|
+
var ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set(["draggable", "contenteditable", "spellcheck"]);
|
|
369
|
+
var isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith("aria-");
|
|
362
370
|
var parseClassListRegex = /\s/;
|
|
363
371
|
var parseClassList = (value) => {
|
|
364
372
|
if (typeof value === "object" && value && "baseVal" in value) {
|
|
@@ -650,7 +658,7 @@
|
|
|
650
658
|
if (idxInOld >= 0) {
|
|
651
659
|
elmToMove = oldCh[idxInOld];
|
|
652
660
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
653
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2,
|
|
661
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
654
662
|
} else {
|
|
655
663
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
656
664
|
oldCh[idxInOld] = void 0;
|
|
@@ -755,7 +763,10 @@
|
|
|
755
763
|
const slotName = childNode["s-sn"];
|
|
756
764
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
757
765
|
node = hostContentNodes[j];
|
|
758
|
-
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] &&
|
|
766
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && // let an exact named-slot match override a stale default-slot claim. Skip this for
|
|
767
|
+
// `slotName === ''` itself - a matched default node's cached `s-sn` is `''` too, which
|
|
768
|
+
// would trivially "match" on every re-render and force pointless re-insertion.
|
|
769
|
+
(!node["s-sh"] || node["s-sh"] !== childNode["s-hn"] || slotName !== "" && getSlotName(node) === slotName)) {
|
|
759
770
|
if (isNodeLocatedInSlot(node, slotName)) {
|
|
760
771
|
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
761
772
|
checkSlotFallbackVisibility = true;
|
|
@@ -825,7 +836,7 @@
|
|
|
825
836
|
return newNode;
|
|
826
837
|
}
|
|
827
838
|
}
|
|
828
|
-
if (parent.__insertBefore) {
|
|
839
|
+
if ((parent == null ? void 0 : parent.__insertBefore)) {
|
|
829
840
|
return parent.__insertBefore(newNode, reference);
|
|
830
841
|
} else {
|
|
831
842
|
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|