@roadtrip/components 3.52.0 → 3.53.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-alert.cjs.entry.js +1 -1
- package/dist/cjs/road-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/road-badge_14.cjs.entry.js +62 -12
- package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
- package/dist/cjs/road-card.cjs.entry.js +12 -2
- package/dist/cjs/road-card.cjs.entry.js.map +1 -1
- package/dist/cjs/road-progress.cjs.entry.js +1 -1
- package/dist/cjs/road-progress.cjs.entry.js.map +1 -1
- package/dist/cjs/road-toast.cjs.entry.js +66 -16
- package/dist/cjs/road-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/roadtrip.cjs.js +1 -1
- package/dist/collection/components/alert/alert.css +5 -1
- package/dist/collection/components/card/card.css +10 -0
- package/dist/collection/components/card/card.js +31 -1
- package/dist/collection/components/card/card.js.map +1 -1
- package/dist/collection/components/card/card.stories.js +16 -0
- package/dist/collection/components/counter/counter.js +128 -2
- package/dist/collection/components/counter/counter.js.map +1 -1
- package/dist/collection/components/counter/counter.stories.js +36 -0
- package/dist/collection/components/drawer/drawer.css +44 -6
- package/dist/collection/components/drawer/drawer.js +23 -10
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/progress/progress.css +2 -1
- package/dist/collection/components/toast/toast.css +20 -1
- package/dist/collection/components/toast/toast.js +68 -14
- package/dist/collection/components/toast/toast.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/road-alert.entry.js +1 -1
- package/dist/esm/road-alert.entry.js.map +1 -1
- package/dist/esm/road-badge_14.entry.js +62 -12
- package/dist/esm/road-badge_14.entry.js.map +1 -1
- package/dist/esm/road-card.entry.js +12 -2
- package/dist/esm/road-card.entry.js.map +1 -1
- package/dist/esm/road-progress.entry.js +1 -1
- package/dist/esm/road-progress.entry.js.map +1 -1
- package/dist/esm/road-toast.entry.js +66 -16
- package/dist/esm/road-toast.entry.js.map +1 -1
- package/dist/esm/roadtrip.js +1 -1
- package/dist/html.html-data.json +28 -0
- package/dist/roadtrip/p-12f2b114.entry.js +2 -0
- package/dist/roadtrip/p-12f2b114.entry.js.map +1 -0
- package/dist/roadtrip/p-27dea4d1.entry.js +18 -0
- package/dist/roadtrip/p-27dea4d1.entry.js.map +1 -0
- package/dist/roadtrip/p-3444d6fe.entry.js +2 -0
- package/dist/roadtrip/p-3444d6fe.entry.js.map +1 -0
- package/dist/roadtrip/p-ad2f2c53.entry.js +2 -0
- package/dist/roadtrip/p-ad2f2c53.entry.js.map +1 -0
- package/dist/roadtrip/p-f94214a1.entry.js +2 -0
- package/dist/roadtrip/p-f94214a1.entry.js.map +1 -0
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/roadtrip/roadtrip.esm.js.map +1 -1
- package/dist/types/components/card/card.d.ts +6 -0
- package/dist/types/components/counter/counter.d.ts +20 -0
- package/dist/types/components/drawer/drawer.d.ts +5 -0
- package/dist/types/components/toast/toast.d.ts +12 -0
- package/dist/types/components.d.ts +80 -0
- package/hydrate/index.js +252 -131
- package/hydrate/index.mjs +252 -131
- package/package.json +1 -1
- package/dist/roadtrip/p-23b0d708.entry.js +0 -2
- package/dist/roadtrip/p-23b0d708.entry.js.map +0 -1
- package/dist/roadtrip/p-2fef9c0f.entry.js +0 -18
- package/dist/roadtrip/p-2fef9c0f.entry.js.map +0 -1
- package/dist/roadtrip/p-3646f072.entry.js +0 -2
- package/dist/roadtrip/p-3646f072.entry.js.map +0 -1
- package/dist/roadtrip/p-4bbe3312.entry.js +0 -2
- package/dist/roadtrip/p-4bbe3312.entry.js.map +0 -1
- package/dist/roadtrip/p-8630081f.entry.js +0 -2
- package/dist/roadtrip/p-8630081f.entry.js.map +0 -1
package/hydrate/index.js
CHANGED
|
@@ -3205,7 +3205,7 @@ class Accordion {
|
|
|
3205
3205
|
const accordionLightContent = this.isLight ? 'accordion-content accordion-light-content' : 'accordion-content';
|
|
3206
3206
|
const accordionLightSeparator = this.isLightSeparator ? 'accordion accordion-light accordion-light--border' : 'accordion';
|
|
3207
3207
|
const accordionSmall = this.isSmall ? 'accordion accordion-light accordion-light--small' : 'accordion';
|
|
3208
|
-
return (hAsync("details", { key: '
|
|
3208
|
+
return (hAsync("details", { key: 'fd8981f6305596574853ba3bf5562515a2fa7797', class: `${accordionLight} ${accordionSmall} ${accordionLightSeparator}`, open: this.isOpen }, hAsync("summary", { key: '5c684a15e26850e869780576ff92561725ffaa17', class: "accordion-trigger", "aria-expanded": `${this.isOpen}`, tabindex: "0", role: "button", onClick: this.onClick }, hAsync("div", { key: 'df632939bd5306d6e0c8fd31efd8d63e3099d982', class: accordionLightHeader }, hAsync("slot", { key: '6856127e4930e34e9f7bcd46e6f07867feb65c7f', name: "icon-left" }), hAsync("slot", { key: '55220b0f53b62a4f3e9f338c3102213e92413615', name: "header" }), hAsync("road-icon", { key: '1025256a4bc638f4ba41208643dbe33a3ffec006', class: "accordion-arrow", icon: navigationChevron }))), hAsync("div", { key: '805d9c5576f2386edf56e3aa685daeb72cf74592', class: accordionLightContent }, hAsync("slot", { key: '2dd818dd7e6a92f3c5ddb30ed4dac4c6a5d797d0' }))));
|
|
3209
3209
|
}
|
|
3210
3210
|
static get style() { return RoadAccordionStyle0; }
|
|
3211
3211
|
static get cmpMeta() { return {
|
|
@@ -3223,7 +3223,7 @@ class Accordion {
|
|
|
3223
3223
|
}; }
|
|
3224
3224
|
}
|
|
3225
3225
|
|
|
3226
|
-
const alertCss = ":host{position:relative;display:flex;align-items:flex-start;padding:0.5rem 1rem 0.5rem 0.5rem;font-family:var(--road-font, sans-serif);font-size:var(--road-body-medium);line-height:1.25;color:var(--road-on-surface);border:1px solid transparent;border-radius:0.25rem}.alert-icon{flex-shrink:0;width:2rem;height:2rem;margin-right:0.5rem}.alert-title{margin:var(--road-spacing-
|
|
3226
|
+
const alertCss = ":host{position:relative;display:flex;align-items:flex-start;padding:0.5rem 1rem 0.5rem 0.5rem;font-family:var(--road-font, sans-serif);font-size:var(--road-body-medium);line-height:1.25;color:var(--road-on-surface);border:1px solid transparent;border-radius:0.25rem}.alert-icon{flex-shrink:0;width:2rem;height:2rem;margin-right:0.5rem}.alert-title{margin-bottom:var(--road-spacing-03);display:block;font-weight:700}.alert-container{position:relative;display:flex;align-items:start;justify-content:space-between;width:100%;flex-direction:column}.alert-container-content{margin-top:var(--road-spacing-02)}.alert-container-horizontal{position:relative;display:flex;align-items:start;justify-content:space-between;width:100%;flex-direction:row}.alert-link{display:block;margin:0;margin:var(--road-spacing-03) 0 0;color:var(--road-on-surface);text-decoration:underline}.alert-description{margin:0}.btn-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;justify-content:center;margin-top:var(--road-spacing-03)}.btn-container.justify-end{padding-top:var(--road-spacing-07);justify-content:end}.alert-button{margin-left:var(--road-spacing-07)}.alert-close{display:flex;position:absolute;top:0;right:0;align-items:center;justify-content:center;padding:0;font-weight:700;color:inherit;cursor:pointer;background:transparent;border:0;appearance:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}:host(.alert-info){color:var(--road-on-info-surface);background:var(--road-info-surface);border-color:var(--road-info-outline)}:host(.alert-info) ::slotted(road-icon){fill:var(--road-info-default)}:host(.alert-info) ::slotted(road-button){display:block;margin:0.375rem 0 0;color:var(--road-on-info-surface-inverse);background:var(--road-info-surface-inverse);fill:var(--road-on-info-surface-inverse)}:host(.alert-info) .alert-link{color:var(--road-on-info-surface)}:host(.alert-success){color:var(--road-on-success-surface);background:var(--road-success-surface);border-color:var(--road-success-outline)}:host(.alert-success) ::slotted(road-icon){fill:var(--road-success-icon)}:host(.alert-success) ::slotted(road-button){display:block;margin:0.375rem 0 0;color:var(--road-on-success-surface-inverse);background:var(--road-success-surface-inverse);fill:var(--road-on-success-surface-inverse)}:host(.alert-success) .alert-link{color:var(--road-on-success-surface)}:host(.alert-warning){color:var(--road-on-warning-surface);background:var(--road-warning-surface);border-color:var(--road-warning-outline)}:host(.alert-warning) ::slotted(road-icon){fill:var(--road-warning-icon)}:host(.alert-warning) ::slotted(road-button){display:block;margin:0.375rem 0 0;color:var(--road-on-warning-surface-inverse);background:var(--road-warning-surface-inverse);fill:var(--road-on-warning-surface-inverse)}:host(.alert-warning) .alert-link{color:var(--road-on-warning-surface)}:host(.alert-danger){color:var(--road-on-danger-surface);background:var(--road-danger-surface);border-color:var(--road-danger-outline)}:host(.alert-danger) ::slotted(road-icon){fill:var(--road-danger-icon)}:host(.alert-danger) ::slotted(road-button){display:block;margin:0.375rem 0 0;color:var(--road-on-danger-surface-inverse);background:var(--road-danger-surface-inverse);fill:var(--road-on-danger-surface-inverse)}:host(.alert-danger) .alert-link{color:var(--road-on-danger-surface)}";
|
|
3227
3227
|
var RoadAlertStyle0 = alertCss;
|
|
3228
3228
|
|
|
3229
3229
|
/**
|
|
@@ -3300,7 +3300,7 @@ class Alert {
|
|
|
3300
3300
|
const btnContainerClass = this.hasCloseIcon ? 'btn-container justify-end' : 'btn-container';
|
|
3301
3301
|
const hasButtonSlot = !!((_a = this.el) === null || _a === void 0 ? void 0 : _a.querySelector('[slot="button"]'));
|
|
3302
3302
|
const closeIconElement = this.hasCloseIcon ? (hAsync("button", { type: "button", class: "alert-close", onClick: this.onClick, "aria-label": "Close" }, hAsync("road-icon", { icon: navigationClose, "aria-hidden": "true" }))) : null;
|
|
3303
|
-
return (hAsync(Host, { key: '
|
|
3303
|
+
return (hAsync(Host, { key: '8d3a9861d6730b760dddbe139d4699c47f86c0dd', class: colorClass, role: "alert" }, hAsync("div", { key: '5fdfef650a881a81eb80cd50084a057998ad3142', class: "alert-icon" }, hAsync("slot", { key: '7f293b58bfc1c5f1e0e260c65b788f4775ee76f5', name: "icon" })), hAsync("div", { key: 'c5fc641ba70ae081d17b63c8c1e7cc984ceb9899', class: layoutClass }, hAsync("div", { key: '8def3477a32cf1bbcff10a381d9d5d30abe9366a', class: "alert-container-content" }, this.label && hAsync("span", { key: '124e6feedb257a57f1c05c71d5f574c33756d9b2', class: "alert-title d-block" }, this.label), hAsync("p", { key: '1a521139001b804063aa671dccd75f3a01a6572e', class: "alert-description" }, hAsync("slot", { key: 'b7fb28b90e82c652a10003cd81d1eacd5df88a69' })), this.link && hAsync("a", { key: 'a44aa92a4e967557fe3720f412990671233f2b5d', href: this.url, class: "alert-link link link-default" }, this.link)), hasButtonSlot && (hAsync("div", { key: '1c93117e833c8f4ab3bfb1ff8781884013fc6d6a', class: btnContainerClass }, hAsync("slot", { key: '1dc9b845c22754a2fa6ed6673a27de14b8037c2f', name: "button" }))), closeIconElement)));
|
|
3304
3304
|
}
|
|
3305
3305
|
get el() { return getElement(this); }
|
|
3306
3306
|
static get style() { return RoadAlertStyle0; }
|
|
@@ -3405,7 +3405,7 @@ class Asset {
|
|
|
3405
3405
|
}
|
|
3406
3406
|
}
|
|
3407
3407
|
render() {
|
|
3408
|
-
return (hAsync(Host, { key: '
|
|
3408
|
+
return (hAsync(Host, { key: '8e7995b04221aaba4ec62613eb00bfdd32ca751d', "aria-hidden": "true", role: "img" }, ((this.assetSvgContent !== '')
|
|
3409
3409
|
? hAsync("div", { class: "icon-inner", innerHTML: this.assetSvgContent })
|
|
3410
3410
|
: hAsync("div", { class: "icon-inner" }))));
|
|
3411
3411
|
}
|
|
@@ -3475,8 +3475,8 @@ class Autocomplete {
|
|
|
3475
3475
|
}
|
|
3476
3476
|
}
|
|
3477
3477
|
render() {
|
|
3478
|
-
return (hAsync(Host, { key: '
|
|
3479
|
-
hAsync("ul", { key: '
|
|
3478
|
+
return (hAsync(Host, { key: 'a29547f605ff876affeb62d0c97cfc91fd78953e' }, hAsync("slot", { key: '7e230540ae914c49eca145abe87b4c7909236b5f' }), this.visible && this.options.length > 0 &&
|
|
3479
|
+
hAsync("ul", { key: '9d653f372a438d224812091aada89874a9255fe6', 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))))));
|
|
3480
3480
|
}
|
|
3481
3481
|
get el() { return getElement(this); }
|
|
3482
3482
|
static get style() { return RoadAutocompleteStyle0; }
|
|
@@ -3509,7 +3509,7 @@ class Avatar {
|
|
|
3509
3509
|
}
|
|
3510
3510
|
render() {
|
|
3511
3511
|
const sizeClass = this.size !== undefined ? `avatar-${this.size}` : '';
|
|
3512
|
-
return (hAsync(Host, { key: '
|
|
3512
|
+
return (hAsync(Host, { key: '7f884ebfae4a22966a5881e427f4b9faa3999553', class: `${sizeClass}` }, hAsync("slot", { key: '761a06284dcd0b89047c7b487b949f621fe87b24' })));
|
|
3513
3513
|
}
|
|
3514
3514
|
static get style() { return RoadAvatarStyle0; }
|
|
3515
3515
|
static get cmpMeta() { return {
|
|
@@ -3550,7 +3550,7 @@ class Badge {
|
|
|
3550
3550
|
const colorClass = this.color !== undefined ? `badge-${this.color}` : '';
|
|
3551
3551
|
const bubbleClass = this.bubble ? 'badge-bubble' : '';
|
|
3552
3552
|
const sizeClass = this.size !== undefined ? `badge-${this.size}` : '';
|
|
3553
|
-
return (hAsync(Host, { key: '
|
|
3553
|
+
return (hAsync(Host, { key: '6d46358940e3023bd25eb5aa5cce7b0bb2bc3f51', class: `${colorClass} ${bubbleClass} ${sizeClass}` }, hAsync("slot", { key: '766b5ce1dcc35847374722bbf61528254a53fa07' })));
|
|
3554
3554
|
}
|
|
3555
3555
|
static get style() { return RoadBadgeStyle0; }
|
|
3556
3556
|
static get cmpMeta() { return {
|
|
@@ -3600,7 +3600,7 @@ class Banner {
|
|
|
3600
3600
|
}
|
|
3601
3601
|
render() {
|
|
3602
3602
|
const bannerIsOpenClass = this.isOpen ? 'banner-open' : '';
|
|
3603
|
-
return (hAsync(Host, { key: '
|
|
3603
|
+
return (hAsync(Host, { key: '1ec389ef2766a2ce86c8e3f985c72f024931f5d9', class: bannerIsOpenClass }, hAsync("div", { key: '494f507a78b4b516a334fdcd9ff912a49e728cb9' }, hAsync("span", { key: '885b9f5feee40df84c83e3c27130ad074b50c901', class: "banner-open-label" }, this.label), this.link && hAsync("a", { key: '819c55d5ce00a26ab9ce50ebb91abb29ea7af358', href: this.url, class: "banner-open-link" }, this.link), hAsync("button", { key: 'a9d241791c04a22ca194a3311294ad8a40f535dc', type: "button", class: "banner-close", onClick: this.onClick, "aria-label": "closed" }, hAsync("road-icon", { key: '36a068e5a2fd412a4f6de394dc55d9797a783824', icon: navigationClose, size: "md" })))));
|
|
3604
3604
|
}
|
|
3605
3605
|
static get style() { return RoadBannerStyle0; }
|
|
3606
3606
|
static get cmpMeta() { return {
|
|
@@ -3711,7 +3711,7 @@ class Button$2 {
|
|
|
3711
3711
|
const expandClass = this.expand ? 'btn-block' : '';
|
|
3712
3712
|
const iconOnlyClass = this.iconOnly ? 'btn-icon' : '';
|
|
3713
3713
|
const inverseClass = this.inverse ? 'btn-inverse' : '';
|
|
3714
|
-
return (hAsync(Host, { key: '
|
|
3714
|
+
return (hAsync(Host, { key: 'c8075b55e02931572795b61df96506d35ecbbbaf', class: [colorClass, sizeClass, expandClass, iconOnlyClass, inverseClass].filter(Boolean).join(' '), onClick: this.onClick, "aria-disabled": disabled ? 'true' : null }, hAsync(TagType, Object.assign({ key: 'a1c5f09a0a0d9047f6bf301e57f1e2adacf9e845' }, attrs, { class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur }), hAsync("slot", { key: 'b9aa9d91ebc828aa679cec1d31a909e255f3ecae', name: "start" }), hAsync("slot", { key: '0291b0982593e7781bdc24e0d09ef20e7e1c3216' }), hAsync("slot", { key: 'fa17ccbe699eed853161fd2694ea970a14ae86c7', name: "end" }))));
|
|
3715
3715
|
}
|
|
3716
3716
|
get el() { return getElement(this); }
|
|
3717
3717
|
static get style() { return RoadButtonStyle0; }
|
|
@@ -3800,7 +3800,7 @@ class Button$1 {
|
|
|
3800
3800
|
render() {
|
|
3801
3801
|
const TagType = 'button';
|
|
3802
3802
|
const outlineClass = this.outline ? 'btn-outline' : 'btn-default';
|
|
3803
|
-
return (hAsync(Host, { key: '
|
|
3803
|
+
return (hAsync(Host, { key: '520a43690adcea3ff9c2e0a8549bafc0cbee20b7', onClick: this.onClick, class: [outlineClass].filter(Boolean).join(' '), "aria-disabled": this.disabled ? 'true' : null }, hAsync(TagType, { key: 'ec23eb063517b6eb9052ea3d9d972202326d06f7', class: "button-native", part: "native", disabled: this.disabled, onFocus: this.onFocus, onBlur: this.onBlur }, hAsync("slot", { key: '4b25d8f31f25539a3bb4b8ff619e35edfedbf6cb' }))));
|
|
3804
3804
|
}
|
|
3805
3805
|
get el() { return getElement(this); }
|
|
3806
3806
|
static get style() { return RoadButtonCarouselStyle0; }
|
|
@@ -3876,7 +3876,7 @@ class Button {
|
|
|
3876
3876
|
render() {
|
|
3877
3877
|
const TagType = this.href === undefined ? 'button' : 'a';
|
|
3878
3878
|
const positionClass = this.position !== undefined ? `position-${this.position}` : '';
|
|
3879
|
-
return (hAsync(Host, { key: '
|
|
3879
|
+
return (hAsync(Host, { key: '9ce107d336c1811bc2b8a877f802e88b4472d9ad', onClick: this.onClick, class: `${positionClass}` }, hAsync(TagType, { key: '4dd08a75e71b84621801a4e219e4d1d90702b4d6', class: "button-native", part: "native", onFocus: this.onFocus, onBlur: this.onBlur }, hAsync("slot", { key: '30b7cd19bea166092d99e2f43c01788f058306fd', name: "start" }), hAsync("slot", { key: '7f568a97f373b99f8a92371fea02fec6d7d9462f' }))));
|
|
3880
3880
|
}
|
|
3881
3881
|
get el() { return getElement(this); }
|
|
3882
3882
|
static get style() { return RoadButtonFloatingStyle0; }
|
|
@@ -3921,7 +3921,7 @@ class ButtonBar {
|
|
|
3921
3921
|
this.selectedTabChanged();
|
|
3922
3922
|
}
|
|
3923
3923
|
render() {
|
|
3924
|
-
return (hAsync(Host, { key: '
|
|
3924
|
+
return (hAsync(Host, { key: '4220c429f18200f507e395f04971820d4615bc3b', role: "tablist" }, hAsync("slot", { key: 'f0e87a296ac87aa0f5507d536fe183e4c26bc138' })));
|
|
3925
3925
|
}
|
|
3926
3926
|
get el() { return getElement(this); }
|
|
3927
3927
|
static get watchers() { return {
|
|
@@ -3940,7 +3940,7 @@ class ButtonBar {
|
|
|
3940
3940
|
}; }
|
|
3941
3941
|
}
|
|
3942
3942
|
|
|
3943
|
-
const cardCss = ":host{position:relative;box-sizing:border-box;display:block;margin-bottom:var(--margin-bottom, 1rem);background:var(--road-surface);border:1px solid var(--road-outline-weak);border-radius:var(--road-spacing-02);padding:var(--road-spacing-03)}:host(.card-elevation-none){box-shadow:none}:host(.card-elevation-lowest){box-shadow:var(--road-elevation-lowest)}:host(.card-elevation-average){box-shadow:var(--road-elevation-average)}:host(.is-button){border:1px solid var(--road-outline);padding:0}:host(.is-button:hover){border:1px solid var(--road-outline-variant);outline:2px solid var(--road-button-ghost-variant)}:host(.is-button:focus-visible),:host(.is-button:focus){border:1px solid var(--road-outline);outline-offset:1px;outline:2px solid var(--road-outline-variant)}:host(.is-button.is-disabled){cursor:not-allowed;pointer-events:none;border:1px solid var(--road-surface-disabled);background:var(--road-surface-disabled)}:host(.is-button.is-disabled) .card-native,:host(.is-button.selected.is-disabled) .card-native{background:none}:host(.is-button.selected){border:2px solid var(--road-primary);outline:none}:host(.is-button.selected:hover){border:2px solid var(--road-outline-variant);outline:2px solid var(--road-button-ghost-variant)}:host(.is-button.selected:focus-visible),:host(.is-button.selected:focus){border:2px solid var(--road-outline-variant);outline-offset:1px;outline:2px solid var(--road-outline-variant)}:host(.is-button.selected.is-disabled){cursor:not-allowed;pointer-events:none;outline:none;background:var(--road-surface-disabled);border:2px solid var(--road-surface-disabled)}.card-native{box-sizing:border-box;display:block;width:100%;height:100%;padding:var(--road-spacing-06);margin:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;color:inherit;text-align:center;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;letter-spacing:inherit;white-space:inherit;background:var(--road-surface);border:0;border-radius:0.25rem;outline:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}a,button{cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}::slotted(road-icon){text-align:center}";
|
|
3943
|
+
const cardCss = ":host{position:relative;box-sizing:border-box;display:block;margin-bottom:var(--margin-bottom, 1rem);background:var(--road-surface);border:1px solid var(--road-outline-weak);border-radius:var(--road-spacing-02);padding:var(--road-spacing-03)}:host(.card-elevation-none){box-shadow:none}:host(.card-elevation-lowest){box-shadow:var(--road-elevation-lowest)}:host(.card-elevation-average){box-shadow:var(--road-elevation-average)}:host(.is-button){border:1px solid var(--road-outline);padding:0}:host(.is-button:hover){border:1px solid var(--road-outline-variant);outline:2px solid var(--road-button-ghost-variant)}:host(.is-button:focus-visible),:host(.is-button:focus){border:1px solid var(--road-outline);outline-offset:1px;outline:2px solid var(--road-outline-variant)}:host(.is-button.is-disabled){cursor:not-allowed;pointer-events:none;border:1px solid var(--road-surface-disabled);background:var(--road-surface-disabled)}:host(.is-button.is-disabled) .card-native,:host(.is-button.selected.is-disabled) .card-native{background:none}:host(.is-button.selected){border:2px solid var(--road-primary);outline:none}:host(.is-button.selected:hover){border:2px solid var(--road-outline-variant);outline:2px solid var(--road-button-ghost-variant)}:host(.is-button.selected.is-single:hover){border:2px solid var(--road-primary);outline:2px solid var(--road-button-ghost-variant)}:host(.is-button.selected:focus-visible),:host(.is-button.selected:focus){border:2px solid var(--road-outline-variant);outline-offset:1px;outline:2px solid var(--road-outline-variant)}:host(.is-button.selected.is-single:focus){border:2px solid var(--road-primary);outline:2px solid var(--road-outline-variant)}:host(.is-button.selected.is-disabled){cursor:not-allowed;pointer-events:none;outline:none;background:var(--road-surface-disabled);border:2px solid var(--road-surface-disabled)}.card-native{box-sizing:border-box;display:block;width:100%;height:100%;padding:var(--road-spacing-06);margin:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;color:inherit;text-align:center;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;letter-spacing:inherit;white-space:inherit;background:var(--road-surface);border:0;border-radius:0.25rem;outline:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}a,button{cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}::slotted(road-icon){text-align:center}";
|
|
3944
3944
|
var RoadCardStyle0 = cardCss;
|
|
3945
3945
|
|
|
3946
3946
|
/**
|
|
@@ -3971,6 +3971,12 @@ class Card {
|
|
|
3971
3971
|
* Only applies when in button mode (button=true and no href).
|
|
3972
3972
|
*/
|
|
3973
3973
|
this.disabled = false;
|
|
3974
|
+
/**
|
|
3975
|
+
* Defines the selection mode.
|
|
3976
|
+
* - `"single"`: only one card can be selected at a time (focus outline disabled).
|
|
3977
|
+
* - `"multiple"`: multiple cards can be selected simultaneously.
|
|
3978
|
+
*/
|
|
3979
|
+
this.selectionMode = "multiple";
|
|
3974
3980
|
/**
|
|
3975
3981
|
* The type of the button. Only used when an `onclick` or `button` property is present.
|
|
3976
3982
|
*/
|
|
@@ -3986,6 +3992,9 @@ class Card {
|
|
|
3986
3992
|
}
|
|
3987
3993
|
// Toggle selected state on click for clickable cards
|
|
3988
3994
|
this.selected = !this.selected;
|
|
3995
|
+
if (this.selectionMode === "single") {
|
|
3996
|
+
e.currentTarget.blur();
|
|
3997
|
+
}
|
|
3989
3998
|
if (this.value !== undefined) {
|
|
3990
3999
|
this.roadcardclick.emit({
|
|
3991
4000
|
value: this.value,
|
|
@@ -4034,7 +4043,8 @@ class Card {
|
|
|
4034
4043
|
const selectedClass = this.selected ? "selected" : "";
|
|
4035
4044
|
const isButtonClass = isButtonMode ? "is-button" : "";
|
|
4036
4045
|
const disabledClass = isButtonMode && this.disabled ? "is-disabled" : "";
|
|
4037
|
-
|
|
4046
|
+
const singleClass = isButtonMode && this.selectionMode === "single" ? "is-single" : "";
|
|
4047
|
+
return (hAsync(Host, { key: '7eeca2e8ea56b84c7f4e137ad192871c8a9da811', class: `${elevationClass} ${selectedClass} ${isButtonClass} ${disabledClass} ${singleClass}` }, this.renderCard()));
|
|
4038
4048
|
}
|
|
4039
4049
|
get el() { return getElement(this); }
|
|
4040
4050
|
static get style() { return RoadCardStyle0; }
|
|
@@ -4047,6 +4057,7 @@ class Card {
|
|
|
4047
4057
|
"value": [1],
|
|
4048
4058
|
"selected": [516],
|
|
4049
4059
|
"disabled": [516],
|
|
4060
|
+
"selectionMode": [513, "selection-mode"],
|
|
4050
4061
|
"type": [1],
|
|
4051
4062
|
"download": [1],
|
|
4052
4063
|
"href": [1],
|
|
@@ -4055,7 +4066,7 @@ class Card {
|
|
|
4055
4066
|
},
|
|
4056
4067
|
"$listeners$": undefined,
|
|
4057
4068
|
"$lazyBundleId$": "-",
|
|
4058
|
-
"$attrsToReflect$": [["selected", "selected"], ["disabled", "disabled"]]
|
|
4069
|
+
"$attrsToReflect$": [["selected", "selected"], ["disabled", "disabled"], ["selectionMode", "selection-mode"]]
|
|
4059
4070
|
}; }
|
|
4060
4071
|
}
|
|
4061
4072
|
|
|
@@ -10789,7 +10800,7 @@ class Carousel {
|
|
|
10789
10800
|
});
|
|
10790
10801
|
}
|
|
10791
10802
|
render() {
|
|
10792
|
-
return (hAsync(Host, { key: '
|
|
10803
|
+
return (hAsync(Host, { key: '96eb73ccda7cff00f2dcf66cc06be77fed190eeb', class: "swiper-container", tabindex: "0" }, hAsync("div", { key: '9c0dd1baec220fb101020f1b64c6e1bcbf3bdd5b', class: "swiper-wrapper" }, hAsync("slot", { key: '507f0aec4c4c96e0a7b23059831d2a15914917b5' })), this.pager && (hAsync("div", { key: '5d48e628cba52e7eaf12f3e3a1b0f35cad79da0a', class: "swiper-pagination", ref: (el) => (this.paginationEl = el) })), this.arrows && (hAsync("div", { key: 'baf16d217a82435ad678e6d9920f5de02dfe7dc2', role: "button", class: "swiper-button-prev", tabindex: "0", "aria-label": "Previous slide", onClick: () => this.slidePrev() }, hAsync("road-icon", { key: '1265ba880a6d0268ca45ce6a57c7bc74984e0733', icon: navigationChevron, rotate: "180" }))), this.arrows && (hAsync("div", { key: 'caa2168745a3cd92b4e44b4131161cf56869a43c', role: "button", class: "swiper-button-next", tabindex: "0", "aria-label": "Next slide", onClick: () => this.slideNext() }, hAsync("road-icon", { key: 'd1f328118ada8e591f85f1ebc8c35d0ad8234751', icon: navigationChevron })))));
|
|
10793
10804
|
}
|
|
10794
10805
|
get el() { return getElement(this); }
|
|
10795
10806
|
static get watchers() { return {
|
|
@@ -10841,10 +10852,10 @@ class CarouselItem {
|
|
|
10841
10852
|
registerInstance(this, hostRef);
|
|
10842
10853
|
}
|
|
10843
10854
|
render() {
|
|
10844
|
-
return (hAsync(Host, { key: '
|
|
10855
|
+
return (hAsync(Host, { key: '1d25b2fe5373b43fa711793a695b3d48e015ff81', class: {
|
|
10845
10856
|
'swiper-slide': true,
|
|
10846
10857
|
'swiper-zoom-container': true,
|
|
10847
|
-
} }, hAsync("slot", { key: '
|
|
10858
|
+
} }, hAsync("slot", { key: 'dcedfe5b5ba8904ccee633efb9d2d5b8f411941a' })));
|
|
10848
10859
|
}
|
|
10849
10860
|
static get style() { return RoadCarouselItemStyle0; }
|
|
10850
10861
|
static get cmpMeta() { return {
|
|
@@ -10940,7 +10951,7 @@ class Checkbox {
|
|
|
10940
10951
|
const inverseClass = this.inverse && 'form-checkbox-inverse';
|
|
10941
10952
|
const sizeClass = this.size !== undefined ? `form-check-label-${this.size}` : '';
|
|
10942
10953
|
const isInvalidClass = this.error !== undefined && !this.checked && this.error !== '' ? 'is-invalid' : '';
|
|
10943
|
-
return (hAsync(Host, { key: '
|
|
10954
|
+
return (hAsync(Host, { key: 'debeb7eb74a696f929db83bec1b7163160950995' }, hAsync("input", { key: '3b0dc94985056683dc3b6fdf0764990c7b46056c', 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: '1b28f38bf33fb0864deb803012a8a0e301ecf6f0', class: `form-check-label ${inverseClass} ${sizeClass}`, id: labelId, htmlFor: this.checkboxId }, hAsync("div", { key: 'bf292165d29c4d352984d8f7344d8d5c80f2f214' }, this.label, " ", hAsync("span", { key: 'a21360f6719f57d867725b5977a752c27fafc4b0', class: "form-check-label-span" }, this.secondaryLabel), hAsync("slot", { key: 'e6533aa3773e512393c9078b3ade2a3aebb527a9' })), this.checked && !this.indeterminate && hAsync("road-icon", { key: '3cf72d13844fdde37aa568768de4096e7ca928a9', class: "form-check-icon", icon: checkWide }), this.indeterminate && hAsync("road-icon", { key: '50852b4333b513e8f23beaf4422a5868e458a956', class: "form-check-icon", icon: navigationAddLess })), this.error && this.error !== '' && hAsync("p", { key: 'dfa0542f59042741a85acbb80383395c7f37e0a6', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: 'a4982ed4fab93d7131bde6cca6df16dd4febb84d', class: "helper" }, this.helper)));
|
|
10944
10955
|
}
|
|
10945
10956
|
static get watchers() { return {
|
|
10946
10957
|
"checked": ["checkedChanged"]
|
|
@@ -10999,7 +11010,7 @@ class Chip {
|
|
|
10999
11010
|
}
|
|
11000
11011
|
render() {
|
|
11001
11012
|
const outlineClass = this.outline ? 'chip-outline' : '';
|
|
11002
|
-
return (hAsync(Host, { key: '
|
|
11013
|
+
return (hAsync(Host, { key: '297bb9862a6a7367e31a4ff12c47ef5d206ab14a', class: `${outlineClass} chip-${this.color} chip-${this.size}`, tabindex: "0" }, hAsync("div", { key: '8010119adc482c88273f7f31f74b87d1c4ca7943', class: "chip-description" }, hAsync("slot", { key: '5f372945420bdac30f014356fd4abf921c4f0f6a' })), this.hasCloseIcon && hAsync("road-icon", { key: '0c1b67651c20acc671633d23d3eab30b774b6f24', class: "chip-close", icon: navigationClose })));
|
|
11003
11014
|
}
|
|
11004
11015
|
static get style() { return RoadChipStyle0; }
|
|
11005
11016
|
static get cmpMeta() { return {
|
|
@@ -11028,7 +11039,7 @@ class Col {
|
|
|
11028
11039
|
registerInstance(this, hostRef);
|
|
11029
11040
|
}
|
|
11030
11041
|
render() {
|
|
11031
|
-
return (hAsync("slot", { key: '
|
|
11042
|
+
return (hAsync("slot", { key: '8f856a980820ad194551d4fe59eb73c0dcc1515e' }));
|
|
11032
11043
|
}
|
|
11033
11044
|
static get style() { return RoadColStyle0; }
|
|
11034
11045
|
static get cmpMeta() { return {
|
|
@@ -11078,7 +11089,7 @@ class Collapse {
|
|
|
11078
11089
|
const isOpenClass = this.isOpen ? 'collapse-open' : '';
|
|
11079
11090
|
const buttonText = this.isOpen ? this.showLess : this.showMore;
|
|
11080
11091
|
const centerClass = this.centered ? 'collapse-btn-centered' : '';
|
|
11081
|
-
return (hAsync(Host, { key: '
|
|
11092
|
+
return (hAsync(Host, { key: '79aef9ac691ab8ad63bf3035ef982983591f7c11' }, hAsync("slot", { key: 'f365fd80a08a4fcc1129a94f67db1fdb1c3b18e6' }), hAsync("div", { key: 'c77428b17434fa6054f20b4688e4f1fb6beab310', class: `collapsed-content ${isOpenClass}` }, hAsync("slot", { key: '33a02893d686f862a45ae605cc07926d41fdb5bd', name: "collapsed-content" })), hAsync("div", { key: '548377cd3d3a4870810df01e21f80466acf4cecd', class: `collapse-btn-wrapper ${centerClass}` }, hAsync("road-button", { key: '6704e336904e22984ea07032707116ce05a992a2', onClick: this.onClick, class: "collapse-btn btn-link" }, buttonText))));
|
|
11082
11093
|
}
|
|
11083
11094
|
static get style() { return RoadCollapseStyle0; }
|
|
11084
11095
|
static get cmpMeta() { return {
|
|
@@ -11115,7 +11126,7 @@ class ContentCard {
|
|
|
11115
11126
|
}
|
|
11116
11127
|
render() {
|
|
11117
11128
|
const insetImageClass = this.insetImage ? '' : 'content-card-image';
|
|
11118
|
-
return (hAsync(Host, { key: '
|
|
11129
|
+
return (hAsync(Host, { key: 'd4e6a26db6d686a8f81901bbf43763c47381bd65' }, hAsync("road-img", { key: '6b7df2483841bb73a3596980372cf0d225b56101', src: "https://s1.medias-norauto.fr/visuals/desktop/fr/banners/blog_loimontagne.png", alt: "loi montagne", class: insetImageClass }), hAsync("div", { key: '6ff1b831a41aef72070bb4aa642ff001d5a36c46', class: "content-card-description" }, hAsync("road-label", { key: 'c75a52a1b69f91b2889991a2c2cafd4210d525a1', class: "content-card-description-title" }, hAsync("slot", { key: '31737158eac62a8d3c6de53aa508505e8437176e', name: "label" })), hAsync("p", { key: 'afbba8775b1cceeb98cd7603be8a19b693fc1adb', class: "content-card-description-text" }, hAsync("slot", { key: '40a9dde71ea16d31d93ba92e69b759e695d7e796', name: "description" })), hAsync("div", { key: '2935402d4042e319c37d685e833f3e65660ae572', class: "content-card-description-buttons" }, hAsync("slot", { key: '1657529eca315cc648fb3bbd27425e579de5fe3b' })))));
|
|
11119
11130
|
}
|
|
11120
11131
|
static get style() { return RoadContentCardStyle0; }
|
|
11121
11132
|
static get cmpMeta() { return {
|
|
@@ -11143,6 +11154,8 @@ class Counter {
|
|
|
11143
11154
|
this.leftIconClasses = "";
|
|
11144
11155
|
this.rightIconClasses = "";
|
|
11145
11156
|
this.isDustbinVisible = false;
|
|
11157
|
+
this.decreaseAriaLabel = "";
|
|
11158
|
+
this.increaseAriaLabel = "";
|
|
11146
11159
|
/**
|
|
11147
11160
|
* The id of counter
|
|
11148
11161
|
*/
|
|
@@ -11167,6 +11180,22 @@ class Counter {
|
|
|
11167
11180
|
* Set to `true` to not modify the input field
|
|
11168
11181
|
*/
|
|
11169
11182
|
this.readonly = false;
|
|
11183
|
+
/**
|
|
11184
|
+
* Accessible label for the dustbin button when `dustbin` is enabled and value equals `min`.
|
|
11185
|
+
*/
|
|
11186
|
+
this.dustbinLabelA11y = "Supprimer l'article";
|
|
11187
|
+
/**
|
|
11188
|
+
* Accessible label for the decrease button (suffix `, minimum {min}` is appended when not in dustbin mode).
|
|
11189
|
+
*/
|
|
11190
|
+
this.decreaseLabelA11y = 'Diminuer la quantité';
|
|
11191
|
+
/**
|
|
11192
|
+
* Accessible label for the increase button (suffix `, maximum {max}` is appended when not in dustbin mode).
|
|
11193
|
+
*/
|
|
11194
|
+
this.increaseLabelA11y = 'Augmenter la quantité';
|
|
11195
|
+
/**
|
|
11196
|
+
* Accessible label for the input field.
|
|
11197
|
+
*/
|
|
11198
|
+
this.quantityLabelA11y = 'Quantité';
|
|
11170
11199
|
this.setIsDustbinVisible = (valueInput) => {
|
|
11171
11200
|
if (valueInput > this.min) {
|
|
11172
11201
|
this.isDustbinVisible = false;
|
|
@@ -11238,6 +11267,23 @@ class Counter {
|
|
|
11238
11267
|
onValueChange(valueInput) {
|
|
11239
11268
|
this.setIsDustbinVisible(valueInput);
|
|
11240
11269
|
this.setIconsClasses(valueInput);
|
|
11270
|
+
this.updateAriaLabels(valueInput);
|
|
11271
|
+
}
|
|
11272
|
+
onA11yLabelChange() {
|
|
11273
|
+
var _a, _b, _c;
|
|
11274
|
+
const currentValue = parseInt((_c = (_b = (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.querySelector('input')) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : String(this.value));
|
|
11275
|
+
this.updateAriaLabels(currentValue);
|
|
11276
|
+
}
|
|
11277
|
+
updateAriaLabels(valueInput) {
|
|
11278
|
+
const isDustbin = this.isDustbinVisible || (valueInput <= this.min && this.dustbin);
|
|
11279
|
+
this.decreaseAriaLabel = isDustbin
|
|
11280
|
+
? this.dustbinLabelA11y
|
|
11281
|
+
: this.min > 0
|
|
11282
|
+
? `${this.decreaseLabelA11y}, minimum ${this.min}`
|
|
11283
|
+
: this.decreaseLabelA11y;
|
|
11284
|
+
this.increaseAriaLabel = this.max
|
|
11285
|
+
? `${this.increaseLabelA11y}, maximum ${this.max}`
|
|
11286
|
+
: this.increaseLabelA11y;
|
|
11241
11287
|
}
|
|
11242
11288
|
setIconsClasses(valueInput) {
|
|
11243
11289
|
valueInput = valueInput !== null && valueInput !== void 0 ? valueInput : parseInt(this.inputElement.querySelector('input').value);
|
|
@@ -11293,12 +11339,15 @@ class Counter {
|
|
|
11293
11339
|
}
|
|
11294
11340
|
render() {
|
|
11295
11341
|
const dataCi = this.isDustbinVisible ? "road-dustbin" : "";
|
|
11296
|
-
return (hAsync("road-input-group", { key: '
|
|
11342
|
+
return (hAsync("road-input-group", { key: '33ba88d25931c54c023de1e20876789fd948281d', class: this.size && `counter-${this.size}` }, hAsync("road-button", { key: 'a8fc0c7819c357bee9e591c9c6a76611b039cfbd', slot: "prepend", size: this.size, onClick: this.decrease, class: this.leftIconClasses, disabled: this.readonly || (this.leftIconClasses === "disabled"), "aria-label": this.decreaseAriaLabel, "data-cy": "road-decrease" }, hAsync("road-icon", { key: 'e8dd742666b3e1da9e01c2b51c1c8c683b5613c9', name: this.isDustbinVisible ? "delete-forever" : "navigation-add-less", ref: (el) => this.iconCounterLess = el, size: this.size, "data-cy": dataCi, "aria-hidden": "true" })), hAsync("road-input", { key: '2938b887550cbdb918e2d3a6db6fa0e71a003220', 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", "aria-valuenow": this.value, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-label": this.quantityLabelA11y, "aria-live": "polite" }), hAsync("road-button", { key: '5ab56728ce62496bd47e1aa8b2d015022ae7f290', slot: "append", size: this.size, onClick: this.increase, class: this.rightIconClasses, disabled: this.readonly || (this.rightIconClasses === "disabled"), "aria-label": this.increaseAriaLabel, "data-cy": "road-increase" }, hAsync("road-icon", { key: '8c7b34eefecd0d825cffa8681fb122906c3631c6', name: "navigation-add-more", size: this.size, "aria-hidden": "true" }))));
|
|
11297
11343
|
}
|
|
11298
11344
|
get el() { return getElement(this); }
|
|
11299
11345
|
static get watchers() { return {
|
|
11300
11346
|
"value": ["onValueChange"],
|
|
11301
|
-
"readonly": ["onValueChange"]
|
|
11347
|
+
"readonly": ["onValueChange"],
|
|
11348
|
+
"decreaseLabelA11y": ["onA11yLabelChange"],
|
|
11349
|
+
"increaseLabelA11y": ["onA11yLabelChange"],
|
|
11350
|
+
"dustbinLabelA11y": ["onA11yLabelChange"]
|
|
11302
11351
|
}; }
|
|
11303
11352
|
static get style() { return RoadCounterStyle0; }
|
|
11304
11353
|
static get cmpMeta() { return {
|
|
@@ -11313,9 +11362,15 @@ class Counter {
|
|
|
11313
11362
|
"size": [1],
|
|
11314
11363
|
"dustbin": [4],
|
|
11315
11364
|
"readonly": [4],
|
|
11365
|
+
"dustbinLabelA11y": [1, "dustbin-label-a11y"],
|
|
11366
|
+
"decreaseLabelA11y": [1, "decrease-label-a11y"],
|
|
11367
|
+
"increaseLabelA11y": [1, "increase-label-a11y"],
|
|
11368
|
+
"quantityLabelA11y": [1, "quantity-label-a11y"],
|
|
11316
11369
|
"leftIconClasses": [32],
|
|
11317
11370
|
"rightIconClasses": [32],
|
|
11318
|
-
"isDustbinVisible": [32]
|
|
11371
|
+
"isDustbinVisible": [32],
|
|
11372
|
+
"decreaseAriaLabel": [32],
|
|
11373
|
+
"increaseAriaLabel": [32]
|
|
11319
11374
|
},
|
|
11320
11375
|
"$listeners$": undefined,
|
|
11321
11376
|
"$lazyBundleId$": "-",
|
|
@@ -11414,11 +11469,11 @@ class Dialog {
|
|
|
11414
11469
|
break;
|
|
11415
11470
|
}
|
|
11416
11471
|
}
|
|
11417
|
-
return (hAsync(Host, { key: '
|
|
11472
|
+
return (hAsync(Host, { key: '3cd2572babc9fde82e42a059090ff98586bd8770', class: `dialog ${modalIsOpenClass} ${modalhasClose}`, role: "alertdialog", "aria-modal": "true", tabindex: "-1", "aria-label": "dialogLabel" }, hAsync("div", { key: 'fbc4ee3193fe712acdc884be9195ebea22c7e20c', class: "dialog-overlay", onClick: this.hasCloseIcon === true ? this.onClick : undefined, tabindex: "-1" }), hAsync("div", { key: 'a7cc0a53e2145f7c2772b8cbace032bae6054539', class: "dialog-modal", role: "document", tabindex: "0" }, hAsync("div", { key: 'e6dd73409bd5f19f340d2d337a1751d0a555a8d4', class: "dialog-content" }, hAsync("header", { key: '5576424404938464efa043627438b32c2519a184', class: "dialog-header" }, this.hasCloseIcon
|
|
11418
11473
|
? hAsync("button", { type: "button", class: "dialog-close", onClick: this.onClick, "aria-label": "Close" }, hAsync("road-icon", { icon: navigationClose, "aria-hidden": "true" }))
|
|
11419
|
-
: ''), hAsync("div", { key: '
|
|
11474
|
+
: ''), hAsync("div", { key: '1ea1334eacc0218440d5ad13d1988269602f2f3d', class: "dialog-body" }, this.color !== undefined
|
|
11420
11475
|
? hAsync("road-icon", { class: "dialog-icon", part: "dialog-icon", color: this.color, icon: icon, "aria-hidden": "true" })
|
|
11421
|
-
: '', hAsync("h2", { key: '
|
|
11476
|
+
: '', hAsync("h2", { key: '4a2af9fb2184054c259ff4a26c614efa99e0f5fb', class: "dialog-title" }, this.label), hAsync("p", { key: 'ec577b92e7d75a837a166a039956acd6ffb1ee60', class: "dialog-description", id: "dialogDesc" }, this.description)), hAsync("footer", { key: '533a99b29ba07474fb440c45aae0b69d45da34a6', class: "dialog-footer" }, hAsync("slot", { key: 'fdc249c2dab4295806ae7dae723b8c7aa499ff58' }))))));
|
|
11422
11477
|
}
|
|
11423
11478
|
get el() { return getElement(this); }
|
|
11424
11479
|
static get style() { return RoadDialogStyle0; }
|
|
@@ -13021,7 +13076,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
13021
13076
|
return trap;
|
|
13022
13077
|
};
|
|
13023
13078
|
|
|
13024
|
-
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;
|
|
13079
|
+
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;transition:visibility 0s linear 0.3s}.drawer-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;touch-action:none;cursor:pointer;background:var(--road-overlay);opacity:0}.road-drawer-wrapper{width:100%}.road-drawer-wrapper .drawer-dialog{position:absolute;right:0;width:100%;pointer-events:none;transition:transform 0.3s ease-out;opacity:0;transform:none}:host(.drawer-right){justify-content:flex-end}:host(.drawer-right) .road-drawer-wrapper .drawer-dialog{transform:translateX(100%)}:host(.drawer-left) .road-drawer-wrapper .drawer-dialog{left:0;transform:translateX(-100%)}:host(.drawer-bottom){align-items:flex-end}:host(.drawer-bottom) .road-drawer-wrapper .drawer-dialog{width:100%;max-height:var(--max-height);bottom:0;transform:translateY(100%)}:host(.drawer-bottom) .drawer-content{height:auto}.drawer-content{position:relative;display:flex;flex-direction:column;width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;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;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;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;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;transition:visibility 0s linear 0s}:host(.drawer-open) .drawer-overlay,:host(.drawer-open) .drawer-dialog,:host(.drawer-open) .road-drawer-wrapper .drawer-dialog{opacity:1;transform:translateY(0) translateX(0)}@media (prefers-reduced-motion: no-preference){:host(.drawer-open) .drawer-overlay,:host(.drawer-open) .drawer-dialog{animation:road-drawer-fade-in 0.3s ease-out both}.drawer-overlay,.drawer-dialog{animation:road-drawer-fade-out 0.3s ease-out both}@keyframes road-drawer-fade-in{from{opacity:0}to{opacity:1}}@keyframes road-drawer-fade-out{from{opacity:1}to{opacity:0}}}";
|
|
13025
13080
|
var RoadDrawerStyle0 = drawerCss;
|
|
13026
13081
|
|
|
13027
13082
|
/**
|
|
@@ -13079,6 +13134,11 @@ class Drawer {
|
|
|
13079
13134
|
* Footer Content state
|
|
13080
13135
|
*/
|
|
13081
13136
|
this.hasFooterContent = false;
|
|
13137
|
+
/**
|
|
13138
|
+
* Used to ensure open transitions run when the drawer
|
|
13139
|
+
* is initially mounted with `isOpen=true`.
|
|
13140
|
+
*/
|
|
13141
|
+
this.hasMounted = false;
|
|
13082
13142
|
this.onFooterSlotChange = (event) => {
|
|
13083
13143
|
const slot = event.target;
|
|
13084
13144
|
this.hasFooterContent = slot.assignedElements().length > 0;
|
|
@@ -13175,18 +13235,19 @@ class Drawer {
|
|
|
13175
13235
|
}, 100); // Timeout is used to ensure the drawer has been rendered when client wants to update the property at the same time
|
|
13176
13236
|
}
|
|
13177
13237
|
handleOpen(openValue) {
|
|
13178
|
-
var _a;
|
|
13238
|
+
var _a, _b;
|
|
13239
|
+
const dialog = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.drawer-dialog');
|
|
13179
13240
|
if (openValue === true) {
|
|
13180
13241
|
this.onOpen.emit();
|
|
13181
|
-
|
|
13242
|
+
dialog === null || dialog === void 0 ? void 0 : dialog.addEventListener("transitionend", () => {
|
|
13182
13243
|
if (this.enabledFocusTrap) {
|
|
13183
13244
|
this.getOrCreateFocusTrap().activate();
|
|
13184
13245
|
}
|
|
13185
13246
|
}, { once: true });
|
|
13186
13247
|
}
|
|
13187
13248
|
else {
|
|
13188
|
-
(
|
|
13189
|
-
|
|
13249
|
+
(_b = this.focusTrap) === null || _b === void 0 ? void 0 : _b.deactivate();
|
|
13250
|
+
dialog === null || dialog === void 0 ? void 0 : dialog.addEventListener("transitionend", () => {
|
|
13190
13251
|
this.onClose.emit();
|
|
13191
13252
|
this.el.shadowRoot &&
|
|
13192
13253
|
(this.el.shadowRoot.querySelector(".drawer-body").scrollTop = 0);
|
|
@@ -13205,9 +13266,14 @@ class Drawer {
|
|
|
13205
13266
|
this.el.querySelectorAll('[data-dismiss="modal"]').forEach((item) => {
|
|
13206
13267
|
item.addEventListener("click", () => this.close());
|
|
13207
13268
|
});
|
|
13208
|
-
|
|
13209
|
-
|
|
13210
|
-
|
|
13269
|
+
// Wait for the first paint so the "closed" transform can be applied,
|
|
13270
|
+
// then open on the next frame to allow CSS transitions to run.
|
|
13271
|
+
requestAnimationFrame(() => {
|
|
13272
|
+
this.hasMounted = true;
|
|
13273
|
+
if (this.isOpen) {
|
|
13274
|
+
this.handleOpen(true);
|
|
13275
|
+
}
|
|
13276
|
+
});
|
|
13211
13277
|
}
|
|
13212
13278
|
getOrCreateFocusTrap(elements) {
|
|
13213
13279
|
var _a;
|
|
@@ -13237,7 +13303,8 @@ class Drawer {
|
|
|
13237
13303
|
}
|
|
13238
13304
|
render() {
|
|
13239
13305
|
var _a, _b, _c;
|
|
13240
|
-
const
|
|
13306
|
+
const isEffectivelyOpen = this.isOpen && this.hasMounted;
|
|
13307
|
+
const drawerIsOpenClass = isEffectivelyOpen ? "drawer-open" : "";
|
|
13241
13308
|
const removePaddingClass = this.removePadding ? "remove-padding" : "";
|
|
13242
13309
|
const inverseHeaderClass = this.hasInverseHeader
|
|
13243
13310
|
? "drawer-header-inverse"
|
|
@@ -13249,7 +13316,7 @@ class Drawer {
|
|
|
13249
13316
|
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;
|
|
13250
13317
|
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;
|
|
13251
13318
|
const drawerWidthValue = this.position === "bottom" ? "100%" : `${this.drawerWidth}px`;
|
|
13252
|
-
return (hAsync(Host, { key: '
|
|
13319
|
+
return (hAsync(Host, { key: '28e6c2a6c4c0e6bf9615323faeb4fefe5d0c4a5e', class: `${drawerIsOpenClass} drawer-${this.position}`, tabindex: "0", role: "dialog", "aria-label": ariaLabel }, hAsync("div", { key: '58c9436538f430aead500867e7e3eb5b899a3d45', class: "road-drawer-wrapper" }, hAsync("div", { key: '7e27688cdde1db9aa87ecab1f13bfe02346cd8d6', class: "drawer-overlay", onClick: this.onClick, tabindex: "-1" }), hAsync("div", { key: '00c9c61582a7dd58eecba17edc097c9fe61cf80e', class: "drawer-dialog", style: { maxWidth: drawerWidthValue }, role: "document" }, hAsync("div", { key: '184698929c59c91792f6b7224bee67e85e849c54', class: "drawer-content" }, hAsync("header", { key: 'd9b73a2c6bb8bf54ec5cf9a1d5f7df082496b50c', 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: '24f654481e962aa43988f3afc08824ba5f3b35b1', class: `drawer-body ${removePaddingClass}` }, hAsync("slot", { key: '5c9c15ac96758fa2fbc17587dd0d991af5818da8' })), hAsync("footer", { key: 'a69988a01e7f3b21c050f253fb56f49101cf2013', class: `drawer-footer ${removePaddingClass}`, hidden: !this.hasFooterContent }, hAsync("slot", { key: 'd5c83194a260f10da51f98c8fe7b580d729916cb', name: "footer", onSlotchange: this.onFooterSlotChange })))))));
|
|
13253
13320
|
}
|
|
13254
13321
|
get el() { return getElement(this); }
|
|
13255
13322
|
static get watchers() { return {
|
|
@@ -13277,6 +13344,7 @@ class Drawer {
|
|
|
13277
13344
|
"whitelistSelectors": [1040],
|
|
13278
13345
|
"focusTrap": [32],
|
|
13279
13346
|
"hasFooterContent": [32],
|
|
13347
|
+
"hasMounted": [32],
|
|
13280
13348
|
"open": [64],
|
|
13281
13349
|
"close": [64],
|
|
13282
13350
|
"back": [64],
|
|
@@ -13316,7 +13384,7 @@ class Dropdown$1 {
|
|
|
13316
13384
|
const positionClass = this.position ? `position-${this.position}` : '';
|
|
13317
13385
|
const dropdownClass = this.position ? `dropdown-${this.position}` : '';
|
|
13318
13386
|
const directionClass = this.direction ? `direction-${this.direction}` : '';
|
|
13319
|
-
return (hAsync("details", { key: '
|
|
13387
|
+
return (hAsync("details", { key: 'bc5fa818c7d5dd91c94722776f48b87d1c6991ca', class: "dropdown", open: this.isOpen }, hAsync("summary", { key: 'c1202f485300634612f97ae2484cc7ed01e3ebc4', "aria-expanded": this.isOpen.toString(), tabindex: "0", role: "button", onClick: this.onClick, "tab-index": "0" }, hAsync("div", { key: '9a95605996d95b071265419776518a89d25a65e7', class: `d-flex ${positionClass}` }, hAsync("div", { key: '3f84e6126c806c91d7e9e22f34394dcbed042a44', class: `${isLightButtonDropDown} ${isMediumButtonDropDown}` }, hAsync("road-icon", { key: '85a7f6eebf12359e7d4e2a1a1f66792faa7c88f2', name: "navigation-more", class: "dropdown-button-icon", "aria-hidden": "true" })))), hAsync("div", { key: 'aaa684114947dad8ae0411eb2e24b3a0b2543166', class: `dropdown-menu ${directionClass} ${dropdownClass}` }, hAsync("slot", { key: '176cd6252641ffecf6a2a7ec4aa4bf26cdfa0421', name: "list" }))));
|
|
13320
13388
|
}
|
|
13321
13389
|
get el() { return getElement(this); }
|
|
13322
13390
|
static get style() { return RoadDropdownStyle0; }
|
|
@@ -13372,7 +13440,7 @@ class Dropdown {
|
|
|
13372
13440
|
this.isOpen = false;
|
|
13373
13441
|
}
|
|
13374
13442
|
render() {
|
|
13375
|
-
return (hAsync("details", { key: '
|
|
13443
|
+
return (hAsync("details", { key: 'd7580832b6ef2627416ffa619bb48e0a85fe9459', class: "dropdown", open: this.isOpen }, hAsync("summary", { key: 'f8e2e2dcb8e2f8f66206db661d93824cc9370e2a', "aria-expanded": `${this.isOpen}`, tabindex: "0", role: "button", onClick: this.onClick }, hAsync("div", { key: 'ea25e6db168725444c8d3ff00790589a273436b8', class: `d-flex` }, hAsync("div", { key: 'cb09a7404c609829133824827102e3e61c337ef3' }, hAsync("road-avatar", { key: 'f21a0e03058c5f2061c2b2b80102003a69254312' }, hAsync("slot", { key: 'ed8a435e1c7f74c4e563b8f91af5865e20a4968f', name: "avatar" }))))), hAsync("div", { key: 'e1157d5fa05b422aef4b2484efd530ef40d7acc6', class: `dropdown-menu` }, hAsync("div", { key: '864fab60e22d361523b64897acb8d7db916077fc', class: "profil-item" }, hAsync("road-avatar", { key: '879a531e5a2d884b070656769379d77524aa464b', size: "sm" }, hAsync("slot", { key: '9b3b62fa7d289157e8fb71b1e08ac68eca6ce0c5', name: "avatarItem" })), hAsync("div", { key: '400d086eda78ee335a74078fa42231f326969372', class: "profil-item-info" }, hAsync("span", { key: '15abca4ad4b9c98c85de1d3431e1163dc049af7c', class: "profil-item-info-name" }, hAsync("slot", { key: '5351f9847476da8b27cb8dfead17c03171605a24', name: "name" })), hAsync("road-label", { key: 'b5eecf5230251befaf52d4c7602efa8ad4c4b6fc' }, hAsync("slot", { key: 'd14353bfb5bf6d6ec69fb1c8554ba94179a3a2db', name: "email" })))), hAsync("slot", { key: '49cd8ad79bac751b8b1edda5873864a14fd7f4e5', name: "list" }))));
|
|
13376
13444
|
}
|
|
13377
13445
|
get el() { return getElement(this); }
|
|
13378
13446
|
static get style() { return RoadProfilDropdownStyle0; }
|
|
@@ -13436,7 +13504,7 @@ class Duration {
|
|
|
13436
13504
|
this.isOpen = false;
|
|
13437
13505
|
}
|
|
13438
13506
|
render() {
|
|
13439
|
-
return (hAsync("road-drawer", { key: '
|
|
13507
|
+
return (hAsync("road-drawer", { key: '64ddf5ad3182385db8fd87700a3725f59cee0912', "is-open": this.isOpen, position: "bottom", "drawer-title": this.header }, hAsync("road-grid", { key: '29bcb02b6e4bd0b9c41d34c7ee36de3ed2392976' }, hAsync("road-row", { key: 'ce8f02f3c03c2f18fc058ef7ec8cb8167bab6ab6', 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 })))))))));
|
|
13440
13508
|
}
|
|
13441
13509
|
get el() { return getElement(this); }
|
|
13442
13510
|
static get style() { return RoadDurationStyle0; }
|
|
@@ -13482,7 +13550,7 @@ class Flap {
|
|
|
13482
13550
|
}
|
|
13483
13551
|
render() {
|
|
13484
13552
|
const colorClass = this.filled ? `flap-${this.color}-filled` : `flap-${this.color}`;
|
|
13485
|
-
return (hAsync(Host, { key: '
|
|
13553
|
+
return (hAsync(Host, { key: '739602eeec63bce938298c58e66f2ab4bbf44f01', class: `${colorClass} flap-${this.size}` }, hAsync("slot", { key: '38dbde63176a646bbc5985364ccd265aa1e8fddf' })));
|
|
13486
13554
|
}
|
|
13487
13555
|
static get style() { return RoadFlapStyle0; }
|
|
13488
13556
|
static get cmpMeta() { return {
|
|
@@ -13528,7 +13596,7 @@ class GlobalNavigation {
|
|
|
13528
13596
|
this.selectedTabChanged();
|
|
13529
13597
|
}
|
|
13530
13598
|
render() {
|
|
13531
|
-
return (hAsync(Host, { key: '
|
|
13599
|
+
return (hAsync(Host, { key: '30bcf69f0b6bf8daf643db2d4ff16a6b03dcdbbf', role: "application" }, hAsync("slot", { key: 'd3602ab16bf4c420dfc84668ea3b6478fdcf5a6c' })));
|
|
13532
13600
|
}
|
|
13533
13601
|
static get watchers() { return {
|
|
13534
13602
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -13676,7 +13744,7 @@ class GlobalNavigationV2 {
|
|
|
13676
13744
|
this.selectedTabChanged();
|
|
13677
13745
|
}
|
|
13678
13746
|
render() {
|
|
13679
|
-
return (hAsync(Host, { key: '
|
|
13747
|
+
return (hAsync(Host, { key: '5710e04a3f7f9bf93155944647937aac8a5d464c', role: "application" }, hAsync("slot", { key: '52c85d81b143c6725751ddeea13c47d915692053' })));
|
|
13680
13748
|
}
|
|
13681
13749
|
get host() { return getElement(this); }
|
|
13682
13750
|
static get watchers() { return {
|
|
@@ -13706,7 +13774,7 @@ class Grid {
|
|
|
13706
13774
|
registerInstance(this, hostRef);
|
|
13707
13775
|
}
|
|
13708
13776
|
render() {
|
|
13709
|
-
return (hAsync("slot", { key: '
|
|
13777
|
+
return (hAsync("slot", { key: '9fcc36d5c4a156df21c853116ee493c12f1da4fd' }));
|
|
13710
13778
|
}
|
|
13711
13779
|
static get style() { return RoadGridStyle0; }
|
|
13712
13780
|
static get cmpMeta() { return {
|
|
@@ -13809,7 +13877,7 @@ class Icon {
|
|
|
13809
13877
|
const rotateClass = this.rotate ? `icon-rotate-${this.rotate}` : '';
|
|
13810
13878
|
// Ajouter une classe "default" si aucune des valeurs n'est définie
|
|
13811
13879
|
const classes = [colorClass, sizeClass, rotateClass].filter(Boolean).join(' ');
|
|
13812
|
-
return (hAsync(Host, { key: '
|
|
13880
|
+
return (hAsync(Host, { key: '7d5d2a6cb1e04af2b2016b7c235c69b6df990153', class: classes, "aria-hidden": "true" }, this.svgContent !== ''
|
|
13813
13881
|
? hAsync("div", { class: "icon-inner", innerHTML: this.svgContent })
|
|
13814
13882
|
: hAsync("div", { class: "icon-inner" })));
|
|
13815
13883
|
}
|
|
@@ -13931,7 +13999,7 @@ class Illustration {
|
|
|
13931
13999
|
render() {
|
|
13932
14000
|
const sizeClass = this.size !== undefined ? `illustration-${this.size}` : '';
|
|
13933
14001
|
const rotateClass = this.rotate !== undefined ? `illustration-rotate-${this.rotate}` : '';
|
|
13934
|
-
return (hAsync(Host, { key: '
|
|
14002
|
+
return (hAsync(Host, { key: '279204d03ea78a03ad2c78286e9c23ca30f9192c', class: `${sizeClass} ${rotateClass}`, "aria-hidden": "true", role: "img" }, ((this.illustrationSvgContent !== '')
|
|
13935
14003
|
? hAsync("div", { class: "icon-inner", innerHTML: this.illustrationSvgContent })
|
|
13936
14004
|
: hAsync("div", { class: "icon-inner" }))));
|
|
13937
14005
|
}
|
|
@@ -14034,7 +14102,7 @@ class Img {
|
|
|
14034
14102
|
}
|
|
14035
14103
|
render() {
|
|
14036
14104
|
const placeholder = this.loadSrc !== undefined ? '' : 'placeholder';
|
|
14037
|
-
return (hAsync(Host, { key: '
|
|
14105
|
+
return (hAsync(Host, { key: '4f6efeb4a9f1fa0effa60a9f97e722b05e38e85e', class: placeholder }, hAsync("img", { key: '8f4b1a2618f3cdf57a53909b59cc9d82d72b412a', class: "native-img", decoding: "async", src: this.loadSrc, alt: this.alt, onLoad: this.onLoad, onError: this.loadError, part: "image" })));
|
|
14038
14106
|
}
|
|
14039
14107
|
get el() { return getElement(this); }
|
|
14040
14108
|
static get watchers() { return {
|
|
@@ -31505,11 +31573,11 @@ class Input {
|
|
|
31505
31573
|
const lessLabelClass = this.label !== '' ? '' : 'less-label';
|
|
31506
31574
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
31507
31575
|
const isValidClass = this.success == true ? 'is-valid' : '';
|
|
31508
|
-
return (hAsync(Host, { key: '
|
|
31576
|
+
return (hAsync(Host, { key: 'f0e25b90c99329da56cf8274c6cf50be36c51e91', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}`, value: value, blockdecimal: this.blockdecimal }, hAsync("input", { key: 'c7431e17075d1a35e4f3bb938f5dc3ab1a0f2c3a', class: `form-control ${hasValueClass} ${isInvalidClass} ${isValidClass} ${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, list: this.list, value: value, onInput: this.onInput, onCompositionstart: this.onCompositionStart, onCompositionupdate: this.onCompositionUpdate, onCompositionend: this.onCompositionEnd, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.type === 'number' ? (event) => this.handleKeyDown(event) : undefined, "data-cy": 'road-input', ref: el => (this.inputEl = el) }), hAsync("label", { key: '825c682a64dee282f204ebe5f675a36ef5044bf0', class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && (Array.isArray(this.error)
|
|
31509
31577
|
? // Si error est un tableau, on itère et génère un <p> pour chaque élément
|
|
31510
31578
|
this.error.map((err, index) => (hAsync("p", { key: index, class: "invalid-feedback" }, hAsync("road-icon", { slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), err.trim(), " ")))
|
|
31511
31579
|
: // Si error est une chaîne, on la divise avec split et génère un <p> pour chaque élément
|
|
31512
|
-
this.error.split(',').map((err, index) => (hAsync("p", { key: index, class: "invalid-feedback" }, hAsync("road-icon", { slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), err.trim(), " ")))), this.helper && this.helper !== '' && hAsync("p", { key: '
|
|
31580
|
+
this.error.split(',').map((err, index) => (hAsync("p", { key: index, class: "invalid-feedback" }, hAsync("road-icon", { slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), err.trim(), " ")))), this.helper && this.helper !== '' && hAsync("p", { key: '949b8ff55cb5855bd512d4c7c8ab8bcb745748db', class: "helper" }, this.helper), this.type && this.type == 'password' && hAsync("slot", { key: '98301d785e551b8ac08cddbd21838a56bfca36f2', name: "checklistPassword" })));
|
|
31513
31581
|
}
|
|
31514
31582
|
static get watchers() { return {
|
|
31515
31583
|
"debounce": ["debounceChanged"],
|
|
@@ -31599,7 +31667,7 @@ class InputGroup {
|
|
|
31599
31667
|
? `size-${this.el.querySelector('road-input').sizes}`
|
|
31600
31668
|
: '';
|
|
31601
31669
|
const disabledClass = this.disabled ? 'is-disabled' : '';
|
|
31602
|
-
return (hAsync("div", { key: '
|
|
31670
|
+
return (hAsync("div", { key: 'ad94dffcb9756e848f286abbc1f8759eb39330a2', class: `input-group ${errorClass} ${disabledClass} ${sizeClass}` }, hAsync("div", { key: '25a28d5299dc19be40a3ac8311dafb0d853d1a4d', class: "input-group-prepend" }, hAsync("slot", { key: '6be76f25a7960551da8f5887ceac6550ef5fa2c9', name: "prepend" })), hAsync("slot", { key: '7a244ac6f46d5a4b15b2665107eb889c336603df' }), hAsync("div", { key: '54684dc4ff55e859dfaaab3138c168925a2722b0', class: "input-group-append" }, hAsync("slot", { key: '1ba12616c1451aebc3b5f3e4593f5804999c0897', name: "append" }))));
|
|
31603
31671
|
}
|
|
31604
31672
|
get el() { return getElement(this); }
|
|
31605
31673
|
static get watchers() { return {
|
|
@@ -31679,13 +31747,13 @@ class Item {
|
|
|
31679
31747
|
target,
|
|
31680
31748
|
};
|
|
31681
31749
|
const showDetail = detail !== undefined && detail;
|
|
31682
|
-
return (hAsync(Host, { key: '
|
|
31750
|
+
return (hAsync(Host, { key: '7827649c774c20cb6c3e002f6437475431f6a74f', "aria-disabled": disabled ? 'true' : null, class: {
|
|
31683
31751
|
[`item-lines-${lines}`]: lines !== undefined,
|
|
31684
|
-
} }, hAsync(TagType, Object.assign({ key: '
|
|
31752
|
+
} }, hAsync(TagType, Object.assign({ key: '1d3a248acf34aa9313393a4f24207650393fc0d7' }, attrs, { class: {
|
|
31685
31753
|
'item-native': true,
|
|
31686
31754
|
'item-active': this.active,
|
|
31687
31755
|
[`layout-${layout}`]: layout !== undefined,
|
|
31688
|
-
}, part: "native", disabled: disabled }), hAsync("slot", { key: '
|
|
31756
|
+
}, part: "native", disabled: disabled }), hAsync("slot", { key: '692ce07b8a57be6bf8049b0f549691653de3b9cb', name: "start" }), hAsync("div", { key: '5751a638d0e9ca2d0c76e212d8828487c5ff4a30', class: "item-inner" }, hAsync("div", { key: '1091db80d20d14de9f827be6fffd232b18064c21', class: "input-wrapper" }, hAsync("slot", { key: '039d82a579b6b59993e70d494bbff278d7870cf7' }), hAsync("div", { key: '1834170303f13dd4ed292745a7314b47be9353f8', class: "input-wrapper-info" }, hAsync("road-label", { key: '703fd6be278b1286225d5f3f4f56e26261d9bab1', class: "input-wrapper-info-title" }, this.titleItem), hAsync("p", { key: 'e2c63cfd208c51c9fb7e2dd1fc89a1dff96e11f2', class: "input-wrapper-info-text" }, this.text))), hAsync("slot", { key: '596fb23ec500bb815f4d7792c366b3fecdc30c2b', name: "end" }), showDetail && hAsync("road-icon", { key: '1751d7a7077d5e745d18cc1d3f55ee8f2360279e', icon: detailIcon, lazy: false, class: "item-detail-icon" })))));
|
|
31689
31757
|
}
|
|
31690
31758
|
get el() { return getElement(this); }
|
|
31691
31759
|
static get style() { return RoadItemStyle0; }
|
|
@@ -31726,7 +31794,7 @@ class Label {
|
|
|
31726
31794
|
registerInstance(this, hostRef);
|
|
31727
31795
|
}
|
|
31728
31796
|
render() {
|
|
31729
|
-
return (hAsync("slot", { key: '
|
|
31797
|
+
return (hAsync("slot", { key: 'cbca2967aab7b7a1ece0cffbc2618fec7aab02f0' }));
|
|
31730
31798
|
}
|
|
31731
31799
|
static get style() { return RoadLabelStyle0; }
|
|
31732
31800
|
static get cmpMeta() { return {
|
|
@@ -31751,9 +31819,9 @@ class List {
|
|
|
31751
31819
|
}
|
|
31752
31820
|
render() {
|
|
31753
31821
|
const { lines } = this;
|
|
31754
|
-
return (hAsync(Host, { key: '
|
|
31822
|
+
return (hAsync(Host, { key: '95c852cf27f008a6078f9a7776b0b1fabb24f156', class: {
|
|
31755
31823
|
[`list-lines-${lines}`]: lines !== undefined,
|
|
31756
|
-
} }, hAsync("slot", { key: '
|
|
31824
|
+
} }, hAsync("slot", { key: 'ab1ec479073541979646cd7ac90cf6eb0239126a' })));
|
|
31757
31825
|
}
|
|
31758
31826
|
static get style() { return RoadListStyle0; }
|
|
31759
31827
|
static get cmpMeta() { return {
|
|
@@ -31838,7 +31906,7 @@ class Modal {
|
|
|
31838
31906
|
const modalIsOpenClass = this.isOpen ? 'modal-open' : '';
|
|
31839
31907
|
const inverseHeaderClass = this.hasInverseHeader ? 'modal-header-inverse' : '';
|
|
31840
31908
|
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" })) : '';
|
|
31841
|
-
return (hAsync(Host, { key: '
|
|
31909
|
+
return (hAsync(Host, { key: '5c1f41604830d3daaab873fa532630c41886ea70', class: `modal ${modalIsOpenClass}`, tabindex: "-1", role: "dialog", "aria-label": "modal" }, hAsync("div", { key: '3a72bfa4dfcdf3c488cfeacccaefac87be7de0d6', class: "modal-overlay", onClick: this.onClick, tabindex: "-1" }), hAsync("div", { key: 'f3a768b5ecc51aaf8ec7a59051dc0092df6f0392', class: "modal-dialog", style: { maxWidth: `${this.maxWidth}px` }, role: "document", tabindex: "0" }, hAsync("div", { key: 'acba5dc153015d6f9085cc700c7ce045980f5833', class: "modal-content" }, hAsync("header", { key: '952c1cc52566161de413504cdaa98e5167c3ae99', class: `modal-header ${inverseHeaderClass}` }, hAsync("h2", { key: 'a956e2e6682142e2f151efcc06b670ab46e8217e', class: "modal-title" }, this.modalTitle), closeIconElement), hAsync("div", { key: '693dcdc5e8bafc6a2bf88f6ed0e72ab2a47f3780', class: "modal-body" }, hAsync("slot", { key: 'a60d391d06c62c882048e1abc291359053654177' }))))));
|
|
31842
31910
|
}
|
|
31843
31911
|
get el() { return getElement(this); }
|
|
31844
31912
|
static get style() { return RoadModalStyle0; }
|
|
@@ -31889,7 +31957,7 @@ class Navbar {
|
|
|
31889
31957
|
this.selectedTabChanged();
|
|
31890
31958
|
}
|
|
31891
31959
|
render() {
|
|
31892
|
-
return (hAsync(Host, { key: '
|
|
31960
|
+
return (hAsync(Host, { key: '856ecb6ab9ca8791d6b27a9167e99fc7bbf5563e', role: "menubar" }, hAsync("slot", { key: '683e5f402623992d814b1667fa6f1e1ec10ca4de' })));
|
|
31893
31961
|
}
|
|
31894
31962
|
static get watchers() { return {
|
|
31895
31963
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -31975,11 +32043,11 @@ class NavbarItem$1 {
|
|
|
31975
32043
|
rel,
|
|
31976
32044
|
target,
|
|
31977
32045
|
};
|
|
31978
|
-
return (hAsync(Host, { key: '
|
|
32046
|
+
return (hAsync(Host, { key: '91fef5d8e233e6665c1b7d43361fe13bfc26ddb2', 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: {
|
|
31979
32047
|
'navbar-item': true,
|
|
31980
32048
|
'tab-selected': selected,
|
|
31981
32049
|
'tab-disabled': disabled,
|
|
31982
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
32050
|
+
} }, hAsync("a", Object.assign({ key: 'c6e2adbc2f9da2ad953676a994bd577dea40af2d' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), hAsync("span", { key: 'a0f09043954178d75d9583b10f45b0634779c570', class: "button-inner" }, hAsync("slot", { key: 'd9fe86630fa6568c7ec54c85cacce32f28dc75a5' })))));
|
|
31983
32051
|
}
|
|
31984
32052
|
get el() { return getElement(this); }
|
|
31985
32053
|
static get watchers() { return {
|
|
@@ -32072,11 +32140,11 @@ class NavbarItem {
|
|
|
32072
32140
|
rel,
|
|
32073
32141
|
target,
|
|
32074
32142
|
};
|
|
32075
|
-
return (hAsync(Host, { key: '
|
|
32143
|
+
return (hAsync(Host, { key: 'a875497429de3d17585d39f031d7ecc92920ae24', 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: {
|
|
32076
32144
|
'navbar-item': true,
|
|
32077
32145
|
'tab-selected': selected,
|
|
32078
32146
|
'tab-disabled': disabled,
|
|
32079
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
32147
|
+
} }, hAsync("a", Object.assign({ key: '45cd2becb3e737538387068622ce1cfec04dfdc6' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), hAsync("span", { key: '2bef4c8f38adc9bcdb0b2a114c0d3944534eed69', class: "button-inner" }, hAsync("slot", { key: 'd70fe75f58e7b55e9636db46e67885c2e8ebfa1e' })))));
|
|
32080
32148
|
}
|
|
32081
32149
|
get el() { return getElement(this); }
|
|
32082
32150
|
static get watchers() { return {
|
|
@@ -32135,7 +32203,7 @@ class NavbarV2 {
|
|
|
32135
32203
|
}
|
|
32136
32204
|
render() {
|
|
32137
32205
|
const compactClass = this.compact ? 'compact' : '';
|
|
32138
|
-
return (hAsync(Host, { key: '
|
|
32206
|
+
return (hAsync(Host, { key: 'dbe3efbf3dfb5a6fad5a1a5f11b8b35c4628a668', role: "menubar", class: `${compactClass}` }, hAsync("slot", { key: 'babb69adc19512b222822fd3aab9692e4f79141b' })));
|
|
32139
32207
|
}
|
|
32140
32208
|
static get watchers() { return {
|
|
32141
32209
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -32258,10 +32326,10 @@ class PlateNumber {
|
|
|
32258
32326
|
render() {
|
|
32259
32327
|
const value = this.getValue();
|
|
32260
32328
|
const motorbikeClass = this.motorbike ? 'motorbike-plate' : '';
|
|
32261
|
-
return (hAsync("road-input-group", { key: '
|
|
32329
|
+
return (hAsync("road-input-group", { key: '106f6f3293a295db84efbfca72b1dfe50df7eea1', class: `plate-number plate-number-${this.country.toLowerCase()} ${motorbikeClass}` }, hAsync("label", { key: '62a9d441198badd6216982a6cd2654de8b7fa27d', slot: "prepend", class: "input-group-prepend" }, hAsync("div", { key: 'f0c042a50d25033f4aa0d611159b4674eec3781c', class: "plate-number-start" }, hAsync("road-icon", { key: '1045fb8ae0beae59496ae5056c972b0876299039', class: "plate-number-icon", icon: licensePlateStarEu }), hAsync("div", { key: 'c9c88289cdfd2835a228e485c24933c55e91bbdd', class: "plate-number-location", "aria-label": this.country, role: "img" }, this.countries
|
|
32262
32330
|
.filter(item => item.country === this.country)[0].letter))), this.motorbike
|
|
32263
32331
|
? (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 }))
|
|
32264
|
-
: (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: '
|
|
32332
|
+
: (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: 'c5426f84945934ae69a6ed4049241ac8ec02e9f7', slot: "append", class: "input-group-append" }, hAsync("div", { key: 'eb7f769a4c8bef59229f76cf4313ff83fdf750a8', class: "plate-number-end" }))));
|
|
32265
32333
|
}
|
|
32266
32334
|
static get watchers() { return {
|
|
32267
32335
|
"value": ["valueChanged"]
|
|
@@ -32284,7 +32352,7 @@ class PlateNumber {
|
|
|
32284
32352
|
}; }
|
|
32285
32353
|
}
|
|
32286
32354
|
|
|
32287
|
-
const progressCss = ".progress{--border-radius:0.25rem;display:flex;height:0.25rem;overflow:hidden;font-size:var(--road-label-small);background-color:var(--road-surface-disabled);border-radius:var(--border-radius)}.progress-light{background-color:var(--road-overlay-inverse)}.progress-element-info{display:flex;justify-content:space-between;margin-top:0.5rem}.progress-element-info-full-width{display:flex;justify-content:space-between;padding:0 1rem;margin-top:0.5rem}.progress-element-label{font-size:var(--road-label-medium);text-align:left}.progress-element-step{font-size:var(--road-label-medium);text-align:right}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;text-align:center;white-space:nowrap;transition:width 0.6s ease}.progress.progress-primary .progress-bar{background:var(--road-primary)}.progress.progress-secondary .progress-bar{background:var(--road-secondary)}.progress.progress-info .progress-bar{background:var(--road-info-surface-inverse)}.progress.progress-success .progress-bar{background:var(--road-success-surface-inverse)}.progress.progress-warning .progress-bar{background:var(--road-warning-surface-inverse)}.progress.progress-danger .progress-bar{background:var(--road-danger-surface-inverse)}.progress.progress-rating .progress-bar{background:var(--road-rating)}.animation .progress-bar{animation:load 5s normal forwards}@keyframes load{0%{width:0}100%{width:100%}}";
|
|
32355
|
+
const progressCss = ".progress{--border-radius:0.25rem;display:flex;height:0.25rem;overflow:hidden;font-size:var(--road-label-small);background-color:var(--road-surface-disabled);border-radius:var(--border-radius)}.progress-light{background-color:var(--road-overlay-inverse)}.progress-element-info{display:flex;justify-content:space-between;margin-top:0.5rem}.progress-element-info-full-width{display:flex;justify-content:space-between;padding:0 1rem;margin-top:0.5rem}.progress-element-label{font-size:var(--road-label-medium);text-align:left}.progress-element-step{font-size:var(--road-label-medium);text-align:right}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;text-align:center;white-space:nowrap;transition:width 0.6s ease}.progress.progress-primary .progress-bar{background:var(--road-primary)}.progress.progress-secondary .progress-bar{background:var(--road-secondary)}.progress.progress-info .progress-bar{background:var(--road-info-surface-inverse)}.progress.progress-success .progress-bar{background:var(--road-success-surface-inverse)}.progress.progress-warning .progress-bar{background:var(--road-warning-surface-inverse)}.progress.progress-danger .progress-bar{background:var(--road-danger-surface-inverse)}.progress.progress-rating .progress-bar{background:var(--road-rating)}.animation .progress-bar{animation:load var(--road-progress-animation-duration, 5s) normal forwards;animation-play-state:var(--road-progress-animation-play-state, running)}@keyframes load{0%{width:0}100%{width:100%}}";
|
|
32288
32356
|
var RoadProgressStyle0 = progressCss;
|
|
32289
32357
|
|
|
32290
32358
|
class ProgressBar {
|
|
@@ -32343,7 +32411,7 @@ class ProgressBar {
|
|
|
32343
32411
|
let step = Math.ceil((this.value / 100) * this.numbersteps);
|
|
32344
32412
|
step = Math.min(step, this.numbersteps);
|
|
32345
32413
|
step = Math.max(step, 0);
|
|
32346
|
-
return (hAsync(Host, { key: '
|
|
32414
|
+
return (hAsync(Host, { key: '3f6b27c3e143da8850233df017b4ef60293b0551', class: "progress-element" }, hAsync("div", { key: '1181b717d1c2cdc54d6a1a8e6283f6f8e5cea95f', class: `${light} progress-${this.color} ${animation}` }, hAsync("div", { key: '8201a0be5073744c6458aa5e1ec3ffb188b575a5', class: "progress-bar", role: "progressbar", style: { width: `${progressBarFilledPercentage}%` }, "aria-valuenow": progressBarFilledPercentage, "aria-valuemin": "0", "aria-valuemax": "100", "aria-labelledby": "loadinglabel", "aria-label": "progress bar" })), hAsync("div", { key: '9b80d59fb76a9766f9f8b13cccd9f69057028187', class: `${fullwidth}` }, hAsync("span", { key: 'd967d4f34524d42e01e6ddea5fb5f46b1b8193ac', id: "loadinglabel", class: "progress-element-label" }, this.label), this.showstep && (hAsync("span", { key: '0726f1e83ac1c1ade5218e4b1ab9d59b23c68764', class: "progress-element-step" }, step, "/", this.numbersteps)))));
|
|
32347
32415
|
}
|
|
32348
32416
|
static get style() { return RoadProgressStyle0; }
|
|
32349
32417
|
static get cmpMeta() { return {
|
|
@@ -32385,7 +32453,7 @@ class ProgressIndicatorVertical {
|
|
|
32385
32453
|
registerInstance(this, hostRef);
|
|
32386
32454
|
}
|
|
32387
32455
|
render() {
|
|
32388
|
-
return (hAsync(Host, { key: '
|
|
32456
|
+
return (hAsync(Host, { key: 'beb66fb988e3aa831e0f35ce048acc475830baad' }, hAsync("nav", { key: '338c96614e2a2727e3c796a55a9f200e3f9caa34' }, hAsync("ul", { key: 'e37ac6d452a71aa56f686dcf68872f1f45bf7d1a' }, hAsync("li", { key: 'c2678653c29dcd23be4b868f813dfeff81deee39' }, hAsync("slot", { key: '67610abb009942ef9da77ec2347de152c5ea836b' }))))));
|
|
32389
32457
|
}
|
|
32390
32458
|
static get style() { return RoadProgressIndicatorVerticalStyle0; }
|
|
32391
32459
|
static get cmpMeta() { return {
|
|
@@ -32409,7 +32477,7 @@ class ProgressIndicatorVerticalItem {
|
|
|
32409
32477
|
registerInstance(this, hostRef);
|
|
32410
32478
|
}
|
|
32411
32479
|
render() {
|
|
32412
|
-
return (hAsync(Host, { key: '
|
|
32480
|
+
return (hAsync(Host, { key: '2ecabc840c0c3167762d99b2b26d523594789159' }, hAsync("slot", { key: '6e821abe0314f885be46ef02bbf2fa5f2de3200e' })));
|
|
32413
32481
|
}
|
|
32414
32482
|
static get style() { return RoadProgressIndicatorVerticalItemStyle0; }
|
|
32415
32483
|
static get cmpMeta() { return {
|
|
@@ -32438,7 +32506,7 @@ class ProgressTracker {
|
|
|
32438
32506
|
registerInstance(this, hostRef);
|
|
32439
32507
|
}
|
|
32440
32508
|
render() {
|
|
32441
|
-
return (hAsync(Host, { key: '
|
|
32509
|
+
return (hAsync(Host, { key: 'cd8e624e5935fee60d6c2806b10f35f063670a7e' }, hAsync("nav", { key: 'd466e731e0206360490a48181ceecfbe90cbd80f' }, hAsync("ul", { key: '4d43281f9ea40fcc1d3a00d643a8f80dfea3dc06' }, hAsync("li", { key: 'c98da0bd4e82dd5b0698364cae1cd8366179a8ad' }, hAsync("slot", { key: '6be22ff72a0c776ee690f00d5325e781118ee9c0' }))))));
|
|
32442
32510
|
}
|
|
32443
32511
|
static get style() { return RoadProgressTrackerStyle0; }
|
|
32444
32512
|
static get cmpMeta() { return {
|
|
@@ -32470,7 +32538,7 @@ class ProgressTrackerItem {
|
|
|
32470
32538
|
registerInstance(this, hostRef);
|
|
32471
32539
|
}
|
|
32472
32540
|
render() {
|
|
32473
|
-
return (hAsync(Host, { key: '
|
|
32541
|
+
return (hAsync(Host, { key: '4974c1adc0f1b94fc7b9b38ce6dfbc6ec5b6a83c' }, hAsync("slot", { key: '1017553cb17d0ee0a3e50beba3a8937190aec3ea' })));
|
|
32474
32542
|
}
|
|
32475
32543
|
static get style() { return RoadProgressTrackerItemStyle0; }
|
|
32476
32544
|
static get cmpMeta() { return {
|
|
@@ -32563,7 +32631,7 @@ class Radio {
|
|
|
32563
32631
|
const inverseClass = this.inverse && 'form-radio-inverse';
|
|
32564
32632
|
const isInvalidClass = this.error ? 'is-invalid' : '';
|
|
32565
32633
|
const inlineClass = this.inline ? 'form-radio-inline' : '';
|
|
32566
|
-
return (hAsync(Host, { key: '
|
|
32634
|
+
return (hAsync(Host, { key: 'd6494b4cb75474c0d0f7ebf01fa0f7a621ff6bfb', class: `form-radio ${inlineClass}` }, hAsync("input", { key: '10a6f04b26f3b9fa4d3be3230624b37157329883', 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: 'd7d473f4e9bdbab42851b79e5e99180d32d1044a', class: `form-radio-label ${inverseClass}`, id: labelId, htmlFor: this.radioId }, this.label, " ", hAsync("span", { key: '754ecd61b73ff60e5b33ebbdc64df9846a18da27', class: "form-radio-label-span" }, this.secondaryLabel))));
|
|
32567
32635
|
}
|
|
32568
32636
|
get el() { return getElement(this); }
|
|
32569
32637
|
static get style() { return RoadRadioStyle0; }
|
|
@@ -32647,7 +32715,7 @@ class RadioCard {
|
|
|
32647
32715
|
const inlineClass = this.inline ? 'form-radio-inline' : '';
|
|
32648
32716
|
const selectedClass = this.isSelected || this.selected ? 'radio-card-selected' : '';
|
|
32649
32717
|
const disabledClass = this.disabled ? 'radio-card-disabled' : '';
|
|
32650
|
-
return (hAsync(Host, { key: '
|
|
32718
|
+
return (hAsync(Host, { key: '14ae9032c86481f960d41dbddf0511ba8a5473f0', class: `form-radio ${inlineClass}` }, hAsync("div", { key: '1e45b9d4ae27d7918b3a57e66540d3bfd3dee679', class: `radio-card ${selectedClass} ${disabledClass}`, onClick: this.onClick }, hAsync("input", { key: 'a7efac819af7f78cd12df3fd24d38c81523bf7e6', ref: el => this.inputEl = el, class: "form-radio-input", type: "radio", id: this.radioId, name: this.name, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : undefined, checked: this.isSelected || this.selected, "aria-labelledby": labelId, value: this.value, onFocus: this.onFocus, onBlur: this.onBlur, onChange: () => { } }), hAsync("label", { key: '3f13946f208c84de987f07b33acf58fea29163bf', class: "form-radio-label", htmlFor: this.radioId, id: labelId }, hAsync("div", { key: '0a0050a9a4265ba805baa9cd3170cd67afb62c45', class: "slot-wrapper" }, hAsync("slot", { key: '8bf0053c5f8ca25737577965506f2e74e2349a9e' }))))));
|
|
32651
32719
|
}
|
|
32652
32720
|
get el() { return getElement(this); }
|
|
32653
32721
|
static get style() { return RoadRadioCardStyle0; }
|
|
@@ -32744,7 +32812,7 @@ class RadioGroup {
|
|
|
32744
32812
|
render() {
|
|
32745
32813
|
const labelId = `${this.radioGroupId}-label`;
|
|
32746
32814
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
32747
|
-
return (hAsync(Host, { key: '
|
|
32815
|
+
return (hAsync(Host, { key: '031512f29cff332bc4ea9e72faa125ee393df1cc', role: "radiogroup", class: `form-group ${isInvalidClass}`, "aria-label": this.ariaLabel, onClick: this.onClick }, this.label && hAsync("p", { key: 'af10ff2a928246bc82e09ca4d3b4c621f74d8ab4', class: "text-content", id: labelId }, this.label, " ", this.asterisk && hAsync("span", { key: '6d5fb003d47dda437aed9f0304f717382b674f1c', class: "asterisk" }, "*")), hAsync("slot", { key: '1a43f2617f1020130afcd27a81db9b7bc218a297' }), this.error && this.error !== '' && hAsync("p", { key: '482dadfaea1a4ee2650b65dc5ef4de207ba6bb86', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: '9c7da7cfaaf48537c8cc1149dd5d34ac450b1c27', class: "helper" }, this.helper)));
|
|
32748
32816
|
}
|
|
32749
32817
|
get el() { return getElement(this); }
|
|
32750
32818
|
static get watchers() { return {
|
|
@@ -32874,14 +32942,14 @@ class Range {
|
|
|
32874
32942
|
render() {
|
|
32875
32943
|
const value = this.getValue();
|
|
32876
32944
|
const datalist = this.showLabels !== undefined ? `tickmarks` : "";
|
|
32877
|
-
return (hAsync(Host, { key: '
|
|
32945
|
+
return (hAsync(Host, { key: '3e066cbe4e1e65fa75efd027eb04d15b17dcf71d', tabindex: "0", class: { disabled: this.disabled } }, hAsync("div", { key: '5f914e22f5ba6c9d2d8125fbc10ccddd1a7e5b18', class: "form-group d-flex align-items-end" }, this.showTick && (hAsync("road-icon", { key: '91c5de2c81f0ceb500df75279dacbd3d4b6243eb', icon: navigationAddLessSolid, class: "mr-8", size: "sm" })), hAsync("div", { key: '70cc1aa9091e9f88a3b8b9259159bd2a2b9add19', class: "form-range", style: {
|
|
32878
32946
|
"--min": this.min,
|
|
32879
32947
|
"--max": this.max,
|
|
32880
32948
|
"--value": value,
|
|
32881
32949
|
"--background-color": this.disabled
|
|
32882
32950
|
? "var(--road-surface-disabled)"
|
|
32883
32951
|
: "initial",
|
|
32884
|
-
} }, this.showValue && hAsync("output", { key: '
|
|
32952
|
+
} }, this.showValue && hAsync("output", { key: 'a9ba48f65596d47840fd18a85799d7a8a50f9e19' }), this.showLabels && hAsync("slot", { key: '1115ac60b9752d458245da0acf6c2639b76a9780', name: "datalist" }), hAsync("input", { key: '8238712354cfa16b071f99459c539ec3009263ee', 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: '75c0ecc48fe29009a0f853210b64e2639681dce5', class: "form-range-label" }, "Valeur"), hAsync("div", { key: 'e9f54d9c51cb585da328db3566ac629fadabf9bb', class: "form-range-progress" })), this.showTick && (hAsync("road-icon", { key: 'b1b4bd3567bae3b31b61af136a2ae96ca45edb13', icon: navigationAddMoreSolid, class: "ml-8", size: "sm" })))));
|
|
32885
32953
|
}
|
|
32886
32954
|
get el() { return getElement(this); }
|
|
32887
32955
|
static get watchers() { return {
|
|
@@ -32950,7 +33018,7 @@ class Rating {
|
|
|
32950
33018
|
const sizeRatingStarsClass = this.size !== undefined ? `rating-stars rating-stars--${this.size}` : 'rating-stars';
|
|
32951
33019
|
const sizeRatingNumberClass = this.size !== undefined ? `rating-number rating-number--${this.size}` : 'rating-number';
|
|
32952
33020
|
const readOnly = this.readonly == true ? `readonly` : '';
|
|
32953
|
-
return (hAsync(Host, { key: '
|
|
33021
|
+
return (hAsync(Host, { key: '852a04480eb9cf4363845c33c6b1f660f94b766e' }, hAsync("div", { key: '39ddf4c8c030e0565e5f640689bf0b47f77dcd3f', 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: '2ab83abd728887cc1cce4abf5ccdfa950363ad03', class: `${sizeRatingNumberClass}`, href: this.url }, "(", this.reviews, this.reviewsText && ` ${this.reviewsText}`, ")"), this.readonly == true && this.showreviews && hAsync("road-label", { key: '6277bb7d0a773d2438c6fb07df4e4b19da231d30', class: `${sizeRatingNumberClass} ${readOnly}` }, "(", this.reviews, this.reviewsText && ` ${this.reviewsText}`, ")")));
|
|
32954
33022
|
}
|
|
32955
33023
|
static get style() { return RoadRatingStyle0; }
|
|
32956
33024
|
static get cmpMeta() { return {
|
|
@@ -33069,7 +33137,7 @@ class RoadAreaCode {
|
|
|
33069
33137
|
const labelId = this.selectId + '-label';
|
|
33070
33138
|
const valueId = this.selectId + '-value';
|
|
33071
33139
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
33072
|
-
return (hAsync(Host, { key: '
|
|
33140
|
+
return (hAsync(Host, { key: '26ee33f6bad3410d3808dc40546924e467dcd8ef', class: this.sizes && `select-${this.sizes}` }, hAsync("select", { key: '43795fb19216aac9d5611757b461cd23775ba9db', 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: 'd26bc6c8a3c5c10d4f61a130a0bc2b7d8756f1c7', class: "form-select-area-label", id: labelId, htmlFor: this.selectId }, this.label), hAsync("label", { key: '6a239c740e00b9aa178e850a59506e2dfe2a0495', class: "form-select-area-value", id: valueId, htmlFor: this.selectId }, "+", this.selectedValue), this.error && this.error !== '' && hAsync("p", { key: '94338356640510278731eb132e913a73f5019157', class: "invalid-feedback" }, this.error)));
|
|
33073
33141
|
}
|
|
33074
33142
|
static get watchers() { return {
|
|
33075
33143
|
"value": ["valueChanged"]
|
|
@@ -33116,7 +33184,7 @@ class RoadAspectRatio {
|
|
|
33116
33184
|
return `${w} / ${h}`;
|
|
33117
33185
|
}
|
|
33118
33186
|
render() {
|
|
33119
|
-
return (hAsync(Host, { key: '
|
|
33187
|
+
return (hAsync(Host, { key: '5b79fe9eb5a7086f6b2325d919dd706f3171f2ba', style: { '--road-aspect-ratio': this.getCssRatio() } }, hAsync("div", { key: '0a0f5491ad73dc1003cddef9e0bfb2841b20313a', class: "aspect-ratio-wrapper" }, hAsync("div", { key: '5a48baa8c02cd255d86641d049f1bea42bb61fd9', class: "aspect-ratio-content" }, hAsync("slot", { key: '42f99f24730e096c1456cbbae0bb28af8ab5be67' })))));
|
|
33120
33188
|
}
|
|
33121
33189
|
static get style() { return RoadAspectRatioStyle0; }
|
|
33122
33190
|
static get cmpMeta() { return {
|
|
@@ -34493,9 +34561,9 @@ class RoadPhoneNumberInput {
|
|
|
34493
34561
|
const isErrorClass = this.errorMessage.length ? 'is-error' : '';
|
|
34494
34562
|
const hasValueClass = this.hasValue() ? 'has-value' : '';
|
|
34495
34563
|
const sizes = 'xl';
|
|
34496
|
-
return (hAsync(Host, { key: '
|
|
34564
|
+
return (hAsync(Host, { key: 'c300b396ad419dd1d22ddf8656f1492d31b43891' }, hAsync("div", { key: '1dd6a34e0dd1fb0b1d0fe46405e5a6302cc6ce24', class: 'phone-number-inputs-container' }, hAsync("div", { key: '534749041bdd989af8455cda79a679c9f69e0360', class: `road-phone-input-select ${isErrorClass} ${isInvalidClass}`, slot: "prepend" }, hAsync("select", { key: 'e06ee487afda5761b3bb355aadf0c1eeaf6eef5a', 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: '62cead26a8bb565c48784911521decb452f9d27e', class: "form-select-area-label", id: labelId, htmlFor: selectId }, this.codeLabel), hAsync("label", { key: 'ec15acdc2bb7e7c931e76337d7c59b9998d4fc21', class: "form-select-area-value", id: valueId, htmlFor: selectId }, "+", this.selectedCountryCode)), hAsync("input", { key: '01e325e7a02443017d4876e844c66d46a8b1471f', 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: 'c223ec8eb38e8a849eb0e656a4e865fd403121c5', class: "phone-number-input-label", id: labelId, htmlFor: inputId }, this.phoneLabel)), this.errorMessage
|
|
34497
34565
|
&& this.errorMessage !== ''
|
|
34498
|
-
&& hAsync("p", { key: '
|
|
34566
|
+
&& hAsync("p", { key: 'a1a82a8e4c41ff6b584ce80b07b268ddd6356840', class: "invalid-feedback" }, hAsync("road-icon", { key: 'b28ee908fb8626c5c891aad6a9f2ccb2fd3d47b1', slot: "start", color: 'danger', name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), this.errorMessage)));
|
|
34499
34567
|
}
|
|
34500
34568
|
get el() { return getElement(this); }
|
|
34501
34569
|
static get style() { return RoadPhoneNumberInputStyle0; }
|
|
@@ -34614,7 +34682,7 @@ class RoadTimeRangePicker {
|
|
|
34614
34682
|
return { start: this.start, end: this.end };
|
|
34615
34683
|
}
|
|
34616
34684
|
render() {
|
|
34617
|
-
return (hAsync(Host, { key: '
|
|
34685
|
+
return (hAsync(Host, { key: '09a7238b070bd471ca7e129f89528c34c9ee5cd7', class: `time-range-picker input-${this.sizes}` }, this.label && (hAsync("p", { key: '9bd29e28efe88c965c5007fbcadd10d8c0688fd3', class: "label m-0" }, this.label, this.required && hAsync("span", { key: '29b8577337047177fb4e1baae22ff5bc860303a8', class: "required-indicator" }, " *"))), hAsync("div", { key: '50bb320324c425ae30724d4160707590a0484b87', class: "time-range-picker-content d-flex align-items-center my-4" }, hAsync("slot", { key: '2b7dcf90c23d762cc3e6a1becf30ca3c4072ae48', name: "start" }), hAsync("span", { key: 'c9c93c212b949e59b18fdd79ffbd047bea41e502', class: "separator mx-12" }, this.separator), hAsync("slot", { key: 'f013f7f8fb0a47780d45ae6353fdf3d4c3448e4a', name: "end" })), hAsync("div", { key: '1897f8902f28912624da8a2d35252093064b0b19', class: "messages mt-1" }, this.errorMessages.map((msg, index) => (hAsync("p", { key: index, class: "invalid-feedback m-0" }, hAsync("road-icon", { slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), msg.trim())))), this.helper && hAsync("p", { key: 'c05b1a8b51dc01105508139936fa1794954ea76f', class: "helper mt-1" }, this.helper)));
|
|
34618
34686
|
}
|
|
34619
34687
|
get hostEl() { return getElement(this); }
|
|
34620
34688
|
static get style() { return RoadTimeRangePickerStyle0; }
|
|
@@ -34650,7 +34718,7 @@ class Row {
|
|
|
34650
34718
|
registerInstance(this, hostRef);
|
|
34651
34719
|
}
|
|
34652
34720
|
render() {
|
|
34653
|
-
return (hAsync(Host, { key: '
|
|
34721
|
+
return (hAsync(Host, { key: 'afa1b952153c85d65d8d934291b6de4ded45f5c6' }, hAsync("slot", { key: '19d35af492b9db9b52d45be4fabafa03a6b1cc71' })));
|
|
34654
34722
|
}
|
|
34655
34723
|
static get style() { return RoadRowStyle0; }
|
|
34656
34724
|
static get cmpMeta() { return {
|
|
@@ -34722,11 +34790,11 @@ class SegmentedButton {
|
|
|
34722
34790
|
render() {
|
|
34723
34791
|
const { tabIndex, selected, tab } = this;
|
|
34724
34792
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
34725
|
-
return (hAsync(Host, { key: '
|
|
34793
|
+
return (hAsync(Host, { key: 'fd69e361fd1e176b70cc50bf10dcbef9aad672cd', onClick: this.onClick, onKeyup: this.onKeyUp, role: "tab", tabindex: tabIndex, "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
34726
34794
|
'tab-selected': selected,
|
|
34727
34795
|
[`${sizeClass}`]: true,
|
|
34728
|
-
} }, hAsync("span", { key: '
|
|
34729
|
-
hAsync("road-badge", { key: '
|
|
34796
|
+
} }, hAsync("span", { key: 'df419883a7d440fcd205e81e721c2f1640de231e', tabIndex: -1, class: "button-native", part: "native", "aria-hidden": "true" }, hAsync("span", { key: 'ad1f41ee0aaa11c2dba8fb3a09b6065fe5e8bedf', class: "button-content" }, hAsync("slot", { key: 'dfb4e9649cc4ae7b41bd5a181d40c1fa3c9a0f92' }), this.badge &&
|
|
34797
|
+
hAsync("road-badge", { key: 'a097702e82fddfac65166bd0bbd19bc31146f2a5', color: this.selected ? 'primary' : 'neutral', class: "button-content-badge" }, this.badge)))));
|
|
34730
34798
|
}
|
|
34731
34799
|
get el() { return getElement(this); }
|
|
34732
34800
|
static get style() { return RoadSegmentedButtonStyle0; }
|
|
@@ -34848,7 +34916,7 @@ class Select {
|
|
|
34848
34916
|
const labelId = this.selectId + '-label';
|
|
34849
34917
|
const hasValueClass = this.value && this.value !== '' ? 'has-value' : '';
|
|
34850
34918
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
34851
|
-
return (hAsync(Host, { key: '
|
|
34919
|
+
return (hAsync(Host, { key: 'b4cafa168a39a721ebb8befb821851af64815909', class: this.sizes && `select-${this.sizes}` }, hAsync("select", { key: 'bc8c195bad4142da8a495e14a9d56a0ed0de9349', 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: 'fe320dbe0052e71a9b11219c842800adf518a758', 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: 'e7a0482a1ae9116e1a8fe6fdc65eca8dfc607661', class: "form-select-label", id: labelId, htmlFor: this.selectId }, this.label), this.error && this.error !== '' && hAsync("p", { key: '7055cbe47e2b43288e472646b4ca4d0724f7d82e', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: '1946f4c9d0818298e9135e3a6d447a967f52e7ba', class: "helper" }, this.helper)));
|
|
34852
34920
|
}
|
|
34853
34921
|
static get watchers() { return {
|
|
34854
34922
|
"value": ["valueChanged"]
|
|
@@ -36842,7 +36910,7 @@ class SelectFilter {
|
|
|
36842
36910
|
const options = this.filteredOptions;
|
|
36843
36911
|
const isActive = this.isActive ? 'true' : 'false';
|
|
36844
36912
|
const notActive = this.isActive ? '' : 'not-active';
|
|
36845
|
-
return (hAsync(Host, { key: '
|
|
36913
|
+
return (hAsync(Host, { key: 'd6c3a042fc1e44b330d4f9a84827a3659a512caf', "is-active": isActive }, hAsync("slot", { key: '128d98278c897190c2b2e475ac851181570dbf49' }), this.isOpen && (hAsync("div", { key: 'c09f07e2d024c67fd1bac3ffbf0b562d157826d2', class: `${notActive} select-filter-list`, role: "listbox", onMouseLeave: this.handleMouseLeave }, options.length === 0 ? (hAsync("div", { class: "select-filter-empty" }, "Aucune option")) : (hAsync("ul", { class: "pl-0" }, options.map((option, idx) => (hAsync("li", { class: `select-filter-item ${this.activeIndex === idx ? 'active' : ''}`, role: "option", "aria-selected": this.activeIndex === idx ? 'true' : 'false', onClick: (e) => this.handleOptionClick(option.item.value, option.item.label.replace(/(<([^>]+)>)/gi, ''), e), onMouseOver: () => this.handleOptionMouseOver(idx), innerHTML: option.item.label, tabindex: this.activeIndex === idx ? 0 : -1 })))))))));
|
|
36846
36914
|
}
|
|
36847
36915
|
get el() { return getElement(this); }
|
|
36848
36916
|
static get watchers() { return {
|
|
@@ -36878,7 +36946,7 @@ class Skeleton {
|
|
|
36878
36946
|
registerInstance(this, hostRef);
|
|
36879
36947
|
}
|
|
36880
36948
|
render() {
|
|
36881
|
-
return (hAsync("span", { key: '
|
|
36949
|
+
return (hAsync("span", { key: '3ea322ba0c0478ae98e116ca0a14c6db8cf83fa5' }, "\u00A0"));
|
|
36882
36950
|
}
|
|
36883
36951
|
static get style() { return RoadSkeletonStyle0; }
|
|
36884
36952
|
static get cmpMeta() { return {
|
|
@@ -36909,7 +36977,7 @@ class Spinner {
|
|
|
36909
36977
|
render() {
|
|
36910
36978
|
const sizeClass = this.size !== undefined ? `spinner spinner--${this.size}` : 'spinner';
|
|
36911
36979
|
const colorClass = this.size !== undefined ? `spinner-circle spinner-circle--${this.color}` : 'spinner-circle';
|
|
36912
|
-
return (hAsync("svg", { key: '
|
|
36980
|
+
return (hAsync("svg", { key: 'ba8404bfa593df14d50579b442066e7cd07c49ff', class: `${sizeClass}`, viewBox: "25 25 50 50" }, hAsync("circle", { key: 'ed113cdc5a2478d9acd6081da1000193f6580b68', class: `${colorClass}`, cx: "50", cy: "50", r: "20" })));
|
|
36913
36981
|
}
|
|
36914
36982
|
static get style() { return RoadSpinnerStyle0; }
|
|
36915
36983
|
static get cmpMeta() { return {
|
|
@@ -36950,7 +37018,7 @@ class StatusChip {
|
|
|
36950
37018
|
};
|
|
36951
37019
|
}
|
|
36952
37020
|
render() {
|
|
36953
|
-
return (hAsync(Host, { key: '
|
|
37021
|
+
return (hAsync(Host, { key: '836c5b7abbe5ac3b42e5cc53d16bfb01457aaed3', class: `chip-${this.size}`, tabindex: "0", role: "button", onClick: this.onActivate, onKeyDown: this.onKeyDown }, hAsync("div", { key: 'b3956466b009f103579b1daf48b355a1ef8c6d4a', class: "chip-description" }, hAsync("road-icon", { key: '6c3c901790b0b83b5d59fd79ff5d7b1c1edd262b', class: "chip-icon", color: "info", icon: alertInfoSolid }), hAsync("slot", { key: '2971da2e3f4d5759046f547aad0ccc5e4d152b12' }))));
|
|
36954
37022
|
}
|
|
36955
37023
|
static get style() { return RoadStatusChipStyle0; }
|
|
36956
37024
|
static get cmpMeta() { return {
|
|
@@ -36999,7 +37067,7 @@ class Stepper {
|
|
|
36999
37067
|
const urlStep1 = this.urlStep1 !== undefined ? `${this.urlStep1}` : '#';
|
|
37000
37068
|
const urlStep2 = this.urlStep2 !== undefined ? `${this.urlStep2}` : '#';
|
|
37001
37069
|
const urlStep3 = this.urlStep3 !== undefined ? `${this.urlStep3}` : '#';
|
|
37002
|
-
return (hAsync(Host, { key: '
|
|
37070
|
+
return (hAsync(Host, { key: 'f73aeb1cf58b9d45eb82694b54dcf5f1b5039e4d' }, hAsync("nav", { key: 'f4d26418da4e3dcdb34902e11e6aad4bb6c8b000' }, hAsync("ul", { key: '4c71a1a906c4530496dcaab1c276e4a8dcce1c18', class: `${colorClass}` }, hAsync("li", { key: '27999972b03f4be0134e1f01ecd5bd49fab7a977', class: `${stateClass}` }, hAsync("a", { key: '77e946a448095ac01b891f493500cb1513170e5c', class: "progress-indicator-horizontal-link", href: `${urlStep1}` }, hAsync("span", { key: '69935ba6f7fb94b3cf945c9385a99dc73e39ce63', class: "progress-indicator-horizontal-icon" }, hAsync("slot", { key: '4afe253f303b6120b1b0b4a46994a2b0ac1769a3', name: "progress-indicator-horizontal-icon" })), hAsync("span", { key: '48d8f28440e0d25bf390737fcd3978e3130be48d', class: "progress-indicator-horizontal-title" }, hAsync("slot", { key: '42319dd7b419341eb4a8ebe5b519b9bc696cd3f8', name: "progress-indicator-horizontal-title" })))), hAsync("li", { key: 'f0d7ceac532e39a686ea4077c29118bf99e7582b', class: `${stateSecondStepClass}` }, hAsync("a", { key: '9b2050e0b9d96a29c2354e4cb4a24b3c011cc39f', class: "progress-indicator-horizontal-link", href: `${urlStep2}` }, hAsync("span", { key: '37505e542762c3ed5bb9525ef375d05889c5d5da', class: "progress-indicator-horizontal-icon" }, hAsync("slot", { key: 'e9c3395d7fe1b670dc904c87976c824c6e9a56ff', name: "progress-indicator-horizontal-icon2" })), hAsync("span", { key: '1a636a616b0ad870ca20e5321cedfd7e0109e228', class: "progress-indicator-horizontal-title" }, hAsync("slot", { key: '243145835dfe703cf4c533f3671ba5cdaa3b3a6e', name: "progress-indicator-horizontal-title2" })))), this.numberStep == 3 && hAsync("li", { key: 'b991c413bc2ca7f325764ff8ede460ef8cf2bc62', class: `${stateThirdStepClass}` }, hAsync("a", { key: '79314fe63d4ee58d988ab5fc466b5536d651f690', class: "progress-indicator-horizontal-link", href: `${urlStep3}` }, hAsync("span", { key: '422ae64cbd0c01f141a76c1dcbc8a59a636df022', class: "progress-indicator-horizontal-icon" }, hAsync("slot", { key: 'd19ca0938a4d159d10e1d7db366f1ee2a75a73be', name: "progress-indicator-horizontal-icon3" })), hAsync("span", { key: 'cda180415f7a56a7135625d8939452069e2893e0', class: "progress-indicator-horizontal-title" }, hAsync("slot", { key: 'a7b46c759e1f754987db88e50b5b32e1acbb0503', name: "progress-indicator-horizontal-title3" }))))))));
|
|
37003
37071
|
}
|
|
37004
37072
|
static get style() { return RoadProgressIndicatorHorizontalStyle0; }
|
|
37005
37073
|
static get cmpMeta() { return {
|
|
@@ -37101,11 +37169,11 @@ class Switch {
|
|
|
37101
37169
|
}
|
|
37102
37170
|
render() {
|
|
37103
37171
|
const labelId = this.switchId + '-label';
|
|
37104
|
-
const textLabel = hAsync("label", { key: '
|
|
37172
|
+
const textLabel = hAsync("label", { key: 'c63f963676593a49bfb56c9d7c33a9e98cee2715', class: "form-switch-label", id: labelId, htmlFor: this.switchId }, this.label);
|
|
37105
37173
|
const colorClass = this.color !== undefined ? 'form-switch-' + this.color : '';
|
|
37106
37174
|
const isSpacedClass = this.isSpaced && 'form-switch-spaced';
|
|
37107
37175
|
const rightSwitchClass = this.hasLeftLabel ? 'form-switch-right' : '';
|
|
37108
|
-
return (hAsync(Host, { key: '
|
|
37176
|
+
return (hAsync(Host, { key: 'f20db3c48659d8708758130b4d96587774504f02' }, hAsync("input", { key: 'bfe919d227e9403bf044243af064c45b89e8ae53', 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: '8db0e91b1d833e29a5e3ca93a2747cf8fd202840', class: `form-switch-label ${isSpacedClass} ${colorClass}`, htmlFor: this.switchId }, this.hasLeftLabel && textLabel, hAsync("div", { key: '80236cacfc5636bdef63c8f06dd20add0fa7a705', class: `form-switch-lever ${rightSwitchClass}`, "data-off": this.off, "data-on": this.on }), this.hasLeftLabel ? '' : textLabel)));
|
|
37109
37177
|
}
|
|
37110
37178
|
static get watchers() { return {
|
|
37111
37179
|
"checked": ["checkedChanged"]
|
|
@@ -37160,9 +37228,9 @@ class Tab {
|
|
|
37160
37228
|
}
|
|
37161
37229
|
render() {
|
|
37162
37230
|
const { tab, active } = this;
|
|
37163
|
-
return (hAsync(Host, { key: '
|
|
37231
|
+
return (hAsync(Host, { key: 'e77050a903a5bc618c0a95dbdcac55987ba90ef6', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
37164
37232
|
'tab-hidden': !active,
|
|
37165
|
-
} }, hAsync("slot", { key: '
|
|
37233
|
+
} }, hAsync("slot", { key: '7d8e9336bbafd68e2bb8449e617dd0132c132192' })));
|
|
37166
37234
|
}
|
|
37167
37235
|
get el() { return getElement(this); }
|
|
37168
37236
|
static get style() { return RoadTabStyle0; }
|
|
@@ -37222,11 +37290,11 @@ class TabBar {
|
|
|
37222
37290
|
}
|
|
37223
37291
|
render() {
|
|
37224
37292
|
const { expand, center, secondary } = this;
|
|
37225
|
-
return (hAsync(Host, { key: '
|
|
37293
|
+
return (hAsync(Host, { key: 'f152f7039aa51f964ce7885d2f38e09212af53b1', role: "tablist", class: {
|
|
37226
37294
|
'tab-expand': expand,
|
|
37227
37295
|
'tab-center': center,
|
|
37228
37296
|
'tab-secondary': secondary,
|
|
37229
|
-
} }, hAsync("slot", { key: '
|
|
37297
|
+
} }, hAsync("slot", { key: '1f478b0967e23fde82e5fcc706aacd6c8ed64132' })));
|
|
37230
37298
|
}
|
|
37231
37299
|
get el() { return getElement(this); }
|
|
37232
37300
|
static get watchers() { return {
|
|
@@ -37326,7 +37394,7 @@ class TabButton {
|
|
|
37326
37394
|
rel,
|
|
37327
37395
|
target,
|
|
37328
37396
|
};
|
|
37329
|
-
return (hAsync(Host, { key: '
|
|
37397
|
+
return (hAsync(Host, { key: '561d03fa0ebc0fe282db9c3e5030e514bc045a16', 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: {
|
|
37330
37398
|
'tab-selected': selected,
|
|
37331
37399
|
'tab-has-label': hasLabel,
|
|
37332
37400
|
'tab-has-icon': hasIcon,
|
|
@@ -37334,7 +37402,7 @@ class TabButton {
|
|
|
37334
37402
|
'tab-has-icon-only': hasIcon && !hasLabel,
|
|
37335
37403
|
[`tab-layout-${layout}`]: true,
|
|
37336
37404
|
'tab-disabled': disabled, // Classe CSS pour les styles désactivés
|
|
37337
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
37405
|
+
} }, hAsync("a", Object.assign({ key: '05869bf57b41803041856c17aaa80c2432c71470' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), hAsync("span", { key: '8c60935c2a74a4e53472c3be5d3829ab0c3116f8', class: "button-inner" }, hAsync("slot", { key: '1d317edbc8b2553b85a2077b0e5a978f828b9351' })))));
|
|
37338
37406
|
}
|
|
37339
37407
|
get el() { return getElement(this); }
|
|
37340
37408
|
static get style() { return RoadTabButtonStyle0; }
|
|
@@ -37368,7 +37436,7 @@ class Table {
|
|
|
37368
37436
|
registerInstance(this, hostRef);
|
|
37369
37437
|
}
|
|
37370
37438
|
render() {
|
|
37371
|
-
return (hAsync("slot", { key: '
|
|
37439
|
+
return (hAsync("slot", { key: 'bf75831fb9aaeddb5d0d48914427042d2d22477c' }));
|
|
37372
37440
|
}
|
|
37373
37441
|
static get style() { return RoadTableStyle0; }
|
|
37374
37442
|
static get cmpMeta() { return {
|
|
@@ -37476,7 +37544,7 @@ class Tabs$1 {
|
|
|
37476
37544
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
37477
37545
|
}
|
|
37478
37546
|
render() {
|
|
37479
|
-
return (hAsync(Host, { key: '
|
|
37547
|
+
return (hAsync(Host, { key: '04b1801e9f8e91e39581c8f449ee6b839763c688', onRoadSegmentedButtonClick: this.onTabClicked }, hAsync("slot", { key: '554c778cdf10304cb32d5ab743945f717f97b8e9', name: "top" }), hAsync("slot", { key: '47d1e5b9f1227a79a7883825fcddd23853b676a4' })));
|
|
37480
37548
|
}
|
|
37481
37549
|
get el() { return getElement(this); }
|
|
37482
37550
|
static get style() { return RoadSegmentedButtonsStyle0; }
|
|
@@ -37612,7 +37680,7 @@ class Tabs {
|
|
|
37612
37680
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
37613
37681
|
}
|
|
37614
37682
|
render() {
|
|
37615
|
-
return (hAsync(Host, { key: '
|
|
37683
|
+
return (hAsync(Host, { key: '696e52454356341fc30234d26597c4bd88f9aa54', onRoadTabButtonClick: this.onTabClicked }, hAsync("slot", { key: 'e45c7580bd61aa8b6e5245a263bbe6ef6651132e', name: "top" }), hAsync("div", { key: '6c8b5332fa2ee081319199d8e71dd463d6249676', class: "tabs-inner" }, hAsync("slot", { key: '4974046b327b3d4ddef1bbb82b2ecd39c62a9472' }))));
|
|
37616
37684
|
}
|
|
37617
37685
|
get el() { return getElement(this); }
|
|
37618
37686
|
static get style() { return RoadTabsStyle0; }
|
|
@@ -37660,7 +37728,7 @@ class Tag {
|
|
|
37660
37728
|
}
|
|
37661
37729
|
render() {
|
|
37662
37730
|
const contrastClass = this.contrast ? `tag-${this.color} tag-${this.color}-contrast` : `tag-${this.color}`;
|
|
37663
|
-
return (hAsync(Host, { key: '
|
|
37731
|
+
return (hAsync(Host, { key: '07aa9eaf941fd3e6820304e5698ff7a379c27d96', class: `${contrastClass}` }, hAsync("slot", { key: '3777ebead8dd1ecad0f10eb176c9187580e771e1' })));
|
|
37664
37732
|
}
|
|
37665
37733
|
static get style() { return RoadTagStyle0; }
|
|
37666
37734
|
static get cmpMeta() { return {
|
|
@@ -37692,7 +37760,7 @@ class Text {
|
|
|
37692
37760
|
}
|
|
37693
37761
|
render() {
|
|
37694
37762
|
const colorClass = this.color !== undefined ? `text-${this.color}` : '';
|
|
37695
|
-
return (hAsync(Host, { key: '
|
|
37763
|
+
return (hAsync(Host, { key: '8462ec056e351302fcbdf0b046a6160d94733de6', class: `${colorClass}` }, hAsync("slot", { key: 'ac32d9732a1cb417a5fef9fea546ce478d9b4123' })));
|
|
37696
37764
|
}
|
|
37697
37765
|
static get style() { return RoadTextStyle0; }
|
|
37698
37766
|
static get cmpMeta() { return {
|
|
@@ -37823,7 +37891,7 @@ class Textarea {
|
|
|
37823
37891
|
const hasValueClass = this.value !== '' ? 'has-value' : '';
|
|
37824
37892
|
const noResizeClass = this.resize == false ? 'no-resize' : '';
|
|
37825
37893
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
37826
|
-
return (hAsync(Host, { key: '
|
|
37894
|
+
return (hAsync(Host, { key: 'ddc120f885c45aa6201eaf945a250ec70ff96283', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}` }, hAsync("textarea", { key: '33ba211611355b13fbdd30b05cf0efdee598fc1a', 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, onCompositionstart: this.onCompositionStart, onCompositionupdate: this.onCompositionUpdate, onCompositionend: this.onCompositionEnd, onBlur: this.onBlur, onFocus: this.onFocus, ref: el => (this.textareaEl = el) }), hAsync("label", { key: '2d71214f423086aae57f0167a8c8cb808c7b247b', class: "form-label", id: labelId, htmlFor: this.textareaId }, this.label), this.error && this.error !== '' && hAsync("p", { key: '04770bc5971336927c0aa77327a0823ecc049e37', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: 'a274cad5d2cb2e8076fb17505f491f52bd0dfac7', class: "helper" }, this.helper)));
|
|
37827
37895
|
}
|
|
37828
37896
|
static get watchers() { return {
|
|
37829
37897
|
"value": ["valueChanged"]
|
|
@@ -37863,7 +37931,7 @@ class Textarea {
|
|
|
37863
37931
|
}
|
|
37864
37932
|
let textareaIds = 0;
|
|
37865
37933
|
|
|
37866
|
-
const toastCss = ":host{position:fixed;right:0;bottom:1rem;left:0;z-index:1;display:flex;justify-content:center;width:328px;margin:0 auto;pointer-events:none;visibility:hidden;opacity:0;transition:opacity .3s ease-in-out,visibility .15s,transform .3s ease-in-out;transform:translateY(-100%)}@media (min-width: 1200px){:host{right:1.5rem;bottom:3rem;left:auto;width:auto;transform:translateX(100%)}}:host(.toast-open){visibility:visible;opacity:1;transform:none}.toast{position:relative;box-sizing:border-box;display:flex;flex:0 0 100%;flex-flow:wrap;align-items:flex-start;width:328px;padding:0.75rem 2rem 0.6rem 1rem;font-family:var(--road-font);font-size:var(--road-body-medium);line-height:1.4;color:var(--road-on-info-surface-inverse);text-align:left;background:var(--road-info-surface-inverse);border-radius:0.25rem}@media (min-width: 575px){.toast{padding:1rem;margin-right:auto;margin-left:auto}}.toast-danger{color:var(--road-on-danger-surface-inverse);
|
|
37934
|
+
const toastCss = ":host{position:fixed;right:0;bottom:1rem;left:0;z-index:1;display:flex;justify-content:center;width:328px;margin:0 auto;--road-toast-timeout:5000ms;pointer-events:none;visibility:hidden;opacity:0;transition:opacity .3s ease-in-out,visibility .15s,transform .3s ease-in-out;transform:translateY(-100%)}@media (min-width: 1200px){:host{right:1.5rem;bottom:3rem;left:auto;width:auto;transform:translateX(100%)}}:host(.toast-open){visibility:visible;opacity:1;transform:none}.toast{position:relative;box-sizing:border-box;display:flex;flex:0 0 100%;flex-flow:wrap;align-items:flex-start;width:328px;padding:0.75rem 2rem 0.6rem 1rem;font-family:var(--road-font);font-size:var(--road-body-medium);line-height:1.4;color:var(--road-on-info-surface-inverse);text-align:left;background:var(--road-info-surface-inverse);border-radius:0.25rem;pointer-events:all;--road-progress-animation-play-state:running}.toast:hover,.toast:focus-within{--road-progress-animation-play-state:paused}@media (min-width: 575px){.toast{padding:1rem;margin-right:auto;margin-left:auto}}.toast-danger{color:var(--road-on-danger-surface-inverse);background:var(--road-danger-surface-inverse)}.toast-danger road-icon{color:var(--road-danger-icon-inverse)}.toast-warning{color:var(--road-on-warning-surface-inverse);background:var(--road-warning-surface-inverse)}.toast-warning road-icon{color:var(--road-warning-icon-inverse)}.toast-success{color:var(--road-on-success-surface-inverse);background:var(--road-success-surface-inverse)}.toast-success road-icon{color:var(--road-success-icon-inverse)}.toast-info{color:var(--road-on-info-surface-inverse);background:var(--road-info-surface-inverse)}.toast-info road-icon{color:var(--road-info-icon-inverse)}.toast-icon{top:auto;left:0.5rem;margin-top:-5px;margin-right:0.5rem}@media (min-width: 575px){.toast-icon{position:relative;top:auto;left:auto;margin-right:0.5rem}}.toast-close{position:absolute;right:0.5rem;padding:0;color:inherit;cursor:pointer;background:none;border:0;border-radius:4px;fill:var(--road-info-icon-inverse);height:1.5rem}.toast-warning .toast-close{fill:var(--road-warning-icon-inverse)}.toast-close:focus{border-color:var(--road-info-surface-inverse);outline:none}.toast-close:focus-visible{outline:2px solid currentColor;outline-offset:2px}.toast:focus-within{outline:2px solid currentColor;outline-offset:2px}.toast-label{width:240px;margin:0}:host ::slotted(road-progress){position:absolute;bottom:-8px;left:0;flex-basis:100%;width:100%;margin-top:0.5rem;--road-progress-animation-duration:var(--road-toast-timeout)}@keyframes load{0%{width:0}100%{width:100%}}";
|
|
37867
37935
|
var RoadToastStyle0 = toastCss;
|
|
37868
37936
|
|
|
37869
37937
|
/**
|
|
@@ -37878,6 +37946,8 @@ class Toast {
|
|
|
37878
37946
|
constructor(hostRef) {
|
|
37879
37947
|
registerInstance(this, hostRef);
|
|
37880
37948
|
this.onClose = createEvent(this, "close", 7);
|
|
37949
|
+
this.isHovered = false;
|
|
37950
|
+
this.isFocusWithin = false;
|
|
37881
37951
|
/**
|
|
37882
37952
|
* Set `open` propertie to `true` to open the toast
|
|
37883
37953
|
*/
|
|
@@ -37891,6 +37961,26 @@ class Toast {
|
|
|
37891
37961
|
* until `close()` is called.
|
|
37892
37962
|
*/
|
|
37893
37963
|
this.timeout = 5000;
|
|
37964
|
+
this.onMouseEnter = () => {
|
|
37965
|
+
this.isHovered = true;
|
|
37966
|
+
this.clearAutoClose();
|
|
37967
|
+
};
|
|
37968
|
+
this.onMouseLeave = () => {
|
|
37969
|
+
this.isHovered = false;
|
|
37970
|
+
this.scheduleAutoClose();
|
|
37971
|
+
};
|
|
37972
|
+
this.onFocusIn = () => {
|
|
37973
|
+
this.isFocusWithin = true;
|
|
37974
|
+
this.clearAutoClose();
|
|
37975
|
+
};
|
|
37976
|
+
this.onFocusOut = (ev) => {
|
|
37977
|
+
const next = ev.relatedTarget;
|
|
37978
|
+
const current = ev.currentTarget;
|
|
37979
|
+
if (current && next && current.contains(next))
|
|
37980
|
+
return;
|
|
37981
|
+
this.isFocusWithin = false;
|
|
37982
|
+
this.scheduleAutoClose();
|
|
37983
|
+
};
|
|
37894
37984
|
/**
|
|
37895
37985
|
* Close the dialog when clicking on the cross or layer
|
|
37896
37986
|
*/
|
|
@@ -37904,35 +37994,64 @@ class Toast {
|
|
|
37904
37994
|
* Watch the isOpen property to start the timeout before closing
|
|
37905
37995
|
*/
|
|
37906
37996
|
isOpenChanged() {
|
|
37907
|
-
if (this.isOpen
|
|
37908
|
-
|
|
37997
|
+
if (this.isOpen)
|
|
37998
|
+
this.scheduleAutoClose();
|
|
37999
|
+
else
|
|
38000
|
+
this.clearAutoClose();
|
|
38001
|
+
}
|
|
38002
|
+
timeoutChanged() {
|
|
38003
|
+
if (this.isOpen)
|
|
38004
|
+
this.scheduleAutoClose();
|
|
38005
|
+
}
|
|
38006
|
+
colorChanged() {
|
|
38007
|
+
if (this.isOpen)
|
|
38008
|
+
this.scheduleAutoClose();
|
|
38009
|
+
}
|
|
38010
|
+
getEffectiveTimeout() {
|
|
38011
|
+
if (this.color === 'danger')
|
|
38012
|
+
return 0;
|
|
38013
|
+
return this.timeout;
|
|
38014
|
+
}
|
|
38015
|
+
clearAutoClose() {
|
|
38016
|
+
if (this.autoCloseTimeoutId != null) {
|
|
38017
|
+
clearTimeout(this.autoCloseTimeoutId);
|
|
38018
|
+
this.autoCloseTimeoutId = undefined;
|
|
37909
38019
|
}
|
|
37910
38020
|
}
|
|
38021
|
+
scheduleAutoClose() {
|
|
38022
|
+
this.clearAutoClose();
|
|
38023
|
+
if (!this.isOpen)
|
|
38024
|
+
return;
|
|
38025
|
+
if (this.isHovered || this.isFocusWithin)
|
|
38026
|
+
return;
|
|
38027
|
+
const effectiveTimeout = this.getEffectiveTimeout();
|
|
38028
|
+
if (effectiveTimeout <= 0)
|
|
38029
|
+
return;
|
|
38030
|
+
this.autoCloseTimeoutId = window.setTimeout(() => {
|
|
38031
|
+
this.close();
|
|
38032
|
+
}, effectiveTimeout);
|
|
38033
|
+
}
|
|
37911
38034
|
/**
|
|
37912
38035
|
* Open the toast
|
|
37913
38036
|
*/
|
|
37914
38037
|
async open() {
|
|
37915
38038
|
this.isOpen = true;
|
|
37916
|
-
if (this.timeout > 0) {
|
|
37917
|
-
setTimeout(() => {
|
|
37918
|
-
this.close();
|
|
37919
|
-
}, this.timeout);
|
|
37920
|
-
}
|
|
37921
38039
|
}
|
|
37922
38040
|
/**
|
|
37923
38041
|
* Close the toast
|
|
37924
38042
|
*/
|
|
37925
38043
|
async close() {
|
|
38044
|
+
this.clearAutoClose();
|
|
37926
38045
|
this.isOpen = false;
|
|
37927
38046
|
this.onClose.emit();
|
|
37928
38047
|
}
|
|
37929
38048
|
componentDidLoad() {
|
|
37930
|
-
if (this.isOpen
|
|
37931
|
-
|
|
37932
|
-
}
|
|
38049
|
+
if (this.isOpen)
|
|
38050
|
+
this.scheduleAutoClose();
|
|
37933
38051
|
}
|
|
37934
38052
|
render() {
|
|
37935
38053
|
const toastIsOpenClass = this.isOpen ? 'toast-open' : '';
|
|
38054
|
+
const effectiveTimeout = this.getEffectiveTimeout();
|
|
37936
38055
|
let icon;
|
|
37937
38056
|
switch (this.color) {
|
|
37938
38057
|
case 'info':
|
|
@@ -37954,10 +38073,12 @@ class Toast {
|
|
|
37954
38073
|
if (this.color == 'danger') {
|
|
37955
38074
|
this.timeout = 0;
|
|
37956
38075
|
}
|
|
37957
|
-
return (hAsync(Host, { key: '
|
|
38076
|
+
return (hAsync(Host, { key: '6a5641b844537484ad87d8310f44bec732a84fab', class: `${toastIsOpenClass}`, role: "alert" }, hAsync("div", { key: '73a8ab651e28430ec4b6feef2918df26ee242291', class: `toast toast-${this.color}` }, hAsync("road-icon", { key: '35511f526c1ce411b6d597edb4147b03b83a65b7', class: "toast-icon", icon: icon, "aria-hidden": "true" }), hAsync("p", { key: 'f2b4358588f74a4e5c79aa5eac8b235a7715712c', class: "toast-label" }, this.label), hAsync("button", { key: '6fc5cbd9d4b90028151a761af1a6ac288971bddc', type: "button", class: "toast-close", "aria-label": "Close", onClick: this.onClick }, hAsync("road-icon", { key: 'e2e4c5c5b65471b87a00d994c57f8df48aeaf4a5', icon: navigationClose, size: "md" })), hAsync("slot", { key: '370181e3e948d369b95baa006d28fe22b88ba84c', name: "progress" }))));
|
|
37958
38077
|
}
|
|
37959
38078
|
static get watchers() { return {
|
|
37960
|
-
"isOpen": ["isOpenChanged"]
|
|
38079
|
+
"isOpen": ["isOpenChanged"],
|
|
38080
|
+
"timeout": ["timeoutChanged"],
|
|
38081
|
+
"color": ["colorChanged"]
|
|
37961
38082
|
}; }
|
|
37962
38083
|
static get style() { return RoadToastStyle0; }
|
|
37963
38084
|
static get cmpMeta() { return {
|
|
@@ -37994,7 +38115,7 @@ class Toolbar {
|
|
|
37994
38115
|
}
|
|
37995
38116
|
render() {
|
|
37996
38117
|
const colorClass = this.color !== undefined ? `toolbar-${this.color}` : '';
|
|
37997
|
-
return (hAsync(Host, { key: '
|
|
38118
|
+
return (hAsync(Host, { key: '69b08fceaa3fbdf9da4ca42f14fc227875e40233', class: colorClass }, hAsync("div", { key: '6168cb5d7084d7c241ee5b522a8375cee71ad8a6', class: "toolbar-container" }, hAsync("slot", { key: '030b5477ee92706cad1d4a349503129a2b255bb5', name: "start" }), hAsync("slot", { key: '16e6c5418744f807659f160a288df7e14834748f', name: "primary" }), hAsync("div", { key: 'ac3c8ccf8a10cdce55d67133d3c30326cc501c16', class: "toolbar-content" }, hAsync("slot", { key: 'cc650e6357e66b625b884127a4156947cf183ea5' })), hAsync("slot", { key: '713e3c955d8edf617049016d9194b39487774c12', name: "secondary" }), hAsync("slot", { key: '9ae71e60c5fbe054bc4acbab2fa7b833d2e4e1fb', name: "end" }))));
|
|
37998
38119
|
}
|
|
37999
38120
|
static get style() { return RoadToolbarStyle0; }
|
|
38000
38121
|
static get cmpMeta() { return {
|
|
@@ -38020,7 +38141,7 @@ class ToolbarAppName {
|
|
|
38020
38141
|
registerInstance(this, hostRef);
|
|
38021
38142
|
}
|
|
38022
38143
|
render() {
|
|
38023
|
-
return (hAsync("div", { key: '
|
|
38144
|
+
return (hAsync("div", { key: 'c7911e600db0a7b05ccad45a41b6e9b25b73c35a', class: "toolbar-title-page" }, hAsync("slot", { key: 'adc988f3c3087c8deac5e39300915bd0456d986a' })));
|
|
38024
38145
|
}
|
|
38025
38146
|
static get style() { return RoadToolbarTitlePageStyle0; }
|
|
38026
38147
|
static get cmpMeta() { return {
|
|
@@ -38044,7 +38165,7 @@ class ToolbarTitle {
|
|
|
38044
38165
|
registerInstance(this, hostRef);
|
|
38045
38166
|
}
|
|
38046
38167
|
render() {
|
|
38047
|
-
return (hAsync("div", { key: '
|
|
38168
|
+
return (hAsync("div", { key: 'f333ab20e211d7813ee97a020a71f3852676f89c', class: "toolbar-title" }, hAsync("slot", { key: '840e69f86c31a4be7965bb290776e45a3278c167' })));
|
|
38048
38169
|
}
|
|
38049
38170
|
static get style() { return RoadToolbarTitleStyle0; }
|
|
38050
38171
|
static get cmpMeta() { return {
|
|
@@ -38073,7 +38194,7 @@ class ToolbarV2 {
|
|
|
38073
38194
|
registerInstance(this, hostRef);
|
|
38074
38195
|
}
|
|
38075
38196
|
render() {
|
|
38076
|
-
return (hAsync(Host, { key: '
|
|
38197
|
+
return (hAsync(Host, { key: 'f197e6aa93f24d61f4424adac51dc0f1451690d7', class: "toolbar" }, hAsync("div", { key: '4f02a7ca538683f23ba8166400f4bb10f35bb20e', class: "toolbar-container" }, hAsync("div", { key: '1b20c5b2e0cfb5fc5c1aaf4260883a67de52e111', class: "toolbar-container-content-left" }, hAsync("slot", { key: 'b4e3956e1bc5cc7d902a2f6b73184c282e84ca8c', name: "start" }), hAsync("slot", { key: 'b45e8781a6ddd94095892a382bafa799b2b841ab', name: "primary" })), hAsync("div", { key: '3d796b9cb78f7d3c77e42473cfd61833507593af', class: "toolbar-content" }, hAsync("slot", { key: '8c9ff56ad415b57211f6c0268330832959659a1c' })), hAsync("div", { key: '7de2f6fac6941d176454b6c2386cee85f8aeceb2', class: "toolbar-container-content-right" }, hAsync("slot", { key: 'f3e911e9f54d9831664cdb705b7401d2a75a12af', name: "secondary" }), hAsync("slot", { key: 'f803799d38325b0aaff33cd6476392e1b02f8030', name: "end" })))));
|
|
38077
38198
|
}
|
|
38078
38199
|
static get style() { return RoadToolbarV2Style0; }
|
|
38079
38200
|
static get cmpMeta() { return {
|
|
@@ -38200,12 +38321,12 @@ class Tooltip {
|
|
|
38200
38321
|
return triggers.includes(triggerType);
|
|
38201
38322
|
}
|
|
38202
38323
|
render() {
|
|
38203
|
-
return (hAsync(Host, { key: '
|
|
38324
|
+
return (hAsync(Host, { key: 'd5820fd1bf93fc00fcaae3f48d27d09a7c478906', onMouseOver: this.onMouseOver, onMouseOut: this.onMouseOut, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur, tabindex: "0" // Makes the element focusable
|
|
38204
38325
|
,
|
|
38205
|
-
"data-tooltip-position": this.position }, hAsync("slot", { key: '
|
|
38326
|
+
"data-tooltip-position": this.position }, hAsync("slot", { key: '944189110f599941f8214e5a9e766096f10ab36d', "aria-describedby": this.tooltipId }), hAsync("div", { key: 'efa16f01312bd27d9a80e5429302daa3656d8da0', part: "tooltip", id: this.tooltipId, class: {
|
|
38206
38327
|
tooltip: true,
|
|
38207
38328
|
"tooltip-open": this.isOpen,
|
|
38208
|
-
}, role: "tooltip", "aria-hidden": !this.isOpen ? "true" : "false" }, this.content, hAsync("slot", { key: '
|
|
38329
|
+
}, role: "tooltip", "aria-hidden": !this.isOpen ? "true" : "false" }, this.content, hAsync("slot", { key: 'e4956c45c1f42ae8326f36b2b1f8a737374f375f', name: "tooltip-content" }))));
|
|
38209
38330
|
}
|
|
38210
38331
|
get el() { return getElement(this); }
|
|
38211
38332
|
static get style() { return RoadTooltipStyle0; }
|
|
@@ -38297,11 +38418,11 @@ class toggle {
|
|
|
38297
38418
|
}
|
|
38298
38419
|
render() {
|
|
38299
38420
|
const labelId = this.toggleId + '-label';
|
|
38300
|
-
const textLabel = hAsync("label", { key: '
|
|
38421
|
+
const textLabel = hAsync("label", { key: '5c9d81a2dcabfd489edfa4085812225892fdc200', class: "form-toggle-label", id: labelId, htmlFor: this.toggleId }, this.label);
|
|
38301
38422
|
const isSpacedClass = this.isSpaced && 'form-toggle-spaced';
|
|
38302
38423
|
const righttoggleClass = this.hasLeftLabel ? 'form-toggle-right' : '';
|
|
38303
38424
|
const disabledClass = this.disabled ? 'disabled' : '';
|
|
38304
|
-
return (hAsync(Host, { key: '
|
|
38425
|
+
return (hAsync(Host, { key: 'd5621dbe1003bb50f9cf6762ad1cddf1e3db5186' }, hAsync("input", { key: '41e9b04d49fcf57d203643c7860a0762aaf2d354', 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: 'b6352e3b42d667528a6852ed4126b1a5ace5430c', class: `form-toggle-label ${isSpacedClass} ${disabledClass}`, htmlFor: this.toggleId }, this.hasLeftLabel && textLabel, hAsync("div", { key: '13ce7ce2c26a9e819aa8dde3a8b5976c3bfccb8a', class: `form-toggle-lever ${righttoggleClass}` }, this.checked ? (hAsync("road-icon", { name: "check-small-solid", class: "form-toggle-lever-check", size: "md" })) : (hAsync("road-icon", { name: "navigation-close-solid", class: "form-toggle-lever-close", size: "md" }))), this.hasLeftLabel ? '' : textLabel)));
|
|
38305
38426
|
}
|
|
38306
38427
|
static get watchers() { return {
|
|
38307
38428
|
"checked": ["checkedChanged"]
|