@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.js
CHANGED
|
@@ -131,7 +131,7 @@ const NAMESPACE = 'roadtrip';
|
|
|
131
131
|
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 };
|
|
132
132
|
|
|
133
133
|
/*
|
|
134
|
-
Stencil Hydrate Platform v4.27.
|
|
134
|
+
Stencil Hydrate Platform v4.27.1 | MIT Licensed | https://stenciljs.com
|
|
135
135
|
*/
|
|
136
136
|
var __defProp = Object.defineProperty;
|
|
137
137
|
var __export = (target, all) => {
|
|
@@ -151,9 +151,9 @@ var isComplexType = (o) => {
|
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
154
|
-
function queryNonceMetaTagContent(
|
|
154
|
+
function queryNonceMetaTagContent(doc) {
|
|
155
155
|
var _a, _b, _c;
|
|
156
|
-
return (_c = (_b = (_a =
|
|
156
|
+
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;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
// src/utils/regular-expression.ts
|
|
@@ -510,8 +510,8 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
510
510
|
delete hostElm["s-sc"];
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
if (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size) {
|
|
514
|
-
initializeDocumentHydrate(
|
|
513
|
+
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
514
|
+
initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
515
515
|
}
|
|
516
516
|
hostElm[HYDRATE_ID] = hostId;
|
|
517
517
|
hostElm.removeAttribute(HYDRATE_ID);
|
|
@@ -834,8 +834,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
834
834
|
childVNode.$name$ = slotName || null;
|
|
835
835
|
childVNode.$tag$ = "slot";
|
|
836
836
|
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
837
|
-
if (shadowRootNodes) {
|
|
838
|
-
const slot = childVNode.$elm$ =
|
|
837
|
+
if (shadowRootNodes && win.document) {
|
|
838
|
+
const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
|
|
839
839
|
if (childVNode.$name$) {
|
|
840
840
|
childVNode.$elm$.setAttribute("name", slotName);
|
|
841
841
|
}
|
|
@@ -1279,7 +1279,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1279
1279
|
var _a;
|
|
1280
1280
|
const scopeId2 = getScopeId(cmpMeta);
|
|
1281
1281
|
const style = styles$1.get(scopeId2);
|
|
1282
|
-
|
|
1282
|
+
if (!win.document) {
|
|
1283
|
+
return scopeId2;
|
|
1284
|
+
}
|
|
1285
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1283
1286
|
if (style) {
|
|
1284
1287
|
if (typeof style === "string") {
|
|
1285
1288
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -1292,9 +1295,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1292
1295
|
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1293
1296
|
styleElm.innerHTML = style;
|
|
1294
1297
|
} else {
|
|
1295
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) ||
|
|
1298
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
1296
1299
|
styleElm.innerHTML = style;
|
|
1297
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
1300
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1298
1301
|
if (nonce != null) {
|
|
1299
1302
|
styleElm.setAttribute("nonce", nonce);
|
|
1300
1303
|
}
|
|
@@ -1544,7 +1547,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1544
1547
|
}
|
|
1545
1548
|
}
|
|
1546
1549
|
if (newVNode2.$text$ !== null) {
|
|
1547
|
-
elm = newVNode2.$elm$ =
|
|
1550
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
1548
1551
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
1549
1552
|
elm = newVNode2.$elm$ = slotReferenceDebugNode(newVNode2) ;
|
|
1550
1553
|
{
|
|
@@ -1554,7 +1557,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1554
1557
|
if (!isSvgMode) {
|
|
1555
1558
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
1556
1559
|
}
|
|
1557
|
-
|
|
1560
|
+
if (!win.document) {
|
|
1561
|
+
throw new Error(
|
|
1562
|
+
"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."
|
|
1563
|
+
);
|
|
1564
|
+
}
|
|
1565
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
1558
1566
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
1559
1567
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
1560
1568
|
) ;
|
|
@@ -1936,7 +1944,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1936
1944
|
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1937
1945
|
for (const relocateData of relocateNodes) {
|
|
1938
1946
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1939
|
-
if (!nodeToRelocate["s-ol"]) {
|
|
1947
|
+
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
1940
1948
|
const orgLocationNode = originalLocationDebugNode(nodeToRelocate) ;
|
|
1941
1949
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1942
1950
|
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
@@ -1980,12 +1988,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1980
1988
|
}
|
|
1981
1989
|
contentRef = void 0;
|
|
1982
1990
|
};
|
|
1983
|
-
var slotReferenceDebugNode = (slotVNode) =>
|
|
1984
|
-
|
|
1985
|
-
)
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1991
|
+
var slotReferenceDebugNode = (slotVNode) => {
|
|
1992
|
+
var _a;
|
|
1993
|
+
return (_a = win.document) == null ? void 0 : _a.createComment(
|
|
1994
|
+
`<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
|
|
1995
|
+
);
|
|
1996
|
+
};
|
|
1997
|
+
var originalLocationDebugNode = (nodeToRelocate) => {
|
|
1998
|
+
var _a;
|
|
1999
|
+
return (_a = win.document) == null ? void 0 : _a.createComment(
|
|
2000
|
+
`org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
|
|
2001
|
+
);
|
|
2002
|
+
};
|
|
1989
2003
|
|
|
1990
2004
|
// src/runtime/update-component.ts
|
|
1991
2005
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
@@ -2486,16 +2500,19 @@ var connectedCallback = (elm) => {
|
|
|
2486
2500
|
}
|
|
2487
2501
|
};
|
|
2488
2502
|
var setContentReference = (elm) => {
|
|
2489
|
-
|
|
2503
|
+
if (!win.document) {
|
|
2504
|
+
return;
|
|
2505
|
+
}
|
|
2506
|
+
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
2490
2507
|
""
|
|
2491
2508
|
);
|
|
2492
2509
|
contentRefElm["s-cn"] = true;
|
|
2493
2510
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
2494
2511
|
};
|
|
2495
2512
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2496
|
-
if (listeners) {
|
|
2513
|
+
if (listeners && win.document) {
|
|
2497
2514
|
listeners.map(([flags, name, method]) => {
|
|
2498
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
2515
|
+
const target = getHostListenerTarget(win.document, elm, flags) ;
|
|
2499
2516
|
const handler = hostListenerProxy(hostRef, method);
|
|
2500
2517
|
const opts = hostListenerOpts(flags);
|
|
2501
2518
|
plt.ael(target, name, handler, opts);
|
|
@@ -2517,20 +2534,24 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
2517
2534
|
consoleError(e, hostRef.$hostElement$);
|
|
2518
2535
|
}
|
|
2519
2536
|
};
|
|
2520
|
-
var getHostListenerTarget = (elm, flags) => {
|
|
2521
|
-
if (flags & 4 /* TargetDocument */)
|
|
2522
|
-
|
|
2537
|
+
var getHostListenerTarget = (doc, elm, flags) => {
|
|
2538
|
+
if (flags & 4 /* TargetDocument */) {
|
|
2539
|
+
return doc;
|
|
2540
|
+
}
|
|
2541
|
+
if (flags & 8 /* TargetWindow */) {
|
|
2542
|
+
return win;
|
|
2543
|
+
}
|
|
2523
2544
|
return elm;
|
|
2524
2545
|
};
|
|
2525
2546
|
var hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
2526
2547
|
|
|
2527
2548
|
// src/runtime/vdom/vdom-annotations.ts
|
|
2528
|
-
var insertVdomAnnotations = (
|
|
2529
|
-
if (
|
|
2530
|
-
const docData = STENCIL_DOC_DATA in
|
|
2549
|
+
var insertVdomAnnotations = (doc, staticComponents) => {
|
|
2550
|
+
if (doc != null) {
|
|
2551
|
+
const docData = STENCIL_DOC_DATA in doc ? doc[STENCIL_DOC_DATA] : { ...DEFAULT_DOC_DATA };
|
|
2531
2552
|
docData.staticComponents = new Set(staticComponents);
|
|
2532
2553
|
const orgLocationNodes = [];
|
|
2533
|
-
parseVNodeAnnotations(
|
|
2554
|
+
parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes);
|
|
2534
2555
|
orgLocationNodes.forEach((orgLocationNode) => {
|
|
2535
2556
|
var _a;
|
|
2536
2557
|
if (orgLocationNode != null && orgLocationNode["s-nr"]) {
|
|
@@ -2556,11 +2577,11 @@ var insertVdomAnnotations = (doc2, staticComponents) => {
|
|
|
2556
2577
|
return;
|
|
2557
2578
|
}
|
|
2558
2579
|
}
|
|
2559
|
-
const commentBeforeTextNode =
|
|
2580
|
+
const commentBeforeTextNode = doc.createComment(childId);
|
|
2560
2581
|
commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;
|
|
2561
2582
|
insertBefore(nodeRef.parentNode, commentBeforeTextNode, nodeRef);
|
|
2562
2583
|
} else if (nodeRef.nodeType === 8 /* CommentNode */) {
|
|
2563
|
-
const commentBeforeTextNode =
|
|
2584
|
+
const commentBeforeTextNode = doc.createComment(childId);
|
|
2564
2585
|
commentBeforeTextNode.nodeValue = `${COMMENT_NODE_ID}.${childId}`;
|
|
2565
2586
|
nodeRef.parentNode.insertBefore(commentBeforeTextNode, nodeRef);
|
|
2566
2587
|
}
|
|
@@ -2579,7 +2600,7 @@ var insertVdomAnnotations = (doc2, staticComponents) => {
|
|
|
2579
2600
|
});
|
|
2580
2601
|
}
|
|
2581
2602
|
};
|
|
2582
|
-
var parseVNodeAnnotations = (
|
|
2603
|
+
var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
|
|
2583
2604
|
var _a;
|
|
2584
2605
|
if (node == null) {
|
|
2585
2606
|
return;
|
|
@@ -2595,13 +2616,13 @@ var parseVNodeAnnotations = (doc2, node, docData, orgLocationNodes) => {
|
|
|
2595
2616
|
const cmpData = {
|
|
2596
2617
|
nodeIds: 0
|
|
2597
2618
|
};
|
|
2598
|
-
insertVNodeAnnotations(
|
|
2619
|
+
insertVNodeAnnotations(doc, childNode, hostRef.$vnode$, docData, cmpData);
|
|
2599
2620
|
}
|
|
2600
|
-
parseVNodeAnnotations(
|
|
2621
|
+
parseVNodeAnnotations(doc, childNode, docData, orgLocationNodes);
|
|
2601
2622
|
});
|
|
2602
2623
|
}
|
|
2603
2624
|
};
|
|
2604
|
-
var insertVNodeAnnotations = (
|
|
2625
|
+
var insertVNodeAnnotations = (doc, hostElm, vnode, docData, cmpData) => {
|
|
2605
2626
|
if (vnode != null) {
|
|
2606
2627
|
const hostId = ++docData.hostIds;
|
|
2607
2628
|
hostElm.setAttribute(HYDRATE_ID, hostId);
|
|
@@ -2611,7 +2632,7 @@ var insertVNodeAnnotations = (doc2, hostElm, vnode, docData, cmpData) => {
|
|
|
2611
2632
|
if (vnode.$children$ != null) {
|
|
2612
2633
|
const depth = 0;
|
|
2613
2634
|
vnode.$children$.forEach((vnodeChild, index) => {
|
|
2614
|
-
insertChildVNodeAnnotations(
|
|
2635
|
+
insertChildVNodeAnnotations(doc, vnodeChild, cmpData, hostId, depth, index);
|
|
2615
2636
|
});
|
|
2616
2637
|
}
|
|
2617
2638
|
if (hostElm && vnode && vnode.$elm$ && !hostElm.hasAttribute(HYDRATE_CHILD_ID)) {
|
|
@@ -2632,7 +2653,7 @@ var insertVNodeAnnotations = (doc2, hostElm, vnode, docData, cmpData) => {
|
|
|
2632
2653
|
}
|
|
2633
2654
|
}
|
|
2634
2655
|
};
|
|
2635
|
-
var insertChildVNodeAnnotations = (
|
|
2656
|
+
var insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, index) => {
|
|
2636
2657
|
const childElm = vnodeChild.$elm$;
|
|
2637
2658
|
if (childElm == null) {
|
|
2638
2659
|
return;
|
|
@@ -2651,7 +2672,7 @@ var insertChildVNodeAnnotations = (doc2, vnodeChild, cmpData, hostId, depth, ind
|
|
|
2651
2672
|
const nodeName = parentNode == null ? void 0 : parentNode.nodeName;
|
|
2652
2673
|
if (nodeName !== "STYLE" && nodeName !== "SCRIPT") {
|
|
2653
2674
|
const textNodeId = `${TEXT_NODE_ID}.${childId}`;
|
|
2654
|
-
const commentBeforeTextNode =
|
|
2675
|
+
const commentBeforeTextNode = doc.createComment(textNodeId);
|
|
2655
2676
|
insertBefore(parentNode, commentBeforeTextNode, childElm);
|
|
2656
2677
|
}
|
|
2657
2678
|
} else if (childElm.nodeType === 8 /* CommentNode */) {
|
|
@@ -2664,7 +2685,7 @@ var insertChildVNodeAnnotations = (doc2, vnodeChild, cmpData, hostId, depth, ind
|
|
|
2664
2685
|
if (vnodeChild.$children$ != null) {
|
|
2665
2686
|
const childDepth = depth + 1;
|
|
2666
2687
|
vnodeChild.$children$.forEach((vnode, index2) => {
|
|
2667
|
-
insertChildVNodeAnnotations(
|
|
2688
|
+
insertChildVNodeAnnotations(doc, vnode, cmpData, hostId, childDepth, index2);
|
|
2668
2689
|
});
|
|
2669
2690
|
}
|
|
2670
2691
|
};
|
|
@@ -2880,7 +2901,7 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
|
|
|
2880
2901
|
return elm;
|
|
2881
2902
|
};
|
|
2882
2903
|
tmrId = globalThis.setTimeout(timeoutExceeded, opts.timeout);
|
|
2883
|
-
plt.$resourcesUrl$ = new URL(opts.resourcesUrl || "./",
|
|
2904
|
+
plt.$resourcesUrl$ = new URL(opts.resourcesUrl || "./", win2.document.baseURI).href;
|
|
2884
2905
|
patchChild2(win2.document.body);
|
|
2885
2906
|
waitLoop2().then(hydratedComplete).catch(hydratedError);
|
|
2886
2907
|
} catch (e) {
|
|
@@ -3087,7 +3108,6 @@ var registerComponents = (Cstrs) => {
|
|
|
3087
3108
|
}
|
|
3088
3109
|
};
|
|
3089
3110
|
var win = window;
|
|
3090
|
-
var doc = win.document;
|
|
3091
3111
|
var writeTask = (cb) => {
|
|
3092
3112
|
nextTick$1(() => {
|
|
3093
3113
|
try {
|
|
@@ -3204,7 +3224,7 @@ class Accordion {
|
|
|
3204
3224
|
const accordionLightContent = this.isLight ? 'accordion-content accordion-light-content' : 'accordion-content';
|
|
3205
3225
|
const accordionLightSeparator = this.isLightSeparator ? 'accordion accordion-light accordion-light--border' : 'accordion';
|
|
3206
3226
|
const accordionSmall = this.isSmall ? 'accordion accordion-light accordion-light--small' : 'accordion';
|
|
3207
|
-
return (hAsync("details", { key: '
|
|
3227
|
+
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' }))));
|
|
3208
3228
|
}
|
|
3209
3229
|
static get style() { return RoadAccordionStyle0; }
|
|
3210
3230
|
static get cmpMeta() { return {
|
|
@@ -3239,7 +3259,7 @@ class Alert {
|
|
|
3239
3259
|
}
|
|
3240
3260
|
render() {
|
|
3241
3261
|
const colorClass = this.color !== undefined ? `alert-${this.color}` : '';
|
|
3242
|
-
return (hAsync(Host, { key: '
|
|
3262
|
+
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)))));
|
|
3243
3263
|
}
|
|
3244
3264
|
static get style() { return RoadAlertStyle0; }
|
|
3245
3265
|
static get cmpMeta() { return {
|
|
@@ -3338,7 +3358,7 @@ class Asset {
|
|
|
3338
3358
|
}
|
|
3339
3359
|
}
|
|
3340
3360
|
render() {
|
|
3341
|
-
return (hAsync(Host, { key: '
|
|
3361
|
+
return (hAsync(Host, { key: '64331c0cd4f5a805be16cd746dfe78d7eeea118e', "aria-hidden": "true", role: "img" }, ((this.assetSvgContent !== '')
|
|
3342
3362
|
? hAsync("div", { class: "icon-inner", innerHTML: this.assetSvgContent })
|
|
3343
3363
|
: hAsync("div", { class: "icon-inner" }))));
|
|
3344
3364
|
}
|
|
@@ -3408,8 +3428,8 @@ class Autocomplete {
|
|
|
3408
3428
|
}
|
|
3409
3429
|
}
|
|
3410
3430
|
render() {
|
|
3411
|
-
return (hAsync(Host, { key: '
|
|
3412
|
-
hAsync("ul", { key: '
|
|
3431
|
+
return (hAsync(Host, { key: '46eeec7665a075a37025173b3a86f42e9263c835' }, hAsync("slot", { key: 'f3513033a2e4a3e22d30218c47e1eed0e2e7bc94' }), this.visible && this.options.length > 0 &&
|
|
3432
|
+
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))))));
|
|
3413
3433
|
}
|
|
3414
3434
|
get el() { return getElement(this); }
|
|
3415
3435
|
static get style() { return RoadAutocompleteStyle0; }
|
|
@@ -3442,7 +3462,7 @@ class Avatar {
|
|
|
3442
3462
|
}
|
|
3443
3463
|
render() {
|
|
3444
3464
|
const sizeClass = this.size !== undefined ? `avatar-${this.size}` : '';
|
|
3445
|
-
return (hAsync(Host, { key: '
|
|
3465
|
+
return (hAsync(Host, { key: '6f57ba54014a8220d4262e0fd61dd807ed09f5e2', class: `${sizeClass}` }, hAsync("slot", { key: '3152a4be46b7d1d68df32861f690ae7bf5cf1c37' })));
|
|
3446
3466
|
}
|
|
3447
3467
|
static get style() { return RoadAvatarStyle0; }
|
|
3448
3468
|
static get cmpMeta() { return {
|
|
@@ -3478,7 +3498,7 @@ class Badge {
|
|
|
3478
3498
|
render() {
|
|
3479
3499
|
const colorClass = this.color !== undefined ? `badge-${this.color}` : '';
|
|
3480
3500
|
const bubbleClass = this.bubble ? 'badge-bubble' : '';
|
|
3481
|
-
return (hAsync(Host, { key: '
|
|
3501
|
+
return (hAsync(Host, { key: '16742c39b5260aadf2da3067ce5a2812fe4c462f', class: `${colorClass} ${bubbleClass}` }, hAsync("slot", { key: 'd989a2f2bcdd588fc483b71e8d630387997deb95' })));
|
|
3482
3502
|
}
|
|
3483
3503
|
static get style() { return RoadBadgeStyle0; }
|
|
3484
3504
|
static get cmpMeta() { return {
|
|
@@ -3527,7 +3547,7 @@ class Banner {
|
|
|
3527
3547
|
}
|
|
3528
3548
|
render() {
|
|
3529
3549
|
const bannerIsOpenClass = this.isOpen ? 'banner-open' : '';
|
|
3530
|
-
return (hAsync(Host, { key: '
|
|
3550
|
+
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" })))));
|
|
3531
3551
|
}
|
|
3532
3552
|
static get style() { return RoadBannerStyle0; }
|
|
3533
3553
|
static get cmpMeta() { return {
|
|
@@ -3633,7 +3653,7 @@ class Button$1 {
|
|
|
3633
3653
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
3634
3654
|
const expandClass = this.expand ? 'btn-block' : '';
|
|
3635
3655
|
const iconOnlyClass = this.iconOnly ? 'btn-icon' : '';
|
|
3636
|
-
return (hAsync(Host, { key: '
|
|
3656
|
+
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" }))));
|
|
3637
3657
|
}
|
|
3638
3658
|
get el() { return getElement(this); }
|
|
3639
3659
|
static get style() { return RoadButtonStyle0; }
|
|
@@ -3718,7 +3738,7 @@ class Button {
|
|
|
3718
3738
|
render() {
|
|
3719
3739
|
const TagType = this.href === undefined ? 'button' : 'a';
|
|
3720
3740
|
const positionClass = this.position !== undefined ? `position-${this.position}` : '';
|
|
3721
|
-
return (hAsync(Host, { key: '
|
|
3741
|
+
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' }))));
|
|
3722
3742
|
}
|
|
3723
3743
|
get el() { return getElement(this); }
|
|
3724
3744
|
static get style() { return RoadButtonFloatingStyle0; }
|
|
@@ -3763,7 +3783,7 @@ class ButtonBar {
|
|
|
3763
3783
|
this.selectedTabChanged();
|
|
3764
3784
|
}
|
|
3765
3785
|
render() {
|
|
3766
|
-
return (hAsync(Host, { key: '
|
|
3786
|
+
return (hAsync(Host, { key: '7fffe10ee5aa2a3ee09086f24e637c5e07992487', role: "tablist" }, hAsync("slot", { key: '10e9ca402be8299b44ef9cb41921cf846e280fe9' })));
|
|
3767
3787
|
}
|
|
3768
3788
|
get el() { return getElement(this); }
|
|
3769
3789
|
static get watchers() { return {
|
|
@@ -3846,7 +3866,7 @@ class Card {
|
|
|
3846
3866
|
render() {
|
|
3847
3867
|
const { elevation } = this;
|
|
3848
3868
|
const elevationClass = this.elevation ? `card-elevation-${elevation}` : ``;
|
|
3849
|
-
return (hAsync(Host, { key: '
|
|
3869
|
+
return (hAsync(Host, { key: '4b33b971a83bdc61a6f263d0d875fc4ce001b1e2', class: `${elevationClass}` }, this.renderCard()));
|
|
3850
3870
|
}
|
|
3851
3871
|
get el() { return getElement(this); }
|
|
3852
3872
|
static get style() { return RoadCardStyle0; }
|
|
@@ -10593,7 +10613,7 @@ class Carousel {
|
|
|
10593
10613
|
});
|
|
10594
10614
|
}
|
|
10595
10615
|
render() {
|
|
10596
|
-
return (hAsync(Host, { key: '
|
|
10616
|
+
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 })))));
|
|
10597
10617
|
}
|
|
10598
10618
|
get el() { return getElement(this); }
|
|
10599
10619
|
static get watchers() { return {
|
|
@@ -10644,10 +10664,10 @@ class CarouselItem {
|
|
|
10644
10664
|
registerInstance(this, hostRef);
|
|
10645
10665
|
}
|
|
10646
10666
|
render() {
|
|
10647
|
-
return (hAsync(Host, { key: '
|
|
10667
|
+
return (hAsync(Host, { key: 'ad1fcbb1419b1ca05ddfbd0d398c5fc2a7b4e55c', class: {
|
|
10648
10668
|
'swiper-slide': true,
|
|
10649
10669
|
'swiper-zoom-container': true,
|
|
10650
|
-
} }, hAsync("slot", { key: '
|
|
10670
|
+
} }, hAsync("slot", { key: 'e38a514a6965db10c79e5ece9ef7bbc273a32fe7' })));
|
|
10651
10671
|
}
|
|
10652
10672
|
static get style() { return RoadCarouselItemStyle0; }
|
|
10653
10673
|
static get cmpMeta() { return {
|
|
@@ -10738,7 +10758,7 @@ class Checkbox {
|
|
|
10738
10758
|
const labelId = this.checkboxId + '-label';
|
|
10739
10759
|
const inverseClass = this.inverse && 'form-checkbox-inverse';
|
|
10740
10760
|
const isInvalidClass = this.error !== undefined && !this.checked && this.error !== '' ? 'is-invalid' : '';
|
|
10741
|
-
return (hAsync(Host, { key: '
|
|
10761
|
+
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)));
|
|
10742
10762
|
}
|
|
10743
10763
|
static get watchers() { return {
|
|
10744
10764
|
"checked": ["checkedChanged"]
|
|
@@ -10796,7 +10816,7 @@ class Chip {
|
|
|
10796
10816
|
}
|
|
10797
10817
|
render() {
|
|
10798
10818
|
const outlineClass = this.outline ? 'chip-outline' : '';
|
|
10799
|
-
return (hAsync(Host, { key: '
|
|
10819
|
+
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 })));
|
|
10800
10820
|
}
|
|
10801
10821
|
static get style() { return RoadChipStyle0; }
|
|
10802
10822
|
static get cmpMeta() { return {
|
|
@@ -10825,7 +10845,7 @@ class Col {
|
|
|
10825
10845
|
registerInstance(this, hostRef);
|
|
10826
10846
|
}
|
|
10827
10847
|
render() {
|
|
10828
|
-
return (hAsync("slot", { key: '
|
|
10848
|
+
return (hAsync("slot", { key: '31d1c2466605d958b1e09d2a3560df534e27fcfb' }));
|
|
10829
10849
|
}
|
|
10830
10850
|
static get style() { return RoadColStyle0; }
|
|
10831
10851
|
static get cmpMeta() { return {
|
|
@@ -10875,7 +10895,7 @@ class Collapse {
|
|
|
10875
10895
|
const isOpenClass = this.isOpen ? 'collapse-open' : '';
|
|
10876
10896
|
const buttonText = this.isOpen ? this.showLess : this.showMore;
|
|
10877
10897
|
const centerClass = this.centered ? 'collapse-btn-centered' : '';
|
|
10878
|
-
return (hAsync(Host, { key: '
|
|
10898
|
+
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))));
|
|
10879
10899
|
}
|
|
10880
10900
|
static get style() { return RoadCollapseStyle0; }
|
|
10881
10901
|
static get cmpMeta() { return {
|
|
@@ -10912,7 +10932,7 @@ class ContentCard {
|
|
|
10912
10932
|
}
|
|
10913
10933
|
render() {
|
|
10914
10934
|
const insetImageClass = this.insetImage ? '' : 'content-card-image';
|
|
10915
|
-
return (hAsync(Host, { key: '
|
|
10935
|
+
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' })))));
|
|
10916
10936
|
}
|
|
10917
10937
|
static get style() { return RoadContentCardStyle0; }
|
|
10918
10938
|
static get cmpMeta() { return {
|
|
@@ -11072,7 +11092,7 @@ class Counter {
|
|
|
11072
11092
|
}
|
|
11073
11093
|
render() {
|
|
11074
11094
|
const dataCi = this.isDustbinVisible ? "road-dustbin" : "";
|
|
11075
|
-
return (hAsync("road-input-group", { key: '
|
|
11095
|
+
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" }))));
|
|
11076
11096
|
}
|
|
11077
11097
|
get el() { return getElement(this); }
|
|
11078
11098
|
static get watchers() { return {
|
|
@@ -11188,11 +11208,11 @@ class Dialog {
|
|
|
11188
11208
|
break;
|
|
11189
11209
|
}
|
|
11190
11210
|
}
|
|
11191
|
-
return (hAsync(Host, { key: '
|
|
11211
|
+
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
|
|
11192
11212
|
? hAsync("button", { type: "button", class: "dialog-close", onClick: this.onClick, "aria-label": "Close" }, hAsync("road-icon", { icon: navigationClose, "aria-hidden": "true" }))
|
|
11193
|
-
: ''), hAsync("div", { key: '
|
|
11213
|
+
: ''), hAsync("div", { key: '787c2b4a2791f0098424159f1a1f1462973d7f88', class: "dialog-body" }, this.color !== undefined
|
|
11194
11214
|
? hAsync("road-icon", { class: "dialog-icon", part: "dialog-icon", color: this.color, icon: icon, "aria-hidden": "true" })
|
|
11195
|
-
: '', hAsync("h2", { key: '
|
|
11215
|
+
: '', 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' }))))));
|
|
11196
11216
|
}
|
|
11197
11217
|
get el() { return getElement(this); }
|
|
11198
11218
|
static get style() { return RoadDialogStyle0; }
|
|
@@ -11342,21 +11362,18 @@ class Drawer {
|
|
|
11342
11362
|
item.addEventListener('click', () => this.close());
|
|
11343
11363
|
});
|
|
11344
11364
|
}
|
|
11345
|
-
hasFooterContent() {
|
|
11346
|
-
const footerSlot = this.el.querySelector('[slot="footer"]');
|
|
11347
|
-
return footerSlot !== null && footerSlot.childElementCount > 0;
|
|
11348
|
-
}
|
|
11349
11365
|
render() {
|
|
11366
|
+
var _a, _b, _c;
|
|
11350
11367
|
const drawerIsOpenClass = this.isOpen ? 'drawer-open' : '';
|
|
11351
11368
|
const inverseHeaderClass = this.hasInverseHeader ? 'drawer-header-inverse' : '';
|
|
11352
|
-
const ariaLabel = this.ariaLabel !==
|
|
11353
|
-
const ariaLabelBack = this.ariaLabelBack !==
|
|
11354
|
-
const ariaLabelClose = this.ariaLabelClose !==
|
|
11355
|
-
const drawerDelimiterClass = this.drawerTitle
|
|
11356
|
-
const backIconElement = this.hasBackIcon ? hAsync("button", { type: "button", class: "drawer-action", "aria-label":
|
|
11357
|
-
const closeIconElement = this.hasCloseIcon ? hAsync("button", { type: "button", class: "drawer-close", onClick: this.onClick, "aria-label":
|
|
11358
|
-
const drawerWidthValue = this.position === 'bottom' ? '100%' : this.drawerWidth
|
|
11359
|
-
return (hAsync(Host, { key: '
|
|
11369
|
+
const ariaLabel = (_a = this.ariaLabel) !== null && _a !== void 0 ? _a : 'drawer';
|
|
11370
|
+
const ariaLabelBack = (_b = this.ariaLabelBack) !== null && _b !== void 0 ? _b : 'Back';
|
|
11371
|
+
const ariaLabelClose = (_c = this.ariaLabelClose) !== null && _c !== void 0 ? _c : 'Close';
|
|
11372
|
+
const drawerDelimiterClass = this.drawerTitle && !this.hasInverseHeader ? 'drawer-delimiter' : '';
|
|
11373
|
+
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;
|
|
11374
|
+
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;
|
|
11375
|
+
const drawerWidthValue = this.position === 'bottom' ? '100%' : `${this.drawerWidth}px`;
|
|
11376
|
+
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" }))))));
|
|
11360
11377
|
}
|
|
11361
11378
|
get el() { return getElement(this); }
|
|
11362
11379
|
static get watchers() { return {
|
|
@@ -11416,7 +11433,7 @@ class Dropdown$1 {
|
|
|
11416
11433
|
const positionClass = this.position ? `position-${this.position}` : '';
|
|
11417
11434
|
const dropdownClass = this.position ? `dropdown-${this.position}` : '';
|
|
11418
11435
|
const directionClass = this.direction ? `direction-${this.direction}` : '';
|
|
11419
|
-
return (hAsync("details", { key: '
|
|
11436
|
+
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" }))));
|
|
11420
11437
|
}
|
|
11421
11438
|
get el() { return getElement(this); }
|
|
11422
11439
|
static get style() { return RoadDropdownStyle0; }
|
|
@@ -11472,7 +11489,7 @@ class Dropdown {
|
|
|
11472
11489
|
this.isOpen = false;
|
|
11473
11490
|
}
|
|
11474
11491
|
render() {
|
|
11475
|
-
return (hAsync("details", { key: '
|
|
11492
|
+
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" }))));
|
|
11476
11493
|
}
|
|
11477
11494
|
get el() { return getElement(this); }
|
|
11478
11495
|
static get style() { return RoadProfilDropdownStyle0; }
|
|
@@ -11536,7 +11553,7 @@ class Duration {
|
|
|
11536
11553
|
this.isOpen = false;
|
|
11537
11554
|
}
|
|
11538
11555
|
render() {
|
|
11539
|
-
return (hAsync("road-drawer", { key: '
|
|
11556
|
+
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 })))))))));
|
|
11540
11557
|
}
|
|
11541
11558
|
get el() { return getElement(this); }
|
|
11542
11559
|
static get style() { return RoadDurationStyle0; }
|
|
@@ -11582,7 +11599,7 @@ class Flap {
|
|
|
11582
11599
|
}
|
|
11583
11600
|
render() {
|
|
11584
11601
|
const colorClass = this.filled ? `flap-${this.color}-filled` : `flap-${this.color}`;
|
|
11585
|
-
return (hAsync(Host, { key: '
|
|
11602
|
+
return (hAsync(Host, { key: '3070a00a39088bc22f27b1e97a4aa635bc27c34d', class: `${colorClass} flap-${this.size}` }, hAsync("slot", { key: 'd2c0af9309ce6200b5055a152f26cea71e3c859f' })));
|
|
11586
11603
|
}
|
|
11587
11604
|
static get style() { return RoadFlapStyle0; }
|
|
11588
11605
|
static get cmpMeta() { return {
|
|
@@ -11628,7 +11645,7 @@ class GlobalNavigation {
|
|
|
11628
11645
|
this.selectedTabChanged();
|
|
11629
11646
|
}
|
|
11630
11647
|
render() {
|
|
11631
|
-
return (hAsync(Host, { key: '
|
|
11648
|
+
return (hAsync(Host, { key: 'b9dc9e434336aac0badabc03361dee0536ca1382', role: "application" }, hAsync("slot", { key: 'b4d9e5ec254a413489b81b720bd20f5ce18d9da4' })));
|
|
11632
11649
|
}
|
|
11633
11650
|
static get watchers() { return {
|
|
11634
11651
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -11776,7 +11793,7 @@ class GlobalNavigationV2 {
|
|
|
11776
11793
|
this.selectedTabChanged();
|
|
11777
11794
|
}
|
|
11778
11795
|
render() {
|
|
11779
|
-
return (hAsync(Host, { key: '
|
|
11796
|
+
return (hAsync(Host, { key: 'c9d5417b5d92177482a620e7baa5879fa7d04731', role: "application" }, hAsync("slot", { key: '6d189aef035de7d1816328f150e3402582b97bd7' })));
|
|
11780
11797
|
}
|
|
11781
11798
|
get host() { return getElement(this); }
|
|
11782
11799
|
static get watchers() { return {
|
|
@@ -11806,7 +11823,7 @@ class Grid {
|
|
|
11806
11823
|
registerInstance(this, hostRef);
|
|
11807
11824
|
}
|
|
11808
11825
|
render() {
|
|
11809
|
-
return (hAsync("slot", { key: '
|
|
11826
|
+
return (hAsync("slot", { key: 'afda2c7ec410ce0c1c06b12091a1416394a3b506' }));
|
|
11810
11827
|
}
|
|
11811
11828
|
static get style() { return RoadGridStyle0; }
|
|
11812
11829
|
static get cmpMeta() { return {
|
|
@@ -11909,7 +11926,7 @@ class Icon {
|
|
|
11909
11926
|
const rotateClass = this.rotate ? `icon-rotate-${this.rotate}` : '';
|
|
11910
11927
|
// Ajouter une classe "default" si aucune des valeurs n'est définie
|
|
11911
11928
|
const classes = [colorClass, sizeClass, rotateClass].filter(Boolean).join(' ');
|
|
11912
|
-
return (hAsync(Host, { key: '
|
|
11929
|
+
return (hAsync(Host, { key: '1da1702db901bcfb80638d9ae30a8c5cc4a2ac26', class: classes, "aria-hidden": "true" }, this.svgContent !== ''
|
|
11913
11930
|
? hAsync("div", { class: "icon-inner", innerHTML: this.svgContent })
|
|
11914
11931
|
: hAsync("div", { class: "icon-inner" })));
|
|
11915
11932
|
}
|
|
@@ -12031,7 +12048,7 @@ class Illustration {
|
|
|
12031
12048
|
render() {
|
|
12032
12049
|
const sizeClass = this.size !== undefined ? `illustration-${this.size}` : '';
|
|
12033
12050
|
const rotateClass = this.rotate !== undefined ? `illustration-rotate-${this.rotate}` : '';
|
|
12034
|
-
return (hAsync(Host, { key: '
|
|
12051
|
+
return (hAsync(Host, { key: '0c1d3f02b235f7f69dbdca9969fd3a637929e0bd', class: `${sizeClass} ${rotateClass}`, "aria-hidden": "true", role: "img" }, ((this.illustrationSvgContent !== '')
|
|
12035
12052
|
? hAsync("div", { class: "icon-inner", innerHTML: this.illustrationSvgContent })
|
|
12036
12053
|
: hAsync("div", { class: "icon-inner" }))));
|
|
12037
12054
|
}
|
|
@@ -12134,7 +12151,7 @@ class Img {
|
|
|
12134
12151
|
}
|
|
12135
12152
|
render() {
|
|
12136
12153
|
const placeholder = this.loadSrc !== undefined ? '' : 'placeholder';
|
|
12137
|
-
return (hAsync(Host, { key: '
|
|
12154
|
+
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" })));
|
|
12138
12155
|
}
|
|
12139
12156
|
get el() { return getElement(this); }
|
|
12140
12157
|
static get watchers() { return {
|
|
@@ -29528,7 +29545,7 @@ class Input {
|
|
|
29528
29545
|
const hasValueClass = this.value !== '' && this.value !== null ? 'has-value' : '';
|
|
29529
29546
|
const lessLabelClass = this.label !== '' ? '' : 'less-label';
|
|
29530
29547
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
29531
|
-
return (hAsync(Host, { key: '
|
|
29548
|
+
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" })));
|
|
29532
29549
|
}
|
|
29533
29550
|
static get watchers() { return {
|
|
29534
29551
|
"debounce": ["debounceChanged"],
|
|
@@ -29615,7 +29632,7 @@ class InputGroup {
|
|
|
29615
29632
|
? `size-${this.el.querySelector('road-input').sizes}`
|
|
29616
29633
|
: '';
|
|
29617
29634
|
const disabledClass = this.disabled ? 'is-disabled' : '';
|
|
29618
|
-
return (hAsync("div", { key: '
|
|
29635
|
+
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" }))));
|
|
29619
29636
|
}
|
|
29620
29637
|
get el() { return getElement(this); }
|
|
29621
29638
|
static get watchers() { return {
|
|
@@ -29695,13 +29712,13 @@ class Item {
|
|
|
29695
29712
|
target,
|
|
29696
29713
|
};
|
|
29697
29714
|
const showDetail = detail !== undefined && detail;
|
|
29698
|
-
return (hAsync(Host, { key: '
|
|
29715
|
+
return (hAsync(Host, { key: '9fb4b35e594ec2393232ad0a9403e279e2e2889c', "aria-disabled": disabled ? 'true' : null, class: {
|
|
29699
29716
|
[`item-lines-${lines}`]: lines !== undefined,
|
|
29700
|
-
} }, hAsync(TagType, Object.assign({ key: '
|
|
29717
|
+
} }, hAsync(TagType, Object.assign({ key: '9fba47364f496d51e09e3b2a5a92dd00ef71ff87' }, attrs, { class: {
|
|
29701
29718
|
'item-native': true,
|
|
29702
29719
|
'item-active': this.active,
|
|
29703
29720
|
[`layout-${layout}`]: layout !== undefined,
|
|
29704
|
-
}, part: "native", disabled: disabled }), hAsync("slot", { key: '
|
|
29721
|
+
}, 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" })))));
|
|
29705
29722
|
}
|
|
29706
29723
|
get el() { return getElement(this); }
|
|
29707
29724
|
static get style() { return RoadItemStyle0; }
|
|
@@ -29742,7 +29759,7 @@ class Label {
|
|
|
29742
29759
|
registerInstance(this, hostRef);
|
|
29743
29760
|
}
|
|
29744
29761
|
render() {
|
|
29745
|
-
return (hAsync("slot", { key: '
|
|
29762
|
+
return (hAsync("slot", { key: '3ba99679bcd840c743cbc724843909bd267d0ab2' }));
|
|
29746
29763
|
}
|
|
29747
29764
|
static get style() { return RoadLabelStyle0; }
|
|
29748
29765
|
static get cmpMeta() { return {
|
|
@@ -29767,9 +29784,9 @@ class List {
|
|
|
29767
29784
|
}
|
|
29768
29785
|
render() {
|
|
29769
29786
|
const { lines } = this;
|
|
29770
|
-
return (hAsync(Host, { key: '
|
|
29787
|
+
return (hAsync(Host, { key: 'ddd543051e3de681b5672d7ab87ebe742858da9c', class: {
|
|
29771
29788
|
[`list-lines-${lines}`]: lines !== undefined,
|
|
29772
|
-
} }, hAsync("slot", { key: '
|
|
29789
|
+
} }, hAsync("slot", { key: '56e04b9869dc48d1011e422c57ec2578e61301c6' })));
|
|
29773
29790
|
}
|
|
29774
29791
|
static get style() { return RoadListStyle0; }
|
|
29775
29792
|
static get cmpMeta() { return {
|
|
@@ -29854,7 +29871,7 @@ class Modal {
|
|
|
29854
29871
|
const modalIsOpenClass = this.isOpen ? 'modal-open' : '';
|
|
29855
29872
|
const inverseHeaderClass = this.hasInverseHeader ? 'modal-header-inverse' : '';
|
|
29856
29873
|
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" })) : '';
|
|
29857
|
-
return (hAsync(Host, { key: '
|
|
29874
|
+
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' }))))));
|
|
29858
29875
|
}
|
|
29859
29876
|
get el() { return getElement(this); }
|
|
29860
29877
|
static get style() { return RoadModalStyle0; }
|
|
@@ -29905,7 +29922,7 @@ class Navbar {
|
|
|
29905
29922
|
this.selectedTabChanged();
|
|
29906
29923
|
}
|
|
29907
29924
|
render() {
|
|
29908
|
-
return (hAsync(Host, { key: '
|
|
29925
|
+
return (hAsync(Host, { key: '1413fa96200fad5a83abd97f951c46b6a6a25777', role: "menubar" }, hAsync("slot", { key: 'c6f91f0af00788a5708cb95f44789938c7d6eeda' })));
|
|
29909
29926
|
}
|
|
29910
29927
|
static get watchers() { return {
|
|
29911
29928
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -29991,11 +30008,11 @@ class NavbarItem$1 {
|
|
|
29991
30008
|
rel,
|
|
29992
30009
|
target,
|
|
29993
30010
|
};
|
|
29994
|
-
return (hAsync(Host, { key: '
|
|
30011
|
+
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: {
|
|
29995
30012
|
'navbar-item': true,
|
|
29996
30013
|
'tab-selected': selected,
|
|
29997
30014
|
'tab-disabled': disabled,
|
|
29998
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
30015
|
+
} }, 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' })))));
|
|
29999
30016
|
}
|
|
30000
30017
|
get el() { return getElement(this); }
|
|
30001
30018
|
static get watchers() { return {
|
|
@@ -30088,11 +30105,11 @@ class NavbarItem {
|
|
|
30088
30105
|
rel,
|
|
30089
30106
|
target,
|
|
30090
30107
|
};
|
|
30091
|
-
return (hAsync(Host, { key: '
|
|
30108
|
+
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: {
|
|
30092
30109
|
'navbar-item': true,
|
|
30093
30110
|
'tab-selected': selected,
|
|
30094
30111
|
'tab-disabled': disabled,
|
|
30095
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
30112
|
+
} }, 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' })))));
|
|
30096
30113
|
}
|
|
30097
30114
|
get el() { return getElement(this); }
|
|
30098
30115
|
static get watchers() { return {
|
|
@@ -30151,7 +30168,7 @@ class NavbarV2 {
|
|
|
30151
30168
|
}
|
|
30152
30169
|
render() {
|
|
30153
30170
|
const compactClass = this.compact ? 'compact' : '';
|
|
30154
|
-
return (hAsync(Host, { key: '
|
|
30171
|
+
return (hAsync(Host, { key: 'e4fe4a407edcf036a5f3da534cc88eb4b863ab71', role: "menubar", class: `${compactClass}` }, hAsync("slot", { key: 'ef7df2d2775c533592267b1b420e522e23836d7e' })));
|
|
30155
30172
|
}
|
|
30156
30173
|
static get watchers() { return {
|
|
30157
30174
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -30274,10 +30291,10 @@ class PlateNumber {
|
|
|
30274
30291
|
render() {
|
|
30275
30292
|
const value = this.getValue();
|
|
30276
30293
|
const motorbikeClass = this.motorbike ? 'motorbike-plate' : '';
|
|
30277
|
-
return (hAsync("road-input-group", { key: '
|
|
30294
|
+
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
|
|
30278
30295
|
.filter(item => item.country === this.country)[0].letter))), this.motorbike
|
|
30279
30296
|
? (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 }))
|
|
30280
|
-
: (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: '
|
|
30297
|
+
: (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" }))));
|
|
30281
30298
|
}
|
|
30282
30299
|
static get watchers() { return {
|
|
30283
30300
|
"value": ["valueChanged"]
|
|
@@ -30345,7 +30362,7 @@ class ProgressBar {
|
|
|
30345
30362
|
const fullwidth = this.fullwidth ? 'progress-element-info-full-width' : 'progress-element-info';
|
|
30346
30363
|
const light = this.light ? 'progress progress-light' : 'progress';
|
|
30347
30364
|
const animation = this.animation ? 'animation' : '';
|
|
30348
|
-
return (hAsync(Host, { key: '
|
|
30365
|
+
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))));
|
|
30349
30366
|
}
|
|
30350
30367
|
static get style() { return RoadProgressStyle0; }
|
|
30351
30368
|
static get cmpMeta() { return {
|
|
@@ -30386,7 +30403,7 @@ class ProgressIndicatorVertical {
|
|
|
30386
30403
|
registerInstance(this, hostRef);
|
|
30387
30404
|
}
|
|
30388
30405
|
render() {
|
|
30389
|
-
return (hAsync(Host, { key: '
|
|
30406
|
+
return (hAsync(Host, { key: '1316219f8843bbe67b9d108e7855db69251025fa' }, hAsync("nav", { key: '6b2ff0e552c124364a5cdb8419af4c3cf6489a2a' }, hAsync("ul", { key: '279fa6381d7cc7ec44614c3a2611171d1b728a92' }, hAsync("li", { key: '9b4b57a7285a812c7a992c9e35e145f703de9c5b' }, hAsync("slot", { key: '9adfddec33f1ddd9658f2ce50802d193cf880a36' }))))));
|
|
30390
30407
|
}
|
|
30391
30408
|
static get style() { return RoadProgressIndicatorVerticalStyle0; }
|
|
30392
30409
|
static get cmpMeta() { return {
|
|
@@ -30410,7 +30427,7 @@ class ProgressIndicatorVerticalItem {
|
|
|
30410
30427
|
registerInstance(this, hostRef);
|
|
30411
30428
|
}
|
|
30412
30429
|
render() {
|
|
30413
|
-
return (hAsync(Host, { key: '
|
|
30430
|
+
return (hAsync(Host, { key: '3b0c10665a39471c80fd033bc9ac82fe2a5af21b' }, hAsync("slot", { key: '9afd4c52e6b4b5de87e8283a90d44f89cd608c2e' })));
|
|
30414
30431
|
}
|
|
30415
30432
|
static get style() { return RoadProgressIndicatorVerticalItemStyle0; }
|
|
30416
30433
|
static get cmpMeta() { return {
|
|
@@ -30439,7 +30456,7 @@ class ProgressTracker {
|
|
|
30439
30456
|
registerInstance(this, hostRef);
|
|
30440
30457
|
}
|
|
30441
30458
|
render() {
|
|
30442
|
-
return (hAsync(Host, { key: '
|
|
30459
|
+
return (hAsync(Host, { key: '7d98761f2a2e832defc4a3be6f8ba55ee84e63e5' }, hAsync("nav", { key: 'd7b060564d6010f2cf6258be342337f38d21f465' }, hAsync("ul", { key: '1d738d9f900a278a9c1da0a90fd851cd859af5d7' }, hAsync("li", { key: '07652bae417a2e3654f70751330fdf72bfa2cbfc' }, hAsync("slot", { key: 'd1e1dccc15da4d4b578ed309f63843dc68e0e6d1' }))))));
|
|
30443
30460
|
}
|
|
30444
30461
|
static get style() { return RoadProgressTrackerStyle0; }
|
|
30445
30462
|
static get cmpMeta() { return {
|
|
@@ -30471,7 +30488,7 @@ class ProgressTrackerItem {
|
|
|
30471
30488
|
registerInstance(this, hostRef);
|
|
30472
30489
|
}
|
|
30473
30490
|
render() {
|
|
30474
|
-
return (hAsync(Host, { key: '
|
|
30491
|
+
return (hAsync(Host, { key: 'ad50a5a48f22062d91b353cdc827b0bfd5c0aec2' }, hAsync("slot", { key: '06013bfcc1ae31542a228fc341905dd47e67bbce' })));
|
|
30475
30492
|
}
|
|
30476
30493
|
static get style() { return RoadProgressTrackerItemStyle0; }
|
|
30477
30494
|
static get cmpMeta() { return {
|
|
@@ -30564,7 +30581,7 @@ class Radio {
|
|
|
30564
30581
|
const inverseClass = this.inverse && 'form-radio-inverse';
|
|
30565
30582
|
const isInvalidClass = this.error ? 'is-invalid' : '';
|
|
30566
30583
|
const inlineClass = this.inline ? 'form-radio-inline' : '';
|
|
30567
|
-
return (hAsync(Host, { key: '
|
|
30584
|
+
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))));
|
|
30568
30585
|
}
|
|
30569
30586
|
get el() { return getElement(this); }
|
|
30570
30587
|
static get style() { return RoadRadioStyle0; }
|
|
@@ -30658,7 +30675,7 @@ class RadioGroup {
|
|
|
30658
30675
|
render() {
|
|
30659
30676
|
const labelId = `${this.radioGroupId}-label`;
|
|
30660
30677
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
30661
|
-
return (hAsync(Host, { key: '
|
|
30678
|
+
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)));
|
|
30662
30679
|
}
|
|
30663
30680
|
get el() { return getElement(this); }
|
|
30664
30681
|
static get watchers() { return {
|
|
@@ -30788,14 +30805,14 @@ class Range {
|
|
|
30788
30805
|
render() {
|
|
30789
30806
|
const value = this.getValue();
|
|
30790
30807
|
const datalist = this.showLabels !== undefined ? `tickmarks` : "";
|
|
30791
|
-
return (hAsync(Host, { key: '
|
|
30808
|
+
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: {
|
|
30792
30809
|
"--min": this.min,
|
|
30793
30810
|
"--max": this.max,
|
|
30794
30811
|
"--value": value,
|
|
30795
30812
|
"--background-color": this.disabled
|
|
30796
30813
|
? "var(--road-surface-disabled)"
|
|
30797
30814
|
: "initial",
|
|
30798
|
-
} }, this.showValue && hAsync("output", { key: '
|
|
30815
|
+
} }, 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" })))));
|
|
30799
30816
|
}
|
|
30800
30817
|
get el() { return getElement(this); }
|
|
30801
30818
|
static get watchers() { return {
|
|
@@ -30864,7 +30881,7 @@ class Rating {
|
|
|
30864
30881
|
const sizeRatingStarsClass = this.size !== undefined ? `rating-stars rating-stars--${this.size}` : 'rating-stars';
|
|
30865
30882
|
const sizeRatingNumberClass = this.size !== undefined ? `rating-number rating-number--${this.size}` : 'rating-number';
|
|
30866
30883
|
const readOnly = this.readonly == true ? `readonly` : '';
|
|
30867
|
-
return (hAsync(Host, { key: '
|
|
30884
|
+
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}`, ")")));
|
|
30868
30885
|
}
|
|
30869
30886
|
static get style() { return RoadRatingStyle0; }
|
|
30870
30887
|
static get cmpMeta() { return {
|
|
@@ -30983,7 +31000,7 @@ class RoadAreaCode {
|
|
|
30983
31000
|
const labelId = this.selectId + '-label';
|
|
30984
31001
|
const valueId = this.selectId + '-value';
|
|
30985
31002
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
30986
|
-
return (hAsync(Host, { key: '
|
|
31003
|
+
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)));
|
|
30987
31004
|
}
|
|
30988
31005
|
static get watchers() { return {
|
|
30989
31006
|
"value": ["valueChanged"]
|
|
@@ -32408,7 +32425,7 @@ class RoadPhoneNumberInput {
|
|
|
32408
32425
|
const valueId = selectId + '-value';
|
|
32409
32426
|
const isInvalidClass = this.errorMessage.length ? 'is-invalid' : '';
|
|
32410
32427
|
const isErrorClass = this.errorMessage.length ? 'is-error' : '';
|
|
32411
|
-
return (hAsync(Host, { key: '
|
|
32428
|
+
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 }))));
|
|
32412
32429
|
}
|
|
32413
32430
|
get el() { return getElement(this); }
|
|
32414
32431
|
static get watchers() { return {
|
|
@@ -32451,7 +32468,7 @@ class Row {
|
|
|
32451
32468
|
registerInstance(this, hostRef);
|
|
32452
32469
|
}
|
|
32453
32470
|
render() {
|
|
32454
|
-
return (hAsync(Host, { key: '
|
|
32471
|
+
return (hAsync(Host, { key: 'cc1ccb0d6235263b21dadefb893c7c6f9b763e1c' }, hAsync("slot", { key: '33fd4f892b78f389200380580fc4e1ac1e4d429e' })));
|
|
32455
32472
|
}
|
|
32456
32473
|
static get style() { return RoadRowStyle0; }
|
|
32457
32474
|
static get cmpMeta() { return {
|
|
@@ -32523,10 +32540,10 @@ class SegmentedButton {
|
|
|
32523
32540
|
render() {
|
|
32524
32541
|
const { tabIndex, selected, tab } = this;
|
|
32525
32542
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
32526
|
-
return (hAsync(Host, { key: '
|
|
32543
|
+
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: {
|
|
32527
32544
|
'tab-selected': selected,
|
|
32528
32545
|
[`${sizeClass}`]: true,
|
|
32529
|
-
} }, hAsync("span", { key: '
|
|
32546
|
+
} }, hAsync("span", { key: '938f5637c68a5cb7a7bc6ee2acaf35587f3643e3', tabIndex: -1, class: "button-native", part: "native", "aria-hidden": "true" }, hAsync("slot", { key: '62b81b701cf7cf4ce757e6f8d52e3729a985c4e5' }))));
|
|
32530
32547
|
}
|
|
32531
32548
|
get el() { return getElement(this); }
|
|
32532
32549
|
static get style() { return RoadSegmentedButtonStyle0; }
|
|
@@ -32647,7 +32664,7 @@ class Select {
|
|
|
32647
32664
|
const labelId = this.selectId + '-label';
|
|
32648
32665
|
const hasValueClass = this.value && this.value !== '' ? 'has-value' : '';
|
|
32649
32666
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
32650
|
-
return (hAsync(Host, { key: '
|
|
32667
|
+
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)));
|
|
32651
32668
|
}
|
|
32652
32669
|
static get watchers() { return {
|
|
32653
32670
|
"value": ["valueChanged"]
|
|
@@ -34568,8 +34585,8 @@ class SelectFilter {
|
|
|
34568
34585
|
const options = this.filteredOptions;
|
|
34569
34586
|
const isActive = this.isActive ? 'true' : 'false';
|
|
34570
34587
|
const notActive = this.isActive ? '' : 'not-active';
|
|
34571
|
-
return (hAsync(Host, { key: '
|
|
34572
|
-
hAsync("ul", { key: '
|
|
34588
|
+
return (hAsync(Host, { key: '754363e1da719022e5d4e2a9bed9e45a307605fb', "is-active": isActive }, hAsync("slot", { key: '6ed491805215e92124fb0de84b8c4edea15a1bab' }), this.isOpen &&
|
|
34589
|
+
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 }))))));
|
|
34573
34590
|
}
|
|
34574
34591
|
get el() { return getElement(this); }
|
|
34575
34592
|
static get style() { return RoadSelectFilterStyle0; }
|
|
@@ -34599,7 +34616,7 @@ class Skeleton {
|
|
|
34599
34616
|
registerInstance(this, hostRef);
|
|
34600
34617
|
}
|
|
34601
34618
|
render() {
|
|
34602
|
-
return (hAsync("span", { key: '
|
|
34619
|
+
return (hAsync("span", { key: 'aa9286d647036cc908db034b7abae677ac5db4c5' }, "\u00A0"));
|
|
34603
34620
|
}
|
|
34604
34621
|
static get style() { return RoadSkeletonStyle0; }
|
|
34605
34622
|
static get cmpMeta() { return {
|
|
@@ -34630,7 +34647,7 @@ class Spinner {
|
|
|
34630
34647
|
render() {
|
|
34631
34648
|
const sizeClass = this.size !== undefined ? `spinner spinner--${this.size}` : 'spinner';
|
|
34632
34649
|
const colorClass = this.size !== undefined ? `spinner-circle spinner-circle--${this.color}` : 'spinner-circle';
|
|
34633
|
-
return (hAsync("svg", { key: '
|
|
34650
|
+
return (hAsync("svg", { key: '79f895b55bf34f5b4591f0104f067b1bc29b5840', class: `${sizeClass}`, viewBox: "25 25 50 50" }, hAsync("circle", { key: '333985c957dd76b7694d5717eb64f037018c1613', class: `${colorClass}`, cx: "50", cy: "50", r: "20" })));
|
|
34634
34651
|
}
|
|
34635
34652
|
static get style() { return RoadSpinnerStyle0; }
|
|
34636
34653
|
static get cmpMeta() { return {
|
|
@@ -34680,7 +34697,7 @@ class Stepper {
|
|
|
34680
34697
|
const urlStep1 = this.urlStep1 !== undefined ? `${this.urlStep1}` : '#';
|
|
34681
34698
|
const urlStep2 = this.urlStep2 !== undefined ? `${this.urlStep2}` : '#';
|
|
34682
34699
|
const urlStep3 = this.urlStep3 !== undefined ? `${this.urlStep3}` : '#';
|
|
34683
|
-
return (hAsync(Host, { key: '
|
|
34700
|
+
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" }))))))));
|
|
34684
34701
|
}
|
|
34685
34702
|
static get style() { return RoadProgressIndicatorHorizontalStyle0; }
|
|
34686
34703
|
static get cmpMeta() { return {
|
|
@@ -34782,11 +34799,11 @@ class Switch {
|
|
|
34782
34799
|
}
|
|
34783
34800
|
render() {
|
|
34784
34801
|
const labelId = this.switchId + '-label';
|
|
34785
|
-
const textLabel = hAsync("label", { key: '
|
|
34802
|
+
const textLabel = hAsync("label", { key: '9b8763418ebd696deeaf0f96f0ef3df50233b979', class: "form-switch-label", id: labelId, htmlFor: this.switchId }, this.label);
|
|
34786
34803
|
const colorClass = this.color !== undefined ? 'form-switch-' + this.color : '';
|
|
34787
34804
|
const isSpacedClass = this.isSpaced && 'form-switch-spaced';
|
|
34788
34805
|
const rightSwitchClass = this.hasLeftLabel ? 'form-switch-right' : '';
|
|
34789
|
-
return (hAsync(Host, { key: '
|
|
34806
|
+
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)));
|
|
34790
34807
|
}
|
|
34791
34808
|
static get watchers() { return {
|
|
34792
34809
|
"checked": ["checkedChanged"]
|
|
@@ -34841,9 +34858,9 @@ class Tab {
|
|
|
34841
34858
|
}
|
|
34842
34859
|
render() {
|
|
34843
34860
|
const { tab, active } = this;
|
|
34844
|
-
return (hAsync(Host, { key: '
|
|
34861
|
+
return (hAsync(Host, { key: '6187e82afbc19467bacecff9dab022208d82d83e', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
34845
34862
|
'tab-hidden': !active,
|
|
34846
|
-
} }, hAsync("slot", { key: '
|
|
34863
|
+
} }, hAsync("slot", { key: 'c3899fd5fd831d2904c77263f5b6ef795d594e9b' })));
|
|
34847
34864
|
}
|
|
34848
34865
|
get el() { return getElement(this); }
|
|
34849
34866
|
static get style() { return RoadTabStyle0; }
|
|
@@ -34903,11 +34920,11 @@ class TabBar {
|
|
|
34903
34920
|
}
|
|
34904
34921
|
render() {
|
|
34905
34922
|
const { expand, center, secondary } = this;
|
|
34906
|
-
return (hAsync(Host, { key: '
|
|
34923
|
+
return (hAsync(Host, { key: '476e362d19cd6d3eac7379cb28a0579f8d165128', role: "tablist", class: {
|
|
34907
34924
|
'tab-expand': expand,
|
|
34908
34925
|
'tab-center': center,
|
|
34909
34926
|
'tab-secondary': secondary,
|
|
34910
|
-
} }, hAsync("slot", { key: '
|
|
34927
|
+
} }, hAsync("slot", { key: '089d0ced1753e49bbf40a2bed3b6de3ce70cde7a' })));
|
|
34911
34928
|
}
|
|
34912
34929
|
get el() { return getElement(this); }
|
|
34913
34930
|
static get watchers() { return {
|
|
@@ -35007,7 +35024,7 @@ class TabButton {
|
|
|
35007
35024
|
rel,
|
|
35008
35025
|
target,
|
|
35009
35026
|
};
|
|
35010
|
-
return (hAsync(Host, { key: '
|
|
35027
|
+
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: {
|
|
35011
35028
|
'tab-selected': selected,
|
|
35012
35029
|
'tab-has-label': hasLabel,
|
|
35013
35030
|
'tab-has-icon': hasIcon,
|
|
@@ -35015,7 +35032,7 @@ class TabButton {
|
|
|
35015
35032
|
'tab-has-icon-only': hasIcon && !hasLabel,
|
|
35016
35033
|
[`tab-layout-${layout}`]: true,
|
|
35017
35034
|
'tab-disabled': disabled, // Classe CSS pour les styles désactivés
|
|
35018
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
35035
|
+
} }, 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' })))));
|
|
35019
35036
|
}
|
|
35020
35037
|
get el() { return getElement(this); }
|
|
35021
35038
|
static get style() { return RoadTabButtonStyle0; }
|
|
@@ -35049,7 +35066,7 @@ class Table {
|
|
|
35049
35066
|
registerInstance(this, hostRef);
|
|
35050
35067
|
}
|
|
35051
35068
|
render() {
|
|
35052
|
-
return (hAsync("slot", { key: '
|
|
35069
|
+
return (hAsync("slot", { key: 'b76d60e60c39e889690419d020151ac7a0b68f08' }));
|
|
35053
35070
|
}
|
|
35054
35071
|
static get style() { return RoadTableStyle0; }
|
|
35055
35072
|
static get cmpMeta() { return {
|
|
@@ -35157,7 +35174,7 @@ class Tabs$1 {
|
|
|
35157
35174
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
35158
35175
|
}
|
|
35159
35176
|
render() {
|
|
35160
|
-
return (hAsync(Host, { key: '
|
|
35177
|
+
return (hAsync(Host, { key: 'ee63f3001e735cc0345f081742b98cc7dda58379', onRoadSegmentedButtonClick: this.onTabClicked }, hAsync("slot", { key: 'ead65e59a9ce47b7ed0034b5e807f41a3f3aae58', name: "top" }), hAsync("slot", { key: '87177efc28c625a4d3e5c893a17ab2ed3be252ef' })));
|
|
35161
35178
|
}
|
|
35162
35179
|
get el() { return getElement(this); }
|
|
35163
35180
|
static get style() { return RoadSegmentedButtonsStyle0; }
|
|
@@ -35293,7 +35310,7 @@ class Tabs {
|
|
|
35293
35310
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
35294
35311
|
}
|
|
35295
35312
|
render() {
|
|
35296
|
-
return (hAsync(Host, { key: '
|
|
35313
|
+
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' }))));
|
|
35297
35314
|
}
|
|
35298
35315
|
get el() { return getElement(this); }
|
|
35299
35316
|
static get style() { return RoadTabsStyle0; }
|
|
@@ -35341,7 +35358,7 @@ class Tag {
|
|
|
35341
35358
|
}
|
|
35342
35359
|
render() {
|
|
35343
35360
|
const contrastClass = this.contrast ? `tag-${this.color} tag-${this.color}-contrast` : `tag-${this.color}`;
|
|
35344
|
-
return (hAsync(Host, { key: '
|
|
35361
|
+
return (hAsync(Host, { key: 'fada54428b148c0572768c9f7f347b7666528f4e', class: `${contrastClass}` }, hAsync("slot", { key: 'e5c53f9a417c064ac4c257a6e5a74bc593c7d5e8' })));
|
|
35345
35362
|
}
|
|
35346
35363
|
static get style() { return RoadTagStyle0; }
|
|
35347
35364
|
static get cmpMeta() { return {
|
|
@@ -35373,7 +35390,7 @@ class Text {
|
|
|
35373
35390
|
}
|
|
35374
35391
|
render() {
|
|
35375
35392
|
const colorClass = this.color !== undefined ? `text-${this.color}` : '';
|
|
35376
|
-
return (hAsync(Host, { key: '
|
|
35393
|
+
return (hAsync(Host, { key: '41de3c220883dbe616d365f940168c46ca079813', class: `${colorClass}` }, hAsync("slot", { key: '4840d935993f294633106ebf2e40ad6ab037b2e3' })));
|
|
35377
35394
|
}
|
|
35378
35395
|
static get style() { return RoadTextStyle0; }
|
|
35379
35396
|
static get cmpMeta() { return {
|
|
@@ -35483,7 +35500,7 @@ class Textarea {
|
|
|
35483
35500
|
const hasValueClass = this.value !== '' ? 'has-value' : '';
|
|
35484
35501
|
const noResizeClass = this.resize == false ? 'no-resize' : '';
|
|
35485
35502
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
35486
|
-
return (hAsync(Host, { key: '
|
|
35503
|
+
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)));
|
|
35487
35504
|
}
|
|
35488
35505
|
static get watchers() { return {
|
|
35489
35506
|
"value": ["valueChanged"]
|
|
@@ -35614,7 +35631,7 @@ class Toast {
|
|
|
35614
35631
|
if (this.color == 'danger') {
|
|
35615
35632
|
this.timeout = 0;
|
|
35616
35633
|
}
|
|
35617
|
-
return (hAsync(Host, { key: '
|
|
35634
|
+
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" }))));
|
|
35618
35635
|
}
|
|
35619
35636
|
static get watchers() { return {
|
|
35620
35637
|
"isOpen": ["isOpenChanged"]
|
|
@@ -35654,7 +35671,7 @@ class Toolbar {
|
|
|
35654
35671
|
}
|
|
35655
35672
|
render() {
|
|
35656
35673
|
const colorClass = this.color !== undefined ? `toolbar-${this.color}` : '';
|
|
35657
|
-
return (hAsync(Host, { key: '
|
|
35674
|
+
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" }))));
|
|
35658
35675
|
}
|
|
35659
35676
|
static get style() { return RoadToolbarStyle0; }
|
|
35660
35677
|
static get cmpMeta() { return {
|
|
@@ -35680,7 +35697,7 @@ class ToolbarAppName {
|
|
|
35680
35697
|
registerInstance(this, hostRef);
|
|
35681
35698
|
}
|
|
35682
35699
|
render() {
|
|
35683
|
-
return (hAsync("div", { key: '
|
|
35700
|
+
return (hAsync("div", { key: '96772b1bc4538e279b0e7d907c95beee244591e3', class: "toolbar-title-page" }, hAsync("slot", { key: '25494eb56d924d9e9b5bb7a66b9d7a8eab44c1f7' })));
|
|
35684
35701
|
}
|
|
35685
35702
|
static get style() { return RoadToolbarTitlePageStyle0; }
|
|
35686
35703
|
static get cmpMeta() { return {
|
|
@@ -35704,7 +35721,7 @@ class ToolbarTitle {
|
|
|
35704
35721
|
registerInstance(this, hostRef);
|
|
35705
35722
|
}
|
|
35706
35723
|
render() {
|
|
35707
|
-
return (hAsync("div", { key: '
|
|
35724
|
+
return (hAsync("div", { key: '9364d8a1ec8f96784727b570787b96765df6d03b', class: "toolbar-title" }, hAsync("slot", { key: '17c2119c82d33ff0eec3bc289edec8911449e8d9' })));
|
|
35708
35725
|
}
|
|
35709
35726
|
static get style() { return RoadToolbarTitleStyle0; }
|
|
35710
35727
|
static get cmpMeta() { return {
|
|
@@ -35733,7 +35750,7 @@ class ToolbarV2 {
|
|
|
35733
35750
|
registerInstance(this, hostRef);
|
|
35734
35751
|
}
|
|
35735
35752
|
render() {
|
|
35736
|
-
return (hAsync(Host, { key: '
|
|
35753
|
+
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" })))));
|
|
35737
35754
|
}
|
|
35738
35755
|
static get style() { return RoadToolbarV2Style0; }
|
|
35739
35756
|
static get cmpMeta() { return {
|
|
@@ -35846,12 +35863,12 @@ class Tooltip {
|
|
|
35846
35863
|
return triggers.includes(triggerType);
|
|
35847
35864
|
}
|
|
35848
35865
|
render() {
|
|
35849
|
-
return (hAsync(Host, { key: '
|
|
35866
|
+
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
|
|
35850
35867
|
,
|
|
35851
|
-
"data-tooltip-position": this.position }, hAsync("slot", { key: '
|
|
35868
|
+
"data-tooltip-position": this.position }, hAsync("slot", { key: '14feedb97350da949b465b67b73ff757e5993125', "aria-describedby": this.tooltipId }), hAsync("div", { key: '991b675659d7b666dd1440229f0daa55a6f6f9de', part: "tooltip", id: this.tooltipId, class: {
|
|
35852
35869
|
tooltip: true,
|
|
35853
35870
|
'tooltip-open': this.isOpen,
|
|
35854
|
-
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, hAsync("slot", { key: '
|
|
35871
|
+
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, hAsync("slot", { key: 'd8595d6dc063b81a775d7f1df551930223105a74', name: "tooltip-content" }))));
|
|
35855
35872
|
}
|
|
35856
35873
|
get el() { return getElement(this); }
|
|
35857
35874
|
static get style() { return RoadTooltipStyle0; }
|
|
@@ -35951,11 +35968,11 @@ class toggle {
|
|
|
35951
35968
|
}
|
|
35952
35969
|
render() {
|
|
35953
35970
|
const labelId = this.toggleId + '-label';
|
|
35954
|
-
const textLabel = hAsync("label", { key: '
|
|
35971
|
+
const textLabel = hAsync("label", { key: 'dc3a609b0330a55fc4f0a7a49afa449c11eeda50', class: "form-toggle-label", id: labelId, htmlFor: this.toggleId }, this.label);
|
|
35955
35972
|
const isSpacedClass = this.isSpaced && 'form-toggle-spaced';
|
|
35956
35973
|
const righttoggleClass = this.hasLeftLabel ? 'form-toggle-right' : '';
|
|
35957
35974
|
const disabledClass = this.disabled ? 'disabled' : '';
|
|
35958
|
-
return (hAsync(Host, { key: '
|
|
35975
|
+
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)));
|
|
35959
35976
|
}
|
|
35960
35977
|
static get watchers() { return {
|
|
35961
35978
|
"checked": ["checkedChanged"]
|
|
@@ -36480,7 +36497,7 @@ var NAMESPACE = (
|
|
|
36480
36497
|
);
|
|
36481
36498
|
|
|
36482
36499
|
/*
|
|
36483
|
-
Stencil Hydrate Runner v4.27.
|
|
36500
|
+
Stencil Hydrate Runner v4.27.1 | MIT Licensed | https://stenciljs.com
|
|
36484
36501
|
*/
|
|
36485
36502
|
var __defProp = Object.defineProperty;
|
|
36486
36503
|
var __export = (target, all) => {
|
|
@@ -36826,19 +36843,19 @@ var MockCustomElementRegistry = class {
|
|
|
36826
36843
|
this.__whenDefined.delete(tagName);
|
|
36827
36844
|
}
|
|
36828
36845
|
}
|
|
36829
|
-
const
|
|
36830
|
-
if (
|
|
36831
|
-
const hosts =
|
|
36846
|
+
const doc = this.win.document;
|
|
36847
|
+
if (doc != null) {
|
|
36848
|
+
const hosts = doc.querySelectorAll(tagName);
|
|
36832
36849
|
hosts.forEach((host) => {
|
|
36833
36850
|
if (upgradedElements.has(host) === false) {
|
|
36834
|
-
tempDisableCallbacks.add(
|
|
36835
|
-
const upgradedCmp = createCustomElement(this,
|
|
36851
|
+
tempDisableCallbacks.add(doc);
|
|
36852
|
+
const upgradedCmp = createCustomElement(this, doc, tagName);
|
|
36836
36853
|
for (let i = 0; i < host.childNodes.length; i++) {
|
|
36837
36854
|
const childNode = host.childNodes[i];
|
|
36838
36855
|
childNode.remove();
|
|
36839
36856
|
upgradedCmp.appendChild(childNode);
|
|
36840
36857
|
}
|
|
36841
|
-
tempDisableCallbacks.delete(
|
|
36858
|
+
tempDisableCallbacks.delete(doc);
|
|
36842
36859
|
if (proxyElements.has(host)) {
|
|
36843
36860
|
proxyElements.set(host, upgradedCmp);
|
|
36844
36861
|
}
|
|
@@ -45282,11 +45299,11 @@ function parseFragment(fragmentContext, html, options) {
|
|
|
45282
45299
|
// src/mock-doc/parse-util.ts
|
|
45283
45300
|
var docParser = /* @__PURE__ */ new WeakMap();
|
|
45284
45301
|
function parseDocumentUtil(ownerDocument, html) {
|
|
45285
|
-
const
|
|
45286
|
-
|
|
45287
|
-
|
|
45288
|
-
|
|
45289
|
-
return
|
|
45302
|
+
const doc = parse(html.trim(), getParser(ownerDocument));
|
|
45303
|
+
doc.documentElement = doc.firstElementChild;
|
|
45304
|
+
doc.head = doc.documentElement.firstElementChild;
|
|
45305
|
+
doc.body = doc.head.nextElementSibling;
|
|
45306
|
+
return doc;
|
|
45290
45307
|
}
|
|
45291
45308
|
function parseFragmentUtil(ownerDocument, html) {
|
|
45292
45309
|
if (typeof html === "string") {
|
|
@@ -45304,9 +45321,9 @@ function getParser(ownerDocument) {
|
|
|
45304
45321
|
}
|
|
45305
45322
|
const treeAdapter = {
|
|
45306
45323
|
createDocument() {
|
|
45307
|
-
const
|
|
45308
|
-
|
|
45309
|
-
return
|
|
45324
|
+
const doc = ownerDocument.createElement("#document" /* DOCUMENT_NODE */);
|
|
45325
|
+
doc["x-mode"] = "no-quirks";
|
|
45326
|
+
return doc;
|
|
45310
45327
|
},
|
|
45311
45328
|
setNodeSourceCodeLocation(node, location2) {
|
|
45312
45329
|
node.sourceCodeLocation = location2;
|
|
@@ -45344,22 +45361,22 @@ function getParser(ownerDocument) {
|
|
|
45344
45361
|
getTemplateContent(templateElement) {
|
|
45345
45362
|
return templateElement.content;
|
|
45346
45363
|
},
|
|
45347
|
-
setDocumentType(
|
|
45348
|
-
let doctypeNode =
|
|
45364
|
+
setDocumentType(doc, name, publicId, systemId) {
|
|
45365
|
+
let doctypeNode = doc.childNodes.find((n) => n.nodeType === 10 /* DOCUMENT_TYPE_NODE */);
|
|
45349
45366
|
if (doctypeNode == null) {
|
|
45350
45367
|
doctypeNode = ownerDocument.createDocumentTypeNode();
|
|
45351
|
-
|
|
45368
|
+
doc.insertBefore(doctypeNode, doc.firstChild);
|
|
45352
45369
|
}
|
|
45353
45370
|
doctypeNode.nodeValue = "!DOCTYPE";
|
|
45354
45371
|
doctypeNode["x-name"] = name;
|
|
45355
45372
|
doctypeNode["x-publicId"] = publicId;
|
|
45356
45373
|
doctypeNode["x-systemId"] = systemId;
|
|
45357
45374
|
},
|
|
45358
|
-
setDocumentMode(
|
|
45359
|
-
|
|
45375
|
+
setDocumentMode(doc, mode) {
|
|
45376
|
+
doc["x-mode"] = mode;
|
|
45360
45377
|
},
|
|
45361
|
-
getDocumentMode(
|
|
45362
|
-
return
|
|
45378
|
+
getDocumentMode(doc) {
|
|
45379
|
+
return doc["x-mode"];
|
|
45363
45380
|
},
|
|
45364
45381
|
detachNode(node) {
|
|
45365
45382
|
node.remove();
|
|
@@ -45535,9 +45552,9 @@ var jquery_default = (
|
|
|
45535
45552
|
nonce: true,
|
|
45536
45553
|
noModule: true
|
|
45537
45554
|
};
|
|
45538
|
-
function DOMEval(code, node,
|
|
45539
|
-
|
|
45540
|
-
var i2, script =
|
|
45555
|
+
function DOMEval(code, node, doc) {
|
|
45556
|
+
doc = doc || document2;
|
|
45557
|
+
var i2, script = doc.createElement("script");
|
|
45541
45558
|
script.text = code;
|
|
45542
45559
|
if (node) {
|
|
45543
45560
|
for (i2 in preservedScriptAttributes) {
|
|
@@ -45546,7 +45563,7 @@ var jquery_default = (
|
|
|
45546
45563
|
}
|
|
45547
45564
|
}
|
|
45548
45565
|
}
|
|
45549
|
-
|
|
45566
|
+
doc.head.appendChild(script).parentNode.removeChild(script);
|
|
45550
45567
|
}
|
|
45551
45568
|
const jQuery = {};
|
|
45552
45569
|
var version = "4.0.0-pre+9352011a7.dirty +selector", rhtmlSuffix = /HTML$/i, jQueryOrig = function(selector, context) {
|
|
@@ -45683,8 +45700,8 @@ var jquery_default = (
|
|
|
45683
45700
|
},
|
|
45684
45701
|
// Evaluates a script in a provided context; falls back to the global one
|
|
45685
45702
|
// if not specified.
|
|
45686
|
-
globalEval: function(code, options,
|
|
45687
|
-
DOMEval(code, { nonce: options && options.nonce },
|
|
45703
|
+
globalEval: function(code, options, doc) {
|
|
45704
|
+
DOMEval(code, { nonce: options && options.nonce }, doc);
|
|
45688
45705
|
},
|
|
45689
45706
|
each: function(obj, callback) {
|
|
45690
45707
|
var length, i2 = 0;
|
|
@@ -46173,11 +46190,11 @@ var jquery_default = (
|
|
|
46173
46190
|
});
|
|
46174
46191
|
}
|
|
46175
46192
|
function setDocument(node) {
|
|
46176
|
-
var subWindow,
|
|
46177
|
-
if (
|
|
46193
|
+
var subWindow, doc = node ? node.ownerDocument || node : document2;
|
|
46194
|
+
if (doc == document$1 || doc.nodeType !== 9) {
|
|
46178
46195
|
return;
|
|
46179
46196
|
}
|
|
46180
|
-
document$1 =
|
|
46197
|
+
document$1 = doc;
|
|
46181
46198
|
documentElement$1 = document$1.documentElement;
|
|
46182
46199
|
documentIsHTML = !jQuery.isXMLDoc(document$1);
|
|
46183
46200
|
if (isIE && document2 != document$1 && (subWindow = document$1.defaultView) && subWindow.top !== subWindow) {
|
|
@@ -50522,10 +50539,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
50522
50539
|
}
|
|
50523
50540
|
createElement(tagName) {
|
|
50524
50541
|
if (tagName === "#document" /* DOCUMENT_NODE */) {
|
|
50525
|
-
const
|
|
50526
|
-
|
|
50527
|
-
|
|
50528
|
-
return
|
|
50542
|
+
const doc = new _MockDocument(false);
|
|
50543
|
+
doc.nodeName = tagName;
|
|
50544
|
+
doc.parentNode = null;
|
|
50545
|
+
return doc;
|
|
50529
50546
|
}
|
|
50530
50547
|
return createElement(this, tagName);
|
|
50531
50548
|
}
|
|
@@ -50565,10 +50582,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
50565
50582
|
title.textContent = value;
|
|
50566
50583
|
}
|
|
50567
50584
|
};
|
|
50568
|
-
function resetDocument(
|
|
50569
|
-
if (
|
|
50570
|
-
resetEventListeners(
|
|
50571
|
-
const documentElement =
|
|
50585
|
+
function resetDocument(doc) {
|
|
50586
|
+
if (doc != null) {
|
|
50587
|
+
resetEventListeners(doc);
|
|
50588
|
+
const documentElement = doc.documentElement;
|
|
50572
50589
|
if (documentElement != null) {
|
|
50573
50590
|
resetElement(documentElement);
|
|
50574
50591
|
for (let i = 0, ii = documentElement.childNodes.length; i < ii; i++) {
|
|
@@ -50577,25 +50594,25 @@ function resetDocument(doc2) {
|
|
|
50577
50594
|
childNode.childNodes.length = 0;
|
|
50578
50595
|
}
|
|
50579
50596
|
}
|
|
50580
|
-
for (const key in
|
|
50581
|
-
if (
|
|
50582
|
-
delete
|
|
50597
|
+
for (const key in doc) {
|
|
50598
|
+
if (doc.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
|
|
50599
|
+
delete doc[key];
|
|
50583
50600
|
}
|
|
50584
50601
|
}
|
|
50585
50602
|
try {
|
|
50586
|
-
|
|
50603
|
+
doc.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
50587
50604
|
} catch (e) {
|
|
50588
50605
|
}
|
|
50589
50606
|
try {
|
|
50590
|
-
|
|
50607
|
+
doc.nodeType = 9 /* DOCUMENT_NODE */;
|
|
50591
50608
|
} catch (e) {
|
|
50592
50609
|
}
|
|
50593
50610
|
try {
|
|
50594
|
-
|
|
50611
|
+
doc.cookie = "";
|
|
50595
50612
|
} catch (e) {
|
|
50596
50613
|
}
|
|
50597
50614
|
try {
|
|
50598
|
-
|
|
50615
|
+
doc.referrer = "";
|
|
50599
50616
|
} catch (e) {
|
|
50600
50617
|
}
|
|
50601
50618
|
}
|
|
@@ -50665,7 +50682,6 @@ var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
|
50665
50682
|
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
50666
50683
|
];
|
|
50667
50684
|
var win = typeof window !== "undefined" ? window : {};
|
|
50668
|
-
var doc = win.document || { head: {} };
|
|
50669
50685
|
var H = win.HTMLElement || class {
|
|
50670
50686
|
};
|
|
50671
50687
|
var supportsShadow = BUILD.shadowDom;
|
|
@@ -50799,14 +50815,14 @@ var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
|
50799
50815
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
50800
50816
|
|
|
50801
50817
|
// src/compiler/html/canonical-link.ts
|
|
50802
|
-
var updateCanonicalLink = (
|
|
50818
|
+
var updateCanonicalLink = (doc, href) => {
|
|
50803
50819
|
var _a2;
|
|
50804
|
-
let canonicalLinkElm =
|
|
50820
|
+
let canonicalLinkElm = doc.head.querySelector('link[rel="canonical"]');
|
|
50805
50821
|
if (typeof href === "string") {
|
|
50806
50822
|
if (canonicalLinkElm == null) {
|
|
50807
|
-
canonicalLinkElm =
|
|
50823
|
+
canonicalLinkElm = doc.createElement("link");
|
|
50808
50824
|
canonicalLinkElm.setAttribute("rel", "canonical");
|
|
50809
|
-
|
|
50825
|
+
doc.head.appendChild(canonicalLinkElm);
|
|
50810
50826
|
}
|
|
50811
50827
|
canonicalLinkElm.setAttribute("href", href);
|
|
50812
50828
|
} else {
|
|
@@ -50820,11 +50836,11 @@ var updateCanonicalLink = (doc2, href) => {
|
|
|
50820
50836
|
};
|
|
50821
50837
|
|
|
50822
50838
|
// src/compiler/html/relocate-meta-charset.ts
|
|
50823
|
-
var relocateMetaCharset = (
|
|
50824
|
-
const head =
|
|
50839
|
+
var relocateMetaCharset = (doc) => {
|
|
50840
|
+
const head = doc.head;
|
|
50825
50841
|
let charsetElm = head.querySelector("meta[charset]");
|
|
50826
50842
|
if (charsetElm == null) {
|
|
50827
|
-
charsetElm =
|
|
50843
|
+
charsetElm = doc.createElement("meta");
|
|
50828
50844
|
charsetElm.setAttribute("charset", "utf-8");
|
|
50829
50845
|
} else {
|
|
50830
50846
|
charsetElm.remove();
|
|
@@ -51099,13 +51115,13 @@ var parseCss = (css, filePath) => {
|
|
|
51099
51115
|
const m = match(/^@([-\w]+)?document *([^{]+)/);
|
|
51100
51116
|
if (!m) return null;
|
|
51101
51117
|
const vendor = trim(m[1]);
|
|
51102
|
-
const
|
|
51118
|
+
const doc = trim(m[2]);
|
|
51103
51119
|
if (!open()) return error(`@document missing '{'`);
|
|
51104
51120
|
const style = comments().concat(rules());
|
|
51105
51121
|
if (!close()) return error(`@document missing '}'`);
|
|
51106
51122
|
return pos({
|
|
51107
51123
|
type: 3 /* Document */,
|
|
51108
|
-
document:
|
|
51124
|
+
document: doc,
|
|
51109
51125
|
vendor,
|
|
51110
51126
|
rules: style
|
|
51111
51127
|
});
|
|
@@ -51431,11 +51447,11 @@ var serializeCssPage = (opts, node) => {
|
|
|
51431
51447
|
};
|
|
51432
51448
|
var serializeCssDocument = (opts, node) => {
|
|
51433
51449
|
const documentCss = serializeCssMapVisit(opts, node.rules);
|
|
51434
|
-
const
|
|
51450
|
+
const doc = "@" + (node.vendor || "") + "document " + node.document;
|
|
51435
51451
|
if (documentCss === "") {
|
|
51436
51452
|
return "";
|
|
51437
51453
|
}
|
|
51438
|
-
return
|
|
51454
|
+
return doc + "{" + documentCss + "}";
|
|
51439
51455
|
};
|
|
51440
51456
|
var serializeCssMapVisit = (opts, nodes) => {
|
|
51441
51457
|
let rtn = "";
|
|
@@ -51533,12 +51549,12 @@ var collectUsedSelectors = (usedSelectors, elm) => {
|
|
|
51533
51549
|
};
|
|
51534
51550
|
|
|
51535
51551
|
// src/compiler/html/remove-unused-styles.ts
|
|
51536
|
-
var removeUnusedStyles = (
|
|
51552
|
+
var removeUnusedStyles = (doc, diagnostics) => {
|
|
51537
51553
|
try {
|
|
51538
|
-
const styleElms =
|
|
51554
|
+
const styleElms = doc.head.querySelectorAll(`style[data-styles]`);
|
|
51539
51555
|
const styleLen = styleElms.length;
|
|
51540
51556
|
if (styleLen > 0) {
|
|
51541
|
-
const usedSelectors = getUsedSelectors(
|
|
51557
|
+
const usedSelectors = getUsedSelectors(doc.documentElement);
|
|
51542
51558
|
for (let i = 0; i < styleLen; i++) {
|
|
51543
51559
|
removeUnusedStyleText(usedSelectors, diagnostics, styleElms[i]);
|
|
51544
51560
|
}
|
|
@@ -51671,41 +51687,41 @@ function collectAttributes(node) {
|
|
|
51671
51687
|
var SKIP_ATTRS = /* @__PURE__ */ new Set(["s-id", "c-id"]);
|
|
51672
51688
|
|
|
51673
51689
|
// src/hydrate/runner/patch-dom-implementation.ts
|
|
51674
|
-
function patchDomImplementation(
|
|
51690
|
+
function patchDomImplementation(doc, opts) {
|
|
51675
51691
|
let win2;
|
|
51676
|
-
if (
|
|
51692
|
+
if (doc.defaultView != null) {
|
|
51677
51693
|
opts.destroyWindow = true;
|
|
51678
|
-
patchWindow(
|
|
51679
|
-
win2 =
|
|
51694
|
+
patchWindow(doc.defaultView);
|
|
51695
|
+
win2 = doc.defaultView;
|
|
51680
51696
|
} else {
|
|
51681
51697
|
opts.destroyWindow = true;
|
|
51682
51698
|
opts.destroyDocument = false;
|
|
51683
51699
|
win2 = new MockWindow(false);
|
|
51684
51700
|
}
|
|
51685
|
-
if (win2.document !==
|
|
51686
|
-
win2.document =
|
|
51701
|
+
if (win2.document !== doc) {
|
|
51702
|
+
win2.document = doc;
|
|
51687
51703
|
}
|
|
51688
|
-
if (
|
|
51689
|
-
|
|
51704
|
+
if (doc.defaultView !== win2) {
|
|
51705
|
+
doc.defaultView = win2;
|
|
51690
51706
|
}
|
|
51691
|
-
const HTMLElement2 =
|
|
51707
|
+
const HTMLElement2 = doc.documentElement.constructor.prototype;
|
|
51692
51708
|
if (typeof HTMLElement2.getRootNode !== "function") {
|
|
51693
|
-
const elm =
|
|
51709
|
+
const elm = doc.createElement("unknown-element");
|
|
51694
51710
|
const HTMLUnknownElement = elm.constructor.prototype;
|
|
51695
51711
|
HTMLUnknownElement.getRootNode = getRootNode;
|
|
51696
51712
|
}
|
|
51697
|
-
if (typeof
|
|
51698
|
-
const CustomEvent2 =
|
|
51713
|
+
if (typeof doc.createEvent === "function") {
|
|
51714
|
+
const CustomEvent2 = doc.createEvent("CustomEvent").constructor;
|
|
51699
51715
|
if (win2.CustomEvent !== CustomEvent2) {
|
|
51700
51716
|
win2.CustomEvent = CustomEvent2;
|
|
51701
51717
|
}
|
|
51702
51718
|
}
|
|
51703
51719
|
try {
|
|
51704
|
-
win2.__stencil_baseURI =
|
|
51720
|
+
win2.__stencil_baseURI = doc.baseURI;
|
|
51705
51721
|
} catch (e) {
|
|
51706
|
-
Object.defineProperty(
|
|
51722
|
+
Object.defineProperty(doc, "baseURI", {
|
|
51707
51723
|
get() {
|
|
51708
|
-
const baseElm =
|
|
51724
|
+
const baseElm = doc.querySelector("base[href]");
|
|
51709
51725
|
if (baseElm) {
|
|
51710
51726
|
return new URL(baseElm.getAttribute("href"), win2.location.href).href;
|
|
51711
51727
|
}
|
|
@@ -51916,7 +51932,7 @@ var docData = {
|
|
|
51916
51932
|
rootLevelIds: 0,
|
|
51917
51933
|
staticComponents: /* @__PURE__ */ new Set()
|
|
51918
51934
|
};
|
|
51919
|
-
function initializeWindow(win2,
|
|
51935
|
+
function initializeWindow(win2, doc, opts, results) {
|
|
51920
51936
|
if (typeof opts.url === "string") {
|
|
51921
51937
|
try {
|
|
51922
51938
|
win2.location.href = opts.url;
|
|
@@ -51931,31 +51947,31 @@ function initializeWindow(win2, doc2, opts, results) {
|
|
|
51931
51947
|
}
|
|
51932
51948
|
if (typeof opts.cookie === "string") {
|
|
51933
51949
|
try {
|
|
51934
|
-
|
|
51950
|
+
doc.cookie = opts.cookie;
|
|
51935
51951
|
} catch (e) {
|
|
51936
51952
|
}
|
|
51937
51953
|
}
|
|
51938
51954
|
if (typeof opts.referrer === "string") {
|
|
51939
51955
|
try {
|
|
51940
|
-
|
|
51956
|
+
doc.referrer = opts.referrer;
|
|
51941
51957
|
} catch (e) {
|
|
51942
51958
|
}
|
|
51943
51959
|
}
|
|
51944
51960
|
if (typeof opts.direction === "string") {
|
|
51945
51961
|
try {
|
|
51946
|
-
|
|
51962
|
+
doc.documentElement.setAttribute("dir", opts.direction);
|
|
51947
51963
|
} catch (e) {
|
|
51948
51964
|
}
|
|
51949
51965
|
}
|
|
51950
51966
|
if (typeof opts.language === "string") {
|
|
51951
51967
|
try {
|
|
51952
|
-
|
|
51968
|
+
doc.documentElement.setAttribute("lang", opts.language);
|
|
51953
51969
|
} catch (e) {
|
|
51954
51970
|
}
|
|
51955
51971
|
}
|
|
51956
51972
|
if (typeof opts.buildId === "string") {
|
|
51957
51973
|
try {
|
|
51958
|
-
|
|
51974
|
+
doc.documentElement.setAttribute("data-stencil-build", opts.buildId);
|
|
51959
51975
|
} catch (e) {
|
|
51960
51976
|
}
|
|
51961
51977
|
}
|
|
@@ -51967,7 +51983,7 @@ function initializeWindow(win2, doc2, opts, results) {
|
|
|
51967
51983
|
constrainTimeouts(win2);
|
|
51968
51984
|
}
|
|
51969
51985
|
runtimeLogging(win2, opts, results);
|
|
51970
|
-
|
|
51986
|
+
doc[STENCIL_DOC_DATA] = docData;
|
|
51971
51987
|
return win2;
|
|
51972
51988
|
}
|
|
51973
51989
|
|
|
@@ -51985,18 +52001,18 @@ function renderToString(html, options, asStream) {
|
|
|
51985
52001
|
opts.constrainTimeouts = false;
|
|
51986
52002
|
return hydrateDocument(html, opts, asStream);
|
|
51987
52003
|
}
|
|
51988
|
-
function hydrateDocument(
|
|
52004
|
+
function hydrateDocument(doc, options, asStream) {
|
|
51989
52005
|
const opts = normalizeHydrateOptions(options);
|
|
51990
52006
|
let win2 = null;
|
|
51991
52007
|
const results = generateHydrateResults(opts);
|
|
51992
52008
|
if (hasError(results.diagnostics)) {
|
|
51993
52009
|
return Promise.resolve(results);
|
|
51994
52010
|
}
|
|
51995
|
-
if (typeof
|
|
52011
|
+
if (typeof doc === "string") {
|
|
51996
52012
|
try {
|
|
51997
52013
|
opts.destroyWindow = true;
|
|
51998
52014
|
opts.destroyDocument = true;
|
|
51999
|
-
win2 = new MockWindow(
|
|
52015
|
+
win2 = new MockWindow(doc);
|
|
52000
52016
|
if (!asStream) {
|
|
52001
52017
|
return render(win2, opts, results).then(() => results);
|
|
52002
52018
|
}
|
|
@@ -52010,10 +52026,10 @@ function hydrateDocument(doc2, options, asStream) {
|
|
|
52010
52026
|
return Promise.resolve(results);
|
|
52011
52027
|
}
|
|
52012
52028
|
}
|
|
52013
|
-
if (isValidDocument(
|
|
52029
|
+
if (isValidDocument(doc)) {
|
|
52014
52030
|
try {
|
|
52015
52031
|
opts.destroyDocument = false;
|
|
52016
|
-
win2 = patchDomImplementation(
|
|
52032
|
+
win2 = patchDomImplementation(doc, opts);
|
|
52017
52033
|
if (!asStream) {
|
|
52018
52034
|
return render(win2, opts, results).then(() => results);
|
|
52019
52035
|
}
|
|
@@ -52070,41 +52086,41 @@ async function afterHydrate(win2, opts, results, resolve) {
|
|
|
52070
52086
|
return resolve(finalizeHydrate(win2, win2.document, opts, results));
|
|
52071
52087
|
}
|
|
52072
52088
|
}
|
|
52073
|
-
function finalizeHydrate(win2,
|
|
52089
|
+
function finalizeHydrate(win2, doc, opts, results) {
|
|
52074
52090
|
try {
|
|
52075
|
-
inspectElement(results,
|
|
52091
|
+
inspectElement(results, doc.documentElement, 0);
|
|
52076
52092
|
if (opts.removeUnusedStyles !== false) {
|
|
52077
52093
|
try {
|
|
52078
|
-
removeUnusedStyles(
|
|
52094
|
+
removeUnusedStyles(doc, results.diagnostics);
|
|
52079
52095
|
} catch (e) {
|
|
52080
52096
|
renderCatchError(results, e);
|
|
52081
52097
|
}
|
|
52082
52098
|
}
|
|
52083
52099
|
if (typeof opts.title === "string") {
|
|
52084
52100
|
try {
|
|
52085
|
-
|
|
52101
|
+
doc.title = opts.title;
|
|
52086
52102
|
} catch (e) {
|
|
52087
52103
|
renderCatchError(results, e);
|
|
52088
52104
|
}
|
|
52089
52105
|
}
|
|
52090
|
-
results.title =
|
|
52106
|
+
results.title = doc.title;
|
|
52091
52107
|
if (opts.removeScripts) {
|
|
52092
|
-
removeScripts(
|
|
52108
|
+
removeScripts(doc.documentElement);
|
|
52093
52109
|
}
|
|
52094
52110
|
try {
|
|
52095
|
-
updateCanonicalLink(
|
|
52111
|
+
updateCanonicalLink(doc, opts.canonicalUrl);
|
|
52096
52112
|
} catch (e) {
|
|
52097
52113
|
renderCatchError(results, e);
|
|
52098
52114
|
}
|
|
52099
52115
|
try {
|
|
52100
|
-
relocateMetaCharset(
|
|
52116
|
+
relocateMetaCharset(doc);
|
|
52101
52117
|
} catch (e) {
|
|
52102
52118
|
}
|
|
52103
52119
|
if (!hasError(results.diagnostics)) {
|
|
52104
52120
|
results.httpStatus = 200;
|
|
52105
52121
|
}
|
|
52106
52122
|
try {
|
|
52107
|
-
const metaStatus =
|
|
52123
|
+
const metaStatus = doc.head.querySelector('meta[http-equiv="status"]');
|
|
52108
52124
|
if (metaStatus != null) {
|
|
52109
52125
|
const metaStatusContent = metaStatus.getAttribute("content");
|
|
52110
52126
|
if (metaStatusContent && metaStatusContent.length > 0) {
|
|
@@ -52114,25 +52130,25 @@ function finalizeHydrate(win2, doc2, opts, results) {
|
|
|
52114
52130
|
} catch (e) {
|
|
52115
52131
|
}
|
|
52116
52132
|
if (opts.clientHydrateAnnotations) {
|
|
52117
|
-
|
|
52133
|
+
doc.documentElement.classList.add("hydrated");
|
|
52118
52134
|
}
|
|
52119
52135
|
if (opts.serializeToHtml) {
|
|
52120
|
-
results.html = serializeDocumentToString(
|
|
52136
|
+
results.html = serializeDocumentToString(doc, opts);
|
|
52121
52137
|
}
|
|
52122
52138
|
} catch (e) {
|
|
52123
52139
|
renderCatchError(results, e);
|
|
52124
52140
|
}
|
|
52125
|
-
destroyWindow(win2,
|
|
52141
|
+
destroyWindow(win2, doc, opts, results);
|
|
52126
52142
|
return results;
|
|
52127
52143
|
}
|
|
52128
|
-
function destroyWindow(win2,
|
|
52144
|
+
function destroyWindow(win2, doc, opts, results) {
|
|
52129
52145
|
if (!opts.destroyWindow) {
|
|
52130
52146
|
return;
|
|
52131
52147
|
}
|
|
52132
52148
|
try {
|
|
52133
52149
|
if (!opts.destroyDocument) {
|
|
52134
52150
|
win2.document = null;
|
|
52135
|
-
|
|
52151
|
+
doc.defaultView = null;
|
|
52136
52152
|
}
|
|
52137
52153
|
if (win2.close) {
|
|
52138
52154
|
win2.close();
|
|
@@ -52141,8 +52157,8 @@ function destroyWindow(win2, doc2, opts, results) {
|
|
|
52141
52157
|
renderCatchError(results, e);
|
|
52142
52158
|
}
|
|
52143
52159
|
}
|
|
52144
|
-
function serializeDocumentToString(
|
|
52145
|
-
return serializeNodeToHtml(
|
|
52160
|
+
function serializeDocumentToString(doc, opts) {
|
|
52161
|
+
return serializeNodeToHtml(doc, {
|
|
52146
52162
|
approximateLineWidth: opts.approximateLineWidth,
|
|
52147
52163
|
outerHtml: false,
|
|
52148
52164
|
prettyHtml: opts.prettyHtml,
|
|
@@ -52154,8 +52170,8 @@ function serializeDocumentToString(doc2, opts) {
|
|
|
52154
52170
|
fullDocument: opts.fullDocument
|
|
52155
52171
|
});
|
|
52156
52172
|
}
|
|
52157
|
-
function isValidDocument(
|
|
52158
|
-
return
|
|
52173
|
+
function isValidDocument(doc) {
|
|
52174
|
+
return doc != null && doc.nodeType === 9 && doc.documentElement != null && doc.documentElement.nodeType === 1 && doc.body != null && doc.body.nodeType === 1;
|
|
52159
52175
|
}
|
|
52160
52176
|
function removeScripts(elm) {
|
|
52161
52177
|
const children = elm.children;
|