@roadtrip/components 2.42.0-beta → 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 +14 -14
- 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 +2 -2
- 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 +2 -2
- 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 +643 -638
- 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.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-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 +173 -163
- package/dist/collection/components/select-filter/select-filter.stories.js +1 -1
- 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 +14 -14
- 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 +2 -2
- 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 +2 -2
- 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-8d3544d1.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-0ce10dd2.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-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.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-2e918486.entry.js +0 -1
- package/dist/roadtrip/p-3152c6b0.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-7b733694.js +0 -1
- package/dist/roadtrip/p-862c5b6b.entry.js +0 -1
- package/dist/roadtrip/p-896f49f2.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-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-efb893f4.system.entry.js +0 -1
- package/dist/roadtrip/p-f0ec3a64.entry.js +0 -1
- package/dist/roadtrip/p-f33e4ac5.system.js +0 -1
- package/dist/roadtrip/p-f5d32536.entry.js +0 -1
- package/dist/roadtrip/p-f619b67c.system.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
|
@@ -22,6 +22,14 @@ function _interopNamespace(e) {
|
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'roadtrip';
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Virtual DOM patching algorithm based on Snabbdom by
|
|
27
|
+
* Simon Friis Vindum (@paldepind)
|
|
28
|
+
* Licensed under the MIT License
|
|
29
|
+
* https://github.com/snabbdom/snabbdom/blob/master/LICENSE
|
|
30
|
+
*
|
|
31
|
+
* Modified for Stencil's renderer and slot projection
|
|
32
|
+
*/
|
|
25
33
|
let scopeId;
|
|
26
34
|
let contentRef;
|
|
27
35
|
let hostTagName;
|
|
@@ -30,68 +38,10 @@ let checkSlotFallbackVisibility = false;
|
|
|
30
38
|
let checkSlotRelocate = false;
|
|
31
39
|
let isSvgMode = false;
|
|
32
40
|
let queuePending = false;
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
const plt = {
|
|
37
|
-
$flags$: 0,
|
|
38
|
-
$resourcesUrl$: '',
|
|
39
|
-
jmp: (h) => h(),
|
|
40
|
-
raf: (h) => requestAnimationFrame(h),
|
|
41
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
42
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
43
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
44
|
-
};
|
|
45
|
-
const supportsShadow = /*@__PURE__*/ (() => (doc.head.attachShadow + '').indexOf('[native') > -1)()
|
|
46
|
-
;
|
|
47
|
-
const promiseResolve = (v) => Promise.resolve(v);
|
|
48
|
-
const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
49
|
-
try {
|
|
50
|
-
new CSSStyleSheet();
|
|
51
|
-
return typeof new CSSStyleSheet().replace === 'function';
|
|
52
|
-
}
|
|
53
|
-
catch (e) { }
|
|
54
|
-
return false;
|
|
55
|
-
})()
|
|
56
|
-
;
|
|
57
|
-
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
58
|
-
if (listeners) {
|
|
59
|
-
listeners.map(([flags, name, method]) => {
|
|
60
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
61
|
-
const handler = hostListenerProxy(hostRef, method);
|
|
62
|
-
const opts = hostListenerOpts(flags);
|
|
63
|
-
plt.ael(target, name, handler, opts);
|
|
64
|
-
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
69
|
-
try {
|
|
70
|
-
{
|
|
71
|
-
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
72
|
-
// instance is ready, let's call it's member method for this event
|
|
73
|
-
hostRef.$lazyInstance$[methodName](ev);
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e) {
|
|
81
|
-
consoleError(e);
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
const getHostListenerTarget = (elm, flags) => {
|
|
85
|
-
if (flags & 4 /* TargetDocument */)
|
|
86
|
-
return doc;
|
|
87
|
-
if (flags & 8 /* TargetWindow */)
|
|
88
|
-
return win;
|
|
89
|
-
return elm;
|
|
41
|
+
const getAssetPath = (path) => {
|
|
42
|
+
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
43
|
+
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
90
44
|
};
|
|
91
|
-
// prettier-ignore
|
|
92
|
-
const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
93
|
-
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
94
|
-
const XLINK_NS = 'http://www.w3.org/1999/xlink';
|
|
95
45
|
const createTime = (fnName, tagName = '') => {
|
|
96
46
|
{
|
|
97
47
|
return () => {
|
|
@@ -106,89 +56,8 @@ const uniqueTime = (key, measureText) => {
|
|
|
106
56
|
};
|
|
107
57
|
}
|
|
108
58
|
};
|
|
109
|
-
const
|
|
110
|
-
const
|
|
111
|
-
let style = styles.get(scopeId);
|
|
112
|
-
if (supportsConstructibleStylesheets && allowCS) {
|
|
113
|
-
style = (style || new CSSStyleSheet());
|
|
114
|
-
style.replace(cssText);
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
style = cssText;
|
|
118
|
-
}
|
|
119
|
-
styles.set(scopeId, style);
|
|
120
|
-
};
|
|
121
|
-
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
122
|
-
let scopeId = getScopeId(cmpMeta, mode);
|
|
123
|
-
let style = styles.get(scopeId);
|
|
124
|
-
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
125
|
-
// so the fallback is to always use the document for the root node in those cases
|
|
126
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
127
|
-
if (style) {
|
|
128
|
-
if (typeof style === 'string') {
|
|
129
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
130
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
131
|
-
let styleElm;
|
|
132
|
-
if (!appliedStyles) {
|
|
133
|
-
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
|
134
|
-
}
|
|
135
|
-
if (!appliedStyles.has(scopeId)) {
|
|
136
|
-
{
|
|
137
|
-
if (plt.$cssShim$) {
|
|
138
|
-
styleElm = plt.$cssShim$.createHostStyle(hostElm, scopeId, style, !!(cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */));
|
|
139
|
-
const newScopeId = styleElm['s-sc'];
|
|
140
|
-
if (newScopeId) {
|
|
141
|
-
scopeId = newScopeId;
|
|
142
|
-
// we don't want to add this styleID to the appliedStyles Set
|
|
143
|
-
// since the cssVarShim might need to apply several different
|
|
144
|
-
// stylesheets for the same component
|
|
145
|
-
appliedStyles = null;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
else {
|
|
149
|
-
styleElm = doc.createElement('style');
|
|
150
|
-
styleElm.innerHTML = style;
|
|
151
|
-
}
|
|
152
|
-
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
153
|
-
}
|
|
154
|
-
if (appliedStyles) {
|
|
155
|
-
appliedStyles.add(scopeId);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
160
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
return scopeId;
|
|
164
|
-
};
|
|
165
|
-
const attachStyles = (hostRef) => {
|
|
166
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
167
|
-
const elm = hostRef.$hostElement$;
|
|
168
|
-
const flags = cmpMeta.$flags$;
|
|
169
|
-
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
170
|
-
const scopeId = addStyle(supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta, hostRef.$modeName$, elm);
|
|
171
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
172
|
-
// only required when we're NOT using native shadow dom (slot)
|
|
173
|
-
// or this browser doesn't support native shadow dom
|
|
174
|
-
// and this host element was NOT created with SSR
|
|
175
|
-
// let's pick out the inner content for slot projection
|
|
176
|
-
// create a node to represent where the original
|
|
177
|
-
// content was first placed, which is useful later on
|
|
178
|
-
// DOM WRITE!!
|
|
179
|
-
elm['s-sc'] = scopeId;
|
|
180
|
-
elm.classList.add(scopeId + '-h');
|
|
181
|
-
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
182
|
-
elm.classList.add(scopeId + '-s');
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
endAttachStyles();
|
|
186
|
-
};
|
|
187
|
-
const getScopeId = (cmp, mode) => 'sc-' + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + '-' + mode : cmp.$tagName$);
|
|
188
|
-
// Private
|
|
189
|
-
const computeMode = (elm) => modeResolutionChain.map((h) => h(elm)).find((m) => !!m);
|
|
190
|
-
// Public
|
|
191
|
-
const setMode = (handler) => modeResolutionChain.push(handler);
|
|
59
|
+
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
60
|
+
const XLINK_NS = 'http://www.w3.org/1999/xlink';
|
|
192
61
|
/**
|
|
193
62
|
* Default style mode id
|
|
194
63
|
*/
|
|
@@ -225,7 +94,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
225
94
|
let slotName = null;
|
|
226
95
|
let simple = false;
|
|
227
96
|
let lastSimple = false;
|
|
228
|
-
|
|
97
|
+
const vNodeChildren = [];
|
|
229
98
|
const walk = (c) => {
|
|
230
99
|
for (let i = 0; i < c.length; i++) {
|
|
231
100
|
child = c[i];
|
|
@@ -337,6 +206,167 @@ const convertToPrivate = (node) => {
|
|
|
337
206
|
vnode.$name$ = node.vname;
|
|
338
207
|
return vnode;
|
|
339
208
|
};
|
|
209
|
+
// Private
|
|
210
|
+
const computeMode = (elm) => modeResolutionChain.map((h) => h(elm)).find((m) => !!m);
|
|
211
|
+
// Public
|
|
212
|
+
const setMode = (handler) => modeResolutionChain.push(handler);
|
|
213
|
+
/**
|
|
214
|
+
* Parse a new property value for a given property type.
|
|
215
|
+
*
|
|
216
|
+
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
217
|
+
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
218
|
+
* 1. `any`, the type given to `propValue` in the function signature
|
|
219
|
+
* 2. the type stored from `propType`.
|
|
220
|
+
*
|
|
221
|
+
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
222
|
+
*
|
|
223
|
+
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
224
|
+
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
225
|
+
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
226
|
+
* ```tsx
|
|
227
|
+
* <my-cmp prop-val={0}></my-cmp>
|
|
228
|
+
* ```
|
|
229
|
+
*
|
|
230
|
+
* HTML prop values on the other hand, will always a string
|
|
231
|
+
*
|
|
232
|
+
* @param propValue the new value to coerce to some type
|
|
233
|
+
* @param propType the type of the prop, expressed as a binary number
|
|
234
|
+
* @returns the parsed/coerced value
|
|
235
|
+
*/
|
|
236
|
+
const parsePropertyValue = (propValue, propType) => {
|
|
237
|
+
// ensure this value is of the correct prop type
|
|
238
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
239
|
+
if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
|
|
240
|
+
// per the HTML spec, any string value means it is a boolean true value
|
|
241
|
+
// but we'll cheat here and say that the string "false" is the boolean false
|
|
242
|
+
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
243
|
+
}
|
|
244
|
+
if (propType & 2 /* MEMBER_FLAGS.Number */) {
|
|
245
|
+
// force it to be a number
|
|
246
|
+
return parseFloat(propValue);
|
|
247
|
+
}
|
|
248
|
+
if (propType & 1 /* MEMBER_FLAGS.String */) {
|
|
249
|
+
// could have been passed as a number or boolean
|
|
250
|
+
// but we still want it as a string
|
|
251
|
+
return String(propValue);
|
|
252
|
+
}
|
|
253
|
+
// redundant return here for better minification
|
|
254
|
+
return propValue;
|
|
255
|
+
}
|
|
256
|
+
// not sure exactly what type we want
|
|
257
|
+
// so no need to change to a different type
|
|
258
|
+
return propValue;
|
|
259
|
+
};
|
|
260
|
+
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
261
|
+
const createEvent = (ref, name, flags) => {
|
|
262
|
+
const elm = getElement(ref);
|
|
263
|
+
return {
|
|
264
|
+
emit: (detail) => {
|
|
265
|
+
return emitEvent(elm, name, {
|
|
266
|
+
bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
|
|
267
|
+
composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
|
|
268
|
+
cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
|
|
269
|
+
detail,
|
|
270
|
+
});
|
|
271
|
+
},
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* Helper function to create & dispatch a custom Event on a provided target
|
|
276
|
+
* @param elm the target of the Event
|
|
277
|
+
* @param name the name to give the custom Event
|
|
278
|
+
* @param opts options for configuring a custom Event
|
|
279
|
+
* @returns the custom Event
|
|
280
|
+
*/
|
|
281
|
+
const emitEvent = (elm, name, opts) => {
|
|
282
|
+
const ev = plt.ce(name, opts);
|
|
283
|
+
elm.dispatchEvent(ev);
|
|
284
|
+
return ev;
|
|
285
|
+
};
|
|
286
|
+
const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
|
|
287
|
+
const registerStyle = (scopeId, cssText, allowCS) => {
|
|
288
|
+
let style = styles.get(scopeId);
|
|
289
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
290
|
+
style = (style || new CSSStyleSheet());
|
|
291
|
+
if (typeof style === 'string') {
|
|
292
|
+
style = cssText;
|
|
293
|
+
}
|
|
294
|
+
else {
|
|
295
|
+
style.replaceSync(cssText);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
style = cssText;
|
|
300
|
+
}
|
|
301
|
+
styles.set(scopeId, style);
|
|
302
|
+
};
|
|
303
|
+
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
304
|
+
let scopeId = getScopeId(cmpMeta, mode);
|
|
305
|
+
const style = styles.get(scopeId);
|
|
306
|
+
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
307
|
+
// so the fallback is to always use the document for the root node in those cases
|
|
308
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
|
|
309
|
+
if (style) {
|
|
310
|
+
if (typeof style === 'string') {
|
|
311
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
312
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
313
|
+
let styleElm;
|
|
314
|
+
if (!appliedStyles) {
|
|
315
|
+
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
|
316
|
+
}
|
|
317
|
+
if (!appliedStyles.has(scopeId)) {
|
|
318
|
+
{
|
|
319
|
+
if (plt.$cssShim$) {
|
|
320
|
+
styleElm = plt.$cssShim$.createHostStyle(hostElm, scopeId, style, !!(cmpMeta.$flags$ & 10 /* CMP_FLAGS.needsScopedEncapsulation */));
|
|
321
|
+
const newScopeId = styleElm['s-sc'];
|
|
322
|
+
if (newScopeId) {
|
|
323
|
+
scopeId = newScopeId;
|
|
324
|
+
// we don't want to add this styleID to the appliedStyles Set
|
|
325
|
+
// since the cssVarShim might need to apply several different
|
|
326
|
+
// stylesheets for the same component
|
|
327
|
+
appliedStyles = null;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
else {
|
|
331
|
+
styleElm = doc.createElement('style');
|
|
332
|
+
styleElm.innerHTML = style;
|
|
333
|
+
}
|
|
334
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
335
|
+
}
|
|
336
|
+
if (appliedStyles) {
|
|
337
|
+
appliedStyles.add(scopeId);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
342
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
return scopeId;
|
|
346
|
+
};
|
|
347
|
+
const attachStyles = (hostRef) => {
|
|
348
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
349
|
+
const elm = hostRef.$hostElement$;
|
|
350
|
+
const flags = cmpMeta.$flags$;
|
|
351
|
+
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
352
|
+
const scopeId = addStyle(supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta, hostRef.$modeName$, elm);
|
|
353
|
+
if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
|
|
354
|
+
// only required when we're NOT using native shadow dom (slot)
|
|
355
|
+
// or this browser doesn't support native shadow dom
|
|
356
|
+
// and this host element was NOT created with SSR
|
|
357
|
+
// let's pick out the inner content for slot projection
|
|
358
|
+
// create a node to represent where the original
|
|
359
|
+
// content was first placed, which is useful later on
|
|
360
|
+
// DOM WRITE!!
|
|
361
|
+
elm['s-sc'] = scopeId;
|
|
362
|
+
elm.classList.add(scopeId + '-h');
|
|
363
|
+
if (flags & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
|
|
364
|
+
elm.classList.add(scopeId + '-s');
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
endAttachStyles();
|
|
368
|
+
};
|
|
369
|
+
const getScopeId = (cmp, mode) => 'sc-' + (mode && cmp.$flags$ & 32 /* CMP_FLAGS.hasMode */ ? cmp.$tagName$ + '-' + mode : cmp.$tagName$);
|
|
340
370
|
/**
|
|
341
371
|
* Production setAccessor() function based on Preact by
|
|
342
372
|
* Jason Miller (@developit)
|
|
@@ -434,7 +464,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
434
464
|
if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
|
|
435
465
|
try {
|
|
436
466
|
if (!elm.tagName.includes('-')) {
|
|
437
|
-
|
|
467
|
+
const n = newValue == null ? '' : newValue;
|
|
438
468
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
439
469
|
if (memberName === 'list') {
|
|
440
470
|
isProp = false;
|
|
@@ -473,7 +503,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
473
503
|
}
|
|
474
504
|
}
|
|
475
505
|
}
|
|
476
|
-
else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
506
|
+
else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
|
|
477
507
|
newValue = newValue === true ? '' : newValue;
|
|
478
508
|
if (xlink) {
|
|
479
509
|
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
@@ -491,7 +521,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
491
521
|
// if the element passed in is a shadow root, which is a document fragment
|
|
492
522
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
493
523
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
494
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
524
|
+
const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
|
|
495
525
|
? newVnode.$elm$.host
|
|
496
526
|
: newVnode.$elm$;
|
|
497
527
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
@@ -509,9 +539,19 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
509
539
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
|
|
510
540
|
}
|
|
511
541
|
};
|
|
542
|
+
/**
|
|
543
|
+
* Create a DOM Node corresponding to one of the children of a given VNode.
|
|
544
|
+
*
|
|
545
|
+
* @param oldParentVNode the parent VNode from the previous render
|
|
546
|
+
* @param newParentVNode the parent VNode from the current render
|
|
547
|
+
* @param childIndex the index of the VNode, in the _new_ parent node's
|
|
548
|
+
* children, for which we will create a new DOM node
|
|
549
|
+
* @param parentElm the parent DOM node which our new node will be a child of
|
|
550
|
+
* @returns the newly created node
|
|
551
|
+
*/
|
|
512
552
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
513
553
|
// tslint:disable-next-line: prefer-const
|
|
514
|
-
|
|
554
|
+
const newVNode = newParentVNode.$children$[childIndex];
|
|
515
555
|
let i = 0;
|
|
516
556
|
let elm;
|
|
517
557
|
let childNode;
|
|
@@ -526,16 +566,16 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
526
566
|
}
|
|
527
567
|
newVNode.$flags$ |= newVNode.$children$
|
|
528
568
|
? // slot element has fallback content
|
|
529
|
-
2 /* isSlotFallback */
|
|
569
|
+
2 /* VNODE_FLAGS.isSlotFallback */
|
|
530
570
|
: // slot element does not have fallback content
|
|
531
|
-
1 /* isSlotReference */;
|
|
571
|
+
1 /* VNODE_FLAGS.isSlotReference */;
|
|
532
572
|
}
|
|
533
573
|
}
|
|
534
574
|
if (newVNode.$text$ !== null) {
|
|
535
575
|
// create text node
|
|
536
576
|
elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
|
|
537
577
|
}
|
|
538
|
-
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
578
|
+
else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
|
|
539
579
|
// create a slot reference node
|
|
540
580
|
elm = newVNode.$elm$ =
|
|
541
581
|
doc.createTextNode('');
|
|
@@ -545,7 +585,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
545
585
|
isSvgMode = newVNode.$tag$ === 'svg';
|
|
546
586
|
}
|
|
547
587
|
// create element
|
|
548
|
-
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
588
|
+
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
|
|
549
589
|
? 'slot-fb'
|
|
550
590
|
: newVNode.$tag$)
|
|
551
591
|
);
|
|
@@ -585,7 +625,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
585
625
|
}
|
|
586
626
|
{
|
|
587
627
|
elm['s-hn'] = hostTagName;
|
|
588
|
-
if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
628
|
+
if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
|
|
589
629
|
// remember the content reference comment
|
|
590
630
|
elm['s-sr'] = true;
|
|
591
631
|
// remember the content reference comment
|
|
@@ -604,7 +644,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
604
644
|
return elm;
|
|
605
645
|
};
|
|
606
646
|
const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
607
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
647
|
+
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
608
648
|
const oldSlotChildNodes = parentElm.childNodes;
|
|
609
649
|
for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
|
|
610
650
|
const childNode = oldSlotChildNodes[i];
|
|
@@ -625,7 +665,7 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
625
665
|
putBackInOriginalLocation(childNode, recursive);
|
|
626
666
|
}
|
|
627
667
|
}
|
|
628
|
-
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
668
|
+
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
629
669
|
};
|
|
630
670
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
631
671
|
let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
|
|
@@ -667,6 +707,74 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
667
707
|
}
|
|
668
708
|
}
|
|
669
709
|
};
|
|
710
|
+
/**
|
|
711
|
+
* Reconcile the children of a new VNode with the children of an old VNode by
|
|
712
|
+
* traversing the two collections of children, identifying nodes that are
|
|
713
|
+
* conserved or changed, calling out to `patch` to make any necessary
|
|
714
|
+
* updates to the DOM, and rearranging DOM nodes as needed.
|
|
715
|
+
*
|
|
716
|
+
* The algorithm for reconciling children works by analyzing two 'windows' onto
|
|
717
|
+
* the two arrays of children (`oldCh` and `newCh`). We keep track of the
|
|
718
|
+
* 'windows' by storing start and end indices and references to the
|
|
719
|
+
* corresponding array entries. Initially the two 'windows' are basically equal
|
|
720
|
+
* to the entire array, but we progressively narrow the windows until there are
|
|
721
|
+
* no children left to update by doing the following:
|
|
722
|
+
*
|
|
723
|
+
* 1. Skip any `null` entries at the beginning or end of the two arrays, so
|
|
724
|
+
* that if we have an initial array like the following we'll end up dealing
|
|
725
|
+
* only with a window bounded by the highlighted elements:
|
|
726
|
+
*
|
|
727
|
+
* [null, null, VNode1 , ... , VNode2, null, null]
|
|
728
|
+
* ^^^^^^ ^^^^^^
|
|
729
|
+
*
|
|
730
|
+
* 2. Check to see if the elements at the head and tail positions are equal
|
|
731
|
+
* across the windows. This will basically detect elements which haven't
|
|
732
|
+
* been added, removed, or changed position, i.e. if you had the following
|
|
733
|
+
* VNode elements (represented as HTML):
|
|
734
|
+
*
|
|
735
|
+
* oldVNode: `<div><p><span>HEY</span></p></div>`
|
|
736
|
+
* newVNode: `<div><p><span>THERE</span></p></div>`
|
|
737
|
+
*
|
|
738
|
+
* Then when comparing the children of the `<div>` tag we check the equality
|
|
739
|
+
* of the VNodes corresponding to the `<p>` tags and, since they are the
|
|
740
|
+
* same tag in the same position, we'd be able to avoid completely
|
|
741
|
+
* re-rendering the subtree under them with a new DOM element and would just
|
|
742
|
+
* call out to `patch` to handle reconciling their children and so on.
|
|
743
|
+
*
|
|
744
|
+
* 3. Check, for both windows, to see if the element at the beginning of the
|
|
745
|
+
* window corresponds to the element at the end of the other window. This is
|
|
746
|
+
* a heuristic which will let us identify _some_ situations in which
|
|
747
|
+
* elements have changed position, for instance it _should_ detect that the
|
|
748
|
+
* children nodes themselves have not changed but merely moved in the
|
|
749
|
+
* following example:
|
|
750
|
+
*
|
|
751
|
+
* oldVNode: `<div><element-one /><element-two /></div>`
|
|
752
|
+
* newVNode: `<div><element-two /><element-one /></div>`
|
|
753
|
+
*
|
|
754
|
+
* If we find cases like this then we also need to move the concrete DOM
|
|
755
|
+
* elements corresponding to the moved children to write the re-order to the
|
|
756
|
+
* DOM.
|
|
757
|
+
*
|
|
758
|
+
* 4. Finally, if VNodes have the `key` attribute set on them we check for any
|
|
759
|
+
* nodes in the old children which have the same key as the first element in
|
|
760
|
+
* our window on the new children. If we find such a node we handle calling
|
|
761
|
+
* out to `patch`, moving relevant DOM nodes, and so on, in accordance with
|
|
762
|
+
* what we find.
|
|
763
|
+
*
|
|
764
|
+
* Finally, once we've narrowed our 'windows' to the point that either of them
|
|
765
|
+
* collapse (i.e. they have length 0) we then handle any remaining VNode
|
|
766
|
+
* insertion or deletion that needs to happen to get a DOM state that correctly
|
|
767
|
+
* reflects the new child VNodes. If, for instance, after our window on the old
|
|
768
|
+
* children has collapsed we still have more nodes on the new children that
|
|
769
|
+
* we haven't dealt with yet then we need to add them, or if the new children
|
|
770
|
+
* collapse but we still have unhandled _old_ children then we need to make
|
|
771
|
+
* sure the corresponding DOM nodes are removed.
|
|
772
|
+
*
|
|
773
|
+
* @param parentElm the node into which the parent VNode is rendered
|
|
774
|
+
* @param oldCh the old children of the parent node
|
|
775
|
+
* @param newVNode the new VNode which will replace the parent
|
|
776
|
+
* @param newCh the new children of the parent node
|
|
777
|
+
*/
|
|
670
778
|
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
671
779
|
let oldStartIdx = 0;
|
|
672
780
|
let newStartIdx = 0;
|
|
@@ -682,7 +790,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
682
790
|
let elmToMove;
|
|
683
791
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
684
792
|
if (oldStartVnode == null) {
|
|
685
|
-
//
|
|
793
|
+
// VNode might have been moved left
|
|
686
794
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
687
795
|
}
|
|
688
796
|
else if (oldEndVnode == null) {
|
|
@@ -695,37 +803,100 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
695
803
|
newEndVnode = newCh[--newEndIdx];
|
|
696
804
|
}
|
|
697
805
|
else if (isSameVnode(oldStartVnode, newStartVnode)) {
|
|
806
|
+
// if the start nodes are the same then we should patch the new VNode
|
|
807
|
+
// onto the old one, and increment our `newStartIdx` and `oldStartIdx`
|
|
808
|
+
// indices to reflect that. We don't need to move any DOM Nodes around
|
|
809
|
+
// since things are matched up in order.
|
|
698
810
|
patch(oldStartVnode, newStartVnode);
|
|
699
811
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
700
812
|
newStartVnode = newCh[++newStartIdx];
|
|
701
813
|
}
|
|
702
814
|
else if (isSameVnode(oldEndVnode, newEndVnode)) {
|
|
815
|
+
// likewise, if the end nodes are the same we patch new onto old and
|
|
816
|
+
// decrement our end indices, and also likewise in this case we don't
|
|
817
|
+
// need to move any DOM Nodes.
|
|
703
818
|
patch(oldEndVnode, newEndVnode);
|
|
704
819
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
705
820
|
newEndVnode = newCh[--newEndIdx];
|
|
706
821
|
}
|
|
707
822
|
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
708
|
-
// Vnode moved right
|
|
823
|
+
// case: "Vnode moved right"
|
|
824
|
+
//
|
|
825
|
+
// We've found that the last node in our window on the new children is
|
|
826
|
+
// the same VNode as the _first_ node in our window on the old children
|
|
827
|
+
// we're dealing with now. Visually, this is the layout of these two
|
|
828
|
+
// nodes:
|
|
829
|
+
//
|
|
830
|
+
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
831
|
+
// ^^^^^^^^^^^
|
|
832
|
+
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
833
|
+
// ^^^^^^^^^^^^^
|
|
834
|
+
//
|
|
835
|
+
// In this situation we need to patch `newEndVnode` onto `oldStartVnode`
|
|
836
|
+
// and move the DOM element for `oldStartVnode`.
|
|
709
837
|
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
710
838
|
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
711
839
|
}
|
|
712
840
|
patch(oldStartVnode, newEndVnode);
|
|
841
|
+
// We need to move the element for `oldStartVnode` into a position which
|
|
842
|
+
// will be appropriate for `newEndVnode`. For this we can use
|
|
843
|
+
// `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
|
|
844
|
+
// sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
|
|
845
|
+
// `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
|
|
846
|
+
//
|
|
847
|
+
// <old-start-node />
|
|
848
|
+
// <some-intervening-node />
|
|
849
|
+
// <old-end-node />
|
|
850
|
+
// <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
|
|
851
|
+
// <next-sibling />
|
|
852
|
+
//
|
|
853
|
+
// If instead `oldEndVnode.$elm$` has no sibling then we just want to put
|
|
854
|
+
// the node for `oldStartVnode` at the end of the children of
|
|
855
|
+
// `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
|
|
856
|
+
// aren't any siblings, and passing `null` to `Node.insertBefore` will
|
|
857
|
+
// append it to the children of the parent element.
|
|
713
858
|
parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
714
859
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
715
860
|
newEndVnode = newCh[--newEndIdx];
|
|
716
861
|
}
|
|
717
862
|
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
718
|
-
// Vnode moved left
|
|
863
|
+
// case: "Vnode moved left"
|
|
864
|
+
//
|
|
865
|
+
// We've found that the first node in our window on the new children is
|
|
866
|
+
// the same VNode as the _last_ node in our window on the old children.
|
|
867
|
+
// Visually, this is the layout of these two nodes:
|
|
868
|
+
//
|
|
869
|
+
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
870
|
+
// ^^^^^^^^^^^^^
|
|
871
|
+
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
872
|
+
// ^^^^^^^^^^^
|
|
873
|
+
//
|
|
874
|
+
// In this situation we need to patch `newStartVnode` onto `oldEndVnode`
|
|
875
|
+
// (which will handle updating any changed attributes, reconciling their
|
|
876
|
+
// children etc) but we also need to move the DOM node to which
|
|
877
|
+
// `oldEndVnode` corresponds.
|
|
719
878
|
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
720
879
|
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
721
880
|
}
|
|
722
881
|
patch(oldEndVnode, newStartVnode);
|
|
882
|
+
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
883
|
+
// the same node, so since we're here we know that they are not. Thus we
|
|
884
|
+
// can move the element for `oldEndVnode` _before_ the element for
|
|
885
|
+
// `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
|
|
886
|
+
// future.
|
|
723
887
|
parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
724
888
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
725
889
|
newStartVnode = newCh[++newStartIdx];
|
|
726
890
|
}
|
|
727
891
|
else {
|
|
728
|
-
//
|
|
892
|
+
// Here we do some checks to match up old and new nodes based on the
|
|
893
|
+
// `$key$` attribute, which is set by putting a `key="my-key"` attribute
|
|
894
|
+
// in the JSX for a DOM element in the implementation of a Stencil
|
|
895
|
+
// component.
|
|
896
|
+
//
|
|
897
|
+
// First we check to see if there are any nodes in the array of old
|
|
898
|
+
// children which have the same key as the first node in the new
|
|
899
|
+
// children.
|
|
729
900
|
idxInOld = -1;
|
|
730
901
|
{
|
|
731
902
|
for (i = oldStartIdx; i <= oldEndIdx; ++i) {
|
|
@@ -736,23 +907,32 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
736
907
|
}
|
|
737
908
|
}
|
|
738
909
|
if (idxInOld >= 0) {
|
|
910
|
+
// We found a node in the old children which matches up with the first
|
|
911
|
+
// node in the new children! So let's deal with that
|
|
739
912
|
elmToMove = oldCh[idxInOld];
|
|
740
913
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
914
|
+
// the tag doesn't match so we'll need a new DOM element
|
|
741
915
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
|
|
742
916
|
}
|
|
743
917
|
else {
|
|
744
918
|
patch(elmToMove, newStartVnode);
|
|
919
|
+
// invalidate the matching old node so that we won't try to update it
|
|
920
|
+
// again later on
|
|
745
921
|
oldCh[idxInOld] = undefined;
|
|
746
922
|
node = elmToMove.$elm$;
|
|
747
923
|
}
|
|
748
924
|
newStartVnode = newCh[++newStartIdx];
|
|
749
925
|
}
|
|
750
926
|
else {
|
|
751
|
-
//
|
|
927
|
+
// We either didn't find an element in the old children that matches
|
|
928
|
+
// the key of the first new child OR the build is not using `key`
|
|
929
|
+
// attributes at all. In either case we need to create a new element
|
|
930
|
+
// for the new node.
|
|
752
931
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
|
|
753
932
|
newStartVnode = newCh[++newStartIdx];
|
|
754
933
|
}
|
|
755
934
|
if (node) {
|
|
935
|
+
// if we created a new node then handle inserting it to the DOM
|
|
756
936
|
{
|
|
757
937
|
parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
|
|
758
938
|
}
|
|
@@ -760,21 +940,43 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
760
940
|
}
|
|
761
941
|
}
|
|
762
942
|
if (oldStartIdx > oldEndIdx) {
|
|
943
|
+
// we have some more new nodes to add which don't match up with old nodes
|
|
763
944
|
addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
|
|
764
945
|
}
|
|
765
946
|
else if (newStartIdx > newEndIdx) {
|
|
947
|
+
// there are nodes in the `oldCh` array which no longer correspond to nodes
|
|
948
|
+
// in the new array, so lets remove them (which entails cleaning up the
|
|
949
|
+
// relevant DOM nodes)
|
|
766
950
|
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
767
951
|
}
|
|
768
952
|
};
|
|
769
|
-
|
|
953
|
+
/**
|
|
954
|
+
* Compare two VNodes to determine if they are the same
|
|
955
|
+
*
|
|
956
|
+
* **NB**: This function is an equality _heuristic_ based on the available
|
|
957
|
+
* information set on the two VNodes and can be misleading under certain
|
|
958
|
+
* circumstances. In particular, if the two nodes do not have `key` attrs
|
|
959
|
+
* (available under `$key$` on VNodes) then the function falls back on merely
|
|
960
|
+
* checking that they have the same tag.
|
|
961
|
+
*
|
|
962
|
+
* So, in other words, if `key` attrs are not set on VNodes which may be
|
|
963
|
+
* changing order within a `children` array or something along those lines then
|
|
964
|
+
* we could obtain a false positive and then have to do needless re-rendering.
|
|
965
|
+
*
|
|
966
|
+
* @param leftVNode the first VNode to check
|
|
967
|
+
* @param rightVNode the second VNode to check
|
|
968
|
+
* @returns whether they're equal or not
|
|
969
|
+
*/
|
|
970
|
+
const isSameVnode = (leftVNode, rightVNode) => {
|
|
770
971
|
// compare if two vnode to see if they're "technically" the same
|
|
771
972
|
// need to have the same element tag, and same key to be the same
|
|
772
|
-
if (
|
|
773
|
-
if (
|
|
774
|
-
return
|
|
973
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
974
|
+
if (leftVNode.$tag$ === 'slot') {
|
|
975
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
775
976
|
}
|
|
977
|
+
// this will be set if components in the build have `key` attrs set on them
|
|
776
978
|
{
|
|
777
|
-
return
|
|
979
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
|
778
980
|
}
|
|
779
981
|
}
|
|
780
982
|
return false;
|
|
@@ -787,6 +989,14 @@ const referenceNode = (node) => {
|
|
|
787
989
|
return (node && node['s-ol']) || node;
|
|
788
990
|
};
|
|
789
991
|
const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
|
|
992
|
+
/**
|
|
993
|
+
* Handle reconciling an outdated VNode with a new one which corresponds to
|
|
994
|
+
* it. This function handles flushing updates to the DOM and reconciling the
|
|
995
|
+
* children of the two nodes (if any).
|
|
996
|
+
*
|
|
997
|
+
* @param oldVNode an old VNode whose DOM element and children we want to update
|
|
998
|
+
* @param newVNode a new VNode representing an updated version of the old one
|
|
999
|
+
*/
|
|
790
1000
|
const patch = (oldVNode, newVNode) => {
|
|
791
1001
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
792
1002
|
const oldChildren = oldVNode.$children$;
|
|
@@ -800,7 +1010,6 @@ const patch = (oldVNode, newVNode) => {
|
|
|
800
1010
|
// only add this to the when the compiler sees we're using an svg somewhere
|
|
801
1011
|
isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
|
|
802
1012
|
}
|
|
803
|
-
// element node
|
|
804
1013
|
{
|
|
805
1014
|
if (tag === 'slot')
|
|
806
1015
|
;
|
|
@@ -813,6 +1022,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
813
1022
|
}
|
|
814
1023
|
if (oldChildren !== null && newChildren !== null) {
|
|
815
1024
|
// looks like there's child vnodes for both the old and new vnodes
|
|
1025
|
+
// so we need to call `updateChildren` to reconcile them
|
|
816
1026
|
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
817
1027
|
}
|
|
818
1028
|
else if (newChildren !== null) {
|
|
@@ -844,7 +1054,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
844
1054
|
};
|
|
845
1055
|
const updateFallbackSlotVisibility = (elm) => {
|
|
846
1056
|
// tslint:disable-next-line: prefer-const
|
|
847
|
-
|
|
1057
|
+
const childNodes = elm.childNodes;
|
|
848
1058
|
let childNode;
|
|
849
1059
|
let i;
|
|
850
1060
|
let ilen;
|
|
@@ -853,7 +1063,7 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
853
1063
|
let nodeType;
|
|
854
1064
|
for (i = 0, ilen = childNodes.length; i < ilen; i++) {
|
|
855
1065
|
childNode = childNodes[i];
|
|
856
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1066
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
857
1067
|
if (childNode['s-sr']) {
|
|
858
1068
|
// this is a slot fallback node
|
|
859
1069
|
// get the slot name for this slot reference node
|
|
@@ -865,7 +1075,7 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
865
1075
|
nodeType = childNodes[j].nodeType;
|
|
866
1076
|
if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
|
|
867
1077
|
// this sibling node is from a different component OR is a named fallback slot node
|
|
868
|
-
if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
|
|
1078
|
+
if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
|
|
869
1079
|
childNode.hidden = true;
|
|
870
1080
|
break;
|
|
871
1081
|
}
|
|
@@ -874,8 +1084,8 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
874
1084
|
// this is a default fallback slot node
|
|
875
1085
|
// any element or text node (with content)
|
|
876
1086
|
// should hide the default fallback slot node
|
|
877
|
-
if (nodeType === 1 /* ElementNode */ ||
|
|
878
|
-
(nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
|
|
1087
|
+
if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
|
|
1088
|
+
(nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
|
|
879
1089
|
childNode.hidden = true;
|
|
880
1090
|
break;
|
|
881
1091
|
}
|
|
@@ -897,8 +1107,8 @@ const relocateSlotContent = (elm) => {
|
|
|
897
1107
|
let relocateNodeData;
|
|
898
1108
|
let j;
|
|
899
1109
|
let i = 0;
|
|
900
|
-
|
|
901
|
-
|
|
1110
|
+
const childNodes = elm.childNodes;
|
|
1111
|
+
const ilen = childNodes.length;
|
|
902
1112
|
for (; i < ilen; i++) {
|
|
903
1113
|
childNode = childNodes[i];
|
|
904
1114
|
if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
|
|
@@ -953,13 +1163,13 @@ const relocateSlotContent = (elm) => {
|
|
|
953
1163
|
}
|
|
954
1164
|
}
|
|
955
1165
|
}
|
|
956
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1166
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
957
1167
|
relocateSlotContent(childNode);
|
|
958
1168
|
}
|
|
959
1169
|
}
|
|
960
1170
|
};
|
|
961
1171
|
const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
|
|
962
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1172
|
+
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
963
1173
|
if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
|
|
964
1174
|
return true;
|
|
965
1175
|
}
|
|
@@ -990,7 +1200,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
990
1200
|
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
991
1201
|
}
|
|
992
1202
|
rootVnode.$tag$ = null;
|
|
993
|
-
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1203
|
+
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
994
1204
|
hostRef.$vnode$ = rootVnode;
|
|
995
1205
|
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
|
|
996
1206
|
{
|
|
@@ -998,7 +1208,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
998
1208
|
}
|
|
999
1209
|
{
|
|
1000
1210
|
contentRef = hostElm['s-cr'];
|
|
1001
|
-
useNativeShadowDom = supportsShadow && (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1211
|
+
useNativeShadowDom = supportsShadow && (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
|
|
1002
1212
|
// always reset
|
|
1003
1213
|
checkSlotFallbackVisibility = false;
|
|
1004
1214
|
}
|
|
@@ -1007,7 +1217,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1007
1217
|
{
|
|
1008
1218
|
// while we're moving nodes around existing nodes, temporarily disable
|
|
1009
1219
|
// the disconnectCallback from working
|
|
1010
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1220
|
+
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
1011
1221
|
if (checkSlotRelocate) {
|
|
1012
1222
|
relocateSlotContent(rootVnode.$elm$);
|
|
1013
1223
|
let relocateData;
|
|
@@ -1065,7 +1275,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1065
1275
|
}
|
|
1066
1276
|
else {
|
|
1067
1277
|
// this node doesn't have a slot home to go to, so let's hide it
|
|
1068
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1278
|
+
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1069
1279
|
nodeToRelocate.hidden = true;
|
|
1070
1280
|
}
|
|
1071
1281
|
}
|
|
@@ -1076,37 +1286,11 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1076
1286
|
}
|
|
1077
1287
|
// done moving nodes around
|
|
1078
1288
|
// allow the disconnect callback to work again
|
|
1079
|
-
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1289
|
+
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
1080
1290
|
// always reset
|
|
1081
1291
|
relocateNodes.length = 0;
|
|
1082
1292
|
}
|
|
1083
1293
|
};
|
|
1084
|
-
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
1085
|
-
const createEvent = (ref, name, flags) => {
|
|
1086
|
-
const elm = getElement(ref);
|
|
1087
|
-
return {
|
|
1088
|
-
emit: (detail) => {
|
|
1089
|
-
return emitEvent(elm, name, {
|
|
1090
|
-
bubbles: !!(flags & 4 /* Bubbles */),
|
|
1091
|
-
composed: !!(flags & 2 /* Composed */),
|
|
1092
|
-
cancelable: !!(flags & 1 /* Cancellable */),
|
|
1093
|
-
detail,
|
|
1094
|
-
});
|
|
1095
|
-
},
|
|
1096
|
-
};
|
|
1097
|
-
};
|
|
1098
|
-
/**
|
|
1099
|
-
* Helper function to create & dispatch a custom Event on a provided target
|
|
1100
|
-
* @param elm the target of the Event
|
|
1101
|
-
* @param name the name to give the custom Event
|
|
1102
|
-
* @param opts options for configuring a custom Event
|
|
1103
|
-
* @returns the custom Event
|
|
1104
|
-
*/
|
|
1105
|
-
const emitEvent = (elm, name, opts) => {
|
|
1106
|
-
const ev = plt.ce(name, opts);
|
|
1107
|
-
elm.dispatchEvent(ev);
|
|
1108
|
-
return ev;
|
|
1109
|
-
};
|
|
1110
1294
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1111
1295
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
1112
1296
|
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
@@ -1114,10 +1298,10 @@ const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
|
1114
1298
|
};
|
|
1115
1299
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
1116
1300
|
{
|
|
1117
|
-
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
1301
|
+
hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
1118
1302
|
}
|
|
1119
|
-
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1120
|
-
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
1303
|
+
if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
|
|
1304
|
+
hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
|
|
1121
1305
|
return;
|
|
1122
1306
|
}
|
|
1123
1307
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
@@ -1133,7 +1317,7 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1133
1317
|
let promise;
|
|
1134
1318
|
if (isInitialLoad) {
|
|
1135
1319
|
{
|
|
1136
|
-
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1320
|
+
hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
|
|
1137
1321
|
if (hostRef.$queuedListeners$) {
|
|
1138
1322
|
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1139
1323
|
hostRef.$queuedListeners$ = null;
|
|
@@ -1182,7 +1366,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1182
1366
|
}
|
|
1183
1367
|
else {
|
|
1184
1368
|
Promise.all(childrenPromises).then(postUpdate);
|
|
1185
|
-
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
1369
|
+
hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
|
|
1186
1370
|
childrenPromises.length = 0;
|
|
1187
1371
|
}
|
|
1188
1372
|
}
|
|
@@ -1191,10 +1375,10 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
1191
1375
|
try {
|
|
1192
1376
|
instance = instance.render() ;
|
|
1193
1377
|
{
|
|
1194
|
-
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
1378
|
+
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
1195
1379
|
}
|
|
1196
1380
|
{
|
|
1197
|
-
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
1381
|
+
hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
|
|
1198
1382
|
}
|
|
1199
1383
|
{
|
|
1200
1384
|
{
|
|
@@ -1218,8 +1402,8 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1218
1402
|
const endPostUpdate = createTime('postUpdate', tagName);
|
|
1219
1403
|
const instance = hostRef.$lazyInstance$ ;
|
|
1220
1404
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1221
|
-
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1222
|
-
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1405
|
+
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
1406
|
+
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
1223
1407
|
{
|
|
1224
1408
|
// DOM WRITE!
|
|
1225
1409
|
addHydratedFlag(elm);
|
|
@@ -1248,10 +1432,10 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1248
1432
|
hostRef.$onRenderResolve$();
|
|
1249
1433
|
hostRef.$onRenderResolve$ = undefined;
|
|
1250
1434
|
}
|
|
1251
|
-
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
1435
|
+
if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
|
|
1252
1436
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1253
1437
|
}
|
|
1254
|
-
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
1438
|
+
hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
|
|
1255
1439
|
}
|
|
1256
1440
|
// ( •_•)
|
|
1257
1441
|
// ( •_•)>⌐■-■
|
|
@@ -1281,30 +1465,6 @@ const then = (promise, thenFn) => {
|
|
|
1281
1465
|
};
|
|
1282
1466
|
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1283
1467
|
;
|
|
1284
|
-
const parsePropertyValue = (propValue, propType) => {
|
|
1285
|
-
// ensure this value is of the correct prop type
|
|
1286
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
1287
|
-
if (propType & 4 /* Boolean */) {
|
|
1288
|
-
// per the HTML spec, any string value means it is a boolean true value
|
|
1289
|
-
// but we'll cheat here and say that the string "false" is the boolean false
|
|
1290
|
-
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
1291
|
-
}
|
|
1292
|
-
if (propType & 2 /* Number */) {
|
|
1293
|
-
// force it to be a number
|
|
1294
|
-
return parseFloat(propValue);
|
|
1295
|
-
}
|
|
1296
|
-
if (propType & 1 /* String */) {
|
|
1297
|
-
// could have been passed as a number or boolean
|
|
1298
|
-
// but we still want it as a string
|
|
1299
|
-
return String(propValue);
|
|
1300
|
-
}
|
|
1301
|
-
// redundant return here for better minification
|
|
1302
|
-
return propValue;
|
|
1303
|
-
}
|
|
1304
|
-
// not sure exactly what type we want
|
|
1305
|
-
// so no need to change to a different type
|
|
1306
|
-
return propValue;
|
|
1307
|
-
};
|
|
1308
1468
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1309
1469
|
const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1310
1470
|
// check our new property value against our internal value
|
|
@@ -1314,13 +1474,16 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1314
1474
|
const flags = hostRef.$flags$;
|
|
1315
1475
|
const instance = hostRef.$lazyInstance$ ;
|
|
1316
1476
|
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1317
|
-
|
|
1477
|
+
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
|
1478
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1479
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1480
|
+
if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
1318
1481
|
// gadzooks! the property's value has changed!!
|
|
1319
1482
|
// set our new value!
|
|
1320
1483
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1321
1484
|
if (instance) {
|
|
1322
1485
|
// get an array of method names of watch functions to call
|
|
1323
|
-
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1486
|
+
if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
|
|
1324
1487
|
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1325
1488
|
if (watchMethods) {
|
|
1326
1489
|
// this instance is watching for when this property changed
|
|
@@ -1335,7 +1498,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1335
1498
|
});
|
|
1336
1499
|
}
|
|
1337
1500
|
}
|
|
1338
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1501
|
+
if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
|
|
1339
1502
|
// looks like this value actually changed, so we've got work to do!
|
|
1340
1503
|
// but only if we've already rendered, otherwise just chill out
|
|
1341
1504
|
// queue that we need to do an update, but don't worry about queuing
|
|
@@ -1345,6 +1508,16 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1345
1508
|
}
|
|
1346
1509
|
}
|
|
1347
1510
|
};
|
|
1511
|
+
/**
|
|
1512
|
+
* Attach a series of runtime constructs to a compiled Stencil component
|
|
1513
|
+
* constructor, including getters and setters for the `@Prop` and `@State`
|
|
1514
|
+
* decorators, callbacks for when attributes change, and so on.
|
|
1515
|
+
*
|
|
1516
|
+
* @param Cstr the constructor for a component that we need to process
|
|
1517
|
+
* @param cmpMeta metadata collected previously about the component
|
|
1518
|
+
* @param flags a number used to store a series of bit flags
|
|
1519
|
+
* @returns a reference to the same constructor passed in (but now mutated)
|
|
1520
|
+
*/
|
|
1348
1521
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1349
1522
|
if (cmpMeta.$members$) {
|
|
1350
1523
|
if (Cstr.watchers) {
|
|
@@ -1354,8 +1527,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1354
1527
|
const members = Object.entries(cmpMeta.$members$);
|
|
1355
1528
|
const prototype = Cstr.prototype;
|
|
1356
1529
|
members.map(([memberName, [memberFlags]]) => {
|
|
1357
|
-
if ((memberFlags & 31 /* Prop */ ||
|
|
1358
|
-
((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
1530
|
+
if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
|
|
1531
|
+
((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
|
|
1359
1532
|
// proxyComponent - prop
|
|
1360
1533
|
Object.defineProperty(prototype, memberName, {
|
|
1361
1534
|
get() {
|
|
@@ -1370,8 +1543,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1370
1543
|
enumerable: true,
|
|
1371
1544
|
});
|
|
1372
1545
|
}
|
|
1373
|
-
else if (flags & 1 /* isElementConstructor */ &&
|
|
1374
|
-
memberFlags & 64 /* Method */) {
|
|
1546
|
+
else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
|
|
1547
|
+
memberFlags & 64 /* MEMBER_FLAGS.Method */) {
|
|
1375
1548
|
// proxyComponent - method
|
|
1376
1549
|
Object.defineProperty(prototype, memberName, {
|
|
1377
1550
|
value(...args) {
|
|
@@ -1381,7 +1554,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1381
1554
|
});
|
|
1382
1555
|
}
|
|
1383
1556
|
});
|
|
1384
|
-
if ((flags & 1 /* isElementConstructor */)) {
|
|
1557
|
+
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
1385
1558
|
const attrNameToPropName = new Map();
|
|
1386
1559
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1387
1560
|
plt.jmp(() => {
|
|
@@ -1437,11 +1610,11 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1437
1610
|
// create an array of attributes to observe
|
|
1438
1611
|
// and also create a map of html attribute name to js property name
|
|
1439
1612
|
Cstr.observedAttributes = members
|
|
1440
|
-
.filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
|
|
1613
|
+
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
|
|
1441
1614
|
.map(([propName, m]) => {
|
|
1442
1615
|
const attrName = m[1] || propName;
|
|
1443
1616
|
attrNameToPropName.set(attrName, propName);
|
|
1444
|
-
if (m[0] & 512 /* ReflectAttr */) {
|
|
1617
|
+
if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
|
|
1445
1618
|
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1446
1619
|
}
|
|
1447
1620
|
return attrName;
|
|
@@ -1452,10 +1625,10 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1452
1625
|
};
|
|
1453
1626
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1454
1627
|
// initializeComponent
|
|
1455
|
-
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1628
|
+
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1456
1629
|
{
|
|
1457
1630
|
// we haven't initialized this element yet
|
|
1458
|
-
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1631
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1459
1632
|
// lazy loaded components
|
|
1460
1633
|
// request the component's implementation to be
|
|
1461
1634
|
// wired up with the host element
|
|
@@ -1473,7 +1646,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1473
1646
|
{
|
|
1474
1647
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1475
1648
|
}
|
|
1476
|
-
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1649
|
+
proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
|
|
1477
1650
|
Cstr.isProxied = true;
|
|
1478
1651
|
}
|
|
1479
1652
|
const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
|
|
@@ -1481,7 +1654,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1481
1654
|
// but let's keep track of when we start and stop
|
|
1482
1655
|
// so that the getters/setters don't incorrectly step on data
|
|
1483
1656
|
{
|
|
1484
|
-
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1657
|
+
hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1485
1658
|
}
|
|
1486
1659
|
// construct the lazy-loaded component implementation
|
|
1487
1660
|
// passing the hostRef is very important during
|
|
@@ -1494,10 +1667,10 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1494
1667
|
consoleError(e);
|
|
1495
1668
|
}
|
|
1496
1669
|
{
|
|
1497
|
-
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1670
|
+
hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1498
1671
|
}
|
|
1499
1672
|
{
|
|
1500
|
-
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1673
|
+
hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
|
|
1501
1674
|
}
|
|
1502
1675
|
endNewInstance();
|
|
1503
1676
|
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
@@ -1511,10 +1684,10 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1511
1684
|
const scopeId = getScopeId(cmpMeta, hostRef.$modeName$);
|
|
1512
1685
|
if (!styles.has(scopeId)) {
|
|
1513
1686
|
const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
|
|
1514
|
-
if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
|
|
1515
|
-
style = await Promise.resolve().then(function () { return require('./shadow-css-
|
|
1687
|
+
if (cmpMeta.$flags$ & 8 /* CMP_FLAGS.needsShadowDomShim */) {
|
|
1688
|
+
style = await Promise.resolve().then(function () { return require('./shadow-css-346c0795.js'); }).then((m) => m.scopeCss(style, scopeId, false));
|
|
1516
1689
|
}
|
|
1517
|
-
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1690
|
+
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
|
|
1518
1691
|
endRegisterStyles();
|
|
1519
1692
|
}
|
|
1520
1693
|
}
|
|
@@ -1541,19 +1714,19 @@ const fireConnectedCallback = (instance) => {
|
|
|
1541
1714
|
}
|
|
1542
1715
|
};
|
|
1543
1716
|
const connectedCallback = (elm) => {
|
|
1544
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1717
|
+
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1545
1718
|
const hostRef = getHostRef(elm);
|
|
1546
1719
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1547
1720
|
const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
|
|
1548
|
-
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1721
|
+
if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
|
|
1549
1722
|
// first time this component has connected
|
|
1550
|
-
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1723
|
+
hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
|
|
1551
1724
|
{
|
|
1552
1725
|
// initUpdate
|
|
1553
1726
|
// if the slot polyfill is required we'll need to put some nodes
|
|
1554
1727
|
// in here to act as original content anchors as we move nodes around
|
|
1555
1728
|
// host element has been connected to the DOM
|
|
1556
|
-
if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
|
|
1729
|
+
if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
|
|
1557
1730
|
setContentReference(elm);
|
|
1558
1731
|
}
|
|
1559
1732
|
}
|
|
@@ -1576,7 +1749,7 @@ const connectedCallback = (elm) => {
|
|
|
1576
1749
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1577
1750
|
if (cmpMeta.$members$) {
|
|
1578
1751
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1579
|
-
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1752
|
+
if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1580
1753
|
const value = elm[memberName];
|
|
1581
1754
|
delete elm[memberName];
|
|
1582
1755
|
elm[memberName] = value;
|
|
@@ -1610,7 +1783,7 @@ const setContentReference = (elm) => {
|
|
|
1610
1783
|
elm.insertBefore(contentRefElm, elm.firstChild);
|
|
1611
1784
|
};
|
|
1612
1785
|
const disconnectedCallback = (elm) => {
|
|
1613
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1786
|
+
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1614
1787
|
const hostRef = getHostRef(elm);
|
|
1615
1788
|
const instance = hostRef.$lazyInstance$ ;
|
|
1616
1789
|
{
|
|
@@ -1661,8 +1834,8 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1661
1834
|
{
|
|
1662
1835
|
cmpMeta.$watchers$ = {};
|
|
1663
1836
|
}
|
|
1664
|
-
if (!supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1665
|
-
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
1837
|
+
if (!supportsShadow && cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
|
|
1838
|
+
cmpMeta.$flags$ |= 8 /* CMP_FLAGS.needsShadowDomShim */;
|
|
1666
1839
|
}
|
|
1667
1840
|
const tagName = cmpMeta.$tagName$;
|
|
1668
1841
|
const HostElement = class extends HTMLElement {
|
|
@@ -1672,7 +1845,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1672
1845
|
super(self);
|
|
1673
1846
|
self = this;
|
|
1674
1847
|
registerHost(self, cmpMeta);
|
|
1675
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1848
|
+
if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
|
|
1676
1849
|
// this component is using shadow dom
|
|
1677
1850
|
// and this browser supports shadow dom
|
|
1678
1851
|
// add the read-only property "shadowRoot" to the host element
|
|
@@ -1710,7 +1883,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1710
1883
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1711
1884
|
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1712
1885
|
cmpTags.push(tagName);
|
|
1713
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1886
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
|
|
1714
1887
|
}
|
|
1715
1888
|
});
|
|
1716
1889
|
});
|
|
@@ -1732,11 +1905,43 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1732
1905
|
// Fallback appLoad event
|
|
1733
1906
|
endBootstrap();
|
|
1734
1907
|
};
|
|
1735
|
-
const
|
|
1736
|
-
|
|
1737
|
-
|
|
1908
|
+
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1909
|
+
if (listeners) {
|
|
1910
|
+
listeners.map(([flags, name, method]) => {
|
|
1911
|
+
const target = getHostListenerTarget(elm, flags) ;
|
|
1912
|
+
const handler = hostListenerProxy(hostRef, method);
|
|
1913
|
+
const opts = hostListenerOpts(flags);
|
|
1914
|
+
plt.ael(target, name, handler, opts);
|
|
1915
|
+
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
1916
|
+
});
|
|
1917
|
+
}
|
|
1738
1918
|
};
|
|
1739
|
-
const
|
|
1919
|
+
const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
1920
|
+
try {
|
|
1921
|
+
{
|
|
1922
|
+
if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
|
|
1923
|
+
// instance is ready, let's call it's member method for this event
|
|
1924
|
+
hostRef.$lazyInstance$[methodName](ev);
|
|
1925
|
+
}
|
|
1926
|
+
else {
|
|
1927
|
+
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
catch (e) {
|
|
1932
|
+
consoleError(e);
|
|
1933
|
+
}
|
|
1934
|
+
};
|
|
1935
|
+
const getHostListenerTarget = (elm, flags) => {
|
|
1936
|
+
if (flags & 4 /* LISTENER_FLAGS.TargetDocument */)
|
|
1937
|
+
return doc;
|
|
1938
|
+
if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
|
|
1939
|
+
return win;
|
|
1940
|
+
return elm;
|
|
1941
|
+
};
|
|
1942
|
+
// prettier-ignore
|
|
1943
|
+
const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
|
|
1944
|
+
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1740
1945
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1741
1946
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
1742
1947
|
const registerHost = (elm, cmpMeta) => {
|
|
@@ -1768,7 +1973,202 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1768
1973
|
if (module) {
|
|
1769
1974
|
return module[exportName];
|
|
1770
1975
|
}
|
|
1976
|
+
|
|
1977
|
+
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
1978
|
+
const processMod = importedModule => {
|
|
1979
|
+
cmpModules.set(bundleId, importedModule);
|
|
1980
|
+
return importedModule[exportName];
|
|
1981
|
+
}
|
|
1982
|
+
switch(bundleId) {
|
|
1983
|
+
|
|
1984
|
+
case 'road-badge_11.cjs':
|
|
1985
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1986
|
+
/* webpackMode: "lazy" */
|
|
1987
|
+
'./road-badge_11.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1988
|
+
case 'road-accordion.cjs':
|
|
1989
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1990
|
+
/* webpackMode: "lazy" */
|
|
1991
|
+
'./road-accordion.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1992
|
+
case 'road-alert.cjs':
|
|
1993
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1994
|
+
/* webpackMode: "lazy" */
|
|
1995
|
+
'./road-alert.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1996
|
+
case 'road-autocomplete.cjs':
|
|
1997
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1998
|
+
/* webpackMode: "lazy" */
|
|
1999
|
+
'./road-autocomplete.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2000
|
+
case 'road-avatar.cjs':
|
|
2001
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2002
|
+
/* webpackMode: "lazy" */
|
|
2003
|
+
'./road-avatar.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2004
|
+
case 'road-banner.cjs':
|
|
2005
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2006
|
+
/* webpackMode: "lazy" */
|
|
2007
|
+
'./road-banner.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2008
|
+
case 'road-carousel.cjs':
|
|
2009
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2010
|
+
/* webpackMode: "lazy" */
|
|
2011
|
+
'./road-carousel.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2012
|
+
case 'road-carousel-item.cjs':
|
|
2013
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2014
|
+
/* webpackMode: "lazy" */
|
|
2015
|
+
'./road-carousel-item.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2016
|
+
case 'road-checkbox.cjs':
|
|
2017
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2018
|
+
/* webpackMode: "lazy" */
|
|
2019
|
+
'./road-checkbox.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2020
|
+
case 'road-chip.cjs':
|
|
2021
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2022
|
+
/* webpackMode: "lazy" */
|
|
2023
|
+
'./road-chip.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2024
|
+
case 'road-collapse.cjs':
|
|
2025
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2026
|
+
/* webpackMode: "lazy" */
|
|
2027
|
+
'./road-collapse.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2028
|
+
case 'road-counter.cjs':
|
|
2029
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2030
|
+
/* webpackMode: "lazy" */
|
|
2031
|
+
'./road-counter.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2032
|
+
case 'road-dialog.cjs':
|
|
2033
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2034
|
+
/* webpackMode: "lazy" */
|
|
2035
|
+
'./road-dialog.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2036
|
+
case 'road-dropdown.cjs':
|
|
2037
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2038
|
+
/* webpackMode: "lazy" */
|
|
2039
|
+
'./road-dropdown.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2040
|
+
case 'road-duration.cjs':
|
|
2041
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2042
|
+
/* webpackMode: "lazy" */
|
|
2043
|
+
'./road-duration.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2044
|
+
case 'road-flap.cjs':
|
|
2045
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2046
|
+
/* webpackMode: "lazy" */
|
|
2047
|
+
'./road-flap.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2048
|
+
case 'road-img.cjs':
|
|
2049
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2050
|
+
/* webpackMode: "lazy" */
|
|
2051
|
+
'./road-img.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2052
|
+
case 'road-modal.cjs':
|
|
2053
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2054
|
+
/* webpackMode: "lazy" */
|
|
2055
|
+
'./road-modal.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2056
|
+
case 'road-navbar.cjs':
|
|
2057
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2058
|
+
/* webpackMode: "lazy" */
|
|
2059
|
+
'./road-navbar.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2060
|
+
case 'road-navbar-item.cjs':
|
|
2061
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2062
|
+
/* webpackMode: "lazy" */
|
|
2063
|
+
'./road-navbar-item.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2064
|
+
case 'road-plate-number.cjs':
|
|
2065
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2066
|
+
/* webpackMode: "lazy" */
|
|
2067
|
+
'./road-plate-number.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2068
|
+
case 'road-progress.cjs':
|
|
2069
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2070
|
+
/* webpackMode: "lazy" */
|
|
2071
|
+
'./road-progress.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2072
|
+
case 'road-radio.cjs':
|
|
2073
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2074
|
+
/* webpackMode: "lazy" */
|
|
2075
|
+
'./road-radio.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2076
|
+
case 'road-radio-group.cjs':
|
|
2077
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2078
|
+
/* webpackMode: "lazy" */
|
|
2079
|
+
'./road-radio-group.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2080
|
+
case 'road-range.cjs':
|
|
2081
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2082
|
+
/* webpackMode: "lazy" */
|
|
2083
|
+
'./road-range.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2084
|
+
case 'road-rating.cjs':
|
|
2085
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2086
|
+
/* webpackMode: "lazy" */
|
|
2087
|
+
'./road-rating.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2088
|
+
case 'road-select.cjs':
|
|
2089
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2090
|
+
/* webpackMode: "lazy" */
|
|
2091
|
+
'./road-select.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2092
|
+
case 'road-select-filter.cjs':
|
|
2093
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2094
|
+
/* webpackMode: "lazy" */
|
|
2095
|
+
'./road-select-filter.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2096
|
+
case 'road-skeleton.cjs':
|
|
2097
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2098
|
+
/* webpackMode: "lazy" */
|
|
2099
|
+
'./road-skeleton.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2100
|
+
case 'road-spinner.cjs':
|
|
2101
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2102
|
+
/* webpackMode: "lazy" */
|
|
2103
|
+
'./road-spinner.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2104
|
+
case 'road-stepper.cjs':
|
|
2105
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2106
|
+
/* webpackMode: "lazy" */
|
|
2107
|
+
'./road-stepper.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2108
|
+
case 'road-switch.cjs':
|
|
2109
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2110
|
+
/* webpackMode: "lazy" */
|
|
2111
|
+
'./road-switch.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2112
|
+
case 'road-tab.cjs':
|
|
2113
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2114
|
+
/* webpackMode: "lazy" */
|
|
2115
|
+
'./road-tab.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2116
|
+
case 'road-tab-bar.cjs':
|
|
2117
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2118
|
+
/* webpackMode: "lazy" */
|
|
2119
|
+
'./road-tab-bar.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2120
|
+
case 'road-tab-button.cjs':
|
|
2121
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2122
|
+
/* webpackMode: "lazy" */
|
|
2123
|
+
'./road-tab-button.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2124
|
+
case 'road-table.cjs':
|
|
2125
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2126
|
+
/* webpackMode: "lazy" */
|
|
2127
|
+
'./road-table.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2128
|
+
case 'road-tabs.cjs':
|
|
2129
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2130
|
+
/* webpackMode: "lazy" */
|
|
2131
|
+
'./road-tabs.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2132
|
+
case 'road-text.cjs':
|
|
2133
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2134
|
+
/* webpackMode: "lazy" */
|
|
2135
|
+
'./road-text.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2136
|
+
case 'road-textarea.cjs':
|
|
2137
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2138
|
+
/* webpackMode: "lazy" */
|
|
2139
|
+
'./road-textarea.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2140
|
+
case 'road-toast.cjs':
|
|
2141
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2142
|
+
/* webpackMode: "lazy" */
|
|
2143
|
+
'./road-toast.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2144
|
+
case 'road-toggle.cjs':
|
|
2145
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2146
|
+
/* webpackMode: "lazy" */
|
|
2147
|
+
'./road-toggle.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2148
|
+
case 'road-toolbar-title.cjs':
|
|
2149
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2150
|
+
/* webpackMode: "lazy" */
|
|
2151
|
+
'./road-toolbar-title.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2152
|
+
case 'road-tooltip.cjs':
|
|
2153
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2154
|
+
/* webpackMode: "lazy" */
|
|
2155
|
+
'./road-tooltip.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2156
|
+
case 'road-card.cjs':
|
|
2157
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2158
|
+
/* webpackMode: "lazy" */
|
|
2159
|
+
'./road-card.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2160
|
+
case 'road-input.cjs':
|
|
2161
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2162
|
+
/* webpackMode: "lazy" */
|
|
2163
|
+
'./road-input.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2164
|
+
case 'road-input-group.cjs':
|
|
2165
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2166
|
+
/* webpackMode: "lazy" */
|
|
2167
|
+
'./road-input-group.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
1771
2170
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2171
|
+
/* @vite-ignore */
|
|
1772
2172
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1773
2173
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1774
2174
|
/* webpackMode: "lazy" */
|
|
@@ -1779,15 +2179,39 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1779
2179
|
return importedModule[exportName];
|
|
1780
2180
|
}, consoleError);
|
|
1781
2181
|
};
|
|
1782
|
-
const styles = new Map();
|
|
2182
|
+
const styles = /*@__PURE__*/ new Map();
|
|
1783
2183
|
const modeResolutionChain = [];
|
|
2184
|
+
const win = typeof window !== 'undefined' ? window : {};
|
|
2185
|
+
const CSS = win.CSS ;
|
|
2186
|
+
const doc = win.document || { head: {} };
|
|
2187
|
+
const plt = {
|
|
2188
|
+
$flags$: 0,
|
|
2189
|
+
$resourcesUrl$: '',
|
|
2190
|
+
jmp: (h) => h(),
|
|
2191
|
+
raf: (h) => requestAnimationFrame(h),
|
|
2192
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
2193
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
2194
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
2195
|
+
};
|
|
2196
|
+
const supportsShadow = /*@__PURE__*/ (() => (doc.head.attachShadow + '').indexOf('[native') > -1)()
|
|
2197
|
+
;
|
|
2198
|
+
const promiseResolve = (v) => Promise.resolve(v);
|
|
2199
|
+
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
2200
|
+
try {
|
|
2201
|
+
new CSSStyleSheet();
|
|
2202
|
+
return typeof new CSSStyleSheet().replaceSync === 'function';
|
|
2203
|
+
}
|
|
2204
|
+
catch (e) { }
|
|
2205
|
+
return false;
|
|
2206
|
+
})()
|
|
2207
|
+
;
|
|
1784
2208
|
const queueDomReads = [];
|
|
1785
2209
|
const queueDomWrites = [];
|
|
1786
2210
|
const queueTask = (queue, write) => (cb) => {
|
|
1787
2211
|
queue.push(cb);
|
|
1788
2212
|
if (!queuePending) {
|
|
1789
2213
|
queuePending = true;
|
|
1790
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
2214
|
+
if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
|
|
1791
2215
|
nextTick(flush);
|
|
1792
2216
|
}
|
|
1793
2217
|
else {
|