@roadtrip/components 2.42.0 → 2.43.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} +701 -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 +2 -2
- package/dist/cjs/road-autocomplete.cjs.entry.js +2 -2
- package/dist/cjs/road-avatar.cjs.entry.js +2 -2
- package/dist/cjs/road-badge_11.cjs.entry.js +15 -15
- package/dist/cjs/road-banner.cjs.entry.js +2 -2
- package/dist/cjs/road-card.cjs.entry.js +2 -2
- package/dist/cjs/road-carousel-item.cjs.entry.js +2 -2
- package/dist/cjs/road-carousel.cjs.entry.js +8 -8
- package/dist/cjs/road-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/road-chip.cjs.entry.js +2 -2
- package/dist/cjs/road-collapse.cjs.entry.js +2 -2
- package/dist/cjs/road-counter.cjs.entry.js +3 -3
- package/dist/cjs/road-dialog.cjs.entry.js +2 -2
- package/dist/cjs/road-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/road-duration.cjs.entry.js +2 -2
- package/dist/cjs/road-flap.cjs.entry.js +2 -2
- package/dist/cjs/road-img.cjs.entry.js +2 -2
- package/dist/cjs/road-input-group.cjs.entry.js +2 -2
- package/dist/cjs/road-input.cjs.entry.js +2 -2
- package/dist/cjs/road-modal.cjs.entry.js +2 -2
- package/dist/cjs/road-navbar-item.cjs.entry.js +2 -2
- package/dist/cjs/road-navbar.cjs.entry.js +2 -2
- package/dist/cjs/road-plate-number.cjs.entry.js +2 -2
- package/dist/cjs/road-progress.cjs.entry.js +2 -2
- package/dist/cjs/road-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/road-radio.cjs.entry.js +2 -2
- package/dist/cjs/road-range.cjs.entry.js +2 -2
- package/dist/cjs/road-rating.cjs.entry.js +2 -2
- package/dist/cjs/road-select-filter.cjs.entry.js +5 -3
- package/dist/cjs/road-select.cjs.entry.js +2 -2
- package/dist/cjs/road-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/road-spinner.cjs.entry.js +2 -2
- package/dist/cjs/road-stepper.cjs.entry.js +2 -2
- package/dist/cjs/road-switch.cjs.entry.js +2 -2
- package/dist/cjs/road-tab-bar.cjs.entry.js +2 -2
- package/dist/cjs/road-tab-button.cjs.entry.js +2 -2
- package/dist/cjs/road-tab.cjs.entry.js +2 -2
- package/dist/cjs/road-table.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/road-toast.cjs.entry.js +3 -3
- package/dist/cjs/road-toggle.cjs.entry.js +2 -2
- package/dist/cjs/road-toolbar-title.cjs.entry.js +2 -2
- package/dist/cjs/road-tooltip.cjs.entry.js +2 -2
- 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.js +649 -644
- 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.js +233 -230
- 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/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/social-linkedin-badge.svg +1 -1
- 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/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-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-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} +701 -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 +2 -2
- package/dist/esm/road-autocomplete.entry.js +2 -2
- package/dist/esm/road-avatar.entry.js +2 -2
- package/dist/esm/road-badge_11.entry.js +15 -15
- package/dist/esm/road-banner.entry.js +2 -2
- package/dist/esm/road-card.entry.js +2 -2
- package/dist/esm/road-carousel-item.entry.js +2 -2
- package/dist/esm/road-carousel.entry.js +8 -8
- package/dist/esm/road-checkbox.entry.js +2 -2
- package/dist/esm/road-chip.entry.js +2 -2
- package/dist/esm/road-collapse.entry.js +2 -2
- package/dist/esm/road-counter.entry.js +3 -3
- package/dist/esm/road-dialog.entry.js +2 -2
- package/dist/esm/road-dropdown.entry.js +2 -2
- package/dist/esm/road-duration.entry.js +2 -2
- package/dist/esm/road-flap.entry.js +2 -2
- package/dist/esm/road-img.entry.js +2 -2
- package/dist/esm/road-input-group.entry.js +2 -2
- package/dist/esm/road-input.entry.js +2 -2
- package/dist/esm/road-modal.entry.js +2 -2
- package/dist/esm/road-navbar-item.entry.js +2 -2
- package/dist/esm/road-navbar.entry.js +2 -2
- package/dist/esm/road-plate-number.entry.js +2 -2
- package/dist/esm/road-progress.entry.js +2 -2
- package/dist/esm/road-radio-group.entry.js +2 -2
- package/dist/esm/road-radio.entry.js +2 -2
- package/dist/esm/road-range.entry.js +2 -2
- package/dist/esm/road-rating.entry.js +2 -2
- package/dist/esm/road-select-filter.entry.js +5 -3
- package/dist/esm/road-select.entry.js +2 -2
- package/dist/esm/road-skeleton.entry.js +2 -2
- package/dist/esm/road-spinner.entry.js +2 -2
- package/dist/esm/road-stepper.entry.js +2 -2
- package/dist/esm/road-switch.entry.js +2 -2
- package/dist/esm/road-tab-bar.entry.js +2 -2
- package/dist/esm/road-tab-button.entry.js +2 -2
- package/dist/esm/road-tab.entry.js +2 -2
- package/dist/esm/road-table.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/road-toast.entry.js +3 -3
- package/dist/esm/road-toggle.entry.js +2 -2
- package/dist/esm/road-toolbar-title.entry.js +2 -2
- package/dist/esm/road-tooltip.entry.js +2 -2
- 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/esm-es5/app-ca51f056.js +1 -0
- package/dist/esm-es5/css-shim-88cc621b.js +1 -0
- package/dist/esm-es5/{dom-ba83fb9d.js → dom-665d6011.js} +0 -0
- package/dist/esm-es5/index-a99a5e7b.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/road-accordion.entry.js +1 -1
- package/dist/esm-es5/road-alert.entry.js +1 -1
- package/dist/esm-es5/road-autocomplete.entry.js +1 -1
- package/dist/esm-es5/road-avatar.entry.js +1 -1
- package/dist/esm-es5/road-badge_11.entry.js +1 -1
- package/dist/esm-es5/road-banner.entry.js +1 -1
- package/dist/esm-es5/road-card.entry.js +1 -1
- package/dist/esm-es5/road-carousel-item.entry.js +1 -1
- package/dist/esm-es5/road-carousel.entry.js +1 -1
- package/dist/esm-es5/road-checkbox.entry.js +1 -1
- package/dist/esm-es5/road-chip.entry.js +1 -1
- package/dist/esm-es5/road-collapse.entry.js +1 -1
- package/dist/esm-es5/road-counter.entry.js +1 -1
- package/dist/esm-es5/road-dialog.entry.js +1 -1
- package/dist/esm-es5/road-dropdown.entry.js +1 -1
- package/dist/esm-es5/road-duration.entry.js +1 -1
- package/dist/esm-es5/road-flap.entry.js +1 -1
- package/dist/esm-es5/road-img.entry.js +1 -1
- package/dist/esm-es5/road-input-group.entry.js +1 -1
- package/dist/esm-es5/road-input.entry.js +1 -1
- package/dist/esm-es5/road-modal.entry.js +1 -1
- package/dist/esm-es5/road-navbar-item.entry.js +1 -1
- package/dist/esm-es5/road-navbar.entry.js +1 -1
- package/dist/esm-es5/road-plate-number.entry.js +1 -1
- package/dist/esm-es5/road-progress.entry.js +1 -1
- package/dist/esm-es5/road-radio-group.entry.js +1 -1
- package/dist/esm-es5/road-radio.entry.js +1 -1
- package/dist/esm-es5/road-range.entry.js +1 -1
- package/dist/esm-es5/road-rating.entry.js +1 -1
- package/dist/esm-es5/road-select-filter.entry.js +1 -1
- package/dist/esm-es5/road-select.entry.js +1 -1
- package/dist/esm-es5/road-skeleton.entry.js +1 -1
- package/dist/esm-es5/road-spinner.entry.js +1 -1
- package/dist/esm-es5/road-stepper.entry.js +1 -1
- package/dist/esm-es5/road-switch.entry.js +1 -1
- package/dist/esm-es5/road-tab-bar.entry.js +1 -1
- package/dist/esm-es5/road-tab-button.entry.js +1 -1
- package/dist/esm-es5/road-tab.entry.js +1 -1
- package/dist/esm-es5/road-table.entry.js +1 -1
- package/dist/esm-es5/road-tabs.entry.js +1 -1
- package/dist/esm-es5/road-text.entry.js +1 -1
- package/dist/esm-es5/road-textarea.entry.js +1 -1
- package/dist/esm-es5/road-toast.entry.js +1 -1
- package/dist/esm-es5/road-toggle.entry.js +1 -1
- package/dist/esm-es5/road-toolbar-title.entry.js +1 -1
- package/dist/esm-es5/road-tooltip.entry.js +1 -1
- package/dist/esm-es5/roadtrip.js +1 -1
- package/dist/esm-es5/shadow-css-b18e99d7.js +12 -0
- package/dist/esm-es5/swiper.bundle-6070542b.js +1 -1
- package/dist/esm-es5/utils-0ec32b47.js +1 -0
- package/dist/html.html-data.json +19 -11
- package/dist/icons/icons.svg +1 -1
- package/dist/icons/index.d.ts +66 -0
- package/dist/icons/index.js +144 -78
- package/dist/loader/package.json +1 -0
- package/dist/roadtrip/index.esm.js +1 -1
- package/dist/roadtrip/p-02abddd6.entry.js +1 -0
- package/dist/roadtrip/p-03f20bd5.entry.js +1 -0
- package/dist/roadtrip/p-05ea6c4a.entry.js +1 -0
- package/dist/roadtrip/p-05f7da47.entry.js +1 -0
- package/dist/roadtrip/{p-467f5310.system.entry.js → p-066b2ea8.system.entry.js} +1 -1
- package/dist/roadtrip/{p-22ff574e.entry.js → p-066b7c0c.entry.js} +1 -1
- package/dist/roadtrip/p-06a36703.system.entry.js +1 -0
- package/dist/roadtrip/p-06aee93b.entry.js +1 -0
- package/dist/roadtrip/{p-ad1136ff.system.entry.js → p-1275744e.system.entry.js} +1 -1
- package/dist/roadtrip/p-132c7432.entry.js +1 -0
- package/dist/roadtrip/p-156e8176.entry.js +1 -0
- package/dist/roadtrip/{p-40fc1632.system.entry.js → p-15d069b6.system.entry.js} +1 -1
- package/dist/roadtrip/p-1a6ecd11.entry.js +1 -0
- package/dist/roadtrip/p-1cef6c4b.entry.js +1 -0
- package/dist/roadtrip/p-1d9bada8.entry.js +1 -0
- package/dist/roadtrip/p-1dbd9764.system.js +1 -0
- package/dist/roadtrip/{p-e502dd83.system.entry.js → p-1e102214.system.entry.js} +1 -1
- package/dist/roadtrip/{p-dfa3c709.system.entry.js → p-20d63257.system.entry.js} +1 -1
- package/dist/roadtrip/p-2322b732.entry.js +1 -0
- package/dist/roadtrip/p-24f07baf.entry.js +1 -0
- package/dist/roadtrip/p-264b3fae.entry.js +1 -0
- package/dist/roadtrip/p-2916b2f9.entry.js +1 -0
- package/dist/roadtrip/p-2bd6cb84.system.js +1 -0
- package/dist/roadtrip/{p-c1088217.system.entry.js → p-2d9fe422.system.entry.js} +1 -1
- package/dist/roadtrip/p-2f07b733.entry.js +1 -0
- package/dist/roadtrip/{p-83926ef1.system.entry.js → p-30db6549.system.entry.js} +1 -1
- package/dist/roadtrip/{p-72d2813d.system.entry.js → p-3324945a.system.entry.js} +1 -1
- package/dist/roadtrip/p-34e74cd7.entry.js +1 -0
- package/dist/roadtrip/{p-e2a9123a.system.entry.js → p-35d79a01.system.entry.js} +1 -1
- package/dist/roadtrip/p-3851a850.entry.js +1 -0
- package/dist/roadtrip/p-39860f00.system.entry.js +1 -0
- package/dist/roadtrip/p-3e9c0e68.entry.js +1 -0
- package/dist/roadtrip/{p-6a123e72.system.entry.js → p-40306741.system.entry.js} +1 -1
- package/dist/roadtrip/{p-d18db10c.system.entry.js → p-452b23cc.system.entry.js} +1 -1
- package/dist/roadtrip/p-4573f1af.entry.js +1 -0
- package/dist/roadtrip/p-48768f1f.entry.js +1 -0
- package/dist/roadtrip/p-4b12d113.js +1 -0
- package/dist/roadtrip/{p-05961c88.system.js → p-4bf16b71.system.js} +1 -1
- package/dist/roadtrip/p-4fa992b0.entry.js +1 -0
- package/dist/roadtrip/p-5390ac80.system.entry.js +1 -0
- package/dist/roadtrip/{p-c9409f80.system.entry.js → p-586f5022.system.entry.js} +1 -1
- package/dist/roadtrip/{p-3ee7ff2a.system.entry.js → p-59e76c1d.system.entry.js} +1 -1
- package/dist/roadtrip/{p-604a0940.system.entry.js → p-5b90334d.system.entry.js} +1 -1
- package/dist/roadtrip/p-5c07717b.entry.js +1 -0
- package/dist/roadtrip/{p-9aaa4745.system.entry.js → p-5d438dd2.system.entry.js} +1 -1
- package/dist/roadtrip/{p-701cba5a.system.entry.js → p-5dd55f41.system.entry.js} +1 -1
- package/dist/roadtrip/p-5ead79b3.entry.js +1 -0
- package/dist/roadtrip/p-5f40570b.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-a7565a49.system.entry.js → p-66256bbc.system.entry.js} +1 -1
- package/dist/roadtrip/{p-7154119b.system.js → p-6a050b2c.system.js} +0 -0
- package/dist/roadtrip/p-6e530e30.system.js +1 -0
- package/dist/roadtrip/p-6ed82065.entry.js +1 -0
- package/dist/roadtrip/p-70ef3992.entry.js +1 -0
- package/dist/roadtrip/{p-c53458d4.system.entry.js → p-71d7e859.system.entry.js} +1 -1
- package/dist/roadtrip/p-838c5326.system.entry.js +1 -0
- package/dist/roadtrip/p-8459879b.system.js +1 -1
- package/dist/roadtrip/p-88092d06.system.js +13 -0
- package/dist/roadtrip/p-897d6b9a.entry.js +1 -0
- package/dist/roadtrip/{p-ee1e6fe7.system.entry.js → p-899ee828.system.entry.js} +1 -1
- package/dist/roadtrip/p-8aa8be00.entry.js +1 -0
- package/dist/roadtrip/{p-731c9b95.system.entry.js → p-8ba830ff.system.entry.js} +1 -1
- package/dist/roadtrip/p-8e983042.entry.js +1 -0
- package/dist/roadtrip/p-8eef5119.entry.js +1 -0
- package/dist/roadtrip/p-90eac9fd.entry.js +1 -0
- package/dist/roadtrip/{p-85c918f6.system.entry.js → p-92ad461a.system.entry.js} +1 -1
- package/dist/roadtrip/{p-f95a5e84.system.entry.js → p-9738887f.system.entry.js} +1 -1
- package/dist/roadtrip/p-99716cdc.entry.js +1 -0
- package/dist/roadtrip/{p-b591a3f7.system.entry.js → p-a6c837c2.system.entry.js} +1 -1
- package/dist/roadtrip/{p-d42af23b.system.entry.js → p-a834d9c6.system.entry.js} +1 -1
- package/dist/roadtrip/{p-f00aa43f.system.entry.js → p-a99d8e34.system.entry.js} +1 -1
- package/dist/roadtrip/{p-785ade45.system.entry.js → p-ae2b17ba.system.entry.js} +1 -1
- package/dist/roadtrip/p-af28a565.entry.js +1 -0
- package/dist/roadtrip/{p-5d6d5348.system.entry.js → p-afec7bc1.system.entry.js} +1 -1
- package/dist/roadtrip/{p-12293413.system.entry.js → p-b122f1dd.system.entry.js} +1 -1
- package/dist/roadtrip/p-b2f4c9ea.entry.js +1 -0
- package/dist/roadtrip/{p-57e46bbc.system.entry.js → p-b306eeef.system.entry.js} +1 -1
- package/dist/roadtrip/p-b5c57d5e.entry.js +1 -0
- package/dist/roadtrip/{p-76bede83.system.entry.js → p-bbbbe085.system.entry.js} +1 -1
- package/dist/roadtrip/p-c094e6d0.entry.js +1 -0
- package/dist/roadtrip/{p-d492d058.entry.js → p-c0f54b95.entry.js} +1 -1
- package/dist/roadtrip/p-c2d86689.system.entry.js +1 -0
- package/dist/roadtrip/{p-7cb7d25b.system.entry.js → p-c45e619f.system.entry.js} +1 -1
- package/dist/roadtrip/p-c468b520.entry.js +1 -0
- package/dist/roadtrip/p-cdc666bc.js +2 -0
- package/dist/roadtrip/p-d02c02d5.system.entry.js +1 -0
- package/dist/roadtrip/{p-864ed7f9.system.entry.js → p-d03d2e7e.system.entry.js} +1 -1
- package/dist/roadtrip/{p-7f2cba6f.system.entry.js → p-d3890e7d.system.entry.js} +1 -1
- package/dist/roadtrip/p-d3d3be26.entry.js +1 -0
- package/dist/roadtrip/{p-9337ed51.system.entry.js → p-d847f67d.system.entry.js} +1 -1
- package/dist/roadtrip/p-d8769566.system.entry.js +1 -0
- package/dist/roadtrip/p-db5431c3.system.js +2 -0
- package/dist/roadtrip/p-e2652fee.system.js +1 -0
- package/dist/roadtrip/p-e64fe690.js +1 -0
- package/dist/roadtrip/p-e6a69601.entry.js +1 -0
- package/dist/roadtrip/{p-13c18cec.system.entry.js → p-e7438d82.system.entry.js} +1 -1
- package/dist/roadtrip/p-e99ab4dd.system.entry.js +1 -0
- package/dist/roadtrip/p-e9e37e9d.entry.js +1 -0
- package/dist/roadtrip/p-ea321cc5.entry.js +1 -0
- package/dist/roadtrip/p-eadf5c3c.system.entry.js +1 -0
- package/dist/roadtrip/{p-bd6463ab.system.entry.js → p-eb9fd742.system.entry.js} +1 -1
- package/dist/roadtrip/p-f0bfa22f.entry.js +1 -0
- package/dist/roadtrip/{p-93dab753.js → p-f26ed61d.js} +1 -1
- package/dist/roadtrip/p-fa538a78.entry.js +1 -0
- package/dist/roadtrip/{p-cc00e9dc.system.entry.js → p-fda23e85.system.entry.js} +1 -1
- package/dist/roadtrip/p-feab34cb.entry.js +1 -0
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/roadtrip/roadtrip.js +3 -2
- 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/people-disability-wheelchair-color.svg +1 -1
- package/dist/roadtrip/svg/people-disability-wheelchair-solid.svg +1 -1
- package/dist/roadtrip/svg/social-linkedin-badge.svg +1 -1
- 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/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-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-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.d.ts +197 -69
- package/dist/types/stencil-public-runtime.d.ts +15 -4
- package/icons/icons.svg +1 -1
- package/icons/index.d.ts +66 -0
- package/icons/index.js +144 -78
- package/package.json +6 -6
- package/dist/cjs/css-shim-9a05bb86.js +0 -6
- package/dist/esm/css-shim-17041dc7.js +0 -4
- package/dist/esm-es5/app-a32f9d74.js +0 -1
- package/dist/esm-es5/css-shim-17041dc7.js +0 -1
- package/dist/esm-es5/index-0c8a0e04.js +0 -1
- package/dist/esm-es5/shadow-css-bfd5796e.js +0 -12
- package/dist/esm-es5/utils-39de47f7.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-1347a27e.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-41ca895a.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-5a426113.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-6117d969.system.entry.js +0 -1
- package/dist/roadtrip/p-6195c41f.system.entry.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-7118c44a.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-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-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-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-a82fd96a.entry.js +0 -1
- package/dist/roadtrip/p-a9538932.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-c5004910.entry.js +0 -1
- package/dist/roadtrip/p-cab68ba7.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-e18fa251.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-efa19d38.system.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-fc63310b.entry.js +0 -1
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
const NAMESPACE = 'roadtrip';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Virtual DOM patching algorithm based on Snabbdom by
|
|
5
|
+
* Simon Friis Vindum (@paldepind)
|
|
6
|
+
* Licensed under the MIT License
|
|
7
|
+
* https://github.com/snabbdom/snabbdom/blob/master/LICENSE
|
|
8
|
+
*
|
|
9
|
+
* Modified for Stencil's renderer and slot projection
|
|
10
|
+
*/
|
|
3
11
|
let scopeId;
|
|
4
12
|
let contentRef;
|
|
5
13
|
let hostTagName;
|
|
@@ -8,68 +16,10 @@ let checkSlotFallbackVisibility = false;
|
|
|
8
16
|
let checkSlotRelocate = false;
|
|
9
17
|
let isSvgMode = false;
|
|
10
18
|
let queuePending = false;
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const plt = {
|
|
15
|
-
$flags$: 0,
|
|
16
|
-
$resourcesUrl$: '',
|
|
17
|
-
jmp: (h) => h(),
|
|
18
|
-
raf: (h) => requestAnimationFrame(h),
|
|
19
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
20
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
21
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
22
|
-
};
|
|
23
|
-
const supportsShadow = /*@__PURE__*/ (() => (doc.head.attachShadow + '').indexOf('[native') > -1)()
|
|
24
|
-
;
|
|
25
|
-
const promiseResolve = (v) => Promise.resolve(v);
|
|
26
|
-
const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
27
|
-
try {
|
|
28
|
-
new CSSStyleSheet();
|
|
29
|
-
return typeof new CSSStyleSheet().replace === 'function';
|
|
30
|
-
}
|
|
31
|
-
catch (e) { }
|
|
32
|
-
return false;
|
|
33
|
-
})()
|
|
34
|
-
;
|
|
35
|
-
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
36
|
-
if (listeners) {
|
|
37
|
-
listeners.map(([flags, name, method]) => {
|
|
38
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
39
|
-
const handler = hostListenerProxy(hostRef, method);
|
|
40
|
-
const opts = hostListenerOpts(flags);
|
|
41
|
-
plt.ael(target, name, handler, opts);
|
|
42
|
-
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
47
|
-
try {
|
|
48
|
-
{
|
|
49
|
-
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
50
|
-
// instance is ready, let's call it's member method for this event
|
|
51
|
-
hostRef.$lazyInstance$[methodName](ev);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
catch (e) {
|
|
59
|
-
consoleError(e);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
const getHostListenerTarget = (elm, flags) => {
|
|
63
|
-
if (flags & 4 /* TargetDocument */)
|
|
64
|
-
return doc;
|
|
65
|
-
if (flags & 8 /* TargetWindow */)
|
|
66
|
-
return win;
|
|
67
|
-
return elm;
|
|
19
|
+
const getAssetPath = (path) => {
|
|
20
|
+
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
21
|
+
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
68
22
|
};
|
|
69
|
-
// prettier-ignore
|
|
70
|
-
const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
71
|
-
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
72
|
-
const XLINK_NS = 'http://www.w3.org/1999/xlink';
|
|
73
23
|
const createTime = (fnName, tagName = '') => {
|
|
74
24
|
{
|
|
75
25
|
return () => {
|
|
@@ -84,89 +34,8 @@ const uniqueTime = (key, measureText) => {
|
|
|
84
34
|
};
|
|
85
35
|
}
|
|
86
36
|
};
|
|
87
|
-
const
|
|
88
|
-
const
|
|
89
|
-
let style = styles.get(scopeId);
|
|
90
|
-
if (supportsConstructibleStylesheets && allowCS) {
|
|
91
|
-
style = (style || new CSSStyleSheet());
|
|
92
|
-
style.replace(cssText);
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
style = cssText;
|
|
96
|
-
}
|
|
97
|
-
styles.set(scopeId, style);
|
|
98
|
-
};
|
|
99
|
-
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
100
|
-
let scopeId = getScopeId(cmpMeta, mode);
|
|
101
|
-
let style = styles.get(scopeId);
|
|
102
|
-
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
103
|
-
// so the fallback is to always use the document for the root node in those cases
|
|
104
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
105
|
-
if (style) {
|
|
106
|
-
if (typeof style === 'string') {
|
|
107
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
108
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
109
|
-
let styleElm;
|
|
110
|
-
if (!appliedStyles) {
|
|
111
|
-
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
|
112
|
-
}
|
|
113
|
-
if (!appliedStyles.has(scopeId)) {
|
|
114
|
-
{
|
|
115
|
-
if (plt.$cssShim$) {
|
|
116
|
-
styleElm = plt.$cssShim$.createHostStyle(hostElm, scopeId, style, !!(cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */));
|
|
117
|
-
const newScopeId = styleElm['s-sc'];
|
|
118
|
-
if (newScopeId) {
|
|
119
|
-
scopeId = newScopeId;
|
|
120
|
-
// we don't want to add this styleID to the appliedStyles Set
|
|
121
|
-
// since the cssVarShim might need to apply several different
|
|
122
|
-
// stylesheets for the same component
|
|
123
|
-
appliedStyles = null;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
styleElm = doc.createElement('style');
|
|
128
|
-
styleElm.innerHTML = style;
|
|
129
|
-
}
|
|
130
|
-
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
131
|
-
}
|
|
132
|
-
if (appliedStyles) {
|
|
133
|
-
appliedStyles.add(scopeId);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
138
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
return scopeId;
|
|
142
|
-
};
|
|
143
|
-
const attachStyles = (hostRef) => {
|
|
144
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
145
|
-
const elm = hostRef.$hostElement$;
|
|
146
|
-
const flags = cmpMeta.$flags$;
|
|
147
|
-
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
148
|
-
const scopeId = addStyle(supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta, hostRef.$modeName$, elm);
|
|
149
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
150
|
-
// only required when we're NOT using native shadow dom (slot)
|
|
151
|
-
// or this browser doesn't support native shadow dom
|
|
152
|
-
// and this host element was NOT created with SSR
|
|
153
|
-
// let's pick out the inner content for slot projection
|
|
154
|
-
// create a node to represent where the original
|
|
155
|
-
// content was first placed, which is useful later on
|
|
156
|
-
// DOM WRITE!!
|
|
157
|
-
elm['s-sc'] = scopeId;
|
|
158
|
-
elm.classList.add(scopeId + '-h');
|
|
159
|
-
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
160
|
-
elm.classList.add(scopeId + '-s');
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
endAttachStyles();
|
|
164
|
-
};
|
|
165
|
-
const getScopeId = (cmp, mode) => 'sc-' + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + '-' + mode : cmp.$tagName$);
|
|
166
|
-
// Private
|
|
167
|
-
const computeMode = (elm) => modeResolutionChain.map((h) => h(elm)).find((m) => !!m);
|
|
168
|
-
// Public
|
|
169
|
-
const setMode = (handler) => modeResolutionChain.push(handler);
|
|
37
|
+
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
38
|
+
const XLINK_NS = 'http://www.w3.org/1999/xlink';
|
|
170
39
|
/**
|
|
171
40
|
* Default style mode id
|
|
172
41
|
*/
|
|
@@ -203,7 +72,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
203
72
|
let slotName = null;
|
|
204
73
|
let simple = false;
|
|
205
74
|
let lastSimple = false;
|
|
206
|
-
|
|
75
|
+
const vNodeChildren = [];
|
|
207
76
|
const walk = (c) => {
|
|
208
77
|
for (let i = 0; i < c.length; i++) {
|
|
209
78
|
child = c[i];
|
|
@@ -315,6 +184,167 @@ const convertToPrivate = (node) => {
|
|
|
315
184
|
vnode.$name$ = node.vname;
|
|
316
185
|
return vnode;
|
|
317
186
|
};
|
|
187
|
+
// Private
|
|
188
|
+
const computeMode = (elm) => modeResolutionChain.map((h) => h(elm)).find((m) => !!m);
|
|
189
|
+
// Public
|
|
190
|
+
const setMode = (handler) => modeResolutionChain.push(handler);
|
|
191
|
+
/**
|
|
192
|
+
* Parse a new property value for a given property type.
|
|
193
|
+
*
|
|
194
|
+
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
195
|
+
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
196
|
+
* 1. `any`, the type given to `propValue` in the function signature
|
|
197
|
+
* 2. the type stored from `propType`.
|
|
198
|
+
*
|
|
199
|
+
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
200
|
+
*
|
|
201
|
+
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
202
|
+
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
203
|
+
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
204
|
+
* ```tsx
|
|
205
|
+
* <my-cmp prop-val={0}></my-cmp>
|
|
206
|
+
* ```
|
|
207
|
+
*
|
|
208
|
+
* HTML prop values on the other hand, will always a string
|
|
209
|
+
*
|
|
210
|
+
* @param propValue the new value to coerce to some type
|
|
211
|
+
* @param propType the type of the prop, expressed as a binary number
|
|
212
|
+
* @returns the parsed/coerced value
|
|
213
|
+
*/
|
|
214
|
+
const parsePropertyValue = (propValue, propType) => {
|
|
215
|
+
// ensure this value is of the correct prop type
|
|
216
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
217
|
+
if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
|
|
218
|
+
// per the HTML spec, any string value means it is a boolean true value
|
|
219
|
+
// but we'll cheat here and say that the string "false" is the boolean false
|
|
220
|
+
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
221
|
+
}
|
|
222
|
+
if (propType & 2 /* MEMBER_FLAGS.Number */) {
|
|
223
|
+
// force it to be a number
|
|
224
|
+
return parseFloat(propValue);
|
|
225
|
+
}
|
|
226
|
+
if (propType & 1 /* MEMBER_FLAGS.String */) {
|
|
227
|
+
// could have been passed as a number or boolean
|
|
228
|
+
// but we still want it as a string
|
|
229
|
+
return String(propValue);
|
|
230
|
+
}
|
|
231
|
+
// redundant return here for better minification
|
|
232
|
+
return propValue;
|
|
233
|
+
}
|
|
234
|
+
// not sure exactly what type we want
|
|
235
|
+
// so no need to change to a different type
|
|
236
|
+
return propValue;
|
|
237
|
+
};
|
|
238
|
+
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
239
|
+
const createEvent = (ref, name, flags) => {
|
|
240
|
+
const elm = getElement(ref);
|
|
241
|
+
return {
|
|
242
|
+
emit: (detail) => {
|
|
243
|
+
return emitEvent(elm, name, {
|
|
244
|
+
bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
|
|
245
|
+
composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
|
|
246
|
+
cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
|
|
247
|
+
detail,
|
|
248
|
+
});
|
|
249
|
+
},
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Helper function to create & dispatch a custom Event on a provided target
|
|
254
|
+
* @param elm the target of the Event
|
|
255
|
+
* @param name the name to give the custom Event
|
|
256
|
+
* @param opts options for configuring a custom Event
|
|
257
|
+
* @returns the custom Event
|
|
258
|
+
*/
|
|
259
|
+
const emitEvent = (elm, name, opts) => {
|
|
260
|
+
const ev = plt.ce(name, opts);
|
|
261
|
+
elm.dispatchEvent(ev);
|
|
262
|
+
return ev;
|
|
263
|
+
};
|
|
264
|
+
const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
|
|
265
|
+
const registerStyle = (scopeId, cssText, allowCS) => {
|
|
266
|
+
let style = styles.get(scopeId);
|
|
267
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
268
|
+
style = (style || new CSSStyleSheet());
|
|
269
|
+
if (typeof style === 'string') {
|
|
270
|
+
style = cssText;
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
style.replaceSync(cssText);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
else {
|
|
277
|
+
style = cssText;
|
|
278
|
+
}
|
|
279
|
+
styles.set(scopeId, style);
|
|
280
|
+
};
|
|
281
|
+
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
282
|
+
let scopeId = getScopeId(cmpMeta, mode);
|
|
283
|
+
const style = styles.get(scopeId);
|
|
284
|
+
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
285
|
+
// so the fallback is to always use the document for the root node in those cases
|
|
286
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
|
|
287
|
+
if (style) {
|
|
288
|
+
if (typeof style === 'string') {
|
|
289
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
290
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
291
|
+
let styleElm;
|
|
292
|
+
if (!appliedStyles) {
|
|
293
|
+
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
|
294
|
+
}
|
|
295
|
+
if (!appliedStyles.has(scopeId)) {
|
|
296
|
+
{
|
|
297
|
+
if (plt.$cssShim$) {
|
|
298
|
+
styleElm = plt.$cssShim$.createHostStyle(hostElm, scopeId, style, !!(cmpMeta.$flags$ & 10 /* CMP_FLAGS.needsScopedEncapsulation */));
|
|
299
|
+
const newScopeId = styleElm['s-sc'];
|
|
300
|
+
if (newScopeId) {
|
|
301
|
+
scopeId = newScopeId;
|
|
302
|
+
// we don't want to add this styleID to the appliedStyles Set
|
|
303
|
+
// since the cssVarShim might need to apply several different
|
|
304
|
+
// stylesheets for the same component
|
|
305
|
+
appliedStyles = null;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
else {
|
|
309
|
+
styleElm = doc.createElement('style');
|
|
310
|
+
styleElm.innerHTML = style;
|
|
311
|
+
}
|
|
312
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
313
|
+
}
|
|
314
|
+
if (appliedStyles) {
|
|
315
|
+
appliedStyles.add(scopeId);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
320
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
return scopeId;
|
|
324
|
+
};
|
|
325
|
+
const attachStyles = (hostRef) => {
|
|
326
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
327
|
+
const elm = hostRef.$hostElement$;
|
|
328
|
+
const flags = cmpMeta.$flags$;
|
|
329
|
+
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
330
|
+
const scopeId = addStyle(supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta, hostRef.$modeName$, elm);
|
|
331
|
+
if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
|
|
332
|
+
// only required when we're NOT using native shadow dom (slot)
|
|
333
|
+
// or this browser doesn't support native shadow dom
|
|
334
|
+
// and this host element was NOT created with SSR
|
|
335
|
+
// let's pick out the inner content for slot projection
|
|
336
|
+
// create a node to represent where the original
|
|
337
|
+
// content was first placed, which is useful later on
|
|
338
|
+
// DOM WRITE!!
|
|
339
|
+
elm['s-sc'] = scopeId;
|
|
340
|
+
elm.classList.add(scopeId + '-h');
|
|
341
|
+
if (flags & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
|
|
342
|
+
elm.classList.add(scopeId + '-s');
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
endAttachStyles();
|
|
346
|
+
};
|
|
347
|
+
const getScopeId = (cmp, mode) => 'sc-' + (mode && cmp.$flags$ & 32 /* CMP_FLAGS.hasMode */ ? cmp.$tagName$ + '-' + mode : cmp.$tagName$);
|
|
318
348
|
/**
|
|
319
349
|
* Production setAccessor() function based on Preact by
|
|
320
350
|
* Jason Miller (@developit)
|
|
@@ -412,7 +442,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
412
442
|
if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
|
|
413
443
|
try {
|
|
414
444
|
if (!elm.tagName.includes('-')) {
|
|
415
|
-
|
|
445
|
+
const n = newValue == null ? '' : newValue;
|
|
416
446
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
417
447
|
if (memberName === 'list') {
|
|
418
448
|
isProp = false;
|
|
@@ -451,7 +481,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
451
481
|
}
|
|
452
482
|
}
|
|
453
483
|
}
|
|
454
|
-
else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
484
|
+
else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
|
|
455
485
|
newValue = newValue === true ? '' : newValue;
|
|
456
486
|
if (xlink) {
|
|
457
487
|
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
@@ -469,7 +499,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
469
499
|
// if the element passed in is a shadow root, which is a document fragment
|
|
470
500
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
471
501
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
472
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
502
|
+
const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
|
|
473
503
|
? newVnode.$elm$.host
|
|
474
504
|
: newVnode.$elm$;
|
|
475
505
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
@@ -487,9 +517,19 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
487
517
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
|
|
488
518
|
}
|
|
489
519
|
};
|
|
520
|
+
/**
|
|
521
|
+
* Create a DOM Node corresponding to one of the children of a given VNode.
|
|
522
|
+
*
|
|
523
|
+
* @param oldParentVNode the parent VNode from the previous render
|
|
524
|
+
* @param newParentVNode the parent VNode from the current render
|
|
525
|
+
* @param childIndex the index of the VNode, in the _new_ parent node's
|
|
526
|
+
* children, for which we will create a new DOM node
|
|
527
|
+
* @param parentElm the parent DOM node which our new node will be a child of
|
|
528
|
+
* @returns the newly created node
|
|
529
|
+
*/
|
|
490
530
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
491
531
|
// tslint:disable-next-line: prefer-const
|
|
492
|
-
|
|
532
|
+
const newVNode = newParentVNode.$children$[childIndex];
|
|
493
533
|
let i = 0;
|
|
494
534
|
let elm;
|
|
495
535
|
let childNode;
|
|
@@ -504,16 +544,16 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
504
544
|
}
|
|
505
545
|
newVNode.$flags$ |= newVNode.$children$
|
|
506
546
|
? // slot element has fallback content
|
|
507
|
-
2 /* isSlotFallback */
|
|
547
|
+
2 /* VNODE_FLAGS.isSlotFallback */
|
|
508
548
|
: // slot element does not have fallback content
|
|
509
|
-
1 /* isSlotReference */;
|
|
549
|
+
1 /* VNODE_FLAGS.isSlotReference */;
|
|
510
550
|
}
|
|
511
551
|
}
|
|
512
552
|
if (newVNode.$text$ !== null) {
|
|
513
553
|
// create text node
|
|
514
554
|
elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
|
|
515
555
|
}
|
|
516
|
-
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
556
|
+
else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
|
|
517
557
|
// create a slot reference node
|
|
518
558
|
elm = newVNode.$elm$ =
|
|
519
559
|
doc.createTextNode('');
|
|
@@ -523,7 +563,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
523
563
|
isSvgMode = newVNode.$tag$ === 'svg';
|
|
524
564
|
}
|
|
525
565
|
// create element
|
|
526
|
-
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
566
|
+
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
|
|
527
567
|
? 'slot-fb'
|
|
528
568
|
: newVNode.$tag$)
|
|
529
569
|
);
|
|
@@ -563,7 +603,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
563
603
|
}
|
|
564
604
|
{
|
|
565
605
|
elm['s-hn'] = hostTagName;
|
|
566
|
-
if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
606
|
+
if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
|
|
567
607
|
// remember the content reference comment
|
|
568
608
|
elm['s-sr'] = true;
|
|
569
609
|
// remember the content reference comment
|
|
@@ -582,7 +622,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
582
622
|
return elm;
|
|
583
623
|
};
|
|
584
624
|
const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
585
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
625
|
+
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
586
626
|
const oldSlotChildNodes = parentElm.childNodes;
|
|
587
627
|
for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
|
|
588
628
|
const childNode = oldSlotChildNodes[i];
|
|
@@ -603,7 +643,7 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
603
643
|
putBackInOriginalLocation(childNode, recursive);
|
|
604
644
|
}
|
|
605
645
|
}
|
|
606
|
-
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
646
|
+
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
607
647
|
};
|
|
608
648
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
609
649
|
let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
|
|
@@ -645,6 +685,74 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
645
685
|
}
|
|
646
686
|
}
|
|
647
687
|
};
|
|
688
|
+
/**
|
|
689
|
+
* Reconcile the children of a new VNode with the children of an old VNode by
|
|
690
|
+
* traversing the two collections of children, identifying nodes that are
|
|
691
|
+
* conserved or changed, calling out to `patch` to make any necessary
|
|
692
|
+
* updates to the DOM, and rearranging DOM nodes as needed.
|
|
693
|
+
*
|
|
694
|
+
* The algorithm for reconciling children works by analyzing two 'windows' onto
|
|
695
|
+
* the two arrays of children (`oldCh` and `newCh`). We keep track of the
|
|
696
|
+
* 'windows' by storing start and end indices and references to the
|
|
697
|
+
* corresponding array entries. Initially the two 'windows' are basically equal
|
|
698
|
+
* to the entire array, but we progressively narrow the windows until there are
|
|
699
|
+
* no children left to update by doing the following:
|
|
700
|
+
*
|
|
701
|
+
* 1. Skip any `null` entries at the beginning or end of the two arrays, so
|
|
702
|
+
* that if we have an initial array like the following we'll end up dealing
|
|
703
|
+
* only with a window bounded by the highlighted elements:
|
|
704
|
+
*
|
|
705
|
+
* [null, null, VNode1 , ... , VNode2, null, null]
|
|
706
|
+
* ^^^^^^ ^^^^^^
|
|
707
|
+
*
|
|
708
|
+
* 2. Check to see if the elements at the head and tail positions are equal
|
|
709
|
+
* across the windows. This will basically detect elements which haven't
|
|
710
|
+
* been added, removed, or changed position, i.e. if you had the following
|
|
711
|
+
* VNode elements (represented as HTML):
|
|
712
|
+
*
|
|
713
|
+
* oldVNode: `<div><p><span>HEY</span></p></div>`
|
|
714
|
+
* newVNode: `<div><p><span>THERE</span></p></div>`
|
|
715
|
+
*
|
|
716
|
+
* Then when comparing the children of the `<div>` tag we check the equality
|
|
717
|
+
* of the VNodes corresponding to the `<p>` tags and, since they are the
|
|
718
|
+
* same tag in the same position, we'd be able to avoid completely
|
|
719
|
+
* re-rendering the subtree under them with a new DOM element and would just
|
|
720
|
+
* call out to `patch` to handle reconciling their children and so on.
|
|
721
|
+
*
|
|
722
|
+
* 3. Check, for both windows, to see if the element at the beginning of the
|
|
723
|
+
* window corresponds to the element at the end of the other window. This is
|
|
724
|
+
* a heuristic which will let us identify _some_ situations in which
|
|
725
|
+
* elements have changed position, for instance it _should_ detect that the
|
|
726
|
+
* children nodes themselves have not changed but merely moved in the
|
|
727
|
+
* following example:
|
|
728
|
+
*
|
|
729
|
+
* oldVNode: `<div><element-one /><element-two /></div>`
|
|
730
|
+
* newVNode: `<div><element-two /><element-one /></div>`
|
|
731
|
+
*
|
|
732
|
+
* If we find cases like this then we also need to move the concrete DOM
|
|
733
|
+
* elements corresponding to the moved children to write the re-order to the
|
|
734
|
+
* DOM.
|
|
735
|
+
*
|
|
736
|
+
* 4. Finally, if VNodes have the `key` attribute set on them we check for any
|
|
737
|
+
* nodes in the old children which have the same key as the first element in
|
|
738
|
+
* our window on the new children. If we find such a node we handle calling
|
|
739
|
+
* out to `patch`, moving relevant DOM nodes, and so on, in accordance with
|
|
740
|
+
* what we find.
|
|
741
|
+
*
|
|
742
|
+
* Finally, once we've narrowed our 'windows' to the point that either of them
|
|
743
|
+
* collapse (i.e. they have length 0) we then handle any remaining VNode
|
|
744
|
+
* insertion or deletion that needs to happen to get a DOM state that correctly
|
|
745
|
+
* reflects the new child VNodes. If, for instance, after our window on the old
|
|
746
|
+
* children has collapsed we still have more nodes on the new children that
|
|
747
|
+
* we haven't dealt with yet then we need to add them, or if the new children
|
|
748
|
+
* collapse but we still have unhandled _old_ children then we need to make
|
|
749
|
+
* sure the corresponding DOM nodes are removed.
|
|
750
|
+
*
|
|
751
|
+
* @param parentElm the node into which the parent VNode is rendered
|
|
752
|
+
* @param oldCh the old children of the parent node
|
|
753
|
+
* @param newVNode the new VNode which will replace the parent
|
|
754
|
+
* @param newCh the new children of the parent node
|
|
755
|
+
*/
|
|
648
756
|
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
649
757
|
let oldStartIdx = 0;
|
|
650
758
|
let newStartIdx = 0;
|
|
@@ -660,7 +768,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
660
768
|
let elmToMove;
|
|
661
769
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
662
770
|
if (oldStartVnode == null) {
|
|
663
|
-
//
|
|
771
|
+
// VNode might have been moved left
|
|
664
772
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
665
773
|
}
|
|
666
774
|
else if (oldEndVnode == null) {
|
|
@@ -673,37 +781,100 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
673
781
|
newEndVnode = newCh[--newEndIdx];
|
|
674
782
|
}
|
|
675
783
|
else if (isSameVnode(oldStartVnode, newStartVnode)) {
|
|
784
|
+
// if the start nodes are the same then we should patch the new VNode
|
|
785
|
+
// onto the old one, and increment our `newStartIdx` and `oldStartIdx`
|
|
786
|
+
// indices to reflect that. We don't need to move any DOM Nodes around
|
|
787
|
+
// since things are matched up in order.
|
|
676
788
|
patch(oldStartVnode, newStartVnode);
|
|
677
789
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
678
790
|
newStartVnode = newCh[++newStartIdx];
|
|
679
791
|
}
|
|
680
792
|
else if (isSameVnode(oldEndVnode, newEndVnode)) {
|
|
793
|
+
// likewise, if the end nodes are the same we patch new onto old and
|
|
794
|
+
// decrement our end indices, and also likewise in this case we don't
|
|
795
|
+
// need to move any DOM Nodes.
|
|
681
796
|
patch(oldEndVnode, newEndVnode);
|
|
682
797
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
683
798
|
newEndVnode = newCh[--newEndIdx];
|
|
684
799
|
}
|
|
685
800
|
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
686
|
-
// Vnode moved right
|
|
801
|
+
// case: "Vnode moved right"
|
|
802
|
+
//
|
|
803
|
+
// We've found that the last node in our window on the new children is
|
|
804
|
+
// the same VNode as the _first_ node in our window on the old children
|
|
805
|
+
// we're dealing with now. Visually, this is the layout of these two
|
|
806
|
+
// nodes:
|
|
807
|
+
//
|
|
808
|
+
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
809
|
+
// ^^^^^^^^^^^
|
|
810
|
+
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
811
|
+
// ^^^^^^^^^^^^^
|
|
812
|
+
//
|
|
813
|
+
// In this situation we need to patch `newEndVnode` onto `oldStartVnode`
|
|
814
|
+
// and move the DOM element for `oldStartVnode`.
|
|
687
815
|
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
688
816
|
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
689
817
|
}
|
|
690
818
|
patch(oldStartVnode, newEndVnode);
|
|
819
|
+
// We need to move the element for `oldStartVnode` into a position which
|
|
820
|
+
// will be appropriate for `newEndVnode`. For this we can use
|
|
821
|
+
// `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
|
|
822
|
+
// sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
|
|
823
|
+
// `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
|
|
824
|
+
//
|
|
825
|
+
// <old-start-node />
|
|
826
|
+
// <some-intervening-node />
|
|
827
|
+
// <old-end-node />
|
|
828
|
+
// <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
|
|
829
|
+
// <next-sibling />
|
|
830
|
+
//
|
|
831
|
+
// If instead `oldEndVnode.$elm$` has no sibling then we just want to put
|
|
832
|
+
// the node for `oldStartVnode` at the end of the children of
|
|
833
|
+
// `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
|
|
834
|
+
// aren't any siblings, and passing `null` to `Node.insertBefore` will
|
|
835
|
+
// append it to the children of the parent element.
|
|
691
836
|
parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
692
837
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
693
838
|
newEndVnode = newCh[--newEndIdx];
|
|
694
839
|
}
|
|
695
840
|
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
696
|
-
// Vnode moved left
|
|
841
|
+
// case: "Vnode moved left"
|
|
842
|
+
//
|
|
843
|
+
// We've found that the first node in our window on the new children is
|
|
844
|
+
// the same VNode as the _last_ node in our window on the old children.
|
|
845
|
+
// Visually, this is the layout of these two nodes:
|
|
846
|
+
//
|
|
847
|
+
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
848
|
+
// ^^^^^^^^^^^^^
|
|
849
|
+
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
850
|
+
// ^^^^^^^^^^^
|
|
851
|
+
//
|
|
852
|
+
// In this situation we need to patch `newStartVnode` onto `oldEndVnode`
|
|
853
|
+
// (which will handle updating any changed attributes, reconciling their
|
|
854
|
+
// children etc) but we also need to move the DOM node to which
|
|
855
|
+
// `oldEndVnode` corresponds.
|
|
697
856
|
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
698
857
|
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
699
858
|
}
|
|
700
859
|
patch(oldEndVnode, newStartVnode);
|
|
860
|
+
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
861
|
+
// the same node, so since we're here we know that they are not. Thus we
|
|
862
|
+
// can move the element for `oldEndVnode` _before_ the element for
|
|
863
|
+
// `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
|
|
864
|
+
// future.
|
|
701
865
|
parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
702
866
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
703
867
|
newStartVnode = newCh[++newStartIdx];
|
|
704
868
|
}
|
|
705
869
|
else {
|
|
706
|
-
//
|
|
870
|
+
// Here we do some checks to match up old and new nodes based on the
|
|
871
|
+
// `$key$` attribute, which is set by putting a `key="my-key"` attribute
|
|
872
|
+
// in the JSX for a DOM element in the implementation of a Stencil
|
|
873
|
+
// component.
|
|
874
|
+
//
|
|
875
|
+
// First we check to see if there are any nodes in the array of old
|
|
876
|
+
// children which have the same key as the first node in the new
|
|
877
|
+
// children.
|
|
707
878
|
idxInOld = -1;
|
|
708
879
|
{
|
|
709
880
|
for (i = oldStartIdx; i <= oldEndIdx; ++i) {
|
|
@@ -714,23 +885,32 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
714
885
|
}
|
|
715
886
|
}
|
|
716
887
|
if (idxInOld >= 0) {
|
|
888
|
+
// We found a node in the old children which matches up with the first
|
|
889
|
+
// node in the new children! So let's deal with that
|
|
717
890
|
elmToMove = oldCh[idxInOld];
|
|
718
891
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
892
|
+
// the tag doesn't match so we'll need a new DOM element
|
|
719
893
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
|
|
720
894
|
}
|
|
721
895
|
else {
|
|
722
896
|
patch(elmToMove, newStartVnode);
|
|
897
|
+
// invalidate the matching old node so that we won't try to update it
|
|
898
|
+
// again later on
|
|
723
899
|
oldCh[idxInOld] = undefined;
|
|
724
900
|
node = elmToMove.$elm$;
|
|
725
901
|
}
|
|
726
902
|
newStartVnode = newCh[++newStartIdx];
|
|
727
903
|
}
|
|
728
904
|
else {
|
|
729
|
-
//
|
|
905
|
+
// We either didn't find an element in the old children that matches
|
|
906
|
+
// the key of the first new child OR the build is not using `key`
|
|
907
|
+
// attributes at all. In either case we need to create a new element
|
|
908
|
+
// for the new node.
|
|
730
909
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
|
|
731
910
|
newStartVnode = newCh[++newStartIdx];
|
|
732
911
|
}
|
|
733
912
|
if (node) {
|
|
913
|
+
// if we created a new node then handle inserting it to the DOM
|
|
734
914
|
{
|
|
735
915
|
parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
|
|
736
916
|
}
|
|
@@ -738,21 +918,43 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
738
918
|
}
|
|
739
919
|
}
|
|
740
920
|
if (oldStartIdx > oldEndIdx) {
|
|
921
|
+
// we have some more new nodes to add which don't match up with old nodes
|
|
741
922
|
addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
|
|
742
923
|
}
|
|
743
924
|
else if (newStartIdx > newEndIdx) {
|
|
925
|
+
// there are nodes in the `oldCh` array which no longer correspond to nodes
|
|
926
|
+
// in the new array, so lets remove them (which entails cleaning up the
|
|
927
|
+
// relevant DOM nodes)
|
|
744
928
|
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
745
929
|
}
|
|
746
930
|
};
|
|
747
|
-
|
|
931
|
+
/**
|
|
932
|
+
* Compare two VNodes to determine if they are the same
|
|
933
|
+
*
|
|
934
|
+
* **NB**: This function is an equality _heuristic_ based on the available
|
|
935
|
+
* information set on the two VNodes and can be misleading under certain
|
|
936
|
+
* circumstances. In particular, if the two nodes do not have `key` attrs
|
|
937
|
+
* (available under `$key$` on VNodes) then the function falls back on merely
|
|
938
|
+
* checking that they have the same tag.
|
|
939
|
+
*
|
|
940
|
+
* So, in other words, if `key` attrs are not set on VNodes which may be
|
|
941
|
+
* changing order within a `children` array or something along those lines then
|
|
942
|
+
* we could obtain a false positive and then have to do needless re-rendering.
|
|
943
|
+
*
|
|
944
|
+
* @param leftVNode the first VNode to check
|
|
945
|
+
* @param rightVNode the second VNode to check
|
|
946
|
+
* @returns whether they're equal or not
|
|
947
|
+
*/
|
|
948
|
+
const isSameVnode = (leftVNode, rightVNode) => {
|
|
748
949
|
// compare if two vnode to see if they're "technically" the same
|
|
749
950
|
// need to have the same element tag, and same key to be the same
|
|
750
|
-
if (
|
|
751
|
-
if (
|
|
752
|
-
return
|
|
951
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
952
|
+
if (leftVNode.$tag$ === 'slot') {
|
|
953
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
753
954
|
}
|
|
955
|
+
// this will be set if components in the build have `key` attrs set on them
|
|
754
956
|
{
|
|
755
|
-
return
|
|
957
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
|
756
958
|
}
|
|
757
959
|
}
|
|
758
960
|
return false;
|
|
@@ -765,6 +967,14 @@ const referenceNode = (node) => {
|
|
|
765
967
|
return (node && node['s-ol']) || node;
|
|
766
968
|
};
|
|
767
969
|
const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
|
|
970
|
+
/**
|
|
971
|
+
* Handle reconciling an outdated VNode with a new one which corresponds to
|
|
972
|
+
* it. This function handles flushing updates to the DOM and reconciling the
|
|
973
|
+
* children of the two nodes (if any).
|
|
974
|
+
*
|
|
975
|
+
* @param oldVNode an old VNode whose DOM element and children we want to update
|
|
976
|
+
* @param newVNode a new VNode representing an updated version of the old one
|
|
977
|
+
*/
|
|
768
978
|
const patch = (oldVNode, newVNode) => {
|
|
769
979
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
770
980
|
const oldChildren = oldVNode.$children$;
|
|
@@ -778,7 +988,6 @@ const patch = (oldVNode, newVNode) => {
|
|
|
778
988
|
// only add this to the when the compiler sees we're using an svg somewhere
|
|
779
989
|
isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
|
|
780
990
|
}
|
|
781
|
-
// element node
|
|
782
991
|
{
|
|
783
992
|
if (tag === 'slot')
|
|
784
993
|
;
|
|
@@ -791,6 +1000,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
791
1000
|
}
|
|
792
1001
|
if (oldChildren !== null && newChildren !== null) {
|
|
793
1002
|
// looks like there's child vnodes for both the old and new vnodes
|
|
1003
|
+
// so we need to call `updateChildren` to reconcile them
|
|
794
1004
|
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
795
1005
|
}
|
|
796
1006
|
else if (newChildren !== null) {
|
|
@@ -822,7 +1032,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
822
1032
|
};
|
|
823
1033
|
const updateFallbackSlotVisibility = (elm) => {
|
|
824
1034
|
// tslint:disable-next-line: prefer-const
|
|
825
|
-
|
|
1035
|
+
const childNodes = elm.childNodes;
|
|
826
1036
|
let childNode;
|
|
827
1037
|
let i;
|
|
828
1038
|
let ilen;
|
|
@@ -831,7 +1041,7 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
831
1041
|
let nodeType;
|
|
832
1042
|
for (i = 0, ilen = childNodes.length; i < ilen; i++) {
|
|
833
1043
|
childNode = childNodes[i];
|
|
834
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1044
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
835
1045
|
if (childNode['s-sr']) {
|
|
836
1046
|
// this is a slot fallback node
|
|
837
1047
|
// get the slot name for this slot reference node
|
|
@@ -843,7 +1053,7 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
843
1053
|
nodeType = childNodes[j].nodeType;
|
|
844
1054
|
if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
|
|
845
1055
|
// this sibling node is from a different component OR is a named fallback slot node
|
|
846
|
-
if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
|
|
1056
|
+
if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
|
|
847
1057
|
childNode.hidden = true;
|
|
848
1058
|
break;
|
|
849
1059
|
}
|
|
@@ -852,8 +1062,8 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
852
1062
|
// this is a default fallback slot node
|
|
853
1063
|
// any element or text node (with content)
|
|
854
1064
|
// should hide the default fallback slot node
|
|
855
|
-
if (nodeType === 1 /* ElementNode */ ||
|
|
856
|
-
(nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
|
|
1065
|
+
if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
|
|
1066
|
+
(nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
|
|
857
1067
|
childNode.hidden = true;
|
|
858
1068
|
break;
|
|
859
1069
|
}
|
|
@@ -875,8 +1085,8 @@ const relocateSlotContent = (elm) => {
|
|
|
875
1085
|
let relocateNodeData;
|
|
876
1086
|
let j;
|
|
877
1087
|
let i = 0;
|
|
878
|
-
|
|
879
|
-
|
|
1088
|
+
const childNodes = elm.childNodes;
|
|
1089
|
+
const ilen = childNodes.length;
|
|
880
1090
|
for (; i < ilen; i++) {
|
|
881
1091
|
childNode = childNodes[i];
|
|
882
1092
|
if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
|
|
@@ -931,13 +1141,13 @@ const relocateSlotContent = (elm) => {
|
|
|
931
1141
|
}
|
|
932
1142
|
}
|
|
933
1143
|
}
|
|
934
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1144
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
935
1145
|
relocateSlotContent(childNode);
|
|
936
1146
|
}
|
|
937
1147
|
}
|
|
938
1148
|
};
|
|
939
1149
|
const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
|
|
940
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1150
|
+
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
941
1151
|
if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
|
|
942
1152
|
return true;
|
|
943
1153
|
}
|
|
@@ -968,7 +1178,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
968
1178
|
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
969
1179
|
}
|
|
970
1180
|
rootVnode.$tag$ = null;
|
|
971
|
-
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1181
|
+
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
972
1182
|
hostRef.$vnode$ = rootVnode;
|
|
973
1183
|
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
|
|
974
1184
|
{
|
|
@@ -976,7 +1186,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
976
1186
|
}
|
|
977
1187
|
{
|
|
978
1188
|
contentRef = hostElm['s-cr'];
|
|
979
|
-
useNativeShadowDom = supportsShadow && (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1189
|
+
useNativeShadowDom = supportsShadow && (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
|
|
980
1190
|
// always reset
|
|
981
1191
|
checkSlotFallbackVisibility = false;
|
|
982
1192
|
}
|
|
@@ -985,7 +1195,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
985
1195
|
{
|
|
986
1196
|
// while we're moving nodes around existing nodes, temporarily disable
|
|
987
1197
|
// the disconnectCallback from working
|
|
988
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1198
|
+
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
989
1199
|
if (checkSlotRelocate) {
|
|
990
1200
|
relocateSlotContent(rootVnode.$elm$);
|
|
991
1201
|
let relocateData;
|
|
@@ -1043,7 +1253,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1043
1253
|
}
|
|
1044
1254
|
else {
|
|
1045
1255
|
// this node doesn't have a slot home to go to, so let's hide it
|
|
1046
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1256
|
+
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1047
1257
|
nodeToRelocate.hidden = true;
|
|
1048
1258
|
}
|
|
1049
1259
|
}
|
|
@@ -1054,37 +1264,11 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1054
1264
|
}
|
|
1055
1265
|
// done moving nodes around
|
|
1056
1266
|
// allow the disconnect callback to work again
|
|
1057
|
-
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1267
|
+
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
1058
1268
|
// always reset
|
|
1059
1269
|
relocateNodes.length = 0;
|
|
1060
1270
|
}
|
|
1061
1271
|
};
|
|
1062
|
-
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
1063
|
-
const createEvent = (ref, name, flags) => {
|
|
1064
|
-
const elm = getElement(ref);
|
|
1065
|
-
return {
|
|
1066
|
-
emit: (detail) => {
|
|
1067
|
-
return emitEvent(elm, name, {
|
|
1068
|
-
bubbles: !!(flags & 4 /* Bubbles */),
|
|
1069
|
-
composed: !!(flags & 2 /* Composed */),
|
|
1070
|
-
cancelable: !!(flags & 1 /* Cancellable */),
|
|
1071
|
-
detail,
|
|
1072
|
-
});
|
|
1073
|
-
},
|
|
1074
|
-
};
|
|
1075
|
-
};
|
|
1076
|
-
/**
|
|
1077
|
-
* Helper function to create & dispatch a custom Event on a provided target
|
|
1078
|
-
* @param elm the target of the Event
|
|
1079
|
-
* @param name the name to give the custom Event
|
|
1080
|
-
* @param opts options for configuring a custom Event
|
|
1081
|
-
* @returns the custom Event
|
|
1082
|
-
*/
|
|
1083
|
-
const emitEvent = (elm, name, opts) => {
|
|
1084
|
-
const ev = plt.ce(name, opts);
|
|
1085
|
-
elm.dispatchEvent(ev);
|
|
1086
|
-
return ev;
|
|
1087
|
-
};
|
|
1088
1272
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1089
1273
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
1090
1274
|
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
@@ -1092,10 +1276,10 @@ const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
|
1092
1276
|
};
|
|
1093
1277
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
1094
1278
|
{
|
|
1095
|
-
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
1279
|
+
hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
1096
1280
|
}
|
|
1097
|
-
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1098
|
-
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
1281
|
+
if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
|
|
1282
|
+
hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
|
|
1099
1283
|
return;
|
|
1100
1284
|
}
|
|
1101
1285
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
@@ -1111,7 +1295,7 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1111
1295
|
let promise;
|
|
1112
1296
|
if (isInitialLoad) {
|
|
1113
1297
|
{
|
|
1114
|
-
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1298
|
+
hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
|
|
1115
1299
|
if (hostRef.$queuedListeners$) {
|
|
1116
1300
|
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1117
1301
|
hostRef.$queuedListeners$ = null;
|
|
@@ -1160,7 +1344,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1160
1344
|
}
|
|
1161
1345
|
else {
|
|
1162
1346
|
Promise.all(childrenPromises).then(postUpdate);
|
|
1163
|
-
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
1347
|
+
hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
|
|
1164
1348
|
childrenPromises.length = 0;
|
|
1165
1349
|
}
|
|
1166
1350
|
}
|
|
@@ -1169,10 +1353,10 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
1169
1353
|
try {
|
|
1170
1354
|
instance = instance.render() ;
|
|
1171
1355
|
{
|
|
1172
|
-
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
1356
|
+
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
1173
1357
|
}
|
|
1174
1358
|
{
|
|
1175
|
-
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
1359
|
+
hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
|
|
1176
1360
|
}
|
|
1177
1361
|
{
|
|
1178
1362
|
{
|
|
@@ -1196,8 +1380,8 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1196
1380
|
const endPostUpdate = createTime('postUpdate', tagName);
|
|
1197
1381
|
const instance = hostRef.$lazyInstance$ ;
|
|
1198
1382
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1199
|
-
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1200
|
-
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1383
|
+
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
1384
|
+
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
1201
1385
|
{
|
|
1202
1386
|
// DOM WRITE!
|
|
1203
1387
|
addHydratedFlag(elm);
|
|
@@ -1226,10 +1410,10 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1226
1410
|
hostRef.$onRenderResolve$();
|
|
1227
1411
|
hostRef.$onRenderResolve$ = undefined;
|
|
1228
1412
|
}
|
|
1229
|
-
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
1413
|
+
if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
|
|
1230
1414
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1231
1415
|
}
|
|
1232
|
-
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
1416
|
+
hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
|
|
1233
1417
|
}
|
|
1234
1418
|
// ( •_•)
|
|
1235
1419
|
// ( •_•)>⌐■-■
|
|
@@ -1259,30 +1443,6 @@ const then = (promise, thenFn) => {
|
|
|
1259
1443
|
};
|
|
1260
1444
|
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1261
1445
|
;
|
|
1262
|
-
const parsePropertyValue = (propValue, propType) => {
|
|
1263
|
-
// ensure this value is of the correct prop type
|
|
1264
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
1265
|
-
if (propType & 4 /* Boolean */) {
|
|
1266
|
-
// per the HTML spec, any string value means it is a boolean true value
|
|
1267
|
-
// but we'll cheat here and say that the string "false" is the boolean false
|
|
1268
|
-
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
1269
|
-
}
|
|
1270
|
-
if (propType & 2 /* Number */) {
|
|
1271
|
-
// force it to be a number
|
|
1272
|
-
return parseFloat(propValue);
|
|
1273
|
-
}
|
|
1274
|
-
if (propType & 1 /* String */) {
|
|
1275
|
-
// could have been passed as a number or boolean
|
|
1276
|
-
// but we still want it as a string
|
|
1277
|
-
return String(propValue);
|
|
1278
|
-
}
|
|
1279
|
-
// redundant return here for better minification
|
|
1280
|
-
return propValue;
|
|
1281
|
-
}
|
|
1282
|
-
// not sure exactly what type we want
|
|
1283
|
-
// so no need to change to a different type
|
|
1284
|
-
return propValue;
|
|
1285
|
-
};
|
|
1286
1446
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1287
1447
|
const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1288
1448
|
// check our new property value against our internal value
|
|
@@ -1292,13 +1452,16 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1292
1452
|
const flags = hostRef.$flags$;
|
|
1293
1453
|
const instance = hostRef.$lazyInstance$ ;
|
|
1294
1454
|
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1295
|
-
|
|
1455
|
+
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
|
1456
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1457
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1458
|
+
if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
1296
1459
|
// gadzooks! the property's value has changed!!
|
|
1297
1460
|
// set our new value!
|
|
1298
1461
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1299
1462
|
if (instance) {
|
|
1300
1463
|
// get an array of method names of watch functions to call
|
|
1301
|
-
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1464
|
+
if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
|
|
1302
1465
|
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1303
1466
|
if (watchMethods) {
|
|
1304
1467
|
// this instance is watching for when this property changed
|
|
@@ -1313,7 +1476,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1313
1476
|
});
|
|
1314
1477
|
}
|
|
1315
1478
|
}
|
|
1316
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1479
|
+
if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
|
|
1317
1480
|
// looks like this value actually changed, so we've got work to do!
|
|
1318
1481
|
// but only if we've already rendered, otherwise just chill out
|
|
1319
1482
|
// queue that we need to do an update, but don't worry about queuing
|
|
@@ -1323,6 +1486,16 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1323
1486
|
}
|
|
1324
1487
|
}
|
|
1325
1488
|
};
|
|
1489
|
+
/**
|
|
1490
|
+
* Attach a series of runtime constructs to a compiled Stencil component
|
|
1491
|
+
* constructor, including getters and setters for the `@Prop` and `@State`
|
|
1492
|
+
* decorators, callbacks for when attributes change, and so on.
|
|
1493
|
+
*
|
|
1494
|
+
* @param Cstr the constructor for a component that we need to process
|
|
1495
|
+
* @param cmpMeta metadata collected previously about the component
|
|
1496
|
+
* @param flags a number used to store a series of bit flags
|
|
1497
|
+
* @returns a reference to the same constructor passed in (but now mutated)
|
|
1498
|
+
*/
|
|
1326
1499
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1327
1500
|
if (cmpMeta.$members$) {
|
|
1328
1501
|
if (Cstr.watchers) {
|
|
@@ -1332,8 +1505,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1332
1505
|
const members = Object.entries(cmpMeta.$members$);
|
|
1333
1506
|
const prototype = Cstr.prototype;
|
|
1334
1507
|
members.map(([memberName, [memberFlags]]) => {
|
|
1335
|
-
if ((memberFlags & 31 /* Prop */ ||
|
|
1336
|
-
((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
1508
|
+
if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
|
|
1509
|
+
((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
|
|
1337
1510
|
// proxyComponent - prop
|
|
1338
1511
|
Object.defineProperty(prototype, memberName, {
|
|
1339
1512
|
get() {
|
|
@@ -1348,8 +1521,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1348
1521
|
enumerable: true,
|
|
1349
1522
|
});
|
|
1350
1523
|
}
|
|
1351
|
-
else if (flags & 1 /* isElementConstructor */ &&
|
|
1352
|
-
memberFlags & 64 /* Method */) {
|
|
1524
|
+
else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
|
|
1525
|
+
memberFlags & 64 /* MEMBER_FLAGS.Method */) {
|
|
1353
1526
|
// proxyComponent - method
|
|
1354
1527
|
Object.defineProperty(prototype, memberName, {
|
|
1355
1528
|
value(...args) {
|
|
@@ -1359,7 +1532,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1359
1532
|
});
|
|
1360
1533
|
}
|
|
1361
1534
|
});
|
|
1362
|
-
if ((flags & 1 /* isElementConstructor */)) {
|
|
1535
|
+
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
1363
1536
|
const attrNameToPropName = new Map();
|
|
1364
1537
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1365
1538
|
plt.jmp(() => {
|
|
@@ -1415,11 +1588,11 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1415
1588
|
// create an array of attributes to observe
|
|
1416
1589
|
// and also create a map of html attribute name to js property name
|
|
1417
1590
|
Cstr.observedAttributes = members
|
|
1418
|
-
.filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
|
|
1591
|
+
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
|
|
1419
1592
|
.map(([propName, m]) => {
|
|
1420
1593
|
const attrName = m[1] || propName;
|
|
1421
1594
|
attrNameToPropName.set(attrName, propName);
|
|
1422
|
-
if (m[0] & 512 /* ReflectAttr */) {
|
|
1595
|
+
if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
|
|
1423
1596
|
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1424
1597
|
}
|
|
1425
1598
|
return attrName;
|
|
@@ -1430,10 +1603,10 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1430
1603
|
};
|
|
1431
1604
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1432
1605
|
// initializeComponent
|
|
1433
|
-
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1606
|
+
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1434
1607
|
{
|
|
1435
1608
|
// we haven't initialized this element yet
|
|
1436
|
-
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1609
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1437
1610
|
// lazy loaded components
|
|
1438
1611
|
// request the component's implementation to be
|
|
1439
1612
|
// wired up with the host element
|
|
@@ -1451,7 +1624,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1451
1624
|
{
|
|
1452
1625
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1453
1626
|
}
|
|
1454
|
-
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1627
|
+
proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
|
|
1455
1628
|
Cstr.isProxied = true;
|
|
1456
1629
|
}
|
|
1457
1630
|
const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
|
|
@@ -1459,7 +1632,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1459
1632
|
// but let's keep track of when we start and stop
|
|
1460
1633
|
// so that the getters/setters don't incorrectly step on data
|
|
1461
1634
|
{
|
|
1462
|
-
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1635
|
+
hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1463
1636
|
}
|
|
1464
1637
|
// construct the lazy-loaded component implementation
|
|
1465
1638
|
// passing the hostRef is very important during
|
|
@@ -1472,10 +1645,10 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1472
1645
|
consoleError(e);
|
|
1473
1646
|
}
|
|
1474
1647
|
{
|
|
1475
|
-
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1648
|
+
hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1476
1649
|
}
|
|
1477
1650
|
{
|
|
1478
|
-
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1651
|
+
hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
|
|
1479
1652
|
}
|
|
1480
1653
|
endNewInstance();
|
|
1481
1654
|
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
@@ -1489,10 +1662,10 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1489
1662
|
const scopeId = getScopeId(cmpMeta, hostRef.$modeName$);
|
|
1490
1663
|
if (!styles.has(scopeId)) {
|
|
1491
1664
|
const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
|
|
1492
|
-
if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
|
|
1493
|
-
style = await import('./shadow-css-
|
|
1665
|
+
if (cmpMeta.$flags$ & 8 /* CMP_FLAGS.needsShadowDomShim */) {
|
|
1666
|
+
style = await import('./shadow-css-b18e99d7.js').then((m) => m.scopeCss(style, scopeId, false));
|
|
1494
1667
|
}
|
|
1495
|
-
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1668
|
+
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
|
|
1496
1669
|
endRegisterStyles();
|
|
1497
1670
|
}
|
|
1498
1671
|
}
|
|
@@ -1519,19 +1692,19 @@ const fireConnectedCallback = (instance) => {
|
|
|
1519
1692
|
}
|
|
1520
1693
|
};
|
|
1521
1694
|
const connectedCallback = (elm) => {
|
|
1522
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1695
|
+
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1523
1696
|
const hostRef = getHostRef(elm);
|
|
1524
1697
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1525
1698
|
const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
|
|
1526
|
-
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1699
|
+
if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
|
|
1527
1700
|
// first time this component has connected
|
|
1528
|
-
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1701
|
+
hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
|
|
1529
1702
|
{
|
|
1530
1703
|
// initUpdate
|
|
1531
1704
|
// if the slot polyfill is required we'll need to put some nodes
|
|
1532
1705
|
// in here to act as original content anchors as we move nodes around
|
|
1533
1706
|
// host element has been connected to the DOM
|
|
1534
|
-
if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
|
|
1707
|
+
if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
|
|
1535
1708
|
setContentReference(elm);
|
|
1536
1709
|
}
|
|
1537
1710
|
}
|
|
@@ -1554,7 +1727,7 @@ const connectedCallback = (elm) => {
|
|
|
1554
1727
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1555
1728
|
if (cmpMeta.$members$) {
|
|
1556
1729
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1557
|
-
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1730
|
+
if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1558
1731
|
const value = elm[memberName];
|
|
1559
1732
|
delete elm[memberName];
|
|
1560
1733
|
elm[memberName] = value;
|
|
@@ -1588,7 +1761,7 @@ const setContentReference = (elm) => {
|
|
|
1588
1761
|
elm.insertBefore(contentRefElm, elm.firstChild);
|
|
1589
1762
|
};
|
|
1590
1763
|
const disconnectedCallback = (elm) => {
|
|
1591
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1764
|
+
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1592
1765
|
const hostRef = getHostRef(elm);
|
|
1593
1766
|
const instance = hostRef.$lazyInstance$ ;
|
|
1594
1767
|
{
|
|
@@ -1639,8 +1812,8 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1639
1812
|
{
|
|
1640
1813
|
cmpMeta.$watchers$ = {};
|
|
1641
1814
|
}
|
|
1642
|
-
if (!supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1643
|
-
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
1815
|
+
if (!supportsShadow && cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
|
|
1816
|
+
cmpMeta.$flags$ |= 8 /* CMP_FLAGS.needsShadowDomShim */;
|
|
1644
1817
|
}
|
|
1645
1818
|
const tagName = cmpMeta.$tagName$;
|
|
1646
1819
|
const HostElement = class extends HTMLElement {
|
|
@@ -1650,7 +1823,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1650
1823
|
super(self);
|
|
1651
1824
|
self = this;
|
|
1652
1825
|
registerHost(self, cmpMeta);
|
|
1653
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1826
|
+
if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
|
|
1654
1827
|
// this component is using shadow dom
|
|
1655
1828
|
// and this browser supports shadow dom
|
|
1656
1829
|
// add the read-only property "shadowRoot" to the host element
|
|
@@ -1688,7 +1861,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1688
1861
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1689
1862
|
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1690
1863
|
cmpTags.push(tagName);
|
|
1691
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1864
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
|
|
1692
1865
|
}
|
|
1693
1866
|
});
|
|
1694
1867
|
});
|
|
@@ -1710,11 +1883,43 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1710
1883
|
// Fallback appLoad event
|
|
1711
1884
|
endBootstrap();
|
|
1712
1885
|
};
|
|
1713
|
-
const
|
|
1714
|
-
|
|
1715
|
-
|
|
1886
|
+
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1887
|
+
if (listeners) {
|
|
1888
|
+
listeners.map(([flags, name, method]) => {
|
|
1889
|
+
const target = getHostListenerTarget(elm, flags) ;
|
|
1890
|
+
const handler = hostListenerProxy(hostRef, method);
|
|
1891
|
+
const opts = hostListenerOpts(flags);
|
|
1892
|
+
plt.ael(target, name, handler, opts);
|
|
1893
|
+
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
1894
|
+
});
|
|
1895
|
+
}
|
|
1716
1896
|
};
|
|
1717
|
-
const
|
|
1897
|
+
const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
1898
|
+
try {
|
|
1899
|
+
{
|
|
1900
|
+
if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
|
|
1901
|
+
// instance is ready, let's call it's member method for this event
|
|
1902
|
+
hostRef.$lazyInstance$[methodName](ev);
|
|
1903
|
+
}
|
|
1904
|
+
else {
|
|
1905
|
+
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
catch (e) {
|
|
1910
|
+
consoleError(e);
|
|
1911
|
+
}
|
|
1912
|
+
};
|
|
1913
|
+
const getHostListenerTarget = (elm, flags) => {
|
|
1914
|
+
if (flags & 4 /* LISTENER_FLAGS.TargetDocument */)
|
|
1915
|
+
return doc;
|
|
1916
|
+
if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
|
|
1917
|
+
return win;
|
|
1918
|
+
return elm;
|
|
1919
|
+
};
|
|
1920
|
+
// prettier-ignore
|
|
1921
|
+
const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
|
|
1922
|
+
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1718
1923
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1719
1924
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
1720
1925
|
const registerHost = (elm, cmpMeta) => {
|
|
@@ -1746,7 +1951,202 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1746
1951
|
if (module) {
|
|
1747
1952
|
return module[exportName];
|
|
1748
1953
|
}
|
|
1954
|
+
|
|
1955
|
+
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
1956
|
+
const processMod = importedModule => {
|
|
1957
|
+
cmpModules.set(bundleId, importedModule);
|
|
1958
|
+
return importedModule[exportName];
|
|
1959
|
+
}
|
|
1960
|
+
switch(bundleId) {
|
|
1961
|
+
|
|
1962
|
+
case 'road-badge_11':
|
|
1963
|
+
return import(
|
|
1964
|
+
/* webpackMode: "lazy" */
|
|
1965
|
+
'./road-badge_11.entry.js').then(processMod, consoleError);
|
|
1966
|
+
case 'road-accordion':
|
|
1967
|
+
return import(
|
|
1968
|
+
/* webpackMode: "lazy" */
|
|
1969
|
+
'./road-accordion.entry.js').then(processMod, consoleError);
|
|
1970
|
+
case 'road-alert':
|
|
1971
|
+
return import(
|
|
1972
|
+
/* webpackMode: "lazy" */
|
|
1973
|
+
'./road-alert.entry.js').then(processMod, consoleError);
|
|
1974
|
+
case 'road-autocomplete':
|
|
1975
|
+
return import(
|
|
1976
|
+
/* webpackMode: "lazy" */
|
|
1977
|
+
'./road-autocomplete.entry.js').then(processMod, consoleError);
|
|
1978
|
+
case 'road-avatar':
|
|
1979
|
+
return import(
|
|
1980
|
+
/* webpackMode: "lazy" */
|
|
1981
|
+
'./road-avatar.entry.js').then(processMod, consoleError);
|
|
1982
|
+
case 'road-banner':
|
|
1983
|
+
return import(
|
|
1984
|
+
/* webpackMode: "lazy" */
|
|
1985
|
+
'./road-banner.entry.js').then(processMod, consoleError);
|
|
1986
|
+
case 'road-carousel':
|
|
1987
|
+
return import(
|
|
1988
|
+
/* webpackMode: "lazy" */
|
|
1989
|
+
'./road-carousel.entry.js').then(processMod, consoleError);
|
|
1990
|
+
case 'road-carousel-item':
|
|
1991
|
+
return import(
|
|
1992
|
+
/* webpackMode: "lazy" */
|
|
1993
|
+
'./road-carousel-item.entry.js').then(processMod, consoleError);
|
|
1994
|
+
case 'road-checkbox':
|
|
1995
|
+
return import(
|
|
1996
|
+
/* webpackMode: "lazy" */
|
|
1997
|
+
'./road-checkbox.entry.js').then(processMod, consoleError);
|
|
1998
|
+
case 'road-chip':
|
|
1999
|
+
return import(
|
|
2000
|
+
/* webpackMode: "lazy" */
|
|
2001
|
+
'./road-chip.entry.js').then(processMod, consoleError);
|
|
2002
|
+
case 'road-collapse':
|
|
2003
|
+
return import(
|
|
2004
|
+
/* webpackMode: "lazy" */
|
|
2005
|
+
'./road-collapse.entry.js').then(processMod, consoleError);
|
|
2006
|
+
case 'road-counter':
|
|
2007
|
+
return import(
|
|
2008
|
+
/* webpackMode: "lazy" */
|
|
2009
|
+
'./road-counter.entry.js').then(processMod, consoleError);
|
|
2010
|
+
case 'road-dialog':
|
|
2011
|
+
return import(
|
|
2012
|
+
/* webpackMode: "lazy" */
|
|
2013
|
+
'./road-dialog.entry.js').then(processMod, consoleError);
|
|
2014
|
+
case 'road-dropdown':
|
|
2015
|
+
return import(
|
|
2016
|
+
/* webpackMode: "lazy" */
|
|
2017
|
+
'./road-dropdown.entry.js').then(processMod, consoleError);
|
|
2018
|
+
case 'road-duration':
|
|
2019
|
+
return import(
|
|
2020
|
+
/* webpackMode: "lazy" */
|
|
2021
|
+
'./road-duration.entry.js').then(processMod, consoleError);
|
|
2022
|
+
case 'road-flap':
|
|
2023
|
+
return import(
|
|
2024
|
+
/* webpackMode: "lazy" */
|
|
2025
|
+
'./road-flap.entry.js').then(processMod, consoleError);
|
|
2026
|
+
case 'road-img':
|
|
2027
|
+
return import(
|
|
2028
|
+
/* webpackMode: "lazy" */
|
|
2029
|
+
'./road-img.entry.js').then(processMod, consoleError);
|
|
2030
|
+
case 'road-modal':
|
|
2031
|
+
return import(
|
|
2032
|
+
/* webpackMode: "lazy" */
|
|
2033
|
+
'./road-modal.entry.js').then(processMod, consoleError);
|
|
2034
|
+
case 'road-navbar':
|
|
2035
|
+
return import(
|
|
2036
|
+
/* webpackMode: "lazy" */
|
|
2037
|
+
'./road-navbar.entry.js').then(processMod, consoleError);
|
|
2038
|
+
case 'road-navbar-item':
|
|
2039
|
+
return import(
|
|
2040
|
+
/* webpackMode: "lazy" */
|
|
2041
|
+
'./road-navbar-item.entry.js').then(processMod, consoleError);
|
|
2042
|
+
case 'road-plate-number':
|
|
2043
|
+
return import(
|
|
2044
|
+
/* webpackMode: "lazy" */
|
|
2045
|
+
'./road-plate-number.entry.js').then(processMod, consoleError);
|
|
2046
|
+
case 'road-progress':
|
|
2047
|
+
return import(
|
|
2048
|
+
/* webpackMode: "lazy" */
|
|
2049
|
+
'./road-progress.entry.js').then(processMod, consoleError);
|
|
2050
|
+
case 'road-radio':
|
|
2051
|
+
return import(
|
|
2052
|
+
/* webpackMode: "lazy" */
|
|
2053
|
+
'./road-radio.entry.js').then(processMod, consoleError);
|
|
2054
|
+
case 'road-radio-group':
|
|
2055
|
+
return import(
|
|
2056
|
+
/* webpackMode: "lazy" */
|
|
2057
|
+
'./road-radio-group.entry.js').then(processMod, consoleError);
|
|
2058
|
+
case 'road-range':
|
|
2059
|
+
return import(
|
|
2060
|
+
/* webpackMode: "lazy" */
|
|
2061
|
+
'./road-range.entry.js').then(processMod, consoleError);
|
|
2062
|
+
case 'road-rating':
|
|
2063
|
+
return import(
|
|
2064
|
+
/* webpackMode: "lazy" */
|
|
2065
|
+
'./road-rating.entry.js').then(processMod, consoleError);
|
|
2066
|
+
case 'road-select':
|
|
2067
|
+
return import(
|
|
2068
|
+
/* webpackMode: "lazy" */
|
|
2069
|
+
'./road-select.entry.js').then(processMod, consoleError);
|
|
2070
|
+
case 'road-select-filter':
|
|
2071
|
+
return import(
|
|
2072
|
+
/* webpackMode: "lazy" */
|
|
2073
|
+
'./road-select-filter.entry.js').then(processMod, consoleError);
|
|
2074
|
+
case 'road-skeleton':
|
|
2075
|
+
return import(
|
|
2076
|
+
/* webpackMode: "lazy" */
|
|
2077
|
+
'./road-skeleton.entry.js').then(processMod, consoleError);
|
|
2078
|
+
case 'road-spinner':
|
|
2079
|
+
return import(
|
|
2080
|
+
/* webpackMode: "lazy" */
|
|
2081
|
+
'./road-spinner.entry.js').then(processMod, consoleError);
|
|
2082
|
+
case 'road-stepper':
|
|
2083
|
+
return import(
|
|
2084
|
+
/* webpackMode: "lazy" */
|
|
2085
|
+
'./road-stepper.entry.js').then(processMod, consoleError);
|
|
2086
|
+
case 'road-switch':
|
|
2087
|
+
return import(
|
|
2088
|
+
/* webpackMode: "lazy" */
|
|
2089
|
+
'./road-switch.entry.js').then(processMod, consoleError);
|
|
2090
|
+
case 'road-tab':
|
|
2091
|
+
return import(
|
|
2092
|
+
/* webpackMode: "lazy" */
|
|
2093
|
+
'./road-tab.entry.js').then(processMod, consoleError);
|
|
2094
|
+
case 'road-tab-bar':
|
|
2095
|
+
return import(
|
|
2096
|
+
/* webpackMode: "lazy" */
|
|
2097
|
+
'./road-tab-bar.entry.js').then(processMod, consoleError);
|
|
2098
|
+
case 'road-tab-button':
|
|
2099
|
+
return import(
|
|
2100
|
+
/* webpackMode: "lazy" */
|
|
2101
|
+
'./road-tab-button.entry.js').then(processMod, consoleError);
|
|
2102
|
+
case 'road-table':
|
|
2103
|
+
return import(
|
|
2104
|
+
/* webpackMode: "lazy" */
|
|
2105
|
+
'./road-table.entry.js').then(processMod, consoleError);
|
|
2106
|
+
case 'road-tabs':
|
|
2107
|
+
return import(
|
|
2108
|
+
/* webpackMode: "lazy" */
|
|
2109
|
+
'./road-tabs.entry.js').then(processMod, consoleError);
|
|
2110
|
+
case 'road-text':
|
|
2111
|
+
return import(
|
|
2112
|
+
/* webpackMode: "lazy" */
|
|
2113
|
+
'./road-text.entry.js').then(processMod, consoleError);
|
|
2114
|
+
case 'road-textarea':
|
|
2115
|
+
return import(
|
|
2116
|
+
/* webpackMode: "lazy" */
|
|
2117
|
+
'./road-textarea.entry.js').then(processMod, consoleError);
|
|
2118
|
+
case 'road-toast':
|
|
2119
|
+
return import(
|
|
2120
|
+
/* webpackMode: "lazy" */
|
|
2121
|
+
'./road-toast.entry.js').then(processMod, consoleError);
|
|
2122
|
+
case 'road-toggle':
|
|
2123
|
+
return import(
|
|
2124
|
+
/* webpackMode: "lazy" */
|
|
2125
|
+
'./road-toggle.entry.js').then(processMod, consoleError);
|
|
2126
|
+
case 'road-toolbar-title':
|
|
2127
|
+
return import(
|
|
2128
|
+
/* webpackMode: "lazy" */
|
|
2129
|
+
'./road-toolbar-title.entry.js').then(processMod, consoleError);
|
|
2130
|
+
case 'road-tooltip':
|
|
2131
|
+
return import(
|
|
2132
|
+
/* webpackMode: "lazy" */
|
|
2133
|
+
'./road-tooltip.entry.js').then(processMod, consoleError);
|
|
2134
|
+
case 'road-card':
|
|
2135
|
+
return import(
|
|
2136
|
+
/* webpackMode: "lazy" */
|
|
2137
|
+
'./road-card.entry.js').then(processMod, consoleError);
|
|
2138
|
+
case 'road-input':
|
|
2139
|
+
return import(
|
|
2140
|
+
/* webpackMode: "lazy" */
|
|
2141
|
+
'./road-input.entry.js').then(processMod, consoleError);
|
|
2142
|
+
case 'road-input-group':
|
|
2143
|
+
return import(
|
|
2144
|
+
/* webpackMode: "lazy" */
|
|
2145
|
+
'./road-input-group.entry.js').then(processMod, consoleError);
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
1749
2148
|
return import(
|
|
2149
|
+
/* @vite-ignore */
|
|
1750
2150
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1751
2151
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1752
2152
|
/* webpackMode: "lazy" */
|
|
@@ -1757,15 +2157,39 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1757
2157
|
return importedModule[exportName];
|
|
1758
2158
|
}, consoleError);
|
|
1759
2159
|
};
|
|
1760
|
-
const styles = new Map();
|
|
2160
|
+
const styles = /*@__PURE__*/ new Map();
|
|
1761
2161
|
const modeResolutionChain = [];
|
|
2162
|
+
const win = typeof window !== 'undefined' ? window : {};
|
|
2163
|
+
const CSS = win.CSS ;
|
|
2164
|
+
const doc = win.document || { head: {} };
|
|
2165
|
+
const plt = {
|
|
2166
|
+
$flags$: 0,
|
|
2167
|
+
$resourcesUrl$: '',
|
|
2168
|
+
jmp: (h) => h(),
|
|
2169
|
+
raf: (h) => requestAnimationFrame(h),
|
|
2170
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
2171
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
2172
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
2173
|
+
};
|
|
2174
|
+
const supportsShadow = /*@__PURE__*/ (() => (doc.head.attachShadow + '').indexOf('[native') > -1)()
|
|
2175
|
+
;
|
|
2176
|
+
const promiseResolve = (v) => Promise.resolve(v);
|
|
2177
|
+
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
2178
|
+
try {
|
|
2179
|
+
new CSSStyleSheet();
|
|
2180
|
+
return typeof new CSSStyleSheet().replaceSync === 'function';
|
|
2181
|
+
}
|
|
2182
|
+
catch (e) { }
|
|
2183
|
+
return false;
|
|
2184
|
+
})()
|
|
2185
|
+
;
|
|
1762
2186
|
const queueDomReads = [];
|
|
1763
2187
|
const queueDomWrites = [];
|
|
1764
2188
|
const queueTask = (queue, write) => (cb) => {
|
|
1765
2189
|
queue.push(cb);
|
|
1766
2190
|
if (!queuePending) {
|
|
1767
2191
|
queuePending = true;
|
|
1768
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
2192
|
+
if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
|
|
1769
2193
|
nextTick(flush);
|
|
1770
2194
|
}
|
|
1771
2195
|
else {
|