@arcgis/map-components 4.29.0-beta.3 → 4.29.0-beta.30
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/{readme.md → README.md} +1 -1
- package/dist/arcgis-map-components/arcgis-map-components.esm.js +1 -1
- package/dist/arcgis-map-components/p-0076e605.entry.js +1 -0
- package/dist/arcgis-map-components/p-009f057c.entry.js +1 -0
- package/dist/arcgis-map-components/p-0127ffba.entry.js +1 -0
- package/dist/arcgis-map-components/{p-620959fc.js → p-01e1a2e1.js} +1 -1
- package/dist/arcgis-map-components/p-0bb43cd0.entry.js +1 -0
- package/dist/arcgis-map-components/p-0d1cd2e8.entry.js +1 -0
- package/dist/arcgis-map-components/p-0f14ea76.entry.js +1 -0
- package/dist/arcgis-map-components/p-0fcaa85d.entry.js +1 -0
- package/dist/arcgis-map-components/p-0fdf755a.entry.js +1 -0
- package/dist/arcgis-map-components/p-10572d2b.entry.js +1 -0
- package/dist/arcgis-map-components/p-12a52958.entry.js +1 -0
- package/dist/arcgis-map-components/p-149ebf01.entry.js +1 -0
- package/dist/arcgis-map-components/p-20df3c4e.entry.js +1 -0
- package/dist/arcgis-map-components/p-24a675dd.entry.js +1 -0
- package/dist/arcgis-map-components/p-2f2e72ee.entry.js +1 -0
- package/dist/arcgis-map-components/p-300406b2.entry.js +1 -0
- package/dist/arcgis-map-components/p-362072b4.entry.js +1 -0
- package/dist/arcgis-map-components/p-3bff45a4.entry.js +1 -0
- package/dist/arcgis-map-components/p-4677414a.entry.js +1 -0
- package/dist/arcgis-map-components/p-4c57ff19.entry.js +1 -0
- package/dist/arcgis-map-components/p-4da9380f.entry.js +1 -0
- package/dist/arcgis-map-components/p-4e46d4c9.entry.js +1 -0
- package/dist/arcgis-map-components/p-5128f95d.entry.js +1 -0
- package/dist/arcgis-map-components/p-5bf9cd80.entry.js +1 -0
- package/dist/arcgis-map-components/p-5fc3de02.entry.js +1 -0
- package/dist/arcgis-map-components/p-61a2aad6.entry.js +1 -0
- package/dist/arcgis-map-components/p-6d23feca.entry.js +1 -0
- package/dist/arcgis-map-components/p-7abd0a2e.js +1 -0
- package/dist/arcgis-map-components/p-8691e75d.entry.js +1 -0
- package/dist/arcgis-map-components/p-88368469.entry.js +1 -0
- package/dist/arcgis-map-components/p-89d6dbd8.entry.js +1 -0
- package/dist/arcgis-map-components/p-8c600310.entry.js +1 -0
- package/dist/arcgis-map-components/p-96b91396.entry.js +1 -0
- package/dist/arcgis-map-components/p-a3f21e98.entry.js +1 -0
- package/dist/arcgis-map-components/p-a584465f.entry.js +1 -0
- package/dist/arcgis-map-components/p-ab8aabdd.entry.js +1 -0
- package/dist/arcgis-map-components/p-ab913166.entry.js +1 -0
- package/dist/arcgis-map-components/p-ac581e44.entry.js +1 -0
- package/dist/arcgis-map-components/p-af78f7b8.js +1 -0
- package/dist/arcgis-map-components/p-b1269a65.entry.js +1 -0
- package/dist/arcgis-map-components/p-b2eba29e.entry.js +1 -0
- package/dist/arcgis-map-components/p-b9195a9c.entry.js +1 -0
- package/dist/arcgis-map-components/p-b9c68beb.entry.js +1 -0
- package/dist/arcgis-map-components/p-be3c8618.entry.js +1 -0
- package/dist/arcgis-map-components/p-ccc17e7b.entry.js +1 -0
- package/dist/arcgis-map-components/p-ccfa2c32.entry.js +1 -0
- package/dist/arcgis-map-components/p-d59a24e9.entry.js +1 -0
- package/dist/arcgis-map-components/p-da88cac1.entry.js +1 -0
- package/dist/arcgis-map-components/p-e1665f38.entry.js +1 -0
- package/dist/arcgis-map-components/p-e6f8ae2b.entry.js +1 -0
- package/dist/arcgis-map-components/p-e9c3edb0.entry.js +1 -0
- package/dist/arcgis-map-components/p-ed9f6cfa.js +2 -0
- package/dist/arcgis-map-components/p-f55b57a8.entry.js +1 -0
- package/dist/arcgis-map-components/p-f6a6f495.entry.js +1 -0
- package/dist/arcgis-map-components/p-fa328109.entry.js +1 -0
- package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +9 -8
- package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-attachments.cjs.entry.js +6 -5
- package/dist/cjs/arcgis-basemap-gallery.cjs.entry.js +9 -8
- package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +17 -16
- package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +11 -10
- package/dist/cjs/arcgis-bookmarks.cjs.entry.js +9 -8
- package/dist/cjs/arcgis-building-explorer.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-compass.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +9 -8
- package/dist/cjs/arcgis-daylight.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-directions.cjs.entry.js +22 -10
- package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +9 -8
- package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-editor.cjs.entry.js +9 -8
- package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-expand_4.cjs.entry.js +334 -554
- package/dist/cjs/arcgis-feature-form.cjs.entry.js +5 -4
- package/dist/cjs/arcgis-feature-table.cjs.entry.js +314 -0
- package/dist/cjs/arcgis-feature-templates.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-feature.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-features.cjs.entry.js +13 -12
- package/dist/cjs/arcgis-floor-filter.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-fullscreen.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-histogram.cjs.entry.js +5 -4
- package/dist/cjs/arcgis-home.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-layer-list.cjs.entry.js +9 -8
- package/dist/cjs/arcgis-legend.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +9 -8
- package/dist/cjs/arcgis-locate.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-map-components.cjs.js +2 -2
- package/dist/cjs/arcgis-measurement.cjs.entry.js +9 -8
- package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-print.cjs.entry.js +9 -8
- package/dist/cjs/arcgis-scale-bar.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-search.cjs.entry.js +277 -0
- package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-sketch.cjs.entry.js +13 -12
- package/dist/cjs/arcgis-slice.cjs.entry.js +9 -8
- package/dist/cjs/arcgis-slider.cjs.entry.js +23 -22
- package/dist/cjs/arcgis-swipe.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-table-list.cjs.entry.js +9 -8
- package/dist/cjs/arcgis-time-slider.cjs.entry.js +9 -8
- package/dist/cjs/arcgis-track.cjs.entry.js +9 -8
- package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-value-picker.cjs.entry.js +13 -12
- package/dist/cjs/arcgis-weather.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-zoom.cjs.entry.js +7 -6
- package/dist/cjs/{component-utils-cbd20e88.js → component-utils-54ae1d40.js} +29 -3
- package/dist/cjs/{disconnected-306cb220.js → disconnected-86c5cc08.js} +11 -3
- package/dist/cjs/{index-6b51d5a0.js → index-b9b7643c.js} +385 -8
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/components/arcgis-area-measurement-2d.js +8 -6
- package/dist/components/arcgis-area-measurement-3d.js +6 -4
- package/dist/components/arcgis-attachments.js +6 -4
- package/dist/components/arcgis-basemap-gallery.js +8 -6
- package/dist/components/arcgis-basemap-layer-list.js +16 -14
- package/dist/components/arcgis-basemap-toggle.js +10 -8
- package/dist/components/arcgis-bookmarks.js +8 -6
- package/dist/components/arcgis-building-explorer.js +6 -4
- package/dist/components/arcgis-compass.js +5 -3
- package/dist/components/arcgis-coordinate-conversion.js +8 -6
- package/dist/components/arcgis-daylight.js +6 -4
- package/dist/components/arcgis-directions.js +21 -8
- package/dist/components/arcgis-directline-measurement-3d.js +8 -6
- package/dist/components/arcgis-distance-measurement-2d.js +6 -4
- package/dist/components/arcgis-editor.js +8 -6
- package/dist/components/arcgis-elevation-profile.js +6 -4
- package/dist/components/arcgis-expand.js +1 -1
- package/dist/components/arcgis-feature-form.js +3 -2
- package/dist/components/arcgis-feature-table.js +22 -14
- package/dist/components/arcgis-feature-templates.js +6 -4
- package/dist/components/arcgis-feature.js +6 -4
- package/dist/components/arcgis-features.js +12 -10
- package/dist/components/arcgis-floor-filter.js +6 -4
- package/dist/components/arcgis-fullscreen.js +5 -3
- package/dist/components/arcgis-histogram-range-slider.js +6 -4
- package/dist/components/arcgis-histogram.js +3 -2
- package/dist/components/arcgis-home.js +5 -3
- package/dist/components/arcgis-layer-list.js +8 -6
- package/dist/components/arcgis-legend.js +6 -4
- package/dist/components/arcgis-line-of-sight.js +8 -6
- package/dist/components/arcgis-locate.js +5 -3
- package/dist/components/arcgis-map.js +107 -35
- package/dist/components/arcgis-measurement.js +8 -6
- package/dist/components/arcgis-navigation-toggle.js +5 -3
- package/dist/components/arcgis-placement.d.ts +11 -0
- package/dist/components/arcgis-placement.js +68 -0
- package/dist/components/arcgis-print.js +8 -6
- package/dist/components/arcgis-scale-bar.js +6 -4
- package/dist/components/arcgis-scale-range-slider.js +6 -4
- package/dist/components/arcgis-scene.js +106 -29
- package/dist/components/arcgis-search.js +20 -18
- package/dist/components/arcgis-shadow-cast.js +6 -4
- package/dist/components/arcgis-sketch.js +12 -10
- package/dist/components/arcgis-slice.js +8 -6
- package/dist/components/arcgis-slider.js +22 -20
- package/dist/components/arcgis-swipe.js +5 -3
- package/dist/components/arcgis-table-list.js +8 -6
- package/dist/components/arcgis-time-slider.js +8 -6
- package/dist/components/arcgis-track.js +7 -5
- package/dist/components/arcgis-utility-network-associations.js +6 -4
- package/dist/components/arcgis-utility-network-trace.js +6 -4
- package/dist/components/arcgis-utility-network-validate-topology.js +6 -4
- package/dist/components/arcgis-value-picker.js +12 -10
- package/dist/components/arcgis-weather.js +6 -4
- package/dist/components/arcgis-zoom.js +5 -3
- package/dist/components/component-utils.js +119 -0
- package/dist/components/disconnected.js +11 -97
- package/dist/components/{arcgis-expand2.js → expand.js} +6 -3
- package/dist/components/index.d.ts +54 -53
- package/dist/components/index.js +1 -0
- package/dist/esm/arcgis-area-measurement-2d.entry.js +9 -8
- package/dist/esm/arcgis-area-measurement-3d.entry.js +7 -6
- package/dist/esm/arcgis-attachments.entry.js +6 -5
- package/dist/esm/arcgis-basemap-gallery.entry.js +9 -8
- package/dist/esm/arcgis-basemap-layer-list.entry.js +17 -16
- package/dist/esm/arcgis-basemap-toggle.entry.js +11 -10
- package/dist/esm/arcgis-bookmarks.entry.js +9 -8
- package/dist/esm/arcgis-building-explorer.entry.js +7 -6
- package/dist/esm/arcgis-compass.entry.js +7 -6
- package/dist/esm/arcgis-coordinate-conversion.entry.js +9 -8
- package/dist/esm/arcgis-daylight.entry.js +7 -6
- package/dist/esm/arcgis-directions.entry.js +22 -10
- package/dist/esm/arcgis-directline-measurement-3d.entry.js +9 -8
- package/dist/esm/arcgis-distance-measurement-2d.entry.js +7 -6
- package/dist/esm/arcgis-editor.entry.js +9 -8
- package/dist/esm/arcgis-elevation-profile.entry.js +7 -6
- package/dist/esm/arcgis-expand_4.entry.js +333 -553
- package/dist/esm/arcgis-feature-form.entry.js +5 -4
- package/dist/esm/arcgis-feature-table.entry.js +310 -0
- package/dist/esm/arcgis-feature-templates.entry.js +7 -6
- package/dist/esm/arcgis-feature.entry.js +7 -6
- package/dist/esm/arcgis-features.entry.js +13 -12
- package/dist/esm/arcgis-floor-filter.entry.js +7 -6
- package/dist/esm/arcgis-fullscreen.entry.js +7 -6
- package/dist/esm/arcgis-histogram-range-slider.entry.js +7 -6
- package/dist/esm/arcgis-histogram.entry.js +5 -4
- package/dist/esm/arcgis-home.entry.js +7 -6
- package/dist/esm/arcgis-layer-list.entry.js +9 -8
- package/dist/esm/arcgis-legend.entry.js +7 -6
- package/dist/esm/arcgis-line-of-sight.entry.js +9 -8
- package/dist/esm/arcgis-locate.entry.js +7 -6
- package/dist/esm/arcgis-map-components.js +3 -3
- package/dist/esm/arcgis-measurement.entry.js +9 -8
- package/dist/esm/arcgis-navigation-toggle.entry.js +7 -6
- package/dist/esm/arcgis-print.entry.js +9 -8
- package/dist/esm/arcgis-scale-bar.entry.js +7 -6
- package/dist/esm/arcgis-scale-range-slider.entry.js +7 -6
- package/dist/esm/arcgis-search.entry.js +273 -0
- package/dist/esm/arcgis-shadow-cast.entry.js +7 -6
- package/dist/esm/arcgis-sketch.entry.js +13 -12
- package/dist/esm/arcgis-slice.entry.js +9 -8
- package/dist/esm/arcgis-slider.entry.js +23 -22
- package/dist/esm/arcgis-swipe.entry.js +7 -6
- package/dist/esm/arcgis-table-list.entry.js +9 -8
- package/dist/esm/arcgis-time-slider.entry.js +9 -8
- package/dist/esm/arcgis-track.entry.js +9 -8
- package/dist/esm/arcgis-utility-network-associations.entry.js +7 -6
- package/dist/esm/arcgis-utility-network-trace.entry.js +7 -6
- package/dist/esm/arcgis-utility-network-validate-topology.entry.js +7 -6
- package/dist/esm/arcgis-value-picker.entry.js +13 -12
- package/dist/esm/arcgis-weather.entry.js +7 -6
- package/dist/esm/arcgis-zoom.entry.js +7 -6
- package/dist/esm/{component-utils-2ebdae59.js → component-utils-6b40f5ab.js} +28 -4
- package/dist/esm/{disconnected-bc5fc8bc.js → disconnected-dc405cac.js} +11 -3
- package/dist/esm/{index-c227d296.js → index-307928e0.js} +1 -1
- package/dist/esm/{index-eb3ead33.js → index-d73b34b5.js} +385 -8
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/{arcgis-area-measurement-2d/arcgis-area-measurement-2d.d.ts → area-measurement-2d/area-measurement-2d.d.ts} +1 -0
- package/dist/types/components/{arcgis-area-measurement-3d/arcgis-area-measurement-3d.d.ts → area-measurement-3d/area-measurement-3d.d.ts} +1 -0
- package/dist/types/components/{arcgis-attachments/arcgis-attachments.d.ts → attachments/attachments.d.ts} +1 -0
- package/dist/types/components/{arcgis-basemap-gallery/arcgis-basemap-gallery.d.ts → basemap-gallery/basemap-gallery.d.ts} +1 -0
- package/dist/types/components/{arcgis-basemap-layer-list/arcgis-basemap-layer-list.d.ts → basemap-layer-list/basemap-layer-list.d.ts} +1 -0
- package/dist/types/components/{arcgis-basemap-toggle/arcgis-basemap-toggle.d.ts → basemap-toggle/basemap-toggle.d.ts} +1 -0
- package/dist/types/components/{arcgis-bookmarks/arcgis-bookmarks.d.ts → bookmarks/bookmarks.d.ts} +1 -0
- package/dist/types/components/{arcgis-building-explorer/arcgis-building-explorer.d.ts → building-explorer/building-explorer.d.ts} +1 -0
- package/dist/types/components/{arcgis-compass/arcgis-compass.d.ts → compass/compass.d.ts} +1 -0
- package/dist/types/components/{arcgis-coordinate-conversion/arcgis-coordinate-conversion.d.ts → coordinate-conversion/coordinate-conversion.d.ts} +1 -0
- package/dist/types/components/{arcgis-daylight/arcgis-daylight.d.ts → daylight/daylight.d.ts} +1 -0
- package/dist/types/components/{arcgis-directions/arcgis-directions.d.ts → directions/directions.d.ts} +2 -1
- package/dist/types/components/{arcgis-directline-measurement-3d/arcgis-directline-measurement-3d.d.ts → directline-measurement-3d/directline-measurement-3d.d.ts} +1 -0
- package/dist/types/components/{arcgis-distance-measurement-2d/arcgis-distance-measurement-2d.d.ts → distance-measurement-2d/distance-measurement-2d.d.ts} +1 -0
- package/dist/types/components/{arcgis-editor/arcgis-editor.d.ts → editor/editor.d.ts} +1 -0
- package/dist/types/components/{arcgis-elevation-profile/arcgis-elevation-profile.d.ts → elevation-profile/elevation-profile.d.ts} +1 -0
- package/dist/types/components/{arcgis-expand/arcgis-expand.d.ts → expand/expand.d.ts} +1 -0
- package/dist/types/components/{arcgis-feature/arcgis-feature.d.ts → feature/feature.d.ts} +1 -0
- package/dist/types/components/{arcgis-feature-form/arcgis-feature-form.d.ts → feature-form/feature-form.d.ts} +1 -0
- package/dist/types/components/{arcgis-feature-table/arcgis-feature-table.d.ts → feature-table/feature-table.d.ts} +1 -0
- package/dist/types/components/{arcgis-feature-templates/arcgis-feature-templates.d.ts → feature-templates/feature-templates.d.ts} +1 -0
- package/dist/types/components/{arcgis-features/arcgis-features.d.ts → features/features.d.ts} +1 -0
- package/dist/types/components/{arcgis-floor-filter/arcgis-floor-filter.d.ts → floor-filter/floor-filter.d.ts} +1 -0
- package/dist/types/components/{arcgis-fullscreen/arcgis-fullscreen.d.ts → fullscreen/fullscreen.d.ts} +1 -0
- package/dist/types/components/{arcgis-histogram/arcgis-histogram.d.ts → histogram/histogram.d.ts} +1 -0
- package/dist/types/components/{arcgis-histogram-range-slider/arcgis-histogram-range-slider.d.ts → histogram-range-slider/histogram-range-slider.d.ts} +1 -0
- package/dist/types/components/{arcgis-home/arcgis-home.d.ts → home/home.d.ts} +1 -0
- package/dist/types/components/{arcgis-layer-list/arcgis-layer-list.d.ts → layer-list/layer-list.d.ts} +1 -0
- package/dist/types/components/{arcgis-legend/arcgis-legend.d.ts → legend/legend.d.ts} +1 -0
- package/dist/types/components/{arcgis-line-of-sight/arcgis-line-of-sight.d.ts → line-of-sight/line-of-sight.d.ts} +1 -0
- package/dist/types/components/{arcgis-locate/arcgis-locate.d.ts → locate/locate.d.ts} +1 -0
- package/dist/types/components/{arcgis-map/arcgis-map.d.ts → map/map.d.ts} +11 -2
- package/dist/types/components/{arcgis-measurement/arcgis-measurement.d.ts → measurement/measurement.d.ts} +1 -0
- package/dist/types/components/{arcgis-navigation-toggle/arcgis-navigation-toggle.d.ts → navigation-toggle/navigation-toggle.d.ts} +1 -0
- package/dist/types/components/placement/placement.d.ts +18 -0
- package/dist/types/components/{arcgis-print/arcgis-print.d.ts → print/print.d.ts} +1 -0
- package/dist/types/components/{arcgis-scale-bar/arcgis-scale-bar.d.ts → scale-bar/scale-bar.d.ts} +1 -0
- package/dist/types/components/{arcgis-scale-range-slider/arcgis-scale-range-slider.d.ts → scale-range-slider/scale-range-slider.d.ts} +1 -0
- package/dist/types/components/{arcgis-scene/arcgis-scene.d.ts → scene/scene.d.ts} +11 -2
- package/dist/types/components/{arcgis-search/arcgis-search.d.ts → search/search.d.ts} +1 -0
- package/dist/types/components/{arcgis-shadow-cast/arcgis-shadow-cast.d.ts → shadow-cast/shadow-cast.d.ts} +1 -0
- package/dist/types/components/{arcgis-sketch/arcgis-sketch.d.ts → sketch/sketch.d.ts} +1 -0
- package/dist/types/components/{arcgis-slice/arcgis-slice.d.ts → slice/slice.d.ts} +1 -0
- package/dist/types/components/{arcgis-slider/arcgis-slider.d.ts → slider/slider.d.ts} +1 -0
- package/dist/types/components/{arcgis-swipe/arcgis-swipe.d.ts → swipe/swipe.d.ts} +1 -0
- package/dist/types/components/{arcgis-table-list/arcgis-table-list.d.ts → table-list/table-list.d.ts} +1 -0
- package/dist/types/components/{arcgis-time-slider/arcgis-time-slider.d.ts → time-slider/time-slider.d.ts} +1 -0
- package/dist/types/components/{arcgis-track/arcgis-track.d.ts → track/track.d.ts} +1 -0
- package/dist/types/components/{arcgis-utility-network-associations/arcgis-utility-network-associations.d.ts → utility-network-associations/utility-network-associations.d.ts} +1 -0
- package/dist/types/components/{arcgis-utility-network-trace/arcgis-utility-network-trace.d.ts → utility-network-trace/utility-network-trace.d.ts} +1 -0
- package/dist/types/components/{arcgis-utility-network-validate-topology/arcgis-utility-network-validate-topology.d.ts → utility-network-validate-topology/utility-network-validate-topology.d.ts} +1 -0
- package/dist/types/components/{arcgis-value-picker/arcgis-value-picker.d.ts → value-picker/value-picker.d.ts} +1 -0
- package/dist/types/components/{arcgis-weather/arcgis-weather.d.ts → weather/weather.d.ts} +1 -0
- package/dist/types/components/{arcgis-zoom/arcgis-zoom.d.ts → zoom/zoom.d.ts} +1 -0
- package/dist/types/components.d.ts +75 -51
- package/dist/types/utils/component-utils.d.ts +9 -4
- package/package.json +15 -15
- package/dist/arcgis-map-components/p-01d9efae.entry.js +0 -1
- package/dist/arcgis-map-components/p-11e7ce02.entry.js +0 -1
- package/dist/arcgis-map-components/p-1435356e.entry.js +0 -1
- package/dist/arcgis-map-components/p-174f9d11.entry.js +0 -1
- package/dist/arcgis-map-components/p-18c653a4.entry.js +0 -1
- package/dist/arcgis-map-components/p-1b5e33ea.entry.js +0 -1
- package/dist/arcgis-map-components/p-1c631990.entry.js +0 -1
- package/dist/arcgis-map-components/p-1e5e5ed9.js +0 -2
- package/dist/arcgis-map-components/p-21721d4b.entry.js +0 -1
- package/dist/arcgis-map-components/p-2becbf01.entry.js +0 -1
- package/dist/arcgis-map-components/p-2c5be6b0.entry.js +0 -1
- package/dist/arcgis-map-components/p-2d3406f7.js +0 -1
- package/dist/arcgis-map-components/p-312ff83f.entry.js +0 -1
- package/dist/arcgis-map-components/p-3361d81f.entry.js +0 -1
- package/dist/arcgis-map-components/p-3587b4d8.entry.js +0 -1
- package/dist/arcgis-map-components/p-3b5560bb.entry.js +0 -1
- package/dist/arcgis-map-components/p-3e676259.entry.js +0 -1
- package/dist/arcgis-map-components/p-47629a4c.entry.js +0 -1
- package/dist/arcgis-map-components/p-4b5fa9a2.entry.js +0 -1
- package/dist/arcgis-map-components/p-4bb15110.entry.js +0 -1
- package/dist/arcgis-map-components/p-4c103777.entry.js +0 -1
- package/dist/arcgis-map-components/p-4d5e7ddd.entry.js +0 -1
- package/dist/arcgis-map-components/p-4fa3c6fe.entry.js +0 -1
- package/dist/arcgis-map-components/p-501861a1.entry.js +0 -1
- package/dist/arcgis-map-components/p-535bf289.entry.js +0 -1
- package/dist/arcgis-map-components/p-5a91868a.entry.js +0 -1
- package/dist/arcgis-map-components/p-5cabdee7.js +0 -1
- package/dist/arcgis-map-components/p-5d835456.entry.js +0 -1
- package/dist/arcgis-map-components/p-5db2786d.entry.js +0 -1
- package/dist/arcgis-map-components/p-5ea3ce11.entry.js +0 -1
- package/dist/arcgis-map-components/p-721673c8.entry.js +0 -1
- package/dist/arcgis-map-components/p-8c18a99c.entry.js +0 -1
- package/dist/arcgis-map-components/p-8d184d92.entry.js +0 -1
- package/dist/arcgis-map-components/p-8fde8001.entry.js +0 -1
- package/dist/arcgis-map-components/p-927f8748.entry.js +0 -1
- package/dist/arcgis-map-components/p-9aad48fe.entry.js +0 -1
- package/dist/arcgis-map-components/p-9c1b8e69.entry.js +0 -1
- package/dist/arcgis-map-components/p-9e667282.entry.js +0 -1
- package/dist/arcgis-map-components/p-a67dda4e.entry.js +0 -1
- package/dist/arcgis-map-components/p-acb4a35a.entry.js +0 -1
- package/dist/arcgis-map-components/p-b19043d5.entry.js +0 -1
- package/dist/arcgis-map-components/p-b813c9e6.js +0 -1
- package/dist/arcgis-map-components/p-bb6e5f04.entry.js +0 -1
- package/dist/arcgis-map-components/p-bfae0a1f.entry.js +0 -1
- package/dist/arcgis-map-components/p-c63a5c7f.entry.js +0 -1
- package/dist/arcgis-map-components/p-ce14e49f.entry.js +0 -1
- package/dist/arcgis-map-components/p-d3fbbf3f.entry.js +0 -1
- package/dist/arcgis-map-components/p-d8be8a46.entry.js +0 -1
- package/dist/arcgis-map-components/p-dafb17cf.entry.js +0 -1
- package/dist/arcgis-map-components/p-ec2cc024.entry.js +0 -1
- package/dist/arcgis-map-components/p-ef0b3818.entry.js +0 -1
- package/dist/arcgis-map-components/p-f0e5dcc7.entry.js +0 -1
- package/dist/arcgis-map-components/p-f5cc7f2d.entry.js +0 -1
- package/dist/arcgis-map-components/p-f7b74cd4.entry.js +0 -1
- package/dist/cjs/arcgis-scene.cjs.entry.js +0 -126
- package/dist/cjs/mapping-utils-c2c7b994.js +0 -40
- package/dist/esm/arcgis-scene.entry.js +0 -122
- package/dist/esm/mapping-utils-26beb904.js +0 -38
- /package/dist/cjs/{index-bfda1cdc.js → index-c24d722b.js} +0 -0
|
@@ -30,6 +30,11 @@ const NAMESPACE = 'arcgis-map-components';
|
|
|
30
30
|
*
|
|
31
31
|
* Modified for Stencil's renderer and slot projection
|
|
32
32
|
*/
|
|
33
|
+
let contentRef;
|
|
34
|
+
let hostTagName;
|
|
35
|
+
let useNativeShadowDom = false;
|
|
36
|
+
let checkSlotFallbackVisibility = false;
|
|
37
|
+
let checkSlotRelocate = false;
|
|
33
38
|
let isSvgMode = false;
|
|
34
39
|
let queuePending = false;
|
|
35
40
|
const createTime = (fnName, tagName = '') => {
|
|
@@ -84,6 +89,7 @@ function queryNonceMetaTagContent(doc) {
|
|
|
84
89
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
85
90
|
const h = (nodeName, vnodeData, ...children) => {
|
|
86
91
|
let child = null;
|
|
92
|
+
let slotName = null;
|
|
87
93
|
let simple = false;
|
|
88
94
|
let lastSimple = false;
|
|
89
95
|
const vNodeChildren = [];
|
|
@@ -111,6 +117,9 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
111
117
|
};
|
|
112
118
|
walk(children);
|
|
113
119
|
if (vnodeData) {
|
|
120
|
+
if (vnodeData.name) {
|
|
121
|
+
slotName = vnodeData.name;
|
|
122
|
+
}
|
|
114
123
|
{
|
|
115
124
|
const classData = vnodeData.className || vnodeData.class;
|
|
116
125
|
if (classData) {
|
|
@@ -128,6 +137,9 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
128
137
|
if (vNodeChildren.length > 0) {
|
|
129
138
|
vnode.$children$ = vNodeChildren;
|
|
130
139
|
}
|
|
140
|
+
{
|
|
141
|
+
vnode.$name$ = slotName;
|
|
142
|
+
}
|
|
131
143
|
return vnode;
|
|
132
144
|
};
|
|
133
145
|
/**
|
|
@@ -149,6 +161,9 @@ const newVNode = (tag, text) => {
|
|
|
149
161
|
{
|
|
150
162
|
vnode.$attrs$ = null;
|
|
151
163
|
}
|
|
164
|
+
{
|
|
165
|
+
vnode.$name$ = null;
|
|
166
|
+
}
|
|
152
167
|
return vnode;
|
|
153
168
|
};
|
|
154
169
|
const Host = {};
|
|
@@ -398,9 +413,28 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
398
413
|
let i = 0;
|
|
399
414
|
let elm;
|
|
400
415
|
let childNode;
|
|
401
|
-
|
|
416
|
+
let oldVNode;
|
|
417
|
+
if (!useNativeShadowDom) {
|
|
418
|
+
// remember for later we need to check to relocate nodes
|
|
419
|
+
checkSlotRelocate = true;
|
|
420
|
+
if (newVNode.$tag$ === 'slot') {
|
|
421
|
+
newVNode.$flags$ |= newVNode.$children$
|
|
422
|
+
? // slot element has fallback content
|
|
423
|
+
2 /* VNODE_FLAGS.isSlotFallback */
|
|
424
|
+
: // slot element does not have fallback content
|
|
425
|
+
1 /* VNODE_FLAGS.isSlotReference */;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
|
|
429
|
+
// create a slot reference node
|
|
430
|
+
elm = newVNode.$elm$ =
|
|
431
|
+
doc.createTextNode('');
|
|
432
|
+
}
|
|
433
|
+
else {
|
|
402
434
|
// create element
|
|
403
|
-
elm = newVNode.$elm$ = (doc.createElement(newVNode.$
|
|
435
|
+
elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
|
|
436
|
+
? 'slot-fb'
|
|
437
|
+
: newVNode.$tag$));
|
|
404
438
|
// add css classes, attrs, props, listeners, etc.
|
|
405
439
|
{
|
|
406
440
|
updateElement(null, newVNode, isSvgMode);
|
|
@@ -417,8 +451,50 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
417
451
|
}
|
|
418
452
|
}
|
|
419
453
|
}
|
|
454
|
+
{
|
|
455
|
+
elm['s-hn'] = hostTagName;
|
|
456
|
+
if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
|
|
457
|
+
// remember the content reference comment
|
|
458
|
+
elm['s-sr'] = true;
|
|
459
|
+
// remember the content reference comment
|
|
460
|
+
elm['s-cr'] = contentRef;
|
|
461
|
+
// remember the slot name, or empty string for default slot
|
|
462
|
+
elm['s-sn'] = newVNode.$name$ || '';
|
|
463
|
+
// check if we've got an old vnode for this slot
|
|
464
|
+
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
465
|
+
if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
|
|
466
|
+
// we've got an old slot vnode and the wrapper is being replaced
|
|
467
|
+
// so let's move the old slot content back to it's original location
|
|
468
|
+
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
420
472
|
return elm;
|
|
421
473
|
};
|
|
474
|
+
const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
475
|
+
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
476
|
+
const oldSlotChildNodes = parentElm.childNodes;
|
|
477
|
+
for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
|
|
478
|
+
const childNode = oldSlotChildNodes[i];
|
|
479
|
+
if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
|
|
480
|
+
// // this child node in the old element is from another component
|
|
481
|
+
// // remove this node from the old slot's parent
|
|
482
|
+
// childNode.remove();
|
|
483
|
+
// and relocate it back to it's original location
|
|
484
|
+
parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
|
|
485
|
+
// remove the old original location comment entirely
|
|
486
|
+
// later on the patch function will know what to do
|
|
487
|
+
// and move this to the correct spot in need be
|
|
488
|
+
childNode['s-ol'].remove();
|
|
489
|
+
childNode['s-ol'] = undefined;
|
|
490
|
+
checkSlotRelocate = true;
|
|
491
|
+
}
|
|
492
|
+
if (recursive) {
|
|
493
|
+
putBackInOriginalLocation(childNode, recursive);
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
497
|
+
};
|
|
422
498
|
/**
|
|
423
499
|
* Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
|
|
424
500
|
* add them to the DOM in the appropriate place.
|
|
@@ -435,14 +511,14 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
435
511
|
* creating DOM nodes (inclusive)
|
|
436
512
|
*/
|
|
437
513
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
438
|
-
let containerElm = (parentElm);
|
|
514
|
+
let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
|
|
439
515
|
let childNode;
|
|
440
516
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
441
517
|
if (vnodes[startIdx]) {
|
|
442
518
|
childNode = createElm(null, parentVNode, startIdx);
|
|
443
519
|
if (childNode) {
|
|
444
520
|
vnodes[startIdx].$elm$ = childNode;
|
|
445
|
-
containerElm.insertBefore(childNode, before);
|
|
521
|
+
containerElm.insertBefore(childNode, referenceNode(before) );
|
|
446
522
|
}
|
|
447
523
|
}
|
|
448
524
|
}
|
|
@@ -465,6 +541,20 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
465
541
|
if ((vnode = vnodes[startIdx])) {
|
|
466
542
|
elm = vnode.$elm$;
|
|
467
543
|
callNodeRefs(vnode);
|
|
544
|
+
{
|
|
545
|
+
// we're removing this element
|
|
546
|
+
// so it's possible we need to show slot fallback content now
|
|
547
|
+
checkSlotFallbackVisibility = true;
|
|
548
|
+
if (elm['s-ol']) {
|
|
549
|
+
// remove the original location comment
|
|
550
|
+
elm['s-ol'].remove();
|
|
551
|
+
}
|
|
552
|
+
else {
|
|
553
|
+
// it's possible that child nodes of the node
|
|
554
|
+
// that's being removed are slot nodes
|
|
555
|
+
putBackInOriginalLocation(elm, true);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
468
558
|
// remove the vnode's element from the dom
|
|
469
559
|
elm.remove();
|
|
470
560
|
}
|
|
@@ -580,6 +670,23 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
580
670
|
newEndVnode = newCh[--newEndIdx];
|
|
581
671
|
}
|
|
582
672
|
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
673
|
+
// case: "Vnode moved right"
|
|
674
|
+
//
|
|
675
|
+
// We've found that the last node in our window on the new children is
|
|
676
|
+
// the same VNode as the _first_ node in our window on the old children
|
|
677
|
+
// we're dealing with now. Visually, this is the layout of these two
|
|
678
|
+
// nodes:
|
|
679
|
+
//
|
|
680
|
+
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
681
|
+
// ^^^^^^^^^^^
|
|
682
|
+
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
683
|
+
// ^^^^^^^^^^^^^
|
|
684
|
+
//
|
|
685
|
+
// In this situation we need to patch `newEndVnode` onto `oldStartVnode`
|
|
686
|
+
// and move the DOM element for `oldStartVnode`.
|
|
687
|
+
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
688
|
+
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
689
|
+
}
|
|
583
690
|
patch(oldStartVnode, newEndVnode);
|
|
584
691
|
// We need to move the element for `oldStartVnode` into a position which
|
|
585
692
|
// will be appropriate for `newEndVnode`. For this we can use
|
|
@@ -603,6 +710,24 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
603
710
|
newEndVnode = newCh[--newEndIdx];
|
|
604
711
|
}
|
|
605
712
|
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
713
|
+
// case: "Vnode moved left"
|
|
714
|
+
//
|
|
715
|
+
// We've found that the first node in our window on the new children is
|
|
716
|
+
// the same VNode as the _last_ node in our window on the old children.
|
|
717
|
+
// Visually, this is the layout of these two nodes:
|
|
718
|
+
//
|
|
719
|
+
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
720
|
+
// ^^^^^^^^^^^^^
|
|
721
|
+
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
722
|
+
// ^^^^^^^^^^^
|
|
723
|
+
//
|
|
724
|
+
// In this situation we need to patch `newStartVnode` onto `oldEndVnode`
|
|
725
|
+
// (which will handle updating any changed attributes, reconciling their
|
|
726
|
+
// children etc) but we also need to move the DOM node to which
|
|
727
|
+
// `oldEndVnode` corresponds.
|
|
728
|
+
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
729
|
+
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
730
|
+
}
|
|
606
731
|
patch(oldEndVnode, newStartVnode);
|
|
607
732
|
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
608
733
|
// the same node, so since we're here we know that they are not. Thus we
|
|
@@ -625,7 +750,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
625
750
|
if (node) {
|
|
626
751
|
// if we created a new node then handle inserting it to the DOM
|
|
627
752
|
{
|
|
628
|
-
oldStartVnode.$elm
|
|
753
|
+
parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
|
|
629
754
|
}
|
|
630
755
|
}
|
|
631
756
|
}
|
|
@@ -663,10 +788,21 @@ const isSameVnode = (leftVNode, rightVNode) => {
|
|
|
663
788
|
// compare if two vnode to see if they're "technically" the same
|
|
664
789
|
// need to have the same element tag, and same key to be the same
|
|
665
790
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
791
|
+
if (leftVNode.$tag$ === 'slot') {
|
|
792
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
793
|
+
}
|
|
666
794
|
return true;
|
|
667
795
|
}
|
|
668
796
|
return false;
|
|
669
797
|
};
|
|
798
|
+
const referenceNode = (node) => {
|
|
799
|
+
// this node was relocated to a new location in the dom
|
|
800
|
+
// because of some other component's slot
|
|
801
|
+
// but we still have an html comment in place of where
|
|
802
|
+
// it's original location was according to it's original vdom
|
|
803
|
+
return (node && node['s-ol']) || node;
|
|
804
|
+
};
|
|
805
|
+
const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
|
|
670
806
|
/**
|
|
671
807
|
* Handle reconciling an outdated VNode with a new one which corresponds to
|
|
672
808
|
* it. This function handles flushing updates to the DOM and reconciling the
|
|
@@ -679,9 +815,12 @@ const patch = (oldVNode, newVNode) => {
|
|
|
679
815
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
680
816
|
const oldChildren = oldVNode.$children$;
|
|
681
817
|
const newChildren = newVNode.$children$;
|
|
818
|
+
const tag = newVNode.$tag$;
|
|
682
819
|
{
|
|
683
820
|
{
|
|
684
|
-
|
|
821
|
+
if (tag === 'slot')
|
|
822
|
+
;
|
|
823
|
+
else {
|
|
685
824
|
// either this is the first render of an element OR it's an update
|
|
686
825
|
// AND we already know it's possible it could have changed
|
|
687
826
|
// this updates the element's css classes, attrs, props, listeners, etc.
|
|
@@ -703,6 +842,137 @@ const patch = (oldVNode, newVNode) => {
|
|
|
703
842
|
}
|
|
704
843
|
}
|
|
705
844
|
};
|
|
845
|
+
const updateFallbackSlotVisibility = (elm) => {
|
|
846
|
+
// tslint:disable-next-line: prefer-const
|
|
847
|
+
const childNodes = elm.childNodes;
|
|
848
|
+
let childNode;
|
|
849
|
+
let i;
|
|
850
|
+
let ilen;
|
|
851
|
+
let j;
|
|
852
|
+
let slotNameAttr;
|
|
853
|
+
let nodeType;
|
|
854
|
+
for (i = 0, ilen = childNodes.length; i < ilen; i++) {
|
|
855
|
+
childNode = childNodes[i];
|
|
856
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
857
|
+
if (childNode['s-sr']) {
|
|
858
|
+
// this is a slot fallback node
|
|
859
|
+
// get the slot name for this slot reference node
|
|
860
|
+
slotNameAttr = childNode['s-sn'];
|
|
861
|
+
// by default always show a fallback slot node
|
|
862
|
+
// then hide it if there are other slots in the light dom
|
|
863
|
+
childNode.hidden = false;
|
|
864
|
+
for (j = 0; j < ilen; j++) {
|
|
865
|
+
nodeType = childNodes[j].nodeType;
|
|
866
|
+
if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
|
|
867
|
+
// this sibling node is from a different component OR is a named fallback slot node
|
|
868
|
+
if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
|
|
869
|
+
childNode.hidden = true;
|
|
870
|
+
break;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
else {
|
|
874
|
+
// this is a default fallback slot node
|
|
875
|
+
// any element or text node (with content)
|
|
876
|
+
// should hide the default fallback slot node
|
|
877
|
+
if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
|
|
878
|
+
(nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
|
|
879
|
+
childNode.hidden = true;
|
|
880
|
+
break;
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
// keep drilling down
|
|
886
|
+
updateFallbackSlotVisibility(childNode);
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
};
|
|
890
|
+
const relocateNodes = [];
|
|
891
|
+
const relocateSlotContent = (elm) => {
|
|
892
|
+
// tslint:disable-next-line: prefer-const
|
|
893
|
+
let childNode;
|
|
894
|
+
let node;
|
|
895
|
+
let hostContentNodes;
|
|
896
|
+
let slotNameAttr;
|
|
897
|
+
let relocateNodeData;
|
|
898
|
+
let j;
|
|
899
|
+
let i = 0;
|
|
900
|
+
const childNodes = elm.childNodes;
|
|
901
|
+
const ilen = childNodes.length;
|
|
902
|
+
for (; i < ilen; i++) {
|
|
903
|
+
childNode = childNodes[i];
|
|
904
|
+
if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
|
|
905
|
+
// first got the content reference comment node
|
|
906
|
+
// then we got it's parent, which is where all the host content is in now
|
|
907
|
+
hostContentNodes = node.parentNode.childNodes;
|
|
908
|
+
slotNameAttr = childNode['s-sn'];
|
|
909
|
+
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
910
|
+
node = hostContentNodes[j];
|
|
911
|
+
if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
|
|
912
|
+
// let's do some relocating to its new home
|
|
913
|
+
// but never relocate a content reference node
|
|
914
|
+
// that is suppose to always represent the original content location
|
|
915
|
+
if (isNodeLocatedInSlot(node, slotNameAttr)) {
|
|
916
|
+
// it's possible we've already decided to relocate this node
|
|
917
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
918
|
+
// made some changes to slots
|
|
919
|
+
// let's make sure we also double check
|
|
920
|
+
// fallbacks are correctly hidden or shown
|
|
921
|
+
checkSlotFallbackVisibility = true;
|
|
922
|
+
node['s-sn'] = node['s-sn'] || slotNameAttr;
|
|
923
|
+
if (relocateNodeData) {
|
|
924
|
+
// previously we never found a slot home for this node
|
|
925
|
+
// but turns out we did, so let's remember it now
|
|
926
|
+
relocateNodeData.$slotRefNode$ = childNode;
|
|
927
|
+
}
|
|
928
|
+
else {
|
|
929
|
+
// add to our list of nodes to relocate
|
|
930
|
+
relocateNodes.push({
|
|
931
|
+
$slotRefNode$: childNode,
|
|
932
|
+
$nodeToRelocate$: node,
|
|
933
|
+
});
|
|
934
|
+
}
|
|
935
|
+
if (node['s-sr']) {
|
|
936
|
+
relocateNodes.map((relocateNode) => {
|
|
937
|
+
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
|
|
938
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
939
|
+
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
940
|
+
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
947
|
+
// so far this element does not have a slot home, not setting slotRefNode on purpose
|
|
948
|
+
// if we never find a home for this element then we'll need to hide it
|
|
949
|
+
relocateNodes.push({
|
|
950
|
+
$nodeToRelocate$: node,
|
|
951
|
+
});
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
957
|
+
relocateSlotContent(childNode);
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
};
|
|
961
|
+
const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
|
|
962
|
+
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
963
|
+
if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
|
|
964
|
+
return true;
|
|
965
|
+
}
|
|
966
|
+
if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
|
|
967
|
+
return true;
|
|
968
|
+
}
|
|
969
|
+
return false;
|
|
970
|
+
}
|
|
971
|
+
if (nodeToRelocate['s-sn'] === slotNameAttr) {
|
|
972
|
+
return true;
|
|
973
|
+
}
|
|
974
|
+
return slotNameAttr === '';
|
|
975
|
+
};
|
|
706
976
|
const callNodeRefs = (vNode) => {
|
|
707
977
|
{
|
|
708
978
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
@@ -726,6 +996,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
726
996
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
727
997
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
728
998
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
999
|
+
hostTagName = hostElm.tagName;
|
|
729
1000
|
if (cmpMeta.$attrsToReflect$) {
|
|
730
1001
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
731
1002
|
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
@@ -734,8 +1005,90 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
734
1005
|
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
735
1006
|
hostRef.$vnode$ = rootVnode;
|
|
736
1007
|
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm);
|
|
1008
|
+
{
|
|
1009
|
+
contentRef = hostElm['s-cr'];
|
|
1010
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
|
|
1011
|
+
// always reset
|
|
1012
|
+
checkSlotFallbackVisibility = false;
|
|
1013
|
+
}
|
|
737
1014
|
// synchronous patch
|
|
738
1015
|
patch(oldVNode, rootVnode);
|
|
1016
|
+
{
|
|
1017
|
+
// while we're moving nodes around existing nodes, temporarily disable
|
|
1018
|
+
// the disconnectCallback from working
|
|
1019
|
+
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
1020
|
+
if (checkSlotRelocate) {
|
|
1021
|
+
relocateSlotContent(rootVnode.$elm$);
|
|
1022
|
+
let relocateData;
|
|
1023
|
+
let nodeToRelocate;
|
|
1024
|
+
let orgLocationNode;
|
|
1025
|
+
let parentNodeRef;
|
|
1026
|
+
let insertBeforeNode;
|
|
1027
|
+
let refNode;
|
|
1028
|
+
let i = 0;
|
|
1029
|
+
for (; i < relocateNodes.length; i++) {
|
|
1030
|
+
relocateData = relocateNodes[i];
|
|
1031
|
+
nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1032
|
+
if (!nodeToRelocate['s-ol']) {
|
|
1033
|
+
// add a reference node marking this node's original location
|
|
1034
|
+
// keep a reference to this node for later lookups
|
|
1035
|
+
orgLocationNode =
|
|
1036
|
+
doc.createTextNode('');
|
|
1037
|
+
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
1038
|
+
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
for (i = 0; i < relocateNodes.length; i++) {
|
|
1042
|
+
relocateData = relocateNodes[i];
|
|
1043
|
+
nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1044
|
+
if (relocateData.$slotRefNode$) {
|
|
1045
|
+
// by default we're just going to insert it directly
|
|
1046
|
+
// after the slot reference node
|
|
1047
|
+
parentNodeRef = relocateData.$slotRefNode$.parentNode;
|
|
1048
|
+
insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
|
|
1049
|
+
orgLocationNode = nodeToRelocate['s-ol'];
|
|
1050
|
+
while ((orgLocationNode = orgLocationNode.previousSibling)) {
|
|
1051
|
+
refNode = orgLocationNode['s-nr'];
|
|
1052
|
+
if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
|
|
1053
|
+
refNode = refNode.nextSibling;
|
|
1054
|
+
if (!refNode || !refNode['s-nr']) {
|
|
1055
|
+
insertBeforeNode = refNode;
|
|
1056
|
+
break;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
1061
|
+
nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1062
|
+
// we've checked that it's worth while to relocate
|
|
1063
|
+
// since that the node to relocate
|
|
1064
|
+
// has a different next sibling or parent relocated
|
|
1065
|
+
if (nodeToRelocate !== insertBeforeNode) {
|
|
1066
|
+
if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
|
|
1067
|
+
// probably a component in the index.html that doesn't have it's hostname set
|
|
1068
|
+
nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
|
|
1069
|
+
}
|
|
1070
|
+
// add it back to the dom but in its new home
|
|
1071
|
+
parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
else {
|
|
1076
|
+
// this node doesn't have a slot home to go to, so let's hide it
|
|
1077
|
+
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1078
|
+
nodeToRelocate.hidden = true;
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
if (checkSlotFallbackVisibility) {
|
|
1084
|
+
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1085
|
+
}
|
|
1086
|
+
// done moving nodes around
|
|
1087
|
+
// allow the disconnect callback to work again
|
|
1088
|
+
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
1089
|
+
// always reset
|
|
1090
|
+
relocateNodes.length = 0;
|
|
1091
|
+
}
|
|
739
1092
|
};
|
|
740
1093
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
741
1094
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
@@ -1145,6 +1498,15 @@ const connectedCallback = (elm) => {
|
|
|
1145
1498
|
if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
|
|
1146
1499
|
// first time this component has connected
|
|
1147
1500
|
hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
|
|
1501
|
+
{
|
|
1502
|
+
// initUpdate
|
|
1503
|
+
// if the slot polyfill is required we'll need to put some nodes
|
|
1504
|
+
// in here to act as original content anchors as we move nodes around
|
|
1505
|
+
// host element has been connected to the DOM
|
|
1506
|
+
if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
|
|
1507
|
+
setContentReference(elm);
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1148
1510
|
{
|
|
1149
1511
|
// find the first ancestor component (if there is one) and register
|
|
1150
1512
|
// this component as one of the actively loading child components for its ancestor
|
|
@@ -1178,6 +1540,17 @@ const connectedCallback = (elm) => {
|
|
|
1178
1540
|
endConnected();
|
|
1179
1541
|
}
|
|
1180
1542
|
};
|
|
1543
|
+
const setContentReference = (elm) => {
|
|
1544
|
+
// only required when we're NOT using native shadow dom (slot)
|
|
1545
|
+
// or this browser doesn't support native shadow dom
|
|
1546
|
+
// and this host element was NOT created with SSR
|
|
1547
|
+
// let's pick out the inner content for slot projection
|
|
1548
|
+
// create a node to represent where the original
|
|
1549
|
+
// content was first placed, which is useful later on
|
|
1550
|
+
const contentRefElm = (elm['s-cr'] = doc.createComment(''));
|
|
1551
|
+
contentRefElm['s-cn'] = true;
|
|
1552
|
+
elm.insertBefore(contentRefElm, elm.firstChild);
|
|
1553
|
+
};
|
|
1181
1554
|
const disconnectedCallback = (elm) => {
|
|
1182
1555
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1183
1556
|
const hostRef = getHostRef(elm);
|
|
@@ -1399,6 +1772,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1399
1772
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1400
1773
|
/* webpackMode: "lazy" */
|
|
1401
1774
|
'./arcgis-feature-form.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1775
|
+
case 'arcgis-feature-table.cjs':
|
|
1776
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1777
|
+
/* webpackMode: "lazy" */
|
|
1778
|
+
'./arcgis-feature-table.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1402
1779
|
case 'arcgis-feature-templates.cjs':
|
|
1403
1780
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1404
1781
|
/* webpackMode: "lazy" */
|
|
@@ -1463,10 +1840,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1463
1840
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1464
1841
|
/* webpackMode: "lazy" */
|
|
1465
1842
|
'./arcgis-scale-range-slider.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1466
|
-
case 'arcgis-
|
|
1843
|
+
case 'arcgis-search.cjs':
|
|
1467
1844
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1468
1845
|
/* webpackMode: "lazy" */
|
|
1469
|
-
'./arcgis-
|
|
1846
|
+
'./arcgis-search.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1470
1847
|
case 'arcgis-shadow-cast.cjs':
|
|
1471
1848
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1472
1849
|
/* webpackMode: "lazy" */
|