@roadtrip/components 3.32.5 → 3.33.1
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/loader.cjs.js +1 -1
- package/dist/cjs/road-badge_14.cjs.entry.js +90 -32
- package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
- package/dist/cjs/road-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/road-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/road-phone-number-input.cjs.entry.js +21 -66
- package/dist/cjs/road-phone-number-input.cjs.entry.js.map +1 -1
- package/dist/cjs/road-plate-number.cjs.entry.js +2 -2
- package/dist/cjs/road-profil-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-indicator-horizontal.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-indicator-vertical-item.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-indicator-vertical.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-tracker-item.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-tracker.cjs.entry.js +1 -1
- package/dist/cjs/road-progress.cjs.entry.js +1 -1
- package/dist/cjs/road-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/road-radio.cjs.entry.js +1 -1
- package/dist/cjs/road-range.cjs.entry.js +2 -2
- package/dist/cjs/road-rating.cjs.entry.js +1 -1
- package/dist/cjs/road-segmented-button-bar.cjs.entry.js +1 -1
- package/dist/cjs/road-segmented-button.cjs.entry.js +2 -2
- package/dist/cjs/road-segmented-buttons.cjs.entry.js +1 -1
- package/dist/cjs/road-select-filter.cjs.entry.js +2 -2
- package/dist/cjs/road-select.cjs.entry.js +1 -1
- package/dist/cjs/road-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/road-spinner.cjs.entry.js +1 -1
- package/dist/cjs/road-switch.cjs.entry.js +2 -2
- package/dist/cjs/road-tab-bar.cjs.entry.js +2 -2
- package/dist/cjs/road-tab-button.cjs.entry.js +2 -2
- package/dist/cjs/road-tab.cjs.entry.js +2 -2
- package/dist/cjs/road-table.cjs.entry.js +1 -1
- package/dist/cjs/road-tabs.cjs.entry.js +1 -1
- package/dist/cjs/road-tag.cjs.entry.js +1 -1
- package/dist/cjs/road-text.cjs.entry.js +1 -1
- package/dist/cjs/road-textarea.cjs.entry.js +1 -1
- package/dist/cjs/road-toast.cjs.entry.js +1 -1
- package/dist/cjs/road-toggle.cjs.entry.js +2 -2
- package/dist/cjs/road-toolbar-title-page.cjs.entry.js +1 -1
- package/dist/cjs/road-toolbar-title.cjs.entry.js +1 -1
- package/dist/cjs/road-toolbar-v2.cjs.entry.js +1 -1
- package/dist/cjs/road-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/roadtrip.cjs.js +1 -1
- package/dist/collection/components/drawer/drawer.css +17 -0
- package/dist/collection/components/drawer/drawer.js +26 -1
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/drawer/drawer.stories.js +7 -1
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/input/input.js +86 -23
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/input-group/input-group.css +10 -7
- package/dist/collection/components/input-group/input-group.js +19 -4
- package/dist/collection/components/input-group/input-group.js.map +1 -1
- package/dist/collection/components/phone-number-input/phone-number-input.css +198 -129
- package/dist/collection/components/phone-number-input/phone-number-input.js +20 -68
- package/dist/collection/components/phone-number-input/phone-number-input.js.map +1 -1
- package/dist/collection/components/plate-number/plate-number.js +2 -2
- package/dist/collection/components/profil-dropdown/profil-dropdown.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.js +1 -1
- package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.js +1 -1
- package/dist/collection/components/progress-indicator-vertical-item/progress-indicator-vertical-item.js +1 -1
- package/dist/collection/components/progress-tracker/progress-tracker.js +1 -1
- package/dist/collection/components/progress-tracker-item/progress-tracker-item.js +1 -1
- package/dist/collection/components/radio/radio.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.js +2 -2
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/segmented-button/segmented-button.js +2 -2
- package/dist/collection/components/segmented-button-bar/segmented-button-bar.js +1 -1
- package/dist/collection/components/segmented-buttons/segmented-buttons.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/select-filter/select-filter.js +2 -2
- package/dist/collection/components/skeleton/skeleton.js +1 -1
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/switch/switch.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tag/tag.js +1 -1
- package/dist/collection/components/text/text.js +1 -1
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/components/toast/toast.js +1 -1
- package/dist/collection/components/toggle/toggle.js +2 -2
- package/dist/collection/components/toolbar/toolbar.js +1 -1
- package/dist/collection/components/toolbar-title/toolbar-title.js +1 -1
- package/dist/collection/components/toolbar-title-page/toolbar-title-page.js +1 -1
- package/dist/collection/components/toolbar-v2/toolbar-v2.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +3 -3
- package/dist/collection/components/utilities/text.stories.js +2 -0
- package/dist/collection/fonts/Muli-Black.woff +0 -0
- package/dist/collection/fonts/Muli-Black.woff2 +0 -0
- package/dist/collection/fonts/Muli-SemiBold.woff +0 -0
- package/dist/collection/fonts/Muli-SemiBold.woff2 +0 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/road-badge_14.entry.js +90 -32
- package/dist/esm/road-badge_14.entry.js.map +1 -1
- package/dist/esm/road-dropdown.entry.js +1 -1
- package/dist/esm/road-dropdown.entry.js.map +1 -1
- package/dist/esm/road-phone-number-input.entry.js +21 -66
- package/dist/esm/road-phone-number-input.entry.js.map +1 -1
- package/dist/esm/road-plate-number.entry.js +2 -2
- package/dist/esm/road-profil-dropdown.entry.js +1 -1
- package/dist/esm/road-progress-indicator-horizontal.entry.js +1 -1
- package/dist/esm/road-progress-indicator-vertical-item.entry.js +1 -1
- package/dist/esm/road-progress-indicator-vertical.entry.js +1 -1
- package/dist/esm/road-progress-tracker-item.entry.js +1 -1
- package/dist/esm/road-progress-tracker.entry.js +1 -1
- package/dist/esm/road-progress.entry.js +1 -1
- package/dist/esm/road-radio-group.entry.js +1 -1
- package/dist/esm/road-radio.entry.js +1 -1
- package/dist/esm/road-range.entry.js +2 -2
- package/dist/esm/road-rating.entry.js +1 -1
- package/dist/esm/road-segmented-button-bar.entry.js +1 -1
- package/dist/esm/road-segmented-button.entry.js +2 -2
- package/dist/esm/road-segmented-buttons.entry.js +1 -1
- package/dist/esm/road-select-filter.entry.js +2 -2
- package/dist/esm/road-select.entry.js +1 -1
- package/dist/esm/road-skeleton.entry.js +1 -1
- package/dist/esm/road-spinner.entry.js +1 -1
- package/dist/esm/road-switch.entry.js +2 -2
- package/dist/esm/road-tab-bar.entry.js +2 -2
- package/dist/esm/road-tab-button.entry.js +2 -2
- package/dist/esm/road-tab.entry.js +2 -2
- package/dist/esm/road-table.entry.js +1 -1
- package/dist/esm/road-tabs.entry.js +1 -1
- package/dist/esm/road-tag.entry.js +1 -1
- package/dist/esm/road-text.entry.js +1 -1
- package/dist/esm/road-textarea.entry.js +1 -1
- package/dist/esm/road-toast.entry.js +1 -1
- package/dist/esm/road-toggle.entry.js +2 -2
- package/dist/esm/road-toolbar-title-page.entry.js +1 -1
- package/dist/esm/road-toolbar-title.entry.js +1 -1
- package/dist/esm/road-toolbar-v2.entry.js +1 -1
- package/dist/esm/road-tooltip.entry.js +3 -3
- package/dist/esm/roadtrip.js +1 -1
- package/dist/html.html-data.json +4 -0
- package/dist/roadtrip/fonts/Muli-Black.woff +0 -0
- package/dist/roadtrip/fonts/Muli-Black.woff2 +0 -0
- package/dist/roadtrip/fonts/Muli-SemiBold.woff +0 -0
- package/dist/roadtrip/fonts/Muli-SemiBold.woff2 +0 -0
- package/dist/roadtrip/{p-c1e2aa67.entry.js → p-04913d58.entry.js} +2 -2
- package/dist/roadtrip/{p-494aab48.entry.js → p-06fbd2ea.entry.js} +2 -2
- package/dist/roadtrip/{p-2a4a0928.entry.js → p-167cd2fc.entry.js} +2 -2
- package/dist/roadtrip/p-215afdbd.entry.js +2 -0
- package/dist/roadtrip/{p-8f7375bc.entry.js → p-2e049c8e.entry.js} +2 -2
- package/dist/roadtrip/{p-8ca23318.entry.js → p-37430583.entry.js} +2 -2
- package/dist/roadtrip/{p-9fce16aa.entry.js → p-3dcaa947.entry.js} +2 -2
- package/dist/roadtrip/{p-b5c4455e.entry.js → p-3e36cd02.entry.js} +3 -3
- package/dist/roadtrip/p-3e36cd02.entry.js.map +1 -0
- package/dist/roadtrip/{p-1e61ca1f.entry.js → p-3f5dff96.entry.js} +2 -2
- package/dist/roadtrip/{p-f8817c0e.entry.js → p-449affa6.entry.js} +2 -2
- package/dist/roadtrip/p-4675ea6d.entry.js +2 -0
- package/dist/roadtrip/{p-4a47999a.entry.js → p-5fea6a74.entry.js} +2 -2
- package/dist/roadtrip/{p-f9754547.entry.js → p-60bd73ad.entry.js} +2 -2
- package/dist/roadtrip/p-65f9bd9c.entry.js +2 -0
- package/dist/roadtrip/{p-c68fc795.entry.js → p-6c617506.entry.js} +2 -2
- package/dist/roadtrip/{p-4e779fd6.entry.js → p-6ff3b37c.entry.js} +2 -2
- package/dist/roadtrip/p-85b1e505.entry.js +2 -0
- package/dist/roadtrip/{p-a990a8b6.entry.js → p-862c1831.entry.js} +2 -2
- package/dist/roadtrip/{p-a990a8b6.entry.js.map → p-862c1831.entry.js.map} +1 -1
- package/dist/roadtrip/p-8b04fc62.entry.js +2 -0
- package/dist/roadtrip/{p-0cacf829.entry.js → p-950b8a43.entry.js} +2 -2
- package/dist/roadtrip/p-950b8a43.entry.js.map +1 -0
- package/dist/roadtrip/{p-87c1ff76.entry.js → p-99a6faae.entry.js} +2 -2
- package/dist/roadtrip/{p-bba18327.entry.js → p-b5fa8c5a.entry.js} +2 -2
- package/dist/roadtrip/{p-db243855.entry.js → p-b8c5d292.entry.js} +2 -2
- package/dist/roadtrip/{p-d68e64a8.entry.js → p-c28e7add.entry.js} +2 -2
- package/dist/roadtrip/{p-10e65612.entry.js → p-c47ccbf2.entry.js} +2 -2
- package/dist/roadtrip/{p-c3ef32ef.entry.js → p-c6824205.entry.js} +2 -2
- package/dist/roadtrip/{p-833c1e78.entry.js → p-cfd2919e.entry.js} +2 -2
- package/dist/roadtrip/{p-a0a95c0a.entry.js → p-d80e7563.entry.js} +2 -2
- package/dist/roadtrip/p-db77c354.entry.js +2 -0
- package/dist/roadtrip/{p-5fab1bc3.entry.js.map → p-db77c354.entry.js.map} +1 -1
- package/dist/roadtrip/{p-4bbc889b.entry.js → p-e6c4c576.entry.js} +2 -2
- package/dist/roadtrip/{p-01be5517.entry.js → p-e6e9882b.entry.js} +2 -2
- package/dist/roadtrip/{p-5a6fbd7f.entry.js → p-e75ec60f.entry.js} +2 -2
- package/dist/roadtrip/{p-edbbe884.entry.js → p-ea1a175d.entry.js} +2 -2
- package/dist/roadtrip/{p-2903bdc0.entry.js → p-eac313e4.entry.js} +2 -2
- package/dist/roadtrip/{p-fb26ed7e.entry.js → p-f1b53143.entry.js} +2 -2
- package/dist/roadtrip/{p-b18cda16.entry.js → p-fd3c58b6.entry.js} +2 -2
- package/dist/roadtrip/{p-32845e72.entry.js → p-fe40ab3d.entry.js} +2 -2
- package/dist/roadtrip/roadtrip.css +1 -1
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/roadtrip/roadtrip.esm.js.map +1 -1
- package/dist/types/components/drawer/drawer.d.ts +4 -0
- package/dist/types/components/input/input.d.ts +1 -1
- package/dist/types/components/input-group/input-group.d.ts +4 -2
- package/dist/types/components/phone-number-input/phone-number-input.d.ts +3 -10
- package/dist/types/components-react.d.ts +4 -4
- package/dist/types/components.d.ts +17 -0
- package/hydrate/index.js +353 -357
- package/hydrate/index.mjs +353 -357
- package/package.json +1 -1
- package/dist/roadtrip/p-0cacf829.entry.js.map +0 -1
- package/dist/roadtrip/p-427bd935.entry.js +0 -2
- package/dist/roadtrip/p-5fab1bc3.entry.js +0 -2
- package/dist/roadtrip/p-78b51033.entry.js +0 -2
- package/dist/roadtrip/p-9737182c.entry.js +0 -2
- package/dist/roadtrip/p-a925ff64.entry.js +0 -2
- package/dist/roadtrip/p-b5c4455e.entry.js.map +0 -1
- package/dist/roadtrip/p-ee92b78d.entry.js +0 -2
- /package/dist/roadtrip/{p-c1e2aa67.entry.js.map → p-04913d58.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-494aab48.entry.js.map → p-06fbd2ea.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-2a4a0928.entry.js.map → p-167cd2fc.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-427bd935.entry.js.map → p-215afdbd.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-8f7375bc.entry.js.map → p-2e049c8e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-8ca23318.entry.js.map → p-37430583.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-9fce16aa.entry.js.map → p-3dcaa947.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-1e61ca1f.entry.js.map → p-3f5dff96.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f8817c0e.entry.js.map → p-449affa6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-ee92b78d.entry.js.map → p-4675ea6d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4a47999a.entry.js.map → p-5fea6a74.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f9754547.entry.js.map → p-60bd73ad.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a925ff64.entry.js.map → p-65f9bd9c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c68fc795.entry.js.map → p-6c617506.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4e779fd6.entry.js.map → p-6ff3b37c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-9737182c.entry.js.map → p-85b1e505.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-78b51033.entry.js.map → p-8b04fc62.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-87c1ff76.entry.js.map → p-99a6faae.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-bba18327.entry.js.map → p-b5fa8c5a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-db243855.entry.js.map → p-b8c5d292.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d68e64a8.entry.js.map → p-c28e7add.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-10e65612.entry.js.map → p-c47ccbf2.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c3ef32ef.entry.js.map → p-c6824205.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-833c1e78.entry.js.map → p-cfd2919e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a0a95c0a.entry.js.map → p-d80e7563.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4bbc889b.entry.js.map → p-e6c4c576.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-01be5517.entry.js.map → p-e6e9882b.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-5a6fbd7f.entry.js.map → p-e75ec60f.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-edbbe884.entry.js.map → p-ea1a175d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-2903bdc0.entry.js.map → p-eac313e4.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-fb26ed7e.entry.js.map → p-f1b53143.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-b18cda16.entry.js.map → p-fd3c58b6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-32845e72.entry.js.map → p-fe40ab3d.entry.js.map} +0 -0
package/hydrate/index.mjs
CHANGED
|
@@ -127,7 +127,7 @@ const NAMESPACE = 'roadtrip';
|
|
|
127
127
|
const BUILD = /* roadtrip */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, constructableCSS: false, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
128
128
|
|
|
129
129
|
/*
|
|
130
|
-
Stencil Hydrate Platform v4.27.
|
|
130
|
+
Stencil Hydrate Platform v4.27.0 | MIT Licensed | https://stenciljs.com
|
|
131
131
|
*/
|
|
132
132
|
var __defProp = Object.defineProperty;
|
|
133
133
|
var __export = (target, all) => {
|
|
@@ -147,9 +147,9 @@ var isComplexType = (o) => {
|
|
|
147
147
|
};
|
|
148
148
|
|
|
149
149
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
150
|
-
function queryNonceMetaTagContent(
|
|
150
|
+
function queryNonceMetaTagContent(doc2) {
|
|
151
151
|
var _a, _b, _c;
|
|
152
|
-
return (_c = (_b = (_a =
|
|
152
|
+
return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
// src/utils/regular-expression.ts
|
|
@@ -506,8 +506,8 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
506
506
|
delete hostElm["s-sc"];
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
if (
|
|
510
|
-
initializeDocumentHydrate(
|
|
509
|
+
if (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size) {
|
|
510
|
+
initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
511
511
|
}
|
|
512
512
|
hostElm[HYDRATE_ID] = hostId;
|
|
513
513
|
hostElm.removeAttribute(HYDRATE_ID);
|
|
@@ -830,8 +830,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
830
830
|
childVNode.$name$ = slotName || null;
|
|
831
831
|
childVNode.$tag$ = "slot";
|
|
832
832
|
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
833
|
-
if (shadowRootNodes
|
|
834
|
-
const slot = childVNode.$elm$ =
|
|
833
|
+
if (shadowRootNodes) {
|
|
834
|
+
const slot = childVNode.$elm$ = doc.createElement(childVNode.$tag$);
|
|
835
835
|
if (childVNode.$name$) {
|
|
836
836
|
childVNode.$elm$.setAttribute("name", slotName);
|
|
837
837
|
}
|
|
@@ -1275,10 +1275,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1275
1275
|
var _a;
|
|
1276
1276
|
const scopeId2 = getScopeId(cmpMeta);
|
|
1277
1277
|
const style = styles$1.get(scopeId2);
|
|
1278
|
-
|
|
1279
|
-
return scopeId2;
|
|
1280
|
-
}
|
|
1281
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1278
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
1282
1279
|
if (style) {
|
|
1283
1280
|
if (typeof style === "string") {
|
|
1284
1281
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -1291,9 +1288,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1291
1288
|
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1292
1289
|
styleElm.innerHTML = style;
|
|
1293
1290
|
} else {
|
|
1294
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) ||
|
|
1291
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
1295
1292
|
styleElm.innerHTML = style;
|
|
1296
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
1293
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
1297
1294
|
if (nonce != null) {
|
|
1298
1295
|
styleElm.setAttribute("nonce", nonce);
|
|
1299
1296
|
}
|
|
@@ -1543,7 +1540,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1543
1540
|
}
|
|
1544
1541
|
}
|
|
1545
1542
|
if (newVNode2.$text$ !== null) {
|
|
1546
|
-
elm = newVNode2.$elm$ =
|
|
1543
|
+
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
1547
1544
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
1548
1545
|
elm = newVNode2.$elm$ = slotReferenceDebugNode(newVNode2) ;
|
|
1549
1546
|
{
|
|
@@ -1553,12 +1550,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1553
1550
|
if (!isSvgMode) {
|
|
1554
1551
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
1555
1552
|
}
|
|
1556
|
-
|
|
1557
|
-
throw new Error(
|
|
1558
|
-
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
1559
|
-
);
|
|
1560
|
-
}
|
|
1561
|
-
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
1553
|
+
elm = newVNode2.$elm$ = doc.createElementNS(
|
|
1562
1554
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
1563
1555
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
1564
1556
|
) ;
|
|
@@ -1940,7 +1932,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1940
1932
|
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1941
1933
|
for (const relocateData of relocateNodes) {
|
|
1942
1934
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1943
|
-
if (!nodeToRelocate["s-ol"]
|
|
1935
|
+
if (!nodeToRelocate["s-ol"]) {
|
|
1944
1936
|
const orgLocationNode = originalLocationDebugNode(nodeToRelocate) ;
|
|
1945
1937
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1946
1938
|
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
@@ -1984,18 +1976,12 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1984
1976
|
}
|
|
1985
1977
|
contentRef = void 0;
|
|
1986
1978
|
};
|
|
1987
|
-
var slotReferenceDebugNode = (slotVNode) =>
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
)
|
|
1992
|
-
|
|
1993
|
-
var originalLocationDebugNode = (nodeToRelocate) => {
|
|
1994
|
-
var _a;
|
|
1995
|
-
return (_a = win.document) == null ? void 0 : _a.createComment(
|
|
1996
|
-
`org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
|
|
1997
|
-
);
|
|
1998
|
-
};
|
|
1979
|
+
var slotReferenceDebugNode = (slotVNode) => doc.createComment(
|
|
1980
|
+
`<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
|
|
1981
|
+
);
|
|
1982
|
+
var originalLocationDebugNode = (nodeToRelocate) => doc.createComment(
|
|
1983
|
+
`org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
|
|
1984
|
+
);
|
|
1999
1985
|
|
|
2000
1986
|
// src/runtime/update-component.ts
|
|
2001
1987
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
@@ -2496,19 +2482,16 @@ var connectedCallback = (elm) => {
|
|
|
2496
2482
|
}
|
|
2497
2483
|
};
|
|
2498
2484
|
var setContentReference = (elm) => {
|
|
2499
|
-
|
|
2500
|
-
return;
|
|
2501
|
-
}
|
|
2502
|
-
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
2485
|
+
const contentRefElm = elm["s-cr"] = doc.createComment(
|
|
2503
2486
|
""
|
|
2504
2487
|
);
|
|
2505
2488
|
contentRefElm["s-cn"] = true;
|
|
2506
2489
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
2507
2490
|
};
|
|
2508
2491
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2509
|
-
if (listeners
|
|
2492
|
+
if (listeners) {
|
|
2510
2493
|
listeners.map(([flags, name, method]) => {
|
|
2511
|
-
const target = getHostListenerTarget(
|
|
2494
|
+
const target = getHostListenerTarget(elm, flags) ;
|
|
2512
2495
|
const handler = hostListenerProxy(hostRef, method);
|
|
2513
2496
|
const opts = hostListenerOpts(flags);
|
|
2514
2497
|
plt.ael(target, name, handler, opts);
|
|
@@ -2530,24 +2513,20 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
2530
2513
|
consoleError(e, hostRef.$hostElement$);
|
|
2531
2514
|
}
|
|
2532
2515
|
};
|
|
2533
|
-
var getHostListenerTarget = (
|
|
2534
|
-
if (flags & 4 /* TargetDocument */)
|
|
2535
|
-
|
|
2536
|
-
}
|
|
2537
|
-
if (flags & 8 /* TargetWindow */) {
|
|
2538
|
-
return win;
|
|
2539
|
-
}
|
|
2516
|
+
var getHostListenerTarget = (elm, flags) => {
|
|
2517
|
+
if (flags & 4 /* TargetDocument */) return doc;
|
|
2518
|
+
if (flags & 8 /* TargetWindow */) return win;
|
|
2540
2519
|
return elm;
|
|
2541
2520
|
};
|
|
2542
2521
|
var hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
2543
2522
|
|
|
2544
2523
|
// src/runtime/vdom/vdom-annotations.ts
|
|
2545
|
-
var insertVdomAnnotations = (
|
|
2546
|
-
if (
|
|
2547
|
-
const docData = STENCIL_DOC_DATA in
|
|
2524
|
+
var insertVdomAnnotations = (doc2, staticComponents) => {
|
|
2525
|
+
if (doc2 != null) {
|
|
2526
|
+
const docData = STENCIL_DOC_DATA in doc2 ? doc2[STENCIL_DOC_DATA] : { ...DEFAULT_DOC_DATA };
|
|
2548
2527
|
docData.staticComponents = new Set(staticComponents);
|
|
2549
2528
|
const orgLocationNodes = [];
|
|
2550
|
-
parseVNodeAnnotations(
|
|
2529
|
+
parseVNodeAnnotations(doc2, doc2.body, docData, orgLocationNodes);
|
|
2551
2530
|
orgLocationNodes.forEach((orgLocationNode) => {
|
|
2552
2531
|
var _a;
|
|
2553
2532
|
if (orgLocationNode != null && orgLocationNode["s-nr"]) {
|
|
@@ -2573,11 +2552,11 @@ var insertVdomAnnotations = (doc, staticComponents) => {
|
|
|
2573
2552
|
return;
|
|
2574
2553
|
}
|
|
2575
2554
|
}
|
|
2576
|
-
const commentBeforeTextNode =
|
|
2555
|
+
const commentBeforeTextNode = doc2.createComment(childId);
|
|
2577
2556
|
commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;
|
|
2578
2557
|
insertBefore(nodeRef.parentNode, commentBeforeTextNode, nodeRef);
|
|
2579
2558
|
} else if (nodeRef.nodeType === 8 /* CommentNode */) {
|
|
2580
|
-
const commentBeforeTextNode =
|
|
2559
|
+
const commentBeforeTextNode = doc2.createComment(childId);
|
|
2581
2560
|
commentBeforeTextNode.nodeValue = `${COMMENT_NODE_ID}.${childId}`;
|
|
2582
2561
|
nodeRef.parentNode.insertBefore(commentBeforeTextNode, nodeRef);
|
|
2583
2562
|
}
|
|
@@ -2596,7 +2575,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
|
|
|
2596
2575
|
});
|
|
2597
2576
|
}
|
|
2598
2577
|
};
|
|
2599
|
-
var parseVNodeAnnotations = (
|
|
2578
|
+
var parseVNodeAnnotations = (doc2, node, docData, orgLocationNodes) => {
|
|
2600
2579
|
var _a;
|
|
2601
2580
|
if (node == null) {
|
|
2602
2581
|
return;
|
|
@@ -2612,13 +2591,13 @@ var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
|
|
|
2612
2591
|
const cmpData = {
|
|
2613
2592
|
nodeIds: 0
|
|
2614
2593
|
};
|
|
2615
|
-
insertVNodeAnnotations(
|
|
2594
|
+
insertVNodeAnnotations(doc2, childNode, hostRef.$vnode$, docData, cmpData);
|
|
2616
2595
|
}
|
|
2617
|
-
parseVNodeAnnotations(
|
|
2596
|
+
parseVNodeAnnotations(doc2, childNode, docData, orgLocationNodes);
|
|
2618
2597
|
});
|
|
2619
2598
|
}
|
|
2620
2599
|
};
|
|
2621
|
-
var insertVNodeAnnotations = (
|
|
2600
|
+
var insertVNodeAnnotations = (doc2, hostElm, vnode, docData, cmpData) => {
|
|
2622
2601
|
if (vnode != null) {
|
|
2623
2602
|
const hostId = ++docData.hostIds;
|
|
2624
2603
|
hostElm.setAttribute(HYDRATE_ID, hostId);
|
|
@@ -2628,7 +2607,7 @@ var insertVNodeAnnotations = (doc, hostElm, vnode, docData, cmpData) => {
|
|
|
2628
2607
|
if (vnode.$children$ != null) {
|
|
2629
2608
|
const depth = 0;
|
|
2630
2609
|
vnode.$children$.forEach((vnodeChild, index) => {
|
|
2631
|
-
insertChildVNodeAnnotations(
|
|
2610
|
+
insertChildVNodeAnnotations(doc2, vnodeChild, cmpData, hostId, depth, index);
|
|
2632
2611
|
});
|
|
2633
2612
|
}
|
|
2634
2613
|
if (hostElm && vnode && vnode.$elm$ && !hostElm.hasAttribute(HYDRATE_CHILD_ID)) {
|
|
@@ -2649,7 +2628,7 @@ var insertVNodeAnnotations = (doc, hostElm, vnode, docData, cmpData) => {
|
|
|
2649
2628
|
}
|
|
2650
2629
|
}
|
|
2651
2630
|
};
|
|
2652
|
-
var insertChildVNodeAnnotations = (
|
|
2631
|
+
var insertChildVNodeAnnotations = (doc2, vnodeChild, cmpData, hostId, depth, index) => {
|
|
2653
2632
|
const childElm = vnodeChild.$elm$;
|
|
2654
2633
|
if (childElm == null) {
|
|
2655
2634
|
return;
|
|
@@ -2668,7 +2647,7 @@ var insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, inde
|
|
|
2668
2647
|
const nodeName = parentNode == null ? void 0 : parentNode.nodeName;
|
|
2669
2648
|
if (nodeName !== "STYLE" && nodeName !== "SCRIPT") {
|
|
2670
2649
|
const textNodeId = `${TEXT_NODE_ID}.${childId}`;
|
|
2671
|
-
const commentBeforeTextNode =
|
|
2650
|
+
const commentBeforeTextNode = doc2.createComment(textNodeId);
|
|
2672
2651
|
insertBefore(parentNode, commentBeforeTextNode, childElm);
|
|
2673
2652
|
}
|
|
2674
2653
|
} else if (childElm.nodeType === 8 /* CommentNode */) {
|
|
@@ -2681,7 +2660,7 @@ var insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, inde
|
|
|
2681
2660
|
if (vnodeChild.$children$ != null) {
|
|
2682
2661
|
const childDepth = depth + 1;
|
|
2683
2662
|
vnodeChild.$children$.forEach((vnode, index2) => {
|
|
2684
|
-
insertChildVNodeAnnotations(
|
|
2663
|
+
insertChildVNodeAnnotations(doc2, vnode, cmpData, hostId, childDepth, index2);
|
|
2685
2664
|
});
|
|
2686
2665
|
}
|
|
2687
2666
|
};
|
|
@@ -2897,7 +2876,7 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
|
|
|
2897
2876
|
return elm;
|
|
2898
2877
|
};
|
|
2899
2878
|
tmrId = globalThis.setTimeout(timeoutExceeded, opts.timeout);
|
|
2900
|
-
plt.$resourcesUrl$ = new URL(opts.resourcesUrl || "./",
|
|
2879
|
+
plt.$resourcesUrl$ = new URL(opts.resourcesUrl || "./", doc.baseURI).href;
|
|
2901
2880
|
patchChild2(win2.document.body);
|
|
2902
2881
|
waitLoop2().then(hydratedComplete).catch(hydratedError);
|
|
2903
2882
|
} catch (e) {
|
|
@@ -3104,6 +3083,7 @@ var registerComponents = (Cstrs) => {
|
|
|
3104
3083
|
}
|
|
3105
3084
|
};
|
|
3106
3085
|
var win = window;
|
|
3086
|
+
var doc = win.document;
|
|
3107
3087
|
var writeTask = (cb) => {
|
|
3108
3088
|
nextTick$1(() => {
|
|
3109
3089
|
try {
|
|
@@ -3220,7 +3200,7 @@ class Accordion {
|
|
|
3220
3200
|
const accordionLightContent = this.isLight ? 'accordion-content accordion-light-content' : 'accordion-content';
|
|
3221
3201
|
const accordionLightSeparator = this.isLightSeparator ? 'accordion accordion-light accordion-light--border' : 'accordion';
|
|
3222
3202
|
const accordionSmall = this.isSmall ? 'accordion accordion-light accordion-light--small' : 'accordion';
|
|
3223
|
-
return (hAsync("details", { key: '
|
|
3203
|
+
return (hAsync("details", { key: '9ecf9d3dd47a312ea19186da4a7f5481888ed3c9', class: `${accordionLight} ${accordionSmall} ${accordionLightSeparator}`, open: this.isOpen }, hAsync("summary", { key: '602b2aaf2ce59966ed779b2d8308b7aa58cd8b74', class: "accordion-trigger", "aria-expanded": `${this.isOpen}`, tabindex: "0", role: "button", onClick: this.onClick }, hAsync("div", { key: 'c883e3372d6d159d1b0b75e739cc5612185491c4', class: accordionLightHeader }, hAsync("slot", { key: '076b3ec9679721b42700006141a1ef8cfef45aeb', name: "icon-left" }), hAsync("slot", { key: '77ef2666538e4270898992bea01f868747722268', name: "header" }), hAsync("road-icon", { key: 'f80d4a114cf6fb1b2a5f91b7e956b16710f663ff', class: "accordion-arrow", icon: navigationChevron }))), hAsync("div", { key: 'eaac61794b2ad598869da68ab3e80ebd2ee6e8f6', class: accordionLightContent }, hAsync("slot", { key: 'c447b25b94660720dbbe3e068544d2d2b8213301' }))));
|
|
3224
3204
|
}
|
|
3225
3205
|
static get style() { return RoadAccordionStyle0; }
|
|
3226
3206
|
static get cmpMeta() { return {
|
|
@@ -3255,7 +3235,7 @@ class Alert {
|
|
|
3255
3235
|
}
|
|
3256
3236
|
render() {
|
|
3257
3237
|
const colorClass = this.color !== undefined ? `alert-${this.color}` : '';
|
|
3258
|
-
return (hAsync(Host, { key: '
|
|
3238
|
+
return (hAsync(Host, { key: '9cc447d2252f1de44cf00844bba543faeee47673', class: colorClass, role: "alert" }, hAsync("div", { key: '99aae458e240b0ceca6bcaf480e1eaf34d278083', class: "alert-icon" }, hAsync("slot", { key: 'ab906fadd80be1cc2013ccfb5fe5b5dfb2b58e4d', name: "icon" })), hAsync("div", { key: 'e28570db8110387f914eceee41805246f9d1ee00' }, this.label && hAsync("span", { key: 'c28a7937a0c9128723d889f96a716adf0f8b3b32', class: "alert-title d-block" }, this.label), hAsync("p", { key: 'e09f90763280f99114bbecc77609fc52eaec8156', class: "alert-description" }, hAsync("slot", { key: 'fd033b5cdeaaed1750aa56a97cace05f00299919' }), this.link && hAsync("a", { key: 'a03c33930745ea5ca76ce44c5837f2fc603440d5', href: this.url, class: "alert-link link link-default" }, this.link)))));
|
|
3259
3239
|
}
|
|
3260
3240
|
static get style() { return RoadAlertStyle0; }
|
|
3261
3241
|
static get cmpMeta() { return {
|
|
@@ -3354,7 +3334,7 @@ class Asset {
|
|
|
3354
3334
|
}
|
|
3355
3335
|
}
|
|
3356
3336
|
render() {
|
|
3357
|
-
return (hAsync(Host, { key: '
|
|
3337
|
+
return (hAsync(Host, { key: '2d503f725eb5c0b6a4a14d63b13482c759a82346', "aria-hidden": "true", role: "img" }, ((this.assetSvgContent !== '')
|
|
3358
3338
|
? hAsync("div", { class: "icon-inner", innerHTML: this.assetSvgContent })
|
|
3359
3339
|
: hAsync("div", { class: "icon-inner" }))));
|
|
3360
3340
|
}
|
|
@@ -3424,8 +3404,8 @@ class Autocomplete {
|
|
|
3424
3404
|
}
|
|
3425
3405
|
}
|
|
3426
3406
|
render() {
|
|
3427
|
-
return (hAsync(Host, { key: '
|
|
3428
|
-
hAsync("ul", { key: '
|
|
3407
|
+
return (hAsync(Host, { key: 'cd78e4ac91f09453798ba115ced0fb988eb0a8a7' }, hAsync("slot", { key: '1d7b9bbd7b60d1c711f5c607679acf6e84a21b94' }), this.visible && this.options.length > 0 &&
|
|
3408
|
+
hAsync("ul", { key: '1e888535bd025805a784f5be52d7266ce9505834', 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))))));
|
|
3429
3409
|
}
|
|
3430
3410
|
get el() { return getElement(this); }
|
|
3431
3411
|
static get style() { return RoadAutocompleteStyle0; }
|
|
@@ -3458,7 +3438,7 @@ class Avatar {
|
|
|
3458
3438
|
}
|
|
3459
3439
|
render() {
|
|
3460
3440
|
const sizeClass = this.size !== undefined ? `avatar-${this.size}` : '';
|
|
3461
|
-
return (hAsync(Host, { key: '
|
|
3441
|
+
return (hAsync(Host, { key: 'ae94654b2d0efa40df3f7f8bb0b98eedd13dbabc', class: `${sizeClass}` }, hAsync("slot", { key: 'f08ba7c45f82d1c97875f8d84cf6366180b7d28f' })));
|
|
3462
3442
|
}
|
|
3463
3443
|
static get style() { return RoadAvatarStyle0; }
|
|
3464
3444
|
static get cmpMeta() { return {
|
|
@@ -3494,7 +3474,7 @@ class Badge {
|
|
|
3494
3474
|
render() {
|
|
3495
3475
|
const colorClass = this.color !== undefined ? `badge-${this.color}` : '';
|
|
3496
3476
|
const bubbleClass = this.bubble ? 'badge-bubble' : '';
|
|
3497
|
-
return (hAsync(Host, { key: '
|
|
3477
|
+
return (hAsync(Host, { key: '46710f751904f847c87a9d4c7aecfff28cd947b7', class: `${colorClass} ${bubbleClass}` }, hAsync("slot", { key: '057541241fcce16d82c935db7ed1685549ae8658' })));
|
|
3498
3478
|
}
|
|
3499
3479
|
static get style() { return RoadBadgeStyle0; }
|
|
3500
3480
|
static get cmpMeta() { return {
|
|
@@ -3543,7 +3523,7 @@ class Banner {
|
|
|
3543
3523
|
}
|
|
3544
3524
|
render() {
|
|
3545
3525
|
const bannerIsOpenClass = this.isOpen ? 'banner-open' : '';
|
|
3546
|
-
return (hAsync(Host, { key: '
|
|
3526
|
+
return (hAsync(Host, { key: 'b577ca0f17edb3b46c7b2cb2ac2197f5f02c8812', class: bannerIsOpenClass }, hAsync("div", { key: '7fdae564fca2e5afc700f2b84ef8c5d9202a6f0d' }, hAsync("span", { key: '288fc95bd055ed51200118a5324c356ed713c49c', class: "banner-open-label" }, this.label), this.link && hAsync("a", { key: 'd9973fea9e8ca309dc8d4857514f66fd8a2f214f', href: this.url, class: "banner-open-link" }, this.link), hAsync("button", { key: '11c3445b111c27dfeb4d4cfbee80451bb6d324dd', type: "button", class: "banner-close", onClick: this.onClick, "aria-label": "closed" }, hAsync("road-icon", { key: '224ac1f3cf541008e52deaa80cf67036136ef619', icon: navigationClose, size: "md" })))));
|
|
3547
3527
|
}
|
|
3548
3528
|
static get style() { return RoadBannerStyle0; }
|
|
3549
3529
|
static get cmpMeta() { return {
|
|
@@ -3649,7 +3629,7 @@ class Button$1 {
|
|
|
3649
3629
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
3650
3630
|
const expandClass = this.expand ? 'btn-block' : '';
|
|
3651
3631
|
const iconOnlyClass = this.iconOnly ? 'btn-icon' : '';
|
|
3652
|
-
return (hAsync(Host, { key: '
|
|
3632
|
+
return (hAsync(Host, { key: 'e5b8dd08f76f1df148dc709400f6bc6f5f1d172f', class: [colorClass, sizeClass, expandClass, iconOnlyClass].filter(Boolean).join(' '), onClick: this.onClick, "aria-disabled": disabled ? 'true' : null }, hAsync(TagType, Object.assign({ key: '7b6f3ebbb0efe42833c9d8be4d673717baf804d2' }, attrs, { class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur }), hAsync("slot", { key: '0983ac49a4ddb3fb86e53bb327f319bb2506bf9b', name: "start" }), hAsync("slot", { key: 'd51132e2d19d746e753b51f43ab0f7125d5e9e71' }), hAsync("slot", { key: '4c80d11c1321f7d818dee47d3912045546dbfde5', name: "end" }))));
|
|
3653
3633
|
}
|
|
3654
3634
|
get el() { return getElement(this); }
|
|
3655
3635
|
static get style() { return RoadButtonStyle0; }
|
|
@@ -3734,7 +3714,7 @@ class Button {
|
|
|
3734
3714
|
render() {
|
|
3735
3715
|
const TagType = this.href === undefined ? 'button' : 'a';
|
|
3736
3716
|
const positionClass = this.position !== undefined ? `position-${this.position}` : '';
|
|
3737
|
-
return (hAsync(Host, { key: '
|
|
3717
|
+
return (hAsync(Host, { key: 'b6a0c45dc2bd3f248c2c4dbac33d65fb711e870c', onClick: this.onClick, class: `${positionClass}` }, hAsync(TagType, { key: '0d5f7ec7699618790560496f3121d1573ec94967', class: "button-native", part: "native", onFocus: this.onFocus, onBlur: this.onBlur }, hAsync("slot", { key: '2d4a42b9bdce645b658335b5beaa659876cd39cc', name: "start" }), hAsync("slot", { key: '6a69fabd8f023d9c99162de0b94d06d5830886fc' }))));
|
|
3738
3718
|
}
|
|
3739
3719
|
get el() { return getElement(this); }
|
|
3740
3720
|
static get style() { return RoadButtonFloatingStyle0; }
|
|
@@ -3779,7 +3759,7 @@ class ButtonBar {
|
|
|
3779
3759
|
this.selectedTabChanged();
|
|
3780
3760
|
}
|
|
3781
3761
|
render() {
|
|
3782
|
-
return (hAsync(Host, { key: '
|
|
3762
|
+
return (hAsync(Host, { key: 'a86825b2a0a80447cf3c3226cf147a273fad1a8e', role: "tablist" }, hAsync("slot", { key: 'a94f54337ed8a4b962672463efa8f2dbbd7ca9b2' })));
|
|
3783
3763
|
}
|
|
3784
3764
|
get el() { return getElement(this); }
|
|
3785
3765
|
static get watchers() { return {
|
|
@@ -3862,7 +3842,7 @@ class Card {
|
|
|
3862
3842
|
render() {
|
|
3863
3843
|
const { elevation } = this;
|
|
3864
3844
|
const elevationClass = this.elevation ? `card-elevation-${elevation}` : ``;
|
|
3865
|
-
return (hAsync(Host, { key: '
|
|
3845
|
+
return (hAsync(Host, { key: 'f80c0254db11ead4353613bc40fd24e602ec92e0', class: `${elevationClass}` }, this.renderCard()));
|
|
3866
3846
|
}
|
|
3867
3847
|
get el() { return getElement(this); }
|
|
3868
3848
|
static get style() { return RoadCardStyle0; }
|
|
@@ -10609,7 +10589,7 @@ class Carousel {
|
|
|
10609
10589
|
});
|
|
10610
10590
|
}
|
|
10611
10591
|
render() {
|
|
10612
|
-
return (hAsync(Host, { key: '
|
|
10592
|
+
return (hAsync(Host, { key: '2a982ae0f568ff1c1b5058eb625089e2641167e3', class: "swiper-container", tabindex: "0" }, hAsync("div", { key: '33998e1721368db6676c787d8d8d147d58b20f2b', class: "swiper-wrapper" }, hAsync("slot", { key: 'a30ca3227585421f0d0007464dfa102287d7445d' })), this.pager && hAsync("div", { key: '4b64e3039747df92ef1ffe35cf8ceed172773806', class: "swiper-pagination", ref: el => this.paginationEl = el }), this.arrows && (hAsync("div", { key: '693773a16e3cb5c26f95ef80b824e1a7fad15335', role: "button", class: "swiper-button-prev", tabindex: "0", "aria-label": "Previous slide", onClick: () => this.slidePrev() }, hAsync("road-icon", { key: 'a0f3bf52a1c66efb39f0060ceac0d7d57b0425ff', icon: navigationChevron, rotate: "180" }))), this.arrows && (hAsync("div", { key: 'df9ac586165de6ff2aa4e10292ef7f6c841da937', role: "button", class: "swiper-button-next", tabindex: "0", "aria-label": "Next slide", onClick: () => this.slideNext() }, hAsync("road-icon", { key: '450b3fbf29d3d3afb52fdabf428af42ac8af6e92', icon: navigationChevron })))));
|
|
10613
10593
|
}
|
|
10614
10594
|
get el() { return getElement(this); }
|
|
10615
10595
|
static get watchers() { return {
|
|
@@ -10660,10 +10640,10 @@ class CarouselItem {
|
|
|
10660
10640
|
registerInstance(this, hostRef);
|
|
10661
10641
|
}
|
|
10662
10642
|
render() {
|
|
10663
|
-
return (hAsync(Host, { key: '
|
|
10643
|
+
return (hAsync(Host, { key: 'f425a67ef916ebbe06b2b670e552ab34239c15f3', class: {
|
|
10664
10644
|
'swiper-slide': true,
|
|
10665
10645
|
'swiper-zoom-container': true,
|
|
10666
|
-
} }, hAsync("slot", { key: '
|
|
10646
|
+
} }, hAsync("slot", { key: '952543988b361e537351e7e2ae13926daed98962' })));
|
|
10667
10647
|
}
|
|
10668
10648
|
static get style() { return RoadCarouselItemStyle0; }
|
|
10669
10649
|
static get cmpMeta() { return {
|
|
@@ -10754,7 +10734,7 @@ class Checkbox {
|
|
|
10754
10734
|
const labelId = this.checkboxId + '-label';
|
|
10755
10735
|
const inverseClass = this.inverse && 'form-checkbox-inverse';
|
|
10756
10736
|
const isInvalidClass = this.error !== undefined && !this.checked && this.error !== '' ? 'is-invalid' : '';
|
|
10757
|
-
return (hAsync(Host, { key: '
|
|
10737
|
+
return (hAsync(Host, { key: '6995fbbbeb6ebf2d951c3c1c27e5ac5fb01f83d4' }, hAsync("input", { key: '5ccb5ef98693bda515581883c7131862cd05dd15', 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: 'f4c1b13fce865e543ea9cf945e1d49555316d852', class: `form-check-label ${inverseClass}`, id: labelId, htmlFor: this.checkboxId }, hAsync("div", { key: '722430e8e0cb36ace19fbe7f607678adfa5016b9' }, this.label, " ", hAsync("span", { key: '716477446f4e38dc044f166a8570eeb0ed0349fa', class: "form-check-label-span" }, this.secondaryLabel), hAsync("slot", { key: '8efd53b72e82e1c733ba1e76ff947e214eb5871d' })), this.checked && !this.indeterminate && hAsync("road-icon", { key: '5dadb9ce2d72ee95e3997603c6603a2cbc6b5cf9', class: "form-check-icon", icon: checkWide }), this.indeterminate && hAsync("road-icon", { key: '4404d6ece6992963c92f49cac43dd916462de828', class: "form-check-icon", icon: navigationAddLess })), this.error && this.error !== '' && hAsync("p", { key: '157dd931ea7c70d2fd5f9e9831c04d1330cf302d', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: '75e1b6fbd4227193fc7095ac9a9e01efcbae944b', class: "helper" }, this.helper)));
|
|
10758
10738
|
}
|
|
10759
10739
|
static get watchers() { return {
|
|
10760
10740
|
"checked": ["checkedChanged"]
|
|
@@ -10812,7 +10792,7 @@ class Chip {
|
|
|
10812
10792
|
}
|
|
10813
10793
|
render() {
|
|
10814
10794
|
const outlineClass = this.outline ? 'chip-outline' : '';
|
|
10815
|
-
return (hAsync(Host, { key: '
|
|
10795
|
+
return (hAsync(Host, { key: '8d77450b3756d8422dcb5515b348c5aa7e0171e6', class: `${outlineClass} chip-${this.color} chip-${this.size}`, tabindex: "0" }, hAsync("div", { key: 'd3bb97b4345f5a4111ca1705f0125de1fec3ffb7', class: "chip-description" }, hAsync("slot", { key: '2ef12b7b35ebe5e8467359cc30f13653e57d407b' })), this.hasCloseIcon && hAsync("road-icon", { key: '63989d14622de72651c3477373fab76c4088082f', class: "chip-close", icon: navigationClose })));
|
|
10816
10796
|
}
|
|
10817
10797
|
static get style() { return RoadChipStyle0; }
|
|
10818
10798
|
static get cmpMeta() { return {
|
|
@@ -10841,7 +10821,7 @@ class Col {
|
|
|
10841
10821
|
registerInstance(this, hostRef);
|
|
10842
10822
|
}
|
|
10843
10823
|
render() {
|
|
10844
|
-
return (hAsync("slot", { key: '
|
|
10824
|
+
return (hAsync("slot", { key: '5f6e0170465e4bb6b7e94d2e383bf46dfca94e4c' }));
|
|
10845
10825
|
}
|
|
10846
10826
|
static get style() { return RoadColStyle0; }
|
|
10847
10827
|
static get cmpMeta() { return {
|
|
@@ -10891,7 +10871,7 @@ class Collapse {
|
|
|
10891
10871
|
const isOpenClass = this.isOpen ? 'collapse-open' : '';
|
|
10892
10872
|
const buttonText = this.isOpen ? this.showLess : this.showMore;
|
|
10893
10873
|
const centerClass = this.centered ? 'collapse-btn-centered' : '';
|
|
10894
|
-
return (hAsync(Host, { key: '
|
|
10874
|
+
return (hAsync(Host, { key: 'aca8371dea8c26e595b0ab425aa86c20c0b68579' }, hAsync("slot", { key: 'acd50d732c5c51863ceade2b137a734cccbdfbb9' }), hAsync("div", { key: '78bbbdc169a5094b3621b9d88c8ef1758c7463eb', class: `collapsed-content ${isOpenClass}` }, hAsync("slot", { key: '8dfe513b0bfd06c1b23d6d1c33f73145064cd373', name: "collapsed-content" })), hAsync("div", { key: '21a9987c19df272d8ab9bc45080c60eeb94c2984', class: `collapse-btn-wrapper ${centerClass}` }, hAsync("road-button", { key: '1c129c724c182c1d9fe794d242b19b29518262c7', onClick: this.onClick, class: "collapse-btn btn-link" }, buttonText))));
|
|
10895
10875
|
}
|
|
10896
10876
|
static get style() { return RoadCollapseStyle0; }
|
|
10897
10877
|
static get cmpMeta() { return {
|
|
@@ -10928,7 +10908,7 @@ class ContentCard {
|
|
|
10928
10908
|
}
|
|
10929
10909
|
render() {
|
|
10930
10910
|
const insetImageClass = this.insetImage ? '' : 'content-card-image';
|
|
10931
|
-
return (hAsync(Host, { key: '
|
|
10911
|
+
return (hAsync(Host, { key: 'd480ba5219125988804c1461949620dabf50ed10' }, hAsync("road-img", { key: 'fff91989b67bb433a1db33f76ad2f69796c9f075', src: "https://s1.medias-norauto.fr/visuals/desktop/fr/banners/blog_loimontagne.png", alt: "loi montagne", class: insetImageClass }), hAsync("div", { key: 'b6c1dda6c4cf5aa3ae8c808869ac0bf867335525', class: "content-card-description" }, hAsync("road-label", { key: 'cff5c4b179a58c2f0878907212a14eeaeb91d578', class: "content-card-description-title" }, hAsync("slot", { key: 'f060f44486a70437a13c4f14bfcf5bb775c5ddbd', name: "label" })), hAsync("p", { key: '21ca4e02a190a60f65e1cdf5d641d2ef53c6a30f', class: "content-card-description-text" }, hAsync("slot", { key: 'ad0da6400b634f76cb15904b25dd23eaff6e16ee', name: "description" })), hAsync("div", { key: '300de99b13b9bd004f5c2be585b714a8cbacc050', class: "content-card-description-buttons" }, hAsync("slot", { key: '7e9f812b6144336b2010bb38b154f85ef00abc47' })))));
|
|
10932
10912
|
}
|
|
10933
10913
|
static get style() { return RoadContentCardStyle0; }
|
|
10934
10914
|
static get cmpMeta() { return {
|
|
@@ -11088,7 +11068,7 @@ class Counter {
|
|
|
11088
11068
|
}
|
|
11089
11069
|
render() {
|
|
11090
11070
|
const dataCi = this.isDustbinVisible ? "road-dustbin" : "";
|
|
11091
|
-
return (hAsync("road-input-group", { key: '
|
|
11071
|
+
return (hAsync("road-input-group", { key: 'bbedd0e44413119eaa6e7cc67939fd0110382664', class: this.size && `counter-${this.size}` }, hAsync("road-button", { key: 'fe454b832af27bc9cfe558229ce861d3ee3db5b5', slot: "prepend", size: this.size, onClick: this.decrease, class: this.leftIconClasses, "data-cy": "road-decrease" }, hAsync("road-icon", { key: '25bba57b31a2c51f559dd4aed2e2d24ae1b28176', 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: '62a5e892d86f847657e16a1944215c0c4ffaaf5c', 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: 'cd5ecfe32e70032ea5b5c48be31465a5d773e9f0', slot: "append", size: this.size, onClick: this.increase, class: this.rightIconClasses, "data-cy": "road-increase" }, hAsync("road-icon", { key: 'beb7da66e43a95be32cfafd061e1166d3a8e679d', name: "navigation-add-more", size: this.size, role: "button" }))));
|
|
11092
11072
|
}
|
|
11093
11073
|
get el() { return getElement(this); }
|
|
11094
11074
|
static get watchers() { return {
|
|
@@ -11204,11 +11184,11 @@ class Dialog {
|
|
|
11204
11184
|
break;
|
|
11205
11185
|
}
|
|
11206
11186
|
}
|
|
11207
|
-
return (hAsync(Host, { key: '
|
|
11187
|
+
return (hAsync(Host, { key: 'c5b646f2f3a72188a16cac11ef4c3228b88dd0b1', class: `dialog ${modalIsOpenClass} ${modalhasClose}`, role: "alertdialog", "aria-modal": "true", tabindex: "-1", "aria-label": "dialogLabel" }, hAsync("div", { key: 'd81b4dc31a097bf77829aef84f9089339374ab92', class: "dialog-overlay", onClick: this.hasCloseIcon === true ? this.onClick : undefined, tabindex: "-1" }), hAsync("div", { key: 'beb6a951560b83a2b58db31ac345e101e72b68da', class: "dialog-modal", role: "document", tabindex: "0" }, hAsync("div", { key: 'dfc3a78e469c648689b5e11f8de3ec7834f6eced', class: "dialog-content" }, hAsync("header", { key: '59c066d9a3bcec051697838c5eed0bcec69defb4', class: "dialog-header" }, this.hasCloseIcon
|
|
11208
11188
|
? hAsync("button", { type: "button", class: "dialog-close", onClick: this.onClick, "aria-label": "Close" }, hAsync("road-icon", { icon: navigationClose, "aria-hidden": "true" }))
|
|
11209
|
-
: ''), hAsync("div", { key: '
|
|
11189
|
+
: ''), hAsync("div", { key: '9cb587ec75f3f6c8cb9d0335c3ffe150d8e3d03a', class: "dialog-body" }, this.color !== undefined
|
|
11210
11190
|
? hAsync("road-icon", { class: "dialog-icon", part: "dialog-icon", color: this.color, icon: icon, "aria-hidden": "true" })
|
|
11211
|
-
: '', hAsync("h2", { key: '
|
|
11191
|
+
: '', hAsync("h2", { key: 'd50ab0b85e07805953c5f11375111ac268cdc0ab', class: "dialog-title" }, this.label), hAsync("p", { key: '6343a2dace2b1becc4011c649806c03c6ad4bf70', class: "dialog-description", id: "dialogDesc" }, this.description)), hAsync("footer", { key: '4dffea28ba6fbdb511b08986c296657a79f454e0', class: "dialog-footer" }, hAsync("slot", { key: '2cda1d339639b6bed89cf5a2d01d99e2482e972b' }))))));
|
|
11212
11192
|
}
|
|
11213
11193
|
get el() { return getElement(this); }
|
|
11214
11194
|
static get style() { return RoadDialogStyle0; }
|
|
@@ -11231,7 +11211,7 @@ class Dialog {
|
|
|
11231
11211
|
}; }
|
|
11232
11212
|
}
|
|
11233
11213
|
|
|
11234
|
-
const drawerCss = ":host{--background:var(--road-surface);--color:var(--road-on-surface);--header-icon:var(--road-on-surface);--header-color:var(--road-on-surface);--header-background:var(--road-surface);--header-delimiter:0;--back-chevron-color:var(--road-icon);--max-height:auto;--z-index:10;position:fixed;top:0;left:0;z-index:var(--z-index);display:flex;justify-content:flex-start;width:100%;height:100%;overflow:hidden;font-family:var(--road-font, sans-serif);line-height:1.5;color:var(--color);visibility:hidden !important;opacity:0;transition:opacity 0.15s linear, visibility 0.15s}.drawer-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;touch-action:none;cursor:pointer;background:var(--road-overlay)}.drawer-dialog{position:relative;width:100%;pointer-events:none;transition:transform 0.3s ease-out;transform:translateX(-100%)}:host(.drawer-right){justify-content:flex-end}:host(.drawer-right) .drawer-dialog{transform:translateX(100%)}:host(.drawer-bottom){align-items:flex-end}:host(.drawer-bottom) .drawer-dialog{width:100%;max-height:var(--max-height);transform:translateY(100%)}:host(.drawer-bottom) .drawer-content{height:auto}.drawer-content{position:relative;display:flex;flex-direction:column;width:100%;height:100vh;pointer-events:auto;background-color:var(--background);background-clip:padding-box;box-shadow:var(--road-elevation-hight)}.drawer-header{display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;height:3.5rem;color:var(--header-color);background:var(--header-background);border-color:var(--road-grey-300);border-style:solid;border-width:var(--header-delimiter)}.drawer-header road-icon{flex-shrink:0;color:var(--header-icon)}.drawer-footer{padding:var(--road-spacing-05);background-color:var(--road-surface)}.drawer-header-inverse{--header-icon:var(--road-on-primary);--header-color:var(--road-on-primary);--header-background:var(--road-primary-variant);margin-bottom:2.5rem}.drawer-action,.drawer-close{display:flex;align-items:center;justify-content:center;height:3.5rem;padding:0.5rem;font-family:inherit;font-size:0.875rem;color:inherit;cursor:pointer;background:transparent;border:0;appearance:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.drawer-header:not(.drawer-header-inverse) .drawer-action road-icon{color:var(--back-chevron-color)}.drawer-action~.drawer-title,.drawer-close~.drawer-title{padding-left:0}.drawer-action-left,.drawer-close-left{margin-right:auto}.drawer-title{display:flex;flex-grow:1;align-items:center;justify-content:center;height:3.5rem;padding-left:3.5rem;margin:0;font-size:var(--road-body-medium)}.drawer-body{overflow-y:auto}:host(.drawer-right) .drawer-body,:host(.drawer-left) .drawer-body{height:calc(100vh - 3.5rem)}.drawer-inner{padding:0 1rem 2.5rem}@media (min-width: 768px){.drawer-inner{padding:0 2rem 2.5rem}.drawer-body{padding:0 var(--road-spacing-08) var(--road-spacing-05)}.drawer-footer{padding:var(--road-spacing-05) var(--road-spacing-08)}}:host(.drawer-open){visibility:visible !important;opacity:1}:host(.drawer-open) .drawer-dialog{transform:none}";
|
|
11214
|
+
const drawerCss = ":host{--background:var(--road-surface);--color:var(--road-on-surface);--header-icon:var(--road-on-surface);--header-color:var(--road-on-surface);--header-background:var(--road-surface);--header-delimiter:0;--back-chevron-color:var(--road-icon);--max-height:auto;--z-index:10;position:fixed;top:0;left:0;z-index:var(--z-index);display:flex;justify-content:flex-start;width:100%;height:100%;overflow:hidden;font-family:var(--road-font, sans-serif);line-height:1.5;color:var(--color);visibility:hidden !important;opacity:0;transition:opacity 0.15s linear, visibility 0.15s}.drawer-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;touch-action:none;cursor:pointer;background:var(--road-overlay)}.drawer-dialog{position:relative;width:100%;pointer-events:none;transition:transform 0.3s ease-out;transform:translateX(-100%)}:host(.drawer-right){justify-content:flex-end}:host(.drawer-right) .drawer-dialog{transform:translateX(100%)}:host(.drawer-bottom){align-items:flex-end}:host(.drawer-bottom) .drawer-dialog{width:100%;max-height:var(--max-height);transform:translateY(100%)}:host(.drawer-bottom) .drawer-content{height:auto}.drawer-content{position:relative;display:flex;flex-direction:column;width:100%;height:100vh;pointer-events:auto;background-color:var(--background);background-clip:padding-box;box-shadow:var(--road-elevation-hight)}.drawer-header{display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;height:3.5rem;color:var(--header-color);background:var(--header-background);border-color:var(--road-grey-300);border-style:solid;border-width:var(--header-delimiter)}.drawer-header road-icon{flex-shrink:0;color:var(--header-icon)}.drawer-footer{padding:var(--road-spacing-05);background-color:var(--road-surface)}.drawer-footer.remove-padding{padding:0}.drawer-header-inverse{--header-icon:var(--road-on-primary);--header-color:var(--road-on-primary);--header-background:var(--road-primary-variant);margin-bottom:2.5rem}.drawer-action,.drawer-close{display:flex;align-items:center;justify-content:center;height:3.5rem;padding:0.5rem;font-family:inherit;font-size:0.875rem;color:inherit;cursor:pointer;background:transparent;border:0;appearance:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.drawer-header:not(.drawer-header-inverse) .drawer-action road-icon{color:var(--back-chevron-color)}.drawer-action~.drawer-title,.drawer-close~.drawer-title{padding-left:0}.drawer-action-left,.drawer-close-left{margin-right:auto}.drawer-title{display:flex;flex-grow:1;align-items:center;justify-content:center;height:3.5rem;padding-left:3.5rem;margin:0;font-size:var(--road-body-medium)}.drawer-body{overflow-y:auto;padding:0 var(--road-spacing-05) var(--road-spacing-05)}.drawer-body.remove-padding{padding:0}:host(.drawer-right) .drawer-body,:host(.drawer-left) .drawer-body{height:calc(100vh - 3.5rem)}.drawer-inner{padding:0 1rem 2.5rem}@media (min-width: 768px){.drawer-inner{padding:0 2rem 2.5rem}.drawer-body{padding:0 var(--road-spacing-08) var(--road-spacing-05)}.drawer-body.remove-padding{padding:0}.drawer-footer{padding:var(--road-spacing-05) var(--road-spacing-08)}.drawer-footer.remove-padding{padding:0}}:host(.drawer-open){visibility:visible !important;opacity:1}:host(.drawer-open) .drawer-dialog{transform:none}";
|
|
11235
11215
|
var RoadDrawerStyle0 = drawerCss;
|
|
11236
11216
|
|
|
11237
11217
|
/**
|
|
@@ -11253,6 +11233,10 @@ class Drawer {
|
|
|
11253
11233
|
* Set isOpen property to true to open the drawer
|
|
11254
11234
|
*/
|
|
11255
11235
|
this.isOpen = false;
|
|
11236
|
+
/**
|
|
11237
|
+
* Set removePadding property to true to remove padding for drawer body
|
|
11238
|
+
*/
|
|
11239
|
+
this.removePadding = false;
|
|
11256
11240
|
/**
|
|
11257
11241
|
* position of the drawer. e.g. left, right, bottom
|
|
11258
11242
|
*/
|
|
@@ -11361,6 +11345,7 @@ class Drawer {
|
|
|
11361
11345
|
render() {
|
|
11362
11346
|
var _a, _b, _c;
|
|
11363
11347
|
const drawerIsOpenClass = this.isOpen ? 'drawer-open' : '';
|
|
11348
|
+
const removePaddingClass = this.removePadding ? 'remove-padding' : '';
|
|
11364
11349
|
const inverseHeaderClass = this.hasInverseHeader ? 'drawer-header-inverse' : '';
|
|
11365
11350
|
const ariaLabel = (_a = this.ariaLabel) !== null && _a !== void 0 ? _a : 'drawer';
|
|
11366
11351
|
const ariaLabelBack = (_b = this.ariaLabelBack) !== null && _b !== void 0 ? _b : 'Back';
|
|
@@ -11369,7 +11354,7 @@ class Drawer {
|
|
|
11369
11354
|
const backIconElement = this.hasBackIcon ? (hAsync("button", { type: "button", class: "drawer-action", "aria-label": ariaLabelBack, onClick: this.onClickBack }, hAsync("road-icon", { icon: navigationChevron, rotate: "180" }), this.backText)) : null;
|
|
11370
11355
|
const closeIconElement = this.hasCloseIcon ? (hAsync("button", { type: "button", class: "drawer-close", onClick: this.onClick, "aria-label": ariaLabelClose }, hAsync("road-icon", { icon: navigationClose, "aria-hidden": "true" }))) : null;
|
|
11371
11356
|
const drawerWidthValue = this.position === 'bottom' ? '100%' : `${this.drawerWidth}px`;
|
|
11372
|
-
return (hAsync(Host, { key: '
|
|
11357
|
+
return (hAsync(Host, { key: '8fe90c0fdc80e150cd713ac326554ff8f790913a', class: `${drawerIsOpenClass} drawer-${this.position}`, tabindex: "0", role: "dialog", "aria-label": ariaLabel }, hAsync("div", { key: '5af4bae5d683fc8b19b2bdd61660f0fa463b2948', class: "drawer-overlay", onClick: this.onClick, tabindex: "-1" }), hAsync("div", { key: '52706ef32a512568a02eb5766040ed01946170ba', class: "drawer-dialog", style: { maxWidth: drawerWidthValue }, role: "document", tabindex: "0" }, hAsync("div", { key: '15675caaec49446aa3b06ccabb7021f8c31e58d9', class: "drawer-content" }, hAsync("header", { key: '95dc46033d506ae042b909266979e2377582b1be', 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: '46129980f11977dbe4261ade582df181b3a4b5c4', class: `drawer-body ${removePaddingClass}` }, hAsync("slot", { key: '1037e25ad0ed3e8375ad62899e4b917fb2d4434d' })), hAsync("footer", { key: 'aee3c1bdd15d62a50a09f511b3deca96212d32e5', class: `drawer-footer ${removePaddingClass}` }, hAsync("slot", { key: 'a90ddd3755cc30dbd4718dbcf57cd2c1799837a7', name: "footer" }))))));
|
|
11373
11358
|
}
|
|
11374
11359
|
get el() { return getElement(this); }
|
|
11375
11360
|
static get watchers() { return {
|
|
@@ -11381,6 +11366,7 @@ class Drawer {
|
|
|
11381
11366
|
"$tagName$": "road-drawer",
|
|
11382
11367
|
"$members$": {
|
|
11383
11368
|
"isOpen": [1028, "is-open"],
|
|
11369
|
+
"removePadding": [1028, "remove-padding"],
|
|
11384
11370
|
"position": [1],
|
|
11385
11371
|
"drawerWidth": [2, "drawer-width"],
|
|
11386
11372
|
"hasInverseHeader": [4, "has-inverse-header"],
|
|
@@ -11401,7 +11387,7 @@ class Drawer {
|
|
|
11401
11387
|
}; }
|
|
11402
11388
|
}
|
|
11403
11389
|
|
|
11404
|
-
const dropdownCss = ":host{--margin-top:0.5rem;display:block;width:max-content}.dropdown{position:relative;font-family:var(--road-font)}.dropdown summary{display:block;background-color:var(--road-surface);border-radius:0.25rem}.dropdown summary:focus,.dropdown summary.focus-visible,.dropdown summary:focus-within{background:var(--road-surface-inverse)}.dropdown summary::-webkit-details-marker{display:none}.dropdown-button{position:relative;display:flex;align-items:center;justify-content:center;width:3.5rem;height:3.5rem;cursor:pointer;border-radius:0.25rem}.dropdown-medium-button{width:2.5rem;height:2.5rem}.position-right{display:flex;justify-content:flex-end}.bg-white{background:var(--road-grey-000)}.dropdown-button-icon{width:2.5rem;height:2.5rem}.dropdown-medium-button .dropdown-button-icon{width:1.75rem;height:1.75rem}.dropdown[open] .dropdown-menu{transform:scaleY(1)}.dropdown[open] .dropdown-menu.direction-top{position:absolute;bottom:0;left:auto;transform:translate3d(0, -56px, 0);will-change:transform}.dropdown-menu{position:absolute;z-index:
|
|
11390
|
+
const dropdownCss = ":host{--margin-top:0.5rem;display:block;width:max-content}.dropdown{position:relative;font-family:var(--road-font)}.dropdown summary{display:block;background-color:var(--road-surface);border-radius:0.25rem}.dropdown summary:focus,.dropdown summary.focus-visible,.dropdown summary:focus-within{background:var(--road-surface-inverse)}.dropdown summary::-webkit-details-marker{display:none}.dropdown-button{position:relative;display:flex;align-items:center;justify-content:center;width:3.5rem;height:3.5rem;cursor:pointer;border-radius:0.25rem}.dropdown-medium-button{width:2.5rem;height:2.5rem}.position-right{display:flex;justify-content:flex-end}.bg-white{background:var(--road-grey-000)}.dropdown-button-icon{width:2.5rem;height:2.5rem}.dropdown-medium-button .dropdown-button-icon{width:1.75rem;height:1.75rem}.dropdown[open] .dropdown-menu{transform:scaleY(1)}.dropdown[open] .dropdown-menu.direction-top{position:absolute;bottom:0;left:auto;transform:translate3d(0, -56px, 0);will-change:transform}.dropdown-menu{position:absolute;z-index:2;display:flex;flex-direction:column;width:100%;min-width:16.875rem;padding:0.5rem 0;color:var(--road-on-surface);background:var(--road-surface);border:1px solid;border-color:var(--road-outline-weak);border-radius:0.25rem;box-shadow:var(--road-elevation-low);transition:transform 0.2s ease-in-out;transform:scaleY(0);transform-origin:0 0}.dropdown-left{left:0}.dropdown-right{right:0}.dropdown-item{min-height:40px;padding:0 1rem;font-size:var(--road-body-medium);line-height:1.5;color:var(--road-on-surface);text-align:left;text-decoration:none;cursor:pointer;background:var(--road-surface);border:none}.dropdown-item-border{border-color:var(--road-outline-weak);border-bottom:1px solid}.dropdown-item:hover{background:var(--road-surface-inverse)}.dropdown-item.focus-visible{outline:auto}";
|
|
11405
11391
|
var RoadDropdownStyle0 = dropdownCss;
|
|
11406
11392
|
|
|
11407
11393
|
class Dropdown$1 {
|
|
@@ -11429,7 +11415,7 @@ class Dropdown$1 {
|
|
|
11429
11415
|
const positionClass = this.position ? `position-${this.position}` : '';
|
|
11430
11416
|
const dropdownClass = this.position ? `dropdown-${this.position}` : '';
|
|
11431
11417
|
const directionClass = this.direction ? `direction-${this.direction}` : '';
|
|
11432
|
-
return (hAsync("details", { key: '
|
|
11418
|
+
return (hAsync("details", { key: '97d54f4f12e0380ade1037a6c92622896f4068f9', class: "dropdown", open: this.isOpen }, hAsync("summary", { key: '2e26d9b9b47cd2cecb484a681247b2b460c09db1', "aria-expanded": this.isOpen.toString(), tabindex: "0", role: "button", onClick: this.onClick, "tab-index": "0" }, hAsync("div", { key: '21e361440e141ad47e14ba14098c59f5c8ecd465', class: `d-flex ${positionClass}` }, hAsync("div", { key: '0f9c052ba4f747b35eba8bc2d5f2a9cef1321027', class: `${isLightButtonDropDown} ${isMediumButtonDropDown}` }, hAsync("road-icon", { key: 'd6922e803a5ae9da688a960566dfc5ed9a57ca30', name: "navigation-more", class: "dropdown-button-icon", "aria-hidden": "true" })))), hAsync("div", { key: 'a4f1b5931247665d5f84853e42680ee4b04c2366', class: `dropdown-menu ${directionClass} ${dropdownClass}` }, hAsync("slot", { key: 'a349d6d09031c4bf0816e67fcf6a15401b10ced3', name: "list" }))));
|
|
11433
11419
|
}
|
|
11434
11420
|
get el() { return getElement(this); }
|
|
11435
11421
|
static get style() { return RoadDropdownStyle0; }
|
|
@@ -11485,7 +11471,7 @@ class Dropdown {
|
|
|
11485
11471
|
this.isOpen = false;
|
|
11486
11472
|
}
|
|
11487
11473
|
render() {
|
|
11488
|
-
return (hAsync("details", { key: '
|
|
11474
|
+
return (hAsync("details", { key: 'f123e903ea61736684002a88ec90f59aa3ad3583', class: "dropdown", open: this.isOpen }, hAsync("summary", { key: '57a2d0d8bdb9e390fc80c4594d19b8007aea8457', "aria-expanded": `${this.isOpen}`, tabindex: "0", role: "button", onClick: this.onClick }, hAsync("div", { key: '730847ca6551bd97a8ca5ce326d7c688db45abc9', class: `d-flex` }, hAsync("div", { key: '81ba00fedd8966a4de1d9b6e5fb143d604f7fd78' }, hAsync("road-avatar", { key: '1ffd5f201991e00426e3d2346f71cf368d575bed' }, hAsync("slot", { key: '5f315edbf2e208588d65481f6d1fdef9cc710167', name: "avatar" }))))), hAsync("div", { key: '5804a1978a34d124b9c0d393afc2cf3a9a8455cd', class: `dropdown-menu` }, hAsync("div", { key: '7f51670d9ae8cb74c9b4f166f95e100b54f4afa8', class: "profil-item" }, hAsync("road-avatar", { key: '038981301f8ac3c3f0a978f6df2e01014cb6977d', size: "sm" }, hAsync("slot", { key: '6e4c81af9c168c885145897b44083813511c992a', name: "avatarItem" })), hAsync("div", { key: '4956eeb2228dbdc85a05f6f6bd16b5ccc4642395', class: "profil-item-info" }, hAsync("span", { key: 'd774824085fb7064e8ac23a483b5d7f1beaf3c19', class: "profil-item-info-name" }, hAsync("slot", { key: '9f5d555413a29a54ad5132b7ee3e8681581c1ff1', name: "name" })), hAsync("road-label", { key: '833afbf05b3c926412e531af54d5b4bfddd57659' }, hAsync("slot", { key: '3a91061fb84cdcb6b752b9d64433fccbc75d8201', name: "email" })))), hAsync("slot", { key: '2a6afe22e66a02265b2c1c2e3a825af1357910ff', name: "list" }))));
|
|
11489
11475
|
}
|
|
11490
11476
|
get el() { return getElement(this); }
|
|
11491
11477
|
static get style() { return RoadProfilDropdownStyle0; }
|
|
@@ -11549,7 +11535,7 @@ class Duration {
|
|
|
11549
11535
|
this.isOpen = false;
|
|
11550
11536
|
}
|
|
11551
11537
|
render() {
|
|
11552
|
-
return (hAsync("road-drawer", { key: '
|
|
11538
|
+
return (hAsync("road-drawer", { key: '7321222cd94ddd473b8c1e6bdd6286d3bc667e1c', "is-open": this.isOpen, position: "bottom", "drawer-title": this.header }, hAsync("road-grid", { key: '4c732f2bf549095e4fc2ae4ea16294cfcfb660a3' }, hAsync("road-row", { key: '51f86b8547cb413bb307877fb3f9d1e5799d8463', 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 })))))))));
|
|
11553
11539
|
}
|
|
11554
11540
|
get el() { return getElement(this); }
|
|
11555
11541
|
static get style() { return RoadDurationStyle0; }
|
|
@@ -11595,7 +11581,7 @@ class Flap {
|
|
|
11595
11581
|
}
|
|
11596
11582
|
render() {
|
|
11597
11583
|
const colorClass = this.filled ? `flap-${this.color}-filled` : `flap-${this.color}`;
|
|
11598
|
-
return (hAsync(Host, { key: '
|
|
11584
|
+
return (hAsync(Host, { key: 'd7980784b3e488f587a11a6786835fbe1cf5d0a8', class: `${colorClass} flap-${this.size}` }, hAsync("slot", { key: '59983b06c7042e29b7643afcc3f68f4a8ba85994' })));
|
|
11599
11585
|
}
|
|
11600
11586
|
static get style() { return RoadFlapStyle0; }
|
|
11601
11587
|
static get cmpMeta() { return {
|
|
@@ -11641,7 +11627,7 @@ class GlobalNavigation {
|
|
|
11641
11627
|
this.selectedTabChanged();
|
|
11642
11628
|
}
|
|
11643
11629
|
render() {
|
|
11644
|
-
return (hAsync(Host, { key: '
|
|
11630
|
+
return (hAsync(Host, { key: '74929b493b275f9e679ac63d98016a31d6cf5f62', role: "application" }, hAsync("slot", { key: '395470abc0ee63663c357c6a8152ad0e3884eeeb' })));
|
|
11645
11631
|
}
|
|
11646
11632
|
static get watchers() { return {
|
|
11647
11633
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -11789,7 +11775,7 @@ class GlobalNavigationV2 {
|
|
|
11789
11775
|
this.selectedTabChanged();
|
|
11790
11776
|
}
|
|
11791
11777
|
render() {
|
|
11792
|
-
return (hAsync(Host, { key: '
|
|
11778
|
+
return (hAsync(Host, { key: 'db037b9925c41fc9d76f824acf83e891e655b859', role: "application" }, hAsync("slot", { key: 'e107020f45d83d398fb2b835200299ff234a749b' })));
|
|
11793
11779
|
}
|
|
11794
11780
|
get host() { return getElement(this); }
|
|
11795
11781
|
static get watchers() { return {
|
|
@@ -11819,7 +11805,7 @@ class Grid {
|
|
|
11819
11805
|
registerInstance(this, hostRef);
|
|
11820
11806
|
}
|
|
11821
11807
|
render() {
|
|
11822
|
-
return (hAsync("slot", { key: '
|
|
11808
|
+
return (hAsync("slot", { key: '4292928ec166894a60b6a691f5d7432fdabee8a4' }));
|
|
11823
11809
|
}
|
|
11824
11810
|
static get style() { return RoadGridStyle0; }
|
|
11825
11811
|
static get cmpMeta() { return {
|
|
@@ -11922,7 +11908,7 @@ class Icon {
|
|
|
11922
11908
|
const rotateClass = this.rotate ? `icon-rotate-${this.rotate}` : '';
|
|
11923
11909
|
// Ajouter une classe "default" si aucune des valeurs n'est définie
|
|
11924
11910
|
const classes = [colorClass, sizeClass, rotateClass].filter(Boolean).join(' ');
|
|
11925
|
-
return (hAsync(Host, { key: '
|
|
11911
|
+
return (hAsync(Host, { key: '37f9bb4614c5cced30ec69c9db31b52378b49273', class: classes, "aria-hidden": "true" }, this.svgContent !== ''
|
|
11926
11912
|
? hAsync("div", { class: "icon-inner", innerHTML: this.svgContent })
|
|
11927
11913
|
: hAsync("div", { class: "icon-inner" })));
|
|
11928
11914
|
}
|
|
@@ -12044,7 +12030,7 @@ class Illustration {
|
|
|
12044
12030
|
render() {
|
|
12045
12031
|
const sizeClass = this.size !== undefined ? `illustration-${this.size}` : '';
|
|
12046
12032
|
const rotateClass = this.rotate !== undefined ? `illustration-rotate-${this.rotate}` : '';
|
|
12047
|
-
return (hAsync(Host, { key: '
|
|
12033
|
+
return (hAsync(Host, { key: '3d69563e09fcbb37f10cc584c86ac0aae5b9321e', class: `${sizeClass} ${rotateClass}`, "aria-hidden": "true", role: "img" }, ((this.illustrationSvgContent !== '')
|
|
12048
12034
|
? hAsync("div", { class: "icon-inner", innerHTML: this.illustrationSvgContent })
|
|
12049
12035
|
: hAsync("div", { class: "icon-inner" }))));
|
|
12050
12036
|
}
|
|
@@ -12147,7 +12133,7 @@ class Img {
|
|
|
12147
12133
|
}
|
|
12148
12134
|
render() {
|
|
12149
12135
|
const placeholder = this.loadSrc !== undefined ? '' : 'placeholder';
|
|
12150
|
-
return (hAsync(Host, { key: '
|
|
12136
|
+
return (hAsync(Host, { key: '11b3ada4bdf7e371c599cb8a9fa8982c21e21400', class: placeholder }, hAsync("img", { key: 'ba91d029e9e58ea1b260ac380a1bedefaeb29918', class: "native-img", decoding: "async", src: this.loadSrc, alt: this.alt, onLoad: this.onLoad, onError: this.loadError, part: "image" })));
|
|
12151
12137
|
}
|
|
12152
12138
|
get el() { return getElement(this); }
|
|
12153
12139
|
static get watchers() { return {
|
|
@@ -29468,24 +29454,52 @@ class Input {
|
|
|
29468
29454
|
const input = ev.target;
|
|
29469
29455
|
let newValue = input.value;
|
|
29470
29456
|
if (this.type === 'number' && this.blockdecimal) {
|
|
29471
|
-
newValue = newValue.replace(/[.,]/g, ''); // Supprime les décimales si
|
|
29457
|
+
newValue = newValue.replace(/[.,]/g, ''); // Supprime les décimales si `blockdecimal` est activé
|
|
29458
|
+
}
|
|
29459
|
+
// Convertir en nombre et ajuster selon min/max
|
|
29460
|
+
let numericValue = parseFloat(newValue);
|
|
29461
|
+
const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;
|
|
29462
|
+
const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;
|
|
29463
|
+
if (!isNaN(numericValue)) {
|
|
29464
|
+
if (minValue !== undefined && numericValue < minValue) {
|
|
29465
|
+
numericValue = minValue;
|
|
29466
|
+
}
|
|
29467
|
+
if (maxValue !== undefined && numericValue > maxValue) {
|
|
29468
|
+
numericValue = maxValue;
|
|
29469
|
+
}
|
|
29470
|
+
newValue = numericValue.toString();
|
|
29471
|
+
}
|
|
29472
|
+
if (this.type === 'number') {
|
|
29473
|
+
this.value = newValue;
|
|
29474
|
+
input.value = newValue; // Mise à jour immédiate du champ
|
|
29472
29475
|
}
|
|
29473
|
-
this.value = newValue;
|
|
29474
29476
|
this.roadInput.emit(ev);
|
|
29475
29477
|
this.roadChange.emit({ value: newValue });
|
|
29478
|
+
// Appeler enforceMinMaxValue à chaque modification de la valeur
|
|
29479
|
+
this.enforceMinMaxValue();
|
|
29476
29480
|
};
|
|
29477
29481
|
this.onBlur = () => {
|
|
29478
29482
|
let value = this.getValue();
|
|
29479
|
-
|
|
29480
|
-
|
|
29481
|
-
|
|
29483
|
+
const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;
|
|
29484
|
+
const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;
|
|
29485
|
+
let numericValue = parseFloat(value);
|
|
29486
|
+
if (!isNaN(numericValue)) {
|
|
29487
|
+
if (minValue !== undefined && numericValue < minValue) {
|
|
29488
|
+
numericValue = minValue;
|
|
29489
|
+
}
|
|
29490
|
+
if (maxValue !== undefined && numericValue > maxValue) {
|
|
29491
|
+
numericValue = maxValue;
|
|
29492
|
+
}
|
|
29493
|
+
value = numericValue.toString();
|
|
29482
29494
|
}
|
|
29483
|
-
if (this.
|
|
29484
|
-
value =
|
|
29495
|
+
if (this.type === 'number') {
|
|
29496
|
+
this.value = value;
|
|
29497
|
+
const input = document.getElementById(this.inputId);
|
|
29498
|
+
input.value = value;
|
|
29485
29499
|
}
|
|
29486
|
-
this.value = value; // Mettre à jour la valeur avec la valeur ajustée
|
|
29487
|
-
// Émettre l'événement roadblur avec la valeur ajustée
|
|
29488
29500
|
this.roadBlur.emit(value);
|
|
29501
|
+
// Appeler enforceMinMaxValue lors de la perte de focus
|
|
29502
|
+
this.enforceMinMaxValue();
|
|
29489
29503
|
};
|
|
29490
29504
|
this.onFocus = () => {
|
|
29491
29505
|
this.roadFocus.emit();
|
|
@@ -29513,25 +29527,35 @@ class Input {
|
|
|
29513
29527
|
*/
|
|
29514
29528
|
valueChanged() {
|
|
29515
29529
|
this.debouncedRoadChange(this.value);
|
|
29530
|
+
// Appeler enforceMinMaxValue après chaque changement de valeur
|
|
29531
|
+
this.enforceMinMaxValue();
|
|
29532
|
+
}
|
|
29533
|
+
async enforceMinMaxValue() {
|
|
29534
|
+
let value = this.getValue();
|
|
29535
|
+
const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;
|
|
29536
|
+
const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;
|
|
29537
|
+
let numericValue = parseFloat(value);
|
|
29538
|
+
if (!isNaN(numericValue)) {
|
|
29539
|
+
if (minValue !== undefined && numericValue < minValue) {
|
|
29540
|
+
numericValue = minValue;
|
|
29541
|
+
}
|
|
29542
|
+
if (maxValue !== undefined && numericValue > maxValue) {
|
|
29543
|
+
numericValue = maxValue;
|
|
29544
|
+
}
|
|
29545
|
+
value = numericValue.toString();
|
|
29546
|
+
}
|
|
29547
|
+
if (this.type === 'number') {
|
|
29548
|
+
this.value = value;
|
|
29549
|
+
const input = document.getElementById(this.inputId);
|
|
29550
|
+
input.value = value;
|
|
29551
|
+
}
|
|
29552
|
+
this.roadChange.emit({ value });
|
|
29516
29553
|
}
|
|
29517
29554
|
getValue() {
|
|
29518
29555
|
return typeof this.value === 'number'
|
|
29519
29556
|
? this.value.toString()
|
|
29520
29557
|
: (this.value || '').toString();
|
|
29521
29558
|
}
|
|
29522
|
-
enforceMinMax(el) {
|
|
29523
|
-
if (el.value !== "") {
|
|
29524
|
-
const value = parseInt(el.value);
|
|
29525
|
-
const minValue = parseInt(el.min);
|
|
29526
|
-
const maxValue = parseInt(el.max);
|
|
29527
|
-
if (value < minValue) {
|
|
29528
|
-
el.value = el.min;
|
|
29529
|
-
}
|
|
29530
|
-
if (value > maxValue) {
|
|
29531
|
-
el.value = el.max;
|
|
29532
|
-
}
|
|
29533
|
-
}
|
|
29534
|
-
}
|
|
29535
29559
|
componentWillLoad() {
|
|
29536
29560
|
this.debounceChanged(); // Initialize debounce on component load
|
|
29537
29561
|
}
|
|
@@ -29541,7 +29565,7 @@ class Input {
|
|
|
29541
29565
|
const hasValueClass = this.value !== '' && this.value !== null ? 'has-value' : '';
|
|
29542
29566
|
const lessLabelClass = this.label !== '' ? '' : 'less-label';
|
|
29543
29567
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
29544
|
-
return (hAsync(Host, { key: '
|
|
29568
|
+
return (hAsync(Host, { key: '12b0cdc7b6abc227beb265422bae2da5e687beff', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}`, value: value, blockdecimal: this.blockdecimal }, hAsync("input", { key: 'ed422344129c95c191946021b79846cd98bacdb5', 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, "data-cy": 'road-input' }), hAsync("label", { key: 'f14ec2e080c89003ceeb912c85d03c214a810299', class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && hAsync("p", { key: '6ee1f4a5d8373f66c824c3c76771384eb45bb71e', class: "invalid-feedback" }, hAsync("road-icon", { key: '2a95a27410376aef3e70107eb68f0855d3fad2a2', slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), this.error), this.helper && this.helper !== '' && hAsync("p", { key: '9d7c9c44f8f927e2bb9db1c72bbb36b121bd066e', class: "helper" }, this.helper), this.type && this.type == 'password' && hAsync("slot", { key: 'e1851a187321fb1b64c3184f1241e0aa1ca72b5b', name: "checklistPassword" })));
|
|
29545
29569
|
}
|
|
29546
29570
|
static get watchers() { return {
|
|
29547
29571
|
"debounce": ["debounceChanged"],
|
|
@@ -29579,7 +29603,8 @@ class Input {
|
|
|
29579
29603
|
"label": [1],
|
|
29580
29604
|
"error": [1],
|
|
29581
29605
|
"helper": [1],
|
|
29582
|
-
"debounce": [2]
|
|
29606
|
+
"debounce": [2],
|
|
29607
|
+
"enforceMinMaxValue": [64]
|
|
29583
29608
|
},
|
|
29584
29609
|
"$listeners$": undefined,
|
|
29585
29610
|
"$lazyBundleId$": "-",
|
|
@@ -29588,7 +29613,7 @@ class Input {
|
|
|
29588
29613
|
}
|
|
29589
29614
|
let inputIds = 0;
|
|
29590
29615
|
|
|
29591
|
-
const inputGroupCss = ":host{display:block}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%;font-family:var(--road-font, sans-serif)}::slotted(road-input),::slotted(input),::slotted(textarea),::slotted(road-select){position:relative;flex:1 1 auto;width:1%;margin-bottom:0}::slotted([slot=\"prepend\"]){margin-right:-3px;border-color:var(--road-input-outline);border-
|
|
29616
|
+
const inputGroupCss = ":host{display:block}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%;font-family:var(--road-font, sans-serif)}::slotted(road-input),::slotted(input),::slotted(textarea),::slotted(road-select){position:relative;flex:1 1 auto;width:1%;margin-bottom:0}::slotted([slot=\"prepend\"]){margin-right:-3px;border-right-color:transparent;border-color:var(--road-input-outline);border-top-right-radius:0;border-bottom-right-radius:0;position:absolute;left:0;top:0;bottom:0}::slotted([slot=\"append\"]){margin-left:-0.25rem;border-color:var(--road-input-outline);border-left-width:0;position:absolute;right:0;top:0;bottom:0}@media (hover: hover){.input-group:not(.is-disabled):hover ::slotted([slot=\"prepend\"]){border-color:var(--road-input-outline-variant);border-right-color:transparent}.input-group:not(.is-disabled):hover ::slotted([slot=\"append\"]){border-color:var(--road-input-outline-variant);border-left-color:transparent}:host(.phone-number-group) .input-group:not(.is-disabled):hover ::slotted([slot=\"prepend\"]){border-color:var(--road-input-outline-variant)}}.input-group:focus-within ::slotted([slot=\"prepend\"]),:host(.phone-number-group) .input-group:focus-within ::slotted([slot=\"prepend\"]){border-color:var(--road-grey-0);border-width:2px;border-right-color:transparent;outline:none;}.input-group:focus-within ::slotted([slot=\"append\"]){border-color:var(--road-grey-0);border-width:2px;border-left-color:transparent;outline:none;}.input-group:focus-within ::slotted(road-input):focus-visible{border-color:var(--road-grey-0);border-width:2px;outline:none;}.input-group-prepend,.input-group-append{display:flex;height:3rem}::slotted(road-button){--padding-start:0.5rem;--padding-end:0.5rem;position:relative;z-index:2;min-width:3rem;margin:0;font-size:var(--road-font-size-14)}::slotted(road-button):hover{background-color:var(--road-button-ghost-variant)}.input-group-prepend{z-index:1;order:-1;position:relative}.input-group-prepend~.form-label{left:calc(3rem + 1px)}.input-group-append{position:relative;z-index:1;border-radius:0 0.25rem 0.25rem 0}::slotted(label){display:flex;align-items:center;padding:0 0.5rem;margin-bottom:0;color:var(--road-on-surface);text-align:center;white-space:nowrap;cursor:text;border-radius:0.25rem;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}::slotted(road-label){display:flex;align-items:center;padding:0 0.5rem;margin-bottom:0;color:var(--road-on-surface);text-align:center;white-space:nowrap;cursor:text;background:var(--road-surface);border:1px solid var(--road-input-outline);border-radius:0.25rem;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}::slotted(road-input:not(:first-child)),::slotted(road-select:not(:first-child)){border-radius:0}.input-group-append ::slotted([slot=\"append\"]){border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.input-group-prepend ::slotted([slot=\"prepend\"]){border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}:host(.phone-number-group) .input-group-prepend ::slotted([slot=\"prepend\"]){border-right:1px solid var(--road-input-outline);border-top-right-radius:0;border-bottom-right-radius:0}.input-group-prepend ::slotted(label){margin-right:calc(-1rem + 1px)}.input-group-append:hover ::slotted(road-button){background-color:var(--road-button-ghost-variant)}.size-xl .input-group-prepend,.size-xl .input-group-append{height:3.5rem}.size-xl ::slotted(road-button){height:3.5rem}.input-group.is-invalid ::slotted([slot=\"append\"]),.input-group.is-invalid ::slotted([slot=\"prepend\"]){border-color:var(--road-danger-outline)}:host(.phone-number-group) .input-group.is-invalid ::slotted([slot=\"prepend\"]){border-color:var(--road-danger-outline)}:host([disabled]){cursor:not-allowed}:host([disabled]) .input-group{pointer-events:none;}:host([disabled]) ::slotted([slot=\"append\"]),:host([disabled]) ::slotted([slot=\"prepend\"]){color:var(--road-on-surface-disabled);cursor:not-allowed;background:#e4e5e9}:host([disabled]) ::slotted([slot=\"append\"] road-icon),:host([disabled]) ::slotted([slot=\"prepend\"] road-icon){color:var(--road-on-surface-disabled)}:host([disabled]) road-icon{color:var(--road-on-surface-disabled)}";
|
|
29592
29617
|
var RoadInputGroupStyle0 = inputGroupCss;
|
|
29593
29618
|
|
|
29594
29619
|
/**
|
|
@@ -29606,7 +29631,7 @@ class InputGroup {
|
|
|
29606
29631
|
handleDisabledChange(newValue) {
|
|
29607
29632
|
this.updateDisabledState(newValue);
|
|
29608
29633
|
}
|
|
29609
|
-
/**
|
|
29634
|
+
/** Applique le `disabled` aux enfants */
|
|
29610
29635
|
updateDisabledState(isDisabled) {
|
|
29611
29636
|
const children = this.el.querySelectorAll('road-input, road-button, road-select');
|
|
29612
29637
|
children.forEach(child => {
|
|
@@ -29618,9 +29643,24 @@ class InputGroup {
|
|
|
29618
29643
|
}
|
|
29619
29644
|
});
|
|
29620
29645
|
}
|
|
29621
|
-
|
|
29622
|
-
|
|
29646
|
+
/** Vérifie et applique le `text-indent` si `prepend` est présent */
|
|
29647
|
+
updateIndentation() {
|
|
29648
|
+
const hasPrepend = !!this.el.querySelector('[slot="prepend"]');
|
|
29649
|
+
const formControl = this.el.querySelector('.form-control');
|
|
29650
|
+
const formLabel = this.el.querySelector('.form-label');
|
|
29651
|
+
if (formControl) {
|
|
29652
|
+
formControl.style.textIndent = hasPrepend ? '2rem' : '';
|
|
29653
|
+
}
|
|
29654
|
+
if (formLabel) {
|
|
29655
|
+
formLabel.style.textIndent = hasPrepend ? '2.7rem' : '';
|
|
29656
|
+
}
|
|
29657
|
+
}
|
|
29658
|
+
componentDidLoad() {
|
|
29623
29659
|
this.updateDisabledState(this.disabled);
|
|
29660
|
+
this.updateIndentation(); // Appliquer les styles au montage
|
|
29661
|
+
// Observer les mutations (au cas où des éléments sont ajoutés dynamiquement)
|
|
29662
|
+
const observer = new MutationObserver(() => this.updateIndentation());
|
|
29663
|
+
observer.observe(this.el, { childList: true, subtree: true });
|
|
29624
29664
|
}
|
|
29625
29665
|
render() {
|
|
29626
29666
|
const errorClass = this.el.querySelector('road-input[error]') ? 'is-invalid' : '';
|
|
@@ -29628,7 +29668,7 @@ class InputGroup {
|
|
|
29628
29668
|
? `size-${this.el.querySelector('road-input').sizes}`
|
|
29629
29669
|
: '';
|
|
29630
29670
|
const disabledClass = this.disabled ? 'is-disabled' : '';
|
|
29631
|
-
return (hAsync("div", { key: '
|
|
29671
|
+
return (hAsync("div", { key: '46a650f180e49072ac60cd8a4afcd0b881dd24d8', class: `input-group ${errorClass} ${disabledClass} ${sizeClass}` }, hAsync("div", { key: '7841a34b9dee11e56533e856f3d0a772df5d3db4', class: "input-group-prepend" }, hAsync("slot", { key: 'bc2d71d0d0f41aa16a01cefe3c1cdfd9f9d24b31', name: "prepend" })), hAsync("slot", { key: '8fecd8cc846ca4130f3b62084e00549d4541f44c' }), hAsync("div", { key: '6b4ae77e27b88d070ab635033a1cc476364ddb65', class: "input-group-append" }, hAsync("slot", { key: 'a572bc2ddac3a9abe6cf756b19078b360484c872', name: "append" }))));
|
|
29632
29672
|
}
|
|
29633
29673
|
get el() { return getElement(this); }
|
|
29634
29674
|
static get watchers() { return {
|
|
@@ -29708,13 +29748,13 @@ class Item {
|
|
|
29708
29748
|
target,
|
|
29709
29749
|
};
|
|
29710
29750
|
const showDetail = detail !== undefined && detail;
|
|
29711
|
-
return (hAsync(Host, { key: '
|
|
29751
|
+
return (hAsync(Host, { key: '469be56a9d2b7ff04d17328e1f2372f0d8dc32a4', "aria-disabled": disabled ? 'true' : null, class: {
|
|
29712
29752
|
[`item-lines-${lines}`]: lines !== undefined,
|
|
29713
|
-
} }, hAsync(TagType, Object.assign({ key: '
|
|
29753
|
+
} }, hAsync(TagType, Object.assign({ key: 'b6c630e11c30631eb89b9f6676d456f663cc42cd' }, attrs, { class: {
|
|
29714
29754
|
'item-native': true,
|
|
29715
29755
|
'item-active': this.active,
|
|
29716
29756
|
[`layout-${layout}`]: layout !== undefined,
|
|
29717
|
-
}, part: "native", disabled: disabled }), hAsync("slot", { key: '
|
|
29757
|
+
}, part: "native", disabled: disabled }), hAsync("slot", { key: '73cb715b04a91e036116e2454b3c0d8b24fa91ab', name: "start" }), hAsync("div", { key: 'f70a30dfd59749802632f6c8cde020c9c00a1d41', class: "item-inner" }, hAsync("div", { key: '5eb2450abfda20f2d143e9c44b64509db37d6ad0', class: "input-wrapper" }, hAsync("slot", { key: 'eca2a17a499f9f133cb8fc57f29256ec524dac6c' }), hAsync("div", { key: '0a5c73a520af15de86f0f4eb01041b3c237a0fba', class: "input-wrapper-info" }, hAsync("road-label", { key: '43047116c5d0cec800dcd89b10b7a78edc62f1c6', class: "input-wrapper-info-title" }, this.titleItem), hAsync("p", { key: '7b320cd59589f64b50c8dbc012a8af155ffd504b', class: "input-wrapper-info-text" }, this.text))), hAsync("slot", { key: '2f8fd66c6579cf3895b76485495bea6583cf2244', name: "end" }), showDetail && hAsync("road-icon", { key: '543e90af13b4bd2db1b404bbcad4bc39c7d88a5e', icon: detailIcon, lazy: false, class: "item-detail-icon" })))));
|
|
29718
29758
|
}
|
|
29719
29759
|
get el() { return getElement(this); }
|
|
29720
29760
|
static get style() { return RoadItemStyle0; }
|
|
@@ -29755,7 +29795,7 @@ class Label {
|
|
|
29755
29795
|
registerInstance(this, hostRef);
|
|
29756
29796
|
}
|
|
29757
29797
|
render() {
|
|
29758
|
-
return (hAsync("slot", { key: '
|
|
29798
|
+
return (hAsync("slot", { key: 'a1b53c7175dc84b9608f30199187e89d458f9678' }));
|
|
29759
29799
|
}
|
|
29760
29800
|
static get style() { return RoadLabelStyle0; }
|
|
29761
29801
|
static get cmpMeta() { return {
|
|
@@ -29780,9 +29820,9 @@ class List {
|
|
|
29780
29820
|
}
|
|
29781
29821
|
render() {
|
|
29782
29822
|
const { lines } = this;
|
|
29783
|
-
return (hAsync(Host, { key: '
|
|
29823
|
+
return (hAsync(Host, { key: '04ab5013f370d2bc3f16b06092f280855f02d631', class: {
|
|
29784
29824
|
[`list-lines-${lines}`]: lines !== undefined,
|
|
29785
|
-
} }, hAsync("slot", { key: '
|
|
29825
|
+
} }, hAsync("slot", { key: '4a4e1fe77c44c0cae3ca908007d6920fda2bf50f' })));
|
|
29786
29826
|
}
|
|
29787
29827
|
static get style() { return RoadListStyle0; }
|
|
29788
29828
|
static get cmpMeta() { return {
|
|
@@ -29867,7 +29907,7 @@ class Modal {
|
|
|
29867
29907
|
const modalIsOpenClass = this.isOpen ? 'modal-open' : '';
|
|
29868
29908
|
const inverseHeaderClass = this.hasInverseHeader ? 'modal-header-inverse' : '';
|
|
29869
29909
|
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" })) : '';
|
|
29870
|
-
return (hAsync(Host, { key: '
|
|
29910
|
+
return (hAsync(Host, { key: 'dac59227df3d0e20b46690b06cad20eacab6baa4', class: `modal ${modalIsOpenClass}`, tabindex: "-1", role: "dialog", "aria-label": "modal" }, hAsync("div", { key: '4f975c70b380efb49ca69ceb73a94c496ec153c4', class: "modal-overlay", onClick: this.onClick, tabindex: "-1" }), hAsync("div", { key: 'c76f6bdece99201272fcab25f44b8c394758c0f3', class: "modal-dialog", style: { maxWidth: `${this.maxWidth}px` }, role: "document", tabindex: "0" }, hAsync("div", { key: '7d8994cb7c4d69bac5cc2f5eaa95dd16ac231b63', class: "modal-content" }, hAsync("header", { key: '163ece49c68ba07d0c6d45bf17149abe766d553b', class: `modal-header ${inverseHeaderClass}` }, hAsync("h2", { key: '8f7c31d349a38f0004115015162658ddc895ed2d', class: "modal-title" }, this.modalTitle), closeIconElement), hAsync("div", { key: '7fa33901867ef3591f9b1232d9e30c4cf39dab51', class: "modal-body" }, hAsync("slot", { key: 'ab3488f37dc4d5885bc17120490f0b9c67fefbdd' }))))));
|
|
29871
29911
|
}
|
|
29872
29912
|
get el() { return getElement(this); }
|
|
29873
29913
|
static get style() { return RoadModalStyle0; }
|
|
@@ -29918,7 +29958,7 @@ class Navbar {
|
|
|
29918
29958
|
this.selectedTabChanged();
|
|
29919
29959
|
}
|
|
29920
29960
|
render() {
|
|
29921
|
-
return (hAsync(Host, { key: '
|
|
29961
|
+
return (hAsync(Host, { key: '1156d0442b84d86ea8ff25f69177061dbbded5f2', role: "menubar" }, hAsync("slot", { key: '90856108fe5c9b6573b25e857c51d639f8b755de' })));
|
|
29922
29962
|
}
|
|
29923
29963
|
static get watchers() { return {
|
|
29924
29964
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -30004,11 +30044,11 @@ class NavbarItem$1 {
|
|
|
30004
30044
|
rel,
|
|
30005
30045
|
target,
|
|
30006
30046
|
};
|
|
30007
|
-
return (hAsync(Host, { key: '
|
|
30047
|
+
return (hAsync(Host, { key: 'cadf540c4904dd77b0a5705b557a6e40680b7c6d', 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: {
|
|
30008
30048
|
'navbar-item': true,
|
|
30009
30049
|
'tab-selected': selected,
|
|
30010
30050
|
'tab-disabled': disabled,
|
|
30011
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
30051
|
+
} }, hAsync("a", Object.assign({ key: '9f4967c6a8e7a497ffbb68e5afd70408c071c237' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), hAsync("span", { key: 'e56e5c60ab8c089d33ec04a1eb52f27893380271', class: "button-inner" }, hAsync("slot", { key: '12185a907f90bf69ed4246555334296e2e978f50' })))));
|
|
30012
30052
|
}
|
|
30013
30053
|
get el() { return getElement(this); }
|
|
30014
30054
|
static get watchers() { return {
|
|
@@ -30101,11 +30141,11 @@ class NavbarItem {
|
|
|
30101
30141
|
rel,
|
|
30102
30142
|
target,
|
|
30103
30143
|
};
|
|
30104
|
-
return (hAsync(Host, { key: '
|
|
30144
|
+
return (hAsync(Host, { key: '601f204e6f95ffcbdbc28616c6da7f97b0e45e90', 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: {
|
|
30105
30145
|
'navbar-item': true,
|
|
30106
30146
|
'tab-selected': selected,
|
|
30107
30147
|
'tab-disabled': disabled,
|
|
30108
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
30148
|
+
} }, hAsync("a", Object.assign({ key: 'a3e0ceba2141581c29fbb6c7a6d82765d3857f46' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), hAsync("span", { key: 'b0972e625c45f1b89de7a96e78e848f3e0f707d5', class: "button-inner" }, hAsync("slot", { key: 'ebd2d571b97f8670c0c5bd4d609bca67260e59b5' })))));
|
|
30109
30149
|
}
|
|
30110
30150
|
get el() { return getElement(this); }
|
|
30111
30151
|
static get watchers() { return {
|
|
@@ -30164,7 +30204,7 @@ class NavbarV2 {
|
|
|
30164
30204
|
}
|
|
30165
30205
|
render() {
|
|
30166
30206
|
const compactClass = this.compact ? 'compact' : '';
|
|
30167
|
-
return (hAsync(Host, { key: '
|
|
30207
|
+
return (hAsync(Host, { key: '10d52847da0d9c1c0ae8f72cf105cea490b2bf19', role: "menubar", class: `${compactClass}` }, hAsync("slot", { key: '42741876dd02cde76118761499e15bf08ca24200' })));
|
|
30168
30208
|
}
|
|
30169
30209
|
static get watchers() { return {
|
|
30170
30210
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -30287,10 +30327,10 @@ class PlateNumber {
|
|
|
30287
30327
|
render() {
|
|
30288
30328
|
const value = this.getValue();
|
|
30289
30329
|
const motorbikeClass = this.motorbike ? 'motorbike-plate' : '';
|
|
30290
|
-
return (hAsync("road-input-group", { key: '
|
|
30330
|
+
return (hAsync("road-input-group", { key: 'efc8fba0e1aea6b0687d4d4a74f3ca724e2d0949', class: `plate-number plate-number-${this.country.toLowerCase()} ${motorbikeClass}` }, hAsync("label", { key: '5e09e12c31a09ca20aa46888703cb1fc4cf364e5', slot: "prepend", class: "input-group-prepend" }, hAsync("div", { key: '8f11495066f07b1c5697b643cdf32a4f52fe4753', class: "plate-number-start" }, hAsync("road-icon", { key: '3fe1b777b82aa43f73546881435b9527dfb2554d', class: "plate-number-icon", icon: licensePlateStarEu }), hAsync("div", { key: '18969517cf65f183dab4c242b9ba233bcd092cb6', class: "plate-number-location", "aria-label": this.country, role: "img" }, this.countries
|
|
30291
30331
|
.filter(item => item.country === this.country)[0].letter))), this.motorbike
|
|
30292
30332
|
? (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 }))
|
|
30293
|
-
: (hAsync("input", { class: "plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus })), hAsync("label", { key: '
|
|
30333
|
+
: (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: '0b94be622ead0b4d56153be0f679d8d5e5a74c75', slot: "append", class: "input-group-append" }, hAsync("div", { key: '677f04f8acc756c280d1b7ac446e03375f58e609', class: "plate-number-end" }))));
|
|
30294
30334
|
}
|
|
30295
30335
|
static get watchers() { return {
|
|
30296
30336
|
"value": ["valueChanged"]
|
|
@@ -30358,7 +30398,7 @@ class ProgressBar {
|
|
|
30358
30398
|
const fullwidth = this.fullwidth ? 'progress-element-info-full-width' : 'progress-element-info';
|
|
30359
30399
|
const light = this.light ? 'progress progress-light' : 'progress';
|
|
30360
30400
|
const animation = this.animation ? 'animation' : '';
|
|
30361
|
-
return (hAsync(Host, { key: '
|
|
30401
|
+
return (hAsync(Host, { key: 'a0b5c85cace63d6517339d98fc884e2d4bcb8878', class: "progress-element" }, hAsync("div", { key: '6ca715af39959305fbe1ca9946c7ba3af95758a4', class: `${light} progress-${this.color} ${animation}` }, hAsync("div", { key: '3bff025c331600a14db6e27bb33b1c33e8590905', 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: 'b6e9162da74e74aab4fbe71dfd02d1cf7739b131', class: `${fullwidth}` }, hAsync("span", { key: '666d3090e9b1f11ae900b74baa99fa79dd92224f', class: "progress-element-label" }, this.label), this.showstep && hAsync("span", { key: '544d468f01623e3eb03938a1650943a8b43099bc', class: "progress-element-step" }, valueRound, "/", this.numbersteps))));
|
|
30362
30402
|
}
|
|
30363
30403
|
static get style() { return RoadProgressStyle0; }
|
|
30364
30404
|
static get cmpMeta() { return {
|
|
@@ -30399,7 +30439,7 @@ class ProgressIndicatorVertical {
|
|
|
30399
30439
|
registerInstance(this, hostRef);
|
|
30400
30440
|
}
|
|
30401
30441
|
render() {
|
|
30402
|
-
return (hAsync(Host, { key: '
|
|
30442
|
+
return (hAsync(Host, { key: 'b9414e9e3a3c39ec4769e96785d81e6ed72f8cb7' }, hAsync("nav", { key: 'ca19afe47fd5ad7e70ea9e57fbb7660b3d8b96d6' }, hAsync("ul", { key: 'cfcba662c75659241a23a3089cf976cfc709b435' }, hAsync("li", { key: '88e01d54ea52de823fa2715c31227cd193e6e02b' }, hAsync("slot", { key: 'f70b71be1951c826d11f7793deb7eed74683eec2' }))))));
|
|
30403
30443
|
}
|
|
30404
30444
|
static get style() { return RoadProgressIndicatorVerticalStyle0; }
|
|
30405
30445
|
static get cmpMeta() { return {
|
|
@@ -30423,7 +30463,7 @@ class ProgressIndicatorVerticalItem {
|
|
|
30423
30463
|
registerInstance(this, hostRef);
|
|
30424
30464
|
}
|
|
30425
30465
|
render() {
|
|
30426
|
-
return (hAsync(Host, { key: '
|
|
30466
|
+
return (hAsync(Host, { key: '197a570a10cd38b0894b57886f1da483ee666ebf' }, hAsync("slot", { key: '371681ee0447123ad734b9b00ee26368a2df24f5' })));
|
|
30427
30467
|
}
|
|
30428
30468
|
static get style() { return RoadProgressIndicatorVerticalItemStyle0; }
|
|
30429
30469
|
static get cmpMeta() { return {
|
|
@@ -30452,7 +30492,7 @@ class ProgressTracker {
|
|
|
30452
30492
|
registerInstance(this, hostRef);
|
|
30453
30493
|
}
|
|
30454
30494
|
render() {
|
|
30455
|
-
return (hAsync(Host, { key: '
|
|
30495
|
+
return (hAsync(Host, { key: '96924d494a649b4afae2f4c53e5535a6cde278de' }, hAsync("nav", { key: '51deac30b6a6cbee7831137c03db92befad99fc4' }, hAsync("ul", { key: 'd38a9b448ca5dbcc36daf286f4b82879d1f5ea74' }, hAsync("li", { key: '8ea681def65ff1a9072fd854a9ce6b26025b9e4b' }, hAsync("slot", { key: '1957024fdf2632c253cfdfb61c491f4de4addb7d' }))))));
|
|
30456
30496
|
}
|
|
30457
30497
|
static get style() { return RoadProgressTrackerStyle0; }
|
|
30458
30498
|
static get cmpMeta() { return {
|
|
@@ -30484,7 +30524,7 @@ class ProgressTrackerItem {
|
|
|
30484
30524
|
registerInstance(this, hostRef);
|
|
30485
30525
|
}
|
|
30486
30526
|
render() {
|
|
30487
|
-
return (hAsync(Host, { key: '
|
|
30527
|
+
return (hAsync(Host, { key: '707344b5cf52de10c13d0c66528f8a885d723d7f' }, hAsync("slot", { key: 'c8c1a8c048b465e6aeb171d61287eb7cd4e7b441' })));
|
|
30488
30528
|
}
|
|
30489
30529
|
static get style() { return RoadProgressTrackerItemStyle0; }
|
|
30490
30530
|
static get cmpMeta() { return {
|
|
@@ -30577,7 +30617,7 @@ class Radio {
|
|
|
30577
30617
|
const inverseClass = this.inverse && 'form-radio-inverse';
|
|
30578
30618
|
const isInvalidClass = this.error ? 'is-invalid' : '';
|
|
30579
30619
|
const inlineClass = this.inline ? 'form-radio-inline' : '';
|
|
30580
|
-
return (hAsync(Host, { key: '
|
|
30620
|
+
return (hAsync(Host, { key: 'c11cc746100baf8868526ee1d8a431015c470851', class: `form-radio ${inlineClass}` }, hAsync("input", { key: '24e69ea377bde8a69821e5362c1b4c33360b77e7', 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: 'f7c6e5c59dc4951501c9bfa36912343cc0a29590', class: `form-radio-label ${inverseClass}`, id: labelId, htmlFor: this.radioId }, this.label, " ", hAsync("span", { key: '59d426e8b7cf57be4a5a601187418b267020bbc8', class: "form-radio-label-span" }, this.secondaryLabel))));
|
|
30581
30621
|
}
|
|
30582
30622
|
get el() { return getElement(this); }
|
|
30583
30623
|
static get style() { return RoadRadioStyle0; }
|
|
@@ -30671,7 +30711,7 @@ class RadioGroup {
|
|
|
30671
30711
|
render() {
|
|
30672
30712
|
const labelId = `${this.radioGroupId}-label`;
|
|
30673
30713
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
30674
|
-
return (hAsync(Host, { key: '
|
|
30714
|
+
return (hAsync(Host, { key: '131297f7e2cf9165fd38f66c25e8a453b19e3cc4', role: "radiogroup", class: `form-group ${isInvalidClass}`, "aria-label": this.ariaLabel, onClick: this.onClick }, this.label && hAsync("p", { key: '33e8a13ec3ea86bcca2520d526769c3135bada44', class: "text-content", id: labelId }, this.label, " ", this.asterisk && hAsync("span", { key: 'e519e05382603e383d756639a9d75bd911572674', class: "asterisk" }, "*")), hAsync("slot", { key: 'f814e675b236c48fbff8c36b0d3bc007994166c5' }), this.error && this.error !== '' && hAsync("p", { key: 'b1f143b28c83493b4268627b47ef7177dfe45466', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: 'fb65f80a2d3808cc9799a9dbabab082d694be9ca', class: "helper" }, this.helper)));
|
|
30675
30715
|
}
|
|
30676
30716
|
get el() { return getElement(this); }
|
|
30677
30717
|
static get watchers() { return {
|
|
@@ -30801,14 +30841,14 @@ class Range {
|
|
|
30801
30841
|
render() {
|
|
30802
30842
|
const value = this.getValue();
|
|
30803
30843
|
const datalist = this.showLabels !== undefined ? `tickmarks` : "";
|
|
30804
|
-
return (hAsync(Host, { key: '
|
|
30844
|
+
return (hAsync(Host, { key: '528241a7c094dda6bd4e5194f821a887f03ad8ff', tabindex: "0", class: { disabled: this.disabled } }, hAsync("div", { key: '7691402683ecd90a46f9e17b6026dd979d3e2d74', class: "form-group d-flex align-items-end" }, this.showTick && (hAsync("road-icon", { key: 'bb2b75b872d712e385d158e806af9c6e55c6b941', icon: navigationAddLessSolid, class: "mr-8", size: "sm" })), hAsync("div", { key: '52efddf3b7c114533d6cde35a8e3eeedb79ec431', class: "form-range", style: {
|
|
30805
30845
|
"--min": this.min,
|
|
30806
30846
|
"--max": this.max,
|
|
30807
30847
|
"--value": value,
|
|
30808
30848
|
"--background-color": this.disabled
|
|
30809
30849
|
? "var(--road-surface-disabled)"
|
|
30810
30850
|
: "initial",
|
|
30811
|
-
} }, this.showValue && hAsync("output", { key: '
|
|
30851
|
+
} }, this.showValue && hAsync("output", { key: 'c07d5e53f40cb05da0fe281e6988f48d9fb1af2d' }), this.showLabels && hAsync("slot", { key: 'ded049319f97b746290e8b7b76e3e11244593026', name: "datalist" }), hAsync("input", { key: 'eafe7909576334624465e188abebb996aa87a768', 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: '765521b40969240611ab81a6f5b3ebc4c0a2dd3a', class: "form-range-label" }, "Valeur"), hAsync("div", { key: '8abd6c8ee708c07da7d7a4a91360117360a57acb', class: "form-range-progress" })), this.showTick && (hAsync("road-icon", { key: '8aa8bf201b4d2aea8b2d31a702e2d7cb88452bbc', icon: navigationAddMoreSolid, class: "ml-8", size: "sm" })))));
|
|
30812
30852
|
}
|
|
30813
30853
|
get el() { return getElement(this); }
|
|
30814
30854
|
static get watchers() { return {
|
|
@@ -30877,7 +30917,7 @@ class Rating {
|
|
|
30877
30917
|
const sizeRatingStarsClass = this.size !== undefined ? `rating-stars rating-stars--${this.size}` : 'rating-stars';
|
|
30878
30918
|
const sizeRatingNumberClass = this.size !== undefined ? `rating-number rating-number--${this.size}` : 'rating-number';
|
|
30879
30919
|
const readOnly = this.readonly == true ? `readonly` : '';
|
|
30880
|
-
return (hAsync(Host, { key: '
|
|
30920
|
+
return (hAsync(Host, { key: '420dedbdaba5d4870cbc5c0c66c984127496f299' }, hAsync("div", { key: '9e05ef26deaa4dfe78fd4b0d5f0f151d464a09c7', 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: 'ae6070e89b65a976f9f675428c570a3eb7208351', class: `${sizeRatingNumberClass}`, href: this.url }, "(", this.reviews, this.reviewsText && ` ${this.reviewsText}`, ")"), this.readonly == true && this.showreviews && hAsync("road-label", { key: '9d58b93cd50d58437d9ca0d0f9d1617cc842c165', class: `${sizeRatingNumberClass} ${readOnly}` }, "(", this.reviews, this.reviewsText && ` ${this.reviewsText}`, ")")));
|
|
30881
30921
|
}
|
|
30882
30922
|
static get style() { return RoadRatingStyle0; }
|
|
30883
30923
|
static get cmpMeta() { return {
|
|
@@ -30996,7 +31036,7 @@ class RoadAreaCode {
|
|
|
30996
31036
|
const labelId = this.selectId + '-label';
|
|
30997
31037
|
const valueId = this.selectId + '-value';
|
|
30998
31038
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
30999
|
-
return (hAsync(Host, { key: '
|
|
31039
|
+
return (hAsync(Host, { key: '55bc0f248f7fb4db8cf34998b478755fe5f57791', class: this.sizes && `select-${this.sizes}` }, hAsync("select", { key: '8d71b4acf6d1d5c1b88e4eb84abea2af446f5eb7', 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: 'bea9a6cc118e78167bebf27f2f7639ef2b483106', class: "form-select-area-label", id: labelId, htmlFor: this.selectId }, this.label), hAsync("label", { key: '520c7197ceb0ddbc6baad4885bb4c331f63928f5', class: "form-select-area-value", id: valueId, htmlFor: this.selectId }, "+", this.selectedValue), this.error && this.error !== '' && hAsync("p", { key: '8f0e1dc148ed8fcb933a61ecbf98efac03acbf18', class: "invalid-feedback" }, this.error)));
|
|
31000
31040
|
}
|
|
31001
31041
|
static get watchers() { return {
|
|
31002
31042
|
"value": ["valueChanged"]
|
|
@@ -32221,7 +32261,7 @@ i18n.phonenumbers.AsYouTypeFormatter.prototype.inputDigitHelper_=function(a){var
|
|
|
32221
32261
|
});
|
|
32222
32262
|
}(libphonenumber));
|
|
32223
32263
|
|
|
32224
|
-
const phoneNumberInputCss = ".
|
|
32264
|
+
const phoneNumberInputCss = ".is-invalid.sc-road-phone-number-input .phone-number-input-field.sc-road-input.sc-road-phone-number-input{border-color:var(--road-danger-outline)}.road-phone-input-select.sc-road-phone-number-input{position:relative;display:block;font-family:var(--road-font, sans-serif);color:var(--road-on-surface);background-color:var(--road-surface);border:1px solid var(--road-input-outline);border-radius:0.25rem;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:none;appearance:none;width:5rem;height:3.5rem}.sc-road-phone-number-input-h .is-error.sc-road-phone-number-input{border-color:var(--road-danger-outline)}.form-select-area.sc-road-phone-number-input{box-sizing:border-box;display:block;width:100%;height:3rem;padding:0.75rem 3rem 0 2rem;margin:0;font-size:var(--road-body-medium);line-height:1.5;color:var(--road-on-surface);background:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0icmdiYSgyMywgMzAsIDUyLCAwLjcyKSI+PHBhdGggZD0iTTIzIDI2bDkgMTIgOS0xMnoiLz48L3N2Zz4=\") no-repeat right -5px center/2.5rem 2rem;position:absolute;top:0;left:0;height:100%;width:95%;z-index:1;border:0;appearance:none;opacity:1;cursor:pointer}.form-select-area.sc-road-phone-number-input:-moz-focusring{color:transparent;text-shadow:0 0 0 #000000}.form-select-area.sc-road-phone-number-input::-ms-expand{display:none}.form-select-area.sc-road-phone-number-input::placeholder{color:var(--road-on-surface-extra-weak)}@media (hover: hover){.form-select-area.sc-road-phone-number-input:not(:disabled):hover{border-color:var(--road-input-outline-variant)}}.form-select-area.sc-road-phone-number-input:focus~.form-select-area-label.sc-road-phone-number-input,.form-select-area[required].sc-road-phone-number-input:valid~.form-select-area-label.sc-road-phone-number-input,.form-select-area.has-value.sc-road-phone-number-input~.form-select-area-label.sc-road-phone-number-input{transform:scale(0.625) translateY(-0.625rem)}.form-select-area.sc-road-phone-number-input:not(:disabled):focus{border-color:var(--road-input-outline-variant)}.form-select-area.sc-road-phone-number-input:disabled,.form-select-area[readonly].sc-road-phone-number-input{color:transparent;cursor:not-allowed;background:var(--road-surface-disabled);opacity:1}.form-select-area-label.sc-road-phone-number-input{position:absolute;top:0.9rem;left:1rem;display:block;font-size:var(--road-font-size-18);line-height:1.5;color:var(--road-on-surface-extra-weak);pointer-events:none;transition:transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;transform-origin:0 0}.form-select-area.sc-road-phone-number-input:required~.form-select-area-label.sc-road-phone-number-input::after{color:var(--road-on-danger-surface);content:\" *\"}.form-select-area-value.sc-road-phone-number-input{position:absolute;top:1.4rem;left:1rem;display:block;font-size:var(--road-label-medium);line-height:1.5;color:var(--road-on-surface);pointer-events:none;transition:transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;transform-origin:0 0}.select-xl.sc-road-phone-number-input-h .form-select-area.sc-road-phone-number-input{height:3.5rem;padding:0.75rem 0 0 1rem}.input-xl.sc-road-phone-number-input{height:3.5rem;padding:0.75rem 0 0 1rem}.select-xl.sc-road-phone-number-input-h .form-select-area-label.sc-road-phone-number-input{top:1rem}.select-xl.sc-road-phone-number-input-h .form-select-area.sc-road-phone-number-input:focus~.form-select-area-label.sc-road-phone-number-input,.select-xl.sc-road-phone-number-input-h .form-select-area[required].sc-road-phone-number-input:valid~.form-select-area-label.sc-road-phone-number-input,.select-xl.sc-road-phone-number-input-h .form-select-area.has-value.sc-road-phone-number-input~.form-select-area-label.sc-road-phone-number-input,.select-xl.sc-road-phone-number-input-h .form-select-area[type=\"date\"].sc-road-phone-number-input~.form-select-area-label.sc-road-phone-number-input,.select-xl.sc-road-phone-number-input-h .form-select-area[type=\"time\"].sc-road-phone-number-input~.form-select-area-label.sc-road-phone-number-input{transform:scale(0.75) translateY(-0.625rem)}.select-xl.sc-road-phone-number-input-h .form-select-area.sc-road-phone-number-input:placeholder-shown~.form-select-area-label.sc-road-phone-number-input{transform:scale(0.75) translateY(-0.625rem)}.invalid-feedback.sc-road-phone-number-input{gap:.25rem;display:flex;width:100%;margin:0.5rem 0;font-size:var(--road-body-small);color:var(--road-on-danger-surface)}.form-select-area.is-invalid.sc-road-phone-number-input,.was-validated.sc-road-phone-number-input .form-select-area.sc-road-phone-number-input:invalid{border-color:var(--road-on-danger-surface)}.form-select-area.is-invalid.sc-road-phone-number-input~.invalid-feedback.sc-road-phone-number-input,.was-validated.sc-road-phone-number-input .form-select-area.sc-road-phone-number-input:invalid~.invalid-feedback.sc-road-phone-number-input{display:block}.form-select-area.sc-road-phone-number-input option.sc-road-phone-number-input:checked::after{position:absolute;top:0;left:0;content:attr(data-content)}.form-select-area.sc-road-phone-number-input::after{position:absolute;top:0;left:0;content:var(--selected-content, '')}.phone-number-input-label.sc-road-phone-number-input{position:absolute;top:1rem;left:6rem;display:block;font-size:var(--road-body-medium);line-height:1.5;color:var(--road-on-surface-weak);pointer-events:none;transition:transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;transform-origin:0 0}.phone-number-input-field.sc-road-phone-number-input:required~.phone-number-input-label.sc-road-phone-number-input::after{color:var(--road-danger-default);content:\" *\"}.phone-number-input-field.sc-road-phone-number-input:focus~.phone-number-input-label.sc-road-phone-number-input,.phone-number-input-field[required].sc-road-phone-number-input:valid~.phone-number-input-label.sc-road-phone-number-input,.phone-number-input-field.has-value.sc-road-phone-number-input~.phone-number-input-label.sc-road-phone-number-input{transform:scale(0.625) translateY(-0.625rem)}.phone-number-input-field.sc-road-phone-number-input:placeholder-shown~.phone-number-input-label.sc-road-phone-number-input{transform:scale(0.625) translateY(-0.625rem)}.phone-number-input-field.sc-road-phone-number-input:-ms-input-placeholder~.phone-number-input-label.sc-road-phone-number-input{transform:scale(0.625) translateY(-0.625rem)}.phone-number-inputs-container.sc-road-phone-number-input{position:relative;display:flex}.road-phone-input-select.sc-road-phone-number-input{margin-bottom:1rem}.is-error.sc-road-phone-number-input{margin-bottom:0}.phone-number-input-field.sc-road-phone-number-input{flex-grow:1;border:1px solid var(--road-input-outline);border-left:0;border-radius:0.25rem;border-bottom-left-radius:0;border-top-left-radius:0}";
|
|
32225
32265
|
var RoadPhoneNumberInputStyle0 = phoneNumberInputCss;
|
|
32226
32266
|
|
|
32227
32267
|
let selectIds$1 = 0;
|
|
@@ -32252,12 +32292,8 @@ class RoadPhoneNumberInput {
|
|
|
32252
32292
|
phone: this.resetPhoneUtilData(),
|
|
32253
32293
|
};
|
|
32254
32294
|
}
|
|
32255
|
-
updateMessagePosition() {
|
|
32256
|
-
this.placeErrorMessage();
|
|
32257
|
-
}
|
|
32258
32295
|
// On component load
|
|
32259
32296
|
componentWillLoad() {
|
|
32260
|
-
this.placeErrorMessage();
|
|
32261
32297
|
let fromSelect = false;
|
|
32262
32298
|
if (this.phoneValue) {
|
|
32263
32299
|
this.phoneNumber = this.phoneValue;
|
|
@@ -32274,35 +32310,10 @@ class RoadPhoneNumberInput {
|
|
|
32274
32310
|
}
|
|
32275
32311
|
// On user input
|
|
32276
32312
|
handleInput(event) {
|
|
32277
|
-
|
|
32313
|
+
const input = event.target;
|
|
32314
|
+
this.phoneNumber = input.value;
|
|
32278
32315
|
this.createAndDispatchPhoneData();
|
|
32279
32316
|
}
|
|
32280
|
-
// On user key down
|
|
32281
|
-
handleKeyDown(event) {
|
|
32282
|
-
// Liste des caractères interdits
|
|
32283
|
-
const caracteresInterdits = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '=', '[', ']', '{', '}', '|', ';', ':', "'", '"', ',', '.', '<', '>', '/', '?'];
|
|
32284
|
-
// Vérifier si la touche pressée est dans la liste des caractères interdits
|
|
32285
|
-
if (caracteresInterdits.includes(event.key)) {
|
|
32286
|
-
event.preventDefault();
|
|
32287
|
-
}
|
|
32288
|
-
}
|
|
32289
|
-
// On user key up
|
|
32290
|
-
handleKeyUp(event) {
|
|
32291
|
-
// Récupérer la valeur saisie
|
|
32292
|
-
const inputValue = event.target.value || '';
|
|
32293
|
-
// Vérifier si la valeur contient uniquement des chiffres ou le symbole "+"
|
|
32294
|
-
const containsOnlyNumbersAndPlus = /^[0-9+]*$/.test(inputValue);
|
|
32295
|
-
// Si la valeur ne contient pas uniquement des chiffres ou le symbole "+", réinitialiser le champ de saisie à son état précédent
|
|
32296
|
-
if (!containsOnlyNumbersAndPlus) {
|
|
32297
|
-
// Réinitialiser la valeur du champ de saisie à son état précédent
|
|
32298
|
-
event.target.value = this.phoneNumber;
|
|
32299
|
-
}
|
|
32300
|
-
else {
|
|
32301
|
-
// Si la valeur contient uniquement des chiffres ou le symbole "+", mettre à jour la valeur du numéro de téléphone
|
|
32302
|
-
this.phoneNumber = inputValue;
|
|
32303
|
-
this.createAndDispatchPhoneData();
|
|
32304
|
-
}
|
|
32305
|
-
}
|
|
32306
32317
|
// On user select
|
|
32307
32318
|
handleSelect(event) {
|
|
32308
32319
|
const select = event.target;
|
|
@@ -32314,6 +32325,7 @@ class RoadPhoneNumberInput {
|
|
|
32314
32325
|
this.updateCountryOptions();
|
|
32315
32326
|
}
|
|
32316
32327
|
createAndDispatchPhoneData(fromSelect) {
|
|
32328
|
+
var _a;
|
|
32317
32329
|
// Init phone util
|
|
32318
32330
|
const phoneUtil = libphonenumber.exports.PhoneNumberUtil.getInstance();
|
|
32319
32331
|
const PNF = libphonenumber.exports.PhoneNumberFormat;
|
|
@@ -32321,7 +32333,7 @@ class RoadPhoneNumberInput {
|
|
|
32321
32333
|
this.returnObject.phone = this.resetPhoneUtilData();
|
|
32322
32334
|
const tmpCountry = this.selectedCountry.length ? this.selectedCountry : this.countryData[0].countryCode;
|
|
32323
32335
|
try {
|
|
32324
|
-
const parsedPhoneNumber = phoneUtil.parse(this.phoneNumber, tmpCountry);
|
|
32336
|
+
const parsedPhoneNumber = phoneUtil.parse((_a = this.phoneNumber) !== null && _a !== void 0 ? _a : '', tmpCountry);
|
|
32325
32337
|
this.returnObject.isError = !phoneUtil.isValidNumber(parsedPhoneNumber) && !this.isEmptyPhoneNumber();
|
|
32326
32338
|
this.returnObject.phone.nationalNumber = phoneUtil.format(parsedPhoneNumber, PNF.NATIONAL);
|
|
32327
32339
|
this.returnObject.phone.internationalNumber = phoneUtil.format(parsedPhoneNumber, PNF.INTERNATIONAL);
|
|
@@ -32343,7 +32355,7 @@ class RoadPhoneNumberInput {
|
|
|
32343
32355
|
const phoneType = Object.entries(libphonenumber.exports.PhoneNumberType).find(entry => entry[1] === phoneUtil.getNumberType(parsedPhoneNumber));
|
|
32344
32356
|
this.returnObject.phone.numberType = phoneType[0];
|
|
32345
32357
|
}
|
|
32346
|
-
catch (
|
|
32358
|
+
catch (_b) { }
|
|
32347
32359
|
finally {
|
|
32348
32360
|
this.roadPhoneNumberInput.emit(this.returnObject);
|
|
32349
32361
|
}
|
|
@@ -32356,16 +32368,18 @@ class RoadPhoneNumberInput {
|
|
|
32356
32368
|
this.selectedCountry = value;
|
|
32357
32369
|
}
|
|
32358
32370
|
resetPhoneUtilData() {
|
|
32371
|
+
var _a, _b;
|
|
32359
32372
|
return {
|
|
32360
32373
|
numberType: 'UNKNOWN',
|
|
32361
32374
|
countryCode: this.selectedCountry,
|
|
32362
32375
|
code: this.selectedCountryCode,
|
|
32363
|
-
nationalNumber: this.phoneNumber,
|
|
32364
|
-
internationalNumber: this.phoneNumber,
|
|
32376
|
+
nationalNumber: (_a = this.phoneNumber) !== null && _a !== void 0 ? _a : '',
|
|
32377
|
+
internationalNumber: (_b = this.phoneNumber) !== null && _b !== void 0 ? _b : '',
|
|
32365
32378
|
};
|
|
32366
32379
|
}
|
|
32367
32380
|
isEmptyPhoneNumber() {
|
|
32368
|
-
|
|
32381
|
+
var _a;
|
|
32382
|
+
return !((_a = this.phoneNumber) === null || _a === void 0 ? void 0 : _a.length);
|
|
32369
32383
|
}
|
|
32370
32384
|
getPhoneCodeFromCountryCode(countryCode) {
|
|
32371
32385
|
var _a;
|
|
@@ -32390,43 +32404,24 @@ class RoadPhoneNumberInput {
|
|
|
32390
32404
|
},
|
|
32391
32405
|
];
|
|
32392
32406
|
}
|
|
32393
|
-
|
|
32394
|
-
this.
|
|
32395
|
-
messError.style.display = "flex";
|
|
32396
|
-
messError.style.marginTop = "-0.5rem";
|
|
32397
|
-
const phoneNumberInput = this.el;
|
|
32398
|
-
phoneNumberInput.appendChild(messError);
|
|
32399
|
-
});
|
|
32400
|
-
}
|
|
32401
|
-
waitForElementToExist(selector) {
|
|
32402
|
-
return new Promise(resolve => {
|
|
32403
|
-
if (document.querySelector(selector)) {
|
|
32404
|
-
return resolve(document.querySelector(selector));
|
|
32405
|
-
}
|
|
32406
|
-
const observer = new MutationObserver(() => {
|
|
32407
|
-
if (document.querySelector(selector)) {
|
|
32408
|
-
resolve(document.querySelector(selector));
|
|
32409
|
-
observer.disconnect();
|
|
32410
|
-
}
|
|
32411
|
-
});
|
|
32412
|
-
observer.observe(document.body, {
|
|
32413
|
-
subtree: true,
|
|
32414
|
-
childList: true,
|
|
32415
|
-
});
|
|
32416
|
-
});
|
|
32407
|
+
hasValue() {
|
|
32408
|
+
return this.phoneNumber !== '' && this.phoneNumber !== null;
|
|
32417
32409
|
}
|
|
32418
32410
|
render() {
|
|
32419
|
-
const
|
|
32411
|
+
const id = selectIds$1++;
|
|
32412
|
+
const selectId = `road-phone-number-select-${id}`;
|
|
32413
|
+
const inputId = `road-phone-number-input-${id}`;
|
|
32420
32414
|
const labelId = selectId + '-label';
|
|
32421
32415
|
const valueId = selectId + '-value';
|
|
32422
32416
|
const isInvalidClass = this.errorMessage.length ? 'is-invalid' : '';
|
|
32423
32417
|
const isErrorClass = this.errorMessage.length ? 'is-error' : '';
|
|
32424
|
-
|
|
32418
|
+
const hasValueClass = this.hasValue() ? 'has-value' : '';
|
|
32419
|
+
const sizes = 'xl';
|
|
32420
|
+
return (hAsync(Host, { key: 'b232bb9bd74d9fe038c221ff848b27b9da2f159d' }, hAsync("div", { key: '477f657fa1614436a6efe877f4e260a8eeb9c67f', class: 'phone-number-inputs-container' }, hAsync("div", { key: 'bd1859551b427c913ddef5715890bb59d430b784', class: `road-phone-input-select ${isErrorClass} ${isInvalidClass}`, slot: "prepend" }, hAsync("select", { key: '73b69daadcb6519742803631f66a555d4ff33671', id: selectId, class: `form-select-area has-value`, "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: '5086cd59439423aaf1803372b63e298cd6f481b2', class: "form-select-area-label", id: labelId, htmlFor: selectId }, this.codeLabel), hAsync("label", { key: 'a1a5e374d400123cdf4d36151770ba29f97630fc', class: "form-select-area-value", id: valueId, htmlFor: selectId }, "+", this.selectedCountryCode)), hAsync("input", { key: 'c61e7fee987cdf74f92435037d49c5d162c59504', type: 'tel', id: inputId, class: `input-${sizes} phone-number-input-field ${hasValueClass} ${isErrorClass}`, value: this.phoneValue, required: this.required, tabIndex: 0, onInput: (event) => this.handleInput(event) }), hAsync("label", { key: '4395476ddb01976cad55e7f4b59b67394011c21d', class: "phone-number-input-label", id: labelId, htmlFor: inputId }, this.phoneLabel)), this.errorMessage
|
|
32421
|
+
&& this.errorMessage !== ''
|
|
32422
|
+
&& hAsync("p", { key: '3f9033245fa0794065258174b0296226de6cb963', class: "invalid-feedback" }, hAsync("road-icon", { key: '664e6ea9e54b06409d1712ed92ef97940f23e9e1', slot: "start", color: 'danger', name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), this.errorMessage)));
|
|
32425
32423
|
}
|
|
32426
32424
|
get el() { return getElement(this); }
|
|
32427
|
-
static get watchers() { return {
|
|
32428
|
-
"errorMessage": ["updateMessagePosition"]
|
|
32429
|
-
}; }
|
|
32430
32425
|
static get style() { return RoadPhoneNumberInputStyle0; }
|
|
32431
32426
|
static get cmpMeta() { return {
|
|
32432
32427
|
"$flags$": 2,
|
|
@@ -32464,7 +32459,7 @@ class Row {
|
|
|
32464
32459
|
registerInstance(this, hostRef);
|
|
32465
32460
|
}
|
|
32466
32461
|
render() {
|
|
32467
|
-
return (hAsync(Host, { key: '
|
|
32462
|
+
return (hAsync(Host, { key: 'c24fc7d8828c301b3569e2d2a0cd4dc8d7307828' }, hAsync("slot", { key: '997bf6ba4d7e803fff4b3c30793d4df99bafb238' })));
|
|
32468
32463
|
}
|
|
32469
32464
|
static get style() { return RoadRowStyle0; }
|
|
32470
32465
|
static get cmpMeta() { return {
|
|
@@ -32536,10 +32531,10 @@ class SegmentedButton {
|
|
|
32536
32531
|
render() {
|
|
32537
32532
|
const { tabIndex, selected, tab } = this;
|
|
32538
32533
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
32539
|
-
return (hAsync(Host, { key: '
|
|
32534
|
+
return (hAsync(Host, { key: 'f6a97b1c5e95d256b8e196a5047e7b2655415d67', onClick: this.onClick, onKeyup: this.onKeyUp, role: "tab", tabindex: tabIndex, "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
32540
32535
|
'tab-selected': selected,
|
|
32541
32536
|
[`${sizeClass}`]: true,
|
|
32542
|
-
} }, hAsync("span", { key: '
|
|
32537
|
+
} }, hAsync("span", { key: '51bce8ba5647ea8ddcf153b3a74acc46af4edb7c', tabIndex: -1, class: "button-native", part: "native", "aria-hidden": "true" }, hAsync("slot", { key: '1bd9a44592fd90312ea33e1adc5612cc5db951b9' }))));
|
|
32543
32538
|
}
|
|
32544
32539
|
get el() { return getElement(this); }
|
|
32545
32540
|
static get style() { return RoadSegmentedButtonStyle0; }
|
|
@@ -32660,7 +32655,7 @@ class Select {
|
|
|
32660
32655
|
const labelId = this.selectId + '-label';
|
|
32661
32656
|
const hasValueClass = this.value && this.value !== '' ? 'has-value' : '';
|
|
32662
32657
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
32663
|
-
return (hAsync(Host, { key: '
|
|
32658
|
+
return (hAsync(Host, { key: '0659ad9a942daef4a079ca058127d92cc8c20097', class: this.sizes && `select-${this.sizes}` }, hAsync("select", { key: '1383da4d49980f65895b24587ed41968ab5b58e8', 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: 'f7975f19891715f2f4f33b0356d32f1df18aa7df', 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: '57cbc55337d0f040e639f942b4b03debfd9247aa', class: "form-select-label", id: labelId, htmlFor: this.selectId }, this.label), this.error && this.error !== '' && hAsync("p", { key: '4970112ce9d96893b926b1aac4a9fb3bae296d69', class: "invalid-feedback" }, this.error)));
|
|
32664
32659
|
}
|
|
32665
32660
|
static get watchers() { return {
|
|
32666
32661
|
"value": ["valueChanged"]
|
|
@@ -34581,8 +34576,8 @@ class SelectFilter {
|
|
|
34581
34576
|
const options = this.filteredOptions;
|
|
34582
34577
|
const isActive = this.isActive ? 'true' : 'false';
|
|
34583
34578
|
const notActive = this.isActive ? '' : 'not-active';
|
|
34584
|
-
return (hAsync(Host, { key: '
|
|
34585
|
-
hAsync("ul", { key: '
|
|
34579
|
+
return (hAsync(Host, { key: '60762eea1cfe1d08708bd295fc252a68eb40799d', "is-active": isActive }, hAsync("slot", { key: '5bc83358875e4b428f629a95af7bee2a04a37bed' }), this.isOpen &&
|
|
34580
|
+
hAsync("ul", { key: '87f39be578541345a442d10bc26e5f5c66427800', 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 }))))));
|
|
34586
34581
|
}
|
|
34587
34582
|
get el() { return getElement(this); }
|
|
34588
34583
|
static get style() { return RoadSelectFilterStyle0; }
|
|
@@ -34612,7 +34607,7 @@ class Skeleton {
|
|
|
34612
34607
|
registerInstance(this, hostRef);
|
|
34613
34608
|
}
|
|
34614
34609
|
render() {
|
|
34615
|
-
return (hAsync("span", { key: '
|
|
34610
|
+
return (hAsync("span", { key: '836ac5581827f074751f3c497b7bc77a8c9e2e73' }, "\u00A0"));
|
|
34616
34611
|
}
|
|
34617
34612
|
static get style() { return RoadSkeletonStyle0; }
|
|
34618
34613
|
static get cmpMeta() { return {
|
|
@@ -34643,7 +34638,7 @@ class Spinner {
|
|
|
34643
34638
|
render() {
|
|
34644
34639
|
const sizeClass = this.size !== undefined ? `spinner spinner--${this.size}` : 'spinner';
|
|
34645
34640
|
const colorClass = this.size !== undefined ? `spinner-circle spinner-circle--${this.color}` : 'spinner-circle';
|
|
34646
|
-
return (hAsync("svg", { key: '
|
|
34641
|
+
return (hAsync("svg", { key: '0eede9bda893755c08fb19b9349afb0174c092a5', class: `${sizeClass}`, viewBox: "25 25 50 50" }, hAsync("circle", { key: '0b18e9edd726326c19c3fb3365fd357687de6ff4', class: `${colorClass}`, cx: "50", cy: "50", r: "20" })));
|
|
34647
34642
|
}
|
|
34648
34643
|
static get style() { return RoadSpinnerStyle0; }
|
|
34649
34644
|
static get cmpMeta() { return {
|
|
@@ -34693,7 +34688,7 @@ class Stepper {
|
|
|
34693
34688
|
const urlStep1 = this.urlStep1 !== undefined ? `${this.urlStep1}` : '#';
|
|
34694
34689
|
const urlStep2 = this.urlStep2 !== undefined ? `${this.urlStep2}` : '#';
|
|
34695
34690
|
const urlStep3 = this.urlStep3 !== undefined ? `${this.urlStep3}` : '#';
|
|
34696
|
-
return (hAsync(Host, { key: '
|
|
34691
|
+
return (hAsync(Host, { key: 'dcf8d6783ca1c50b480e3c8a9e519470df51f126' }, hAsync("nav", { key: 'c918c8ad257418793bffff06a95d20b4483c5533' }, hAsync("ul", { key: 'b97f0b4866076486f4d8622438de10077f476947', class: `${colorClass}` }, hAsync("li", { key: '1250f5e8d9020935ebbd2b84f039318516fb58dc', class: `${stateClass}` }, hAsync("a", { key: 'c2d67459691ae644080e924e9b01d08942c8dfe9', class: "progress-indicator-horizontal-link", href: `${urlStep1}` }, hAsync("span", { key: 'd9735fef2ab8347ecefb91146f0c1729cf77f1b9', class: "progress-indicator-horizontal-icon" }, hAsync("slot", { key: '5f08cf27f0ac87cbe6c16fd703d14b9c37e4454d', name: "progress-indicator-horizontal-icon" })), hAsync("span", { key: '322addee8f1aaa5dca2c690b9fbf55533602f32a', class: "progress-indicator-horizontal-title" }, hAsync("slot", { key: '7a09c36260f1584e1e46ee0bbde4df42bc21e59b', name: "progress-indicator-horizontal-title" })))), hAsync("li", { key: 'f84b6d100a4e00801738ada07c9213977e7b3360', class: `${stateSecondStepClass}` }, hAsync("a", { key: '9a05f024d8d56dbb601827c2a4249fa4507e0a7a', class: "progress-indicator-horizontal-link", href: `${urlStep2}` }, hAsync("span", { key: 'f5c50f2a0b14e2079bf13698a86b8dc224a73b70', class: "progress-indicator-horizontal-icon" }, hAsync("slot", { key: 'aab1fbcf2f816b6183a8d72e6ab99f24eded4852', name: "progress-indicator-horizontal-icon2" })), hAsync("span", { key: '612aeb4c4983caa2457611239459dc81c4e99aa1', class: "progress-indicator-horizontal-title" }, hAsync("slot", { key: 'ff0acac4d0e2e5dde377dc650f2980481cb26615', name: "progress-indicator-horizontal-title2" })))), this.numberStep == 3 && hAsync("li", { key: 'ff685a63ba6ba17eb25c1a409ff11b88b90818ed', class: `${stateThirdStepClass}` }, hAsync("a", { key: 'da6a0f0c080049f92b8ca1ccf818c587a5a39090', class: "progress-indicator-horizontal-link", href: `${urlStep3}` }, hAsync("span", { key: '9ad7a73bc9465595da09073821bac34b00c78e81', class: "progress-indicator-horizontal-icon" }, hAsync("slot", { key: '0a5823fda2102fade43ef222ec7d04737b51b7e9', name: "progress-indicator-horizontal-icon3" })), hAsync("span", { key: '468acc35f192fb7ae2090c8f32045a9406d9a9e2', class: "progress-indicator-horizontal-title" }, hAsync("slot", { key: 'e25d5a5a1702557adada5fb05ea9e551ce5042ef', name: "progress-indicator-horizontal-title3" }))))))));
|
|
34697
34692
|
}
|
|
34698
34693
|
static get style() { return RoadProgressIndicatorHorizontalStyle0; }
|
|
34699
34694
|
static get cmpMeta() { return {
|
|
@@ -34795,11 +34790,11 @@ class Switch {
|
|
|
34795
34790
|
}
|
|
34796
34791
|
render() {
|
|
34797
34792
|
const labelId = this.switchId + '-label';
|
|
34798
|
-
const textLabel = hAsync("label", { key: '
|
|
34793
|
+
const textLabel = hAsync("label", { key: '6d2103f99cd9f321a3530b8e1bdffb4422437b06', class: "form-switch-label", id: labelId, htmlFor: this.switchId }, this.label);
|
|
34799
34794
|
const colorClass = this.color !== undefined ? 'form-switch-' + this.color : '';
|
|
34800
34795
|
const isSpacedClass = this.isSpaced && 'form-switch-spaced';
|
|
34801
34796
|
const rightSwitchClass = this.hasLeftLabel ? 'form-switch-right' : '';
|
|
34802
|
-
return (hAsync(Host, { key: '
|
|
34797
|
+
return (hAsync(Host, { key: '3c6c14bb4fb83b60b391ef9c75a9a60447662ef7' }, hAsync("input", { key: 'e5fa9efadebebc7dd5347601241be9ff7599eaef', 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: 'b1bf4b95034b261643b40774c804bedb54298892', class: `form-switch-label ${isSpacedClass} ${colorClass}`, htmlFor: this.switchId }, this.hasLeftLabel && textLabel, hAsync("div", { key: '06b2f47040884d8c4355f0203cb6b3b4f2efa5c8', class: `form-switch-lever ${rightSwitchClass}`, "data-off": this.off, "data-on": this.on }), this.hasLeftLabel ? '' : textLabel)));
|
|
34803
34798
|
}
|
|
34804
34799
|
static get watchers() { return {
|
|
34805
34800
|
"checked": ["checkedChanged"]
|
|
@@ -34854,9 +34849,9 @@ class Tab {
|
|
|
34854
34849
|
}
|
|
34855
34850
|
render() {
|
|
34856
34851
|
const { tab, active } = this;
|
|
34857
|
-
return (hAsync(Host, { key: '
|
|
34852
|
+
return (hAsync(Host, { key: '2388b760912fddc34f0204fbe2afe59bfd45e874', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
34858
34853
|
'tab-hidden': !active,
|
|
34859
|
-
} }, hAsync("slot", { key: '
|
|
34854
|
+
} }, hAsync("slot", { key: 'a9541ba7cf02ca95c4a805927fa146589178876d' })));
|
|
34860
34855
|
}
|
|
34861
34856
|
get el() { return getElement(this); }
|
|
34862
34857
|
static get style() { return RoadTabStyle0; }
|
|
@@ -34916,11 +34911,11 @@ class TabBar {
|
|
|
34916
34911
|
}
|
|
34917
34912
|
render() {
|
|
34918
34913
|
const { expand, center, secondary } = this;
|
|
34919
|
-
return (hAsync(Host, { key: '
|
|
34914
|
+
return (hAsync(Host, { key: 'e634e4914b3d846aa4a0288612a5ca375434e143', role: "tablist", class: {
|
|
34920
34915
|
'tab-expand': expand,
|
|
34921
34916
|
'tab-center': center,
|
|
34922
34917
|
'tab-secondary': secondary,
|
|
34923
|
-
} }, hAsync("slot", { key: '
|
|
34918
|
+
} }, hAsync("slot", { key: 'a5f4370b6adc58b86b407b58dde01fab0e3390c3' })));
|
|
34924
34919
|
}
|
|
34925
34920
|
get el() { return getElement(this); }
|
|
34926
34921
|
static get watchers() { return {
|
|
@@ -35020,7 +35015,7 @@ class TabButton {
|
|
|
35020
35015
|
rel,
|
|
35021
35016
|
target,
|
|
35022
35017
|
};
|
|
35023
|
-
return (hAsync(Host, { key: '
|
|
35018
|
+
return (hAsync(Host, { key: '499691c9d7abe7102aef4174f7a26be94ae9c1f2', 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: {
|
|
35024
35019
|
'tab-selected': selected,
|
|
35025
35020
|
'tab-has-label': hasLabel,
|
|
35026
35021
|
'tab-has-icon': hasIcon,
|
|
@@ -35028,7 +35023,7 @@ class TabButton {
|
|
|
35028
35023
|
'tab-has-icon-only': hasIcon && !hasLabel,
|
|
35029
35024
|
[`tab-layout-${layout}`]: true,
|
|
35030
35025
|
'tab-disabled': disabled, // Classe CSS pour les styles désactivés
|
|
35031
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
35026
|
+
} }, hAsync("a", Object.assign({ key: '3f61d0817e64f4842409aa11b5a4692a9becea7d' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), hAsync("span", { key: '6089b0b439f90947bccffa02ab102ffb781d6e10', class: "button-inner" }, hAsync("slot", { key: '530819a8013d3e00160c0c7981a566a49d2ba7be' })))));
|
|
35032
35027
|
}
|
|
35033
35028
|
get el() { return getElement(this); }
|
|
35034
35029
|
static get style() { return RoadTabButtonStyle0; }
|
|
@@ -35062,7 +35057,7 @@ class Table {
|
|
|
35062
35057
|
registerInstance(this, hostRef);
|
|
35063
35058
|
}
|
|
35064
35059
|
render() {
|
|
35065
|
-
return (hAsync("slot", { key: '
|
|
35060
|
+
return (hAsync("slot", { key: '969efbc10ec3956ef1bfcfff63d0fcd95d619b20' }));
|
|
35066
35061
|
}
|
|
35067
35062
|
static get style() { return RoadTableStyle0; }
|
|
35068
35063
|
static get cmpMeta() { return {
|
|
@@ -35170,7 +35165,7 @@ class Tabs$1 {
|
|
|
35170
35165
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
35171
35166
|
}
|
|
35172
35167
|
render() {
|
|
35173
|
-
return (hAsync(Host, { key: '
|
|
35168
|
+
return (hAsync(Host, { key: '97ad0617ea34f3fe3327643bd69aab9060043e8f', onRoadSegmentedButtonClick: this.onTabClicked }, hAsync("slot", { key: 'b69c95aea0a20359b06a2118c4850467e56b156b', name: "top" }), hAsync("slot", { key: '84d9cabe1fbacbac245e954b67c13a21faea1824' })));
|
|
35174
35169
|
}
|
|
35175
35170
|
get el() { return getElement(this); }
|
|
35176
35171
|
static get style() { return RoadSegmentedButtonsStyle0; }
|
|
@@ -35306,7 +35301,7 @@ class Tabs {
|
|
|
35306
35301
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
35307
35302
|
}
|
|
35308
35303
|
render() {
|
|
35309
|
-
return (hAsync(Host, { key: '
|
|
35304
|
+
return (hAsync(Host, { key: '4bc7361e3dc40f324459f29259b34d1797edf697', onRoadTabButtonClick: this.onTabClicked }, hAsync("slot", { key: '387958fa94175f83ee5d8ff37fcb29159f9ab1d7', name: "top" }), hAsync("div", { key: '0a1b85426687b29f19b5490e562227cbe0d36029', class: "tabs-inner" }, hAsync("slot", { key: '237eb046e0b681d845c1f149067b33145d5ac1c0' }))));
|
|
35310
35305
|
}
|
|
35311
35306
|
get el() { return getElement(this); }
|
|
35312
35307
|
static get style() { return RoadTabsStyle0; }
|
|
@@ -35354,7 +35349,7 @@ class Tag {
|
|
|
35354
35349
|
}
|
|
35355
35350
|
render() {
|
|
35356
35351
|
const contrastClass = this.contrast ? `tag-${this.color} tag-${this.color}-contrast` : `tag-${this.color}`;
|
|
35357
|
-
return (hAsync(Host, { key: '
|
|
35352
|
+
return (hAsync(Host, { key: 'b7b5a60405631c55d69a6059b4b08d24570a03a5', class: `${contrastClass}` }, hAsync("slot", { key: 'f1e330db16f68bc41a34d9d35003c2929746fbdc' })));
|
|
35358
35353
|
}
|
|
35359
35354
|
static get style() { return RoadTagStyle0; }
|
|
35360
35355
|
static get cmpMeta() { return {
|
|
@@ -35386,7 +35381,7 @@ class Text {
|
|
|
35386
35381
|
}
|
|
35387
35382
|
render() {
|
|
35388
35383
|
const colorClass = this.color !== undefined ? `text-${this.color}` : '';
|
|
35389
|
-
return (hAsync(Host, { key: '
|
|
35384
|
+
return (hAsync(Host, { key: 'bfb0dd3d26e95625e4422ffda7401f614212203c', class: `${colorClass}` }, hAsync("slot", { key: '67f879cff68567ed12c709ee1685e0d7f8281189' })));
|
|
35390
35385
|
}
|
|
35391
35386
|
static get style() { return RoadTextStyle0; }
|
|
35392
35387
|
static get cmpMeta() { return {
|
|
@@ -35496,7 +35491,7 @@ class Textarea {
|
|
|
35496
35491
|
const hasValueClass = this.value !== '' ? 'has-value' : '';
|
|
35497
35492
|
const noResizeClass = this.resize == false ? 'no-resize' : '';
|
|
35498
35493
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
35499
|
-
return (hAsync(Host, { key: '
|
|
35494
|
+
return (hAsync(Host, { key: 'eeecfd72b3f41d8e48b83a304611de0acbc0e76c', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}` }, hAsync("textarea", { key: '5d8972ee6744d8896fe319f7af9593ac535ed301', 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: '8ebd025ef2b14dcd25729ac912fd58e995a5e5c1', class: "form-label", id: labelId, htmlFor: this.textareaId }, this.label), this.error && this.error !== '' && hAsync("p", { key: 'ac2e3cb456af042ea3950c3b2a217892d66e687e', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: 'a36b93fc1c34d2a734e83f72ad6f113382e2c626', class: "helper" }, this.helper)));
|
|
35500
35495
|
}
|
|
35501
35496
|
static get watchers() { return {
|
|
35502
35497
|
"value": ["valueChanged"]
|
|
@@ -35627,7 +35622,7 @@ class Toast {
|
|
|
35627
35622
|
if (this.color == 'danger') {
|
|
35628
35623
|
this.timeout = 0;
|
|
35629
35624
|
}
|
|
35630
|
-
return (hAsync(Host, { key: '
|
|
35625
|
+
return (hAsync(Host, { key: '963d68bada509717bf67d7a260037641e1a7b7f6', class: `${toastIsOpenClass}`, role: "alert" }, hAsync("div", { key: 'fbb4ad85660f6812f390439ec077ee729c7b86ae', class: `toast toast-${this.color}` }, hAsync("road-icon", { key: 'a213f9050e01d49c13ec343fdfe210b16e54d26e', class: "toast-icon", icon: icon, "aria-hidden": "true" }), hAsync("p", { key: '547324e3dc33e3322b3247c829f20424438297a9', class: "toast-label" }, this.label), hAsync("button", { key: 'e53b8272bcf4b9e90c5114eb535ee6ccfab0c77c', type: "button", class: "toast-close", "aria-label": "Close", onClick: this.onClick }, hAsync("road-icon", { key: '3b2097476b3d34de79c12136a67606eb1adf3fb2', icon: navigationClose, size: "md" })), hAsync("slot", { key: '17c5fb88f18e89665038e82d5ec28614c046030f', name: "progress" }))));
|
|
35631
35626
|
}
|
|
35632
35627
|
static get watchers() { return {
|
|
35633
35628
|
"isOpen": ["isOpenChanged"]
|
|
@@ -35667,7 +35662,7 @@ class Toolbar {
|
|
|
35667
35662
|
}
|
|
35668
35663
|
render() {
|
|
35669
35664
|
const colorClass = this.color !== undefined ? `toolbar-${this.color}` : '';
|
|
35670
|
-
return (hAsync(Host, { key: '
|
|
35665
|
+
return (hAsync(Host, { key: 'ffc6f4ac8c4ef24eea46bdae04b7a4c04832bf44', class: colorClass }, hAsync("div", { key: '5cd57479fd54221ee9a87a3a6801f14c52200d85', class: "toolbar-container" }, hAsync("slot", { key: '7952ecef2e0dc894bdcc43fd4a40ae3bf60e7890', name: "start" }), hAsync("slot", { key: 'db445d8b30a2bc4eb4069321319fe9eda7dc2844', name: "primary" }), hAsync("div", { key: '3f7733fd49723df3ba704f75d478b441f31ed413', class: "toolbar-content" }, hAsync("slot", { key: 'cbd10156f94a0f9581eceba038f8da5d89acbeb9' })), hAsync("slot", { key: '280ec9f65e0027f54f85aed82e6ac5be5c479ea6', name: "secondary" }), hAsync("slot", { key: '81a86f23332ea53f67e9807428f3d0d8cf152a1c', name: "end" }))));
|
|
35671
35666
|
}
|
|
35672
35667
|
static get style() { return RoadToolbarStyle0; }
|
|
35673
35668
|
static get cmpMeta() { return {
|
|
@@ -35693,7 +35688,7 @@ class ToolbarAppName {
|
|
|
35693
35688
|
registerInstance(this, hostRef);
|
|
35694
35689
|
}
|
|
35695
35690
|
render() {
|
|
35696
|
-
return (hAsync("div", { key: '
|
|
35691
|
+
return (hAsync("div", { key: '7a11cf4b2af6182e9538b11c6b5942b4c572d637', class: "toolbar-title-page" }, hAsync("slot", { key: '51f5dcee2ad059148c9d7357132602d824e3fe63' })));
|
|
35697
35692
|
}
|
|
35698
35693
|
static get style() { return RoadToolbarTitlePageStyle0; }
|
|
35699
35694
|
static get cmpMeta() { return {
|
|
@@ -35717,7 +35712,7 @@ class ToolbarTitle {
|
|
|
35717
35712
|
registerInstance(this, hostRef);
|
|
35718
35713
|
}
|
|
35719
35714
|
render() {
|
|
35720
|
-
return (hAsync("div", { key: '
|
|
35715
|
+
return (hAsync("div", { key: 'fdd5193281f75ccc04747f48380fbb4af8658055', class: "toolbar-title" }, hAsync("slot", { key: 'e65fd62179763d5378a7ac93a119f0032665f871' })));
|
|
35721
35716
|
}
|
|
35722
35717
|
static get style() { return RoadToolbarTitleStyle0; }
|
|
35723
35718
|
static get cmpMeta() { return {
|
|
@@ -35746,7 +35741,7 @@ class ToolbarV2 {
|
|
|
35746
35741
|
registerInstance(this, hostRef);
|
|
35747
35742
|
}
|
|
35748
35743
|
render() {
|
|
35749
|
-
return (hAsync(Host, { key: '
|
|
35744
|
+
return (hAsync(Host, { key: '30cddf1e72a9b460259e8053952e6dcc7e2484b3', class: "toolbar" }, hAsync("div", { key: '5c86fb4db315f53f7341193929c354304524ba94', class: "toolbar-container" }, hAsync("div", { key: '68d87cc9a8d38547e8729cb6fa9a8821d7ab81ee', class: "toolbar-container-content-left" }, hAsync("slot", { key: '94386dd4aa8719e97ac5d51ffc0ca3f7e0e11ee4', name: "start" }), hAsync("slot", { key: '9b3fdc613462cdff090382f11dddb1308dc7da3a', name: "primary" })), hAsync("div", { key: '0153f5b668636a634cfce7f5d6a054785816445b', class: "toolbar-content" }, hAsync("slot", { key: 'ba416a009164948c33711d5a7cdc8f7632a5c983' })), hAsync("div", { key: 'c11139dfa5ed6ac04610c9e28ff3e51176dd4020', class: "toolbar-container-content-right" }, hAsync("slot", { key: 'a22589d012b450cd962d5fbad132a568bf5a2457', name: "secondary" }), hAsync("slot", { key: '76d493946e1500e7f8ae95db6ae955f4b71fa7d6', name: "end" })))));
|
|
35750
35745
|
}
|
|
35751
35746
|
static get style() { return RoadToolbarV2Style0; }
|
|
35752
35747
|
static get cmpMeta() { return {
|
|
@@ -35859,12 +35854,12 @@ class Tooltip {
|
|
|
35859
35854
|
return triggers.includes(triggerType);
|
|
35860
35855
|
}
|
|
35861
35856
|
render() {
|
|
35862
|
-
return (hAsync(Host, { key: '
|
|
35857
|
+
return (hAsync(Host, { key: '1cf0e4a4f9ed48c4580712f823b2040b3898155c', onMouseOver: this.onMouseOver, onMouseOut: this.onMouseOut, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur, tabindex: "0" // Makes the element focusable
|
|
35863
35858
|
,
|
|
35864
|
-
"data-tooltip-position": this.position }, hAsync("slot", { key: '
|
|
35859
|
+
"data-tooltip-position": this.position }, hAsync("slot", { key: 'bea4b3834a23af4d63a131a2b6bf9f795303a983', "aria-describedby": this.tooltipId }), hAsync("div", { key: '603d443e84c4848b6bbb355471467cadf9c9d048', part: "tooltip", id: this.tooltipId, class: {
|
|
35865
35860
|
tooltip: true,
|
|
35866
35861
|
'tooltip-open': this.isOpen,
|
|
35867
|
-
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, hAsync("slot", { key: '
|
|
35862
|
+
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, hAsync("slot", { key: 'cd4e126cffd08a2f796514596cdf5584f831b620', name: "tooltip-content" }))));
|
|
35868
35863
|
}
|
|
35869
35864
|
get el() { return getElement(this); }
|
|
35870
35865
|
static get style() { return RoadTooltipStyle0; }
|
|
@@ -35964,11 +35959,11 @@ class toggle {
|
|
|
35964
35959
|
}
|
|
35965
35960
|
render() {
|
|
35966
35961
|
const labelId = this.toggleId + '-label';
|
|
35967
|
-
const textLabel = hAsync("label", { key: '
|
|
35962
|
+
const textLabel = hAsync("label", { key: '16549585187145555048579f3208d9804df0a909', class: "form-toggle-label", id: labelId, htmlFor: this.toggleId }, this.label);
|
|
35968
35963
|
const isSpacedClass = this.isSpaced && 'form-toggle-spaced';
|
|
35969
35964
|
const righttoggleClass = this.hasLeftLabel ? 'form-toggle-right' : '';
|
|
35970
35965
|
const disabledClass = this.disabled ? 'disabled' : '';
|
|
35971
|
-
return (hAsync(Host, { key: '
|
|
35966
|
+
return (hAsync(Host, { key: 'ff45f91630783b5388ca3a94fac387dddb8fa3eb' }, hAsync("input", { key: '7f3681a3bd5518f3f8e0e90770cd93ab78b01b36', 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: '47b94c6c050469527b66f70699db39267f42a087', class: `form-toggle-label ${isSpacedClass} ${disabledClass}`, htmlFor: this.toggleId }, this.hasLeftLabel && textLabel, hAsync("div", { key: 'bb74c50605126d7ea4c2d6b13ef3bcfc4b0f0742', class: `form-toggle-lever ${righttoggleClass}`, "data-off": this.off, "data-on": this.on }), this.hasLeftLabel ? '' : textLabel)));
|
|
35972
35967
|
}
|
|
35973
35968
|
static get watchers() { return {
|
|
35974
35969
|
"checked": ["checkedChanged"]
|
|
@@ -36493,7 +36488,7 @@ var NAMESPACE = (
|
|
|
36493
36488
|
);
|
|
36494
36489
|
|
|
36495
36490
|
/*
|
|
36496
|
-
Stencil Hydrate Runner v4.27.
|
|
36491
|
+
Stencil Hydrate Runner v4.27.0 | MIT Licensed | https://stenciljs.com
|
|
36497
36492
|
*/
|
|
36498
36493
|
var __defProp = Object.defineProperty;
|
|
36499
36494
|
var __export = (target, all) => {
|
|
@@ -36839,19 +36834,19 @@ var MockCustomElementRegistry = class {
|
|
|
36839
36834
|
this.__whenDefined.delete(tagName);
|
|
36840
36835
|
}
|
|
36841
36836
|
}
|
|
36842
|
-
const
|
|
36843
|
-
if (
|
|
36844
|
-
const hosts =
|
|
36837
|
+
const doc2 = this.win.document;
|
|
36838
|
+
if (doc2 != null) {
|
|
36839
|
+
const hosts = doc2.querySelectorAll(tagName);
|
|
36845
36840
|
hosts.forEach((host) => {
|
|
36846
36841
|
if (upgradedElements.has(host) === false) {
|
|
36847
|
-
tempDisableCallbacks.add(
|
|
36848
|
-
const upgradedCmp = createCustomElement(this,
|
|
36842
|
+
tempDisableCallbacks.add(doc2);
|
|
36843
|
+
const upgradedCmp = createCustomElement(this, doc2, tagName);
|
|
36849
36844
|
for (let i = 0; i < host.childNodes.length; i++) {
|
|
36850
36845
|
const childNode = host.childNodes[i];
|
|
36851
36846
|
childNode.remove();
|
|
36852
36847
|
upgradedCmp.appendChild(childNode);
|
|
36853
36848
|
}
|
|
36854
|
-
tempDisableCallbacks.delete(
|
|
36849
|
+
tempDisableCallbacks.delete(doc2);
|
|
36855
36850
|
if (proxyElements.has(host)) {
|
|
36856
36851
|
proxyElements.set(host, upgradedCmp);
|
|
36857
36852
|
}
|
|
@@ -45295,11 +45290,11 @@ function parseFragment(fragmentContext, html, options) {
|
|
|
45295
45290
|
// src/mock-doc/parse-util.ts
|
|
45296
45291
|
var docParser = /* @__PURE__ */ new WeakMap();
|
|
45297
45292
|
function parseDocumentUtil(ownerDocument, html) {
|
|
45298
|
-
const
|
|
45299
|
-
|
|
45300
|
-
|
|
45301
|
-
|
|
45302
|
-
return
|
|
45293
|
+
const doc2 = parse(html.trim(), getParser(ownerDocument));
|
|
45294
|
+
doc2.documentElement = doc2.firstElementChild;
|
|
45295
|
+
doc2.head = doc2.documentElement.firstElementChild;
|
|
45296
|
+
doc2.body = doc2.head.nextElementSibling;
|
|
45297
|
+
return doc2;
|
|
45303
45298
|
}
|
|
45304
45299
|
function parseFragmentUtil(ownerDocument, html) {
|
|
45305
45300
|
if (typeof html === "string") {
|
|
@@ -45317,9 +45312,9 @@ function getParser(ownerDocument) {
|
|
|
45317
45312
|
}
|
|
45318
45313
|
const treeAdapter = {
|
|
45319
45314
|
createDocument() {
|
|
45320
|
-
const
|
|
45321
|
-
|
|
45322
|
-
return
|
|
45315
|
+
const doc2 = ownerDocument.createElement("#document" /* DOCUMENT_NODE */);
|
|
45316
|
+
doc2["x-mode"] = "no-quirks";
|
|
45317
|
+
return doc2;
|
|
45323
45318
|
},
|
|
45324
45319
|
setNodeSourceCodeLocation(node, location2) {
|
|
45325
45320
|
node.sourceCodeLocation = location2;
|
|
@@ -45357,22 +45352,22 @@ function getParser(ownerDocument) {
|
|
|
45357
45352
|
getTemplateContent(templateElement) {
|
|
45358
45353
|
return templateElement.content;
|
|
45359
45354
|
},
|
|
45360
|
-
setDocumentType(
|
|
45361
|
-
let doctypeNode =
|
|
45355
|
+
setDocumentType(doc2, name, publicId, systemId) {
|
|
45356
|
+
let doctypeNode = doc2.childNodes.find((n) => n.nodeType === 10 /* DOCUMENT_TYPE_NODE */);
|
|
45362
45357
|
if (doctypeNode == null) {
|
|
45363
45358
|
doctypeNode = ownerDocument.createDocumentTypeNode();
|
|
45364
|
-
|
|
45359
|
+
doc2.insertBefore(doctypeNode, doc2.firstChild);
|
|
45365
45360
|
}
|
|
45366
45361
|
doctypeNode.nodeValue = "!DOCTYPE";
|
|
45367
45362
|
doctypeNode["x-name"] = name;
|
|
45368
45363
|
doctypeNode["x-publicId"] = publicId;
|
|
45369
45364
|
doctypeNode["x-systemId"] = systemId;
|
|
45370
45365
|
},
|
|
45371
|
-
setDocumentMode(
|
|
45372
|
-
|
|
45366
|
+
setDocumentMode(doc2, mode) {
|
|
45367
|
+
doc2["x-mode"] = mode;
|
|
45373
45368
|
},
|
|
45374
|
-
getDocumentMode(
|
|
45375
|
-
return
|
|
45369
|
+
getDocumentMode(doc2) {
|
|
45370
|
+
return doc2["x-mode"];
|
|
45376
45371
|
},
|
|
45377
45372
|
detachNode(node) {
|
|
45378
45373
|
node.remove();
|
|
@@ -45548,9 +45543,9 @@ var jquery_default = (
|
|
|
45548
45543
|
nonce: true,
|
|
45549
45544
|
noModule: true
|
|
45550
45545
|
};
|
|
45551
|
-
function DOMEval(code, node,
|
|
45552
|
-
|
|
45553
|
-
var i2, script =
|
|
45546
|
+
function DOMEval(code, node, doc2) {
|
|
45547
|
+
doc2 = doc2 || document2;
|
|
45548
|
+
var i2, script = doc2.createElement("script");
|
|
45554
45549
|
script.text = code;
|
|
45555
45550
|
if (node) {
|
|
45556
45551
|
for (i2 in preservedScriptAttributes) {
|
|
@@ -45559,7 +45554,7 @@ var jquery_default = (
|
|
|
45559
45554
|
}
|
|
45560
45555
|
}
|
|
45561
45556
|
}
|
|
45562
|
-
|
|
45557
|
+
doc2.head.appendChild(script).parentNode.removeChild(script);
|
|
45563
45558
|
}
|
|
45564
45559
|
const jQuery = {};
|
|
45565
45560
|
var version = "4.0.0-pre+9352011a7.dirty +selector", rhtmlSuffix = /HTML$/i, jQueryOrig = function(selector, context) {
|
|
@@ -45696,8 +45691,8 @@ var jquery_default = (
|
|
|
45696
45691
|
},
|
|
45697
45692
|
// Evaluates a script in a provided context; falls back to the global one
|
|
45698
45693
|
// if not specified.
|
|
45699
|
-
globalEval: function(code, options,
|
|
45700
|
-
DOMEval(code, { nonce: options && options.nonce },
|
|
45694
|
+
globalEval: function(code, options, doc2) {
|
|
45695
|
+
DOMEval(code, { nonce: options && options.nonce }, doc2);
|
|
45701
45696
|
},
|
|
45702
45697
|
each: function(obj, callback) {
|
|
45703
45698
|
var length, i2 = 0;
|
|
@@ -46186,11 +46181,11 @@ var jquery_default = (
|
|
|
46186
46181
|
});
|
|
46187
46182
|
}
|
|
46188
46183
|
function setDocument(node) {
|
|
46189
|
-
var subWindow,
|
|
46190
|
-
if (
|
|
46184
|
+
var subWindow, doc2 = node ? node.ownerDocument || node : document2;
|
|
46185
|
+
if (doc2 == document$1 || doc2.nodeType !== 9) {
|
|
46191
46186
|
return;
|
|
46192
46187
|
}
|
|
46193
|
-
document$1 =
|
|
46188
|
+
document$1 = doc2;
|
|
46194
46189
|
documentElement$1 = document$1.documentElement;
|
|
46195
46190
|
documentIsHTML = !jQuery.isXMLDoc(document$1);
|
|
46196
46191
|
if (isIE && document2 != document$1 && (subWindow = document$1.defaultView) && subWindow.top !== subWindow) {
|
|
@@ -50535,10 +50530,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
50535
50530
|
}
|
|
50536
50531
|
createElement(tagName) {
|
|
50537
50532
|
if (tagName === "#document" /* DOCUMENT_NODE */) {
|
|
50538
|
-
const
|
|
50539
|
-
|
|
50540
|
-
|
|
50541
|
-
return
|
|
50533
|
+
const doc2 = new _MockDocument(false);
|
|
50534
|
+
doc2.nodeName = tagName;
|
|
50535
|
+
doc2.parentNode = null;
|
|
50536
|
+
return doc2;
|
|
50542
50537
|
}
|
|
50543
50538
|
return createElement(this, tagName);
|
|
50544
50539
|
}
|
|
@@ -50578,10 +50573,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
50578
50573
|
title.textContent = value;
|
|
50579
50574
|
}
|
|
50580
50575
|
};
|
|
50581
|
-
function resetDocument(
|
|
50582
|
-
if (
|
|
50583
|
-
resetEventListeners(
|
|
50584
|
-
const documentElement =
|
|
50576
|
+
function resetDocument(doc2) {
|
|
50577
|
+
if (doc2 != null) {
|
|
50578
|
+
resetEventListeners(doc2);
|
|
50579
|
+
const documentElement = doc2.documentElement;
|
|
50585
50580
|
if (documentElement != null) {
|
|
50586
50581
|
resetElement(documentElement);
|
|
50587
50582
|
for (let i = 0, ii = documentElement.childNodes.length; i < ii; i++) {
|
|
@@ -50590,25 +50585,25 @@ function resetDocument(doc) {
|
|
|
50590
50585
|
childNode.childNodes.length = 0;
|
|
50591
50586
|
}
|
|
50592
50587
|
}
|
|
50593
|
-
for (const key in
|
|
50594
|
-
if (
|
|
50595
|
-
delete
|
|
50588
|
+
for (const key in doc2) {
|
|
50589
|
+
if (doc2.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
|
|
50590
|
+
delete doc2[key];
|
|
50596
50591
|
}
|
|
50597
50592
|
}
|
|
50598
50593
|
try {
|
|
50599
|
-
|
|
50594
|
+
doc2.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
50600
50595
|
} catch (e) {
|
|
50601
50596
|
}
|
|
50602
50597
|
try {
|
|
50603
|
-
|
|
50598
|
+
doc2.nodeType = 9 /* DOCUMENT_NODE */;
|
|
50604
50599
|
} catch (e) {
|
|
50605
50600
|
}
|
|
50606
50601
|
try {
|
|
50607
|
-
|
|
50602
|
+
doc2.cookie = "";
|
|
50608
50603
|
} catch (e) {
|
|
50609
50604
|
}
|
|
50610
50605
|
try {
|
|
50611
|
-
|
|
50606
|
+
doc2.referrer = "";
|
|
50612
50607
|
} catch (e) {
|
|
50613
50608
|
}
|
|
50614
50609
|
}
|
|
@@ -50678,6 +50673,7 @@ var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
|
50678
50673
|
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
50679
50674
|
];
|
|
50680
50675
|
var win = typeof window !== "undefined" ? window : {};
|
|
50676
|
+
var doc = win.document || { head: {} };
|
|
50681
50677
|
var H = win.HTMLElement || class {
|
|
50682
50678
|
};
|
|
50683
50679
|
var supportsShadow = BUILD.shadowDom;
|
|
@@ -50811,14 +50807,14 @@ var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
|
50811
50807
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
50812
50808
|
|
|
50813
50809
|
// src/compiler/html/canonical-link.ts
|
|
50814
|
-
var updateCanonicalLink = (
|
|
50810
|
+
var updateCanonicalLink = (doc2, href) => {
|
|
50815
50811
|
var _a2;
|
|
50816
|
-
let canonicalLinkElm =
|
|
50812
|
+
let canonicalLinkElm = doc2.head.querySelector('link[rel="canonical"]');
|
|
50817
50813
|
if (typeof href === "string") {
|
|
50818
50814
|
if (canonicalLinkElm == null) {
|
|
50819
|
-
canonicalLinkElm =
|
|
50815
|
+
canonicalLinkElm = doc2.createElement("link");
|
|
50820
50816
|
canonicalLinkElm.setAttribute("rel", "canonical");
|
|
50821
|
-
|
|
50817
|
+
doc2.head.appendChild(canonicalLinkElm);
|
|
50822
50818
|
}
|
|
50823
50819
|
canonicalLinkElm.setAttribute("href", href);
|
|
50824
50820
|
} else {
|
|
@@ -50832,11 +50828,11 @@ var updateCanonicalLink = (doc, href) => {
|
|
|
50832
50828
|
};
|
|
50833
50829
|
|
|
50834
50830
|
// src/compiler/html/relocate-meta-charset.ts
|
|
50835
|
-
var relocateMetaCharset = (
|
|
50836
|
-
const head =
|
|
50831
|
+
var relocateMetaCharset = (doc2) => {
|
|
50832
|
+
const head = doc2.head;
|
|
50837
50833
|
let charsetElm = head.querySelector("meta[charset]");
|
|
50838
50834
|
if (charsetElm == null) {
|
|
50839
|
-
charsetElm =
|
|
50835
|
+
charsetElm = doc2.createElement("meta");
|
|
50840
50836
|
charsetElm.setAttribute("charset", "utf-8");
|
|
50841
50837
|
} else {
|
|
50842
50838
|
charsetElm.remove();
|
|
@@ -51111,13 +51107,13 @@ var parseCss = (css, filePath) => {
|
|
|
51111
51107
|
const m = match(/^@([-\w]+)?document *([^{]+)/);
|
|
51112
51108
|
if (!m) return null;
|
|
51113
51109
|
const vendor = trim(m[1]);
|
|
51114
|
-
const
|
|
51110
|
+
const doc2 = trim(m[2]);
|
|
51115
51111
|
if (!open()) return error(`@document missing '{'`);
|
|
51116
51112
|
const style = comments().concat(rules());
|
|
51117
51113
|
if (!close()) return error(`@document missing '}'`);
|
|
51118
51114
|
return pos({
|
|
51119
51115
|
type: 3 /* Document */,
|
|
51120
|
-
document:
|
|
51116
|
+
document: doc2,
|
|
51121
51117
|
vendor,
|
|
51122
51118
|
rules: style
|
|
51123
51119
|
});
|
|
@@ -51443,11 +51439,11 @@ var serializeCssPage = (opts, node) => {
|
|
|
51443
51439
|
};
|
|
51444
51440
|
var serializeCssDocument = (opts, node) => {
|
|
51445
51441
|
const documentCss = serializeCssMapVisit(opts, node.rules);
|
|
51446
|
-
const
|
|
51442
|
+
const doc2 = "@" + (node.vendor || "") + "document " + node.document;
|
|
51447
51443
|
if (documentCss === "") {
|
|
51448
51444
|
return "";
|
|
51449
51445
|
}
|
|
51450
|
-
return
|
|
51446
|
+
return doc2 + "{" + documentCss + "}";
|
|
51451
51447
|
};
|
|
51452
51448
|
var serializeCssMapVisit = (opts, nodes) => {
|
|
51453
51449
|
let rtn = "";
|
|
@@ -51545,12 +51541,12 @@ var collectUsedSelectors = (usedSelectors, elm) => {
|
|
|
51545
51541
|
};
|
|
51546
51542
|
|
|
51547
51543
|
// src/compiler/html/remove-unused-styles.ts
|
|
51548
|
-
var removeUnusedStyles = (
|
|
51544
|
+
var removeUnusedStyles = (doc2, diagnostics) => {
|
|
51549
51545
|
try {
|
|
51550
|
-
const styleElms =
|
|
51546
|
+
const styleElms = doc2.head.querySelectorAll(`style[data-styles]`);
|
|
51551
51547
|
const styleLen = styleElms.length;
|
|
51552
51548
|
if (styleLen > 0) {
|
|
51553
|
-
const usedSelectors = getUsedSelectors(
|
|
51549
|
+
const usedSelectors = getUsedSelectors(doc2.documentElement);
|
|
51554
51550
|
for (let i = 0; i < styleLen; i++) {
|
|
51555
51551
|
removeUnusedStyleText(usedSelectors, diagnostics, styleElms[i]);
|
|
51556
51552
|
}
|
|
@@ -51683,41 +51679,41 @@ function collectAttributes(node) {
|
|
|
51683
51679
|
var SKIP_ATTRS = /* @__PURE__ */ new Set(["s-id", "c-id"]);
|
|
51684
51680
|
|
|
51685
51681
|
// src/hydrate/runner/patch-dom-implementation.ts
|
|
51686
|
-
function patchDomImplementation(
|
|
51682
|
+
function patchDomImplementation(doc2, opts) {
|
|
51687
51683
|
let win2;
|
|
51688
|
-
if (
|
|
51684
|
+
if (doc2.defaultView != null) {
|
|
51689
51685
|
opts.destroyWindow = true;
|
|
51690
|
-
patchWindow(
|
|
51691
|
-
win2 =
|
|
51686
|
+
patchWindow(doc2.defaultView);
|
|
51687
|
+
win2 = doc2.defaultView;
|
|
51692
51688
|
} else {
|
|
51693
51689
|
opts.destroyWindow = true;
|
|
51694
51690
|
opts.destroyDocument = false;
|
|
51695
51691
|
win2 = new MockWindow(false);
|
|
51696
51692
|
}
|
|
51697
|
-
if (win2.document !==
|
|
51698
|
-
win2.document =
|
|
51693
|
+
if (win2.document !== doc2) {
|
|
51694
|
+
win2.document = doc2;
|
|
51699
51695
|
}
|
|
51700
|
-
if (
|
|
51701
|
-
|
|
51696
|
+
if (doc2.defaultView !== win2) {
|
|
51697
|
+
doc2.defaultView = win2;
|
|
51702
51698
|
}
|
|
51703
|
-
const HTMLElement2 =
|
|
51699
|
+
const HTMLElement2 = doc2.documentElement.constructor.prototype;
|
|
51704
51700
|
if (typeof HTMLElement2.getRootNode !== "function") {
|
|
51705
|
-
const elm =
|
|
51701
|
+
const elm = doc2.createElement("unknown-element");
|
|
51706
51702
|
const HTMLUnknownElement = elm.constructor.prototype;
|
|
51707
51703
|
HTMLUnknownElement.getRootNode = getRootNode;
|
|
51708
51704
|
}
|
|
51709
|
-
if (typeof
|
|
51710
|
-
const CustomEvent2 =
|
|
51705
|
+
if (typeof doc2.createEvent === "function") {
|
|
51706
|
+
const CustomEvent2 = doc2.createEvent("CustomEvent").constructor;
|
|
51711
51707
|
if (win2.CustomEvent !== CustomEvent2) {
|
|
51712
51708
|
win2.CustomEvent = CustomEvent2;
|
|
51713
51709
|
}
|
|
51714
51710
|
}
|
|
51715
51711
|
try {
|
|
51716
|
-
win2.__stencil_baseURI =
|
|
51712
|
+
win2.__stencil_baseURI = doc2.baseURI;
|
|
51717
51713
|
} catch (e) {
|
|
51718
|
-
Object.defineProperty(
|
|
51714
|
+
Object.defineProperty(doc2, "baseURI", {
|
|
51719
51715
|
get() {
|
|
51720
|
-
const baseElm =
|
|
51716
|
+
const baseElm = doc2.querySelector("base[href]");
|
|
51721
51717
|
if (baseElm) {
|
|
51722
51718
|
return new URL(baseElm.getAttribute("href"), win2.location.href).href;
|
|
51723
51719
|
}
|
|
@@ -51928,7 +51924,7 @@ var docData = {
|
|
|
51928
51924
|
rootLevelIds: 0,
|
|
51929
51925
|
staticComponents: /* @__PURE__ */ new Set()
|
|
51930
51926
|
};
|
|
51931
|
-
function initializeWindow(win2,
|
|
51927
|
+
function initializeWindow(win2, doc2, opts, results) {
|
|
51932
51928
|
if (typeof opts.url === "string") {
|
|
51933
51929
|
try {
|
|
51934
51930
|
win2.location.href = opts.url;
|
|
@@ -51943,31 +51939,31 @@ function initializeWindow(win2, doc, opts, results) {
|
|
|
51943
51939
|
}
|
|
51944
51940
|
if (typeof opts.cookie === "string") {
|
|
51945
51941
|
try {
|
|
51946
|
-
|
|
51942
|
+
doc2.cookie = opts.cookie;
|
|
51947
51943
|
} catch (e) {
|
|
51948
51944
|
}
|
|
51949
51945
|
}
|
|
51950
51946
|
if (typeof opts.referrer === "string") {
|
|
51951
51947
|
try {
|
|
51952
|
-
|
|
51948
|
+
doc2.referrer = opts.referrer;
|
|
51953
51949
|
} catch (e) {
|
|
51954
51950
|
}
|
|
51955
51951
|
}
|
|
51956
51952
|
if (typeof opts.direction === "string") {
|
|
51957
51953
|
try {
|
|
51958
|
-
|
|
51954
|
+
doc2.documentElement.setAttribute("dir", opts.direction);
|
|
51959
51955
|
} catch (e) {
|
|
51960
51956
|
}
|
|
51961
51957
|
}
|
|
51962
51958
|
if (typeof opts.language === "string") {
|
|
51963
51959
|
try {
|
|
51964
|
-
|
|
51960
|
+
doc2.documentElement.setAttribute("lang", opts.language);
|
|
51965
51961
|
} catch (e) {
|
|
51966
51962
|
}
|
|
51967
51963
|
}
|
|
51968
51964
|
if (typeof opts.buildId === "string") {
|
|
51969
51965
|
try {
|
|
51970
|
-
|
|
51966
|
+
doc2.documentElement.setAttribute("data-stencil-build", opts.buildId);
|
|
51971
51967
|
} catch (e) {
|
|
51972
51968
|
}
|
|
51973
51969
|
}
|
|
@@ -51979,7 +51975,7 @@ function initializeWindow(win2, doc, opts, results) {
|
|
|
51979
51975
|
constrainTimeouts(win2);
|
|
51980
51976
|
}
|
|
51981
51977
|
runtimeLogging(win2, opts, results);
|
|
51982
|
-
|
|
51978
|
+
doc2[STENCIL_DOC_DATA] = docData;
|
|
51983
51979
|
return win2;
|
|
51984
51980
|
}
|
|
51985
51981
|
|
|
@@ -51997,18 +51993,18 @@ function renderToString(html, options, asStream) {
|
|
|
51997
51993
|
opts.constrainTimeouts = false;
|
|
51998
51994
|
return hydrateDocument(html, opts, asStream);
|
|
51999
51995
|
}
|
|
52000
|
-
function hydrateDocument(
|
|
51996
|
+
function hydrateDocument(doc2, options, asStream) {
|
|
52001
51997
|
const opts = normalizeHydrateOptions(options);
|
|
52002
51998
|
let win2 = null;
|
|
52003
51999
|
const results = generateHydrateResults(opts);
|
|
52004
52000
|
if (hasError(results.diagnostics)) {
|
|
52005
52001
|
return Promise.resolve(results);
|
|
52006
52002
|
}
|
|
52007
|
-
if (typeof
|
|
52003
|
+
if (typeof doc2 === "string") {
|
|
52008
52004
|
try {
|
|
52009
52005
|
opts.destroyWindow = true;
|
|
52010
52006
|
opts.destroyDocument = true;
|
|
52011
|
-
win2 = new MockWindow(
|
|
52007
|
+
win2 = new MockWindow(doc2);
|
|
52012
52008
|
if (!asStream) {
|
|
52013
52009
|
return render(win2, opts, results).then(() => results);
|
|
52014
52010
|
}
|
|
@@ -52022,10 +52018,10 @@ function hydrateDocument(doc, options, asStream) {
|
|
|
52022
52018
|
return Promise.resolve(results);
|
|
52023
52019
|
}
|
|
52024
52020
|
}
|
|
52025
|
-
if (isValidDocument(
|
|
52021
|
+
if (isValidDocument(doc2)) {
|
|
52026
52022
|
try {
|
|
52027
52023
|
opts.destroyDocument = false;
|
|
52028
|
-
win2 = patchDomImplementation(
|
|
52024
|
+
win2 = patchDomImplementation(doc2, opts);
|
|
52029
52025
|
if (!asStream) {
|
|
52030
52026
|
return render(win2, opts, results).then(() => results);
|
|
52031
52027
|
}
|
|
@@ -52082,41 +52078,41 @@ async function afterHydrate(win2, opts, results, resolve) {
|
|
|
52082
52078
|
return resolve(finalizeHydrate(win2, win2.document, opts, results));
|
|
52083
52079
|
}
|
|
52084
52080
|
}
|
|
52085
|
-
function finalizeHydrate(win2,
|
|
52081
|
+
function finalizeHydrate(win2, doc2, opts, results) {
|
|
52086
52082
|
try {
|
|
52087
|
-
inspectElement(results,
|
|
52083
|
+
inspectElement(results, doc2.documentElement, 0);
|
|
52088
52084
|
if (opts.removeUnusedStyles !== false) {
|
|
52089
52085
|
try {
|
|
52090
|
-
removeUnusedStyles(
|
|
52086
|
+
removeUnusedStyles(doc2, results.diagnostics);
|
|
52091
52087
|
} catch (e) {
|
|
52092
52088
|
renderCatchError(results, e);
|
|
52093
52089
|
}
|
|
52094
52090
|
}
|
|
52095
52091
|
if (typeof opts.title === "string") {
|
|
52096
52092
|
try {
|
|
52097
|
-
|
|
52093
|
+
doc2.title = opts.title;
|
|
52098
52094
|
} catch (e) {
|
|
52099
52095
|
renderCatchError(results, e);
|
|
52100
52096
|
}
|
|
52101
52097
|
}
|
|
52102
|
-
results.title =
|
|
52098
|
+
results.title = doc2.title;
|
|
52103
52099
|
if (opts.removeScripts) {
|
|
52104
|
-
removeScripts(
|
|
52100
|
+
removeScripts(doc2.documentElement);
|
|
52105
52101
|
}
|
|
52106
52102
|
try {
|
|
52107
|
-
updateCanonicalLink(
|
|
52103
|
+
updateCanonicalLink(doc2, opts.canonicalUrl);
|
|
52108
52104
|
} catch (e) {
|
|
52109
52105
|
renderCatchError(results, e);
|
|
52110
52106
|
}
|
|
52111
52107
|
try {
|
|
52112
|
-
relocateMetaCharset(
|
|
52108
|
+
relocateMetaCharset(doc2);
|
|
52113
52109
|
} catch (e) {
|
|
52114
52110
|
}
|
|
52115
52111
|
if (!hasError(results.diagnostics)) {
|
|
52116
52112
|
results.httpStatus = 200;
|
|
52117
52113
|
}
|
|
52118
52114
|
try {
|
|
52119
|
-
const metaStatus =
|
|
52115
|
+
const metaStatus = doc2.head.querySelector('meta[http-equiv="status"]');
|
|
52120
52116
|
if (metaStatus != null) {
|
|
52121
52117
|
const metaStatusContent = metaStatus.getAttribute("content");
|
|
52122
52118
|
if (metaStatusContent && metaStatusContent.length > 0) {
|
|
@@ -52126,25 +52122,25 @@ function finalizeHydrate(win2, doc, opts, results) {
|
|
|
52126
52122
|
} catch (e) {
|
|
52127
52123
|
}
|
|
52128
52124
|
if (opts.clientHydrateAnnotations) {
|
|
52129
|
-
|
|
52125
|
+
doc2.documentElement.classList.add("hydrated");
|
|
52130
52126
|
}
|
|
52131
52127
|
if (opts.serializeToHtml) {
|
|
52132
|
-
results.html = serializeDocumentToString(
|
|
52128
|
+
results.html = serializeDocumentToString(doc2, opts);
|
|
52133
52129
|
}
|
|
52134
52130
|
} catch (e) {
|
|
52135
52131
|
renderCatchError(results, e);
|
|
52136
52132
|
}
|
|
52137
|
-
destroyWindow(win2,
|
|
52133
|
+
destroyWindow(win2, doc2, opts, results);
|
|
52138
52134
|
return results;
|
|
52139
52135
|
}
|
|
52140
|
-
function destroyWindow(win2,
|
|
52136
|
+
function destroyWindow(win2, doc2, opts, results) {
|
|
52141
52137
|
if (!opts.destroyWindow) {
|
|
52142
52138
|
return;
|
|
52143
52139
|
}
|
|
52144
52140
|
try {
|
|
52145
52141
|
if (!opts.destroyDocument) {
|
|
52146
52142
|
win2.document = null;
|
|
52147
|
-
|
|
52143
|
+
doc2.defaultView = null;
|
|
52148
52144
|
}
|
|
52149
52145
|
if (win2.close) {
|
|
52150
52146
|
win2.close();
|
|
@@ -52153,8 +52149,8 @@ function destroyWindow(win2, doc, opts, results) {
|
|
|
52153
52149
|
renderCatchError(results, e);
|
|
52154
52150
|
}
|
|
52155
52151
|
}
|
|
52156
|
-
function serializeDocumentToString(
|
|
52157
|
-
return serializeNodeToHtml(
|
|
52152
|
+
function serializeDocumentToString(doc2, opts) {
|
|
52153
|
+
return serializeNodeToHtml(doc2, {
|
|
52158
52154
|
approximateLineWidth: opts.approximateLineWidth,
|
|
52159
52155
|
outerHtml: false,
|
|
52160
52156
|
prettyHtml: opts.prettyHtml,
|
|
@@ -52166,8 +52162,8 @@ function serializeDocumentToString(doc, opts) {
|
|
|
52166
52162
|
fullDocument: opts.fullDocument
|
|
52167
52163
|
});
|
|
52168
52164
|
}
|
|
52169
|
-
function isValidDocument(
|
|
52170
|
-
return
|
|
52165
|
+
function isValidDocument(doc2) {
|
|
52166
|
+
return doc2 != null && doc2.nodeType === 9 && doc2.documentElement != null && doc2.documentElement.nodeType === 1 && doc2.body != null && doc2.body.nodeType === 1;
|
|
52171
52167
|
}
|
|
52172
52168
|
function removeScripts(elm) {
|
|
52173
52169
|
const children = elm.children;
|