@stencil/core 4.35.1-dev.1750655001.8b007e9 → 4.35.1-dev.1750741417.3f80413
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/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +5 -5
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +202 -177
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +202 -177
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +9 -9
- package/internal/package.json +1 -1
- package/internal/stencil-public-compiler.d.ts +1 -0
- package/internal/testing/index.js +201 -176
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +1 -1
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +26 -26
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +3 -5
- package/testing/package.json +1 -1
- package/testing/puppeteer/puppeteer-browser.d.ts +5 -5
|
@@ -623,7 +623,7 @@ var isJsFile = lowerPathParam((p) => p.endsWith(".js") || p.endsWith(".mjs") ||
|
|
|
623
623
|
var import_app_data18 = require("@stencil/core/internal/app-data");
|
|
624
624
|
|
|
625
625
|
// src/runtime/client-hydrate.ts
|
|
626
|
-
var
|
|
626
|
+
var import_app_data7 = require("@stencil/core/internal/app-data");
|
|
627
627
|
|
|
628
628
|
// src/runtime/dom-extras.ts
|
|
629
629
|
var import_app_data3 = require("@stencil/core/internal/app-data");
|
|
@@ -1257,8 +1257,125 @@ var installDevTools = () => {
|
|
|
1257
1257
|
}
|
|
1258
1258
|
};
|
|
1259
1259
|
|
|
1260
|
-
// src/runtime/
|
|
1260
|
+
// src/runtime/styles.ts
|
|
1261
1261
|
var import_app_data5 = require("@stencil/core/internal/app-data");
|
|
1262
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1263
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1264
|
+
let style = styles.get(scopeId2);
|
|
1265
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
1266
|
+
style = style || new CSSStyleSheet();
|
|
1267
|
+
if (typeof style === "string") {
|
|
1268
|
+
style = cssText;
|
|
1269
|
+
} else {
|
|
1270
|
+
style.replaceSync(cssText);
|
|
1271
|
+
}
|
|
1272
|
+
} else {
|
|
1273
|
+
style = cssText;
|
|
1274
|
+
}
|
|
1275
|
+
styles.set(scopeId2, style);
|
|
1276
|
+
};
|
|
1277
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1278
|
+
var _a;
|
|
1279
|
+
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
1280
|
+
const style = styles.get(scopeId2);
|
|
1281
|
+
if (!import_app_data5.BUILD.attachStyles || !win.document) {
|
|
1282
|
+
return scopeId2;
|
|
1283
|
+
}
|
|
1284
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1285
|
+
if (style) {
|
|
1286
|
+
if (typeof style === "string") {
|
|
1287
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1288
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1289
|
+
let styleElm;
|
|
1290
|
+
if (!appliedStyles) {
|
|
1291
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1292
|
+
}
|
|
1293
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
1294
|
+
if (import_app_data5.BUILD.hydrateClientSide && styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1295
|
+
styleElm.innerHTML = style;
|
|
1296
|
+
} else {
|
|
1297
|
+
styleElm = win.document.createElement("style");
|
|
1298
|
+
styleElm.innerHTML = style;
|
|
1299
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1300
|
+
if (nonce != null) {
|
|
1301
|
+
styleElm.setAttribute("nonce", nonce);
|
|
1302
|
+
}
|
|
1303
|
+
if ((import_app_data5.BUILD.hydrateServerSide || import_app_data5.BUILD.hotModuleReplacement) && (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
|
|
1304
|
+
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
1305
|
+
}
|
|
1306
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1307
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
1308
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1309
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1310
|
+
styleContainerNode.insertBefore(
|
|
1311
|
+
styleElm,
|
|
1312
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1313
|
+
);
|
|
1314
|
+
} else if ("host" in styleContainerNode) {
|
|
1315
|
+
if (supportsConstructableStylesheets) {
|
|
1316
|
+
const stylesheet = new CSSStyleSheet();
|
|
1317
|
+
stylesheet.replaceSync(style);
|
|
1318
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1319
|
+
} else {
|
|
1320
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1321
|
+
if (existingStyleContainer) {
|
|
1322
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1323
|
+
} else {
|
|
1324
|
+
styleContainerNode.prepend(styleElm);
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
} else {
|
|
1328
|
+
styleContainerNode.append(styleElm);
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1332
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1336
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1337
|
+
}
|
|
1338
|
+
if (appliedStyles) {
|
|
1339
|
+
appliedStyles.add(scopeId2);
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
} else if (import_app_data5.BUILD.constructableCSS && !styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1343
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
return scopeId2;
|
|
1347
|
+
};
|
|
1348
|
+
var attachStyles = (hostRef) => {
|
|
1349
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1350
|
+
const elm = hostRef.$hostElement$;
|
|
1351
|
+
const flags = cmpMeta.$flags$;
|
|
1352
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1353
|
+
const scopeId2 = addStyle(
|
|
1354
|
+
import_app_data5.BUILD.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
1355
|
+
cmpMeta,
|
|
1356
|
+
hostRef.$modeName$
|
|
1357
|
+
);
|
|
1358
|
+
if ((import_app_data5.BUILD.shadowDom || import_app_data5.BUILD.scoped) && import_app_data5.BUILD.cssAnnotations && flags & 10 /* needsScopedEncapsulation */) {
|
|
1359
|
+
elm["s-sc"] = scopeId2;
|
|
1360
|
+
elm.classList.add(scopeId2 + "-h");
|
|
1361
|
+
}
|
|
1362
|
+
endAttachStyles();
|
|
1363
|
+
};
|
|
1364
|
+
var getScopeId = (cmp, mode) => "sc-" + (import_app_data5.BUILD.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
1365
|
+
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
1366
|
+
var hydrateScopedToShadow = () => {
|
|
1367
|
+
if (!win.document) {
|
|
1368
|
+
return;
|
|
1369
|
+
}
|
|
1370
|
+
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
1371
|
+
let i2 = 0;
|
|
1372
|
+
for (; i2 < styles2.length; i2++) {
|
|
1373
|
+
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
1374
|
+
}
|
|
1375
|
+
};
|
|
1376
|
+
|
|
1377
|
+
// src/runtime/vdom/h.ts
|
|
1378
|
+
var import_app_data6 = require("@stencil/core/internal/app-data");
|
|
1262
1379
|
var h = (nodeName, vnodeData, ...children) => {
|
|
1263
1380
|
let child = null;
|
|
1264
1381
|
let key = null;
|
|
@@ -1274,7 +1391,7 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
1274
1391
|
} else if (child != null && typeof child !== "boolean") {
|
|
1275
1392
|
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
1276
1393
|
child = String(child);
|
|
1277
|
-
} else if (
|
|
1394
|
+
} else if (import_app_data6.BUILD.isDev && typeof nodeName !== "function" && child.$flags$ === void 0) {
|
|
1278
1395
|
consoleDevError(`vNode passed as children has unexpected type.
|
|
1279
1396
|
Make sure it's using the correct h() function.
|
|
1280
1397
|
Empty objects can also be the cause, look for JSX comments that became objects.`);
|
|
@@ -1290,28 +1407,28 @@ Empty objects can also be the cause, look for JSX comments that became objects.`
|
|
|
1290
1407
|
};
|
|
1291
1408
|
walk(children);
|
|
1292
1409
|
if (vnodeData) {
|
|
1293
|
-
if (
|
|
1410
|
+
if (import_app_data6.BUILD.isDev && nodeName === "input") {
|
|
1294
1411
|
validateInputProperties(vnodeData);
|
|
1295
1412
|
}
|
|
1296
|
-
if (
|
|
1413
|
+
if (import_app_data6.BUILD.vdomKey && vnodeData.key) {
|
|
1297
1414
|
key = vnodeData.key;
|
|
1298
1415
|
}
|
|
1299
|
-
if (
|
|
1416
|
+
if (import_app_data6.BUILD.slotRelocation && vnodeData.name) {
|
|
1300
1417
|
slotName = vnodeData.name;
|
|
1301
1418
|
}
|
|
1302
|
-
if (
|
|
1419
|
+
if (import_app_data6.BUILD.vdomClass) {
|
|
1303
1420
|
const classData = vnodeData.className || vnodeData.class;
|
|
1304
1421
|
if (classData) {
|
|
1305
1422
|
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
|
1306
1423
|
}
|
|
1307
1424
|
}
|
|
1308
1425
|
}
|
|
1309
|
-
if (
|
|
1426
|
+
if (import_app_data6.BUILD.isDev && vNodeChildren.some(isHost)) {
|
|
1310
1427
|
consoleDevError(`The <Host> must be the single root component. Make sure:
|
|
1311
1428
|
- You are NOT using hostData() and <Host> in the same component.
|
|
1312
1429
|
- <Host> is used once, and it's the single root component of the render() function.`);
|
|
1313
1430
|
}
|
|
1314
|
-
if (
|
|
1431
|
+
if (import_app_data6.BUILD.vdomFunctional && typeof nodeName === "function") {
|
|
1315
1432
|
return nodeName(
|
|
1316
1433
|
vnodeData === null ? {} : vnodeData,
|
|
1317
1434
|
vNodeChildren,
|
|
@@ -1323,10 +1440,10 @@ Empty objects can also be the cause, look for JSX comments that became objects.`
|
|
|
1323
1440
|
if (vNodeChildren.length > 0) {
|
|
1324
1441
|
vnode.$children$ = vNodeChildren;
|
|
1325
1442
|
}
|
|
1326
|
-
if (
|
|
1443
|
+
if (import_app_data6.BUILD.vdomKey) {
|
|
1327
1444
|
vnode.$key$ = key;
|
|
1328
1445
|
}
|
|
1329
|
-
if (
|
|
1446
|
+
if (import_app_data6.BUILD.slotRelocation) {
|
|
1330
1447
|
vnode.$name$ = slotName;
|
|
1331
1448
|
}
|
|
1332
1449
|
return vnode;
|
|
@@ -1339,13 +1456,13 @@ var newVNode = (tag, text) => {
|
|
|
1339
1456
|
$elm$: null,
|
|
1340
1457
|
$children$: null
|
|
1341
1458
|
};
|
|
1342
|
-
if (
|
|
1459
|
+
if (import_app_data6.BUILD.vdomAttribute) {
|
|
1343
1460
|
vnode.$attrs$ = null;
|
|
1344
1461
|
}
|
|
1345
|
-
if (
|
|
1462
|
+
if (import_app_data6.BUILD.vdomKey) {
|
|
1346
1463
|
vnode.$key$ = null;
|
|
1347
1464
|
}
|
|
1348
|
-
if (
|
|
1465
|
+
if (import_app_data6.BUILD.slotRelocation) {
|
|
1349
1466
|
vnode.$name$ = null;
|
|
1350
1467
|
}
|
|
1351
1468
|
return vnode;
|
|
@@ -1399,18 +1516,18 @@ var validateInputProperties = (inputElm) => {
|
|
|
1399
1516
|
|
|
1400
1517
|
// src/runtime/client-hydrate.ts
|
|
1401
1518
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1402
|
-
var _a;
|
|
1519
|
+
var _a, _b;
|
|
1403
1520
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
1404
1521
|
const shadowRoot = hostElm.shadowRoot;
|
|
1405
1522
|
const childRenderNodes = [];
|
|
1406
1523
|
const slotNodes = [];
|
|
1407
1524
|
const slottedNodes = [];
|
|
1408
|
-
const shadowRootNodes =
|
|
1525
|
+
const shadowRootNodes = import_app_data7.BUILD.shadowDom && shadowRoot ? [] : null;
|
|
1409
1526
|
const vnode = newVNode(tagName, null);
|
|
1410
1527
|
vnode.$elm$ = hostElm;
|
|
1411
1528
|
const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
|
|
1412
1529
|
members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
|
|
1413
|
-
var _a2,
|
|
1530
|
+
var _a2, _b2;
|
|
1414
1531
|
if (!(memberFlags & 31 /* Prop */)) {
|
|
1415
1532
|
return;
|
|
1416
1533
|
}
|
|
@@ -1420,13 +1537,13 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1420
1537
|
const attrPropVal = parsePropertyValue(
|
|
1421
1538
|
attrVal,
|
|
1422
1539
|
memberFlags,
|
|
1423
|
-
|
|
1540
|
+
import_app_data7.BUILD.formAssociated && !!(((_a2 = hostRef.$cmpMeta$) == null ? void 0 : _a2.$flags$) & 64 /* formAssociated */)
|
|
1424
1541
|
);
|
|
1425
|
-
(
|
|
1542
|
+
(_b2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b2.set(memberName, attrPropVal);
|
|
1426
1543
|
}
|
|
1427
1544
|
});
|
|
1428
1545
|
let scopeId2;
|
|
1429
|
-
if (
|
|
1546
|
+
if (import_app_data7.BUILD.scoped) {
|
|
1430
1547
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1431
1548
|
if (cmpMeta && cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */ && hostElm["s-sc"]) {
|
|
1432
1549
|
scopeId2 = hostElm["s-sc"];
|
|
@@ -1463,6 +1580,16 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1463
1580
|
if (childRenderNode.$tag$ === "slot") {
|
|
1464
1581
|
node["s-cr"] = hostElm["s-cr"];
|
|
1465
1582
|
}
|
|
1583
|
+
} else if (((_b = childRenderNode.$tag$) == null ? void 0 : _b.toString().includes("-")) && !childRenderNode.$elm$.shadowRoot) {
|
|
1584
|
+
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
1585
|
+
const scopeId3 = getScopeId(
|
|
1586
|
+
cmpMeta.$cmpMeta$,
|
|
1587
|
+
import_app_data7.BUILD.mode ? childRenderNode.$elm$.getAttribute("s-mode") : void 0
|
|
1588
|
+
);
|
|
1589
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
1590
|
+
if (styleSheet) {
|
|
1591
|
+
hostElm.shadowRoot.append(styleSheet.cloneNode(true));
|
|
1592
|
+
}
|
|
1466
1593
|
}
|
|
1467
1594
|
if (childRenderNode.$tag$ === "slot") {
|
|
1468
1595
|
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
@@ -1478,7 +1605,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1478
1605
|
}
|
|
1479
1606
|
}
|
|
1480
1607
|
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
1481
|
-
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1608
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1482
1609
|
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
1483
1610
|
}
|
|
1484
1611
|
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
@@ -1486,7 +1613,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1486
1613
|
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
1487
1614
|
}
|
|
1488
1615
|
}
|
|
1489
|
-
|
|
1616
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
1617
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1618
|
+
}
|
|
1490
1619
|
}
|
|
1491
1620
|
const hosts = [];
|
|
1492
1621
|
const snLen = slottedNodes.length;
|
|
@@ -1508,14 +1637,16 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1508
1637
|
if (!hosts[slottedItem.hostId]) continue;
|
|
1509
1638
|
const hostEle = hosts[slottedItem.hostId];
|
|
1510
1639
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1511
|
-
slottedItem.slot["s-cr"]
|
|
1512
|
-
|
|
1513
|
-
slottedItem.slot["s-cr"]
|
|
1514
|
-
|
|
1515
|
-
|
|
1640
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
1641
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
1642
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
1643
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
1644
|
+
} else {
|
|
1645
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
1646
|
+
}
|
|
1516
1647
|
}
|
|
1517
1648
|
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
1518
|
-
if (
|
|
1649
|
+
if (import_app_data7.BUILD.experimentalSlotFixes) {
|
|
1519
1650
|
patchSlottedNode(slottedItem.node);
|
|
1520
1651
|
}
|
|
1521
1652
|
}
|
|
@@ -1524,12 +1655,12 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1524
1655
|
}
|
|
1525
1656
|
}
|
|
1526
1657
|
}
|
|
1527
|
-
if (
|
|
1658
|
+
if (import_app_data7.BUILD.scoped && scopeId2 && slotNodes.length) {
|
|
1528
1659
|
slotNodes.forEach((slot) => {
|
|
1529
1660
|
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
|
1530
1661
|
});
|
|
1531
1662
|
}
|
|
1532
|
-
if (
|
|
1663
|
+
if (import_app_data7.BUILD.shadowDom && shadowRoot) {
|
|
1533
1664
|
let rnIdex = 0;
|
|
1534
1665
|
const rnLen = shadowRootNodes.length;
|
|
1535
1666
|
if (rnLen) {
|
|
@@ -1540,14 +1671,13 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1540
1671
|
if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
|
|
1541
1672
|
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
1542
1673
|
node.removeAttribute("hidden");
|
|
1543
|
-
} else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1674
|
+
} else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1544
1675
|
node.parentNode.removeChild(node);
|
|
1545
1676
|
}
|
|
1546
1677
|
}
|
|
1547
1678
|
});
|
|
1548
1679
|
}
|
|
1549
1680
|
}
|
|
1550
|
-
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
1551
1681
|
hostRef.$hostElement$ = hostElm;
|
|
1552
1682
|
endHydrate();
|
|
1553
1683
|
};
|
|
@@ -1579,7 +1709,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1579
1709
|
if (!parentVNode.$children$) {
|
|
1580
1710
|
parentVNode.$children$ = [];
|
|
1581
1711
|
}
|
|
1582
|
-
if (
|
|
1712
|
+
if (import_app_data7.BUILD.scoped && scopeId2 && childIdSplt[0] === hostId) {
|
|
1583
1713
|
node["s-si"] = scopeId2;
|
|
1584
1714
|
childVNode.$attrs$.class += " " + scopeId2;
|
|
1585
1715
|
}
|
|
@@ -1597,7 +1727,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1597
1727
|
shadowRootNodes,
|
|
1598
1728
|
slottedNodes
|
|
1599
1729
|
);
|
|
1600
|
-
if (
|
|
1730
|
+
if (import_app_data7.BUILD.scoped && scopeId2) {
|
|
1601
1731
|
node.classList.add(scopeId2);
|
|
1602
1732
|
}
|
|
1603
1733
|
}
|
|
@@ -1694,9 +1824,9 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1694
1824
|
slottedNodes
|
|
1695
1825
|
);
|
|
1696
1826
|
} else if (childNodeType === CONTENT_REF_ID) {
|
|
1697
|
-
if (
|
|
1827
|
+
if (import_app_data7.BUILD.shadowDom && shadowRootNodes) {
|
|
1698
1828
|
node.remove();
|
|
1699
|
-
} else if (
|
|
1829
|
+
} else if (import_app_data7.BUILD.slotRelocation) {
|
|
1700
1830
|
hostElm["s-cr"] = node;
|
|
1701
1831
|
node["s-cn"] = true;
|
|
1702
1832
|
}
|
|
@@ -1709,7 +1839,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1709
1839
|
vnode.$index$ = "0";
|
|
1710
1840
|
parentVNode.$children$ = [vnode];
|
|
1711
1841
|
} else {
|
|
1712
|
-
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1842
|
+
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
|
|
1713
1843
|
node.remove();
|
|
1714
1844
|
}
|
|
1715
1845
|
}
|
|
@@ -1762,15 +1892,15 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1762
1892
|
childVNode.$name$ = slotName || null;
|
|
1763
1893
|
childVNode.$tag$ = "slot";
|
|
1764
1894
|
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
1765
|
-
if (
|
|
1895
|
+
if (import_app_data7.BUILD.shadowDom && shadowRootNodes && win.document) {
|
|
1766
1896
|
const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
|
|
1767
1897
|
if (childVNode.$name$) {
|
|
1768
1898
|
childVNode.$elm$.setAttribute("name", slotName);
|
|
1769
1899
|
}
|
|
1770
|
-
if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1771
|
-
parentVNode.$elm
|
|
1900
|
+
if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1901
|
+
internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
|
|
1772
1902
|
} else {
|
|
1773
|
-
node
|
|
1903
|
+
internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
|
|
1774
1904
|
}
|
|
1775
1905
|
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
1776
1906
|
node.remove();
|
|
@@ -1796,7 +1926,7 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1796
1926
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1797
1927
|
let slottedNode = slotNode.nextSibling;
|
|
1798
1928
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1799
|
-
while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */
|
|
1929
|
+
while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */ || slottedNode.tagName === "SLOT"))) {
|
|
1800
1930
|
slottedNode["s-sn"] = slotName;
|
|
1801
1931
|
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1802
1932
|
slottedNode = slottedNode.nextSibling;
|
|
@@ -2231,31 +2361,31 @@ var import_app_data16 = require("@stencil/core/internal/app-data");
|
|
|
2231
2361
|
var import_app_data15 = require("@stencil/core/internal/app-data");
|
|
2232
2362
|
|
|
2233
2363
|
// src/runtime/parse-property-value.ts
|
|
2234
|
-
var
|
|
2364
|
+
var import_app_data8 = require("@stencil/core/internal/app-data");
|
|
2235
2365
|
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
2236
|
-
if ((
|
|
2366
|
+
if ((import_app_data8.BUILD.hydrateClientSide || import_app_data8.BUILD.hydrateServerSide) && typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
2237
2367
|
try {
|
|
2238
2368
|
propValue = JSON.parse(propValue);
|
|
2239
2369
|
return propValue;
|
|
2240
2370
|
} catch (e) {
|
|
2241
2371
|
}
|
|
2242
2372
|
}
|
|
2243
|
-
if ((
|
|
2373
|
+
if ((import_app_data8.BUILD.hydrateClientSide || import_app_data8.BUILD.hydrateServerSide) && typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
2244
2374
|
propValue = deserializeProperty(propValue);
|
|
2245
2375
|
return propValue;
|
|
2246
2376
|
}
|
|
2247
2377
|
if (propValue != null && !isComplexType(propValue)) {
|
|
2248
|
-
if (
|
|
2249
|
-
if (
|
|
2378
|
+
if (import_app_data8.BUILD.propBoolean && propType & 4 /* Boolean */) {
|
|
2379
|
+
if (import_app_data8.BUILD.formAssociated && isFormAssociated && typeof propValue === "string") {
|
|
2250
2380
|
return propValue === "" || !!propValue;
|
|
2251
2381
|
} else {
|
|
2252
2382
|
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
2253
2383
|
}
|
|
2254
2384
|
}
|
|
2255
|
-
if (
|
|
2385
|
+
if (import_app_data8.BUILD.propNumber && propType & 2 /* Number */) {
|
|
2256
2386
|
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
2257
2387
|
}
|
|
2258
|
-
if (
|
|
2388
|
+
if (import_app_data8.BUILD.propString && propType & 1 /* String */) {
|
|
2259
2389
|
return String(propValue);
|
|
2260
2390
|
}
|
|
2261
2391
|
return propValue;
|
|
@@ -2267,18 +2397,18 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
2267
2397
|
var import_app_data14 = require("@stencil/core/internal/app-data");
|
|
2268
2398
|
|
|
2269
2399
|
// src/runtime/event-emitter.ts
|
|
2270
|
-
var
|
|
2400
|
+
var import_app_data10 = require("@stencil/core/internal/app-data");
|
|
2271
2401
|
|
|
2272
2402
|
// src/runtime/element.ts
|
|
2273
|
-
var
|
|
2274
|
-
var getElement = (ref) =>
|
|
2403
|
+
var import_app_data9 = require("@stencil/core/internal/app-data");
|
|
2404
|
+
var getElement = (ref) => import_app_data9.BUILD.lazyLoad ? getHostRef(ref).$hostElement$ : ref;
|
|
2275
2405
|
|
|
2276
2406
|
// src/runtime/event-emitter.ts
|
|
2277
2407
|
var createEvent = (ref, name, flags) => {
|
|
2278
2408
|
const elm = getElement(ref);
|
|
2279
2409
|
return {
|
|
2280
2410
|
emit: (detail) => {
|
|
2281
|
-
if (
|
|
2411
|
+
if (import_app_data10.BUILD.isDev && !elm.isConnected) {
|
|
2282
2412
|
consoleDevWarn(`The "${name}" event was emitted, but the dispatcher node is no longer connected to the dom.`);
|
|
2283
2413
|
}
|
|
2284
2414
|
return emitEvent(elm, name, {
|
|
@@ -2296,123 +2426,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
2296
2426
|
return ev;
|
|
2297
2427
|
};
|
|
2298
2428
|
|
|
2299
|
-
// src/runtime/styles.ts
|
|
2300
|
-
var import_app_data10 = require("@stencil/core/internal/app-data");
|
|
2301
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
2302
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
2303
|
-
let style = styles.get(scopeId2);
|
|
2304
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
2305
|
-
style = style || new CSSStyleSheet();
|
|
2306
|
-
if (typeof style === "string") {
|
|
2307
|
-
style = cssText;
|
|
2308
|
-
} else {
|
|
2309
|
-
style.replaceSync(cssText);
|
|
2310
|
-
}
|
|
2311
|
-
} else {
|
|
2312
|
-
style = cssText;
|
|
2313
|
-
}
|
|
2314
|
-
styles.set(scopeId2, style);
|
|
2315
|
-
};
|
|
2316
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
2317
|
-
var _a;
|
|
2318
|
-
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
2319
|
-
const style = styles.get(scopeId2);
|
|
2320
|
-
if (!import_app_data10.BUILD.attachStyles || !win.document) {
|
|
2321
|
-
return scopeId2;
|
|
2322
|
-
}
|
|
2323
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
2324
|
-
if (style) {
|
|
2325
|
-
if (typeof style === "string") {
|
|
2326
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
2327
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
2328
|
-
let styleElm;
|
|
2329
|
-
if (!appliedStyles) {
|
|
2330
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
2331
|
-
}
|
|
2332
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
2333
|
-
if (import_app_data10.BUILD.hydrateClientSide && styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
2334
|
-
styleElm.innerHTML = style;
|
|
2335
|
-
} else {
|
|
2336
|
-
styleElm = win.document.createElement("style");
|
|
2337
|
-
styleElm.innerHTML = style;
|
|
2338
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
2339
|
-
if (nonce != null) {
|
|
2340
|
-
styleElm.setAttribute("nonce", nonce);
|
|
2341
|
-
}
|
|
2342
|
-
if ((import_app_data10.BUILD.hydrateServerSide || import_app_data10.BUILD.hotModuleReplacement) && (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
|
|
2343
|
-
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
2344
|
-
}
|
|
2345
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
2346
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
2347
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
2348
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
2349
|
-
styleContainerNode.insertBefore(
|
|
2350
|
-
styleElm,
|
|
2351
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
2352
|
-
);
|
|
2353
|
-
} else if ("host" in styleContainerNode) {
|
|
2354
|
-
if (supportsConstructableStylesheets) {
|
|
2355
|
-
const stylesheet = new CSSStyleSheet();
|
|
2356
|
-
stylesheet.replaceSync(style);
|
|
2357
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
2358
|
-
} else {
|
|
2359
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
2360
|
-
if (existingStyleContainer) {
|
|
2361
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
2362
|
-
} else {
|
|
2363
|
-
styleContainerNode.prepend(styleElm);
|
|
2364
|
-
}
|
|
2365
|
-
}
|
|
2366
|
-
} else {
|
|
2367
|
-
styleContainerNode.append(styleElm);
|
|
2368
|
-
}
|
|
2369
|
-
}
|
|
2370
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2371
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
2372
|
-
}
|
|
2373
|
-
}
|
|
2374
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
2375
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
2376
|
-
}
|
|
2377
|
-
if (appliedStyles) {
|
|
2378
|
-
appliedStyles.add(scopeId2);
|
|
2379
|
-
}
|
|
2380
|
-
}
|
|
2381
|
-
} else if (import_app_data10.BUILD.constructableCSS && !styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
2382
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
2383
|
-
}
|
|
2384
|
-
}
|
|
2385
|
-
return scopeId2;
|
|
2386
|
-
};
|
|
2387
|
-
var attachStyles = (hostRef) => {
|
|
2388
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
2389
|
-
const elm = hostRef.$hostElement$;
|
|
2390
|
-
const flags = cmpMeta.$flags$;
|
|
2391
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
2392
|
-
const scopeId2 = addStyle(
|
|
2393
|
-
import_app_data10.BUILD.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
2394
|
-
cmpMeta,
|
|
2395
|
-
hostRef.$modeName$
|
|
2396
|
-
);
|
|
2397
|
-
if ((import_app_data10.BUILD.shadowDom || import_app_data10.BUILD.scoped) && import_app_data10.BUILD.cssAnnotations && flags & 10 /* needsScopedEncapsulation */) {
|
|
2398
|
-
elm["s-sc"] = scopeId2;
|
|
2399
|
-
elm.classList.add(scopeId2 + "-h");
|
|
2400
|
-
}
|
|
2401
|
-
endAttachStyles();
|
|
2402
|
-
};
|
|
2403
|
-
var getScopeId = (cmp, mode) => "sc-" + (import_app_data10.BUILD.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
2404
|
-
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
2405
|
-
var hydrateScopedToShadow = () => {
|
|
2406
|
-
if (!win.document) {
|
|
2407
|
-
return;
|
|
2408
|
-
}
|
|
2409
|
-
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
2410
|
-
let i2 = 0;
|
|
2411
|
-
for (; i2 < styles2.length; i2++) {
|
|
2412
|
-
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
2413
|
-
}
|
|
2414
|
-
};
|
|
2415
|
-
|
|
2416
2429
|
// src/runtime/vdom/vdom-render.ts
|
|
2417
2430
|
var import_app_data13 = require("@stencil/core/internal/app-data");
|
|
2418
2431
|
|
|
@@ -2431,12 +2444,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
2431
2444
|
const classList = elm.classList;
|
|
2432
2445
|
const oldClasses = parseClassList(oldValue);
|
|
2433
2446
|
let newClasses = parseClassList(newValue);
|
|
2434
|
-
if (import_app_data11.BUILD.hydrateClientSide && elm["s-si"] && initialRender) {
|
|
2435
|
-
|
|
2447
|
+
if (import_app_data11.BUILD.hydrateClientSide && (elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
2448
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
2449
|
+
newClasses.push(scopeId2);
|
|
2436
2450
|
oldClasses.forEach((c) => {
|
|
2437
|
-
if (c.startsWith(
|
|
2451
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
2438
2452
|
});
|
|
2439
|
-
newClasses = [...new Set(newClasses)];
|
|
2453
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
2440
2454
|
classList.add(...newClasses);
|
|
2441
2455
|
} else {
|
|
2442
2456
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
@@ -3385,10 +3399,16 @@ var forceUpdate = (ref) => {
|
|
|
3385
3399
|
return false;
|
|
3386
3400
|
};
|
|
3387
3401
|
var appDidLoad = (who) => {
|
|
3402
|
+
var _a;
|
|
3388
3403
|
if (import_app_data14.BUILD.asyncQueue) {
|
|
3389
3404
|
plt.$flags$ |= 2 /* appLoaded */;
|
|
3390
3405
|
}
|
|
3391
3406
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: import_app_data14.NAMESPACE } }));
|
|
3407
|
+
if (import_app_data14.BUILD.hydrateClientSide) {
|
|
3408
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
3409
|
+
plt.$orgLocNodes$.clear();
|
|
3410
|
+
}
|
|
3411
|
+
}
|
|
3392
3412
|
if (import_app_data14.BUILD.profile && performance.measure) {
|
|
3393
3413
|
performance.measure(`[Stencil] ${import_app_data14.NAMESPACE} initial load (by ${who})`, "st:app:start");
|
|
3394
3414
|
}
|
|
@@ -3820,6 +3840,11 @@ var connectedCallback = (elm) => {
|
|
|
3820
3840
|
if (import_app_data18.BUILD.hydrateServerSide || (import_app_data18.BUILD.slot || import_app_data18.BUILD.shadowDom) && // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
3821
3841
|
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
|
3822
3842
|
setContentReference(elm);
|
|
3843
|
+
} else if (import_app_data18.BUILD.hydrateClientSide && !(cmpMeta.$flags$ & 4 /* hasSlotRelocation */)) {
|
|
3844
|
+
const commendPlaceholder = elm.firstChild;
|
|
3845
|
+
if ((commendPlaceholder == null ? void 0 : commendPlaceholder.nodeType) === 8 /* CommentNode */ && !commendPlaceholder["s-cn"] && !commendPlaceholder.nodeValue) {
|
|
3846
|
+
elm.removeChild(commendPlaceholder);
|
|
3847
|
+
}
|
|
3823
3848
|
}
|
|
3824
3849
|
}
|
|
3825
3850
|
if (import_app_data18.BUILD.asyncLoading) {
|
|
@@ -3924,7 +3949,7 @@ var proxyCustomElement = (Cstr, compactMeta) => {
|
|
|
3924
3949
|
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
3925
3950
|
}
|
|
3926
3951
|
if (import_app_data20.BUILD.experimentalSlotFixes) {
|
|
3927
|
-
if (import_app_data20.BUILD.
|
|
3952
|
+
if (import_app_data20.BUILD.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
3928
3953
|
patchPseudoShadowDom(Cstr.prototype);
|
|
3929
3954
|
}
|
|
3930
3955
|
} else {
|
|
@@ -4141,7 +4166,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4141
4166
|
}
|
|
4142
4167
|
};
|
|
4143
4168
|
if (import_app_data21.BUILD.experimentalSlotFixes) {
|
|
4144
|
-
if (import_app_data21.BUILD.
|
|
4169
|
+
if (import_app_data21.BUILD.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
4145
4170
|
patchPseudoShadowDom(HostElement.prototype);
|
|
4146
4171
|
}
|
|
4147
4172
|
} else {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "4.35.1-dev.
|
|
3
|
+
"version": "4.35.1-dev.1750741417.3f80413",
|
|
4
4
|
"description": "Stencil internal testing platform to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"private": true
|
package/mock-doc/index.cjs
CHANGED