@roadtrip/components 3.32.3 → 3.32.5
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/cjs/road-badge_14.cjs.entry.js +9 -12
- package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
- package/dist/collection/components/accordion/accordion.stories.js +38 -4
- package/dist/collection/components/alert/alert.stories.js +7 -0
- package/dist/collection/components/asset/asset.stories.js +6 -0
- package/dist/collection/components/autocomplete/autocomplete.stories.js +43 -47
- package/dist/collection/components/avatar/avatar.stories.js +6 -0
- package/dist/collection/components/badge/badge.stories.js +6 -0
- package/dist/collection/components/banner/banner.stories.js +33 -3
- package/dist/collection/components/button/button.stories.js +58 -67
- package/dist/collection/components/button-floating/button-floating.stories.js +32 -23
- package/dist/collection/components/card/card.stories.js +25 -15
- package/dist/collection/components/carousel/carousel.stories.js +72 -280
- package/dist/collection/components/checkbox/checkbox.stories.js +54 -33
- package/dist/collection/components/chip/chip.stories.js +32 -47
- package/dist/collection/components/collapse/collapse.stories.js +88 -78
- package/dist/collection/components/content-card/content-card.stories.js +30 -11
- package/dist/collection/components/counter/counter.stories.js +40 -11
- package/dist/collection/components/dialog/dialog.stories.js +37 -51
- package/dist/collection/components/drawer/drawer.js +9 -12
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/drawer/drawer.stories.js +64 -134
- package/dist/collection/components/dropdown/dropdown.stories.js +69 -53
- package/dist/collection/components/duration/duration.stories.js +49 -45
- package/dist/collection/components/flap/flap.stories.js +22 -10
- package/dist/collection/components/input/input.stories.js +33 -0
- package/dist/collection/components/item/item.stories.js +25 -0
- package/dist/collection/components/list/list.stories.js +2 -0
- package/dist/collection/components/modal/modal.stories.js +14 -0
- package/dist/collection/components/navbar/navbar.stories.js +3 -0
- package/dist/collection/components/navbar-v2/navbar-v2.stories.js +4 -0
- package/dist/collection/components/phone-number-input/phone-number-input.stories.js +15 -1
- package/dist/collection/components/plate-number/plate-number.stories.js +13 -0
- package/dist/collection/components/profil-dropdown/profil-dropdown.stories.js +8 -0
- package/dist/collection/components/progress/progress.stories.js +12 -0
- package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.stories.js +8 -0
- package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.stories.js +1 -0
- package/dist/collection/components/progress-tracker/progress-tracker.stories.js +1 -0
- package/dist/collection/components/radio/radio.stories.js +13 -0
- package/dist/collection/components/range/range.stories.js +11 -0
- package/dist/collection/components/rating/rating.stories.js +7 -0
- package/dist/collection/components/segmented-buttons/segmented-buttons.stories.js +2 -0
- package/dist/collection/components/select/select.stories.js +13 -0
- package/dist/collection/components/select-filter/select-filter.stories.js +5 -0
- package/dist/collection/components/skeleton/skeleton.stories.js +2 -0
- package/dist/collection/components/spinner/spinner.stories.js +2 -0
- package/dist/collection/components/table/table.stories.js +1 -0
- package/dist/collection/components/tabs/tabs.stories.js +2 -0
- package/dist/collection/components/tag/tag.stories.js +3 -0
- package/dist/collection/components/text/text.stories.js +2 -0
- package/dist/collection/components/textarea/textarea.stories.js +26 -0
- package/dist/collection/components/toast/toast.stories.js +6 -0
- package/dist/collection/components/toggle/toggle.stories.js +14 -0
- package/dist/collection/components/toolbar/toolbar.stories.js +6 -0
- package/dist/collection/components/toolbar-v2/toolbar-v2.stories.js +5 -0
- package/dist/collection/components/tooltip/tooltip.stories.js +11 -0
- package/dist/esm/road-badge_14.entry.js +9 -12
- package/dist/esm/road-badge_14.entry.js.map +1 -1
- package/dist/roadtrip/{p-e2a00f9c.entry.js → p-b5c4455e.entry.js} +3 -3
- package/dist/roadtrip/p-b5c4455e.entry.js.map +1 -0
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/types/components/drawer/drawer.d.ts +0 -1
- package/hydrate/index.js +271 -255
- package/hydrate/index.mjs +271 -255
- package/package.json +2 -2
- package/dist/roadtrip/p-e2a00f9c.entry.js.map +0 -1
package/hydrate/index.mjs
CHANGED
|
@@ -127,7 +127,7 @@ const NAMESPACE = 'roadtrip';
|
|
|
127
127
|
const BUILD = /* roadtrip */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, constructableCSS: false, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
128
128
|
|
|
129
129
|
/*
|
|
130
|
-
Stencil Hydrate Platform v4.27.
|
|
130
|
+
Stencil Hydrate Platform v4.27.1 | MIT Licensed | https://stenciljs.com
|
|
131
131
|
*/
|
|
132
132
|
var __defProp = Object.defineProperty;
|
|
133
133
|
var __export = (target, all) => {
|
|
@@ -147,9 +147,9 @@ var isComplexType = (o) => {
|
|
|
147
147
|
};
|
|
148
148
|
|
|
149
149
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
150
|
-
function queryNonceMetaTagContent(
|
|
150
|
+
function queryNonceMetaTagContent(doc) {
|
|
151
151
|
var _a, _b, _c;
|
|
152
|
-
return (_c = (_b = (_a =
|
|
152
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
// src/utils/regular-expression.ts
|
|
@@ -506,8 +506,8 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
506
506
|
delete hostElm["s-sc"];
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
if (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size) {
|
|
510
|
-
initializeDocumentHydrate(
|
|
509
|
+
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
510
|
+
initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
511
511
|
}
|
|
512
512
|
hostElm[HYDRATE_ID] = hostId;
|
|
513
513
|
hostElm.removeAttribute(HYDRATE_ID);
|
|
@@ -830,8 +830,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
830
830
|
childVNode.$name$ = slotName || null;
|
|
831
831
|
childVNode.$tag$ = "slot";
|
|
832
832
|
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
833
|
-
if (shadowRootNodes) {
|
|
834
|
-
const slot = childVNode.$elm$ =
|
|
833
|
+
if (shadowRootNodes && win.document) {
|
|
834
|
+
const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
|
|
835
835
|
if (childVNode.$name$) {
|
|
836
836
|
childVNode.$elm$.setAttribute("name", slotName);
|
|
837
837
|
}
|
|
@@ -1275,7 +1275,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1275
1275
|
var _a;
|
|
1276
1276
|
const scopeId2 = getScopeId(cmpMeta);
|
|
1277
1277
|
const style = styles$1.get(scopeId2);
|
|
1278
|
-
|
|
1278
|
+
if (!win.document) {
|
|
1279
|
+
return scopeId2;
|
|
1280
|
+
}
|
|
1281
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1279
1282
|
if (style) {
|
|
1280
1283
|
if (typeof style === "string") {
|
|
1281
1284
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -1288,9 +1291,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1288
1291
|
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1289
1292
|
styleElm.innerHTML = style;
|
|
1290
1293
|
} else {
|
|
1291
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) ||
|
|
1294
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
1292
1295
|
styleElm.innerHTML = style;
|
|
1293
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
1296
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1294
1297
|
if (nonce != null) {
|
|
1295
1298
|
styleElm.setAttribute("nonce", nonce);
|
|
1296
1299
|
}
|
|
@@ -1540,7 +1543,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1540
1543
|
}
|
|
1541
1544
|
}
|
|
1542
1545
|
if (newVNode2.$text$ !== null) {
|
|
1543
|
-
elm = newVNode2.$elm$ =
|
|
1546
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
1544
1547
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
1545
1548
|
elm = newVNode2.$elm$ = slotReferenceDebugNode(newVNode2) ;
|
|
1546
1549
|
{
|
|
@@ -1550,7 +1553,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1550
1553
|
if (!isSvgMode) {
|
|
1551
1554
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
1552
1555
|
}
|
|
1553
|
-
|
|
1556
|
+
if (!win.document) {
|
|
1557
|
+
throw new Error(
|
|
1558
|
+
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
1559
|
+
);
|
|
1560
|
+
}
|
|
1561
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
1554
1562
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
1555
1563
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
1556
1564
|
) ;
|
|
@@ -1932,7 +1940,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1932
1940
|
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1933
1941
|
for (const relocateData of relocateNodes) {
|
|
1934
1942
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1935
|
-
if (!nodeToRelocate["s-ol"]) {
|
|
1943
|
+
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
1936
1944
|
const orgLocationNode = originalLocationDebugNode(nodeToRelocate) ;
|
|
1937
1945
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1938
1946
|
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
@@ -1976,12 +1984,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1976
1984
|
}
|
|
1977
1985
|
contentRef = void 0;
|
|
1978
1986
|
};
|
|
1979
|
-
var slotReferenceDebugNode = (slotVNode) =>
|
|
1980
|
-
|
|
1981
|
-
)
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1987
|
+
var slotReferenceDebugNode = (slotVNode) => {
|
|
1988
|
+
var _a;
|
|
1989
|
+
return (_a = win.document) == null ? void 0 : _a.createComment(
|
|
1990
|
+
`<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
|
|
1991
|
+
);
|
|
1992
|
+
};
|
|
1993
|
+
var originalLocationDebugNode = (nodeToRelocate) => {
|
|
1994
|
+
var _a;
|
|
1995
|
+
return (_a = win.document) == null ? void 0 : _a.createComment(
|
|
1996
|
+
`org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
|
|
1997
|
+
);
|
|
1998
|
+
};
|
|
1985
1999
|
|
|
1986
2000
|
// src/runtime/update-component.ts
|
|
1987
2001
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
@@ -2482,16 +2496,19 @@ var connectedCallback = (elm) => {
|
|
|
2482
2496
|
}
|
|
2483
2497
|
};
|
|
2484
2498
|
var setContentReference = (elm) => {
|
|
2485
|
-
|
|
2499
|
+
if (!win.document) {
|
|
2500
|
+
return;
|
|
2501
|
+
}
|
|
2502
|
+
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
2486
2503
|
""
|
|
2487
2504
|
);
|
|
2488
2505
|
contentRefElm["s-cn"] = true;
|
|
2489
2506
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
2490
2507
|
};
|
|
2491
2508
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2492
|
-
if (listeners) {
|
|
2509
|
+
if (listeners && win.document) {
|
|
2493
2510
|
listeners.map(([flags, name, method]) => {
|
|
2494
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
2511
|
+
const target = getHostListenerTarget(win.document, elm, flags) ;
|
|
2495
2512
|
const handler = hostListenerProxy(hostRef, method);
|
|
2496
2513
|
const opts = hostListenerOpts(flags);
|
|
2497
2514
|
plt.ael(target, name, handler, opts);
|
|
@@ -2513,20 +2530,24 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
2513
2530
|
consoleError(e, hostRef.$hostElement$);
|
|
2514
2531
|
}
|
|
2515
2532
|
};
|
|
2516
|
-
var getHostListenerTarget = (elm, flags) => {
|
|
2517
|
-
if (flags & 4 /* TargetDocument */)
|
|
2518
|
-
|
|
2533
|
+
var getHostListenerTarget = (doc, elm, flags) => {
|
|
2534
|
+
if (flags & 4 /* TargetDocument */) {
|
|
2535
|
+
return doc;
|
|
2536
|
+
}
|
|
2537
|
+
if (flags & 8 /* TargetWindow */) {
|
|
2538
|
+
return win;
|
|
2539
|
+
}
|
|
2519
2540
|
return elm;
|
|
2520
2541
|
};
|
|
2521
2542
|
var hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
2522
2543
|
|
|
2523
2544
|
// src/runtime/vdom/vdom-annotations.ts
|
|
2524
|
-
var insertVdomAnnotations = (
|
|
2525
|
-
if (
|
|
2526
|
-
const docData = STENCIL_DOC_DATA in
|
|
2545
|
+
var insertVdomAnnotations = (doc, staticComponents) => {
|
|
2546
|
+
if (doc != null) {
|
|
2547
|
+
const docData = STENCIL_DOC_DATA in doc ? doc[STENCIL_DOC_DATA] : { ...DEFAULT_DOC_DATA };
|
|
2527
2548
|
docData.staticComponents = new Set(staticComponents);
|
|
2528
2549
|
const orgLocationNodes = [];
|
|
2529
|
-
parseVNodeAnnotations(
|
|
2550
|
+
parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes);
|
|
2530
2551
|
orgLocationNodes.forEach((orgLocationNode) => {
|
|
2531
2552
|
var _a;
|
|
2532
2553
|
if (orgLocationNode != null && orgLocationNode["s-nr"]) {
|
|
@@ -2552,11 +2573,11 @@ var insertVdomAnnotations = (doc2, staticComponents) => {
|
|
|
2552
2573
|
return;
|
|
2553
2574
|
}
|
|
2554
2575
|
}
|
|
2555
|
-
const commentBeforeTextNode =
|
|
2576
|
+
const commentBeforeTextNode = doc.createComment(childId);
|
|
2556
2577
|
commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;
|
|
2557
2578
|
insertBefore(nodeRef.parentNode, commentBeforeTextNode, nodeRef);
|
|
2558
2579
|
} else if (nodeRef.nodeType === 8 /* CommentNode */) {
|
|
2559
|
-
const commentBeforeTextNode =
|
|
2580
|
+
const commentBeforeTextNode = doc.createComment(childId);
|
|
2560
2581
|
commentBeforeTextNode.nodeValue = `${COMMENT_NODE_ID}.${childId}`;
|
|
2561
2582
|
nodeRef.parentNode.insertBefore(commentBeforeTextNode, nodeRef);
|
|
2562
2583
|
}
|
|
@@ -2575,7 +2596,7 @@ var insertVdomAnnotations = (doc2, staticComponents) => {
|
|
|
2575
2596
|
});
|
|
2576
2597
|
}
|
|
2577
2598
|
};
|
|
2578
|
-
var parseVNodeAnnotations = (
|
|
2599
|
+
var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
|
|
2579
2600
|
var _a;
|
|
2580
2601
|
if (node == null) {
|
|
2581
2602
|
return;
|
|
@@ -2591,13 +2612,13 @@ var parseVNodeAnnotations = (doc2, node, docData, orgLocationNodes) => {
|
|
|
2591
2612
|
const cmpData = {
|
|
2592
2613
|
nodeIds: 0
|
|
2593
2614
|
};
|
|
2594
|
-
insertVNodeAnnotations(
|
|
2615
|
+
insertVNodeAnnotations(doc, childNode, hostRef.$vnode$, docData, cmpData);
|
|
2595
2616
|
}
|
|
2596
|
-
parseVNodeAnnotations(
|
|
2617
|
+
parseVNodeAnnotations(doc, childNode, docData, orgLocationNodes);
|
|
2597
2618
|
});
|
|
2598
2619
|
}
|
|
2599
2620
|
};
|
|
2600
|
-
var insertVNodeAnnotations = (
|
|
2621
|
+
var insertVNodeAnnotations = (doc, hostElm, vnode, docData, cmpData) => {
|
|
2601
2622
|
if (vnode != null) {
|
|
2602
2623
|
const hostId = ++docData.hostIds;
|
|
2603
2624
|
hostElm.setAttribute(HYDRATE_ID, hostId);
|
|
@@ -2607,7 +2628,7 @@ var insertVNodeAnnotations = (doc2, hostElm, vnode, docData, cmpData) => {
|
|
|
2607
2628
|
if (vnode.$children$ != null) {
|
|
2608
2629
|
const depth = 0;
|
|
2609
2630
|
vnode.$children$.forEach((vnodeChild, index) => {
|
|
2610
|
-
insertChildVNodeAnnotations(
|
|
2631
|
+
insertChildVNodeAnnotations(doc, vnodeChild, cmpData, hostId, depth, index);
|
|
2611
2632
|
});
|
|
2612
2633
|
}
|
|
2613
2634
|
if (hostElm && vnode && vnode.$elm$ && !hostElm.hasAttribute(HYDRATE_CHILD_ID)) {
|
|
@@ -2628,7 +2649,7 @@ var insertVNodeAnnotations = (doc2, hostElm, vnode, docData, cmpData) => {
|
|
|
2628
2649
|
}
|
|
2629
2650
|
}
|
|
2630
2651
|
};
|
|
2631
|
-
var insertChildVNodeAnnotations = (
|
|
2652
|
+
var insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, index) => {
|
|
2632
2653
|
const childElm = vnodeChild.$elm$;
|
|
2633
2654
|
if (childElm == null) {
|
|
2634
2655
|
return;
|
|
@@ -2647,7 +2668,7 @@ var insertChildVNodeAnnotations = (doc2, vnodeChild, cmpData, hostId, depth, ind
|
|
|
2647
2668
|
const nodeName = parentNode == null ? void 0 : parentNode.nodeName;
|
|
2648
2669
|
if (nodeName !== "STYLE" && nodeName !== "SCRIPT") {
|
|
2649
2670
|
const textNodeId = `${TEXT_NODE_ID}.${childId}`;
|
|
2650
|
-
const commentBeforeTextNode =
|
|
2671
|
+
const commentBeforeTextNode = doc.createComment(textNodeId);
|
|
2651
2672
|
insertBefore(parentNode, commentBeforeTextNode, childElm);
|
|
2652
2673
|
}
|
|
2653
2674
|
} else if (childElm.nodeType === 8 /* CommentNode */) {
|
|
@@ -2660,7 +2681,7 @@ var insertChildVNodeAnnotations = (doc2, vnodeChild, cmpData, hostId, depth, ind
|
|
|
2660
2681
|
if (vnodeChild.$children$ != null) {
|
|
2661
2682
|
const childDepth = depth + 1;
|
|
2662
2683
|
vnodeChild.$children$.forEach((vnode, index2) => {
|
|
2663
|
-
insertChildVNodeAnnotations(
|
|
2684
|
+
insertChildVNodeAnnotations(doc, vnode, cmpData, hostId, childDepth, index2);
|
|
2664
2685
|
});
|
|
2665
2686
|
}
|
|
2666
2687
|
};
|
|
@@ -2876,7 +2897,7 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
|
|
|
2876
2897
|
return elm;
|
|
2877
2898
|
};
|
|
2878
2899
|
tmrId = globalThis.setTimeout(timeoutExceeded, opts.timeout);
|
|
2879
|
-
plt.$resourcesUrl$ = new URL(opts.resourcesUrl || "./",
|
|
2900
|
+
plt.$resourcesUrl$ = new URL(opts.resourcesUrl || "./", win2.document.baseURI).href;
|
|
2880
2901
|
patchChild2(win2.document.body);
|
|
2881
2902
|
waitLoop2().then(hydratedComplete).catch(hydratedError);
|
|
2882
2903
|
} catch (e) {
|
|
@@ -3083,7 +3104,6 @@ var registerComponents = (Cstrs) => {
|
|
|
3083
3104
|
}
|
|
3084
3105
|
};
|
|
3085
3106
|
var win = window;
|
|
3086
|
-
var doc = win.document;
|
|
3087
3107
|
var writeTask = (cb) => {
|
|
3088
3108
|
nextTick$1(() => {
|
|
3089
3109
|
try {
|
|
@@ -3200,7 +3220,7 @@ class Accordion {
|
|
|
3200
3220
|
const accordionLightContent = this.isLight ? 'accordion-content accordion-light-content' : 'accordion-content';
|
|
3201
3221
|
const accordionLightSeparator = this.isLightSeparator ? 'accordion accordion-light accordion-light--border' : 'accordion';
|
|
3202
3222
|
const accordionSmall = this.isSmall ? 'accordion accordion-light accordion-light--small' : 'accordion';
|
|
3203
|
-
return (hAsync("details", { key: '
|
|
3223
|
+
return (hAsync("details", { key: 'a3469eb6d8aef3b880677284c59e69eb62f205e8', class: `${accordionLight} ${accordionSmall} ${accordionLightSeparator}`, open: this.isOpen }, hAsync("summary", { key: 'b0c18225580028ad00098aa494a29b2c956b7561', class: "accordion-trigger", "aria-expanded": `${this.isOpen}`, tabindex: "0", role: "button", onClick: this.onClick }, hAsync("div", { key: 'a066d273354e022c095978edeae2040eddb75804', class: accordionLightHeader }, hAsync("slot", { key: '13056e6babf83f00ebfd538aa79a9fae24ab344f', name: "icon-left" }), hAsync("slot", { key: '7f54051ce9e12dc9ef8e30f7262096a1248d19bb', name: "header" }), hAsync("road-icon", { key: '4161743fdea3953e151525481a338c7a87edd159', class: "accordion-arrow", icon: navigationChevron }))), hAsync("div", { key: '42f14c07ceabf357f4042207e35f828e782aefbc', class: accordionLightContent }, hAsync("slot", { key: 'c0e67f0215366eb9e129b341f02ff88a5c019b43' }))));
|
|
3204
3224
|
}
|
|
3205
3225
|
static get style() { return RoadAccordionStyle0; }
|
|
3206
3226
|
static get cmpMeta() { return {
|
|
@@ -3235,7 +3255,7 @@ class Alert {
|
|
|
3235
3255
|
}
|
|
3236
3256
|
render() {
|
|
3237
3257
|
const colorClass = this.color !== undefined ? `alert-${this.color}` : '';
|
|
3238
|
-
return (hAsync(Host, { key: '
|
|
3258
|
+
return (hAsync(Host, { key: 'b654cd8f516e47f8a6c0e7a1a4bfd9cae09076e0', class: colorClass, role: "alert" }, hAsync("div", { key: '280b009d269a3dd510bcfabf8f4d7e5eb61cda80', class: "alert-icon" }, hAsync("slot", { key: '17d81df60b117ab8b246d9b73c832954ec7296d1', name: "icon" })), hAsync("div", { key: '46f8799b8b2ef9e525a4d7f00b5c53ddd98fe4d1' }, this.label && hAsync("span", { key: '900b5b9f095356d008fb2bae5c03cc28eb828a8a', class: "alert-title d-block" }, this.label), hAsync("p", { key: 'c65304f2cb7c7109350f3265a88a507ff84bb0c8', class: "alert-description" }, hAsync("slot", { key: '3f34a35e3bbfd3a2fe96531e9d7a0cfd00df7b74' }), this.link && hAsync("a", { key: '4149db714ea2fc13148d1e44d6e0dd9cc73dee45', href: this.url, class: "alert-link link link-default" }, this.link)))));
|
|
3239
3259
|
}
|
|
3240
3260
|
static get style() { return RoadAlertStyle0; }
|
|
3241
3261
|
static get cmpMeta() { return {
|
|
@@ -3334,7 +3354,7 @@ class Asset {
|
|
|
3334
3354
|
}
|
|
3335
3355
|
}
|
|
3336
3356
|
render() {
|
|
3337
|
-
return (hAsync(Host, { key: '
|
|
3357
|
+
return (hAsync(Host, { key: '64331c0cd4f5a805be16cd746dfe78d7eeea118e', "aria-hidden": "true", role: "img" }, ((this.assetSvgContent !== '')
|
|
3338
3358
|
? hAsync("div", { class: "icon-inner", innerHTML: this.assetSvgContent })
|
|
3339
3359
|
: hAsync("div", { class: "icon-inner" }))));
|
|
3340
3360
|
}
|
|
@@ -3404,8 +3424,8 @@ class Autocomplete {
|
|
|
3404
3424
|
}
|
|
3405
3425
|
}
|
|
3406
3426
|
render() {
|
|
3407
|
-
return (hAsync(Host, { key: '
|
|
3408
|
-
hAsync("ul", { key: '
|
|
3427
|
+
return (hAsync(Host, { key: '46eeec7665a075a37025173b3a86f42e9263c835' }, hAsync("slot", { key: 'f3513033a2e4a3e22d30218c47e1eed0e2e7bc94' }), this.visible && this.options.length > 0 &&
|
|
3428
|
+
hAsync("ul", { key: '1527ef97b9885082769751a9b5aaf254df54d94b', class: "autocomplete-list" }, this.options && this.options.map(option => (hAsync("li", { class: "autocomplete-item", role: "menuitem", onClick: () => this.onClick(option.value, option.label), tabindex: "0" }, option.label))))));
|
|
3409
3429
|
}
|
|
3410
3430
|
get el() { return getElement(this); }
|
|
3411
3431
|
static get style() { return RoadAutocompleteStyle0; }
|
|
@@ -3438,7 +3458,7 @@ class Avatar {
|
|
|
3438
3458
|
}
|
|
3439
3459
|
render() {
|
|
3440
3460
|
const sizeClass = this.size !== undefined ? `avatar-${this.size}` : '';
|
|
3441
|
-
return (hAsync(Host, { key: '
|
|
3461
|
+
return (hAsync(Host, { key: '6f57ba54014a8220d4262e0fd61dd807ed09f5e2', class: `${sizeClass}` }, hAsync("slot", { key: '3152a4be46b7d1d68df32861f690ae7bf5cf1c37' })));
|
|
3442
3462
|
}
|
|
3443
3463
|
static get style() { return RoadAvatarStyle0; }
|
|
3444
3464
|
static get cmpMeta() { return {
|
|
@@ -3474,7 +3494,7 @@ class Badge {
|
|
|
3474
3494
|
render() {
|
|
3475
3495
|
const colorClass = this.color !== undefined ? `badge-${this.color}` : '';
|
|
3476
3496
|
const bubbleClass = this.bubble ? 'badge-bubble' : '';
|
|
3477
|
-
return (hAsync(Host, { key: '
|
|
3497
|
+
return (hAsync(Host, { key: '16742c39b5260aadf2da3067ce5a2812fe4c462f', class: `${colorClass} ${bubbleClass}` }, hAsync("slot", { key: 'd989a2f2bcdd588fc483b71e8d630387997deb95' })));
|
|
3478
3498
|
}
|
|
3479
3499
|
static get style() { return RoadBadgeStyle0; }
|
|
3480
3500
|
static get cmpMeta() { return {
|
|
@@ -3523,7 +3543,7 @@ class Banner {
|
|
|
3523
3543
|
}
|
|
3524
3544
|
render() {
|
|
3525
3545
|
const bannerIsOpenClass = this.isOpen ? 'banner-open' : '';
|
|
3526
|
-
return (hAsync(Host, { key: '
|
|
3546
|
+
return (hAsync(Host, { key: '3b26ce08382bc4c226be95bce24f45f10727bc3a', class: bannerIsOpenClass }, hAsync("div", { key: '30438032a71d86cc054ed048c4362f891dd958f5' }, hAsync("span", { key: 'be69b7116ff47b43490534d86428f1c38f98259b', class: "banner-open-label" }, this.label), this.link && hAsync("a", { key: 'b8ff1de1d13dbc06f64a7378b1d959d2c80546c5', href: this.url, class: "banner-open-link" }, this.link), hAsync("button", { key: '35a63144540b01d7eb148970d1cb872cc3c499af', type: "button", class: "banner-close", onClick: this.onClick, "aria-label": "closed" }, hAsync("road-icon", { key: '89043091f5e7503601584b59403f0addb8287eb9', icon: navigationClose, size: "md" })))));
|
|
3527
3547
|
}
|
|
3528
3548
|
static get style() { return RoadBannerStyle0; }
|
|
3529
3549
|
static get cmpMeta() { return {
|
|
@@ -3629,7 +3649,7 @@ class Button$1 {
|
|
|
3629
3649
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
3630
3650
|
const expandClass = this.expand ? 'btn-block' : '';
|
|
3631
3651
|
const iconOnlyClass = this.iconOnly ? 'btn-icon' : '';
|
|
3632
|
-
return (hAsync(Host, { key: '
|
|
3652
|
+
return (hAsync(Host, { key: '57327cf5e013e564975f2d89f0e58b8b616e714b', class: [colorClass, sizeClass, expandClass, iconOnlyClass].filter(Boolean).join(' '), onClick: this.onClick, "aria-disabled": disabled ? 'true' : null }, hAsync(TagType, Object.assign({ key: '58e517e5e47714f0de398ab5fb98b7499b1da2d3' }, attrs, { class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur }), hAsync("slot", { key: '06e5d39c87cd40a4cb419125bb486f8d54afaf9f', name: "start" }), hAsync("slot", { key: 'cf7b775a0a57bfb3f6bba1128a6462e2c7d02c07' }), hAsync("slot", { key: 'd04aa7d04dc9d3d22d912aed80ea163be3fa3a3f', name: "end" }))));
|
|
3633
3653
|
}
|
|
3634
3654
|
get el() { return getElement(this); }
|
|
3635
3655
|
static get style() { return RoadButtonStyle0; }
|
|
@@ -3714,7 +3734,7 @@ class Button {
|
|
|
3714
3734
|
render() {
|
|
3715
3735
|
const TagType = this.href === undefined ? 'button' : 'a';
|
|
3716
3736
|
const positionClass = this.position !== undefined ? `position-${this.position}` : '';
|
|
3717
|
-
return (hAsync(Host, { key: '
|
|
3737
|
+
return (hAsync(Host, { key: 'ffb60871f5d27b54ec48f9ba8e699960e5edf16d', onClick: this.onClick, class: `${positionClass}` }, hAsync(TagType, { key: 'd62ca1111a2bce02e942e91fd867470974269cee', class: "button-native", part: "native", onFocus: this.onFocus, onBlur: this.onBlur }, hAsync("slot", { key: 'd0b29a5717d1386f8dc145b945b79994e36e039e', name: "start" }), hAsync("slot", { key: '9db183b8b6533b7bc091364033f167b2d0b7004b' }))));
|
|
3718
3738
|
}
|
|
3719
3739
|
get el() { return getElement(this); }
|
|
3720
3740
|
static get style() { return RoadButtonFloatingStyle0; }
|
|
@@ -3759,7 +3779,7 @@ class ButtonBar {
|
|
|
3759
3779
|
this.selectedTabChanged();
|
|
3760
3780
|
}
|
|
3761
3781
|
render() {
|
|
3762
|
-
return (hAsync(Host, { key: '
|
|
3782
|
+
return (hAsync(Host, { key: '7fffe10ee5aa2a3ee09086f24e637c5e07992487', role: "tablist" }, hAsync("slot", { key: '10e9ca402be8299b44ef9cb41921cf846e280fe9' })));
|
|
3763
3783
|
}
|
|
3764
3784
|
get el() { return getElement(this); }
|
|
3765
3785
|
static get watchers() { return {
|
|
@@ -3842,7 +3862,7 @@ class Card {
|
|
|
3842
3862
|
render() {
|
|
3843
3863
|
const { elevation } = this;
|
|
3844
3864
|
const elevationClass = this.elevation ? `card-elevation-${elevation}` : ``;
|
|
3845
|
-
return (hAsync(Host, { key: '
|
|
3865
|
+
return (hAsync(Host, { key: '4b33b971a83bdc61a6f263d0d875fc4ce001b1e2', class: `${elevationClass}` }, this.renderCard()));
|
|
3846
3866
|
}
|
|
3847
3867
|
get el() { return getElement(this); }
|
|
3848
3868
|
static get style() { return RoadCardStyle0; }
|
|
@@ -10589,7 +10609,7 @@ class Carousel {
|
|
|
10589
10609
|
});
|
|
10590
10610
|
}
|
|
10591
10611
|
render() {
|
|
10592
|
-
return (hAsync(Host, { key: '
|
|
10612
|
+
return (hAsync(Host, { key: 'bd56a3d4295733f9ccd9d44178b71fdf8d6faf80', class: "swiper-container", tabindex: "0" }, hAsync("div", { key: 'c0f8061060089cce5cfd4e1a73dc6d139ca5882f', class: "swiper-wrapper" }, hAsync("slot", { key: 'b21ada18d0c456767d540ccd59e5c1cce00e9fa2' })), this.pager && hAsync("div", { key: 'ed3e6e57cb5ff73b4ab3990d3e6ad307f8487451', class: "swiper-pagination", ref: el => this.paginationEl = el }), this.arrows && (hAsync("div", { key: '891f70fa003492b46bf2426b772a2a6c4a72cf45', role: "button", class: "swiper-button-prev", tabindex: "0", "aria-label": "Previous slide", onClick: () => this.slidePrev() }, hAsync("road-icon", { key: 'd6dc350a2f30a0bb74152755d410edf19f3dc87c', icon: navigationChevron, rotate: "180" }))), this.arrows && (hAsync("div", { key: '6248c621551d1a972b6448135b98353b493f7b50', role: "button", class: "swiper-button-next", tabindex: "0", "aria-label": "Next slide", onClick: () => this.slideNext() }, hAsync("road-icon", { key: '20d0af76b9d2486f122835ad5bd125edc06777ae', icon: navigationChevron })))));
|
|
10593
10613
|
}
|
|
10594
10614
|
get el() { return getElement(this); }
|
|
10595
10615
|
static get watchers() { return {
|
|
@@ -10640,10 +10660,10 @@ class CarouselItem {
|
|
|
10640
10660
|
registerInstance(this, hostRef);
|
|
10641
10661
|
}
|
|
10642
10662
|
render() {
|
|
10643
|
-
return (hAsync(Host, { key: '
|
|
10663
|
+
return (hAsync(Host, { key: 'ad1fcbb1419b1ca05ddfbd0d398c5fc2a7b4e55c', class: {
|
|
10644
10664
|
'swiper-slide': true,
|
|
10645
10665
|
'swiper-zoom-container': true,
|
|
10646
|
-
} }, hAsync("slot", { key: '
|
|
10666
|
+
} }, hAsync("slot", { key: 'e38a514a6965db10c79e5ece9ef7bbc273a32fe7' })));
|
|
10647
10667
|
}
|
|
10648
10668
|
static get style() { return RoadCarouselItemStyle0; }
|
|
10649
10669
|
static get cmpMeta() { return {
|
|
@@ -10734,7 +10754,7 @@ class Checkbox {
|
|
|
10734
10754
|
const labelId = this.checkboxId + '-label';
|
|
10735
10755
|
const inverseClass = this.inverse && 'form-checkbox-inverse';
|
|
10736
10756
|
const isInvalidClass = this.error !== undefined && !this.checked && this.error !== '' ? 'is-invalid' : '';
|
|
10737
|
-
return (hAsync(Host, { key: '
|
|
10757
|
+
return (hAsync(Host, { key: 'f16e29d51017bee1efb9600331cf9ecadc81b8ef' }, hAsync("input", { key: 'b0323e72a41252b61165cef98ec0d4018e05c0c6', class: `form-check-input ${isInvalidClass}`, type: "checkbox", id: this.checkboxId, name: this.name, required: this.required, disabled: this.disabled, indeterminate: this.indeterminate, checked: this.checked, value: this.value, "aria-checked": `${this.checked}`, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur }), hAsync("label", { key: 'f707e5f80448890998b3f17024dcdaa8440f1676', class: `form-check-label ${inverseClass}`, id: labelId, htmlFor: this.checkboxId }, hAsync("div", { key: 'd114ab8b878a19b3abbf81a09b2e5d5d8b42a74d' }, this.label, " ", hAsync("span", { key: '6999e86aa34752d5a583143ca797c4fcde6ec123', class: "form-check-label-span" }, this.secondaryLabel), hAsync("slot", { key: '4a3e284226fd18ecc87f2f3a749de8caf31a5da1' })), this.checked && !this.indeterminate && hAsync("road-icon", { key: '2bb4df593e57edba39acbb171dd807bde34ab286', class: "form-check-icon", icon: checkWide }), this.indeterminate && hAsync("road-icon", { key: '48f0661a7810dfe8e3f32d4fefe2eafac0c294ec', class: "form-check-icon", icon: navigationAddLess })), this.error && this.error !== '' && hAsync("p", { key: '9ee03128a2f23fd6bebcc60e9ae73f2035bd9b25', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: '0a4d6d19679549b2fa006129a9319c1106ac7d85', class: "helper" }, this.helper)));
|
|
10738
10758
|
}
|
|
10739
10759
|
static get watchers() { return {
|
|
10740
10760
|
"checked": ["checkedChanged"]
|
|
@@ -10792,7 +10812,7 @@ class Chip {
|
|
|
10792
10812
|
}
|
|
10793
10813
|
render() {
|
|
10794
10814
|
const outlineClass = this.outline ? 'chip-outline' : '';
|
|
10795
|
-
return (hAsync(Host, { key: '
|
|
10815
|
+
return (hAsync(Host, { key: '6984fe20341a84195a6e855b242f9d4b52a90448', class: `${outlineClass} chip-${this.color} chip-${this.size}`, tabindex: "0" }, hAsync("div", { key: '27080c8b8a87a10b8943aea1563da0174a0405aa', class: "chip-description" }, hAsync("slot", { key: 'dc915b09d73c31b40447a25e99c9c8e2cb490932' })), this.hasCloseIcon && hAsync("road-icon", { key: 'fb6e297f93e7d2a71f34e51c77eafc57391080e2', class: "chip-close", icon: navigationClose })));
|
|
10796
10816
|
}
|
|
10797
10817
|
static get style() { return RoadChipStyle0; }
|
|
10798
10818
|
static get cmpMeta() { return {
|
|
@@ -10821,7 +10841,7 @@ class Col {
|
|
|
10821
10841
|
registerInstance(this, hostRef);
|
|
10822
10842
|
}
|
|
10823
10843
|
render() {
|
|
10824
|
-
return (hAsync("slot", { key: '
|
|
10844
|
+
return (hAsync("slot", { key: '31d1c2466605d958b1e09d2a3560df534e27fcfb' }));
|
|
10825
10845
|
}
|
|
10826
10846
|
static get style() { return RoadColStyle0; }
|
|
10827
10847
|
static get cmpMeta() { return {
|
|
@@ -10871,7 +10891,7 @@ class Collapse {
|
|
|
10871
10891
|
const isOpenClass = this.isOpen ? 'collapse-open' : '';
|
|
10872
10892
|
const buttonText = this.isOpen ? this.showLess : this.showMore;
|
|
10873
10893
|
const centerClass = this.centered ? 'collapse-btn-centered' : '';
|
|
10874
|
-
return (hAsync(Host, { key: '
|
|
10894
|
+
return (hAsync(Host, { key: '6e386b6d38d82a531552aa51a75c1936aa648086' }, hAsync("slot", { key: '4f2a6c4da34fb988a2502c42e84cf04e2ff8b3d9' }), hAsync("div", { key: 'd526b164e59b383060181b421348bf841ebfc87b', class: `collapsed-content ${isOpenClass}` }, hAsync("slot", { key: 'b9f02396aa6b7599bda288ef90eaf86bf6840be4', name: "collapsed-content" })), hAsync("div", { key: 'f8295bbd155c7516b0fdd3e2a58ccd4b5188844b', class: `collapse-btn-wrapper ${centerClass}` }, hAsync("road-button", { key: 'e93ff7cbb3038bf93fc47467708485edec2c9a13', onClick: this.onClick, class: "collapse-btn btn-link" }, buttonText))));
|
|
10875
10895
|
}
|
|
10876
10896
|
static get style() { return RoadCollapseStyle0; }
|
|
10877
10897
|
static get cmpMeta() { return {
|
|
@@ -10908,7 +10928,7 @@ class ContentCard {
|
|
|
10908
10928
|
}
|
|
10909
10929
|
render() {
|
|
10910
10930
|
const insetImageClass = this.insetImage ? '' : 'content-card-image';
|
|
10911
|
-
return (hAsync(Host, { key: '
|
|
10931
|
+
return (hAsync(Host, { key: 'e053ef7978db53d7fecd4628ccc4e5708e128e93' }, hAsync("road-img", { key: 'bb7b363f08ada6385b0744da1b145d8c190ef309', src: "https://s1.medias-norauto.fr/visuals/desktop/fr/banners/blog_loimontagne.png", alt: "loi montagne", class: insetImageClass }), hAsync("div", { key: '70143643e05373e3230aab8a151d7f6986a2c6ef', class: "content-card-description" }, hAsync("road-label", { key: '4dbf374d7fee075b782af68e3627a6fedaf69cb2', class: "content-card-description-title" }, hAsync("slot", { key: '1f70c536151777a0ce5a002c2054306123bcf2ec', name: "label" })), hAsync("p", { key: 'e62f439d92a7ca6a406ab2fcdc5501488613872c', class: "content-card-description-text" }, hAsync("slot", { key: '42bbeb6043724fa897ae49c453f5339ea893fcfc', name: "description" })), hAsync("div", { key: '971bad2a897bce4a4180db88d8a7f0abacd23aee', class: "content-card-description-buttons" }, hAsync("slot", { key: '7c33368ae9c3a748d52b03dbf52fe40e7c738562' })))));
|
|
10912
10932
|
}
|
|
10913
10933
|
static get style() { return RoadContentCardStyle0; }
|
|
10914
10934
|
static get cmpMeta() { return {
|
|
@@ -11068,7 +11088,7 @@ class Counter {
|
|
|
11068
11088
|
}
|
|
11069
11089
|
render() {
|
|
11070
11090
|
const dataCi = this.isDustbinVisible ? "road-dustbin" : "";
|
|
11071
|
-
return (hAsync("road-input-group", { key: '
|
|
11091
|
+
return (hAsync("road-input-group", { key: '8c5c49f3a335f5becc5b1c67823b3bede8847d7b', class: this.size && `counter-${this.size}` }, hAsync("road-button", { key: 'b31f4ea302a78333283578875bfe488891da73e9', slot: "prepend", size: this.size, onClick: this.decrease, class: this.leftIconClasses, "data-cy": "road-decrease" }, hAsync("road-icon", { key: '1b18e482d8cc3d2975c9cf3c52a42f3ae4660238', name: this.isDustbinVisible ? "delete-forever" : "navigation-add-less", ref: (el) => this.iconCounterLess = el, size: this.size, "data-cy": dataCi, role: "button" })), hAsync("road-input", { key: '01475e769b04aa4080be3e24cf1f16d1651bb5a1', ref: (el) => this.inputElement = el, type: "number", min: this.min.toString(), max: (this.max && this.max.toString()), step: this.step, value: this.value, onRoadChange: this.onRoadChange, onKeyUp: this.checkValue, "data-cy": "road-input-counter", readonly: this.readonly, label: "Quantit\u00E9" }), hAsync("road-button", { key: '4a27e374ce3cee4d1c47a5f921af4b2e2d6fbc53', slot: "append", size: this.size, onClick: this.increase, class: this.rightIconClasses, "data-cy": "road-increase" }, hAsync("road-icon", { key: '3a53a84956795e8576a3e4ba240a17f074d96575', name: "navigation-add-more", size: this.size, role: "button" }))));
|
|
11072
11092
|
}
|
|
11073
11093
|
get el() { return getElement(this); }
|
|
11074
11094
|
static get watchers() { return {
|
|
@@ -11184,11 +11204,11 @@ class Dialog {
|
|
|
11184
11204
|
break;
|
|
11185
11205
|
}
|
|
11186
11206
|
}
|
|
11187
|
-
return (hAsync(Host, { key: '
|
|
11207
|
+
return (hAsync(Host, { key: '2c8db56b9961b0344f525d832351583ddcfbf3b2', class: `dialog ${modalIsOpenClass} ${modalhasClose}`, role: "alertdialog", "aria-modal": "true", tabindex: "-1", "aria-label": "dialogLabel" }, hAsync("div", { key: 'c931f46217f533acf46f70968fe04319f639f7ad', class: "dialog-overlay", onClick: this.hasCloseIcon === true ? this.onClick : undefined, tabindex: "-1" }), hAsync("div", { key: '0b141dde632d78b058263431af0f5d4470f267c5', class: "dialog-modal", role: "document", tabindex: "0" }, hAsync("div", { key: '78ed93fb9251f925bc0f33e43961bd4a656777ab', class: "dialog-content" }, hAsync("header", { key: '5e4bfdd20864ff18f8352536f918d801d338a9d5', class: "dialog-header" }, this.hasCloseIcon
|
|
11188
11208
|
? hAsync("button", { type: "button", class: "dialog-close", onClick: this.onClick, "aria-label": "Close" }, hAsync("road-icon", { icon: navigationClose, "aria-hidden": "true" }))
|
|
11189
|
-
: ''), hAsync("div", { key: '
|
|
11209
|
+
: ''), hAsync("div", { key: '787c2b4a2791f0098424159f1a1f1462973d7f88', class: "dialog-body" }, this.color !== undefined
|
|
11190
11210
|
? hAsync("road-icon", { class: "dialog-icon", part: "dialog-icon", color: this.color, icon: icon, "aria-hidden": "true" })
|
|
11191
|
-
: '', hAsync("h2", { key: '
|
|
11211
|
+
: '', hAsync("h2", { key: '3445750e2edadb33dc2219b72642ff0209b3c1c6', class: "dialog-title" }, this.label), hAsync("p", { key: 'db5324827d724d10a38cb7187dc717fa74a57cc7', class: "dialog-description", id: "dialogDesc" }, this.description)), hAsync("footer", { key: '59ba58e5ab179d493b21f6a2d42b8bc5e4bb04d3', class: "dialog-footer" }, hAsync("slot", { key: 'c4e5b3236e31f94bf0d08c00f4c21161b3d09969' }))))));
|
|
11192
11212
|
}
|
|
11193
11213
|
get el() { return getElement(this); }
|
|
11194
11214
|
static get style() { return RoadDialogStyle0; }
|
|
@@ -11338,21 +11358,18 @@ class Drawer {
|
|
|
11338
11358
|
item.addEventListener('click', () => this.close());
|
|
11339
11359
|
});
|
|
11340
11360
|
}
|
|
11341
|
-
hasFooterContent() {
|
|
11342
|
-
const footerSlot = this.el.querySelector('[slot="footer"]');
|
|
11343
|
-
return footerSlot !== null && footerSlot.childElementCount > 0;
|
|
11344
|
-
}
|
|
11345
11361
|
render() {
|
|
11362
|
+
var _a, _b, _c;
|
|
11346
11363
|
const drawerIsOpenClass = this.isOpen ? 'drawer-open' : '';
|
|
11347
11364
|
const inverseHeaderClass = this.hasInverseHeader ? 'drawer-header-inverse' : '';
|
|
11348
|
-
const ariaLabel = this.ariaLabel !==
|
|
11349
|
-
const ariaLabelBack = this.ariaLabelBack !==
|
|
11350
|
-
const ariaLabelClose = this.ariaLabelClose !==
|
|
11351
|
-
const drawerDelimiterClass = this.drawerTitle
|
|
11352
|
-
const backIconElement = this.hasBackIcon ? hAsync("button", { type: "button", class: "drawer-action", "aria-label":
|
|
11353
|
-
const closeIconElement = this.hasCloseIcon ? hAsync("button", { type: "button", class: "drawer-close", onClick: this.onClick, "aria-label":
|
|
11354
|
-
const drawerWidthValue = this.position === 'bottom' ? '100%' : this.drawerWidth
|
|
11355
|
-
return (hAsync(Host, { key: '
|
|
11365
|
+
const ariaLabel = (_a = this.ariaLabel) !== null && _a !== void 0 ? _a : 'drawer';
|
|
11366
|
+
const ariaLabelBack = (_b = this.ariaLabelBack) !== null && _b !== void 0 ? _b : 'Back';
|
|
11367
|
+
const ariaLabelClose = (_c = this.ariaLabelClose) !== null && _c !== void 0 ? _c : 'Close';
|
|
11368
|
+
const drawerDelimiterClass = this.drawerTitle && !this.hasInverseHeader ? 'drawer-delimiter' : '';
|
|
11369
|
+
const backIconElement = this.hasBackIcon ? (hAsync("button", { type: "button", class: "drawer-action", "aria-label": ariaLabelBack, onClick: this.onClickBack }, hAsync("road-icon", { icon: navigationChevron, rotate: "180" }), this.backText)) : null;
|
|
11370
|
+
const closeIconElement = this.hasCloseIcon ? (hAsync("button", { type: "button", class: "drawer-close", onClick: this.onClick, "aria-label": ariaLabelClose }, hAsync("road-icon", { icon: navigationClose, "aria-hidden": "true" }))) : null;
|
|
11371
|
+
const drawerWidthValue = this.position === 'bottom' ? '100%' : `${this.drawerWidth}px`;
|
|
11372
|
+
return (hAsync(Host, { key: '4d9be03736741085ab2e44728221fa931702f7a2', class: `${drawerIsOpenClass} drawer-${this.position}`, tabindex: "0", role: "dialog", "aria-label": ariaLabel }, hAsync("div", { key: 'c613b7c05b4dfbef48310a6c1565caa8d091c6c0', class: "drawer-overlay", onClick: this.onClick, tabindex: "-1" }), hAsync("div", { key: '70076089664b4566643bf831a4db3be3a7af68ac', class: "drawer-dialog", style: { maxWidth: drawerWidthValue }, role: "document", tabindex: "0" }, hAsync("div", { key: 'df3d3339ab9154a2739b0363d344fa5ae4f8b94a', class: "drawer-content" }, hAsync("header", { key: 'fc42b61e3c39be98e8c3a74bb123f73c1c2e5233', class: `drawer-header ${inverseHeaderClass} ${drawerDelimiterClass}` }, backIconElement, this.drawerTitle ? (hAsync("h2", { class: "drawer-title" }, this.drawerTitle)) : (hAsync("div", { class: "drawer-title" }, hAsync("slot", { name: "title" }))), closeIconElement), hAsync("div", { key: 'a2d41d92db31c710971d719400fd0e12e0980961', class: "drawer-body" }, hAsync("slot", { key: '9beff60ac4b62b62c0e64bb0589823bedaf02cf7' })), hAsync("footer", { key: 'f104a4bf836bfe093f07d4613c243ff5b58ea58d', class: "drawer-footer" }, hAsync("slot", { key: 'b53316f9351fd23e9baf4be885772542cba6df92', name: "footer" }))))));
|
|
11356
11373
|
}
|
|
11357
11374
|
get el() { return getElement(this); }
|
|
11358
11375
|
static get watchers() { return {
|
|
@@ -11412,7 +11429,7 @@ class Dropdown$1 {
|
|
|
11412
11429
|
const positionClass = this.position ? `position-${this.position}` : '';
|
|
11413
11430
|
const dropdownClass = this.position ? `dropdown-${this.position}` : '';
|
|
11414
11431
|
const directionClass = this.direction ? `direction-${this.direction}` : '';
|
|
11415
|
-
return (hAsync("details", { key: '
|
|
11432
|
+
return (hAsync("details", { key: '63664ef857943b6aeccfa742262132ccd0f0ea3d', class: "dropdown", open: this.isOpen }, hAsync("summary", { key: '5286cc9ed3f2d928350bafb6e8420faa34b25b33', "aria-expanded": this.isOpen.toString(), tabindex: "0", role: "button", onClick: this.onClick, "tab-index": "0" }, hAsync("div", { key: '5c8849bea5ed2a5bcee7432d5a59597c490b1bb2', class: `d-flex ${positionClass}` }, hAsync("div", { key: '0e5ca32d720b1230083469d39c0a032ae345abc3', class: `${isLightButtonDropDown} ${isMediumButtonDropDown}` }, hAsync("road-icon", { key: 'd65534d956a28d5238f38fdea121491ff7923900', name: "navigation-more", class: "dropdown-button-icon", "aria-hidden": "true" })))), hAsync("div", { key: '9e9a77d0c43b5770b443967c9e828d758d55dd3f', class: `dropdown-menu ${directionClass} ${dropdownClass}` }, hAsync("slot", { key: 'c5693e782f0a05dfd5f62a7d96eb2418e619e2f9', name: "list" }))));
|
|
11416
11433
|
}
|
|
11417
11434
|
get el() { return getElement(this); }
|
|
11418
11435
|
static get style() { return RoadDropdownStyle0; }
|
|
@@ -11468,7 +11485,7 @@ class Dropdown {
|
|
|
11468
11485
|
this.isOpen = false;
|
|
11469
11486
|
}
|
|
11470
11487
|
render() {
|
|
11471
|
-
return (hAsync("details", { key: '
|
|
11488
|
+
return (hAsync("details", { key: 'ef885563a57a00c14694efdc7535b2f589cd5558', class: "dropdown", open: this.isOpen }, hAsync("summary", { key: 'd653bf84dded67c1e7ee765951335e08c22cf5e5', "aria-expanded": `${this.isOpen}`, tabindex: "0", role: "button", onClick: this.onClick }, hAsync("div", { key: '2d1d9bb7d125d26be995636447148bc60ce3ebee', class: `d-flex` }, hAsync("div", { key: 'd09e9dce1f1509092acdd9c55ac86f77620a8945' }, hAsync("road-avatar", { key: 'd5d20f6e0f6af0d710d0c40e1027f07ba27c4ec5' }, hAsync("slot", { key: '1e23ef5fd196881d23a144326b26cf223cc06c31', name: "avatar" }))))), hAsync("div", { key: '12b770b0426f1ca4f5550656b8ddb5f868f7f5c4', class: `dropdown-menu` }, hAsync("div", { key: '502d4e9f0a65c0aa72021cde7462c4b056223326', class: "profil-item" }, hAsync("road-avatar", { key: '0568250f850bf1f56169b8f40a89d16c0d0a4400', size: "sm" }, hAsync("slot", { key: '3e5896405e5f155a3721eda74a99bda6fbbf5500', name: "avatarItem" })), hAsync("div", { key: '9c3c0af4361d5e36e3189c2bc9fa156e80d9b52a', class: "profil-item-info" }, hAsync("span", { key: '14d317fb694adbfa415897059191e0586689c354', class: "profil-item-info-name" }, hAsync("slot", { key: 'e42863210087468ff02e50a669b99d4fdc2f048d', name: "name" })), hAsync("road-label", { key: '451c674889bccb623c397b05310046d00bd32986' }, hAsync("slot", { key: 'e37cc7000e92ef1d7573f98fc30bf64223e10340', name: "email" })))), hAsync("slot", { key: 'e14e18ceefeff09ea09abb71c36e8f0e9d432f71', name: "list" }))));
|
|
11472
11489
|
}
|
|
11473
11490
|
get el() { return getElement(this); }
|
|
11474
11491
|
static get style() { return RoadProfilDropdownStyle0; }
|
|
@@ -11532,7 +11549,7 @@ class Duration {
|
|
|
11532
11549
|
this.isOpen = false;
|
|
11533
11550
|
}
|
|
11534
11551
|
render() {
|
|
11535
|
-
return (hAsync("road-drawer", { key: '
|
|
11552
|
+
return (hAsync("road-drawer", { key: '18883acabae49df9f9e957e673d118356011d28c', "is-open": this.isOpen, position: "bottom", "drawer-title": this.header }, hAsync("road-grid", { key: '7e0e1b64d1748880df6eb12b06dbd14a6eba8c70' }, hAsync("road-row", { key: '02e407a9f1a56f8c8fc8a48751d95848c7fc5c4f', class: "duration-values" }, Array(Math.floor((this.max - this.min) / this.step) + 1).fill(this.min).map(((item, index) => (item + index * this.step))).map(item => hAsync("road-col", { class: "col-3 col-md-2" }, hAsync("road-card", { button: true, value: item }, hAsync("road-label", null, Math.floor(item / 60).toLocaleString("en-GB", { minimumIntegerDigits: 2, useGrouping: false }), ":", (item % 60).toLocaleString("en-GB", { minimumIntegerDigits: 2, useGrouping: false })))))))));
|
|
11536
11553
|
}
|
|
11537
11554
|
get el() { return getElement(this); }
|
|
11538
11555
|
static get style() { return RoadDurationStyle0; }
|
|
@@ -11578,7 +11595,7 @@ class Flap {
|
|
|
11578
11595
|
}
|
|
11579
11596
|
render() {
|
|
11580
11597
|
const colorClass = this.filled ? `flap-${this.color}-filled` : `flap-${this.color}`;
|
|
11581
|
-
return (hAsync(Host, { key: '
|
|
11598
|
+
return (hAsync(Host, { key: '3070a00a39088bc22f27b1e97a4aa635bc27c34d', class: `${colorClass} flap-${this.size}` }, hAsync("slot", { key: 'd2c0af9309ce6200b5055a152f26cea71e3c859f' })));
|
|
11582
11599
|
}
|
|
11583
11600
|
static get style() { return RoadFlapStyle0; }
|
|
11584
11601
|
static get cmpMeta() { return {
|
|
@@ -11624,7 +11641,7 @@ class GlobalNavigation {
|
|
|
11624
11641
|
this.selectedTabChanged();
|
|
11625
11642
|
}
|
|
11626
11643
|
render() {
|
|
11627
|
-
return (hAsync(Host, { key: '
|
|
11644
|
+
return (hAsync(Host, { key: 'b9dc9e434336aac0badabc03361dee0536ca1382', role: "application" }, hAsync("slot", { key: 'b4d9e5ec254a413489b81b720bd20f5ce18d9da4' })));
|
|
11628
11645
|
}
|
|
11629
11646
|
static get watchers() { return {
|
|
11630
11647
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -11772,7 +11789,7 @@ class GlobalNavigationV2 {
|
|
|
11772
11789
|
this.selectedTabChanged();
|
|
11773
11790
|
}
|
|
11774
11791
|
render() {
|
|
11775
|
-
return (hAsync(Host, { key: '
|
|
11792
|
+
return (hAsync(Host, { key: 'c9d5417b5d92177482a620e7baa5879fa7d04731', role: "application" }, hAsync("slot", { key: '6d189aef035de7d1816328f150e3402582b97bd7' })));
|
|
11776
11793
|
}
|
|
11777
11794
|
get host() { return getElement(this); }
|
|
11778
11795
|
static get watchers() { return {
|
|
@@ -11802,7 +11819,7 @@ class Grid {
|
|
|
11802
11819
|
registerInstance(this, hostRef);
|
|
11803
11820
|
}
|
|
11804
11821
|
render() {
|
|
11805
|
-
return (hAsync("slot", { key: '
|
|
11822
|
+
return (hAsync("slot", { key: 'afda2c7ec410ce0c1c06b12091a1416394a3b506' }));
|
|
11806
11823
|
}
|
|
11807
11824
|
static get style() { return RoadGridStyle0; }
|
|
11808
11825
|
static get cmpMeta() { return {
|
|
@@ -11905,7 +11922,7 @@ class Icon {
|
|
|
11905
11922
|
const rotateClass = this.rotate ? `icon-rotate-${this.rotate}` : '';
|
|
11906
11923
|
// Ajouter une classe "default" si aucune des valeurs n'est définie
|
|
11907
11924
|
const classes = [colorClass, sizeClass, rotateClass].filter(Boolean).join(' ');
|
|
11908
|
-
return (hAsync(Host, { key: '
|
|
11925
|
+
return (hAsync(Host, { key: '1da1702db901bcfb80638d9ae30a8c5cc4a2ac26', class: classes, "aria-hidden": "true" }, this.svgContent !== ''
|
|
11909
11926
|
? hAsync("div", { class: "icon-inner", innerHTML: this.svgContent })
|
|
11910
11927
|
: hAsync("div", { class: "icon-inner" })));
|
|
11911
11928
|
}
|
|
@@ -12027,7 +12044,7 @@ class Illustration {
|
|
|
12027
12044
|
render() {
|
|
12028
12045
|
const sizeClass = this.size !== undefined ? `illustration-${this.size}` : '';
|
|
12029
12046
|
const rotateClass = this.rotate !== undefined ? `illustration-rotate-${this.rotate}` : '';
|
|
12030
|
-
return (hAsync(Host, { key: '
|
|
12047
|
+
return (hAsync(Host, { key: '0c1d3f02b235f7f69dbdca9969fd3a637929e0bd', class: `${sizeClass} ${rotateClass}`, "aria-hidden": "true", role: "img" }, ((this.illustrationSvgContent !== '')
|
|
12031
12048
|
? hAsync("div", { class: "icon-inner", innerHTML: this.illustrationSvgContent })
|
|
12032
12049
|
: hAsync("div", { class: "icon-inner" }))));
|
|
12033
12050
|
}
|
|
@@ -12130,7 +12147,7 @@ class Img {
|
|
|
12130
12147
|
}
|
|
12131
12148
|
render() {
|
|
12132
12149
|
const placeholder = this.loadSrc !== undefined ? '' : 'placeholder';
|
|
12133
|
-
return (hAsync(Host, { key: '
|
|
12150
|
+
return (hAsync(Host, { key: 'f53be3ccdaadcae1091cab8e04678f1e709d30cd', class: placeholder }, hAsync("img", { key: '2e9b71fd42e3eff11402a195a93d2b93cc7446e6', class: "native-img", decoding: "async", src: this.loadSrc, alt: this.alt, onLoad: this.onLoad, onError: this.loadError, part: "image" })));
|
|
12134
12151
|
}
|
|
12135
12152
|
get el() { return getElement(this); }
|
|
12136
12153
|
static get watchers() { return {
|
|
@@ -29524,7 +29541,7 @@ class Input {
|
|
|
29524
29541
|
const hasValueClass = this.value !== '' && this.value !== null ? 'has-value' : '';
|
|
29525
29542
|
const lessLabelClass = this.label !== '' ? '' : 'less-label';
|
|
29526
29543
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
29527
|
-
return (hAsync(Host, { key: '
|
|
29544
|
+
return (hAsync(Host, { key: '9251985e0b07d2b85f319d30bd6e4cc46cf78147', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}`, value: value, blockdecimal: this.blockdecimal }, hAsync("input", { key: 'b0d87d5bde0d232615d200c1b4c611a997931595', class: `form-control ${hasValueClass} ${isInvalidClass} ${lessLabelClass}`, id: this.inputId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, enterKeyHint: this.enterkeyhint, autoFocus: this.autofocus, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, size: this.size, type: this.type, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.type === 'number' ? (event) => this.handleKeyDown(event) : undefined, onKeyUp: (event) => this.enforceMinMax(event.target), "data-cy": 'road-input' }), hAsync("label", { key: '910506a3f147908dd802d645c9d985862cf4126b', class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && hAsync("p", { key: 'feb2985f978e936bcde5328233a433eda6f2d16c', class: "invalid-feedback" }, hAsync("road-icon", { key: 'f5d8a3c8edc1ccac2d5b9f9d6b2bcc3f3f7bc283', slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), this.error), this.helper && this.helper !== '' && hAsync("p", { key: '3e11fd43dc68951c17d3ab267bc4a25316e1efce', class: "helper" }, this.helper), this.type && this.type == 'password' && hAsync("slot", { key: '0a2df2f8c92a52d18b6d1063765eaf47809a60b3', name: "checklistPassword" })));
|
|
29528
29545
|
}
|
|
29529
29546
|
static get watchers() { return {
|
|
29530
29547
|
"debounce": ["debounceChanged"],
|
|
@@ -29611,7 +29628,7 @@ class InputGroup {
|
|
|
29611
29628
|
? `size-${this.el.querySelector('road-input').sizes}`
|
|
29612
29629
|
: '';
|
|
29613
29630
|
const disabledClass = this.disabled ? 'is-disabled' : '';
|
|
29614
|
-
return (hAsync("div", { key: '
|
|
29631
|
+
return (hAsync("div", { key: '1dc07a13ad76efc4b8ab8e2ce83b1c90ca283459', class: `input-group ${errorClass} ${disabledClass} ${sizeClass}` }, hAsync("div", { key: '1c44dad07b031661812715bff42dafcb9eba22a4', class: "input-group-prepend" }, hAsync("slot", { key: 'ecc99ec7f39e7ecd3f3ee229957e0f97ae63467a', name: "prepend" })), hAsync("slot", { key: '2026617a9bdf3c6b31fa4492dd14d56e635fe464' }), hAsync("div", { key: '4e134a2e344f345d021e0ec1d3100da88dd17a88', class: "input-group-append" }, hAsync("slot", { key: '1cec89a371a53e753813fc61f388fee0108ae695', name: "append" }))));
|
|
29615
29632
|
}
|
|
29616
29633
|
get el() { return getElement(this); }
|
|
29617
29634
|
static get watchers() { return {
|
|
@@ -29691,13 +29708,13 @@ class Item {
|
|
|
29691
29708
|
target,
|
|
29692
29709
|
};
|
|
29693
29710
|
const showDetail = detail !== undefined && detail;
|
|
29694
|
-
return (hAsync(Host, { key: '
|
|
29711
|
+
return (hAsync(Host, { key: '9fb4b35e594ec2393232ad0a9403e279e2e2889c', "aria-disabled": disabled ? 'true' : null, class: {
|
|
29695
29712
|
[`item-lines-${lines}`]: lines !== undefined,
|
|
29696
|
-
} }, hAsync(TagType, Object.assign({ key: '
|
|
29713
|
+
} }, hAsync(TagType, Object.assign({ key: '9fba47364f496d51e09e3b2a5a92dd00ef71ff87' }, attrs, { class: {
|
|
29697
29714
|
'item-native': true,
|
|
29698
29715
|
'item-active': this.active,
|
|
29699
29716
|
[`layout-${layout}`]: layout !== undefined,
|
|
29700
|
-
}, part: "native", disabled: disabled }), hAsync("slot", { key: '
|
|
29717
|
+
}, part: "native", disabled: disabled }), hAsync("slot", { key: 'fe656d0fa4a1f518f6ab7a43524e244d6eb37d30', name: "start" }), hAsync("div", { key: 'd1c19e1d0a10b578799970249bf4e40cdddd9dc3', class: "item-inner" }, hAsync("div", { key: '3523d2bd743dc2f16cc1dc2de844a3ab3be93ff2', class: "input-wrapper" }, hAsync("slot", { key: 'a7da0e4dcf42fc54130eaafa1a08d16315b52d54' }), hAsync("div", { key: 'd63ad621b6f43da35bec1a270ceacd40876b4d3e', class: "input-wrapper-info" }, hAsync("road-label", { key: '14763d79d648cfbbb21136998287411ab3231cbc', class: "input-wrapper-info-title" }, this.titleItem), hAsync("p", { key: '5048f0bab07eb191b4ba3d8655a7890a45926541', class: "input-wrapper-info-text" }, this.text))), hAsync("slot", { key: 'ef5cef7e326421ea28f0420a81a1773b74adc8bf', name: "end" }), showDetail && hAsync("road-icon", { key: 'ecb61fe5b2cd5e3ba3ba8b30427337cbde78fd78', icon: detailIcon, lazy: false, class: "item-detail-icon" })))));
|
|
29701
29718
|
}
|
|
29702
29719
|
get el() { return getElement(this); }
|
|
29703
29720
|
static get style() { return RoadItemStyle0; }
|
|
@@ -29738,7 +29755,7 @@ class Label {
|
|
|
29738
29755
|
registerInstance(this, hostRef);
|
|
29739
29756
|
}
|
|
29740
29757
|
render() {
|
|
29741
|
-
return (hAsync("slot", { key: '
|
|
29758
|
+
return (hAsync("slot", { key: '3ba99679bcd840c743cbc724843909bd267d0ab2' }));
|
|
29742
29759
|
}
|
|
29743
29760
|
static get style() { return RoadLabelStyle0; }
|
|
29744
29761
|
static get cmpMeta() { return {
|
|
@@ -29763,9 +29780,9 @@ class List {
|
|
|
29763
29780
|
}
|
|
29764
29781
|
render() {
|
|
29765
29782
|
const { lines } = this;
|
|
29766
|
-
return (hAsync(Host, { key: '
|
|
29783
|
+
return (hAsync(Host, { key: 'ddd543051e3de681b5672d7ab87ebe742858da9c', class: {
|
|
29767
29784
|
[`list-lines-${lines}`]: lines !== undefined,
|
|
29768
|
-
} }, hAsync("slot", { key: '
|
|
29785
|
+
} }, hAsync("slot", { key: '56e04b9869dc48d1011e422c57ec2578e61301c6' })));
|
|
29769
29786
|
}
|
|
29770
29787
|
static get style() { return RoadListStyle0; }
|
|
29771
29788
|
static get cmpMeta() { return {
|
|
@@ -29850,7 +29867,7 @@ class Modal {
|
|
|
29850
29867
|
const modalIsOpenClass = this.isOpen ? 'modal-open' : '';
|
|
29851
29868
|
const inverseHeaderClass = this.hasInverseHeader ? 'modal-header-inverse' : '';
|
|
29852
29869
|
const closeIconElement = this.hasCloseIcon ? hAsync("button", { type: "button", class: "modal-close", onClick: this.onClick, "aria-label": "Close" }, hAsync("road-icon", { icon: navigationClose, "aria-hidden": "true" })) : '';
|
|
29853
|
-
return (hAsync(Host, { key: '
|
|
29870
|
+
return (hAsync(Host, { key: 'b87d292936b3298bd9e0fef68931b1197d89990f', class: `modal ${modalIsOpenClass}`, tabindex: "-1", role: "dialog", "aria-label": "modal" }, hAsync("div", { key: '9c9ce64aca4d7e856b1a36de791aebd6b7b7affb', class: "modal-overlay", onClick: this.onClick, tabindex: "-1" }), hAsync("div", { key: '9afc412d8a8f819d265d2d9102c1c96c14314816', class: "modal-dialog", style: { maxWidth: `${this.maxWidth}px` }, role: "document", tabindex: "0" }, hAsync("div", { key: '3ed271357372e1e6306280c7eaa7283ac2336ab3', class: "modal-content" }, hAsync("header", { key: '806e9a7258847239b31b89576213470e04b2c03d', class: `modal-header ${inverseHeaderClass}` }, hAsync("h2", { key: 'aca390c8fbb825c385d43e667f9563a1204eafcb', class: "modal-title" }, this.modalTitle), closeIconElement), hAsync("div", { key: '000d132ec44dff846b4cc7d55039ded734f7db4c', class: "modal-body" }, hAsync("slot", { key: '87025f81c5fd3498e38656d96772ba495b34f66e' }))))));
|
|
29854
29871
|
}
|
|
29855
29872
|
get el() { return getElement(this); }
|
|
29856
29873
|
static get style() { return RoadModalStyle0; }
|
|
@@ -29901,7 +29918,7 @@ class Navbar {
|
|
|
29901
29918
|
this.selectedTabChanged();
|
|
29902
29919
|
}
|
|
29903
29920
|
render() {
|
|
29904
|
-
return (hAsync(Host, { key: '
|
|
29921
|
+
return (hAsync(Host, { key: '1413fa96200fad5a83abd97f951c46b6a6a25777', role: "menubar" }, hAsync("slot", { key: 'c6f91f0af00788a5708cb95f44789938c7d6eeda' })));
|
|
29905
29922
|
}
|
|
29906
29923
|
static get watchers() { return {
|
|
29907
29924
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -29987,11 +30004,11 @@ class NavbarItem$1 {
|
|
|
29987
30004
|
rel,
|
|
29988
30005
|
target,
|
|
29989
30006
|
};
|
|
29990
|
-
return (hAsync(Host, { key: '
|
|
30007
|
+
return (hAsync(Host, { key: '8d13f1295c10b09012ee6f0c3a683c44ea9575de', onClick: this.onClick, onKeyup: this.onKeyUp, role: "menuitem", tabindex: "0", "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `navbar-item-${tab}` : null, disabled: disabled, class: {
|
|
29991
30008
|
'navbar-item': true,
|
|
29992
30009
|
'tab-selected': selected,
|
|
29993
30010
|
'tab-disabled': disabled,
|
|
29994
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
30011
|
+
} }, hAsync("a", Object.assign({ key: '3053f87c13f67102e2b3e10c9f1e536a083fdf3e' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), hAsync("span", { key: '74b5de95c1cbcaa1f5bef7dded2e8949134241b5', class: "button-inner" }, hAsync("slot", { key: '84f6e5bf2ba906fdd7356dce268a7e7d8d399bff' })))));
|
|
29995
30012
|
}
|
|
29996
30013
|
get el() { return getElement(this); }
|
|
29997
30014
|
static get watchers() { return {
|
|
@@ -30084,11 +30101,11 @@ class NavbarItem {
|
|
|
30084
30101
|
rel,
|
|
30085
30102
|
target,
|
|
30086
30103
|
};
|
|
30087
|
-
return (hAsync(Host, { key: '
|
|
30104
|
+
return (hAsync(Host, { key: '191e295ae457ff383a61caf39b2b14b361dfd208', onClick: this.onClick, onKeyup: this.onKeyUp, role: "menuitem", tabindex: "0", "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `navbar-item-${tab}` : null, disabled: disabled, class: {
|
|
30088
30105
|
'navbar-item': true,
|
|
30089
30106
|
'tab-selected': selected,
|
|
30090
30107
|
'tab-disabled': disabled,
|
|
30091
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
30108
|
+
} }, hAsync("a", Object.assign({ key: '445f29f9ba3534f1b4c02861ea4ac3768cc48b0c' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), hAsync("span", { key: '3d7a3ac9b15cef609ab6402ed35b030830e03dd8', class: "button-inner" }, hAsync("slot", { key: '059d10fdd31ed3a4e8caecaa62b9aacd4483883f' })))));
|
|
30092
30109
|
}
|
|
30093
30110
|
get el() { return getElement(this); }
|
|
30094
30111
|
static get watchers() { return {
|
|
@@ -30147,7 +30164,7 @@ class NavbarV2 {
|
|
|
30147
30164
|
}
|
|
30148
30165
|
render() {
|
|
30149
30166
|
const compactClass = this.compact ? 'compact' : '';
|
|
30150
|
-
return (hAsync(Host, { key: '
|
|
30167
|
+
return (hAsync(Host, { key: 'e4fe4a407edcf036a5f3da534cc88eb4b863ab71', role: "menubar", class: `${compactClass}` }, hAsync("slot", { key: 'ef7df2d2775c533592267b1b420e522e23836d7e' })));
|
|
30151
30168
|
}
|
|
30152
30169
|
static get watchers() { return {
|
|
30153
30170
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -30270,10 +30287,10 @@ class PlateNumber {
|
|
|
30270
30287
|
render() {
|
|
30271
30288
|
const value = this.getValue();
|
|
30272
30289
|
const motorbikeClass = this.motorbike ? 'motorbike-plate' : '';
|
|
30273
|
-
return (hAsync("road-input-group", { key: '
|
|
30290
|
+
return (hAsync("road-input-group", { key: '7980cc259f449b537eb2a03fc4e291f1d1969bfb', class: `plate-number plate-number-${this.country.toLowerCase()} ${motorbikeClass}` }, hAsync("label", { key: '3149ae01f12aadde00cb72903b09c73a45816732', slot: "prepend", class: "input-group-prepend" }, hAsync("div", { key: '21220cb22eccab0efab05f44a1127bcb6cbd204f', class: "plate-number-start" }, hAsync("road-icon", { key: '2b1e4f33543c17399f1d19088f3d71c1d15c0248', class: "plate-number-icon", icon: licensePlateStarEu }), hAsync("div", { key: 'ab3f376b26c1bc8b8dcc0741a8d651bf5ef2ab66', class: "plate-number-location", "aria-label": this.country, role: "img" }, this.countries
|
|
30274
30291
|
.filter(item => item.country === this.country)[0].letter))), this.motorbike
|
|
30275
30292
|
? (hAsync("textarea", { class: "form-control plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, maxlength: "9", rows: 2, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus }))
|
|
30276
|
-
: (hAsync("input", { class: "plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus })), hAsync("label", { key: '
|
|
30293
|
+
: (hAsync("input", { class: "plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus })), hAsync("label", { key: '247d5b0a7be0f8d5012f5954d569c674e5f294a2', slot: "append", class: "input-group-append" }, hAsync("div", { key: '7ddc6a2c9e8bc5a41677cda5f3b48ae000952d08', class: "plate-number-end" }))));
|
|
30277
30294
|
}
|
|
30278
30295
|
static get watchers() { return {
|
|
30279
30296
|
"value": ["valueChanged"]
|
|
@@ -30341,7 +30358,7 @@ class ProgressBar {
|
|
|
30341
30358
|
const fullwidth = this.fullwidth ? 'progress-element-info-full-width' : 'progress-element-info';
|
|
30342
30359
|
const light = this.light ? 'progress progress-light' : 'progress';
|
|
30343
30360
|
const animation = this.animation ? 'animation' : '';
|
|
30344
|
-
return (hAsync(Host, { key: '
|
|
30361
|
+
return (hAsync(Host, { key: 'f279904305a0aeeed08b41ad7c04dde77b7935bd', class: "progress-element" }, hAsync("div", { key: 'fcc94dd81e3f47e7cd0792223f42132a565ffb0f', class: `${light} progress-${this.color} ${animation}` }, hAsync("div", { key: '9df3dc8b11c4d458115e7d772ba04e9c56c49498', class: "progress-bar", role: "progressbar", style: { width: `${this.value}%` }, "aria-valuenow": this.value, "aria-valuemin": "0", "aria-valuemax": "100", "aria-label": "progress bar" })), hAsync("div", { key: '77912e82c0338448643cd6e9b1b57f29d882a4d5', class: `${fullwidth}` }, hAsync("span", { key: '41db96be16f003e0efac77d65580e0333e55efea', class: "progress-element-label" }, this.label), this.showstep && hAsync("span", { key: '2096e01438d8d0384c17e781e946aae8217bfab7', class: "progress-element-step" }, valueRound, "/", this.numbersteps))));
|
|
30345
30362
|
}
|
|
30346
30363
|
static get style() { return RoadProgressStyle0; }
|
|
30347
30364
|
static get cmpMeta() { return {
|
|
@@ -30382,7 +30399,7 @@ class ProgressIndicatorVertical {
|
|
|
30382
30399
|
registerInstance(this, hostRef);
|
|
30383
30400
|
}
|
|
30384
30401
|
render() {
|
|
30385
|
-
return (hAsync(Host, { key: '
|
|
30402
|
+
return (hAsync(Host, { key: '1316219f8843bbe67b9d108e7855db69251025fa' }, hAsync("nav", { key: '6b2ff0e552c124364a5cdb8419af4c3cf6489a2a' }, hAsync("ul", { key: '279fa6381d7cc7ec44614c3a2611171d1b728a92' }, hAsync("li", { key: '9b4b57a7285a812c7a992c9e35e145f703de9c5b' }, hAsync("slot", { key: '9adfddec33f1ddd9658f2ce50802d193cf880a36' }))))));
|
|
30386
30403
|
}
|
|
30387
30404
|
static get style() { return RoadProgressIndicatorVerticalStyle0; }
|
|
30388
30405
|
static get cmpMeta() { return {
|
|
@@ -30406,7 +30423,7 @@ class ProgressIndicatorVerticalItem {
|
|
|
30406
30423
|
registerInstance(this, hostRef);
|
|
30407
30424
|
}
|
|
30408
30425
|
render() {
|
|
30409
|
-
return (hAsync(Host, { key: '
|
|
30426
|
+
return (hAsync(Host, { key: '3b0c10665a39471c80fd033bc9ac82fe2a5af21b' }, hAsync("slot", { key: '9afd4c52e6b4b5de87e8283a90d44f89cd608c2e' })));
|
|
30410
30427
|
}
|
|
30411
30428
|
static get style() { return RoadProgressIndicatorVerticalItemStyle0; }
|
|
30412
30429
|
static get cmpMeta() { return {
|
|
@@ -30435,7 +30452,7 @@ class ProgressTracker {
|
|
|
30435
30452
|
registerInstance(this, hostRef);
|
|
30436
30453
|
}
|
|
30437
30454
|
render() {
|
|
30438
|
-
return (hAsync(Host, { key: '
|
|
30455
|
+
return (hAsync(Host, { key: '7d98761f2a2e832defc4a3be6f8ba55ee84e63e5' }, hAsync("nav", { key: 'd7b060564d6010f2cf6258be342337f38d21f465' }, hAsync("ul", { key: '1d738d9f900a278a9c1da0a90fd851cd859af5d7' }, hAsync("li", { key: '07652bae417a2e3654f70751330fdf72bfa2cbfc' }, hAsync("slot", { key: 'd1e1dccc15da4d4b578ed309f63843dc68e0e6d1' }))))));
|
|
30439
30456
|
}
|
|
30440
30457
|
static get style() { return RoadProgressTrackerStyle0; }
|
|
30441
30458
|
static get cmpMeta() { return {
|
|
@@ -30467,7 +30484,7 @@ class ProgressTrackerItem {
|
|
|
30467
30484
|
registerInstance(this, hostRef);
|
|
30468
30485
|
}
|
|
30469
30486
|
render() {
|
|
30470
|
-
return (hAsync(Host, { key: '
|
|
30487
|
+
return (hAsync(Host, { key: 'ad50a5a48f22062d91b353cdc827b0bfd5c0aec2' }, hAsync("slot", { key: '06013bfcc1ae31542a228fc341905dd47e67bbce' })));
|
|
30471
30488
|
}
|
|
30472
30489
|
static get style() { return RoadProgressTrackerItemStyle0; }
|
|
30473
30490
|
static get cmpMeta() { return {
|
|
@@ -30560,7 +30577,7 @@ class Radio {
|
|
|
30560
30577
|
const inverseClass = this.inverse && 'form-radio-inverse';
|
|
30561
30578
|
const isInvalidClass = this.error ? 'is-invalid' : '';
|
|
30562
30579
|
const inlineClass = this.inline ? 'form-radio-inline' : '';
|
|
30563
|
-
return (hAsync(Host, { key: '
|
|
30580
|
+
return (hAsync(Host, { key: '3153c0da131395b6b1a32e3e6612c63dc1073d0f', class: `form-radio ${inlineClass}` }, hAsync("input", { key: 'e73a45b85d90b9704839cd6937ed74110f6eb6e0', class: `form-radio-input ${isInvalidClass}`, type: "radio", id: this.radioId, name: this.name, required: this.required, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : null, checked: this.checked, "aria-checked": `${this.checked}`, "aria-labelledby": labelId, value: this.value, onFocus: this.onFocus, onBlur: this.onBlur }), hAsync("label", { key: '83a00bb8c1d319bb4118c0638ed15ebaf848056a', class: `form-radio-label ${inverseClass}`, id: labelId, htmlFor: this.radioId }, this.label, " ", hAsync("span", { key: 'd00a94092feb5b4bcf7e9c7ec0c5bfe72018d793', class: "form-radio-label-span" }, this.secondaryLabel))));
|
|
30564
30581
|
}
|
|
30565
30582
|
get el() { return getElement(this); }
|
|
30566
30583
|
static get style() { return RoadRadioStyle0; }
|
|
@@ -30654,7 +30671,7 @@ class RadioGroup {
|
|
|
30654
30671
|
render() {
|
|
30655
30672
|
const labelId = `${this.radioGroupId}-label`;
|
|
30656
30673
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
30657
|
-
return (hAsync(Host, { key: '
|
|
30674
|
+
return (hAsync(Host, { key: 'bd4d94c95c08aef18d12a279fb9678d1bf3fa008', role: "radiogroup", class: `form-group ${isInvalidClass}`, "aria-label": this.ariaLabel, onClick: this.onClick }, this.label && hAsync("p", { key: '30388fd2a86be9f0dd3d975a6ab549970eb8867f', class: "text-content", id: labelId }, this.label, " ", this.asterisk && hAsync("span", { key: '9b632bb00c8191b375ac0a43dcceb67af0d74597', class: "asterisk" }, "*")), hAsync("slot", { key: 'eb69969fd91411bb34b96d85450f017c15afe6c1' }), this.error && this.error !== '' && hAsync("p", { key: 'a9dd413f7c2674317eeb7b8258ae3be9d6c09e6b', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: '03341129fd0aa6bdb3bf5b811f0f1c12ed46fe05', class: "helper" }, this.helper)));
|
|
30658
30675
|
}
|
|
30659
30676
|
get el() { return getElement(this); }
|
|
30660
30677
|
static get watchers() { return {
|
|
@@ -30784,14 +30801,14 @@ class Range {
|
|
|
30784
30801
|
render() {
|
|
30785
30802
|
const value = this.getValue();
|
|
30786
30803
|
const datalist = this.showLabels !== undefined ? `tickmarks` : "";
|
|
30787
|
-
return (hAsync(Host, { key: '
|
|
30804
|
+
return (hAsync(Host, { key: '8fd94a409f0e5e537576ce870b77294a1a3dd871', tabindex: "0", class: { disabled: this.disabled } }, hAsync("div", { key: 'f501f98ca087c5ad0411f8477b04c7b595b6e15c', class: "form-group d-flex align-items-end" }, this.showTick && (hAsync("road-icon", { key: '959a1a587bb1a2d56dbdb47b7cb98ea590170261', icon: navigationAddLessSolid, class: "mr-8", size: "sm" })), hAsync("div", { key: '6aca50db080bebbe0e78d8c4bb86ec04552d9af9', class: "form-range", style: {
|
|
30788
30805
|
"--min": this.min,
|
|
30789
30806
|
"--max": this.max,
|
|
30790
30807
|
"--value": value,
|
|
30791
30808
|
"--background-color": this.disabled
|
|
30792
30809
|
? "var(--road-surface-disabled)"
|
|
30793
30810
|
: "initial",
|
|
30794
|
-
} }, this.showValue && hAsync("output", { key: '
|
|
30811
|
+
} }, this.showValue && hAsync("output", { key: '8e3511fc6d3f5ce44a0da8b737677ee8832b67cf' }), this.showLabels && hAsync("slot", { key: '2ed8c2a46779938262227ec46edd223dc438d69c', name: "datalist" }), hAsync("input", { key: 'ef317d144c64dc881ea3f49dc7f4b251aaabb578', type: "range", class: "form-range-input", id: this.rangeId, min: this.min, max: this.max, value: value, onInput: this.onInput, list: datalist, "aria-label": "Valeur", tabindex: "0", disabled: this.disabled }), hAsync("label", { key: 'fbc87a0dcefd8ce92d0f6548fbc4bab1bcc8cbc4', class: "form-range-label" }, "Valeur"), hAsync("div", { key: 'f329d5b20f1f851e34507b9dc5a5cdb5d01dd54c', class: "form-range-progress" })), this.showTick && (hAsync("road-icon", { key: 'ba9c133f7e0c54bdd38489b62b5dd54bcbe11525', icon: navigationAddMoreSolid, class: "ml-8", size: "sm" })))));
|
|
30795
30812
|
}
|
|
30796
30813
|
get el() { return getElement(this); }
|
|
30797
30814
|
static get watchers() { return {
|
|
@@ -30860,7 +30877,7 @@ class Rating {
|
|
|
30860
30877
|
const sizeRatingStarsClass = this.size !== undefined ? `rating-stars rating-stars--${this.size}` : 'rating-stars';
|
|
30861
30878
|
const sizeRatingNumberClass = this.size !== undefined ? `rating-number rating-number--${this.size}` : 'rating-number';
|
|
30862
30879
|
const readOnly = this.readonly == true ? `readonly` : '';
|
|
30863
|
-
return (hAsync(Host, { key: '
|
|
30880
|
+
return (hAsync(Host, { key: 'd0916d0972fa54522b71bfd4698416e7d1ce9919' }, hAsync("div", { key: 'abdd431621719c0e5708441194042715c2959419', class: `${sizeRatingStarsClass}` }, [...Array(rate)].map(() => hAsync("road-icon", { icon: star, size: "sm", color: "warning" })), [...Array(rateDecimale)].map(() => hAsync("road-icon", { icon: starHalfColor, size: "sm", class: "rating-star" })), [...Array(5 - rate - rateDecimale)].map(() => hAsync("road-icon", { icon: star, size: "sm", class: "rating-star" }))), this.readonly == false && this.showreviews && hAsync("a", { key: '51f8155d51c77360e272c820949959d8117b0509', class: `${sizeRatingNumberClass}`, href: this.url }, "(", this.reviews, this.reviewsText && ` ${this.reviewsText}`, ")"), this.readonly == true && this.showreviews && hAsync("road-label", { key: '33e67df1597b534f47e6a4785744be4d4e79c920', class: `${sizeRatingNumberClass} ${readOnly}` }, "(", this.reviews, this.reviewsText && ` ${this.reviewsText}`, ")")));
|
|
30864
30881
|
}
|
|
30865
30882
|
static get style() { return RoadRatingStyle0; }
|
|
30866
30883
|
static get cmpMeta() { return {
|
|
@@ -30979,7 +30996,7 @@ class RoadAreaCode {
|
|
|
30979
30996
|
const labelId = this.selectId + '-label';
|
|
30980
30997
|
const valueId = this.selectId + '-value';
|
|
30981
30998
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
30982
|
-
return (hAsync(Host, { key: '
|
|
30999
|
+
return (hAsync(Host, { key: '5284737f6b5095e033ea92a070f097c5f484228c', class: this.sizes && `select-${this.sizes}` }, hAsync("select", { key: '4dc67cb4f98cedadf7e9e37ac9ec21e7626e549e', class: `form-select-area has-value ${isInvalidClass}`, id: this.selectId, "aria-disabled": this.disabled ? 'true' : null, autoFocus: this.autofocus, disabled: this.disabled, name: this.name, required: this.required, size: this.size, onChange: this.onChange, onFocus: this.onFocus, onBlur: this.onBlur }, this.options && this.options.map(option => (hAsync("option", { value: option.value, selected: option.selected }, option.label)))), hAsync("label", { key: '91861b51dc10637ecf2a224209bd0b189fa50430', class: "form-select-area-label", id: labelId, htmlFor: this.selectId }, this.label), hAsync("label", { key: '426fa27d96b289f7197e533fc350e0fcfe6e6522', class: "form-select-area-value", id: valueId, htmlFor: this.selectId }, "+", this.selectedValue), this.error && this.error !== '' && hAsync("p", { key: 'c3d0eda1463b66ce02d6ae126454b27696283fbe', class: "invalid-feedback" }, this.error)));
|
|
30983
31000
|
}
|
|
30984
31001
|
static get watchers() { return {
|
|
30985
31002
|
"value": ["valueChanged"]
|
|
@@ -32404,7 +32421,7 @@ class RoadPhoneNumberInput {
|
|
|
32404
32421
|
const valueId = selectId + '-value';
|
|
32405
32422
|
const isInvalidClass = this.errorMessage.length ? 'is-invalid' : '';
|
|
32406
32423
|
const isErrorClass = this.errorMessage.length ? 'is-error' : '';
|
|
32407
|
-
return (hAsync(Host, { key: '
|
|
32424
|
+
return (hAsync(Host, { key: 'eda1808cf7138f507656e3b3a9fa367fca5d598a' }, hAsync("road-input-group", { key: '2c110dd86bd69aa2619fd54697992dfa54cafe7f' }, hAsync("div", { key: 'cca235435d4edefaf271e75df90236a327805a98', class: `road-phone-input-select ${isErrorClass}`, slot: "prepend" }, hAsync("select", { key: 'f734b4ac6b7bb88ae209689fdf85ce8d3d631302', id: 'phone-number-input', class: `form-select-area has-value ${isInvalidClass}`, "aria-disabled": this.disabled ? 'true' : null, disabled: this.disabled, onChange: (event) => this.handleSelect(event), "aria-label": this.codeLabel, tabIndex: this.disabled ? -1 : 0 }, this.countryOptions && this.countryOptions.map(option => (hAsync("option", { value: option.value, disabled: option.disabled, selected: option.selected }, option.label)))), hAsync("label", { key: '89255560eed68abaf4d2125e62e96695cec49fcf', class: "form-select-area-label", id: labelId, htmlFor: selectId }, this.codeLabel), hAsync("label", { key: '402c5307460ffdbd82281ccce5174687743c01ed', class: "form-select-area-value", id: valueId, htmlFor: selectId }, "+", this.selectedCountryCode)), hAsync("road-input", { key: '4d151be9354c9225bafc8cc05b6ebfcfc075e92c', type: "tel", id: "phone-number", sizes: "xl", label: this.phoneLabel, value: this.phoneValue, onRoadChange: (event) => this.handleInput(event), required: this.required, error: this.errorMessage, onKeyDown: (event) => this.handleKeyDown(event), tabIndex: 0 }))));
|
|
32408
32425
|
}
|
|
32409
32426
|
get el() { return getElement(this); }
|
|
32410
32427
|
static get watchers() { return {
|
|
@@ -32447,7 +32464,7 @@ class Row {
|
|
|
32447
32464
|
registerInstance(this, hostRef);
|
|
32448
32465
|
}
|
|
32449
32466
|
render() {
|
|
32450
|
-
return (hAsync(Host, { key: '
|
|
32467
|
+
return (hAsync(Host, { key: 'cc1ccb0d6235263b21dadefb893c7c6f9b763e1c' }, hAsync("slot", { key: '33fd4f892b78f389200380580fc4e1ac1e4d429e' })));
|
|
32451
32468
|
}
|
|
32452
32469
|
static get style() { return RoadRowStyle0; }
|
|
32453
32470
|
static get cmpMeta() { return {
|
|
@@ -32519,10 +32536,10 @@ class SegmentedButton {
|
|
|
32519
32536
|
render() {
|
|
32520
32537
|
const { tabIndex, selected, tab } = this;
|
|
32521
32538
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
32522
|
-
return (hAsync(Host, { key: '
|
|
32539
|
+
return (hAsync(Host, { key: '75c73710cd486cfe9ecc5ac025d1ef413c2463a9', onClick: this.onClick, onKeyup: this.onKeyUp, role: "tab", tabindex: tabIndex, "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
32523
32540
|
'tab-selected': selected,
|
|
32524
32541
|
[`${sizeClass}`]: true,
|
|
32525
|
-
} }, hAsync("span", { key: '
|
|
32542
|
+
} }, hAsync("span", { key: '938f5637c68a5cb7a7bc6ee2acaf35587f3643e3', tabIndex: -1, class: "button-native", part: "native", "aria-hidden": "true" }, hAsync("slot", { key: '62b81b701cf7cf4ce757e6f8d52e3729a985c4e5' }))));
|
|
32526
32543
|
}
|
|
32527
32544
|
get el() { return getElement(this); }
|
|
32528
32545
|
static get style() { return RoadSegmentedButtonStyle0; }
|
|
@@ -32643,7 +32660,7 @@ class Select {
|
|
|
32643
32660
|
const labelId = this.selectId + '-label';
|
|
32644
32661
|
const hasValueClass = this.value && this.value !== '' ? 'has-value' : '';
|
|
32645
32662
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
32646
|
-
return (hAsync(Host, { key: '
|
|
32663
|
+
return (hAsync(Host, { key: 'da3422623531e89342177a5d20bb510a59958f89', class: this.sizes && `select-${this.sizes}` }, hAsync("select", { key: 'bb6d5b2c7aa0f6d47138e5484a63327ff79ddc13', class: `form-select ${hasValueClass} ${isInvalidClass}`, id: this.selectId, "aria-disabled": this.disabled ? 'true' : null, autoFocus: this.autofocus, disabled: this.disabled, name: this.name, required: this.required, size: this.size, onChange: this.onChange, onFocus: this.onFocus, onBlur: this.onBlur }, hAsync("option", { key: 'ac8dce2f36174aef8c8032df94cb8f7697af23d3', selected: !this.value, disabled: true, hidden: true, style: { display: 'none' }, value: "" }), this.options && this.options.map(option => (hAsync("option", { value: option.value, selected: this.value !== null && option.value == this.value }, option.label)))), hAsync("label", { key: '8168c891572f16aef34e042890655f3729b03c9d', class: "form-select-label", id: labelId, htmlFor: this.selectId }, this.label), this.error && this.error !== '' && hAsync("p", { key: 'ccd6055b8edc033654d1c40c1a7b3add511655c6', class: "invalid-feedback" }, this.error)));
|
|
32647
32664
|
}
|
|
32648
32665
|
static get watchers() { return {
|
|
32649
32666
|
"value": ["valueChanged"]
|
|
@@ -34564,8 +34581,8 @@ class SelectFilter {
|
|
|
34564
34581
|
const options = this.filteredOptions;
|
|
34565
34582
|
const isActive = this.isActive ? 'true' : 'false';
|
|
34566
34583
|
const notActive = this.isActive ? '' : 'not-active';
|
|
34567
|
-
return (hAsync(Host, { key: '
|
|
34568
|
-
hAsync("ul", { key: '
|
|
34584
|
+
return (hAsync(Host, { key: '754363e1da719022e5d4e2a9bed9e45a307605fb', "is-active": isActive }, hAsync("slot", { key: '6ed491805215e92124fb0de84b8c4edea15a1bab' }), this.isOpen &&
|
|
34585
|
+
hAsync("ul", { key: 'e78ba5806ffed4ceb585b93dac5aa5eb0a1992c7', class: `${notActive} select-filter-list`, role: "listbox", onMouseLeave: this.handleMouseLeave }, options.map((option, idx) => (hAsync("li", { class: `select-filter-item ${this.activeIndex === idx ? 'active' : ''}`, role: "option", "aria-selected": this.activeIndex === idx ? 'true' : 'false', onClick: () => this.handleOptionClick(option.item.value, option.item.label.replace(/(<([^>]+)>)/gi, "")), onMouseOver: () => this.handleOptionMouseOver(idx), innerHTML: option.item.label, tabindex: this.activeIndex === idx ? 0 : -1 }))))));
|
|
34569
34586
|
}
|
|
34570
34587
|
get el() { return getElement(this); }
|
|
34571
34588
|
static get style() { return RoadSelectFilterStyle0; }
|
|
@@ -34595,7 +34612,7 @@ class Skeleton {
|
|
|
34595
34612
|
registerInstance(this, hostRef);
|
|
34596
34613
|
}
|
|
34597
34614
|
render() {
|
|
34598
|
-
return (hAsync("span", { key: '
|
|
34615
|
+
return (hAsync("span", { key: 'aa9286d647036cc908db034b7abae677ac5db4c5' }, "\u00A0"));
|
|
34599
34616
|
}
|
|
34600
34617
|
static get style() { return RoadSkeletonStyle0; }
|
|
34601
34618
|
static get cmpMeta() { return {
|
|
@@ -34626,7 +34643,7 @@ class Spinner {
|
|
|
34626
34643
|
render() {
|
|
34627
34644
|
const sizeClass = this.size !== undefined ? `spinner spinner--${this.size}` : 'spinner';
|
|
34628
34645
|
const colorClass = this.size !== undefined ? `spinner-circle spinner-circle--${this.color}` : 'spinner-circle';
|
|
34629
|
-
return (hAsync("svg", { key: '
|
|
34646
|
+
return (hAsync("svg", { key: '79f895b55bf34f5b4591f0104f067b1bc29b5840', class: `${sizeClass}`, viewBox: "25 25 50 50" }, hAsync("circle", { key: '333985c957dd76b7694d5717eb64f037018c1613', class: `${colorClass}`, cx: "50", cy: "50", r: "20" })));
|
|
34630
34647
|
}
|
|
34631
34648
|
static get style() { return RoadSpinnerStyle0; }
|
|
34632
34649
|
static get cmpMeta() { return {
|
|
@@ -34676,7 +34693,7 @@ class Stepper {
|
|
|
34676
34693
|
const urlStep1 = this.urlStep1 !== undefined ? `${this.urlStep1}` : '#';
|
|
34677
34694
|
const urlStep2 = this.urlStep2 !== undefined ? `${this.urlStep2}` : '#';
|
|
34678
34695
|
const urlStep3 = this.urlStep3 !== undefined ? `${this.urlStep3}` : '#';
|
|
34679
|
-
return (hAsync(Host, { key: '
|
|
34696
|
+
return (hAsync(Host, { key: '6ef1e7653ba0d4956f96cde42abf1f3305d05b44' }, hAsync("nav", { key: '31b9f0460989cf3a2d2c4f763883c4d33f37acb5' }, hAsync("ul", { key: '1acebf1b93845cb95a283485c2b28a8db1d6fe7e', class: `${colorClass}` }, hAsync("li", { key: '379d152f14c3ca5d095097fbdc44d13bdeea24fd', class: `${stateClass}` }, hAsync("a", { key: '4e4453bc9b113f621e997176c143f2966dd4e5b4', class: "progress-indicator-horizontal-link", href: `${urlStep1}` }, hAsync("span", { key: '068326c44af5b05e0d6f5356f8eb9d4f33b02036', class: "progress-indicator-horizontal-icon" }, hAsync("slot", { key: 'd06caa135df2ed284388de472c9fba91837f98e8', name: "progress-indicator-horizontal-icon" })), hAsync("span", { key: 'd332efd3e9d13571ceb8c7d0bcc643843f4c492c', class: "progress-indicator-horizontal-title" }, hAsync("slot", { key: '2744d3572915682f5a1c99c13589052b5e297796', name: "progress-indicator-horizontal-title" })))), hAsync("li", { key: '2852fd1eb6c83a5bd73bd69fae31b36dfe81d202', class: `${stateSecondStepClass}` }, hAsync("a", { key: 'dada3e2de184745f91dfa6e8271e82a5ace2fb6b', class: "progress-indicator-horizontal-link", href: `${urlStep2}` }, hAsync("span", { key: '49e839a7ad0379e71a650b0afd60a20909579244', class: "progress-indicator-horizontal-icon" }, hAsync("slot", { key: '98d4b45ee6d0fae6dbfa282f9c906814ad748da4', name: "progress-indicator-horizontal-icon2" })), hAsync("span", { key: '8c5b89b084630836e70c6b5222519163e79a3b40', class: "progress-indicator-horizontal-title" }, hAsync("slot", { key: '2c180eb35979d3d07be8470cc655935d2cb89d22', name: "progress-indicator-horizontal-title2" })))), this.numberStep == 3 && hAsync("li", { key: '12d8d3e274906772b5cf8b283ee269283356ab3e', class: `${stateThirdStepClass}` }, hAsync("a", { key: '21440094f64c62e5a91491874aa8b946dd2ec687', class: "progress-indicator-horizontal-link", href: `${urlStep3}` }, hAsync("span", { key: '7dc7412d5baca497635e14d131650d4cc3c1e6dc', class: "progress-indicator-horizontal-icon" }, hAsync("slot", { key: '838fc759296b69d700d4b56f2c0a69ba66aa5d11', name: "progress-indicator-horizontal-icon3" })), hAsync("span", { key: '69b738ab252466f3485c1aab5a3a0835a38b4013', class: "progress-indicator-horizontal-title" }, hAsync("slot", { key: 'a5cb86ba68da3237b5cb83004ac4c1d295f33689', name: "progress-indicator-horizontal-title3" }))))))));
|
|
34680
34697
|
}
|
|
34681
34698
|
static get style() { return RoadProgressIndicatorHorizontalStyle0; }
|
|
34682
34699
|
static get cmpMeta() { return {
|
|
@@ -34778,11 +34795,11 @@ class Switch {
|
|
|
34778
34795
|
}
|
|
34779
34796
|
render() {
|
|
34780
34797
|
const labelId = this.switchId + '-label';
|
|
34781
|
-
const textLabel = hAsync("label", { key: '
|
|
34798
|
+
const textLabel = hAsync("label", { key: '9b8763418ebd696deeaf0f96f0ef3df50233b979', class: "form-switch-label", id: labelId, htmlFor: this.switchId }, this.label);
|
|
34782
34799
|
const colorClass = this.color !== undefined ? 'form-switch-' + this.color : '';
|
|
34783
34800
|
const isSpacedClass = this.isSpaced && 'form-switch-spaced';
|
|
34784
34801
|
const rightSwitchClass = this.hasLeftLabel ? 'form-switch-right' : '';
|
|
34785
|
-
return (hAsync(Host, { key: '
|
|
34802
|
+
return (hAsync(Host, { key: '1eb289fc4d05d8ca3b2d51044167681119c01443' }, hAsync("input", { key: '2d91cd17ab57ca1ba4bc0b9d3270d4416c3999ec', class: "form-switch-input", type: "checkbox", id: this.switchId, name: this.name, checked: this.checked, disabled: this.disabled, value: this.value, "aria-checked": `${this.checked}`, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur }), hAsync("label", { key: 'ef6bce098cdd21249d38b68e0b811f8e6126c402', class: `form-switch-label ${isSpacedClass} ${colorClass}`, htmlFor: this.switchId }, this.hasLeftLabel && textLabel, hAsync("div", { key: '694baf8b86086363e5f5429af152a6f488e660cc', class: `form-switch-lever ${rightSwitchClass}`, "data-off": this.off, "data-on": this.on }), this.hasLeftLabel ? '' : textLabel)));
|
|
34786
34803
|
}
|
|
34787
34804
|
static get watchers() { return {
|
|
34788
34805
|
"checked": ["checkedChanged"]
|
|
@@ -34837,9 +34854,9 @@ class Tab {
|
|
|
34837
34854
|
}
|
|
34838
34855
|
render() {
|
|
34839
34856
|
const { tab, active } = this;
|
|
34840
|
-
return (hAsync(Host, { key: '
|
|
34857
|
+
return (hAsync(Host, { key: '6187e82afbc19467bacecff9dab022208d82d83e', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
34841
34858
|
'tab-hidden': !active,
|
|
34842
|
-
} }, hAsync("slot", { key: '
|
|
34859
|
+
} }, hAsync("slot", { key: 'c3899fd5fd831d2904c77263f5b6ef795d594e9b' })));
|
|
34843
34860
|
}
|
|
34844
34861
|
get el() { return getElement(this); }
|
|
34845
34862
|
static get style() { return RoadTabStyle0; }
|
|
@@ -34899,11 +34916,11 @@ class TabBar {
|
|
|
34899
34916
|
}
|
|
34900
34917
|
render() {
|
|
34901
34918
|
const { expand, center, secondary } = this;
|
|
34902
|
-
return (hAsync(Host, { key: '
|
|
34919
|
+
return (hAsync(Host, { key: '476e362d19cd6d3eac7379cb28a0579f8d165128', role: "tablist", class: {
|
|
34903
34920
|
'tab-expand': expand,
|
|
34904
34921
|
'tab-center': center,
|
|
34905
34922
|
'tab-secondary': secondary,
|
|
34906
|
-
} }, hAsync("slot", { key: '
|
|
34923
|
+
} }, hAsync("slot", { key: '089d0ced1753e49bbf40a2bed3b6de3ce70cde7a' })));
|
|
34907
34924
|
}
|
|
34908
34925
|
get el() { return getElement(this); }
|
|
34909
34926
|
static get watchers() { return {
|
|
@@ -35003,7 +35020,7 @@ class TabButton {
|
|
|
35003
35020
|
rel,
|
|
35004
35021
|
target,
|
|
35005
35022
|
};
|
|
35006
|
-
return (hAsync(Host, { key: '
|
|
35023
|
+
return (hAsync(Host, { key: '531265b9c411317f80d42792817d2000195695a8', onClick: (ev) => !disabled && this.onClick(ev), onKeyup: (ev) => !disabled && this.onKeyUp(ev), role: "tab", tabindex: disabled ? -1 : tabIndex, "aria-selected": selected ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
35007
35024
|
'tab-selected': selected,
|
|
35008
35025
|
'tab-has-label': hasLabel,
|
|
35009
35026
|
'tab-has-icon': hasIcon,
|
|
@@ -35011,7 +35028,7 @@ class TabButton {
|
|
|
35011
35028
|
'tab-has-icon-only': hasIcon && !hasLabel,
|
|
35012
35029
|
[`tab-layout-${layout}`]: true,
|
|
35013
35030
|
'tab-disabled': disabled, // Classe CSS pour les styles désactivés
|
|
35014
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
35031
|
+
} }, hAsync("a", Object.assign({ key: '864576c07dfdafdce416c2ad28173e7875d403b1' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), hAsync("span", { key: '95cf566321f3c956b8682c1ae0a20674966d1b8f', class: "button-inner" }, hAsync("slot", { key: 'a1e2bb5eafc6d9f0b9c166166925d42e52382825' })))));
|
|
35015
35032
|
}
|
|
35016
35033
|
get el() { return getElement(this); }
|
|
35017
35034
|
static get style() { return RoadTabButtonStyle0; }
|
|
@@ -35045,7 +35062,7 @@ class Table {
|
|
|
35045
35062
|
registerInstance(this, hostRef);
|
|
35046
35063
|
}
|
|
35047
35064
|
render() {
|
|
35048
|
-
return (hAsync("slot", { key: '
|
|
35065
|
+
return (hAsync("slot", { key: 'b76d60e60c39e889690419d020151ac7a0b68f08' }));
|
|
35049
35066
|
}
|
|
35050
35067
|
static get style() { return RoadTableStyle0; }
|
|
35051
35068
|
static get cmpMeta() { return {
|
|
@@ -35153,7 +35170,7 @@ class Tabs$1 {
|
|
|
35153
35170
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
35154
35171
|
}
|
|
35155
35172
|
render() {
|
|
35156
|
-
return (hAsync(Host, { key: '
|
|
35173
|
+
return (hAsync(Host, { key: 'ee63f3001e735cc0345f081742b98cc7dda58379', onRoadSegmentedButtonClick: this.onTabClicked }, hAsync("slot", { key: 'ead65e59a9ce47b7ed0034b5e807f41a3f3aae58', name: "top" }), hAsync("slot", { key: '87177efc28c625a4d3e5c893a17ab2ed3be252ef' })));
|
|
35157
35174
|
}
|
|
35158
35175
|
get el() { return getElement(this); }
|
|
35159
35176
|
static get style() { return RoadSegmentedButtonsStyle0; }
|
|
@@ -35289,7 +35306,7 @@ class Tabs {
|
|
|
35289
35306
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
35290
35307
|
}
|
|
35291
35308
|
render() {
|
|
35292
|
-
return (hAsync(Host, { key: '
|
|
35309
|
+
return (hAsync(Host, { key: '9af7cc85b48f7334fcffd1f73441ea70c98d5dd6', onRoadTabButtonClick: this.onTabClicked }, hAsync("slot", { key: 'd2177dc6d9294c0746b28681c1a8ddf4b52e670a', name: "top" }), hAsync("div", { key: '5a6133642fb46719a0babdda0df26f98e7b51c73', class: "tabs-inner" }, hAsync("slot", { key: 'db5c5137cb9bd1fdb0f587d60fe67fdb3bf40a22' }))));
|
|
35293
35310
|
}
|
|
35294
35311
|
get el() { return getElement(this); }
|
|
35295
35312
|
static get style() { return RoadTabsStyle0; }
|
|
@@ -35337,7 +35354,7 @@ class Tag {
|
|
|
35337
35354
|
}
|
|
35338
35355
|
render() {
|
|
35339
35356
|
const contrastClass = this.contrast ? `tag-${this.color} tag-${this.color}-contrast` : `tag-${this.color}`;
|
|
35340
|
-
return (hAsync(Host, { key: '
|
|
35357
|
+
return (hAsync(Host, { key: 'fada54428b148c0572768c9f7f347b7666528f4e', class: `${contrastClass}` }, hAsync("slot", { key: 'e5c53f9a417c064ac4c257a6e5a74bc593c7d5e8' })));
|
|
35341
35358
|
}
|
|
35342
35359
|
static get style() { return RoadTagStyle0; }
|
|
35343
35360
|
static get cmpMeta() { return {
|
|
@@ -35369,7 +35386,7 @@ class Text {
|
|
|
35369
35386
|
}
|
|
35370
35387
|
render() {
|
|
35371
35388
|
const colorClass = this.color !== undefined ? `text-${this.color}` : '';
|
|
35372
|
-
return (hAsync(Host, { key: '
|
|
35389
|
+
return (hAsync(Host, { key: '41de3c220883dbe616d365f940168c46ca079813', class: `${colorClass}` }, hAsync("slot", { key: '4840d935993f294633106ebf2e40ad6ab037b2e3' })));
|
|
35373
35390
|
}
|
|
35374
35391
|
static get style() { return RoadTextStyle0; }
|
|
35375
35392
|
static get cmpMeta() { return {
|
|
@@ -35479,7 +35496,7 @@ class Textarea {
|
|
|
35479
35496
|
const hasValueClass = this.value !== '' ? 'has-value' : '';
|
|
35480
35497
|
const noResizeClass = this.resize == false ? 'no-resize' : '';
|
|
35481
35498
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
35482
|
-
return (hAsync(Host, { key: '
|
|
35499
|
+
return (hAsync(Host, { key: '6fa4a7131094822da9e3251a06a4f16b54b96968', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}` }, hAsync("textarea", { key: 'a0db598ce5aed5ded46b2f706e82097fbc90d3c7', class: `form-control textarea-control ${hasValueClass} ${noResizeClass} ${isInvalidClass}`, id: this.textareaId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, maxLength: this.maxlength, minLength: this.minlength, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, value: value, spellcheck: this.spellcheck, cols: this.cols, rows: this.rows, wrap: this.wrap, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus }), hAsync("label", { key: '63b3e8c95d5569a1ad9b6c7181559af217840ef2', class: "form-label", id: labelId, htmlFor: this.textareaId }, this.label), this.error && this.error !== '' && hAsync("p", { key: '4a49ff30de8d7aedecd3e5cc774ddb577201a7e5', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: '86f47b9aa260fde69a8e4d17ce80d64b37d373ae', class: "helper" }, this.helper)));
|
|
35483
35500
|
}
|
|
35484
35501
|
static get watchers() { return {
|
|
35485
35502
|
"value": ["valueChanged"]
|
|
@@ -35610,7 +35627,7 @@ class Toast {
|
|
|
35610
35627
|
if (this.color == 'danger') {
|
|
35611
35628
|
this.timeout = 0;
|
|
35612
35629
|
}
|
|
35613
|
-
return (hAsync(Host, { key: '
|
|
35630
|
+
return (hAsync(Host, { key: 'df8ad5704239c2193697203241e0676657fa5522', class: `${toastIsOpenClass}`, role: "alert" }, hAsync("div", { key: 'b9de22f810cc6cb58e0b28a066be791acf319208', class: `toast toast-${this.color}` }, hAsync("road-icon", { key: '9d332bcc62cef6b038bd0718e0fe29e0bb5e1c5e', class: "toast-icon", icon: icon, "aria-hidden": "true" }), hAsync("p", { key: '103180fe8d9f9e89b677c0267e779c899c013b74', class: "toast-label" }, this.label), hAsync("button", { key: '152b63bc4ff795a0e1144e528c8fa8a177bbb9f7', type: "button", class: "toast-close", "aria-label": "Close", onClick: this.onClick }, hAsync("road-icon", { key: '612cdf2ec677ef1fe22a0e1054728baae7d740c8', icon: navigationClose, size: "md" })), hAsync("slot", { key: 'e2916bfb8cf8e0ea828ff5cafc3fa400401b6ea3', name: "progress" }))));
|
|
35614
35631
|
}
|
|
35615
35632
|
static get watchers() { return {
|
|
35616
35633
|
"isOpen": ["isOpenChanged"]
|
|
@@ -35650,7 +35667,7 @@ class Toolbar {
|
|
|
35650
35667
|
}
|
|
35651
35668
|
render() {
|
|
35652
35669
|
const colorClass = this.color !== undefined ? `toolbar-${this.color}` : '';
|
|
35653
|
-
return (hAsync(Host, { key: '
|
|
35670
|
+
return (hAsync(Host, { key: 'd0360b97481c8858cc8cba23fc32b031c489b2b3', class: colorClass }, hAsync("div", { key: 'b58fea5a60245841e631bc32b166377b95f8d798', class: "toolbar-container" }, hAsync("slot", { key: '0d09173bafc93a1f3a695bdaf58ad7572500987f', name: "start" }), hAsync("slot", { key: '401575a2e0fb3bdd8143e5b57e3d7aab202a0dbb', name: "primary" }), hAsync("div", { key: 'cb359162e625cf074ec723acdfeaf028930e9fe2', class: "toolbar-content" }, hAsync("slot", { key: '2ea5008e7b77fdbe4d21ece9b89cbdeb2b253c14' })), hAsync("slot", { key: 'e1edbfba20daa66f297614bbba2b3de0d6e9f033', name: "secondary" }), hAsync("slot", { key: 'db5717ae0a9c7ecdea481a2d092820539a1311a6', name: "end" }))));
|
|
35654
35671
|
}
|
|
35655
35672
|
static get style() { return RoadToolbarStyle0; }
|
|
35656
35673
|
static get cmpMeta() { return {
|
|
@@ -35676,7 +35693,7 @@ class ToolbarAppName {
|
|
|
35676
35693
|
registerInstance(this, hostRef);
|
|
35677
35694
|
}
|
|
35678
35695
|
render() {
|
|
35679
|
-
return (hAsync("div", { key: '
|
|
35696
|
+
return (hAsync("div", { key: '96772b1bc4538e279b0e7d907c95beee244591e3', class: "toolbar-title-page" }, hAsync("slot", { key: '25494eb56d924d9e9b5bb7a66b9d7a8eab44c1f7' })));
|
|
35680
35697
|
}
|
|
35681
35698
|
static get style() { return RoadToolbarTitlePageStyle0; }
|
|
35682
35699
|
static get cmpMeta() { return {
|
|
@@ -35700,7 +35717,7 @@ class ToolbarTitle {
|
|
|
35700
35717
|
registerInstance(this, hostRef);
|
|
35701
35718
|
}
|
|
35702
35719
|
render() {
|
|
35703
|
-
return (hAsync("div", { key: '
|
|
35720
|
+
return (hAsync("div", { key: '9364d8a1ec8f96784727b570787b96765df6d03b', class: "toolbar-title" }, hAsync("slot", { key: '17c2119c82d33ff0eec3bc289edec8911449e8d9' })));
|
|
35704
35721
|
}
|
|
35705
35722
|
static get style() { return RoadToolbarTitleStyle0; }
|
|
35706
35723
|
static get cmpMeta() { return {
|
|
@@ -35729,7 +35746,7 @@ class ToolbarV2 {
|
|
|
35729
35746
|
registerInstance(this, hostRef);
|
|
35730
35747
|
}
|
|
35731
35748
|
render() {
|
|
35732
|
-
return (hAsync(Host, { key: '
|
|
35749
|
+
return (hAsync(Host, { key: 'fca5a59b3032c6dbd3bcad253404b5dfc10f5a0e', class: "toolbar" }, hAsync("div", { key: '5224acf2dac2577621c14f2edc86db1825b1cc7e', class: "toolbar-container" }, hAsync("div", { key: '8c535cefe3b0ce76b8c7c2c0fb24bc5209edba12', class: "toolbar-container-content-left" }, hAsync("slot", { key: '598c676b7a6aac69ae78927d24bbc0ca2520672a', name: "start" }), hAsync("slot", { key: '83723ffe96e3fdfa4b993588ae05c8132ba364d9', name: "primary" })), hAsync("div", { key: '43b0f9a1a4c10f90d933f28d5c86839d0f003fe2', class: "toolbar-content" }, hAsync("slot", { key: 'ef05cf0892ecf414cca6c505d90c69382ea2a43a' })), hAsync("div", { key: 'd819524856567b0cccc95605a2b93bf1c4984836', class: "toolbar-container-content-right" }, hAsync("slot", { key: '7023266f605c06dd981e53f449e6b43dcc6e8ba4', name: "secondary" }), hAsync("slot", { key: '91595aa28cff2fde7240b0aa485cac2a7fb9dd08', name: "end" })))));
|
|
35733
35750
|
}
|
|
35734
35751
|
static get style() { return RoadToolbarV2Style0; }
|
|
35735
35752
|
static get cmpMeta() { return {
|
|
@@ -35842,12 +35859,12 @@ class Tooltip {
|
|
|
35842
35859
|
return triggers.includes(triggerType);
|
|
35843
35860
|
}
|
|
35844
35861
|
render() {
|
|
35845
|
-
return (hAsync(Host, { key: '
|
|
35862
|
+
return (hAsync(Host, { key: '5e5378bca09011fc6cc2d42c2386657a2a059f98', onMouseOver: this.onMouseOver, onMouseOut: this.onMouseOut, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur, tabindex: "0" // Makes the element focusable
|
|
35846
35863
|
,
|
|
35847
|
-
"data-tooltip-position": this.position }, hAsync("slot", { key: '
|
|
35864
|
+
"data-tooltip-position": this.position }, hAsync("slot", { key: '14feedb97350da949b465b67b73ff757e5993125', "aria-describedby": this.tooltipId }), hAsync("div", { key: '991b675659d7b666dd1440229f0daa55a6f6f9de', part: "tooltip", id: this.tooltipId, class: {
|
|
35848
35865
|
tooltip: true,
|
|
35849
35866
|
'tooltip-open': this.isOpen,
|
|
35850
|
-
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, hAsync("slot", { key: '
|
|
35867
|
+
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, hAsync("slot", { key: 'd8595d6dc063b81a775d7f1df551930223105a74', name: "tooltip-content" }))));
|
|
35851
35868
|
}
|
|
35852
35869
|
get el() { return getElement(this); }
|
|
35853
35870
|
static get style() { return RoadTooltipStyle0; }
|
|
@@ -35947,11 +35964,11 @@ class toggle {
|
|
|
35947
35964
|
}
|
|
35948
35965
|
render() {
|
|
35949
35966
|
const labelId = this.toggleId + '-label';
|
|
35950
|
-
const textLabel = hAsync("label", { key: '
|
|
35967
|
+
const textLabel = hAsync("label", { key: 'dc3a609b0330a55fc4f0a7a49afa449c11eeda50', class: "form-toggle-label", id: labelId, htmlFor: this.toggleId }, this.label);
|
|
35951
35968
|
const isSpacedClass = this.isSpaced && 'form-toggle-spaced';
|
|
35952
35969
|
const righttoggleClass = this.hasLeftLabel ? 'form-toggle-right' : '';
|
|
35953
35970
|
const disabledClass = this.disabled ? 'disabled' : '';
|
|
35954
|
-
return (hAsync(Host, { key: '
|
|
35971
|
+
return (hAsync(Host, { key: 'f76fe2fde0137de06d721bfc4c39d0afb05efda7' }, hAsync("input", { key: '6e36fab052b76e126530d985fe6466cdee577149', class: "form-toggle-input", type: "checkbox", id: this.toggleId, name: this.name, checked: this.checked, disabled: this.disabled, value: this.value, "aria-checked": `${this.checked}`, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur }), hAsync("label", { key: '1f0da686faa51b024b4ef0fe3ff83f9216d3bbeb', class: `form-toggle-label ${isSpacedClass} ${disabledClass}`, htmlFor: this.toggleId }, this.hasLeftLabel && textLabel, hAsync("div", { key: 'b98b4de91885991c9000ae2e789aa717d2f08a4c', class: `form-toggle-lever ${righttoggleClass}`, "data-off": this.off, "data-on": this.on }), this.hasLeftLabel ? '' : textLabel)));
|
|
35955
35972
|
}
|
|
35956
35973
|
static get watchers() { return {
|
|
35957
35974
|
"checked": ["checkedChanged"]
|
|
@@ -36476,7 +36493,7 @@ var NAMESPACE = (
|
|
|
36476
36493
|
);
|
|
36477
36494
|
|
|
36478
36495
|
/*
|
|
36479
|
-
Stencil Hydrate Runner v4.27.
|
|
36496
|
+
Stencil Hydrate Runner v4.27.1 | MIT Licensed | https://stenciljs.com
|
|
36480
36497
|
*/
|
|
36481
36498
|
var __defProp = Object.defineProperty;
|
|
36482
36499
|
var __export = (target, all) => {
|
|
@@ -36822,19 +36839,19 @@ var MockCustomElementRegistry = class {
|
|
|
36822
36839
|
this.__whenDefined.delete(tagName);
|
|
36823
36840
|
}
|
|
36824
36841
|
}
|
|
36825
|
-
const
|
|
36826
|
-
if (
|
|
36827
|
-
const hosts =
|
|
36842
|
+
const doc = this.win.document;
|
|
36843
|
+
if (doc != null) {
|
|
36844
|
+
const hosts = doc.querySelectorAll(tagName);
|
|
36828
36845
|
hosts.forEach((host) => {
|
|
36829
36846
|
if (upgradedElements.has(host) === false) {
|
|
36830
|
-
tempDisableCallbacks.add(
|
|
36831
|
-
const upgradedCmp = createCustomElement(this,
|
|
36847
|
+
tempDisableCallbacks.add(doc);
|
|
36848
|
+
const upgradedCmp = createCustomElement(this, doc, tagName);
|
|
36832
36849
|
for (let i = 0; i < host.childNodes.length; i++) {
|
|
36833
36850
|
const childNode = host.childNodes[i];
|
|
36834
36851
|
childNode.remove();
|
|
36835
36852
|
upgradedCmp.appendChild(childNode);
|
|
36836
36853
|
}
|
|
36837
|
-
tempDisableCallbacks.delete(
|
|
36854
|
+
tempDisableCallbacks.delete(doc);
|
|
36838
36855
|
if (proxyElements.has(host)) {
|
|
36839
36856
|
proxyElements.set(host, upgradedCmp);
|
|
36840
36857
|
}
|
|
@@ -45278,11 +45295,11 @@ function parseFragment(fragmentContext, html, options) {
|
|
|
45278
45295
|
// src/mock-doc/parse-util.ts
|
|
45279
45296
|
var docParser = /* @__PURE__ */ new WeakMap();
|
|
45280
45297
|
function parseDocumentUtil(ownerDocument, html) {
|
|
45281
|
-
const
|
|
45282
|
-
|
|
45283
|
-
|
|
45284
|
-
|
|
45285
|
-
return
|
|
45298
|
+
const doc = parse(html.trim(), getParser(ownerDocument));
|
|
45299
|
+
doc.documentElement = doc.firstElementChild;
|
|
45300
|
+
doc.head = doc.documentElement.firstElementChild;
|
|
45301
|
+
doc.body = doc.head.nextElementSibling;
|
|
45302
|
+
return doc;
|
|
45286
45303
|
}
|
|
45287
45304
|
function parseFragmentUtil(ownerDocument, html) {
|
|
45288
45305
|
if (typeof html === "string") {
|
|
@@ -45300,9 +45317,9 @@ function getParser(ownerDocument) {
|
|
|
45300
45317
|
}
|
|
45301
45318
|
const treeAdapter = {
|
|
45302
45319
|
createDocument() {
|
|
45303
|
-
const
|
|
45304
|
-
|
|
45305
|
-
return
|
|
45320
|
+
const doc = ownerDocument.createElement("#document" /* DOCUMENT_NODE */);
|
|
45321
|
+
doc["x-mode"] = "no-quirks";
|
|
45322
|
+
return doc;
|
|
45306
45323
|
},
|
|
45307
45324
|
setNodeSourceCodeLocation(node, location2) {
|
|
45308
45325
|
node.sourceCodeLocation = location2;
|
|
@@ -45340,22 +45357,22 @@ function getParser(ownerDocument) {
|
|
|
45340
45357
|
getTemplateContent(templateElement) {
|
|
45341
45358
|
return templateElement.content;
|
|
45342
45359
|
},
|
|
45343
|
-
setDocumentType(
|
|
45344
|
-
let doctypeNode =
|
|
45360
|
+
setDocumentType(doc, name, publicId, systemId) {
|
|
45361
|
+
let doctypeNode = doc.childNodes.find((n) => n.nodeType === 10 /* DOCUMENT_TYPE_NODE */);
|
|
45345
45362
|
if (doctypeNode == null) {
|
|
45346
45363
|
doctypeNode = ownerDocument.createDocumentTypeNode();
|
|
45347
|
-
|
|
45364
|
+
doc.insertBefore(doctypeNode, doc.firstChild);
|
|
45348
45365
|
}
|
|
45349
45366
|
doctypeNode.nodeValue = "!DOCTYPE";
|
|
45350
45367
|
doctypeNode["x-name"] = name;
|
|
45351
45368
|
doctypeNode["x-publicId"] = publicId;
|
|
45352
45369
|
doctypeNode["x-systemId"] = systemId;
|
|
45353
45370
|
},
|
|
45354
|
-
setDocumentMode(
|
|
45355
|
-
|
|
45371
|
+
setDocumentMode(doc, mode) {
|
|
45372
|
+
doc["x-mode"] = mode;
|
|
45356
45373
|
},
|
|
45357
|
-
getDocumentMode(
|
|
45358
|
-
return
|
|
45374
|
+
getDocumentMode(doc) {
|
|
45375
|
+
return doc["x-mode"];
|
|
45359
45376
|
},
|
|
45360
45377
|
detachNode(node) {
|
|
45361
45378
|
node.remove();
|
|
@@ -45531,9 +45548,9 @@ var jquery_default = (
|
|
|
45531
45548
|
nonce: true,
|
|
45532
45549
|
noModule: true
|
|
45533
45550
|
};
|
|
45534
|
-
function DOMEval(code, node,
|
|
45535
|
-
|
|
45536
|
-
var i2, script =
|
|
45551
|
+
function DOMEval(code, node, doc) {
|
|
45552
|
+
doc = doc || document2;
|
|
45553
|
+
var i2, script = doc.createElement("script");
|
|
45537
45554
|
script.text = code;
|
|
45538
45555
|
if (node) {
|
|
45539
45556
|
for (i2 in preservedScriptAttributes) {
|
|
@@ -45542,7 +45559,7 @@ var jquery_default = (
|
|
|
45542
45559
|
}
|
|
45543
45560
|
}
|
|
45544
45561
|
}
|
|
45545
|
-
|
|
45562
|
+
doc.head.appendChild(script).parentNode.removeChild(script);
|
|
45546
45563
|
}
|
|
45547
45564
|
const jQuery = {};
|
|
45548
45565
|
var version = "4.0.0-pre+9352011a7.dirty +selector", rhtmlSuffix = /HTML$/i, jQueryOrig = function(selector, context) {
|
|
@@ -45679,8 +45696,8 @@ var jquery_default = (
|
|
|
45679
45696
|
},
|
|
45680
45697
|
// Evaluates a script in a provided context; falls back to the global one
|
|
45681
45698
|
// if not specified.
|
|
45682
|
-
globalEval: function(code, options,
|
|
45683
|
-
DOMEval(code, { nonce: options && options.nonce },
|
|
45699
|
+
globalEval: function(code, options, doc) {
|
|
45700
|
+
DOMEval(code, { nonce: options && options.nonce }, doc);
|
|
45684
45701
|
},
|
|
45685
45702
|
each: function(obj, callback) {
|
|
45686
45703
|
var length, i2 = 0;
|
|
@@ -46169,11 +46186,11 @@ var jquery_default = (
|
|
|
46169
46186
|
});
|
|
46170
46187
|
}
|
|
46171
46188
|
function setDocument(node) {
|
|
46172
|
-
var subWindow,
|
|
46173
|
-
if (
|
|
46189
|
+
var subWindow, doc = node ? node.ownerDocument || node : document2;
|
|
46190
|
+
if (doc == document$1 || doc.nodeType !== 9) {
|
|
46174
46191
|
return;
|
|
46175
46192
|
}
|
|
46176
|
-
document$1 =
|
|
46193
|
+
document$1 = doc;
|
|
46177
46194
|
documentElement$1 = document$1.documentElement;
|
|
46178
46195
|
documentIsHTML = !jQuery.isXMLDoc(document$1);
|
|
46179
46196
|
if (isIE && document2 != document$1 && (subWindow = document$1.defaultView) && subWindow.top !== subWindow) {
|
|
@@ -50518,10 +50535,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
50518
50535
|
}
|
|
50519
50536
|
createElement(tagName) {
|
|
50520
50537
|
if (tagName === "#document" /* DOCUMENT_NODE */) {
|
|
50521
|
-
const
|
|
50522
|
-
|
|
50523
|
-
|
|
50524
|
-
return
|
|
50538
|
+
const doc = new _MockDocument(false);
|
|
50539
|
+
doc.nodeName = tagName;
|
|
50540
|
+
doc.parentNode = null;
|
|
50541
|
+
return doc;
|
|
50525
50542
|
}
|
|
50526
50543
|
return createElement(this, tagName);
|
|
50527
50544
|
}
|
|
@@ -50561,10 +50578,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
50561
50578
|
title.textContent = value;
|
|
50562
50579
|
}
|
|
50563
50580
|
};
|
|
50564
|
-
function resetDocument(
|
|
50565
|
-
if (
|
|
50566
|
-
resetEventListeners(
|
|
50567
|
-
const documentElement =
|
|
50581
|
+
function resetDocument(doc) {
|
|
50582
|
+
if (doc != null) {
|
|
50583
|
+
resetEventListeners(doc);
|
|
50584
|
+
const documentElement = doc.documentElement;
|
|
50568
50585
|
if (documentElement != null) {
|
|
50569
50586
|
resetElement(documentElement);
|
|
50570
50587
|
for (let i = 0, ii = documentElement.childNodes.length; i < ii; i++) {
|
|
@@ -50573,25 +50590,25 @@ function resetDocument(doc2) {
|
|
|
50573
50590
|
childNode.childNodes.length = 0;
|
|
50574
50591
|
}
|
|
50575
50592
|
}
|
|
50576
|
-
for (const key in
|
|
50577
|
-
if (
|
|
50578
|
-
delete
|
|
50593
|
+
for (const key in doc) {
|
|
50594
|
+
if (doc.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
|
|
50595
|
+
delete doc[key];
|
|
50579
50596
|
}
|
|
50580
50597
|
}
|
|
50581
50598
|
try {
|
|
50582
|
-
|
|
50599
|
+
doc.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
50583
50600
|
} catch (e) {
|
|
50584
50601
|
}
|
|
50585
50602
|
try {
|
|
50586
|
-
|
|
50603
|
+
doc.nodeType = 9 /* DOCUMENT_NODE */;
|
|
50587
50604
|
} catch (e) {
|
|
50588
50605
|
}
|
|
50589
50606
|
try {
|
|
50590
|
-
|
|
50607
|
+
doc.cookie = "";
|
|
50591
50608
|
} catch (e) {
|
|
50592
50609
|
}
|
|
50593
50610
|
try {
|
|
50594
|
-
|
|
50611
|
+
doc.referrer = "";
|
|
50595
50612
|
} catch (e) {
|
|
50596
50613
|
}
|
|
50597
50614
|
}
|
|
@@ -50661,7 +50678,6 @@ var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
|
50661
50678
|
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
50662
50679
|
];
|
|
50663
50680
|
var win = typeof window !== "undefined" ? window : {};
|
|
50664
|
-
var doc = win.document || { head: {} };
|
|
50665
50681
|
var H = win.HTMLElement || class {
|
|
50666
50682
|
};
|
|
50667
50683
|
var supportsShadow = BUILD.shadowDom;
|
|
@@ -50795,14 +50811,14 @@ var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
|
50795
50811
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
50796
50812
|
|
|
50797
50813
|
// src/compiler/html/canonical-link.ts
|
|
50798
|
-
var updateCanonicalLink = (
|
|
50814
|
+
var updateCanonicalLink = (doc, href) => {
|
|
50799
50815
|
var _a2;
|
|
50800
|
-
let canonicalLinkElm =
|
|
50816
|
+
let canonicalLinkElm = doc.head.querySelector('link[rel="canonical"]');
|
|
50801
50817
|
if (typeof href === "string") {
|
|
50802
50818
|
if (canonicalLinkElm == null) {
|
|
50803
|
-
canonicalLinkElm =
|
|
50819
|
+
canonicalLinkElm = doc.createElement("link");
|
|
50804
50820
|
canonicalLinkElm.setAttribute("rel", "canonical");
|
|
50805
|
-
|
|
50821
|
+
doc.head.appendChild(canonicalLinkElm);
|
|
50806
50822
|
}
|
|
50807
50823
|
canonicalLinkElm.setAttribute("href", href);
|
|
50808
50824
|
} else {
|
|
@@ -50816,11 +50832,11 @@ var updateCanonicalLink = (doc2, href) => {
|
|
|
50816
50832
|
};
|
|
50817
50833
|
|
|
50818
50834
|
// src/compiler/html/relocate-meta-charset.ts
|
|
50819
|
-
var relocateMetaCharset = (
|
|
50820
|
-
const head =
|
|
50835
|
+
var relocateMetaCharset = (doc) => {
|
|
50836
|
+
const head = doc.head;
|
|
50821
50837
|
let charsetElm = head.querySelector("meta[charset]");
|
|
50822
50838
|
if (charsetElm == null) {
|
|
50823
|
-
charsetElm =
|
|
50839
|
+
charsetElm = doc.createElement("meta");
|
|
50824
50840
|
charsetElm.setAttribute("charset", "utf-8");
|
|
50825
50841
|
} else {
|
|
50826
50842
|
charsetElm.remove();
|
|
@@ -51095,13 +51111,13 @@ var parseCss = (css, filePath) => {
|
|
|
51095
51111
|
const m = match(/^@([-\w]+)?document *([^{]+)/);
|
|
51096
51112
|
if (!m) return null;
|
|
51097
51113
|
const vendor = trim(m[1]);
|
|
51098
|
-
const
|
|
51114
|
+
const doc = trim(m[2]);
|
|
51099
51115
|
if (!open()) return error(`@document missing '{'`);
|
|
51100
51116
|
const style = comments().concat(rules());
|
|
51101
51117
|
if (!close()) return error(`@document missing '}'`);
|
|
51102
51118
|
return pos({
|
|
51103
51119
|
type: 3 /* Document */,
|
|
51104
|
-
document:
|
|
51120
|
+
document: doc,
|
|
51105
51121
|
vendor,
|
|
51106
51122
|
rules: style
|
|
51107
51123
|
});
|
|
@@ -51427,11 +51443,11 @@ var serializeCssPage = (opts, node) => {
|
|
|
51427
51443
|
};
|
|
51428
51444
|
var serializeCssDocument = (opts, node) => {
|
|
51429
51445
|
const documentCss = serializeCssMapVisit(opts, node.rules);
|
|
51430
|
-
const
|
|
51446
|
+
const doc = "@" + (node.vendor || "") + "document " + node.document;
|
|
51431
51447
|
if (documentCss === "") {
|
|
51432
51448
|
return "";
|
|
51433
51449
|
}
|
|
51434
|
-
return
|
|
51450
|
+
return doc + "{" + documentCss + "}";
|
|
51435
51451
|
};
|
|
51436
51452
|
var serializeCssMapVisit = (opts, nodes) => {
|
|
51437
51453
|
let rtn = "";
|
|
@@ -51529,12 +51545,12 @@ var collectUsedSelectors = (usedSelectors, elm) => {
|
|
|
51529
51545
|
};
|
|
51530
51546
|
|
|
51531
51547
|
// src/compiler/html/remove-unused-styles.ts
|
|
51532
|
-
var removeUnusedStyles = (
|
|
51548
|
+
var removeUnusedStyles = (doc, diagnostics) => {
|
|
51533
51549
|
try {
|
|
51534
|
-
const styleElms =
|
|
51550
|
+
const styleElms = doc.head.querySelectorAll(`style[data-styles]`);
|
|
51535
51551
|
const styleLen = styleElms.length;
|
|
51536
51552
|
if (styleLen > 0) {
|
|
51537
|
-
const usedSelectors = getUsedSelectors(
|
|
51553
|
+
const usedSelectors = getUsedSelectors(doc.documentElement);
|
|
51538
51554
|
for (let i = 0; i < styleLen; i++) {
|
|
51539
51555
|
removeUnusedStyleText(usedSelectors, diagnostics, styleElms[i]);
|
|
51540
51556
|
}
|
|
@@ -51667,41 +51683,41 @@ function collectAttributes(node) {
|
|
|
51667
51683
|
var SKIP_ATTRS = /* @__PURE__ */ new Set(["s-id", "c-id"]);
|
|
51668
51684
|
|
|
51669
51685
|
// src/hydrate/runner/patch-dom-implementation.ts
|
|
51670
|
-
function patchDomImplementation(
|
|
51686
|
+
function patchDomImplementation(doc, opts) {
|
|
51671
51687
|
let win2;
|
|
51672
|
-
if (
|
|
51688
|
+
if (doc.defaultView != null) {
|
|
51673
51689
|
opts.destroyWindow = true;
|
|
51674
|
-
patchWindow(
|
|
51675
|
-
win2 =
|
|
51690
|
+
patchWindow(doc.defaultView);
|
|
51691
|
+
win2 = doc.defaultView;
|
|
51676
51692
|
} else {
|
|
51677
51693
|
opts.destroyWindow = true;
|
|
51678
51694
|
opts.destroyDocument = false;
|
|
51679
51695
|
win2 = new MockWindow(false);
|
|
51680
51696
|
}
|
|
51681
|
-
if (win2.document !==
|
|
51682
|
-
win2.document =
|
|
51697
|
+
if (win2.document !== doc) {
|
|
51698
|
+
win2.document = doc;
|
|
51683
51699
|
}
|
|
51684
|
-
if (
|
|
51685
|
-
|
|
51700
|
+
if (doc.defaultView !== win2) {
|
|
51701
|
+
doc.defaultView = win2;
|
|
51686
51702
|
}
|
|
51687
|
-
const HTMLElement2 =
|
|
51703
|
+
const HTMLElement2 = doc.documentElement.constructor.prototype;
|
|
51688
51704
|
if (typeof HTMLElement2.getRootNode !== "function") {
|
|
51689
|
-
const elm =
|
|
51705
|
+
const elm = doc.createElement("unknown-element");
|
|
51690
51706
|
const HTMLUnknownElement = elm.constructor.prototype;
|
|
51691
51707
|
HTMLUnknownElement.getRootNode = getRootNode;
|
|
51692
51708
|
}
|
|
51693
|
-
if (typeof
|
|
51694
|
-
const CustomEvent2 =
|
|
51709
|
+
if (typeof doc.createEvent === "function") {
|
|
51710
|
+
const CustomEvent2 = doc.createEvent("CustomEvent").constructor;
|
|
51695
51711
|
if (win2.CustomEvent !== CustomEvent2) {
|
|
51696
51712
|
win2.CustomEvent = CustomEvent2;
|
|
51697
51713
|
}
|
|
51698
51714
|
}
|
|
51699
51715
|
try {
|
|
51700
|
-
win2.__stencil_baseURI =
|
|
51716
|
+
win2.__stencil_baseURI = doc.baseURI;
|
|
51701
51717
|
} catch (e) {
|
|
51702
|
-
Object.defineProperty(
|
|
51718
|
+
Object.defineProperty(doc, "baseURI", {
|
|
51703
51719
|
get() {
|
|
51704
|
-
const baseElm =
|
|
51720
|
+
const baseElm = doc.querySelector("base[href]");
|
|
51705
51721
|
if (baseElm) {
|
|
51706
51722
|
return new URL(baseElm.getAttribute("href"), win2.location.href).href;
|
|
51707
51723
|
}
|
|
@@ -51912,7 +51928,7 @@ var docData = {
|
|
|
51912
51928
|
rootLevelIds: 0,
|
|
51913
51929
|
staticComponents: /* @__PURE__ */ new Set()
|
|
51914
51930
|
};
|
|
51915
|
-
function initializeWindow(win2,
|
|
51931
|
+
function initializeWindow(win2, doc, opts, results) {
|
|
51916
51932
|
if (typeof opts.url === "string") {
|
|
51917
51933
|
try {
|
|
51918
51934
|
win2.location.href = opts.url;
|
|
@@ -51927,31 +51943,31 @@ function initializeWindow(win2, doc2, opts, results) {
|
|
|
51927
51943
|
}
|
|
51928
51944
|
if (typeof opts.cookie === "string") {
|
|
51929
51945
|
try {
|
|
51930
|
-
|
|
51946
|
+
doc.cookie = opts.cookie;
|
|
51931
51947
|
} catch (e) {
|
|
51932
51948
|
}
|
|
51933
51949
|
}
|
|
51934
51950
|
if (typeof opts.referrer === "string") {
|
|
51935
51951
|
try {
|
|
51936
|
-
|
|
51952
|
+
doc.referrer = opts.referrer;
|
|
51937
51953
|
} catch (e) {
|
|
51938
51954
|
}
|
|
51939
51955
|
}
|
|
51940
51956
|
if (typeof opts.direction === "string") {
|
|
51941
51957
|
try {
|
|
51942
|
-
|
|
51958
|
+
doc.documentElement.setAttribute("dir", opts.direction);
|
|
51943
51959
|
} catch (e) {
|
|
51944
51960
|
}
|
|
51945
51961
|
}
|
|
51946
51962
|
if (typeof opts.language === "string") {
|
|
51947
51963
|
try {
|
|
51948
|
-
|
|
51964
|
+
doc.documentElement.setAttribute("lang", opts.language);
|
|
51949
51965
|
} catch (e) {
|
|
51950
51966
|
}
|
|
51951
51967
|
}
|
|
51952
51968
|
if (typeof opts.buildId === "string") {
|
|
51953
51969
|
try {
|
|
51954
|
-
|
|
51970
|
+
doc.documentElement.setAttribute("data-stencil-build", opts.buildId);
|
|
51955
51971
|
} catch (e) {
|
|
51956
51972
|
}
|
|
51957
51973
|
}
|
|
@@ -51963,7 +51979,7 @@ function initializeWindow(win2, doc2, opts, results) {
|
|
|
51963
51979
|
constrainTimeouts(win2);
|
|
51964
51980
|
}
|
|
51965
51981
|
runtimeLogging(win2, opts, results);
|
|
51966
|
-
|
|
51982
|
+
doc[STENCIL_DOC_DATA] = docData;
|
|
51967
51983
|
return win2;
|
|
51968
51984
|
}
|
|
51969
51985
|
|
|
@@ -51981,18 +51997,18 @@ function renderToString(html, options, asStream) {
|
|
|
51981
51997
|
opts.constrainTimeouts = false;
|
|
51982
51998
|
return hydrateDocument(html, opts, asStream);
|
|
51983
51999
|
}
|
|
51984
|
-
function hydrateDocument(
|
|
52000
|
+
function hydrateDocument(doc, options, asStream) {
|
|
51985
52001
|
const opts = normalizeHydrateOptions(options);
|
|
51986
52002
|
let win2 = null;
|
|
51987
52003
|
const results = generateHydrateResults(opts);
|
|
51988
52004
|
if (hasError(results.diagnostics)) {
|
|
51989
52005
|
return Promise.resolve(results);
|
|
51990
52006
|
}
|
|
51991
|
-
if (typeof
|
|
52007
|
+
if (typeof doc === "string") {
|
|
51992
52008
|
try {
|
|
51993
52009
|
opts.destroyWindow = true;
|
|
51994
52010
|
opts.destroyDocument = true;
|
|
51995
|
-
win2 = new MockWindow(
|
|
52011
|
+
win2 = new MockWindow(doc);
|
|
51996
52012
|
if (!asStream) {
|
|
51997
52013
|
return render(win2, opts, results).then(() => results);
|
|
51998
52014
|
}
|
|
@@ -52006,10 +52022,10 @@ function hydrateDocument(doc2, options, asStream) {
|
|
|
52006
52022
|
return Promise.resolve(results);
|
|
52007
52023
|
}
|
|
52008
52024
|
}
|
|
52009
|
-
if (isValidDocument(
|
|
52025
|
+
if (isValidDocument(doc)) {
|
|
52010
52026
|
try {
|
|
52011
52027
|
opts.destroyDocument = false;
|
|
52012
|
-
win2 = patchDomImplementation(
|
|
52028
|
+
win2 = patchDomImplementation(doc, opts);
|
|
52013
52029
|
if (!asStream) {
|
|
52014
52030
|
return render(win2, opts, results).then(() => results);
|
|
52015
52031
|
}
|
|
@@ -52066,41 +52082,41 @@ async function afterHydrate(win2, opts, results, resolve) {
|
|
|
52066
52082
|
return resolve(finalizeHydrate(win2, win2.document, opts, results));
|
|
52067
52083
|
}
|
|
52068
52084
|
}
|
|
52069
|
-
function finalizeHydrate(win2,
|
|
52085
|
+
function finalizeHydrate(win2, doc, opts, results) {
|
|
52070
52086
|
try {
|
|
52071
|
-
inspectElement(results,
|
|
52087
|
+
inspectElement(results, doc.documentElement, 0);
|
|
52072
52088
|
if (opts.removeUnusedStyles !== false) {
|
|
52073
52089
|
try {
|
|
52074
|
-
removeUnusedStyles(
|
|
52090
|
+
removeUnusedStyles(doc, results.diagnostics);
|
|
52075
52091
|
} catch (e) {
|
|
52076
52092
|
renderCatchError(results, e);
|
|
52077
52093
|
}
|
|
52078
52094
|
}
|
|
52079
52095
|
if (typeof opts.title === "string") {
|
|
52080
52096
|
try {
|
|
52081
|
-
|
|
52097
|
+
doc.title = opts.title;
|
|
52082
52098
|
} catch (e) {
|
|
52083
52099
|
renderCatchError(results, e);
|
|
52084
52100
|
}
|
|
52085
52101
|
}
|
|
52086
|
-
results.title =
|
|
52102
|
+
results.title = doc.title;
|
|
52087
52103
|
if (opts.removeScripts) {
|
|
52088
|
-
removeScripts(
|
|
52104
|
+
removeScripts(doc.documentElement);
|
|
52089
52105
|
}
|
|
52090
52106
|
try {
|
|
52091
|
-
updateCanonicalLink(
|
|
52107
|
+
updateCanonicalLink(doc, opts.canonicalUrl);
|
|
52092
52108
|
} catch (e) {
|
|
52093
52109
|
renderCatchError(results, e);
|
|
52094
52110
|
}
|
|
52095
52111
|
try {
|
|
52096
|
-
relocateMetaCharset(
|
|
52112
|
+
relocateMetaCharset(doc);
|
|
52097
52113
|
} catch (e) {
|
|
52098
52114
|
}
|
|
52099
52115
|
if (!hasError(results.diagnostics)) {
|
|
52100
52116
|
results.httpStatus = 200;
|
|
52101
52117
|
}
|
|
52102
52118
|
try {
|
|
52103
|
-
const metaStatus =
|
|
52119
|
+
const metaStatus = doc.head.querySelector('meta[http-equiv="status"]');
|
|
52104
52120
|
if (metaStatus != null) {
|
|
52105
52121
|
const metaStatusContent = metaStatus.getAttribute("content");
|
|
52106
52122
|
if (metaStatusContent && metaStatusContent.length > 0) {
|
|
@@ -52110,25 +52126,25 @@ function finalizeHydrate(win2, doc2, opts, results) {
|
|
|
52110
52126
|
} catch (e) {
|
|
52111
52127
|
}
|
|
52112
52128
|
if (opts.clientHydrateAnnotations) {
|
|
52113
|
-
|
|
52129
|
+
doc.documentElement.classList.add("hydrated");
|
|
52114
52130
|
}
|
|
52115
52131
|
if (opts.serializeToHtml) {
|
|
52116
|
-
results.html = serializeDocumentToString(
|
|
52132
|
+
results.html = serializeDocumentToString(doc, opts);
|
|
52117
52133
|
}
|
|
52118
52134
|
} catch (e) {
|
|
52119
52135
|
renderCatchError(results, e);
|
|
52120
52136
|
}
|
|
52121
|
-
destroyWindow(win2,
|
|
52137
|
+
destroyWindow(win2, doc, opts, results);
|
|
52122
52138
|
return results;
|
|
52123
52139
|
}
|
|
52124
|
-
function destroyWindow(win2,
|
|
52140
|
+
function destroyWindow(win2, doc, opts, results) {
|
|
52125
52141
|
if (!opts.destroyWindow) {
|
|
52126
52142
|
return;
|
|
52127
52143
|
}
|
|
52128
52144
|
try {
|
|
52129
52145
|
if (!opts.destroyDocument) {
|
|
52130
52146
|
win2.document = null;
|
|
52131
|
-
|
|
52147
|
+
doc.defaultView = null;
|
|
52132
52148
|
}
|
|
52133
52149
|
if (win2.close) {
|
|
52134
52150
|
win2.close();
|
|
@@ -52137,8 +52153,8 @@ function destroyWindow(win2, doc2, opts, results) {
|
|
|
52137
52153
|
renderCatchError(results, e);
|
|
52138
52154
|
}
|
|
52139
52155
|
}
|
|
52140
|
-
function serializeDocumentToString(
|
|
52141
|
-
return serializeNodeToHtml(
|
|
52156
|
+
function serializeDocumentToString(doc, opts) {
|
|
52157
|
+
return serializeNodeToHtml(doc, {
|
|
52142
52158
|
approximateLineWidth: opts.approximateLineWidth,
|
|
52143
52159
|
outerHtml: false,
|
|
52144
52160
|
prettyHtml: opts.prettyHtml,
|
|
@@ -52150,8 +52166,8 @@ function serializeDocumentToString(doc2, opts) {
|
|
|
52150
52166
|
fullDocument: opts.fullDocument
|
|
52151
52167
|
});
|
|
52152
52168
|
}
|
|
52153
|
-
function isValidDocument(
|
|
52154
|
-
return
|
|
52169
|
+
function isValidDocument(doc) {
|
|
52170
|
+
return doc != null && doc.nodeType === 9 && doc.documentElement != null && doc.documentElement.nodeType === 1 && doc.body != null && doc.body.nodeType === 1;
|
|
52155
52171
|
}
|
|
52156
52172
|
function removeScripts(elm) {
|
|
52157
52173
|
const children = elm.children;
|