@roadtrip/components 2.42.0 → 2.44.0
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/{app-79994847.js → app-d94011e3.js} +1 -1
- package/dist/cjs/css-shim-1269258a.js +6 -0
- package/dist/cjs/{dom-417ccd20.js → dom-36862b77.js} +1 -1
- package/dist/cjs/{index-9b63596c.js → index-a2306350.js} +689 -277
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/road-accordion.cjs.entry.js +14 -4
- package/dist/cjs/road-alert.cjs.entry.js +3 -3
- package/dist/cjs/road-autocomplete.cjs.entry.js +3 -3
- package/dist/cjs/road-avatar.cjs.entry.js +3 -3
- package/dist/cjs/road-badge_14.cjs.entry.js +808 -0
- package/dist/cjs/road-banner.cjs.entry.js +2 -2
- package/dist/cjs/road-card.cjs.entry.js +3 -3
- package/dist/cjs/road-carousel-item.cjs.entry.js +3 -3
- package/dist/cjs/road-carousel.cjs.entry.js +6461 -31
- package/dist/cjs/road-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/road-chip.cjs.entry.js +3 -3
- package/dist/cjs/road-collapse.cjs.entry.js +3 -3
- package/dist/cjs/road-dialog.cjs.entry.js +3 -3
- package/dist/cjs/road-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/road-duration.cjs.entry.js +3 -3
- package/dist/cjs/road-flap.cjs.entry.js +3 -3
- package/dist/cjs/road-img.cjs.entry.js +3 -3
- package/dist/cjs/road-modal.cjs.entry.js +3 -3
- package/dist/cjs/road-navbar-item.cjs.entry.js +3 -3
- package/dist/cjs/road-navbar.cjs.entry.js +3 -3
- package/dist/cjs/road-plate-number.cjs.entry.js +3 -3
- package/dist/cjs/road-progress.cjs.entry.js +3 -3
- package/dist/cjs/road-radio-group.cjs.entry.js +3 -3
- package/dist/cjs/road-radio.cjs.entry.js +3 -3
- package/dist/cjs/road-range.cjs.entry.js +3 -3
- package/dist/cjs/road-rating.cjs.entry.js +3 -3
- package/dist/cjs/road-select-filter.cjs.entry.js +6 -4
- package/dist/cjs/road-select.cjs.entry.js +3 -3
- package/dist/cjs/road-skeleton.cjs.entry.js +3 -3
- package/dist/cjs/road-spinner.cjs.entry.js +3 -3
- package/dist/cjs/road-stepper.cjs.entry.js +3 -3
- package/dist/cjs/road-switch.cjs.entry.js +3 -3
- package/dist/cjs/road-tab-bar.cjs.entry.js +3 -3
- package/dist/cjs/road-tab-button.cjs.entry.js +3 -3
- package/dist/cjs/road-tab.cjs.entry.js +2 -2
- package/dist/cjs/road-table.cjs.entry.js +3 -3
- package/dist/cjs/road-tabs.cjs.entry.js +2 -2
- package/dist/cjs/road-text.cjs.entry.js +2 -2
- package/dist/cjs/road-textarea.cjs.entry.js +3 -3
- package/dist/cjs/road-toast.cjs.entry.js +3 -3
- package/dist/cjs/road-toggle.cjs.entry.js +3 -3
- package/dist/cjs/road-toolbar-title.cjs.entry.js +3 -3
- package/dist/cjs/road-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/roadtrip.cjs.js +5 -5
- package/dist/cjs/{shadow-css-432b27e3.js → shadow-css-346c0795.js} +2 -3
- package/dist/cjs/{utils-90171b88.js → utils-5c31da25.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion.css +22 -8
- package/dist/collection/components/accordion/accordion.js +95 -49
- package/dist/collection/components/accordion/accordion.stories.js +9 -1
- package/dist/collection/components/alert/alert.js +86 -87
- package/dist/collection/components/autocomplete/autocomplete.js +97 -87
- package/dist/collection/components/avatar/avatar.js +11 -7
- package/dist/collection/components/badge/badge.js +55 -50
- package/dist/collection/components/banner/banner.js +118 -113
- package/dist/collection/components/button/button.css +1 -0
- package/dist/collection/components/button/button.js +251 -247
- package/dist/collection/components/card/card.js +172 -165
- package/dist/collection/components/carousel/carousel.css +25 -29
- package/dist/collection/components/carousel/carousel.js +652 -646
- package/dist/collection/components/carousel-item/carousel-item.js +12 -9
- package/dist/collection/components/checkbox/checkbox.js +309 -308
- package/dist/collection/components/chip/chip.js +85 -82
- package/dist/collection/components/col/col.js +11 -7
- package/dist/collection/components/collapse/collapse.js +85 -84
- package/dist/collection/components/counter/counter.css +18 -2
- package/dist/collection/components/counter/counter.js +283 -256
- package/dist/collection/components/counter/counter.stories.js +3 -13
- package/dist/collection/components/dialog/dialog.js +181 -180
- package/dist/collection/components/drawer/drawer.js +263 -262
- package/dist/collection/components/dropdown/dropdown.js +84 -84
- package/dist/collection/components/duration/duration.js +160 -155
- package/dist/collection/components/flap/flap.js +51 -46
- package/dist/collection/components/grid/grid.css +9 -0
- package/dist/collection/components/grid/grid.js +11 -7
- package/dist/collection/components/icon/icon.js +201 -191
- package/dist/collection/components/icon/svg/battery-start-stop-color.svg +1 -1
- package/dist/collection/components/icon/svg/battery-start-stop-outline.svg +1 -1
- package/dist/collection/components/icon/svg/bike-inflation-color.svg +1 -1
- package/dist/collection/components/icon/svg/bike-inflation-outline.svg +1 -1
- package/dist/collection/components/icon/svg/electric-color.svg +1 -1
- package/dist/collection/components/icon/svg/electric-outline.svg +1 -1
- package/dist/collection/components/icon/svg/electric-solid.svg +1 -1
- package/dist/collection/components/icon/svg/file-contract-color.svg +1 -0
- package/dist/collection/components/icon/svg/file-contract-outline.svg +1 -0
- package/dist/collection/components/icon/svg/flag-belgium.svg +1 -1
- package/dist/collection/components/icon/svg/flag-germany.svg +1 -1
- package/dist/collection/components/icon/svg/motor-starter-color.svg +1 -0
- package/dist/collection/components/icon/svg/motor-starter-outline.svg +1 -0
- package/dist/collection/components/icon/svg/people-disability-wheelchair-color.svg +1 -1
- package/dist/collection/components/icon/svg/people-disability-wheelchair-solid.svg +1 -1
- package/dist/collection/components/icon/svg/seat-bike-front-color.svg +1 -0
- package/dist/collection/components/icon/svg/seat-bike-front-outline.svg +1 -0
- package/dist/collection/components/icon/svg/seat-bike-rear-color.svg +1 -0
- package/dist/collection/components/icon/svg/seat-bike-rear-junior-color.svg +1 -0
- package/dist/collection/components/icon/svg/seat-bike-rear-junior-outline.svg +1 -0
- package/dist/collection/components/icon/svg/seat-bike-rear-outline.svg +1 -0
- package/dist/collection/components/icon/svg/seat-bike-trailer-color.svg +1 -0
- package/dist/collection/components/icon/svg/seat-bike-trailer-outline.svg +1 -0
- package/dist/collection/components/icon/svg/shock-absorber-body-part-color.svg +1 -0
- package/dist/collection/components/icon/svg/shock-absorber-color.svg +1 -1
- package/dist/collection/components/icon/svg/shock-absorber-outline.svg +1 -1
- package/dist/collection/components/icon/svg/smart-repair-color.svg +1 -0
- package/dist/collection/components/icon/svg/smart-repair-outline.svg +1 -0
- package/dist/collection/components/icon/svg/{snowflake-solid color.svg → snowflake-solid-color.svg} +0 -0
- package/dist/collection/components/icon/svg/social-linkedin-badge.svg +1 -1
- package/dist/collection/components/icon/svg/sticker-certified-pickerl-color.svg +1 -0
- package/dist/collection/components/icon/svg/sticker-certified-pickerl-outline.svg +1 -0
- package/dist/collection/components/icon/svg/timer-1u-color.svg +1 -1
- package/dist/collection/components/icon/svg/timer-1u-outline.svg +1 -1
- package/dist/collection/components/icon/svg/tire-inflation-color.svg +1 -1
- package/dist/collection/components/icon/svg/tire-inflation-outline.svg +1 -1
- package/dist/collection/components/icon/svg/tire-received-color.svg +1 -0
- package/dist/collection/components/icon/svg/tire-received-outline.svg +1 -0
- package/dist/collection/components/icon/svg/tire-received-solid.svg +1 -0
- package/dist/collection/components/icon/svg/tire-swap-color.svg +1 -0
- package/dist/collection/components/icon/svg/tire-swap-outline.svg +1 -0
- package/dist/collection/components/icon/svg/tire-swap-solid.svg +1 -0
- package/dist/collection/components/icon/svg/tire-transfer-color.svg +1 -0
- package/dist/collection/components/icon/svg/tire-transfer-outline.svg +1 -0
- package/dist/collection/components/icon/svg/tire-transfer-solid.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-4wd-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-4wd-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-4wd-solid.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-acc-color.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-acc-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-acc-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-battery-service-color.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-battery-service-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-battery-service-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-bike-repair-color.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-bike-repair-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-bike-repair-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-bus-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-bus-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-bus-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-car-moto-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-car-moto-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-car-moto-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-car-sad-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-car-sad-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-car-sad-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-car-search-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-car-search-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-car-search-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-car-side-tire-behind-color.svg +1 -1
- package/dist/collection/components/icon/svg/{vehicle-car-side-tire-front-outline-color.svg → vehicle-car-side-tire-behind-outline-color.svg} +0 -0
- package/dist/collection/components/icon/svg/vehicle-car-side-tire-behind-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-car-side-tire-behind-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-car-side-tire-behind.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-car-side-tire-front-color.svg +1 -1
- package/dist/collection/components/icon/svg/{vehicle-car-side-tire-behind-oultine.svg → vehicle-car-side-tire-front-oultine.svg} +0 -0
- package/dist/collection/components/icon/svg/vehicle-car-side-tire-front-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-car-side-tire-front-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-car-side-tire-front.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-car-sound-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-car-sound-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-car-sound-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-caravan-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-caravan-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-caravan-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-carport-color.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-carport-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-collector-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-collector-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-collector-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-delivery-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-delivery-fast-color.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-delivery-fast-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-delivery-fast-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-delivery-free-return-color.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-delivery-free-return-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-delivery-free-return-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-delivery-meeting-color.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-delivery-meeting-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-delivery-meeting-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-delivery-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-delivery-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-distance-color.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-distance-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-drive-carport-color.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-drive-carport-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-drive-color.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-drive-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-micro-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-micro-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-micro-solid.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-minivan-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-minivan-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-minivan-solid.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-moto-color.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-moto-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-moto-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-mower-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-mower-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-mower-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-pickup-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-pickup-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-pickup-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-pickup-van-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-pickup-van-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-pickup-van-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-quad-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-quad-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-quad-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-rent-bike-electric-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-rent-bike-electric-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-rent-bike-electric-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-rent-car-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-rent-car-micro-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-rent-car-micro-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-rent-car-micro-solid.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-rent-car-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-rent-car-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-rent-trailer-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-rent-trailer-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-rent-trailer-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-repair-car-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-repair-car-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-repair-car-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-repair-moto-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-repair-moto-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-repair-moto-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-repair-pickup-van-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-repair-pickup-van-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-repair-pickup-van-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-repair-van-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-repair-van-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-repair-van-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-road-grip-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-road-grip-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-road-grip-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-roadster-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-roadster-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-roadster-solid.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-roofrack-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-roofrack-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-roofrack-solid.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-scooter-color.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-scooter-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-scooter-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-sedan-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-sedan-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-sedan-solid.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-sport-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-sport-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-sport-solid.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-station-wagon-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-station-wagon-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-station-wagon-solid.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-suv-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-suv-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-suv-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-tractor-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-tractor-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-tractor-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-trailer-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-trailer-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-trailer-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-truck-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-truck-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-truck-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-van-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-van-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-van-solid.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-workshop-color.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-workshop-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-workshop-solid.svg +1 -1
- package/dist/collection/components/icon/svg/weather-sun-color.svg +1 -1
- package/dist/collection/components/icon/svg/weather-sun-outline-color.svg +1 -1
- package/dist/collection/components/icon/svg/weather-sun-snow-color.svg +1 -1
- package/dist/collection/components/icon/svg/weather-sun-snow-outline-color.svg +1 -1
- package/dist/collection/components/icon/svg/weather-sun-snow-solid-color.svg +1 -1
- package/dist/collection/components/icon/svg/weather-sun-solid-color.svg +1 -1
- package/dist/collection/components/img/img.js +162 -151
- package/dist/collection/components/input/input.js +647 -642
- package/dist/collection/components/input-group/input-group.js +12 -13
- package/dist/collection/components/item/item.js +205 -204
- package/dist/collection/components/label/label.js +11 -7
- package/dist/collection/components/list/list.js +33 -28
- package/dist/collection/components/modal/modal.js +160 -157
- package/dist/collection/components/navbar/navbar.js +92 -81
- package/dist/collection/components/navbar-item/navbar-item.js +190 -183
- package/dist/collection/components/plate-number/plate-number.js +265 -262
- package/dist/collection/components/progress/progress.js +68 -65
- package/dist/collection/components/radio/radio.js +272 -262
- package/dist/collection/components/radio-group/radio-group.js +210 -207
- package/dist/collection/components/range/range.js +180 -176
- package/dist/collection/components/rating/rating.js +85 -88
- package/dist/collection/components/row/row.js +12 -9
- package/dist/collection/components/select/select.js +310 -305
- package/dist/collection/components/select-filter/select-filter.js +176 -164
- package/dist/collection/components/select-filter/select-filter.stories.js +2 -2
- package/dist/collection/components/skeleton/skeleton.js +11 -7
- package/dist/collection/components/spinner/spinner.js +51 -46
- package/dist/collection/components/stepper/stepper.js +116 -130
- package/dist/collection/components/switch/switch.js +315 -310
- package/dist/collection/components/tab/tab.js +71 -64
- package/dist/collection/components/tab-bar/tab-bar.js +128 -119
- package/dist/collection/components/tab-button/tab-button.js +184 -177
- package/dist/collection/components/table/table.js +11 -7
- package/dist/collection/components/tabs/tabs.js +154 -147
- package/dist/collection/components/text/text.js +34 -29
- package/dist/collection/components/textarea/textarea.js +529 -523
- package/dist/collection/components/toast/toast.css +1 -1
- package/dist/collection/components/toast/toast.js +143 -136
- package/dist/collection/components/toggle/toggle.js +315 -310
- package/dist/collection/components/toolbar/toolbar.js +33 -34
- package/dist/collection/components/toolbar-title/toolbar-title.js +12 -9
- package/dist/collection/components/tooltip/tooltip.js +153 -149
- package/dist/esm/{app-a32f9d74.js → app-ca51f056.js} +1 -1
- package/dist/esm/css-shim-88cc621b.js +4 -0
- package/dist/esm/{dom-ba83fb9d.js → dom-665d6011.js} +1 -1
- package/dist/esm/{index-0c8a0e04.js → index-a99a5e7b.js} +689 -277
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/road-accordion.entry.js +14 -4
- package/dist/esm/road-alert.entry.js +3 -3
- package/dist/esm/road-autocomplete.entry.js +3 -3
- package/dist/esm/road-avatar.entry.js +3 -3
- package/dist/esm/road-badge_14.entry.js +791 -0
- package/dist/esm/road-banner.entry.js +2 -2
- package/dist/esm/road-card.entry.js +3 -3
- package/dist/esm/road-carousel-item.entry.js +3 -3
- package/dist/esm/road-carousel.entry.js +6441 -11
- package/dist/esm/road-checkbox.entry.js +3 -3
- package/dist/esm/road-chip.entry.js +3 -3
- package/dist/esm/road-collapse.entry.js +3 -3
- package/dist/esm/road-dialog.entry.js +3 -3
- package/dist/esm/road-dropdown.entry.js +3 -3
- package/dist/esm/road-duration.entry.js +3 -3
- package/dist/esm/road-flap.entry.js +3 -3
- package/dist/esm/road-img.entry.js +3 -3
- package/dist/esm/road-modal.entry.js +3 -3
- package/dist/esm/road-navbar-item.entry.js +3 -3
- package/dist/esm/road-navbar.entry.js +3 -3
- package/dist/esm/road-plate-number.entry.js +3 -3
- package/dist/esm/road-progress.entry.js +3 -3
- package/dist/esm/road-radio-group.entry.js +3 -3
- package/dist/esm/road-radio.entry.js +3 -3
- package/dist/esm/road-range.entry.js +3 -3
- package/dist/esm/road-rating.entry.js +3 -3
- package/dist/esm/road-select-filter.entry.js +6 -4
- package/dist/esm/road-select.entry.js +3 -3
- package/dist/esm/road-skeleton.entry.js +3 -3
- package/dist/esm/road-spinner.entry.js +3 -3
- package/dist/esm/road-stepper.entry.js +3 -3
- package/dist/esm/road-switch.entry.js +3 -3
- package/dist/esm/road-tab-bar.entry.js +3 -3
- package/dist/esm/road-tab-button.entry.js +3 -3
- package/dist/esm/road-tab.entry.js +2 -2
- package/dist/esm/road-table.entry.js +3 -3
- package/dist/esm/road-tabs.entry.js +2 -2
- package/dist/esm/road-text.entry.js +2 -2
- package/dist/esm/road-textarea.entry.js +3 -3
- package/dist/esm/road-toast.entry.js +3 -3
- package/dist/esm/road-toggle.entry.js +3 -3
- package/dist/esm/road-toolbar-title.entry.js +3 -3
- package/dist/esm/road-tooltip.entry.js +3 -3
- package/dist/esm/roadtrip.js +5 -5
- package/dist/esm/{shadow-css-bfd5796e.js → shadow-css-b18e99d7.js} +2 -3
- package/dist/esm/{utils-39de47f7.js → utils-0ec32b47.js} +1 -1
- package/dist/html.html-data.json +21 -13
- package/dist/icons/icons.svg +1 -1
- package/dist/icons/index.d.ts +97 -2
- package/dist/icons/index.js +184 -89
- package/dist/index.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/loader/package.json +1 -0
- package/dist/roadtrip/index.esm.js +1 -1
- package/dist/roadtrip/p-05f7da47.entry.js +1 -0
- package/dist/roadtrip/p-095d5ffc.entry.js +1 -0
- package/dist/roadtrip/p-0ca6fb50.entry.js +1 -0
- package/dist/roadtrip/p-0ce45fe7.entry.js +1 -0
- package/dist/roadtrip/p-1361d4c7.entry.js +1 -0
- package/dist/roadtrip/p-1871fe52.entry.js +1 -0
- package/dist/roadtrip/p-1c8fba28.entry.js +1 -0
- package/dist/roadtrip/p-23d1fa76.entry.js +1 -0
- package/dist/roadtrip/p-2b92deb4.entry.js +1 -0
- package/dist/roadtrip/p-2c87e848.entry.js +1 -0
- package/dist/roadtrip/p-2db00cbc.entry.js +1 -0
- package/dist/roadtrip/p-34045b69.entry.js +1 -0
- package/dist/roadtrip/p-350b8f54.entry.js +1 -0
- package/dist/roadtrip/p-4056c748.entry.js +1 -0
- package/dist/roadtrip/p-40bfdbfa.entry.js +1 -0
- package/dist/roadtrip/p-4354fc7f.entry.js +1 -0
- package/dist/roadtrip/p-4b12d113.js +1 -0
- package/dist/roadtrip/p-5198817e.entry.js +1 -0
- package/dist/roadtrip/p-5d29e9c8.entry.js +1 -0
- package/dist/roadtrip/p-6246e09a.entry.js +1 -0
- package/dist/roadtrip/p-6298ef24.entry.js +1 -0
- package/dist/roadtrip/{p-ac0761c3.js → p-62b28500.js} +0 -0
- package/dist/roadtrip/p-6312516e.js +1 -0
- package/dist/roadtrip/{p-22ff574e.entry.js → p-64c0d798.entry.js} +1 -1
- package/dist/roadtrip/p-6862b9f8.entry.js +1 -0
- package/dist/roadtrip/p-70540977.entry.js +1 -0
- package/dist/roadtrip/p-835ad24a.entry.js +1 -0
- package/dist/roadtrip/p-924cade0.entry.js +1 -0
- package/dist/roadtrip/p-96475c17.entry.js +1 -0
- package/dist/roadtrip/p-97d330e0.entry.js +1 -0
- package/dist/roadtrip/p-aafa4ced.entry.js +1 -0
- package/dist/roadtrip/p-aeb7cc19.entry.js +1 -0
- package/dist/roadtrip/p-b09d2170.entry.js +1 -0
- package/dist/roadtrip/p-ba09f82a.entry.js +1 -0
- package/dist/roadtrip/p-c468b520.entry.js +1 -0
- package/dist/roadtrip/p-cc47e29d.entry.js +1 -0
- package/dist/roadtrip/p-cdc666bc.js +2 -0
- package/dist/roadtrip/p-d2d83075.entry.js +1 -0
- package/dist/roadtrip/p-d5a7bdc7.entry.js +1 -0
- package/dist/roadtrip/p-de4ccbde.entry.js +1 -0
- package/dist/roadtrip/p-e348e3a3.entry.js +1 -0
- package/dist/roadtrip/p-e5d7e62d.entry.js +1 -0
- package/dist/roadtrip/p-e602feab.entry.js +1 -0
- package/dist/roadtrip/p-e64fe690.js +1 -0
- package/dist/roadtrip/p-e6a69601.entry.js +1 -0
- package/dist/roadtrip/p-ea053d07.entry.js +1 -0
- package/dist/roadtrip/p-ea321cc5.entry.js +1 -0
- package/dist/roadtrip/p-edc33971.entry.js +1 -0
- package/dist/roadtrip/{p-93dab753.js → p-f26ed61d.js} +1 -1
- package/dist/roadtrip/roadtrip.css +1 -1
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/roadtrip/svg/battery-start-stop-color.svg +1 -1
- package/dist/roadtrip/svg/battery-start-stop-outline.svg +1 -1
- package/dist/roadtrip/svg/bike-inflation-color.svg +1 -1
- package/dist/roadtrip/svg/bike-inflation-outline.svg +1 -1
- package/dist/roadtrip/svg/electric-color.svg +1 -1
- package/dist/roadtrip/svg/electric-outline.svg +1 -1
- package/dist/roadtrip/svg/electric-solid.svg +1 -1
- package/dist/roadtrip/svg/file-contract-color.svg +1 -0
- package/dist/roadtrip/svg/file-contract-outline.svg +1 -0
- package/dist/roadtrip/svg/flag-belgium.svg +1 -1
- package/dist/roadtrip/svg/flag-germany.svg +1 -1
- package/dist/roadtrip/svg/motor-starter-color.svg +1 -0
- package/dist/roadtrip/svg/motor-starter-outline.svg +1 -0
- package/dist/roadtrip/svg/people-disability-wheelchair-color.svg +1 -1
- package/dist/roadtrip/svg/people-disability-wheelchair-solid.svg +1 -1
- package/dist/roadtrip/svg/seat-bike-front-color.svg +1 -0
- package/dist/roadtrip/svg/seat-bike-front-outline.svg +1 -0
- package/dist/roadtrip/svg/seat-bike-rear-color.svg +1 -0
- package/dist/roadtrip/svg/seat-bike-rear-junior-color.svg +1 -0
- package/dist/roadtrip/svg/seat-bike-rear-junior-outline.svg +1 -0
- package/dist/roadtrip/svg/seat-bike-rear-outline.svg +1 -0
- package/dist/roadtrip/svg/seat-bike-trailer-color.svg +1 -0
- package/dist/roadtrip/svg/seat-bike-trailer-outline.svg +1 -0
- package/dist/roadtrip/svg/shock-absorber-body-part-color.svg +1 -0
- package/dist/roadtrip/svg/shock-absorber-color.svg +1 -1
- package/dist/roadtrip/svg/shock-absorber-outline.svg +1 -1
- package/dist/roadtrip/svg/smart-repair-color.svg +1 -0
- package/dist/roadtrip/svg/smart-repair-outline.svg +1 -0
- package/dist/roadtrip/svg/{snowflake-solid color.svg → snowflake-solid-color.svg} +0 -0
- package/dist/roadtrip/svg/social-linkedin-badge.svg +1 -1
- package/dist/roadtrip/svg/sticker-certified-pickerl-color.svg +1 -0
- package/dist/roadtrip/svg/sticker-certified-pickerl-outline.svg +1 -0
- package/dist/roadtrip/svg/timer-1u-color.svg +1 -1
- package/dist/roadtrip/svg/timer-1u-outline.svg +1 -1
- package/dist/roadtrip/svg/tire-inflation-color.svg +1 -1
- package/dist/roadtrip/svg/tire-inflation-outline.svg +1 -1
- package/dist/roadtrip/svg/tire-received-color.svg +1 -0
- package/dist/roadtrip/svg/tire-received-outline.svg +1 -0
- package/dist/roadtrip/svg/tire-received-solid.svg +1 -0
- package/dist/roadtrip/svg/tire-swap-color.svg +1 -0
- package/dist/roadtrip/svg/tire-swap-outline.svg +1 -0
- package/dist/roadtrip/svg/tire-swap-solid.svg +1 -0
- package/dist/roadtrip/svg/tire-transfer-color.svg +1 -0
- package/dist/roadtrip/svg/tire-transfer-outline.svg +1 -0
- package/dist/roadtrip/svg/tire-transfer-solid.svg +1 -0
- package/dist/roadtrip/svg/vehicle-4wd-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-4wd-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-4wd-solid.svg +1 -0
- package/dist/roadtrip/svg/vehicle-acc-color.svg +1 -1
- package/dist/roadtrip/svg/vehicle-acc-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-acc-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-battery-service-color.svg +1 -1
- package/dist/roadtrip/svg/vehicle-battery-service-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-battery-service-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-bike-repair-color.svg +1 -1
- package/dist/roadtrip/svg/vehicle-bike-repair-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-bike-repair-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-bus-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-bus-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-bus-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-car-moto-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-car-moto-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-car-moto-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-car-sad-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-car-sad-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-car-sad-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-car-search-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-car-search-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-car-search-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-car-side-tire-behind-color.svg +1 -1
- package/dist/roadtrip/svg/{vehicle-car-side-tire-front-outline-color.svg → vehicle-car-side-tire-behind-outline-color.svg} +0 -0
- package/dist/roadtrip/svg/vehicle-car-side-tire-behind-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-car-side-tire-behind-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-car-side-tire-behind.svg +1 -1
- package/dist/roadtrip/svg/vehicle-car-side-tire-front-color.svg +1 -1
- package/dist/roadtrip/svg/{vehicle-car-side-tire-behind-oultine.svg → vehicle-car-side-tire-front-oultine.svg} +0 -0
- package/dist/roadtrip/svg/vehicle-car-side-tire-front-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-car-side-tire-front-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-car-side-tire-front.svg +1 -1
- package/dist/roadtrip/svg/vehicle-car-sound-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-car-sound-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-car-sound-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-caravan-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-caravan-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-caravan-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-carport-color.svg +1 -1
- package/dist/roadtrip/svg/vehicle-carport-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-collector-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-collector-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-collector-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-delivery-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-delivery-fast-color.svg +1 -1
- package/dist/roadtrip/svg/vehicle-delivery-fast-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-delivery-fast-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-delivery-free-return-color.svg +1 -1
- package/dist/roadtrip/svg/vehicle-delivery-free-return-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-delivery-free-return-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-delivery-meeting-color.svg +1 -1
- package/dist/roadtrip/svg/vehicle-delivery-meeting-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-delivery-meeting-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-delivery-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-delivery-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-distance-color.svg +1 -1
- package/dist/roadtrip/svg/vehicle-distance-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-drive-carport-color.svg +1 -1
- package/dist/roadtrip/svg/vehicle-drive-carport-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-drive-color.svg +1 -1
- package/dist/roadtrip/svg/vehicle-drive-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-micro-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-micro-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-micro-solid.svg +1 -0
- package/dist/roadtrip/svg/vehicle-minivan-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-minivan-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-minivan-solid.svg +1 -0
- package/dist/roadtrip/svg/vehicle-moto-color.svg +1 -1
- package/dist/roadtrip/svg/vehicle-moto-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-moto-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-mower-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-mower-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-mower-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-pickup-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-pickup-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-pickup-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-pickup-van-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-pickup-van-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-pickup-van-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-quad-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-quad-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-quad-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-rent-bike-electric-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-rent-bike-electric-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-rent-bike-electric-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-rent-car-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-rent-car-micro-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-rent-car-micro-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-rent-car-micro-solid.svg +1 -0
- package/dist/roadtrip/svg/vehicle-rent-car-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-rent-car-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-rent-trailer-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-rent-trailer-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-rent-trailer-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-repair-car-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-repair-car-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-repair-car-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-repair-moto-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-repair-moto-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-repair-moto-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-repair-pickup-van-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-repair-pickup-van-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-repair-pickup-van-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-repair-van-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-repair-van-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-repair-van-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-road-grip-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-road-grip-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-road-grip-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-roadster-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-roadster-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-roadster-solid.svg +1 -0
- package/dist/roadtrip/svg/vehicle-roofrack-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-roofrack-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-roofrack-solid.svg +1 -0
- package/dist/roadtrip/svg/vehicle-scooter-color.svg +1 -1
- package/dist/roadtrip/svg/vehicle-scooter-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-scooter-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-sedan-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-sedan-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-sedan-solid.svg +1 -0
- package/dist/roadtrip/svg/vehicle-sport-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-sport-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-sport-solid.svg +1 -0
- package/dist/roadtrip/svg/vehicle-station-wagon-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-station-wagon-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-station-wagon-solid.svg +1 -0
- package/dist/roadtrip/svg/vehicle-suv-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-suv-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-suv-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-tractor-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-tractor-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-tractor-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-trailer-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-trailer-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-trailer-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-truck-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-truck-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-truck-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-van-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-van-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-van-solid.svg +1 -1
- package/dist/roadtrip/svg/vehicle-workshop-color.svg +1 -1
- package/dist/roadtrip/svg/vehicle-workshop-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-workshop-solid.svg +1 -1
- package/dist/roadtrip/svg/weather-sun-color.svg +1 -1
- package/dist/roadtrip/svg/weather-sun-outline-color.svg +1 -1
- package/dist/roadtrip/svg/weather-sun-snow-color.svg +1 -1
- package/dist/roadtrip/svg/weather-sun-snow-outline-color.svg +1 -1
- package/dist/roadtrip/svg/weather-sun-snow-solid-color.svg +1 -1
- package/dist/roadtrip/svg/weather-sun-solid-color.svg +1 -1
- package/dist/types/components/accordion/accordion.d.ts +8 -0
- package/dist/types/components/carousel/carousel.d.ts +1 -0
- package/dist/types/components/counter/counter.d.ts +31 -13
- package/dist/types/components.d.ts +218 -77
- package/dist/types/stencil-public-runtime.d.ts +15 -4
- package/icons/icons.svg +1 -1
- package/icons/index.d.ts +97 -2
- package/icons/index.js +184 -89
- package/package.json +7 -7
- package/dist/cjs/css-shim-9a05bb86.js +0 -6
- package/dist/cjs/road-badge_11.cjs.entry.js +0 -532
- package/dist/cjs/road-counter.cjs.entry.js +0 -70
- package/dist/cjs/road-input-group.cjs.entry.js +0 -29
- package/dist/cjs/road-input.cjs.entry.js +0 -144
- package/dist/cjs/swiper.bundle-dec9b216.js +0 -10002
- package/dist/collection/components/carousel/swiper/swiper-interface.d.ts +0 -1
- package/dist/collection/components/carousel/swiper/swiper.bundle.js +0 -10002
- package/dist/collection/components/carousel/swiper/swiper.js +0 -4
- package/dist/esm/css-shim-17041dc7.js +0 -4
- package/dist/esm/road-badge_11.entry.js +0 -518
- package/dist/esm/road-counter.entry.js +0 -66
- package/dist/esm/road-input-group.entry.js +0 -25
- package/dist/esm/road-input.entry.js +0 -140
- package/dist/esm/swiper.bundle-6070542b.js +0 -10000
- package/dist/esm-es5/app-a32f9d74.js +0 -1
- package/dist/esm-es5/css-shim-17041dc7.js +0 -1
- package/dist/esm-es5/dom-ba83fb9d.js +0 -21
- package/dist/esm-es5/focus-visible-0fc6119c.js +0 -1
- package/dist/esm-es5/index-0c8a0e04.js +0 -1
- package/dist/esm-es5/index-3e2c0645.js +0 -1
- package/dist/esm-es5/index.js +0 -1
- package/dist/esm-es5/loader.js +0 -1
- package/dist/esm-es5/polyfill-2b159e86.js +0 -1
- package/dist/esm-es5/road-accordion.entry.js +0 -1
- package/dist/esm-es5/road-alert.entry.js +0 -1
- package/dist/esm-es5/road-autocomplete.entry.js +0 -1
- package/dist/esm-es5/road-avatar.entry.js +0 -1
- package/dist/esm-es5/road-badge_11.entry.js +0 -1
- package/dist/esm-es5/road-banner.entry.js +0 -1
- package/dist/esm-es5/road-card.entry.js +0 -1
- package/dist/esm-es5/road-carousel-item.entry.js +0 -1
- package/dist/esm-es5/road-carousel.entry.js +0 -1
- package/dist/esm-es5/road-checkbox.entry.js +0 -1
- package/dist/esm-es5/road-chip.entry.js +0 -1
- package/dist/esm-es5/road-collapse.entry.js +0 -1
- package/dist/esm-es5/road-counter.entry.js +0 -1
- package/dist/esm-es5/road-dialog.entry.js +0 -1
- package/dist/esm-es5/road-dropdown.entry.js +0 -1
- package/dist/esm-es5/road-duration.entry.js +0 -1
- package/dist/esm-es5/road-flap.entry.js +0 -1
- package/dist/esm-es5/road-img.entry.js +0 -1
- package/dist/esm-es5/road-input-group.entry.js +0 -1
- package/dist/esm-es5/road-input.entry.js +0 -1
- package/dist/esm-es5/road-modal.entry.js +0 -1
- package/dist/esm-es5/road-navbar-item.entry.js +0 -1
- package/dist/esm-es5/road-navbar.entry.js +0 -1
- package/dist/esm-es5/road-plate-number.entry.js +0 -1
- package/dist/esm-es5/road-progress.entry.js +0 -1
- package/dist/esm-es5/road-radio-group.entry.js +0 -1
- package/dist/esm-es5/road-radio.entry.js +0 -1
- package/dist/esm-es5/road-range.entry.js +0 -1
- package/dist/esm-es5/road-rating.entry.js +0 -1
- package/dist/esm-es5/road-select-filter.entry.js +0 -1
- package/dist/esm-es5/road-select.entry.js +0 -1
- package/dist/esm-es5/road-skeleton.entry.js +0 -1
- package/dist/esm-es5/road-spinner.entry.js +0 -1
- package/dist/esm-es5/road-stepper.entry.js +0 -1
- package/dist/esm-es5/road-switch.entry.js +0 -1
- package/dist/esm-es5/road-tab-bar.entry.js +0 -1
- package/dist/esm-es5/road-tab-button.entry.js +0 -1
- package/dist/esm-es5/road-tab.entry.js +0 -1
- package/dist/esm-es5/road-table.entry.js +0 -1
- package/dist/esm-es5/road-tabs.entry.js +0 -1
- package/dist/esm-es5/road-text.entry.js +0 -1
- package/dist/esm-es5/road-textarea.entry.js +0 -1
- package/dist/esm-es5/road-toast.entry.js +0 -1
- package/dist/esm-es5/road-toggle.entry.js +0 -1
- package/dist/esm-es5/road-toolbar-title.entry.js +0 -1
- package/dist/esm-es5/road-tooltip.entry.js +0 -1
- package/dist/esm-es5/roadtrip.js +0 -1
- package/dist/esm-es5/shadow-css-bfd5796e.js +0 -12
- package/dist/esm-es5/swiper.bundle-6070542b.js +0 -1
- package/dist/esm-es5/utils-39de47f7.js +0 -1
- package/dist/roadtrip/p-05961c88.system.js +0 -1
- package/dist/roadtrip/p-0a34a8cf.entry.js +0 -1
- package/dist/roadtrip/p-102d3882.system.js +0 -1
- package/dist/roadtrip/p-1108fffd.entry.js +0 -1
- package/dist/roadtrip/p-12293413.system.entry.js +0 -1
- package/dist/roadtrip/p-1347a27e.entry.js +0 -1
- package/dist/roadtrip/p-13c18cec.system.entry.js +0 -1
- package/dist/roadtrip/p-19f72337.entry.js +0 -1
- package/dist/roadtrip/p-1f1464ba.entry.js +0 -1
- package/dist/roadtrip/p-218b1c60.entry.js +0 -1
- package/dist/roadtrip/p-21acc566.entry.js +0 -1
- package/dist/roadtrip/p-288298fa.system.entry.js +0 -1
- package/dist/roadtrip/p-2e918486.entry.js +0 -1
- package/dist/roadtrip/p-33e38a04.js +0 -1
- package/dist/roadtrip/p-3683fe49.system.js +0 -13
- package/dist/roadtrip/p-382e4c17.entry.js +0 -1
- package/dist/roadtrip/p-39a93000.entry.js +0 -1
- package/dist/roadtrip/p-3e953654.system.entry.js +0 -1
- package/dist/roadtrip/p-3ee7ff2a.system.entry.js +0 -1
- package/dist/roadtrip/p-40fc1632.system.entry.js +0 -1
- package/dist/roadtrip/p-41ca895a.entry.js +0 -1
- package/dist/roadtrip/p-467f5310.system.entry.js +0 -1
- package/dist/roadtrip/p-46c22946.js +0 -1
- package/dist/roadtrip/p-4e8c413a.entry.js +0 -1
- package/dist/roadtrip/p-52cf548c.entry.js +0 -1
- package/dist/roadtrip/p-57e46bbc.system.entry.js +0 -1
- package/dist/roadtrip/p-5a426113.system.entry.js +0 -1
- package/dist/roadtrip/p-5d6d5348.system.entry.js +0 -1
- package/dist/roadtrip/p-5f21ee83.entry.js +0 -1
- package/dist/roadtrip/p-604130ce.entry.js +0 -1
- package/dist/roadtrip/p-604a0940.system.entry.js +0 -1
- package/dist/roadtrip/p-6117d969.system.entry.js +0 -1
- package/dist/roadtrip/p-6195c41f.system.entry.js +0 -1
- package/dist/roadtrip/p-63daafae.js +0 -1
- package/dist/roadtrip/p-688e41f2.entry.js +0 -1
- package/dist/roadtrip/p-697078eb.entry.js +0 -1
- package/dist/roadtrip/p-6a123e72.system.entry.js +0 -1
- package/dist/roadtrip/p-701cba5a.system.entry.js +0 -1
- package/dist/roadtrip/p-7118c44a.entry.js +0 -1
- package/dist/roadtrip/p-7154119b.system.js +0 -21
- package/dist/roadtrip/p-72d2813d.system.entry.js +0 -1
- package/dist/roadtrip/p-731c9b95.system.entry.js +0 -1
- package/dist/roadtrip/p-76bede83.system.entry.js +0 -1
- package/dist/roadtrip/p-77167161.entry.js +0 -1
- package/dist/roadtrip/p-78315356.entry.js +0 -1
- package/dist/roadtrip/p-785ade45.system.entry.js +0 -1
- package/dist/roadtrip/p-794dd500.entry.js +0 -1
- package/dist/roadtrip/p-7ac2c7d2.entry.js +0 -1
- package/dist/roadtrip/p-7b733694.js +0 -1
- package/dist/roadtrip/p-7cb7d25b.system.entry.js +0 -1
- package/dist/roadtrip/p-7f2cba6f.system.entry.js +0 -1
- package/dist/roadtrip/p-801c9922.system.js +0 -1
- package/dist/roadtrip/p-83926ef1.system.entry.js +0 -1
- package/dist/roadtrip/p-8459879b.system.js +0 -1
- package/dist/roadtrip/p-85c918f6.system.entry.js +0 -1
- package/dist/roadtrip/p-864ed7f9.system.entry.js +0 -1
- package/dist/roadtrip/p-87a26ac6.system.js +0 -1
- package/dist/roadtrip/p-896f49f2.entry.js +0 -1
- package/dist/roadtrip/p-8c2d1876.entry.js +0 -1
- package/dist/roadtrip/p-9309300a.entry.js +0 -1
- package/dist/roadtrip/p-9337ed51.system.entry.js +0 -1
- package/dist/roadtrip/p-9aaa4745.system.entry.js +0 -1
- package/dist/roadtrip/p-a00ea5b7.entry.js +0 -1
- package/dist/roadtrip/p-a5de9990.system.entry.js +0 -1
- package/dist/roadtrip/p-a61e74f3.entry.js +0 -1
- package/dist/roadtrip/p-a64d28d7.entry.js +0 -1
- package/dist/roadtrip/p-a7565a49.system.entry.js +0 -1
- package/dist/roadtrip/p-a82fd96a.entry.js +0 -1
- package/dist/roadtrip/p-a9538932.entry.js +0 -1
- package/dist/roadtrip/p-ad1136ff.system.entry.js +0 -1
- package/dist/roadtrip/p-ad92df4f.system.js +0 -1
- package/dist/roadtrip/p-af49dca4.entry.js +0 -1
- package/dist/roadtrip/p-b205281e.system.js +0 -1
- package/dist/roadtrip/p-b591a3f7.system.entry.js +0 -1
- package/dist/roadtrip/p-bd6463ab.system.entry.js +0 -1
- package/dist/roadtrip/p-c1088217.system.entry.js +0 -1
- package/dist/roadtrip/p-c5004910.entry.js +0 -1
- package/dist/roadtrip/p-c53458d4.system.entry.js +0 -1
- package/dist/roadtrip/p-c9409f80.system.entry.js +0 -1
- package/dist/roadtrip/p-cab68ba7.entry.js +0 -1
- package/dist/roadtrip/p-cc00e9dc.system.entry.js +0 -1
- package/dist/roadtrip/p-d18db10c.system.entry.js +0 -1
- package/dist/roadtrip/p-d42af23b.system.entry.js +0 -1
- package/dist/roadtrip/p-d492d058.entry.js +0 -1
- package/dist/roadtrip/p-db6e9fac.system.entry.js +0 -1
- package/dist/roadtrip/p-dbee6661.entry.js +0 -1
- package/dist/roadtrip/p-dfa3c709.system.entry.js +0 -1
- package/dist/roadtrip/p-e18fa251.entry.js +0 -1
- package/dist/roadtrip/p-e2a9123a.system.entry.js +0 -1
- package/dist/roadtrip/p-e502dd83.system.entry.js +0 -1
- package/dist/roadtrip/p-e5756d79.entry.js +0 -1
- package/dist/roadtrip/p-e6664bbe.entry.js +0 -1
- package/dist/roadtrip/p-e6d673ea.system.entry.js +0 -1
- package/dist/roadtrip/p-e82b49d1.entry.js +0 -1
- package/dist/roadtrip/p-ea1fe2a5.entry.js +0 -1
- package/dist/roadtrip/p-ee16482c.entry.js +0 -1
- package/dist/roadtrip/p-ee1e6fe7.system.entry.js +0 -1
- package/dist/roadtrip/p-efa19d38.system.js +0 -1
- package/dist/roadtrip/p-f00aa43f.system.entry.js +0 -1
- package/dist/roadtrip/p-f0ec3a64.entry.js +0 -1
- package/dist/roadtrip/p-f33e4ac5.system.js +0 -1
- package/dist/roadtrip/p-f5d32536.entry.js +0 -1
- package/dist/roadtrip/p-f631ead3.system.entry.js +0 -1
- package/dist/roadtrip/p-f6631560.js +0 -1
- package/dist/roadtrip/p-f7f442a7.entry.js +0 -1
- package/dist/roadtrip/p-f95a5e84.system.entry.js +0 -1
- package/dist/roadtrip/p-fc63310b.entry.js +0 -1
- package/dist/roadtrip/p-ffbbba64.system.js +0 -1
- package/dist/roadtrip/roadtrip.js +0 -132
- package/dist/roadtrip/swiper/swiper-interface.d.ts +0 -1
- package/dist/roadtrip/swiper/swiper.bundle.js +0 -10002
- package/dist/roadtrip/swiper/swiper.js +0 -4
- package/dist/types/components/carousel/swiper/swiper-interface.d.ts +0 -1
|
@@ -0,0 +1,791 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, c as createEvent, e as getElement } from './index-a99a5e7b.js';
|
|
2
|
+
import './polyfill-2b159e86.js';
|
|
3
|
+
import { n as navigationChevron, a as navigationClose } from './index-3e2c0645.js';
|
|
4
|
+
import { i as isStr, g as getUrl, b as getName } from './utils-0ec32b47.js';
|
|
5
|
+
|
|
6
|
+
const badgeCss = ":host{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:1rem;min-height:1rem;padding:0 0.3125rem;font-family:var(--road-font, sans-serif);font-size:0.625rem;font-weight:700;white-space:nowrap;border-radius:1rem}:host(.badge-bubble){min-width:0.25rem;min-height:0.25rem;padding:0}:host(.badge-primary){color:var(--road-primary-contrast);background-color:var(--road-primary-500)}:host(.badge-secondary){color:var(--road-primary-contrast);background-color:var(--road-primary-500)}:host(.badge-accent){color:var(--road-secondary-contrast);background-color:var(--road-secondary-500)}:host(.badge-info){color:var(--road-info-contrast);background-color:var(--road-info-default)}:host(.badge-success){color:var(--road-success-contrast);background-color:var(--road-success-default)}:host(.badge-warning){color:var(--road-warning-contrast);background-color:var(--road-warning-default)}:host(.badge-danger){color:var(--road-danger-contrast);background-color:var(--road-danger-default)}";
|
|
7
|
+
|
|
8
|
+
const Badge = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
/**
|
|
12
|
+
* Color of the badge
|
|
13
|
+
*/
|
|
14
|
+
this.color = 'secondary';
|
|
15
|
+
/**
|
|
16
|
+
* if `true` the badge will be displayed has a little bubble
|
|
17
|
+
*/
|
|
18
|
+
this.bubble = false;
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
const colorClass = this.color !== undefined ? `badge-${this.color}` : '';
|
|
22
|
+
const bubbleClass = this.bubble ? 'badge-bubble' : '';
|
|
23
|
+
return (h(Host, { class: `${colorClass} ${bubbleClass}` }, h("slot", null)));
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
Badge.style = badgeCss;
|
|
27
|
+
|
|
28
|
+
const buttonCss = ":host{--border-radius:0.25rem;--font-size:1rem;--margin-bottom:1rem;--padding-start:1.5rem;--padding-end:1.5rem;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:3rem;padding:0;margin-bottom:var(--margin-bottom);font-family:var(--road-font, sans-serif);font-size:var(--font-size);font-weight:700;line-height:1.375;color:var(--road-grey-900);text-decoration:none;white-space:nowrap;vertical-align:middle;background:transparent;border:1px solid transparent;border-radius:var(--border-radius);transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}:host(:hover){text-decoration:none}:host(.focus-visible){outline:0}.button-native{position:relative;z-index:1;display:flex;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;width:100%;height:100%;padding:0 var(--padding-end) 0 var(--padding-start);margin:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;color:inherit;text-align:inherit;text-decoration:none;text-indent:inherit;text-overflow:inherit;text-transform:inherit;letter-spacing:inherit;white-space:inherit;cursor:pointer;background:transparent;border:none;outline:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}:host(.btn-default:not([disabled]).focus-visible){background:var(--road-grey-200)}:host(.btn-primary){color:var(--road-primary-contrast);background:var(--road-primary-500)}:host(.btn-primary) ::slotted(road-icon){color:var(--road-primary-contrast)}:host(.btn-primary:not([disabled]):hover),:host(.btn-primary:not([disabled]).focus-visible){background:var(--road-primary-700)}:host(.btn-secondary){color:var(--road-primary-contrast);background:var(--road-primary-500)}:host(.btn-secondary) ::slotted(road-icon){color:var(--road-primary-contrast)}:host(.btn-secondary:not([disabled]):hover),:host(.btn-secondary:not([disabled]).focus-visible){background:var(--road-primary-700)}:host(.btn-link){font-weight:400;color:var(--road-primary-500);background:transparent}:host(.btn-link:not([disabled]):hover),:host(.btn-link:not([disabled]).focus-visible){color:var(--road-primary-700)}:host(.btn-outline-primary),:host(.btn-outline-secondary),:host(.btn-outline-default){background:transparent}:host(.btn-outline-default){color:var(--road-grey-600);background:var(--road-grey-000);border-color:var(--road-grey-600)}:host(.btn-outline-default) ::slotted(road-icon){color:var(--road-grey-600)}:host(.btn-outline-default:hover),:host(.btn-outline-default.focus-visible){background:var(--road-grey-200)}:host(.btn-outline-primary){color:var(--road-primary-500);border-color:var(--road-primary-500)}:host(.btn-outline-primary) ::slotted(road-icon){color:var(--road-primary-500)}:host(.btn-outline-primary:hover),:host(.btn-outline-primary.focus-visible){background:var(--road-primary-100)}:host(.btn-outline-secondary){color:var(--road-primary-500);border-color:var(--road-primary-500)}:host(.btn-outline-secondary) ::slotted(road-icon){color:var(--road-primary-500)}:host(.btn-outline-secondary:hover),:host(.btn-outline-secondary.focus-visible){background:var(--road-primary-100)}:host([aria-disabled]){pointer-events:none;opacity:0.16}.button-native:disabled{cursor:not-allowed}::slotted([slot=\"start\"]){margin-right:0.5rem}::slotted([slot=\"end\"]){margin-left:0.5rem}:host(.btn-xl){height:3.5rem}:host(.btn-xl) ::slotted(road-icon){width:2rem;height:2rem}:host(.btn-md){--font-size:0.875rem;height:2.5rem}:host(.btn-md) ::slotted(road-icon){width:1.5rem;height:1.5rem}:host(.btn-sm){--font-size:0.875rem;height:2rem}:host(.btn-sm) ::slotted(road-icon){width:1.25rem;height:1.25rem}:host(.btn-block){width:100%}::slotted(road-badge){position:absolute;top:4px;left:calc(50% + 0.375rem);z-index:1;box-sizing:border-box;height:auto}";
|
|
29
|
+
|
|
30
|
+
const Button = class {
|
|
31
|
+
constructor(hostRef) {
|
|
32
|
+
registerInstance(this, hostRef);
|
|
33
|
+
this.roadfocus = createEvent(this, "roadfocus", 7);
|
|
34
|
+
this.roadFocus = createEvent(this, "roadFocus", 7);
|
|
35
|
+
this.roadblur = createEvent(this, "roadblur", 7);
|
|
36
|
+
this.roadBlur = createEvent(this, "roadBlur", 7);
|
|
37
|
+
/**
|
|
38
|
+
* The color to use from your application's color palette.
|
|
39
|
+
*/
|
|
40
|
+
this.color = 'default';
|
|
41
|
+
/**
|
|
42
|
+
* The button size.
|
|
43
|
+
*/
|
|
44
|
+
this.size = 'lg';
|
|
45
|
+
/**
|
|
46
|
+
* The type of the button.
|
|
47
|
+
*/
|
|
48
|
+
this.buttonType = 'button';
|
|
49
|
+
/**
|
|
50
|
+
* If `true`, the user cannot interact with the button.
|
|
51
|
+
*/
|
|
52
|
+
this.disabled = false;
|
|
53
|
+
/**
|
|
54
|
+
* Set to `true` for a full-width button.
|
|
55
|
+
*/
|
|
56
|
+
this.expand = false;
|
|
57
|
+
/**
|
|
58
|
+
* Set to `true` for a transparent button with a border
|
|
59
|
+
*/
|
|
60
|
+
this.outline = false;
|
|
61
|
+
this.onClick = (ev) => {
|
|
62
|
+
if (this.el.shadowRoot && this.el.attachShadow) {
|
|
63
|
+
// this button wants to specifically submit a form
|
|
64
|
+
// climb up the dom to see if we're in a <form>
|
|
65
|
+
// and if so, then use JS to submit it
|
|
66
|
+
const form = this.el.closest('form');
|
|
67
|
+
if (form) {
|
|
68
|
+
ev.preventDefault();
|
|
69
|
+
const fakeButton = document.createElement('button');
|
|
70
|
+
fakeButton.type = this.buttonType;
|
|
71
|
+
fakeButton.style.display = 'none';
|
|
72
|
+
form.appendChild(fakeButton);
|
|
73
|
+
fakeButton.click();
|
|
74
|
+
fakeButton.remove();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
this.onFocus = () => {
|
|
79
|
+
this.roadfocus.emit();
|
|
80
|
+
this.roadFocus.emit();
|
|
81
|
+
};
|
|
82
|
+
this.onBlur = () => {
|
|
83
|
+
this.roadblur.emit();
|
|
84
|
+
this.roadBlur.emit();
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
render() {
|
|
88
|
+
const { buttonType, disabled, href, rel, target, color } = this;
|
|
89
|
+
const TagType = this.href === undefined ? 'button' : 'a';
|
|
90
|
+
const attrs = (TagType === 'button')
|
|
91
|
+
? { type: buttonType }
|
|
92
|
+
: {
|
|
93
|
+
download: this.download,
|
|
94
|
+
href,
|
|
95
|
+
rel,
|
|
96
|
+
target,
|
|
97
|
+
};
|
|
98
|
+
const colorClass = this.outline ? `btn-outline-${color}` : `btn-${color}`;
|
|
99
|
+
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
100
|
+
const expandClass = this.expand ? 'btn-block' : '';
|
|
101
|
+
return (h(Host, { class: `${colorClass} ${sizeClass} ${expandClass}`, onClick: this.onClick, "aria-disabled": disabled ? 'true' : null }, h(TagType, Object.assign({}, attrs, { class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur }), h("slot", { name: "start" }), h("slot", null), h("slot", { name: "end" }))));
|
|
102
|
+
}
|
|
103
|
+
get el() { return getElement(this); }
|
|
104
|
+
};
|
|
105
|
+
Button.style = buttonCss;
|
|
106
|
+
|
|
107
|
+
const colCss = ":host{position:relative;flex-basis:0;flex-grow:1;width:100%;max-width:100%;min-height:1px;padding-right:8px;padding-left:8px}:host(.col-auto){flex:0 0 auto;width:auto;max-width:none}:host(.col-1){flex:0 0 8.3333%;max-width:8.3333%}:host(.col-2){flex:0 0 16.6667%;max-width:16.6667%}:host(.col-3){flex:0 0 25%;max-width:25%}:host(.col-4){flex:0 0 33.3333%;max-width:33.3333%}:host(.col-5){flex:0 0 41.6667%;max-width:41.6667%}:host(.col-6){flex:0 0 50%;max-width:50%}:host(.col-7){flex:0 0 58.3333%;max-width:58.3333%}:host(.col-8){flex:0 0 66.6667%;max-width:66.6667%}:host(.col-9){flex:0 0 75%;max-width:75%}:host(.col-10){flex:0 0 83.3333%;max-width:83.3333%}:host(.col-11){flex:0 0 91.6667%;max-width:91.6667%}:host(.col-12){flex:0 0 100%;max-width:100%}:host(.offset-1){margin-left:8.3333%}:host(.offset-2){margin-left:16.6667%}:host(.offset-3){margin-left:25%}:host(.offset-4){margin-left:33.3333%}:host(.offset-5){margin-left:41.6667%}:host(.offset-6){margin-left:50%}:host(.offset-7){margin-left:58.3333%}:host(.offset-8){margin-left:66.6667%}:host(.offset-9){margin-left:75%}:host(.offset-10){margin-left:83.3333%}:host(.offset-11){margin-left:91.6667%}@media (min-width: 576px){:host(.col-sm){flex-basis:0;flex-grow:1;max-width:100%}:host(.col-sm-auto){flex:0 0 auto;width:auto;max-width:none}:host(.col-sm-1){flex:0 0 8.3333%;max-width:8.3333%}:host(.col-sm-2){flex:0 0 16.6667%;max-width:16.6667%}:host(.col-sm-3){flex:0 0 25%;max-width:25%}:host(.col-sm-4){flex:0 0 33.3333%;max-width:33.3333%}:host(.col-sm-5){flex:0 0 41.6667%;max-width:41.6667%}:host(.col-sm-6){flex:0 0 50%;max-width:50%}:host(.col-sm-7){flex:0 0 58.3333%;max-width:58.3333%}:host(.col-sm-8){flex:0 0 66.6667%;max-width:66.6667%}:host(.col-sm-9){flex:0 0 75%;max-width:75%}:host(.col-sm-10){flex:0 0 83.3333%;max-width:83.3333%}:host(.col-sm-11){flex:0 0 91.6667%;max-width:91.6667%}:host(.col-sm-12){flex:0 0 100%;max-width:100%}:host(.offset-sm-0){margin-left:0}:host(.offset-sm-1){margin-left:8.3333%}:host(.offset-sm-2){margin-left:16.6667%}:host(.offset-sm-3){margin-left:25%}:host(.offset-sm-4){margin-left:33.3333%}:host(.offset-sm-5){margin-left:41.6667%}:host(.offset-sm-6){margin-left:50%}:host(.offset-sm-7){margin-left:58.3333%}:host(.offset-sm-8){margin-left:66.6667%}:host(.offset-sm-9){margin-left:75%}:host(.offset-sm-10){margin-left:83.3333%}:host(.offset-sm-11){margin-left:91.6667%}}@media (min-width: 768px){:host(.col-md){flex-basis:0;flex-grow:1;max-width:100%}:host(.col-md-auto){flex:0 0 auto;width:auto;max-width:none}:host(.col-md-1){flex:0 0 8.3333%;max-width:8.3333%}:host(.col-md-2){flex:0 0 16.6667%;max-width:16.6667%}:host(.col-md-3){flex:0 0 25%;max-width:25%}:host(.col-md-4){flex:0 0 33.3333%;max-width:33.3333%}:host(.col-md-5){flex:0 0 41.6667%;max-width:41.6667%}:host(.col-md-6){flex:0 0 50%;max-width:50%}:host(.col-md-7){flex:0 0 58.3333%;max-width:58.3333%}:host(.col-md-8){flex:0 0 66.6667%;max-width:66.6667%}:host(.col-md-9){flex:0 0 75%;max-width:75%}:host(.col-md-10){flex:0 0 83.3333%;max-width:83.3333%}:host(.col-md-11){flex:0 0 91.6667%;max-width:91.6667%}:host(.col-md-12){flex:0 0 100%;max-width:100%}:host(.offset-md-0){margin-left:0}:host(.offset-md-1){margin-left:8.3333%}:host(.offset-md-2){margin-left:16.6667%}:host(.offset-md-3){margin-left:25%}:host(.offset-md-4){margin-left:33.3333%}:host(.offset-md-5){margin-left:41.6667%}:host(.offset-md-6){margin-left:50%}:host(.offset-md-7){margin-left:58.3333%}:host(.offset-md-8){margin-left:66.6667%}:host(.offset-md-9){margin-left:75%}:host(.offset-md-10){margin-left:83.3333%}:host(.offset-md-11){margin-left:91.6667%}}@media (min-width: 992px){:host(.col-lg){flex-basis:0;flex-grow:1;max-width:100%}:host(.col-lg-auto){flex:0 0 auto;width:auto;max-width:none}:host(.col-lg-1){flex:0 0 8.3333%;max-width:8.3333%}:host(.col-lg-2){flex:0 0 16.6667%;max-width:16.6667%}:host(.col-lg-3){flex:0 0 25%;max-width:25%}:host(.col-lg-4){flex:0 0 33.3333%;max-width:33.3333%}:host(.col-lg-5){flex:0 0 41.6667%;max-width:41.6667%}:host(.col-lg-6){flex:0 0 50%;max-width:50%}:host(.col-lg-7){flex:0 0 58.3333%;max-width:58.3333%}:host(.col-lg-8){flex:0 0 66.6667%;max-width:66.6667%}:host(.col-lg-9){flex:0 0 75%;max-width:75%}:host(.col-lg-10){flex:0 0 83.3333%;max-width:83.3333%}:host(.col-lg-11){flex:0 0 91.6667%;max-width:91.6667%}:host(.col-lg-12){flex:0 0 100%;max-width:100%}:host(.offset-lg-0){margin-left:0}:host(.offset-lg-1){margin-left:8.3333%}:host(.offset-lg-2){margin-left:16.6667%}:host(.offset-lg-3){margin-left:25%}:host(.offset-lg-4){margin-left:33.3333%}:host(.offset-lg-5){margin-left:41.6667%}:host(.offset-lg-6){margin-left:50%}:host(.offset-lg-7){margin-left:58.3333%}:host(.offset-lg-8){margin-left:66.6667%}:host(.offset-lg-9){margin-left:75%}:host(.offset-lg-10){margin-left:83.3333%}:host(.offset-lg-11){margin-left:91.6667%}}@media (min-width: 1200px){:host(.col-xl){flex-basis:0;flex-grow:1;max-width:100%}:host(.col-xl-auto){flex:0 0 auto;width:auto;max-width:none}:host(.col-xl-1){flex:0 0 8.3333%;max-width:8.3333%}:host(.col-xl-2){flex:0 0 16.6667%;max-width:16.6667%}:host(.col-xl-3){flex:0 0 25%;max-width:25%}:host(.col-xl-4){flex:0 0 33.3333%;max-width:33.3333%}:host(.col-xl-5){flex:0 0 41.6667%;max-width:41.6667%}:host(.col-xl-6){flex:0 0 50%;max-width:50%}:host(.col-xl-7){flex:0 0 58.3333%;max-width:58.3333%}:host(.col-xl-8){flex:0 0 66.6667%;max-width:66.6667%}:host(.col-xl-9){flex:0 0 75%;max-width:75%}:host(.col-xl-10){flex:0 0 83.3333%;max-width:83.3333%}:host(.col-xl-11){flex:0 0 91.6667%;max-width:91.6667%}:host(.col-xl-12){flex:0 0 100%;max-width:100%}:host(.offset-xl-0){margin-left:0}:host(.offset-xl-1){margin-left:8.3333%}:host(.offset-xl-2){margin-left:16.6667%}:host(.offset-xl-3){margin-left:25%}:host(.offset-xl-4){margin-left:33.3333%}:host(.offset-xl-5){margin-left:41.6667%}:host(.offset-xl-6){margin-left:50%}:host(.offset-xl-7){margin-left:58.3333%}:host(.offset-xl-8){margin-left:66.6667%}:host(.offset-xl-9){margin-left:75%}:host(.offset-xl-10){margin-left:83.3333%}:host(.offset-xl-11){margin-left:91.6667%}}";
|
|
108
|
+
|
|
109
|
+
const Col = class {
|
|
110
|
+
constructor(hostRef) {
|
|
111
|
+
registerInstance(this, hostRef);
|
|
112
|
+
}
|
|
113
|
+
render() {
|
|
114
|
+
return (h("slot", null));
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
Col.style = colCss;
|
|
118
|
+
|
|
119
|
+
const counterCss = ".sc-road-counter-h{display:block}road-input.sc-road-counter{--input-text-align:center;--border-radius:0;--margin-bottom:0}road-button.sc-road-counter{font-size:1.5rem;line-height:1.4;background:var(--road-grey-100);border:1px solid var(--road-grey-500)}road-button.sc-road-counter:hover{background:var(--road-grey-200)}.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}.disabled.sc-road-counter{pointer-events:none;background:var(--road-grey-000);cursor:not-allowed}.disabled.sc-road-counter:hover{background:var(--road-grey-000)}";
|
|
120
|
+
|
|
121
|
+
const Counter = class {
|
|
122
|
+
constructor(hostRef) {
|
|
123
|
+
registerInstance(this, hostRef);
|
|
124
|
+
this.roadIncrease = createEvent(this, "roadIncrease", 7);
|
|
125
|
+
this.roadDecrease = createEvent(this, "roadDecrease", 7);
|
|
126
|
+
this.roadChange = createEvent(this, "roadChange", 7);
|
|
127
|
+
this.roadDustbinClick = createEvent(this, "roadDustbinClick", 7);
|
|
128
|
+
this.leftIconClasses = "";
|
|
129
|
+
this.rightIconClasses = "";
|
|
130
|
+
this.isDustbinVisible = false;
|
|
131
|
+
/**
|
|
132
|
+
* The id of counter
|
|
133
|
+
*/
|
|
134
|
+
this.inputId = `road-counter-${counterIds++}`;
|
|
135
|
+
/**
|
|
136
|
+
* The minimum value, which must not be greater than its maximum (max attribute) value.
|
|
137
|
+
*/
|
|
138
|
+
this.min = 0;
|
|
139
|
+
/**
|
|
140
|
+
* The value of the counter.
|
|
141
|
+
*/
|
|
142
|
+
this.value = 1;
|
|
143
|
+
/**
|
|
144
|
+
* Set to `true` to add the dustbin icon if the value is equal to the min.
|
|
145
|
+
*/
|
|
146
|
+
this.dustbin = false;
|
|
147
|
+
this.setIsDustbinVisible = (valueInput) => {
|
|
148
|
+
if (valueInput > this.min) {
|
|
149
|
+
this.isDustbinVisible = false;
|
|
150
|
+
}
|
|
151
|
+
else if (this.dustbin) {
|
|
152
|
+
this.isDustbinVisible = true;
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
this.isDustbinVisible = false;
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
this.increase = () => {
|
|
159
|
+
this.inputElement.querySelector('input').stepUp();
|
|
160
|
+
let valueInput = parseInt(this.inputElement.querySelector('input').value);
|
|
161
|
+
if (!valueInput) {
|
|
162
|
+
valueInput = this.min;
|
|
163
|
+
}
|
|
164
|
+
this.onValueChange(valueInput);
|
|
165
|
+
this.roadIncrease.emit({ value: valueInput });
|
|
166
|
+
};
|
|
167
|
+
this.decrease = () => {
|
|
168
|
+
if (this.isDustbinVisible) {
|
|
169
|
+
this.roadDustbinClick.emit();
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
this.inputElement.querySelector('input').stepDown();
|
|
173
|
+
let valueInput = parseInt(this.inputElement.querySelector('input').value);
|
|
174
|
+
if (!valueInput) {
|
|
175
|
+
valueInput = this.min;
|
|
176
|
+
}
|
|
177
|
+
this.onValueChange(valueInput);
|
|
178
|
+
this.roadDecrease.emit({ value: valueInput });
|
|
179
|
+
};
|
|
180
|
+
this.checkValue = (ev) => {
|
|
181
|
+
const input = ev.target;
|
|
182
|
+
const value = input.value && parseInt(input.value);
|
|
183
|
+
if (value == null || value === "")
|
|
184
|
+
return;
|
|
185
|
+
if (value < this.min) {
|
|
186
|
+
input.value = this.min.toString();
|
|
187
|
+
}
|
|
188
|
+
else if (this.max && value > this.max) {
|
|
189
|
+
input.value = this.max.toString();
|
|
190
|
+
}
|
|
191
|
+
this.onValueChange(parseInt(input.value));
|
|
192
|
+
};
|
|
193
|
+
this.onRoadChange = (ev) => {
|
|
194
|
+
ev.stopPropagation();
|
|
195
|
+
const input = ev.target;
|
|
196
|
+
const value = input.value && parseInt(input.value);
|
|
197
|
+
if (value !== null && value !== "") {
|
|
198
|
+
if (value < this.min) {
|
|
199
|
+
this.roadChange.emit({ value: this.min });
|
|
200
|
+
}
|
|
201
|
+
else if (this.max && value > this.max) {
|
|
202
|
+
this.roadChange.emit({ value: this.max });
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
this.roadChange.emit({ value: parseInt(input.value) });
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
this.roadChange.emit({ value: null });
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
onValueChange(valueInput) {
|
|
214
|
+
this.setIsDustbinVisible(valueInput);
|
|
215
|
+
this.setIconsClasses(valueInput);
|
|
216
|
+
}
|
|
217
|
+
setIconsClasses(valueInput) {
|
|
218
|
+
valueInput = valueInput !== null && valueInput !== void 0 ? valueInput : parseInt(this.inputElement.querySelector('input').value);
|
|
219
|
+
this.leftIconClasses = valueInput <= this.min && !this.dustbin ? "disabled" : "";
|
|
220
|
+
this.rightIconClasses = this.max && valueInput >= this.max ? "disabled" : "";
|
|
221
|
+
}
|
|
222
|
+
componentWillLoad() {
|
|
223
|
+
this.onValueChange(this.value);
|
|
224
|
+
}
|
|
225
|
+
render() {
|
|
226
|
+
return (h("road-input-group", { class: this.size && `counter-${this.size}` }, h("road-button", { slot: "prepend", size: this.size, onClick: this.decrease, class: this.leftIconClasses }, h("road-icon", { name: this.isDustbinVisible ? "delete-forever" : "navigation-add-less", ref: (el) => this.iconCounterLess = el, size: this.size })), h("road-input", { 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 }), h("road-button", { slot: "append", size: this.size, onClick: this.increase, class: this.rightIconClasses }, h("road-icon", { name: "navigation-add-more", size: this.size }))));
|
|
227
|
+
}
|
|
228
|
+
get el() { return getElement(this); }
|
|
229
|
+
};
|
|
230
|
+
let counterIds = 0;
|
|
231
|
+
Counter.style = counterCss;
|
|
232
|
+
|
|
233
|
+
const drawerDarkCss = ":host{--background:var(--road-grey-000);--color:var(--road-grey-900);--header-icon:var(--road-grey-900);--header-color:var(--road-grey-900);--header-background:var(--road-grey-000);--header-delimiter:0;--back-chevron-color:var(--road-grey-900);--max-height:auto;--z-index:10;position:fixed;top:0;left:0;z-index:var(--z-index);display:flex;justify-content:flex-start;width:100%;height:100%;overflow:hidden;font-family:var(--road-font, sans-serif);line-height:1.5;color:var(--color);visibility:hidden !important;opacity:0;transition:opacity 0.15s linear, visibility 0.15s}.drawer-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;touch-action:none;cursor:pointer;background:var(--road-overlay)}.drawer-dialog{position:relative;width:100%;pointer-events:none;transition:transform 0.3s ease-out;transform:translateX(-100%)}:host(.drawer-right){justify-content:flex-end}:host(.drawer-right) .drawer-dialog{transform:translateX(100%)}:host(.drawer-bottom){align-items:flex-end}:host(.drawer-bottom) .drawer-dialog{width:100%;max-height:var(--max-height);transform:translateY(100%)}:host(.drawer-bottom) .drawer-content{height:auto}.drawer-content{position:relative;display:flex;flex-direction:column;width:100%;height:100vh;pointer-events:auto;background-color:var(--background);background-clip:padding-box;box-shadow:0 0.1875rem 0.375rem rgba(0, 0, 0, 0.16)}.drawer-header{display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;height:3.5rem;color:var(--header-color);background:var(--header-background);border-color:var(--road-grey-300);border-style:solid;border-width:var(--header-delimiter)}.drawer-header road-icon{flex-shrink:0;color:var(--header-icon)}.drawer-header-inverse{--header-icon:var(--road-primary-contrast);--header-color:var(--road-primary-contrast);--header-background:var(--road-primary-900);margin-bottom:2.5rem}.drawer-action,.drawer-close{display:flex;align-items:center;justify-content:center;height:3.5rem;padding:0.5rem;font-family:inherit;font-size:0.875rem;color:inherit;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.drawer-header:not(.drawer-header-inverse) .drawer-action road-icon{color:var(--back-chevron-color)}.drawer-action~.drawer-title,.drawer-close~.drawer-title{padding-left:0}.drawer-action-left,.drawer-close-left{margin-right:auto}.drawer-title{display:flex;flex-grow:1;align-items:center;justify-content:center;height:3.5rem;padding-left:3.5rem;margin:0;font-size:1rem;font-weight:400}.drawer-body{overflow-y:auto}:host(.drawer-right) .drawer-body,:host(.drawer-left) .drawer-body{height:calc(100vh - 3.5rem)}.drawer-inner{padding:0 1rem 2.5rem}@media (min-width: 768px){.drawer-inner{padding:0 2rem 2.5rem}}:host(.drawer-open){visibility:visible !important;opacity:1}:host(.drawer-open) .drawer-dialog{transform:none}:host{--background:var(--road-grey-999);--color:var(--road-grey-000);--header-icon:var(--road-grey-000)}";
|
|
234
|
+
|
|
235
|
+
const drawerLightCss = ":host{--background:var(--road-grey-000);--color:var(--road-grey-900);--header-icon:var(--road-grey-900);--header-color:var(--road-grey-900);--header-background:var(--road-grey-000);--header-delimiter:0;--back-chevron-color:var(--road-grey-900);--max-height:auto;--z-index:10;position:fixed;top:0;left:0;z-index:var(--z-index);display:flex;justify-content:flex-start;width:100%;height:100%;overflow:hidden;font-family:var(--road-font, sans-serif);line-height:1.5;color:var(--color);visibility:hidden !important;opacity:0;transition:opacity 0.15s linear, visibility 0.15s}.drawer-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;touch-action:none;cursor:pointer;background:var(--road-overlay)}.drawer-dialog{position:relative;width:100%;pointer-events:none;transition:transform 0.3s ease-out;transform:translateX(-100%)}:host(.drawer-right){justify-content:flex-end}:host(.drawer-right) .drawer-dialog{transform:translateX(100%)}:host(.drawer-bottom){align-items:flex-end}:host(.drawer-bottom) .drawer-dialog{width:100%;max-height:var(--max-height);transform:translateY(100%)}:host(.drawer-bottom) .drawer-content{height:auto}.drawer-content{position:relative;display:flex;flex-direction:column;width:100%;height:100vh;pointer-events:auto;background-color:var(--background);background-clip:padding-box;box-shadow:0 0.1875rem 0.375rem rgba(0, 0, 0, 0.16)}.drawer-header{display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;height:3.5rem;color:var(--header-color);background:var(--header-background);border-color:var(--road-grey-300);border-style:solid;border-width:var(--header-delimiter)}.drawer-header road-icon{flex-shrink:0;color:var(--header-icon)}.drawer-header-inverse{--header-icon:var(--road-primary-contrast);--header-color:var(--road-primary-contrast);--header-background:var(--road-primary-900);margin-bottom:2.5rem}.drawer-action,.drawer-close{display:flex;align-items:center;justify-content:center;height:3.5rem;padding:0.5rem;font-family:inherit;font-size:0.875rem;color:inherit;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.drawer-header:not(.drawer-header-inverse) .drawer-action road-icon{color:var(--back-chevron-color)}.drawer-action~.drawer-title,.drawer-close~.drawer-title{padding-left:0}.drawer-action-left,.drawer-close-left{margin-right:auto}.drawer-title{display:flex;flex-grow:1;align-items:center;justify-content:center;height:3.5rem;padding-left:3.5rem;margin:0;font-size:1rem;font-weight:400}.drawer-body{overflow-y:auto}:host(.drawer-right) .drawer-body,:host(.drawer-left) .drawer-body{height:calc(100vh - 3.5rem)}.drawer-inner{padding:0 1rem 2.5rem}@media (min-width: 768px){.drawer-inner{padding:0 2rem 2.5rem}}:host(.drawer-open){visibility:visible !important;opacity:1}:host(.drawer-open) .drawer-dialog{transform:none}";
|
|
236
|
+
|
|
237
|
+
const Drawer = class {
|
|
238
|
+
constructor(hostRef) {
|
|
239
|
+
registerInstance(this, hostRef);
|
|
240
|
+
this.onOpen = createEvent(this, "open", 7);
|
|
241
|
+
this.onClose = createEvent(this, "close", 7);
|
|
242
|
+
this.onBack = createEvent(this, "back", 7);
|
|
243
|
+
/**
|
|
244
|
+
* Set isOpen property to true to open the drawer
|
|
245
|
+
*/
|
|
246
|
+
this.isOpen = false;
|
|
247
|
+
/**
|
|
248
|
+
* position of the drawer. e.g. left, right, bottom
|
|
249
|
+
*/
|
|
250
|
+
this.position = 'left';
|
|
251
|
+
/**
|
|
252
|
+
* Width of the drawer
|
|
253
|
+
*/
|
|
254
|
+
this.drawerWidth = 480;
|
|
255
|
+
/**
|
|
256
|
+
* Inverse header colors
|
|
257
|
+
*/
|
|
258
|
+
this.hasInverseHeader = false;
|
|
259
|
+
/**
|
|
260
|
+
* Show / hide back icon
|
|
261
|
+
*/
|
|
262
|
+
this.hasBackIcon = false;
|
|
263
|
+
/**
|
|
264
|
+
* Show / hide close icon
|
|
265
|
+
*/
|
|
266
|
+
this.hasCloseIcon = true;
|
|
267
|
+
/**
|
|
268
|
+
* Close the dialog when clicking on the cross or layer
|
|
269
|
+
*/
|
|
270
|
+
this.onClick = (ev) => {
|
|
271
|
+
ev.stopPropagation();
|
|
272
|
+
ev.preventDefault();
|
|
273
|
+
this.close();
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* Close the dialog when clicking on the cross or layer
|
|
277
|
+
*/
|
|
278
|
+
this.onClickBack = (event) => {
|
|
279
|
+
event.stopPropagation();
|
|
280
|
+
event.preventDefault();
|
|
281
|
+
this.back();
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Open the drawer
|
|
286
|
+
*/
|
|
287
|
+
async open() {
|
|
288
|
+
this.isOpen = true;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Close the drawer
|
|
292
|
+
*/
|
|
293
|
+
async close() {
|
|
294
|
+
this.isOpen = false;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Return to previous state of the drawer content
|
|
298
|
+
*/
|
|
299
|
+
async back() {
|
|
300
|
+
this.onBack.emit();
|
|
301
|
+
}
|
|
302
|
+
handleOpen(openValue) {
|
|
303
|
+
if (openValue === true) {
|
|
304
|
+
this.onOpen.emit();
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
this.el.addEventListener('transitionend', () => {
|
|
308
|
+
this.onClose.emit();
|
|
309
|
+
this.el.shadowRoot && (this.el.shadowRoot.querySelector('.drawer-body').scrollTop = 0);
|
|
310
|
+
}, { once: true });
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Close the dialog when press Escape key
|
|
315
|
+
*/
|
|
316
|
+
onEscape(event) {
|
|
317
|
+
if (event.key === 'Escape' || event.key === "Esc") {
|
|
318
|
+
this.close();
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Call close function when clicking an element with data-dismiss="modal" attribute
|
|
323
|
+
*/
|
|
324
|
+
componentDidLoad() {
|
|
325
|
+
this.el.querySelectorAll('[data-dismiss="modal"]').forEach(item => {
|
|
326
|
+
item.addEventListener('click', () => this.close());
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
render() {
|
|
330
|
+
const drawerIsOpenClass = this.isOpen ? 'drawer-open' : '';
|
|
331
|
+
const inverseHeaderClass = this.hasInverseHeader ? 'drawer-header-inverse' : '';
|
|
332
|
+
const drawerDelimiterClass = this.drawerTitle !== undefined && !this.hasInverseHeader ? 'drawer-delimiter' : '';
|
|
333
|
+
const backIconElement = this.hasBackIcon ? h("button", { type: "button", class: "drawer-action", "aria-label": "Back", onClick: this.onClickBack }, h("road-icon", { icon: navigationChevron, rotate: "180" }), this.backText) : '';
|
|
334
|
+
const closeIconElement = this.hasCloseIcon ? h("button", { type: "button", class: "drawer-close", onClick: this.onClick, "aria-label": "Close" }, h("road-icon", { icon: navigationClose, "aria-hidden": "true" })) : '';
|
|
335
|
+
const drawerWidthValue = this.position === 'bottom' ? '100%' : this.drawerWidth + 'px';
|
|
336
|
+
return (h(Host, { class: `drawer ${drawerIsOpenClass} drawer-${this.position}`, tabindex: "-1", role: "dialog" }, h("div", { class: "drawer-overlay", onClick: this.onClick, tabindex: "-1" }), h("div", { class: "drawer-dialog", style: { maxWidth: `${drawerWidthValue}` }, role: "document", tabindex: "0" }, h("div", { class: "drawer-content" }, h("header", { class: `drawer-header ${inverseHeaderClass} ${drawerDelimiterClass}` }, backIconElement, this.drawerTitle !== undefined ? h("h2", { class: "drawer-title" }, this.drawerTitle) : h("div", { class: "drawer-title" }, h("slot", { name: "title" })), closeIconElement), h("div", { class: "drawer-body" }, h("slot", null))))));
|
|
337
|
+
}
|
|
338
|
+
get el() { return getElement(this); }
|
|
339
|
+
static get watchers() { return {
|
|
340
|
+
"isOpen": ["handleOpen"]
|
|
341
|
+
}; }
|
|
342
|
+
};
|
|
343
|
+
Drawer.style = {
|
|
344
|
+
dark: drawerDarkCss,
|
|
345
|
+
light: drawerLightCss
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
const gridCss = ":host{box-sizing:border-box;display:block;width:100%;padding-right:8px;padding-left:8px;margin-right:auto;margin-left:auto}@media (min-width: 768px){:host{padding-right:24px;padding-left:24px}}";
|
|
349
|
+
|
|
350
|
+
const Grid = class {
|
|
351
|
+
constructor(hostRef) {
|
|
352
|
+
registerInstance(this, hostRef);
|
|
353
|
+
}
|
|
354
|
+
render() {
|
|
355
|
+
return (h("slot", null));
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
Grid.style = gridCss;
|
|
359
|
+
|
|
360
|
+
const validateContent = (svgContent) => {
|
|
361
|
+
const div = document.createElement('div');
|
|
362
|
+
div.innerHTML = svgContent;
|
|
363
|
+
// setup this way to ensure it works on our buddy IE
|
|
364
|
+
for (let i = div.childNodes.length - 1; i >= 0; i--) {
|
|
365
|
+
if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {
|
|
366
|
+
div.removeChild(div.childNodes[i]);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
// must only have 1 root element
|
|
370
|
+
const svgElm = div.firstElementChild;
|
|
371
|
+
if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {
|
|
372
|
+
const svgClass = svgElm.getAttribute('class') || '';
|
|
373
|
+
svgElm.setAttribute('class', (svgClass + ' s-ion-icon').trim());
|
|
374
|
+
// root element must be an svg
|
|
375
|
+
// lets double check we've got valid elements
|
|
376
|
+
// do not allow scripts
|
|
377
|
+
if (isValid(svgElm)) {
|
|
378
|
+
return div.innerHTML;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
return '';
|
|
382
|
+
};
|
|
383
|
+
const isValid = (elm) => {
|
|
384
|
+
if (elm.nodeType === 1) {
|
|
385
|
+
if (elm.nodeName.toLowerCase() === 'script') {
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
388
|
+
for (let i = 0; i < elm.attributes.length; i++) {
|
|
389
|
+
const val = elm.attributes[i].value;
|
|
390
|
+
if (isStr(val) && val.toLowerCase().indexOf('on') === 0) {
|
|
391
|
+
return false;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
for (let i = 0; i < elm.childNodes.length; i++) {
|
|
395
|
+
if (!isValid(elm.childNodes[i])) {
|
|
396
|
+
return false;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
return true;
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
const roadiconContent = new Map();
|
|
404
|
+
const requests = new Map();
|
|
405
|
+
const getSvgContent = (url, sanitize) => {
|
|
406
|
+
// see if we already have a request for this url
|
|
407
|
+
let req = requests.get(url);
|
|
408
|
+
if (!req) {
|
|
409
|
+
if (typeof fetch !== 'undefined' && typeof document !== 'undefined') {
|
|
410
|
+
// we don't already have a request
|
|
411
|
+
// @ts-ignore
|
|
412
|
+
req = fetch(url).then((rsp) => {
|
|
413
|
+
if (rsp.ok) {
|
|
414
|
+
return rsp.text().then((svgContent) => {
|
|
415
|
+
if (svgContent && sanitize !== false) {
|
|
416
|
+
svgContent = validateContent(svgContent);
|
|
417
|
+
}
|
|
418
|
+
roadiconContent.set(url, svgContent || '');
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
roadiconContent.set(url, '');
|
|
422
|
+
});
|
|
423
|
+
// cache for the same requests
|
|
424
|
+
requests.set(url, req);
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
// set to empty for ssr scenarios and resolve promise
|
|
428
|
+
roadiconContent.set(url, '');
|
|
429
|
+
return Promise.resolve();
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
return req;
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
const iconCss = ":host{box-sizing:content-box;display:inline-block;color:var(--road-grey-900);transition:fill 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;fill:currentColor;contain:strict}:host svg{display:block;width:100%;height:100%}:host(.icon-sm){width:1.25rem;height:1.25rem}:host(.icon-md){width:1.5rem;height:1.5rem}:host(.icon-lg){width:2rem;height:2rem}:host(.icon-3x){width:3rem;height:3rem}:host(.icon-4x){width:4rem;height:4rem}:host(.icon-primary){color:var(--road-primary-900)}:host(.icon-secondary){color:var(--road-primary-500)}:host(.icon-accent){color:var(--road-secondary-500)}:host(.icon-info){color:var(--road-info-default)}:host(.icon-success){color:var(--road-success-default)}:host(.icon-warning){color:var(--road-warning-default)}:host(.icon-danger){color:var(--road-danger-default)}:host(.icon-default){color:var(--road-grey-900)}:host(.icon-white){color:var(--road-grey-000)}:host(.icon-rotate-90){transform:rotate(90deg)}:host(.icon-rotate-180){transform:rotate(180deg)}:host(.icon-rotate-270){transform:rotate(270deg)}";
|
|
436
|
+
|
|
437
|
+
const Icon = class {
|
|
438
|
+
constructor(hostRef) {
|
|
439
|
+
registerInstance(this, hostRef);
|
|
440
|
+
this.isVisible = false;
|
|
441
|
+
/**
|
|
442
|
+
* The size of the icon.
|
|
443
|
+
* Available options are: `"sm"`, `"md"`, `"lg"`, `"3x"` and `"4x"`.
|
|
444
|
+
*/
|
|
445
|
+
this.size = "lg";
|
|
446
|
+
/**
|
|
447
|
+
* If enabled, road-icon will be loaded lazily when it's visible in the viewport.
|
|
448
|
+
* Default, `false`.
|
|
449
|
+
*/
|
|
450
|
+
this.lazy = false;
|
|
451
|
+
/**
|
|
452
|
+
* When set to `false`, SVG content that is HTTP fetched will not be checked
|
|
453
|
+
* if the response SVG content has any `<script>` elements, or any attributes
|
|
454
|
+
* that start with `on`, such as `onclick`.
|
|
455
|
+
*/
|
|
456
|
+
this.sanitize = true;
|
|
457
|
+
}
|
|
458
|
+
componentWillLoad() {
|
|
459
|
+
this.waitUntilVisible(this.el, '50px', () => {
|
|
460
|
+
this.isVisible = true;
|
|
461
|
+
this.loadIcon();
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
disconnectedCallback() {
|
|
465
|
+
if (this.io) {
|
|
466
|
+
this.io.disconnect();
|
|
467
|
+
this.io = undefined;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
waitUntilVisible(el, rootMargin, cb) {
|
|
471
|
+
if (this.lazy && window.IntersectionObserver) {
|
|
472
|
+
const io = this.io = new window.IntersectionObserver((data) => {
|
|
473
|
+
if (data[0].isIntersecting) {
|
|
474
|
+
io.disconnect();
|
|
475
|
+
this.io = undefined;
|
|
476
|
+
cb();
|
|
477
|
+
}
|
|
478
|
+
}, { rootMargin });
|
|
479
|
+
io.observe(el);
|
|
480
|
+
}
|
|
481
|
+
else {
|
|
482
|
+
// browser doesn't support IntersectionObserver
|
|
483
|
+
// so just fallback to always show it
|
|
484
|
+
cb();
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
loadIcon() {
|
|
488
|
+
if (this.isVisible) {
|
|
489
|
+
const url = getUrl(this);
|
|
490
|
+
if (url) {
|
|
491
|
+
if (roadiconContent.has(url)) {
|
|
492
|
+
// sync if it's already loaded
|
|
493
|
+
this.svgContent = roadiconContent.get(url);
|
|
494
|
+
}
|
|
495
|
+
else {
|
|
496
|
+
// async if it hasn't been loaded
|
|
497
|
+
getSvgContent(url, this.sanitize).then(() => (this.svgContent = roadiconContent.get(url)));
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
if (!this.ariaLabel && this.ariaHidden !== 'true') {
|
|
502
|
+
const label = getName(this.name, this.icon);
|
|
503
|
+
// user did not provide a label
|
|
504
|
+
// come up with the label based on the icon name
|
|
505
|
+
if (label) {
|
|
506
|
+
this.ariaLabel = label.replace(/-/g, ' ');
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
render() {
|
|
511
|
+
const colorClass = this.color !== undefined ? `icon-${this.color}` : '';
|
|
512
|
+
const sizeClass = this.size !== undefined ? `icon-${this.size}` : '';
|
|
513
|
+
const rotateClass = this.rotate !== undefined ? `icon-rotate-${this.rotate}` : '';
|
|
514
|
+
return (h(Host, { class: `${colorClass} ${sizeClass} ${rotateClass}`, "aria-hidden": "true" }, ((this.svgContent !== '')
|
|
515
|
+
? h("div", { class: "icon-inner", innerHTML: this.svgContent })
|
|
516
|
+
: h("div", { class: "icon-inner" }))));
|
|
517
|
+
}
|
|
518
|
+
static get assetsDirs() { return ["svg"]; }
|
|
519
|
+
get el() { return getElement(this); }
|
|
520
|
+
static get watchers() { return {
|
|
521
|
+
"name": ["loadIcon"],
|
|
522
|
+
"src": ["loadIcon"],
|
|
523
|
+
"icon": ["loadIcon"]
|
|
524
|
+
}; }
|
|
525
|
+
};
|
|
526
|
+
Icon.style = iconCss;
|
|
527
|
+
|
|
528
|
+
const inputCss = ".sc-road-input-h{--height:3rem;--border-radius:0.25rem;--input-text-align:left;--margin-bottom:1rem;position:relative;display:block;margin-bottom:var(--margin-bottom);font-family:var(--road-font, sans-serif);color:var(--road-grey-900)}.form-control.sc-road-input{box-sizing:border-box;display:block;width:100%;height:var(--height);padding:0.75rem 1rem 0;margin:0;font-size:1rem;color:var(--road-grey-900);text-align:var(--input-text-align);background:var(--road-grey-000);border:1px solid var(--road-grey-500);border-radius:var(--border-radius);box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-control[type=\"number\"].sc-road-input{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.form-control.sc-road-input::-webkit-calendar-picker-indicator{margin-top:-0.75rem}.form-control.sc-road-input::-webkit-date-and-time-value{padding-top:0.625rem}.form-control.sc-road-input::placeholder{color:var(--road-grey-500);opacity:1}@media (hover: hover){.form-control.sc-road-input:not(:disabled):hover{border-color:var(--road-primary-700)}}.form-control.sc-road-input:focus~.form-label.sc-road-input,.form-control[required].sc-road-input:valid~.form-label.sc-road-input,.form-control.has-value.sc-road-input~.form-label.sc-road-input,.form-control[type=\"date\"].sc-road-input~.form-label.sc-road-input,.form-control[type=\"time\"].sc-road-input~.form-label.sc-road-input{transform:scale(0.625) translateY(-0.625rem)}.form-control.sc-road-input:placeholder-shown~.form-label.sc-road-input{transform:scale(0.625) translateY(-0.625rem)}.form-control.sc-road-input:-ms-input-placeholder~.form-label.sc-road-input{transform:scale(0.625) translateY(-0.625rem)}.form-control.sc-road-input:not(:disabled):focus{border-color:var(--road-primary-700);outline:0}.form-control.sc-road-input:disabled,.form-control[readonly].sc-road-input{cursor:not-allowed;background:var(--road-grey-200);opacity:1}.form-label.sc-road-input{position:absolute;top:0.75rem;left:1rem;display:block;font-size:1rem;line-height:1.5;color:var(--road-grey-500);pointer-events:none;transition:transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;transform-origin:0 0}.form-control.sc-road-input:required~.form-label.sc-road-input::after{color:var(--road-danger-default);content:\" *\"}.less-label.sc-road-input{padding-top:0}.input-xl.sc-road-input-h{--height:3.5rem}.input-xl.sc-road-input-h .form-control.sc-road-input{padding:1rem 1rem 0}.phone-number.sc-road-input-h .form-control.sc-road-input{padding-left:2rem}.phone-number.sc-road-input-h .form-label.sc-road-input{left:2rem}.input-xl.sc-road-input-h .form-label.sc-road-input{top:1rem}.input-xl.sc-road-input-h .form-control.sc-road-input:focus~.form-label.sc-road-input,.input-xl.sc-road-input-h .form-control[required].sc-road-input:valid~.form-label.sc-road-input,.input-xl.sc-road-input-h .form-control.has-value.sc-road-input~.form-label.sc-road-input,.input-xl.sc-road-input-h .form-control[type=\"date\"].sc-road-input~.form-label.sc-road-input,.input-xl.sc-road-input-h .form-control[type=\"time\"].sc-road-input~.form-label.sc-road-input{transform:scale(0.75) translateY(-0.625rem)}.input-xl.sc-road-input-h .form-control.sc-road-input:placeholder-shown~.form-label.sc-road-input{transform:scale(0.625) translateY(-0.625rem)}.invalid-feedback.sc-road-input{display:none;width:100%;margin-top:0.5rem;font-size:0.75rem;color:var(--road-danger-text)}.form-control.is-invalid.sc-road-input,.was-validated.sc-road-input .form-control.sc-road-input:invalid{border-color:var(--road-danger-default)}.form-control.is-invalid.sc-road-input~.invalid-feedback.sc-road-input,.was-validated.sc-road-input .form-control.sc-road-input:invalid~.invalid-feedback.sc-road-input{display:block}.helper.sc-road-input{margin-top:0.5rem;font-size:0.875rem;color:var(--road-grey-500)}.form-control[type=\"password\"].sc-road-input~.checklist-password.sc-road-input .invalid.sc-road-input{color:var(--road-grey-500)}";
|
|
529
|
+
|
|
530
|
+
const debounceEvent = (event, wait) => {
|
|
531
|
+
const original = event._original || event;
|
|
532
|
+
return {
|
|
533
|
+
_original: event,
|
|
534
|
+
emit: debounce(original.emit.bind(original), wait),
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
const debounce = (func, wait = 0) => {
|
|
538
|
+
let timer;
|
|
539
|
+
return (...args) => {
|
|
540
|
+
clearTimeout(timer);
|
|
541
|
+
timer = setTimeout(func, wait, ...args);
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
const Input = class {
|
|
545
|
+
constructor(hostRef) {
|
|
546
|
+
registerInstance(this, hostRef);
|
|
547
|
+
this.roadinput = createEvent(this, "roadinput", 7);
|
|
548
|
+
this.roadInput = createEvent(this, "roadInput", 7);
|
|
549
|
+
this.roadchange = createEvent(this, "roadchange", 7);
|
|
550
|
+
this.roadChange = createEvent(this, "roadChange", 7);
|
|
551
|
+
this.roadblur = createEvent(this, "roadblur", 7);
|
|
552
|
+
this.roadBlur = createEvent(this, "roadBlur", 7);
|
|
553
|
+
this.roadfocus = createEvent(this, "roadfocus", 7);
|
|
554
|
+
this.roadFocus = createEvent(this, "roadFocus", 7);
|
|
555
|
+
/**
|
|
556
|
+
* The id of input
|
|
557
|
+
*/
|
|
558
|
+
this.inputId = `road-input-${inputIds++}`;
|
|
559
|
+
/**
|
|
560
|
+
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
|
|
561
|
+
*/
|
|
562
|
+
this.autocapitalize = 'off';
|
|
563
|
+
/**
|
|
564
|
+
* Indicates whether the value of the control can be automatically completed by the browser.
|
|
565
|
+
*/
|
|
566
|
+
this.autocomplete = 'off';
|
|
567
|
+
/**
|
|
568
|
+
* Whether auto correction should be enabled when the user is entering/editing the text value.
|
|
569
|
+
*/
|
|
570
|
+
this.autocorrect = 'off';
|
|
571
|
+
/**
|
|
572
|
+
* This Boolean attribute lets you specify that a form control should have input focus when the page loads.
|
|
573
|
+
*/
|
|
574
|
+
this.autofocus = false;
|
|
575
|
+
/**
|
|
576
|
+
* If `true`, the user cannot interact with the input.
|
|
577
|
+
*/
|
|
578
|
+
this.disabled = false;
|
|
579
|
+
/**
|
|
580
|
+
* The name of the control, which is submitted with the form data.
|
|
581
|
+
*/
|
|
582
|
+
this.name = this.inputId;
|
|
583
|
+
/**
|
|
584
|
+
* If `true`, the user cannot modify the value.
|
|
585
|
+
*/
|
|
586
|
+
this.readonly = false;
|
|
587
|
+
/**
|
|
588
|
+
* If `true`, the user must fill in a value before submitting a form.
|
|
589
|
+
*/
|
|
590
|
+
this.required = false;
|
|
591
|
+
/**
|
|
592
|
+
* If `true`, the element will have its spelling and grammar checked.
|
|
593
|
+
*/
|
|
594
|
+
this.spellcheck = false;
|
|
595
|
+
/**
|
|
596
|
+
* The sizes of the input.
|
|
597
|
+
*/
|
|
598
|
+
this.sizes = 'lg';
|
|
599
|
+
/**
|
|
600
|
+
* The type of control to display. The default type is text.
|
|
601
|
+
*/
|
|
602
|
+
this.type = 'text';
|
|
603
|
+
/**
|
|
604
|
+
* The value of the input.
|
|
605
|
+
*/
|
|
606
|
+
this.value = '';
|
|
607
|
+
/**
|
|
608
|
+
* Label for the field
|
|
609
|
+
*/
|
|
610
|
+
this.label = '';
|
|
611
|
+
/**
|
|
612
|
+
* Set the amount of time, in milliseconds, to wait to trigger the `roadChange` event after each keystroke.
|
|
613
|
+
*/
|
|
614
|
+
this.debounce = 0;
|
|
615
|
+
this.onInput = (ev) => {
|
|
616
|
+
const input = ev.target;
|
|
617
|
+
if (input) {
|
|
618
|
+
this.value = input.value || "";
|
|
619
|
+
}
|
|
620
|
+
this.roadinput.emit(ev);
|
|
621
|
+
this.roadInput.emit(ev);
|
|
622
|
+
};
|
|
623
|
+
this.onBlur = () => {
|
|
624
|
+
this.roadblur.emit();
|
|
625
|
+
this.roadBlur.emit();
|
|
626
|
+
};
|
|
627
|
+
this.onFocus = () => {
|
|
628
|
+
this.roadfocus.emit();
|
|
629
|
+
this.roadFocus.emit();
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
debounceChanged() {
|
|
633
|
+
this.roadchange = debounceEvent(this.roadchange, this.debounce);
|
|
634
|
+
this.roadChange = debounceEvent(this.roadChange, this.debounce);
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* Update the native input element when the value changes
|
|
638
|
+
*/
|
|
639
|
+
valueChanged() {
|
|
640
|
+
this.roadchange.emit({ value: this.value == null ? this.value : this.value.toString() });
|
|
641
|
+
this.roadChange.emit({ value: this.value == null ? this.value : this.value.toString() });
|
|
642
|
+
}
|
|
643
|
+
getValue() {
|
|
644
|
+
return typeof this.value === 'number'
|
|
645
|
+
? this.value.toString()
|
|
646
|
+
: (this.value || '').toString();
|
|
647
|
+
}
|
|
648
|
+
render() {
|
|
649
|
+
const value = this.getValue();
|
|
650
|
+
const labelId = this.inputId + '-label';
|
|
651
|
+
const hasValueClass = this.value !== '' ? 'has-value' : '';
|
|
652
|
+
const lessLabelClass = this.label !== '' ? '' : 'less-label';
|
|
653
|
+
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
654
|
+
return (h(Host, { "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}` }, h("input", { 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 }), h("label", { class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && h("p", { class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && h("p", { class: "helper" }, this.helper), this.type && this.type == 'password' &&
|
|
655
|
+
h("slot", { name: "checklistPassword" })));
|
|
656
|
+
}
|
|
657
|
+
static get watchers() { return {
|
|
658
|
+
"debounce": ["debounceChanged"],
|
|
659
|
+
"value": ["valueChanged"]
|
|
660
|
+
}; }
|
|
661
|
+
};
|
|
662
|
+
let inputIds = 0;
|
|
663
|
+
Input.style = inputCss;
|
|
664
|
+
|
|
665
|
+
const inputGroupCss = ":host{display:block}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%;font-family:var(--road-font, sans-serif)}::slotted(road-input),::slotted(input),::slotted(textarea),::slotted(road-select){position:relative;flex:1 1 auto;width:1%;margin-bottom:0}::slotted([slot=\"prepend\"]){margin-right:-3px;border-color:var(--road-grey-500);border-right-color:transparent;border-top-right-radius:0;border-bottom-right-radius:0}::slotted([slot=\"append\"]){margin-left:-0.25rem;border-color:var(--road-grey-500);border-left-width:0}@media (hover: hover){.input-group:not(.is-disabled):hover ::slotted([slot=\"prepend\"]){border-color:var(--road-primary-700);border-right-color:transparent}.input-group:not(.is-disabled):hover ::slotted([slot=\"append\"]){border-color:var(--road-primary-700);border-left-color:transparent}:host(.phone-number-group) .input-group:not(.is-disabled):hover ::slotted([slot=\"prepend\"]){border-color:var(--road-primary-700)}}.input-group:focus-within ::slotted([slot=\"prepend\"]){border-color:var(--road-primary-700);border-right-color:transparent}:host(.phone-number-group) .input-group:focus-within ::slotted([slot=\"prepend\"]){border-color:var(--road-primary-700);border-right-color:transparent}.input-group:focus-within ::slotted([slot=\"append\"]){border-color:var(--road-primary-700);border-left-color:transparent}.input-group-prepend,.input-group-append{display:flex;height:3rem}::slotted(road-button){--padding-start:0.5rem;--padding-end:0.5rem;position:relative;z-index:2;min-width:3rem;margin:0;font-size:0.875rem}.input-group-prepend{z-index:1;order:-1}.input-group-prepend~.form-label{left:calc(3rem + 1px)}.input-group-append{position:relative;z-index:1;border-radius:0 0.25rem 0.25rem 0}::slotted(label){display:flex;align-items:center;padding:0 0.5rem;margin-bottom:0;color:var(--road-grey-900);text-align:center;white-space:nowrap;cursor:text;background:var(--road-grey-000);border:1px solid var(--road-grey-500);border-radius:0.25rem;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}::slotted(road-input:not(:first-child)),::slotted(road-select:not(:first-child)){border-radius:0}.input-group-append ::slotted([slot=\"append\"]){border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.input-group-prepend ::slotted([slot=\"prepend\"]){border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}:host(.phone-number-group) .input-group-prepend ::slotted([slot=\"prepend\"]){border-right:1px solid var(--road-grey-500);border-top-right-radius:0;border-bottom-right-radius:0}.input-group-prepend ::slotted(label){margin-right:calc(-1rem + 1px)}.input-group-append ::slotted(road-button){background-color:var(--road-grey-000)}.size-xl .input-group-prepend,.size-xl .input-group-append{height:3.5rem}.size-xl ::slotted(road-button){height:3.5rem}.input-group.is-invalid ::slotted([slot=\"append\"]),.input-group.is-invalid ::slotted([slot=\"prepend\"]){border-color:var(--road-danger-default)}:host(.phone-number-group) .input-group.is-invalid ::slotted([slot=\"prepend\"]){border-color:var(--road-danger-default)}.input-group.is-disabled ::slotted([slot=\"append\"]),.input-group.is-disabled ::slotted([slot=\"prepend\"]){cursor:not-allowed;background:var(--road-grey-200)}.is-disabled ::slotted(road-button){opacity:1}";
|
|
666
|
+
|
|
667
|
+
const InputGroup = class {
|
|
668
|
+
constructor(hostRef) {
|
|
669
|
+
registerInstance(this, hostRef);
|
|
670
|
+
}
|
|
671
|
+
componentDidLoad() {
|
|
672
|
+
var _a;
|
|
673
|
+
if (this.el.querySelector("road-input[disabled]")) {
|
|
674
|
+
(_a = this.el.querySelector("road-button")) === null || _a === void 0 ? void 0 : _a.setAttribute('disabled', "");
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
render() {
|
|
678
|
+
const errorClass = this.el.querySelector("road-input[error]") ? 'is-invalid' : '';
|
|
679
|
+
const disabledClass = this.el.querySelector("road-input[disabled]") ? 'is-disabled' : '';
|
|
680
|
+
const sizeClass = this.el.querySelector("road-input[sizes]") ? `size-${this.el.querySelector("road-input").sizes}` : '';
|
|
681
|
+
return (h("div", { class: `input-group ${errorClass} ${disabledClass} ${sizeClass}` }, h("slot", null), h("div", { class: "input-group-prepend" }, h("slot", { name: "prepend" })), h("div", { class: "input-group-append" }, h("slot", { name: "append" }))));
|
|
682
|
+
}
|
|
683
|
+
get el() { return getElement(this); }
|
|
684
|
+
};
|
|
685
|
+
InputGroup.style = inputGroupCss;
|
|
686
|
+
|
|
687
|
+
const itemCss = ":host{--border-radius:0.25rem;--background-color:transparent;--detail-color:var(--road-grey-900);--inner-padding:1rem 0.5rem 1rem 0;--min-height:3.5rem;--padding-left:1rem;position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;overflow:hidden;text-decoration:none;outline:none}.item-native{position:relative;z-index:1;box-sizing:border-box;display:flex;align-items:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);padding:0 0 0 var(--padding-left);margin:0;overflow:inherit;font-family:inherit;font-size:inherit;color:var(--road-grey-900);background-color:var(--background-color);border-color:var(--road-grey-300);border-style:solid;border-width:var(--border-width, 0);border-radius:var(--border-radius);outline:none;transition:background 0.15s ease-in-out;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.item-active{background-color:var(--road-grey-100)}button.item-native:not(:disabled):not(.item-active):hover,button.item-native:not(:disabled):not(.item-active):focus{background-color:var(--road-grey-100)}.item-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{position:relative;box-sizing:border-box;display:flex;flex:1;flex-direction:inherit;align-items:center;align-self:stretch;width:100%;min-height:inherit;padding:var(--inner-padding);overflow:inherit;text-align:inherit;text-decoration:none;border-color:var(--road-grey-300);border-style:solid;border-width:var(--inner-border-width, 0);outline:0}.input-wrapper{box-sizing:border-box;display:flex;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;overflow:inherit;text-overflow:ellipsis}.item-detail-icon{color:var(--detail-color)}::slotted(road-icon){flex-shrink:0;margin-right:0.5rem}::slotted(road-img){flex-shrink:0;width:3rem;height:3rem;object-fit:cover;min-height:inherit;margin-right:1rem}::slotted(road-button){--padding-start:0.5rem;--padding-end:0.5rem;--margin-bottom:0}:host(.item-lines-none){--border-width:0 !important;--inner-border-width:0 !important}:host(.item-lines-full){--border-width:0 0 1px 0 !important;--inner-border-width:0 !important}:host(.item-lines-inset){--inner-border-width:0 0 1px 0 !important}";
|
|
688
|
+
|
|
689
|
+
const Item = class {
|
|
690
|
+
constructor(hostRef) {
|
|
691
|
+
registerInstance(this, hostRef);
|
|
692
|
+
this.multipleInputs = false;
|
|
693
|
+
/**
|
|
694
|
+
* If `true`, a button tag will be rendered and the item will be tappable.
|
|
695
|
+
*/
|
|
696
|
+
this.button = false;
|
|
697
|
+
/**
|
|
698
|
+
* The icon to use when `detail` is set to `true`.
|
|
699
|
+
*/
|
|
700
|
+
this.detailIcon = navigationChevron;
|
|
701
|
+
/**
|
|
702
|
+
* If `true`, the user cannot interact with the item.
|
|
703
|
+
*/
|
|
704
|
+
this.disabled = false;
|
|
705
|
+
/**
|
|
706
|
+
* The type of the button. Only used when an `onclick` or `button` property is present.
|
|
707
|
+
*/
|
|
708
|
+
this.type = 'button';
|
|
709
|
+
}
|
|
710
|
+
// If the item has an href or button property it will render a native
|
|
711
|
+
// anchor or button that is clickable
|
|
712
|
+
isClickable() {
|
|
713
|
+
return (this.href !== undefined || this.button);
|
|
714
|
+
}
|
|
715
|
+
render() {
|
|
716
|
+
const { detail, detailIcon, download, lines, disabled, href, rel, target } = this;
|
|
717
|
+
const clickable = this.isClickable();
|
|
718
|
+
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
|
|
719
|
+
const attrs = (TagType === 'button')
|
|
720
|
+
? { type: this.type }
|
|
721
|
+
: {
|
|
722
|
+
download,
|
|
723
|
+
href,
|
|
724
|
+
rel,
|
|
725
|
+
target,
|
|
726
|
+
};
|
|
727
|
+
const showDetail = detail !== undefined && detail;
|
|
728
|
+
return (h(Host, { "aria-disabled": disabled ? 'true' : null, class: {
|
|
729
|
+
[`item-lines-${lines}`]: lines !== undefined,
|
|
730
|
+
} }, h(TagType, Object.assign({}, attrs, { class: {
|
|
731
|
+
'item-native': true,
|
|
732
|
+
'item-active': this.active,
|
|
733
|
+
}, part: "native", disabled: disabled }), h("slot", { name: "start" }), h("div", { class: "item-inner" }, h("div", { class: "input-wrapper" }, h("slot", null)), h("slot", { name: "end" }), showDetail && h("road-icon", { icon: detailIcon, lazy: false, class: "item-detail-icon" })))));
|
|
734
|
+
}
|
|
735
|
+
get el() { return getElement(this); }
|
|
736
|
+
};
|
|
737
|
+
Item.style = itemCss;
|
|
738
|
+
|
|
739
|
+
const labelCss = ":host{box-sizing:border-box;display:block;overflow:hidden;font-size:0.875rem;color:currentColor;text-overflow:ellipsis;white-space:nowrap}";
|
|
740
|
+
|
|
741
|
+
const Label = class {
|
|
742
|
+
constructor(hostRef) {
|
|
743
|
+
registerInstance(this, hostRef);
|
|
744
|
+
}
|
|
745
|
+
render() {
|
|
746
|
+
return (h("slot", null));
|
|
747
|
+
}
|
|
748
|
+
};
|
|
749
|
+
Label.style = labelCss;
|
|
750
|
+
|
|
751
|
+
const listCss = ":host{display:block;contain:content;list-style-type:none}:host(.list-lines-none) ::slotted(road-item){--border-width:0;--inner-border-width:0}:host(.list-lines-full){border:1px solid var(--road-grey-300);border-bottom:0}:host(.list-lines-full),:host(.list-lines-full) ::slotted(road-item){--border-width:0 0 1px 0;--inner-border-width:0}:host(.item-lines-inset),:host(.list-lines-inset) ::slotted(road-item){--inner-border-width:0 0 1px 0}";
|
|
752
|
+
|
|
753
|
+
const List = class {
|
|
754
|
+
constructor(hostRef) {
|
|
755
|
+
registerInstance(this, hostRef);
|
|
756
|
+
}
|
|
757
|
+
render() {
|
|
758
|
+
const { lines } = this;
|
|
759
|
+
return (h(Host, { class: {
|
|
760
|
+
[`list-lines-${lines}`]: lines !== undefined,
|
|
761
|
+
} }, h("slot", null)));
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
List.style = listCss;
|
|
765
|
+
|
|
766
|
+
const rowCss = ":host{display:flex;flex-wrap:wrap;max-width:1440px;margin-right:-8px;margin-left:-8px}@media (min-width: 1440px){:host{margin-right:auto;margin-left:auto}}:host(.flex-wrap){flex-wrap:wrap}:host(.flex-nowrap){flex-wrap:nowrap}:host(.justify-content-start){justify-content:flex-start}:host(.justify-content-end){justify-content:flex-end}:host(.justify-content-center){justify-content:center}:host(.justify-content-between){justify-content:space-between}:host(.justify-content-around){justify-content:space-around}:host(.align-items-start){align-items:flex-start}:host(.align-items-end){align-items:flex-end}:host(.align-items-center){align-items:center}:host(.align-items-baseline){align-items:baseline}:host(.align-items-stretch){align-items:stretch}@media (min-width: 576px){:host(.flex-sm-wrap){flex-wrap:wrap}:host(.flex-sm-nowrap){flex-wrap:nowrap}:host(.justify-content-sm-start){justify-content:flex-start}:host(.justify-content-sm-end){justify-content:flex-end}:host(.justify-content-sm-center){justify-content:center}:host(.justify-content-sm-between){justify-content:space-between}:host(.justify-content-sm-around){justify-content:space-around}:host(.align-items-sm-start){align-items:flex-start}:host(.align-items-sm-end){align-items:flex-end}:host(.align-items-sm-center){align-items:center}:host(.align-items-sm-baseline){align-items:baseline}:host(.align-items-sm-stretch){align-items:stretch}}@media (min-width: 768px){:host(.flex-md-wrap){flex-wrap:wrap}:host(.flex-md-nowrap){flex-wrap:nowrap}:host(.justify-content-md-start){justify-content:flex-start}:host(.justify-content-md-end){justify-content:flex-end}:host(.justify-content-md-center){justify-content:center}:host(.justify-content-md-between){justify-content:space-between}:host(.justify-content-md-around){justify-content:space-around}:host(.align-items-md-start){align-items:flex-start}:host(.align-items-md-end){align-items:flex-end}:host(.align-items-md-center){align-items:center}:host(.align-items-md-baseline){align-items:baseline}:host(.align-items-md-stretch){align-items:stretch}}@media (min-width: 992px){:host(.flex-lg-wrap){flex-wrap:wrap}:host(.flex-lg-nowrap){flex-wrap:nowrap}:host(.justify-content-lg-start){justify-content:flex-start}:host(.justify-content-lg-end){justify-content:flex-end}:host(.justify-content-lg-center){justify-content:center}:host(.justify-content-lg-between){justify-content:space-between}:host(.justify-content-lg-around){justify-content:space-around}:host(.align-items-lg-start){align-items:flex-start}:host(.align-items-lg-end){align-items:flex-end}:host(.align-items-lg-center){align-items:center}:host(.align-items-lg-baseline){align-items:baseline}:host(.align-items-lg-stretch){align-items:stretch}}@media (min-width: 1200px){:host(.flex-xl-wrap){flex-wrap:wrap}:host(.flex-xl-nowrap){flex-wrap:nowrap}:host(.justify-content-xl-start){justify-content:flex-start}:host(.justify-content-xl-end){justify-content:flex-end}:host(.justify-content-xl-center){justify-content:center}:host(.justify-content-xl-between){justify-content:space-between}:host(.justify-content-xl-around){justify-content:space-around}:host(.align-items-xl-start){align-items:flex-start}:host(.align-items-xl-end){align-items:flex-end}:host(.align-items-xl-center){align-items:center}:host(.align-items-xl-baseline){align-items:baseline}:host(.align-items-xl-stretch){align-items:stretch}}:host(.align-content-start){align-content:flex-start}:host(.align-content-end){align-content:flex-end}:host(.align-content-center){align-content:center}:host(.align-content-between){align-content:space-between}:host(.align-content-around){align-content:space-around}:host(.align-content-stretch){align-content:stretch}:host(.align-self-auto){align-self:auto}:host(.align-self-start){align-self:flex-start}:host(.align-self-end){align-self:flex-end}:host(.align-self-center){align-self:center}:host(.align-self-baseline){align-self:baseline}:host(.align-self-stretch){align-self:stretch}";
|
|
767
|
+
|
|
768
|
+
const Row = class {
|
|
769
|
+
constructor(hostRef) {
|
|
770
|
+
registerInstance(this, hostRef);
|
|
771
|
+
}
|
|
772
|
+
render() {
|
|
773
|
+
return (h(Host, null, h("slot", null)));
|
|
774
|
+
}
|
|
775
|
+
};
|
|
776
|
+
Row.style = rowCss;
|
|
777
|
+
|
|
778
|
+
const toolbarCss = ":host{position:relative;box-sizing:border-box;display:block;width:100%;contain:content;color:var(--road-grey-900);background:var(--road-grey-000);border-bottom:1px solid var(--road-grey-300)}.toolbar-container{position:relative;box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;min-height:3.5rem;contain:content;overflow:hidden}.toolbar-content{flex:1 1 0%;min-width:0;max-width:100%}::slotted(road-button){--margin-bottom:0;--padding-start:0.5rem;--padding-end:0.5rem;--border-radius:1.5rem;font-size:0.875rem;font-weight:400}:host(.toolbar-primary){color:var(--road-primary-contrast);background:var(--road-primary-900)}:host(.toolbar-secondary){color:var(--road-primary-contrast);background:var(--road-primary-500)}";
|
|
779
|
+
|
|
780
|
+
const Toolbar = class {
|
|
781
|
+
constructor(hostRef) {
|
|
782
|
+
registerInstance(this, hostRef);
|
|
783
|
+
}
|
|
784
|
+
render() {
|
|
785
|
+
const colorClass = this.color !== undefined ? `toolbar-${this.color}` : '';
|
|
786
|
+
return (h(Host, { class: colorClass }, h("div", { class: "toolbar-container" }, h("slot", { name: "start" }), h("slot", { name: "primary" }), h("div", { class: "toolbar-content" }, h("slot", null)), h("slot", { name: "secondary" }), h("slot", { name: "end" }))));
|
|
787
|
+
}
|
|
788
|
+
};
|
|
789
|
+
Toolbar.style = toolbarCss;
|
|
790
|
+
|
|
791
|
+
export { Badge as road_badge, Button as road_button, Col as road_col, Counter as road_counter, Drawer as road_drawer, Grid as road_grid, Icon as road_icon, Input as road_input, InputGroup as road_input_group, Item as road_item, Label as road_label, List as road_list, Row as road_row, Toolbar as road_toolbar };
|