@roadtrip/components 3.33.2 → 3.33.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/road-badge_14.cjs.entry.js +42 -42
- package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
- package/dist/cjs/road-spinner.cjs.entry.js +1 -1
- package/dist/cjs/road-spinner.cjs.entry.js.map +1 -1
- package/dist/collection/components/counter/counter.css +1 -0
- package/dist/collection/components/input/input.js +41 -45
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/spinner/spinner.css +1 -1
- package/dist/esm/road-badge_14.entry.js +42 -42
- package/dist/esm/road-badge_14.entry.js.map +1 -1
- package/dist/esm/road-spinner.entry.js +1 -1
- package/dist/esm/road-spinner.entry.js.map +1 -1
- package/dist/roadtrip/p-6d3d947e.entry.js +2 -0
- package/dist/roadtrip/p-6d3d947e.entry.js.map +1 -0
- package/dist/roadtrip/{p-55897254.entry.js → p-a38bdba6.entry.js} +3 -3
- package/dist/roadtrip/p-a38bdba6.entry.js.map +1 -0
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/types/components/input/input.d.ts +1 -1
- package/hydrate/index.js +43 -43
- package/hydrate/index.mjs +43 -43
- package/package.json +1 -1
- package/dist/roadtrip/p-04913d58.entry.js +0 -2
- package/dist/roadtrip/p-04913d58.entry.js.map +0 -1
- package/dist/roadtrip/p-55897254.entry.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-d7aae05d.js";export{s as setNonce}from"./p-d7aae05d.js";import{g as o}from"./p-06bfef98.js";var l=()=>{const a=import.meta.url;const o={};if(a!==""){o.resourcesUrl=new URL(".",a).href}return e(o)};l().then((async e=>{await o();return a(JSON.parse('[["p-55897254",[[2,"road-counter",{"inputId":[1,"input-id"],"min":[2],"max":[2],"step":[1],"value":[2],"size":[1],"dustbin":[4],"readonly":[4],"leftIconClasses":[32],"rightIconClasses":[32],"isDustbinVisible":[32]},null,{"value":["onValueChange"]}],[1,"road-item",{"titleItem":[1,"title-item"],"text":[1],"button":[4],"detail":[4],"active":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"layout":[1],"target":[1],"type":[1],"multipleInputs":[32]}],[1,"road-badge",{"color":[1],"bubble":[4]}],[1,"road-list",{"lines":[1]}],[1,"road-toolbar",{"color":[1]}],[1,"road-drawer",{"isOpen":[1028,"is-open"],"removePadding":[1028,"remove-padding"],"position":[1],"drawerWidth":[2,"drawer-width"],"hasInverseHeader":[4,"has-inverse-header"],"hasBackIcon":[4,"has-back-icon"],"backText":[1,"back-text"],"drawerTitle":[1,"drawer-title"],"ariaLabel":[1,"aria-label"],"ariaLabelBack":[1,"aria-label-back"],"ariaLabelClose":[1,"aria-label-close"],"hasCloseIcon":[4,"has-close-icon"],"open":[64],"close":[64],"back":[64]},[[4,"keyup","onEscape"]],{"isOpen":["handleOpen"]}],[6,"road-input",{"inputId":[1,"input-id"],"autocapitalize":[1],"autocomplete":[1],"blockdecimal":[4],"autocorrect":[1],"autofocus":[4],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"sizes":[1],"type":[1],"value":[1032],"label":[1],"error":[1],"helper":[1],"debounce":[2],"enforceMinMaxValue":[64]},null,{"debounce":["debounceChanged"],"value":["valueChanged"]}],[1,"road-col"],[1,"road-grid"],[1,"road-row"],[1,"road-button",{"color":[1],"size":[513],"buttonType":[1,"button-type"],"iconOnly":[516,"icon-only"],"disabled":[516],"expand":[516],"download":[1],"href":[1],"rel":[1],"target":[1],"outline":[4]}],[1,"road-input-group",{"disabled":[4]},null,{"disabled":["handleDisabledChange"]}],[1,"road-label"],[1,"road-icon",{"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"name":[1],"src":[1],"icon":[8],"size":[1],"rotate":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"]}]]],["p-64ec0508",[[1,"road-duration",{"isOpen":[1028,"is-open"],"header":[1],"min":[2],"max":[2],"step":[2],"open":[64],"close":[64]},[[0,"roadcardclick","handleClick"]]]]],["p-c62b9df1",[[1,"road-content-card",{"insetImage":[4,"inset-image"]}]]],["p-b5fa8c5a",[[2,"road-plate-number",{"country":[1],"disabled":[4],"placeholder":[1],"readonly":[4],"value":[1032],"motorbike":[4]},null,{"value":["valueChanged"]}]]],["p-db77c354",[[1,"road-profil-dropdown",{"isOpen":[1028,"is-open"]},[[4,"click","handleDocumentClick"]]]]],["p-449affa6",[[1,"road-rating",{"size":[513],"rate":[2],"showreviews":[4],"readonly":[4],"reviews":[2],"reviewsText":[1,"reviews-text"],"url":[1]}]]],["p-233b3f06",[[1,"road-accordion",{"isOpen":[1028,"is-open"],"isLight":[4,"is-light"],"isLightSeparator":[4,"is-light-separator"],"isSmall":[4,"is-small"]}]]],["p-b0b18e60",[[1,"road-banner",{"isOpen":[1028,"is-open"],"label":[1],"link":[1],"url":[1],"close":[64]}]]],["p-c30a1032",[[1,"road-carousel",{"options":[8],"pager":[4],"arrows":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]},null,{"options":["optionsChanged"]}]]],["p-2caa518b",[[6,"road-checkbox",{"checkboxId":[1,"checkbox-id"],"name":[1],"required":[4],"checked":[1028],"indeterminate":[4],"disabled":[4],"value":[1],"label":[1],"secondaryLabel":[1,"secondary-label"],"inverse":[4],"error":[1],"helper":[1]},null,{"checked":["checkedChanged"]}]]],["p-d4089fb9",[[1,"road-chip",{"color":[1],"outline":[4],"size":[1],"hasCloseIcon":[4,"has-close-icon"]}]]],["p-443187de",[[1,"road-collapse",{"isOpen":[1028,"is-open"],"showMore":[1,"show-more"],"showLess":[1,"show-less"],"centered":[4]}]]],["p-733a80a1",[[1,"road-dialog",{"isOpen":[1028,"is-open"],"hasCloseIcon":[4,"has-close-icon"],"color":[1],"icon":[1],"label":[1],"description":[1],"open":[64],"close":[64]},[[4,"keyup","onEscape"]]]]],["p-862c1831",[[1,"road-dropdown",{"isOpen":[1028,"is-open"],"isLight":[4,"is-light"],"isMedium":[4,"is-medium"],"position":[513],"direction":[513]},[[4,"click","handleDocumentClick"]]]]],["p-517aeeca",[[1,"road-modal",{"maxWidth":[2,"max-width"],"isOpen":[1028,"is-open"],"hasInverseHeader":[4,"has-inverse-header"],"modalTitle":[1,"modal-title"],"hasCloseIcon":[4,"has-close-icon"],"open":[64],"close":[64]},[[4,"keyup","onEscape"]]]]],["p-950b8a43",[[2,"road-phone-number-input",{"disabled":[4],"countryData":[16],"language":[1],"codeLabel":[1,"code-label"],"phoneLabel":[1,"phone-label"],"phoneValue":[1,"phone-value"],"countryCode":[1,"country-code"],"errorMessage":[1,"error-message"],"required":[4],"selectedCountry":[32],"selectedCountryCode":[32],"phoneNumber":[32],"countryOptions":[32],"returnObject":[32]}]]],["p-b8c5d292",[[6,"road-range",{"rangeId":[1,"range-id"],"value":[1032],"min":[1],"max":[1],"step":[1],"showValue":[4,"show-value"],"showTick":[4,"show-tick"],"showLabels":[4,"show-labels"],"disabled":[4]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"]],{"value":["valueChanged"]}]]],["p-99a6faae",[[1,"road-toast",{"isOpen":[1028,"is-open"],"color":[1],"label":[1],"timeout":[2],"open":[64],"close":[64]},null,{"isOpen":["isOpenChanged"]}]]],["p-a8cfee66",[[1,"road-alert",{"color":[1],"label":[1],"button":[1],"link":[1],"url":[1]}]]],["p-b7dc61c8",[[2,"road-area-code",{"selectId":[1,"select-id"],"options":[16],"autofocus":[4],"disabled":[4],"name":[1],"required":[4],"size":[2],"sizes":[1],"label":[1],"error":[1],"value":[1025],"triggerRender":[1026,"trigger-render"],"selectedValue":[32]},null,{"value":["valueChanged"]}]]],["p-14e42c8d",[[1,"road-asset",{"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"name":[1],"src":[1],"asset":[8],"lazy":[4],"sanitize":[4],"assetSvgContent":[32],"isVisible":[32]},null,{"name":["loadAsset"],"src":["loadAsset"],"asset":["loadAsset"]}]]],["p-adf7d473",[[6,"road-autocomplete",{"options":[16],"visible":[32]},[[0,"roadFocus","handleFocus"],[0,"roadfocus","handleFocus"],[4,"click","onClickOutside"]]]]],["p-456e1ffe",[[1,"road-button-floating",{"position":[513],"href":[1],"rel":[1],"target":[1]},[[9,"scroll","onScroll"]]]]],["p-cda925e3",[[4,"road-carousel-item"]]],["p-07217e78",[[1,"road-flap",{"color":[1],"filled":[4],"size":[513]}]]],["p-7bb1dbc4",[[1,"road-global-navigation",{"selectedTab":[1,"selected-tab"]},[[0,"roadNavbarItemClick","onNavbarChanged"],[0,"roadnavbaritemclick","onNavbarChanged"]],{"selectedTab":["selectedTabChanged"]}]]],["p-2301f208",[[1,"road-global-navigation-v2",{"selectedTab":[1,"selected-tab"]},[[0,"roadNavbarItemClick","onNavbarChanged"],[0,"roadnavbaritemclick","onNavbarChanged"],[8,"click","onButtonClick"]],{"selectedTab":["selectedTabChanged"]}]]],["p-abe3e334",[[1,"road-illustration",{"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"name":[1],"src":[1],"illustration":[8],"size":[1],"rotate":[1],"lazy":[4],"sanitize":[4],"illustrationSvgContent":[32],"isVisible":[32]},null,{"name":["loadIllustration"],"src":["loadIllustration"],"illustration":["loadIllustration"]}]]],["p-c465f551",[[1,"road-navbar",{"selectedTab":[1,"selected-tab"]},[[0,"roadNavbarItemClick","onNavbarChanged"],[0,"roadnavbaritemclick","onNavbarChanged"]],{"selectedTab":["selectedTabChanged"]}]]],["p-03656f9a",[[1,"road-navbar-item",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"selected":[1028],"tab":[1],"target":[1]},[[8,"roadNavbarChanged","onNavbarChanged"],[8,"roadnavbarchanged","onNavbarChanged"]],{"selected":["handleSelectedChange"]}]]],["p-a254df6d",[[1,"road-navbar-item-v2",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"selected":[1028],"tab":[1],"target":[1]},[[8,"roadNavbarChanged","onNavbarChanged"],[8,"roadnavbarchanged","onNavbarChanged"]],{"selected":["handleSelectedChange"]}]]],["p-e0421465",[[1,"road-navbar-v2",{"compact":[516],"selectedTab":[1,"selected-tab"]},[[0,"roadNavbarItemClick","onNavbarChanged"],[0,"roadnavbaritemclick","onNavbarChanged"]],{"selectedTab":["selectedTabChanged"]}]]],["p-e6e9882b",[[1,"road-progress",{"value":[2],"numbersteps":[1],"label":[1],"showstep":[4],"animation":[4],"light":[4],"fullwidth":[4],"color":[1]}]]],["p-60bd73ad",[[1,"road-progress-indicator-horizontal",{"color":[513],"numberStep":[2,"number-step"],"stateFirstStep":[1,"state-first-step"],"stateSecondStep":[1,"state-second-step"],"stateThirdStep":[1,"state-third-step"],"urlStep1":[1,"url-step-1"],"urlStep2":[1,"url-step-2"],"urlStep3":[1,"url-step-3"]}]]],["p-4675ea6d",[[1,"road-progress-indicator-vertical"]]],["p-5fea6a74",[[4,"road-progress-indicator-vertical-item"]]],["p-65f9bd9c",[[1,"road-progress-tracker"]]],["p-167cd2fc",[[4,"road-progress-tracker-item"]]],["p-f1b53143",[[2,"road-radio",{"radioId":[1,"radio-id"],"name":[1],"required":[4],"disabled":[4],"value":[8],"label":[1],"secondaryLabel":[1,"secondary-label"],"inverse":[4],"error":[4],"helper":[1],"inline":[4],"checked":[32]},[[8,"roadChange","onRoadChangedChanged"],[8,"roadchange","onRoadChangedChanged"]]]]],["p-cfd2919e",[[6,"road-radio-group",{"radioGroupId":[1,"radio-group-id"],"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032],"label":[1],"asterisk":[4],"ariaLabel":[513,"aria-label"],"error":[1025],"helper":[1]},null,{"value":["valueChanged"],"error":["errorChanged"]}]]],["p-d80e7563",[[1,"road-segmented-button",{"size":[1],"selected":[1028],"tab":[1]},[[8,"roadSegmentedButtonBarChanged","onButtonBarChanged"],[8,"roadSegmentedButtonbarchanged","onButtonBarChanged"]]]]],["p-8b04fc62",[[1,"road-segmented-button-bar",{"selectedTab":[1,"selected-tab"]},null,{"selectedTab":["selectedTabChanged"]}]]],["p-2e049c8e",[[1,"road-segmented-buttons",{"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64]}]]],["p-eac313e4",[[2,"road-select",{"selectId":[1,"select-id"],"options":[16],"autofocus":[4],"disabled":[4],"name":[1],"required":[4],"size":[2],"sizes":[1],"label":[1],"error":[1],"value":[1032]},null,{"value":["valueChanged"]}]]],["p-c28e7add",[[6,"road-select-filter",{"options":[16],"parameters":[8],"isActive":[4,"is-active"],"onlySelect":[4,"only-select"],"isOpen":[32],"currentValue":[32],"activeIndex":[32]},[[0,"roadFocus","handleFocus"],[0,"roadfocus","handleFocus"],[0,"roadBlur","handleBlur"],[0,"roadblur","handleBlur"],[0,"roadChange","handleChange"],[0,"roadchange","handleChange"],[4,"click","onClickOutside"],[8,"keydown","handleKeydown"]]]]],["p-c6824205",[[1,"road-skeleton"]]],["p-04913d58",[[1,"road-spinner",{"size":[513],"color":[513]}]]],["p-3f5dff96",[[2,"road-switch",{"switchId":[1,"switch-id"],"name":[1],"checked":[1028],"disabled":[4],"label":[1],"color":[1],"hasLeftLabel":[4,"has-left-label"],"isSpaced":[4,"is-spaced"],"value":[1],"on":[1],"off":[1]},null,{"checked":["checkedChanged"]}]]],["p-85b1e505",[[1,"road-tab",{"active":[1028],"tab":[1],"setActive":[64]},[[8,"roadtabbarchanged","onTabBarChanged"]]]]],["p-6ff3b37c",[[1,"road-tab-bar",{"secondary":[4],"expand":[4],"center":[4],"selectedTab":[1537,"selected-tab"]},[[0,"roadTabButtonClick","onTabButtonClick"]],{"selectedTab":["selectedTabChanged"]}]]],["p-3dcaa947",[[1,"road-tab-button",{"download":[1],"href":[1],"rel":[1],"layout":[1],"selected":[1028],"disabled":[1028],"tab":[1],"target":[1]},[[8,"roadTabBarChanged","onTabBarChanged"],[8,"roadTabbarchanged","onTabBarChanged"]]]]],["p-fe40ab3d",[[6,"road-table"]]],["p-c47ccbf2",[[1,"road-tabs",{"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64]}]]],["p-37430583",[[1,"road-tag",{"color":[1],"contrast":[4]}]]],["p-e75ec60f",[[1,"road-text",{"color":[1]}]]],["p-06fbd2ea",[[2,"road-textarea",{"textareaId":[1,"textarea-id"],"autocapitalize":[1],"autofocus":[4],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"sizes":[1],"readonly":[4],"required":[4],"spellcheck":[4],"resize":[4],"cols":[2],"rows":[2],"wrap":[1],"value":[1025],"label":[1],"error":[1],"helper":[1]},null,{"value":["valueChanged"]}]]],["p-ea1a175d",[[2,"road-toggle",{"toggleId":[1,"toggle-id"],"name":[1],"checked":[1028],"disabled":[4],"label":[1],"hasLeftLabel":[4,"has-left-label"],"isSpaced":[4,"is-spaced"],"value":[1],"on":[1],"off":[1]},null,{"checked":["checkedChanged"]}]]],["p-215afdbd",[[1,"road-toolbar-title"]]],["p-6c617506",[[1,"road-toolbar-title-page"]]],["p-fd3c58b6",[[1,"road-toolbar-v2"]]],["p-e6c4c576",[[1,"road-tooltip",{"tooltipId":[1,"tooltip-id"],"content":[1],"position":[1],"contentAlign":[1,"content-align"],"isOpen":[1028,"is-open"],"trigger":[1],"open":[64],"close":[64]}]]],["p-cffedeca",[[1,"road-avatar",{"size":[513]}]]],["p-3f478922",[[1,"road-card",{"elevation":[1],"button":[4],"value":[1],"type":[1],"download":[1],"href":[1],"rel":[1],"target":[1]}]]],["p-4a81230f",[[1,"road-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]]]'),e)}));
|
|
1
|
+
import{p as e,b as a}from"./p-d7aae05d.js";export{s as setNonce}from"./p-d7aae05d.js";import{g as o}from"./p-06bfef98.js";var l=()=>{const a=import.meta.url;const o={};if(a!==""){o.resourcesUrl=new URL(".",a).href}return e(o)};l().then((async e=>{await o();return a(JSON.parse('[["p-a38bdba6",[[2,"road-counter",{"inputId":[1,"input-id"],"min":[2],"max":[2],"step":[1],"value":[2],"size":[1],"dustbin":[4],"readonly":[4],"leftIconClasses":[32],"rightIconClasses":[32],"isDustbinVisible":[32]},null,{"value":["onValueChange"]}],[1,"road-item",{"titleItem":[1,"title-item"],"text":[1],"button":[4],"detail":[4],"active":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"layout":[1],"target":[1],"type":[1],"multipleInputs":[32]}],[1,"road-badge",{"color":[1],"bubble":[4]}],[1,"road-list",{"lines":[1]}],[1,"road-toolbar",{"color":[1]}],[1,"road-drawer",{"isOpen":[1028,"is-open"],"removePadding":[1028,"remove-padding"],"position":[1],"drawerWidth":[2,"drawer-width"],"hasInverseHeader":[4,"has-inverse-header"],"hasBackIcon":[4,"has-back-icon"],"backText":[1,"back-text"],"drawerTitle":[1,"drawer-title"],"ariaLabel":[1,"aria-label"],"ariaLabelBack":[1,"aria-label-back"],"ariaLabelClose":[1,"aria-label-close"],"hasCloseIcon":[4,"has-close-icon"],"open":[64],"close":[64],"back":[64]},[[4,"keyup","onEscape"]],{"isOpen":["handleOpen"]}],[6,"road-input",{"inputId":[1,"input-id"],"autocapitalize":[1],"autocomplete":[1],"blockdecimal":[4],"autocorrect":[1],"autofocus":[4],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"sizes":[1],"type":[1],"value":[1032],"label":[1],"error":[1],"helper":[1],"debounce":[2],"enforceMinMaxValue":[64]},null,{"debounce":["debounceChanged"],"value":["valueChanged"]}],[1,"road-col"],[1,"road-grid"],[1,"road-row"],[1,"road-button",{"color":[1],"size":[513],"buttonType":[1,"button-type"],"iconOnly":[516,"icon-only"],"disabled":[516],"expand":[516],"download":[1],"href":[1],"rel":[1],"target":[1],"outline":[4]}],[1,"road-input-group",{"disabled":[4]},null,{"disabled":["handleDisabledChange"]}],[1,"road-label"],[1,"road-icon",{"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"name":[1],"src":[1],"icon":[8],"size":[1],"rotate":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"]}]]],["p-64ec0508",[[1,"road-duration",{"isOpen":[1028,"is-open"],"header":[1],"min":[2],"max":[2],"step":[2],"open":[64],"close":[64]},[[0,"roadcardclick","handleClick"]]]]],["p-c62b9df1",[[1,"road-content-card",{"insetImage":[4,"inset-image"]}]]],["p-b5fa8c5a",[[2,"road-plate-number",{"country":[1],"disabled":[4],"placeholder":[1],"readonly":[4],"value":[1032],"motorbike":[4]},null,{"value":["valueChanged"]}]]],["p-db77c354",[[1,"road-profil-dropdown",{"isOpen":[1028,"is-open"]},[[4,"click","handleDocumentClick"]]]]],["p-449affa6",[[1,"road-rating",{"size":[513],"rate":[2],"showreviews":[4],"readonly":[4],"reviews":[2],"reviewsText":[1,"reviews-text"],"url":[1]}]]],["p-233b3f06",[[1,"road-accordion",{"isOpen":[1028,"is-open"],"isLight":[4,"is-light"],"isLightSeparator":[4,"is-light-separator"],"isSmall":[4,"is-small"]}]]],["p-b0b18e60",[[1,"road-banner",{"isOpen":[1028,"is-open"],"label":[1],"link":[1],"url":[1],"close":[64]}]]],["p-c30a1032",[[1,"road-carousel",{"options":[8],"pager":[4],"arrows":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]},null,{"options":["optionsChanged"]}]]],["p-2caa518b",[[6,"road-checkbox",{"checkboxId":[1,"checkbox-id"],"name":[1],"required":[4],"checked":[1028],"indeterminate":[4],"disabled":[4],"value":[1],"label":[1],"secondaryLabel":[1,"secondary-label"],"inverse":[4],"error":[1],"helper":[1]},null,{"checked":["checkedChanged"]}]]],["p-d4089fb9",[[1,"road-chip",{"color":[1],"outline":[4],"size":[1],"hasCloseIcon":[4,"has-close-icon"]}]]],["p-443187de",[[1,"road-collapse",{"isOpen":[1028,"is-open"],"showMore":[1,"show-more"],"showLess":[1,"show-less"],"centered":[4]}]]],["p-733a80a1",[[1,"road-dialog",{"isOpen":[1028,"is-open"],"hasCloseIcon":[4,"has-close-icon"],"color":[1],"icon":[1],"label":[1],"description":[1],"open":[64],"close":[64]},[[4,"keyup","onEscape"]]]]],["p-862c1831",[[1,"road-dropdown",{"isOpen":[1028,"is-open"],"isLight":[4,"is-light"],"isMedium":[4,"is-medium"],"position":[513],"direction":[513]},[[4,"click","handleDocumentClick"]]]]],["p-517aeeca",[[1,"road-modal",{"maxWidth":[2,"max-width"],"isOpen":[1028,"is-open"],"hasInverseHeader":[4,"has-inverse-header"],"modalTitle":[1,"modal-title"],"hasCloseIcon":[4,"has-close-icon"],"open":[64],"close":[64]},[[4,"keyup","onEscape"]]]]],["p-950b8a43",[[2,"road-phone-number-input",{"disabled":[4],"countryData":[16],"language":[1],"codeLabel":[1,"code-label"],"phoneLabel":[1,"phone-label"],"phoneValue":[1,"phone-value"],"countryCode":[1,"country-code"],"errorMessage":[1,"error-message"],"required":[4],"selectedCountry":[32],"selectedCountryCode":[32],"phoneNumber":[32],"countryOptions":[32],"returnObject":[32]}]]],["p-b8c5d292",[[6,"road-range",{"rangeId":[1,"range-id"],"value":[1032],"min":[1],"max":[1],"step":[1],"showValue":[4,"show-value"],"showTick":[4,"show-tick"],"showLabels":[4,"show-labels"],"disabled":[4]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"]],{"value":["valueChanged"]}]]],["p-99a6faae",[[1,"road-toast",{"isOpen":[1028,"is-open"],"color":[1],"label":[1],"timeout":[2],"open":[64],"close":[64]},null,{"isOpen":["isOpenChanged"]}]]],["p-a8cfee66",[[1,"road-alert",{"color":[1],"label":[1],"button":[1],"link":[1],"url":[1]}]]],["p-b7dc61c8",[[2,"road-area-code",{"selectId":[1,"select-id"],"options":[16],"autofocus":[4],"disabled":[4],"name":[1],"required":[4],"size":[2],"sizes":[1],"label":[1],"error":[1],"value":[1025],"triggerRender":[1026,"trigger-render"],"selectedValue":[32]},null,{"value":["valueChanged"]}]]],["p-14e42c8d",[[1,"road-asset",{"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"name":[1],"src":[1],"asset":[8],"lazy":[4],"sanitize":[4],"assetSvgContent":[32],"isVisible":[32]},null,{"name":["loadAsset"],"src":["loadAsset"],"asset":["loadAsset"]}]]],["p-adf7d473",[[6,"road-autocomplete",{"options":[16],"visible":[32]},[[0,"roadFocus","handleFocus"],[0,"roadfocus","handleFocus"],[4,"click","onClickOutside"]]]]],["p-456e1ffe",[[1,"road-button-floating",{"position":[513],"href":[1],"rel":[1],"target":[1]},[[9,"scroll","onScroll"]]]]],["p-cda925e3",[[4,"road-carousel-item"]]],["p-07217e78",[[1,"road-flap",{"color":[1],"filled":[4],"size":[513]}]]],["p-7bb1dbc4",[[1,"road-global-navigation",{"selectedTab":[1,"selected-tab"]},[[0,"roadNavbarItemClick","onNavbarChanged"],[0,"roadnavbaritemclick","onNavbarChanged"]],{"selectedTab":["selectedTabChanged"]}]]],["p-2301f208",[[1,"road-global-navigation-v2",{"selectedTab":[1,"selected-tab"]},[[0,"roadNavbarItemClick","onNavbarChanged"],[0,"roadnavbaritemclick","onNavbarChanged"],[8,"click","onButtonClick"]],{"selectedTab":["selectedTabChanged"]}]]],["p-abe3e334",[[1,"road-illustration",{"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"name":[1],"src":[1],"illustration":[8],"size":[1],"rotate":[1],"lazy":[4],"sanitize":[4],"illustrationSvgContent":[32],"isVisible":[32]},null,{"name":["loadIllustration"],"src":["loadIllustration"],"illustration":["loadIllustration"]}]]],["p-c465f551",[[1,"road-navbar",{"selectedTab":[1,"selected-tab"]},[[0,"roadNavbarItemClick","onNavbarChanged"],[0,"roadnavbaritemclick","onNavbarChanged"]],{"selectedTab":["selectedTabChanged"]}]]],["p-03656f9a",[[1,"road-navbar-item",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"selected":[1028],"tab":[1],"target":[1]},[[8,"roadNavbarChanged","onNavbarChanged"],[8,"roadnavbarchanged","onNavbarChanged"]],{"selected":["handleSelectedChange"]}]]],["p-a254df6d",[[1,"road-navbar-item-v2",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"selected":[1028],"tab":[1],"target":[1]},[[8,"roadNavbarChanged","onNavbarChanged"],[8,"roadnavbarchanged","onNavbarChanged"]],{"selected":["handleSelectedChange"]}]]],["p-e0421465",[[1,"road-navbar-v2",{"compact":[516],"selectedTab":[1,"selected-tab"]},[[0,"roadNavbarItemClick","onNavbarChanged"],[0,"roadnavbaritemclick","onNavbarChanged"]],{"selectedTab":["selectedTabChanged"]}]]],["p-e6e9882b",[[1,"road-progress",{"value":[2],"numbersteps":[1],"label":[1],"showstep":[4],"animation":[4],"light":[4],"fullwidth":[4],"color":[1]}]]],["p-60bd73ad",[[1,"road-progress-indicator-horizontal",{"color":[513],"numberStep":[2,"number-step"],"stateFirstStep":[1,"state-first-step"],"stateSecondStep":[1,"state-second-step"],"stateThirdStep":[1,"state-third-step"],"urlStep1":[1,"url-step-1"],"urlStep2":[1,"url-step-2"],"urlStep3":[1,"url-step-3"]}]]],["p-4675ea6d",[[1,"road-progress-indicator-vertical"]]],["p-5fea6a74",[[4,"road-progress-indicator-vertical-item"]]],["p-65f9bd9c",[[1,"road-progress-tracker"]]],["p-167cd2fc",[[4,"road-progress-tracker-item"]]],["p-f1b53143",[[2,"road-radio",{"radioId":[1,"radio-id"],"name":[1],"required":[4],"disabled":[4],"value":[8],"label":[1],"secondaryLabel":[1,"secondary-label"],"inverse":[4],"error":[4],"helper":[1],"inline":[4],"checked":[32]},[[8,"roadChange","onRoadChangedChanged"],[8,"roadchange","onRoadChangedChanged"]]]]],["p-cfd2919e",[[6,"road-radio-group",{"radioGroupId":[1,"radio-group-id"],"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032],"label":[1],"asterisk":[4],"ariaLabel":[513,"aria-label"],"error":[1025],"helper":[1]},null,{"value":["valueChanged"],"error":["errorChanged"]}]]],["p-d80e7563",[[1,"road-segmented-button",{"size":[1],"selected":[1028],"tab":[1]},[[8,"roadSegmentedButtonBarChanged","onButtonBarChanged"],[8,"roadSegmentedButtonbarchanged","onButtonBarChanged"]]]]],["p-8b04fc62",[[1,"road-segmented-button-bar",{"selectedTab":[1,"selected-tab"]},null,{"selectedTab":["selectedTabChanged"]}]]],["p-2e049c8e",[[1,"road-segmented-buttons",{"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64]}]]],["p-eac313e4",[[2,"road-select",{"selectId":[1,"select-id"],"options":[16],"autofocus":[4],"disabled":[4],"name":[1],"required":[4],"size":[2],"sizes":[1],"label":[1],"error":[1],"value":[1032]},null,{"value":["valueChanged"]}]]],["p-c28e7add",[[6,"road-select-filter",{"options":[16],"parameters":[8],"isActive":[4,"is-active"],"onlySelect":[4,"only-select"],"isOpen":[32],"currentValue":[32],"activeIndex":[32]},[[0,"roadFocus","handleFocus"],[0,"roadfocus","handleFocus"],[0,"roadBlur","handleBlur"],[0,"roadblur","handleBlur"],[0,"roadChange","handleChange"],[0,"roadchange","handleChange"],[4,"click","onClickOutside"],[8,"keydown","handleKeydown"]]]]],["p-c6824205",[[1,"road-skeleton"]]],["p-6d3d947e",[[1,"road-spinner",{"size":[513],"color":[513]}]]],["p-3f5dff96",[[2,"road-switch",{"switchId":[1,"switch-id"],"name":[1],"checked":[1028],"disabled":[4],"label":[1],"color":[1],"hasLeftLabel":[4,"has-left-label"],"isSpaced":[4,"is-spaced"],"value":[1],"on":[1],"off":[1]},null,{"checked":["checkedChanged"]}]]],["p-85b1e505",[[1,"road-tab",{"active":[1028],"tab":[1],"setActive":[64]},[[8,"roadtabbarchanged","onTabBarChanged"]]]]],["p-6ff3b37c",[[1,"road-tab-bar",{"secondary":[4],"expand":[4],"center":[4],"selectedTab":[1537,"selected-tab"]},[[0,"roadTabButtonClick","onTabButtonClick"]],{"selectedTab":["selectedTabChanged"]}]]],["p-3dcaa947",[[1,"road-tab-button",{"download":[1],"href":[1],"rel":[1],"layout":[1],"selected":[1028],"disabled":[1028],"tab":[1],"target":[1]},[[8,"roadTabBarChanged","onTabBarChanged"],[8,"roadTabbarchanged","onTabBarChanged"]]]]],["p-fe40ab3d",[[6,"road-table"]]],["p-c47ccbf2",[[1,"road-tabs",{"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64]}]]],["p-37430583",[[1,"road-tag",{"color":[1],"contrast":[4]}]]],["p-e75ec60f",[[1,"road-text",{"color":[1]}]]],["p-06fbd2ea",[[2,"road-textarea",{"textareaId":[1,"textarea-id"],"autocapitalize":[1],"autofocus":[4],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"sizes":[1],"readonly":[4],"required":[4],"spellcheck":[4],"resize":[4],"cols":[2],"rows":[2],"wrap":[1],"value":[1025],"label":[1],"error":[1],"helper":[1]},null,{"value":["valueChanged"]}]]],["p-ea1a175d",[[2,"road-toggle",{"toggleId":[1,"toggle-id"],"name":[1],"checked":[1028],"disabled":[4],"label":[1],"hasLeftLabel":[4,"has-left-label"],"isSpaced":[4,"is-spaced"],"value":[1],"on":[1],"off":[1]},null,{"checked":["checkedChanged"]}]]],["p-215afdbd",[[1,"road-toolbar-title"]]],["p-6c617506",[[1,"road-toolbar-title-page"]]],["p-fd3c58b6",[[1,"road-toolbar-v2"]]],["p-e6c4c576",[[1,"road-tooltip",{"tooltipId":[1,"tooltip-id"],"content":[1],"position":[1],"contentAlign":[1,"content-align"],"isOpen":[1028,"is-open"],"trigger":[1],"open":[64],"close":[64]}]]],["p-cffedeca",[[1,"road-avatar",{"size":[513]}]]],["p-3f478922",[[1,"road-card",{"elevation":[1],"button":[4],"value":[1],"type":[1],"download":[1],"href":[1],"rel":[1],"target":[1]}]]],["p-4a81230f",[[1,"road-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]]]'),e)}));
|
|
2
2
|
//# sourceMappingURL=roadtrip.esm.js.map
|
|
@@ -137,7 +137,7 @@ export declare class Input {
|
|
|
137
137
|
/**
|
|
138
138
|
* Update the native input element when the value changes
|
|
139
139
|
*/
|
|
140
|
-
protected valueChanged(): void;
|
|
140
|
+
protected valueChanged(newValue: string | number | null, oldValue: string | number | null): void;
|
|
141
141
|
enforceMinMaxValue(): Promise<void>;
|
|
142
142
|
/**
|
|
143
143
|
* Emitted when a keyboard input occurred.
|
package/hydrate/index.js
CHANGED
|
@@ -10927,7 +10927,7 @@ class ContentCard {
|
|
|
10927
10927
|
}; }
|
|
10928
10928
|
}
|
|
10929
10929
|
|
|
10930
|
-
const counterCss = ".sc-road-counter-h{position:relative;z-index:0;display:block}road-input.sc-road-counter{--input-text-align:center;--border-radius:0;--margin-bottom:0}road-button.sc-road-counter{width:3rem;font-size:var(--road-font-size-24);line-height:1.4;background:var(--road-surface);border:1px solid var(--road-button-tertiary-outline)}road-button.sc-road-counter:hover,road-button.sc-road-counter:focus{background:var(--road-button-tertiary-variant)}road-button.sc-road-counter road-icon.sc-road-counter{display:flex;fill:var(--road-primary)}.disabled.sc-road-counter{margin-right:-1px;margin-left:-1px;pointer-events:none;cursor:not-allowed;background:var(--road-surface-disabled);border:1px solid var(--road-on-surface-disabled);opacity:inherit}.disabled.sc-road-counter:focus{background:var(--road-disabled)}.disabled.sc-road-counter road-icon.sc-road-counter{fill:var(--road-grey-50)}road-button.btn-md.sc-road-counter{width:2.5rem}road-button.btn-sm.sc-road-counter{width:2rem}.counter-md.sc-road-counter{height:2.5rem}.counter-sm.sc-road-counter{height:2rem}.counter-md.sc-road-counter road-input.sc-road-counter{--height:2.5rem}.counter-md.sc-road-counter road-button.sc-road-counter{min-width:2.5rem}.counter-sm.sc-road-counter road-input.sc-road-counter{--height:2rem}.counter-sm.sc-road-counter road-button.sc-road-counter{min-width:2rem}";
|
|
10930
|
+
const counterCss = ".sc-road-counter-h{position:relative;z-index:0;display:block}road-input.sc-road-counter{--input-text-align:center;--border-radius:0;--margin-bottom:0}road-button.sc-road-counter{position:relative;width:3rem;font-size:var(--road-font-size-24);line-height:1.4;background:var(--road-surface);border:1px solid var(--road-button-tertiary-outline)}road-button.sc-road-counter:hover,road-button.sc-road-counter:focus{background:var(--road-button-tertiary-variant)}road-button.sc-road-counter road-icon.sc-road-counter{display:flex;fill:var(--road-primary)}.disabled.sc-road-counter{margin-right:-1px;margin-left:-1px;pointer-events:none;cursor:not-allowed;background:var(--road-surface-disabled);border:1px solid var(--road-on-surface-disabled);opacity:inherit}.disabled.sc-road-counter:focus{background:var(--road-disabled)}.disabled.sc-road-counter road-icon.sc-road-counter{fill:var(--road-grey-50)}road-button.btn-md.sc-road-counter{width:2.5rem}road-button.btn-sm.sc-road-counter{width:2rem}.counter-md.sc-road-counter{height:2.5rem}.counter-sm.sc-road-counter{height:2rem}.counter-md.sc-road-counter road-input.sc-road-counter{--height:2.5rem}.counter-md.sc-road-counter road-button.sc-road-counter{min-width:2.5rem}.counter-sm.sc-road-counter road-input.sc-road-counter{--height:2rem}.counter-sm.sc-road-counter road-button.sc-road-counter{min-width:2rem}";
|
|
10931
10931
|
var RoadCounterStyle0 = counterCss;
|
|
10932
10932
|
|
|
10933
10933
|
class Counter {
|
|
@@ -29460,54 +29460,57 @@ class Input {
|
|
|
29460
29460
|
if (this.type === 'number' && this.blockdecimal) {
|
|
29461
29461
|
newValue = newValue.replace(/[.,]/g, ''); // Supprime les décimales si `blockdecimal` est activé
|
|
29462
29462
|
}
|
|
29463
|
-
// Convertir en nombre et ajuster selon min/max
|
|
29464
|
-
let numericValue = parseFloat(newValue);
|
|
29465
|
-
const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;
|
|
29466
|
-
const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;
|
|
29467
|
-
if (!isNaN(numericValue)) {
|
|
29468
|
-
if (minValue !== undefined && numericValue < minValue) {
|
|
29469
|
-
numericValue = minValue;
|
|
29470
|
-
}
|
|
29471
|
-
if (maxValue !== undefined && numericValue > maxValue) {
|
|
29472
|
-
numericValue = maxValue;
|
|
29473
|
-
}
|
|
29474
|
-
newValue = numericValue.toString();
|
|
29475
|
-
}
|
|
29476
29463
|
if (this.type === 'number') {
|
|
29464
|
+
// Convertir en nombre et ajuster selon min/max
|
|
29465
|
+
let numericValue = parseFloat(newValue);
|
|
29466
|
+
const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;
|
|
29467
|
+
const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;
|
|
29468
|
+
if (!isNaN(numericValue)) {
|
|
29469
|
+
if (minValue !== undefined && numericValue < minValue) {
|
|
29470
|
+
numericValue = minValue;
|
|
29471
|
+
}
|
|
29472
|
+
if (maxValue !== undefined && numericValue > maxValue) {
|
|
29473
|
+
numericValue = maxValue;
|
|
29474
|
+
}
|
|
29475
|
+
newValue = numericValue.toString();
|
|
29476
|
+
input.value = newValue; // Force l'affichage de la valeur max
|
|
29477
|
+
ev.preventDefault(); // Empêche la saisie supplémentaire
|
|
29478
|
+
}
|
|
29477
29479
|
this.value = newValue;
|
|
29478
|
-
input.value = newValue; // Mise à jour immédiate du champ
|
|
29479
29480
|
}
|
|
29480
|
-
|
|
29481
|
+
// Vérification si la valeur a réellement changé avant de la mettre à jour
|
|
29482
|
+
if (this.value !== newValue) {
|
|
29481
29483
|
this.value = newValue;
|
|
29484
|
+
this.roadInput.emit(ev);
|
|
29482
29485
|
}
|
|
29483
|
-
this.roadInput.emit(ev);
|
|
29484
|
-
this.roadChange.emit({ value: newValue });
|
|
29485
29486
|
// Appeler enforceMinMaxValue à chaque modification de la valeur
|
|
29486
29487
|
this.enforceMinMaxValue();
|
|
29487
29488
|
};
|
|
29488
29489
|
this.onBlur = () => {
|
|
29489
29490
|
let value = this.getValue();
|
|
29490
|
-
const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;
|
|
29491
|
-
const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;
|
|
29492
|
-
let numericValue = parseFloat(value);
|
|
29493
|
-
if (!isNaN(numericValue)) {
|
|
29494
|
-
if (minValue !== undefined && numericValue < minValue) {
|
|
29495
|
-
numericValue = minValue;
|
|
29496
|
-
}
|
|
29497
|
-
if (maxValue !== undefined && numericValue > maxValue) {
|
|
29498
|
-
numericValue = maxValue;
|
|
29499
|
-
}
|
|
29500
|
-
value = numericValue.toString();
|
|
29501
|
-
}
|
|
29502
29491
|
if (this.type === 'number') {
|
|
29492
|
+
const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;
|
|
29493
|
+
const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;
|
|
29494
|
+
let numericValue = parseFloat(value);
|
|
29495
|
+
if (!isNaN(numericValue)) {
|
|
29496
|
+
if (minValue !== undefined && numericValue < minValue) {
|
|
29497
|
+
numericValue = minValue;
|
|
29498
|
+
}
|
|
29499
|
+
if (maxValue !== undefined && numericValue > maxValue) {
|
|
29500
|
+
numericValue = maxValue;
|
|
29501
|
+
}
|
|
29502
|
+
value = numericValue.toString();
|
|
29503
|
+
}
|
|
29503
29504
|
this.value = value;
|
|
29504
29505
|
const input = document.getElementById(this.inputId);
|
|
29505
29506
|
input.value = value;
|
|
29506
29507
|
}
|
|
29507
|
-
|
|
29508
|
+
// Vérification si la valeur a changé avant mise à jour
|
|
29509
|
+
if (this.value !== value) {
|
|
29508
29510
|
this.value = value;
|
|
29511
|
+
this.roadBlur.emit(value);
|
|
29512
|
+
this.roadChange.emit({ value });
|
|
29509
29513
|
}
|
|
29510
|
-
this.roadBlur.emit(value);
|
|
29511
29514
|
// Appeler enforceMinMaxValue lors de la perte de focus
|
|
29512
29515
|
this.enforceMinMaxValue();
|
|
29513
29516
|
};
|
|
@@ -29535,10 +29538,10 @@ class Input {
|
|
|
29535
29538
|
/**
|
|
29536
29539
|
* Update the native input element when the value changes
|
|
29537
29540
|
*/
|
|
29538
|
-
valueChanged() {
|
|
29539
|
-
|
|
29540
|
-
|
|
29541
|
-
|
|
29541
|
+
valueChanged(newValue, oldValue) {
|
|
29542
|
+
if (newValue !== oldValue) {
|
|
29543
|
+
this.debouncedRoadChange(newValue);
|
|
29544
|
+
}
|
|
29542
29545
|
}
|
|
29543
29546
|
async enforceMinMaxValue() {
|
|
29544
29547
|
let value = this.getValue();
|
|
@@ -29554,12 +29557,9 @@ class Input {
|
|
|
29554
29557
|
}
|
|
29555
29558
|
value = numericValue.toString();
|
|
29556
29559
|
}
|
|
29557
|
-
if (this.type === 'number') {
|
|
29558
|
-
this.value = value;
|
|
29559
|
-
const input = document.getElementById(this.inputId);
|
|
29560
|
-
input.value = value;
|
|
29560
|
+
if (this.type === 'number' && this.value !== value) {
|
|
29561
|
+
this.value = value; // Déclenche @Watch('value')
|
|
29561
29562
|
}
|
|
29562
|
-
this.roadChange.emit({ value });
|
|
29563
29563
|
}
|
|
29564
29564
|
getValue() {
|
|
29565
29565
|
return typeof this.value === 'number'
|
|
@@ -29575,7 +29575,7 @@ class Input {
|
|
|
29575
29575
|
const hasValueClass = this.value !== '' && this.value !== null ? 'has-value' : '';
|
|
29576
29576
|
const lessLabelClass = this.label !== '' ? '' : 'less-label';
|
|
29577
29577
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
29578
|
-
return (hAsync(Host, { key: '
|
|
29578
|
+
return (hAsync(Host, { key: 'e8296b902967681ad3483560e720236c98dc4f9f', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}`, value: value, blockdecimal: this.blockdecimal }, hAsync("input", { key: '8ad175738f8fca4ca345aff156e3124db00afbdf', class: `form-control ${hasValueClass} ${isInvalidClass} ${lessLabelClass}`, id: this.inputId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, enterKeyHint: this.enterkeyhint, autoFocus: this.autofocus, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, size: this.size, type: this.type, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.type === 'number' ? (event) => this.handleKeyDown(event) : undefined, "data-cy": 'road-input' }), hAsync("label", { key: 'f9e63512f533d2cf89a8bbfd6fffd8824a721211', class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && hAsync("p", { key: 'ec34468bc61c42943ee5b275081e02be859e45e2', class: "invalid-feedback" }, hAsync("road-icon", { key: '83204d0fecc77eb3d8e8bc9697cd9bfc7ddb3be5', slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), this.error), this.helper && this.helper !== '' && hAsync("p", { key: 'b639735e1508e1aac0ba5800edf9649fb1847155', class: "helper" }, this.helper), this.type && this.type == 'password' && hAsync("slot", { key: 'c33c73bc53ae22f3b3bd97021a5c4f320cff89f9', name: "checklistPassword" })));
|
|
29579
29579
|
}
|
|
29580
29580
|
static get watchers() { return {
|
|
29581
29581
|
"debounce": ["debounceChanged"],
|
|
@@ -34630,7 +34630,7 @@ class Skeleton {
|
|
|
34630
34630
|
}; }
|
|
34631
34631
|
}
|
|
34632
34632
|
|
|
34633
|
-
const spinnerCss = ":host{display:
|
|
34633
|
+
const spinnerCss = ":host{display:flex}.spinner{transform-origin:center;animation:road-rotate 2s linear infinite}.spinner.spinner--small{width:1rem;height:1rem}.spinner.spinner--medium{width:2rem;height:2rem}.spinner.spinner--large{width:3rem;height:3rem}.spinner.spinner--xl{width:8rem;height:8rem}.spinner-circle{animation:road-dash 1.5s ease-in-out infinite;fill:none;stroke:var(--road-primary);stroke-width:3;stroke-dasharray:1, 200;stroke-dashoffset:0;stroke-linecap:round}.spinner-circle.spinner-circle--dark{stroke:var(--road-grey-0)}.spinner-circle.spinner-circle--light{stroke:var(--road-grey-90)}@keyframes road-rotate{100%{transform:rotate(360deg)}}@keyframes road-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:90, 200;stroke-dashoffset:-35px}100%{stroke-dashoffset:-125px}}";
|
|
34634
34634
|
var RoadSpinnerStyle0 = spinnerCss;
|
|
34635
34635
|
|
|
34636
34636
|
class Spinner {
|
package/hydrate/index.mjs
CHANGED
|
@@ -10923,7 +10923,7 @@ class ContentCard {
|
|
|
10923
10923
|
}; }
|
|
10924
10924
|
}
|
|
10925
10925
|
|
|
10926
|
-
const counterCss = ".sc-road-counter-h{position:relative;z-index:0;display:block}road-input.sc-road-counter{--input-text-align:center;--border-radius:0;--margin-bottom:0}road-button.sc-road-counter{width:3rem;font-size:var(--road-font-size-24);line-height:1.4;background:var(--road-surface);border:1px solid var(--road-button-tertiary-outline)}road-button.sc-road-counter:hover,road-button.sc-road-counter:focus{background:var(--road-button-tertiary-variant)}road-button.sc-road-counter road-icon.sc-road-counter{display:flex;fill:var(--road-primary)}.disabled.sc-road-counter{margin-right:-1px;margin-left:-1px;pointer-events:none;cursor:not-allowed;background:var(--road-surface-disabled);border:1px solid var(--road-on-surface-disabled);opacity:inherit}.disabled.sc-road-counter:focus{background:var(--road-disabled)}.disabled.sc-road-counter road-icon.sc-road-counter{fill:var(--road-grey-50)}road-button.btn-md.sc-road-counter{width:2.5rem}road-button.btn-sm.sc-road-counter{width:2rem}.counter-md.sc-road-counter{height:2.5rem}.counter-sm.sc-road-counter{height:2rem}.counter-md.sc-road-counter road-input.sc-road-counter{--height:2.5rem}.counter-md.sc-road-counter road-button.sc-road-counter{min-width:2.5rem}.counter-sm.sc-road-counter road-input.sc-road-counter{--height:2rem}.counter-sm.sc-road-counter road-button.sc-road-counter{min-width:2rem}";
|
|
10926
|
+
const counterCss = ".sc-road-counter-h{position:relative;z-index:0;display:block}road-input.sc-road-counter{--input-text-align:center;--border-radius:0;--margin-bottom:0}road-button.sc-road-counter{position:relative;width:3rem;font-size:var(--road-font-size-24);line-height:1.4;background:var(--road-surface);border:1px solid var(--road-button-tertiary-outline)}road-button.sc-road-counter:hover,road-button.sc-road-counter:focus{background:var(--road-button-tertiary-variant)}road-button.sc-road-counter road-icon.sc-road-counter{display:flex;fill:var(--road-primary)}.disabled.sc-road-counter{margin-right:-1px;margin-left:-1px;pointer-events:none;cursor:not-allowed;background:var(--road-surface-disabled);border:1px solid var(--road-on-surface-disabled);opacity:inherit}.disabled.sc-road-counter:focus{background:var(--road-disabled)}.disabled.sc-road-counter road-icon.sc-road-counter{fill:var(--road-grey-50)}road-button.btn-md.sc-road-counter{width:2.5rem}road-button.btn-sm.sc-road-counter{width:2rem}.counter-md.sc-road-counter{height:2.5rem}.counter-sm.sc-road-counter{height:2rem}.counter-md.sc-road-counter road-input.sc-road-counter{--height:2.5rem}.counter-md.sc-road-counter road-button.sc-road-counter{min-width:2.5rem}.counter-sm.sc-road-counter road-input.sc-road-counter{--height:2rem}.counter-sm.sc-road-counter road-button.sc-road-counter{min-width:2rem}";
|
|
10927
10927
|
var RoadCounterStyle0 = counterCss;
|
|
10928
10928
|
|
|
10929
10929
|
class Counter {
|
|
@@ -29456,54 +29456,57 @@ class Input {
|
|
|
29456
29456
|
if (this.type === 'number' && this.blockdecimal) {
|
|
29457
29457
|
newValue = newValue.replace(/[.,]/g, ''); // Supprime les décimales si `blockdecimal` est activé
|
|
29458
29458
|
}
|
|
29459
|
-
// Convertir en nombre et ajuster selon min/max
|
|
29460
|
-
let numericValue = parseFloat(newValue);
|
|
29461
|
-
const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;
|
|
29462
|
-
const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;
|
|
29463
|
-
if (!isNaN(numericValue)) {
|
|
29464
|
-
if (minValue !== undefined && numericValue < minValue) {
|
|
29465
|
-
numericValue = minValue;
|
|
29466
|
-
}
|
|
29467
|
-
if (maxValue !== undefined && numericValue > maxValue) {
|
|
29468
|
-
numericValue = maxValue;
|
|
29469
|
-
}
|
|
29470
|
-
newValue = numericValue.toString();
|
|
29471
|
-
}
|
|
29472
29459
|
if (this.type === 'number') {
|
|
29460
|
+
// Convertir en nombre et ajuster selon min/max
|
|
29461
|
+
let numericValue = parseFloat(newValue);
|
|
29462
|
+
const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;
|
|
29463
|
+
const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;
|
|
29464
|
+
if (!isNaN(numericValue)) {
|
|
29465
|
+
if (minValue !== undefined && numericValue < minValue) {
|
|
29466
|
+
numericValue = minValue;
|
|
29467
|
+
}
|
|
29468
|
+
if (maxValue !== undefined && numericValue > maxValue) {
|
|
29469
|
+
numericValue = maxValue;
|
|
29470
|
+
}
|
|
29471
|
+
newValue = numericValue.toString();
|
|
29472
|
+
input.value = newValue; // Force l'affichage de la valeur max
|
|
29473
|
+
ev.preventDefault(); // Empêche la saisie supplémentaire
|
|
29474
|
+
}
|
|
29473
29475
|
this.value = newValue;
|
|
29474
|
-
input.value = newValue; // Mise à jour immédiate du champ
|
|
29475
29476
|
}
|
|
29476
|
-
|
|
29477
|
+
// Vérification si la valeur a réellement changé avant de la mettre à jour
|
|
29478
|
+
if (this.value !== newValue) {
|
|
29477
29479
|
this.value = newValue;
|
|
29480
|
+
this.roadInput.emit(ev);
|
|
29478
29481
|
}
|
|
29479
|
-
this.roadInput.emit(ev);
|
|
29480
|
-
this.roadChange.emit({ value: newValue });
|
|
29481
29482
|
// Appeler enforceMinMaxValue à chaque modification de la valeur
|
|
29482
29483
|
this.enforceMinMaxValue();
|
|
29483
29484
|
};
|
|
29484
29485
|
this.onBlur = () => {
|
|
29485
29486
|
let value = this.getValue();
|
|
29486
|
-
const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;
|
|
29487
|
-
const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;
|
|
29488
|
-
let numericValue = parseFloat(value);
|
|
29489
|
-
if (!isNaN(numericValue)) {
|
|
29490
|
-
if (minValue !== undefined && numericValue < minValue) {
|
|
29491
|
-
numericValue = minValue;
|
|
29492
|
-
}
|
|
29493
|
-
if (maxValue !== undefined && numericValue > maxValue) {
|
|
29494
|
-
numericValue = maxValue;
|
|
29495
|
-
}
|
|
29496
|
-
value = numericValue.toString();
|
|
29497
|
-
}
|
|
29498
29487
|
if (this.type === 'number') {
|
|
29488
|
+
const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;
|
|
29489
|
+
const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;
|
|
29490
|
+
let numericValue = parseFloat(value);
|
|
29491
|
+
if (!isNaN(numericValue)) {
|
|
29492
|
+
if (minValue !== undefined && numericValue < minValue) {
|
|
29493
|
+
numericValue = minValue;
|
|
29494
|
+
}
|
|
29495
|
+
if (maxValue !== undefined && numericValue > maxValue) {
|
|
29496
|
+
numericValue = maxValue;
|
|
29497
|
+
}
|
|
29498
|
+
value = numericValue.toString();
|
|
29499
|
+
}
|
|
29499
29500
|
this.value = value;
|
|
29500
29501
|
const input = document.getElementById(this.inputId);
|
|
29501
29502
|
input.value = value;
|
|
29502
29503
|
}
|
|
29503
|
-
|
|
29504
|
+
// Vérification si la valeur a changé avant mise à jour
|
|
29505
|
+
if (this.value !== value) {
|
|
29504
29506
|
this.value = value;
|
|
29507
|
+
this.roadBlur.emit(value);
|
|
29508
|
+
this.roadChange.emit({ value });
|
|
29505
29509
|
}
|
|
29506
|
-
this.roadBlur.emit(value);
|
|
29507
29510
|
// Appeler enforceMinMaxValue lors de la perte de focus
|
|
29508
29511
|
this.enforceMinMaxValue();
|
|
29509
29512
|
};
|
|
@@ -29531,10 +29534,10 @@ class Input {
|
|
|
29531
29534
|
/**
|
|
29532
29535
|
* Update the native input element when the value changes
|
|
29533
29536
|
*/
|
|
29534
|
-
valueChanged() {
|
|
29535
|
-
|
|
29536
|
-
|
|
29537
|
-
|
|
29537
|
+
valueChanged(newValue, oldValue) {
|
|
29538
|
+
if (newValue !== oldValue) {
|
|
29539
|
+
this.debouncedRoadChange(newValue);
|
|
29540
|
+
}
|
|
29538
29541
|
}
|
|
29539
29542
|
async enforceMinMaxValue() {
|
|
29540
29543
|
let value = this.getValue();
|
|
@@ -29550,12 +29553,9 @@ class Input {
|
|
|
29550
29553
|
}
|
|
29551
29554
|
value = numericValue.toString();
|
|
29552
29555
|
}
|
|
29553
|
-
if (this.type === 'number') {
|
|
29554
|
-
this.value = value;
|
|
29555
|
-
const input = document.getElementById(this.inputId);
|
|
29556
|
-
input.value = value;
|
|
29556
|
+
if (this.type === 'number' && this.value !== value) {
|
|
29557
|
+
this.value = value; // Déclenche @Watch('value')
|
|
29557
29558
|
}
|
|
29558
|
-
this.roadChange.emit({ value });
|
|
29559
29559
|
}
|
|
29560
29560
|
getValue() {
|
|
29561
29561
|
return typeof this.value === 'number'
|
|
@@ -29571,7 +29571,7 @@ class Input {
|
|
|
29571
29571
|
const hasValueClass = this.value !== '' && this.value !== null ? 'has-value' : '';
|
|
29572
29572
|
const lessLabelClass = this.label !== '' ? '' : 'less-label';
|
|
29573
29573
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
29574
|
-
return (hAsync(Host, { key: '
|
|
29574
|
+
return (hAsync(Host, { key: 'e8296b902967681ad3483560e720236c98dc4f9f', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}`, value: value, blockdecimal: this.blockdecimal }, hAsync("input", { key: '8ad175738f8fca4ca345aff156e3124db00afbdf', class: `form-control ${hasValueClass} ${isInvalidClass} ${lessLabelClass}`, id: this.inputId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, enterKeyHint: this.enterkeyhint, autoFocus: this.autofocus, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, size: this.size, type: this.type, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.type === 'number' ? (event) => this.handleKeyDown(event) : undefined, "data-cy": 'road-input' }), hAsync("label", { key: 'f9e63512f533d2cf89a8bbfd6fffd8824a721211', class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && hAsync("p", { key: 'ec34468bc61c42943ee5b275081e02be859e45e2', class: "invalid-feedback" }, hAsync("road-icon", { key: '83204d0fecc77eb3d8e8bc9697cd9bfc7ddb3be5', slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), this.error), this.helper && this.helper !== '' && hAsync("p", { key: 'b639735e1508e1aac0ba5800edf9649fb1847155', class: "helper" }, this.helper), this.type && this.type == 'password' && hAsync("slot", { key: 'c33c73bc53ae22f3b3bd97021a5c4f320cff89f9', name: "checklistPassword" })));
|
|
29575
29575
|
}
|
|
29576
29576
|
static get watchers() { return {
|
|
29577
29577
|
"debounce": ["debounceChanged"],
|
|
@@ -34626,7 +34626,7 @@ class Skeleton {
|
|
|
34626
34626
|
}; }
|
|
34627
34627
|
}
|
|
34628
34628
|
|
|
34629
|
-
const spinnerCss = ":host{display:
|
|
34629
|
+
const spinnerCss = ":host{display:flex}.spinner{transform-origin:center;animation:road-rotate 2s linear infinite}.spinner.spinner--small{width:1rem;height:1rem}.spinner.spinner--medium{width:2rem;height:2rem}.spinner.spinner--large{width:3rem;height:3rem}.spinner.spinner--xl{width:8rem;height:8rem}.spinner-circle{animation:road-dash 1.5s ease-in-out infinite;fill:none;stroke:var(--road-primary);stroke-width:3;stroke-dasharray:1, 200;stroke-dashoffset:0;stroke-linecap:round}.spinner-circle.spinner-circle--dark{stroke:var(--road-grey-0)}.spinner-circle.spinner-circle--light{stroke:var(--road-grey-90)}@keyframes road-rotate{100%{transform:rotate(360deg)}}@keyframes road-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:90, 200;stroke-dashoffset:-35px}100%{stroke-dashoffset:-125px}}";
|
|
34630
34630
|
var RoadSpinnerStyle0 = spinnerCss;
|
|
34631
34631
|
|
|
34632
34632
|
class Spinner {
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r,h as e}from"./p-d7aae05d.js";const s=":host{display:block}.spinner{transform-origin:center;animation:road-rotate 2s linear infinite}.spinner.spinner--small{width:1rem;height:1rem}.spinner.spinner--medium{width:2rem;height:2rem}.spinner.spinner--large{width:3rem;height:3rem}.spinner.spinner--xl{width:8rem;height:8rem}.spinner-circle{animation:road-dash 1.5s ease-in-out infinite;fill:none;stroke:var(--road-primary);stroke-width:3;stroke-dasharray:1, 200;stroke-dashoffset:0;stroke-linecap:round}.spinner-circle.spinner-circle--dark{stroke:var(--road-grey-0)}.spinner-circle.spinner-circle--light{stroke:var(--road-grey-90)}@keyframes road-rotate{100%{transform:rotate(360deg)}}@keyframes road-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:90, 200;stroke-dashoffset:-35px}100%{stroke-dashoffset:-125px}}";const n=s;const i=class{constructor(e){r(this,e);this.size="large";this.color="default"}render(){const r=this.size!==undefined?`spinner spinner--${this.size}`:"spinner";const s=this.size!==undefined?`spinner-circle spinner-circle--${this.color}`:"spinner-circle";return e("svg",{key:"66ff9c668eec8fc73a2f93015094934b9fb0b181",class:`${r}`,viewBox:"25 25 50 50"},e("circle",{key:"5b2c9b4c104607084c0d2249c5b7dc31429ad39a",class:`${s}`,cx:"50",cy:"50",r:"20"}))}};i.style=n;export{i as road_spinner};
|
|
2
|
-
//# sourceMappingURL=p-04913d58.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["spinnerCss","RoadSpinnerStyle0","Spinner","constructor","hostRef","this","size","color","render","sizeClass","undefined","colorClass","h","key","class","viewBox","cx","cy","r"],"sources":["src/components/spinner/spinner.css?tag=road-spinner&encapsulation=shadow","src/components/spinner/spinner.tsx"],"sourcesContent":["/*\n * Spinner\n *\n * Index\n * - Spinner\n * - Circle\n * - Animation\n */\n\n:host {\n display: block;\n}\n\n/* SPINNER\n -------------------- */\n\n.spinner {\n transform-origin: center;\n animation: road-rotate 2s linear infinite;\n}\n\n.spinner.spinner--small{\n width: 1rem;\n height: 1rem;\n}\n\n.spinner.spinner--medium{\n width: 2rem;\n height: 2rem;\n}\n\n.spinner.spinner--large {\n width: 3rem;\n height: 3rem;\n}\n\n.spinner.spinner--xl {\n width: 8rem;\n height: 8rem;\n}\n\n/* CIRCLE\n -------------------- */\n\n.spinner-circle {\n animation: road-dash 1.5s ease-in-out infinite;\n fill: none;\n stroke: var(--road-primary);\n stroke-width: 3;\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n stroke-linecap: round;\n}\n\n.spinner-circle.spinner-circle--dark {\n stroke: var(--road-grey-0);\n}\n\n.spinner-circle.spinner-circle--light {\n stroke: var(--road-grey-90);\n}\n\n/* ANIMATION\n -------------------- */\n\n@keyframes road-rotate {\n\n 100% {\n transform: rotate(360deg);\n }\n}\n\n@keyframes road-dash {\n\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 90, 200;\n stroke-dashoffset: -35px;\n }\n\n 100% {\n stroke-dashoffset: -125px;\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'road-spinner',\n styleUrl: 'spinner.css',\n shadow: true,\n})\nexport class Spinner {\n\n /**\n * The button size.\n */\n @Prop({ reflect: true }) size?: 'small' | 'medium' | 'large' | 'xl' = 'large';\n\n /**\n * The color spinner.\n */\n @Prop({ reflect: true }) color?: 'default' | 'light' | 'dark' = 'default';\n\n render() {\n const sizeClass = this.size !== undefined ? `spinner spinner--${this.size}` : 'spinner';\n const colorClass = this.size !== undefined ? `spinner-circle spinner-circle--${this.color}` : 'spinner-circle';\n\n\n return (\n <svg class={`${sizeClass}`} viewBox=\"25 25 50 50\">\n <circle class={`${colorClass}`} cx=\"50\" cy=\"50\" r=\"20\"></circle>\n </svg>\n );\n }\n\n}\n"],"mappings":"sCAAA,MAAMA,EAAa,4xBACnB,MAAAC,EAAeD,E,MCMFE,EAAO,MALpB,WAAAC,CAAAC,G,UAU4BC,KAAAC,KAA6C,QAK5CD,KAAAE,MAAuC,S,CAEhE,MAAAC,GACE,MAAMC,EAAYJ,KAAKC,OAASI,UAAY,oBAAoBL,KAAKC,OAAS,UAC9E,MAAMK,EAAaN,KAAKC,OAASI,UAAY,kCAAkCL,KAAKE,QAAU,iBAG9F,OACEK,EAAA,OAAAC,IAAA,2CAAKC,MAAO,GAAGL,IAAaM,QAAQ,eAClCH,EAAA,UAAAC,IAAA,2CAAQC,MAAO,GAAGH,IAAcK,GAAG,KAAKC,GAAG,KAAKC,EAAE,O","ignoreList":[]}
|