@arcgis/map-components 4.31.0-next.98 → 4.32.0-next.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/arcgis-map-components/arcgis-map-components.esm.js +3 -3
- package/dist/arcgis-map-components/index.esm.js +2 -2
- package/dist/arcgis-map-components/{p-bd10776e.entry.js → p-03604a4b.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-f781a140.entry.js → p-037b8697.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-ab8f67a2.entry.js → p-0f00040a.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-4f4648de.js → p-109622b7.js} +3 -3
- package/dist/arcgis-map-components/p-12fad1ef.js +6 -0
- package/dist/arcgis-map-components/{p-333018f0.entry.js → p-1b784f59.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-c13be1de.entry.js → p-1c457689.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-f45af00a.entry.js → p-1d072461.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-fe1c1876.entry.js → p-23dfa2aa.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-f1dc48ed.entry.js → p-33bf16a8.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-d92f86fa.entry.js → p-34075ffa.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-c0cae9a2.entry.js → p-345fe371.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-4657a55e.entry.js → p-35a7a344.entry.js} +3 -3
- package/dist/arcgis-map-components/p-37d90da9.entry.js +6 -0
- package/dist/arcgis-map-components/{p-113c760e.entry.js → p-38828a4b.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-dfe9c3ba.entry.js → p-3e177484.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-ac03e0cf.entry.js → p-4217d4ae.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-f12536c2.entry.js → p-45c24534.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-3f835ce0.entry.js → p-494c087e.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-4e572cb1.js → p-51cbd917.js} +2 -2
- package/dist/arcgis-map-components/p-533c23a8.entry.js +6 -0
- package/dist/arcgis-map-components/p-55bfac1a.entry.js +6 -0
- package/dist/arcgis-map-components/p-58be3da6.js +6 -0
- package/dist/arcgis-map-components/{p-467a3ef9.entry.js → p-612d25b2.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-a481663c.entry.js → p-6272f2fb.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-6d43e136.entry.js → p-6b973c50.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-26c27b52.js → p-71481614.js} +3 -3
- package/dist/arcgis-map-components/{p-83ae543f.entry.js → p-7333a3c4.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-5ec62fb4.entry.js → p-7359c5ef.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-62063ad2.js → p-75616e4c.js} +2 -2
- package/dist/arcgis-map-components/{p-798b0b97.entry.js → p-787a49fb.entry.js} +3 -3
- package/dist/arcgis-map-components/p-79188c1a.entry.js +6 -0
- package/dist/arcgis-map-components/{p-6b743acb.entry.js → p-7aa11843.entry.js} +3 -3
- package/dist/arcgis-map-components/p-7fc5dd14.entry.js +6 -0
- package/dist/arcgis-map-components/{p-78ec2f7e.entry.js → p-85624626.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-9308b6ec.entry.js → p-911c3148.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-43ded72f.entry.js → p-94bcf165.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-aea3ec62.entry.js → p-975505cb.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-194c9bb2.entry.js → p-9dcacc74.entry.js} +3 -3
- package/dist/arcgis-map-components/p-9fde0411.entry.js +6 -0
- package/dist/arcgis-map-components/{p-94bfdb66.js → p-a5d2b31c.js} +3 -3
- package/dist/arcgis-map-components/{p-d9ac76f1.entry.js → p-a60152b2.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-0c89ed36.entry.js → p-af950f1a.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-eb7c60e4.entry.js → p-b0826037.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-492f1c2c.entry.js → p-b4688884.entry.js} +3 -3
- package/dist/arcgis-map-components/p-b9ac1c88.entry.js +6 -0
- package/dist/arcgis-map-components/p-be3eafef.entry.js +6 -0
- package/dist/arcgis-map-components/{p-7d5ad539.entry.js → p-c18ca689.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-35215a92.entry.js → p-c4dc8ee5.entry.js} +3 -3
- package/dist/arcgis-map-components/p-c63ac346.js +6 -0
- package/dist/arcgis-map-components/p-c7d345e0.entry.js +6 -0
- package/dist/arcgis-map-components/{p-708cf7c3.entry.js → p-c818aa0e.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-5753543f.entry.js → p-c84665f8.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-5c1b188e.entry.js → p-c9fea559.entry.js} +3 -3
- package/dist/arcgis-map-components/p-cbb89767.js +6 -0
- package/dist/arcgis-map-components/{p-73a6fe72.entry.js → p-cdd73436.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-f5daccdf.entry.js → p-cefed1fd.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-5adebef7.entry.js → p-d267b5b4.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-09daa12c.entry.js → p-d31def96.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-86640deb.entry.js → p-d98e91df.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-d2dbf6e0.entry.js → p-da75728b.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-afa0de82.entry.js → p-e0ef8f23.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-a52612c7.entry.js → p-e0efea5b.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-0b10ab85.entry.js → p-e2c42f2b.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-a49938e8.entry.js → p-e617be84.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-2710cc39.entry.js → p-ef1c941b.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-72f8577a.entry.js → p-f018a865.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-1a7bc0aa.entry.js → p-f34e4651.entry.js} +3 -3
- package/dist/arcgis-map-components/{p-d6bbd321.js → p-fad10fcc.js} +2 -2
- package/dist/cjs/{app-globals-33fab07e.js → app-globals-f2405bb9.js} +2 -2
- package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-attachments.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-basemap-gallery.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +8 -11
- package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +9 -9
- package/dist/cjs/arcgis-bookmarks.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-building-explorer_2.cjs.entry.js +96 -10
- package/dist/cjs/arcgis-catalog-layer-list.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-compass.cjs.entry.js +9 -9
- package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-daylight.cjs.entry.js +7 -7
- package/dist/cjs/arcgis-directional-pad.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-directions.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-editor.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-expand.cjs.entry.js +7 -7
- package/dist/cjs/arcgis-feature-form.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-feature-table.cjs.entry.js +21 -8
- package/dist/cjs/arcgis-feature-templates.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-feature.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-features.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-floor-filter.cjs.entry.js +7 -7
- package/dist/cjs/arcgis-fullscreen.cjs.entry.js +9 -9
- package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-histogram.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-home.cjs.entry.js +9 -9
- package/dist/cjs/arcgis-layer-list.cjs.entry.js +12 -8
- package/dist/cjs/arcgis-legend.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-locate.cjs.entry.js +9 -9
- package/dist/cjs/arcgis-map-components.cjs.js +5 -5
- package/dist/cjs/arcgis-map.cjs.entry.js +9 -8
- package/dist/cjs/arcgis-measurement.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-oriented-imagery-viewer.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-placement.cjs.entry.js +4 -4
- package/dist/cjs/arcgis-print.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-scale-bar.cjs.entry.js +9 -9
- package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-search.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-sketch.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-slice.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-slider.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-swipe.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-table-list.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-time-slider.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-track.cjs.entry.js +9 -9
- package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js +6 -6
- package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +6 -6
- package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +6 -6
- package/dist/cjs/arcgis-value-picker.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-version-management-service-item_2.cjs.entry.js +3 -3
- package/dist/cjs/arcgis-version-management-version-item_2.cjs.entry.js +3 -3
- package/dist/cjs/arcgis-version-management.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-weather.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-zoom.cjs.entry.js +9 -9
- package/dist/cjs/{component-utils-01bf693b.js → component-utils-745e45f1.js} +23 -15
- package/dist/cjs/{disconnected-e94c9a9a.js → disconnected-39c6db1e.js} +3 -3
- package/dist/cjs/{globalCss-41a8ef54.js → globalCss-39371f66.js} +2 -2
- package/dist/cjs/{index-f4c580a1.js → index-7afc8bdb.js} +4 -4
- package/dist/cjs/{index-e02af421.js → index-93401d08.js} +2 -2
- package/dist/cjs/{index-5e9b05fd.js → index-dfe41475.js} +7 -5
- package/dist/cjs/{index-3807d59e.js → index-e1fdc7fa.js} +2 -2
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{useViewModel-a5125c03.js → useViewModel-60f6d1bd.js} +6 -6
- package/dist/cjs/{useWidget-bdbed993.js → useWidget-41c772e8.js} +4 -4
- package/dist/components/arcgis-area-measurement-2d.js +2 -2
- package/dist/components/arcgis-area-measurement-3d.js +2 -2
- package/dist/components/arcgis-assets.d.ts +2 -2
- package/dist/components/arcgis-assets.js +2 -2
- package/dist/components/arcgis-attachments.js +2 -2
- package/dist/components/arcgis-basemap-gallery.js +2 -2
- package/dist/components/arcgis-basemap-layer-list.js +3 -6
- package/dist/components/arcgis-basemap-toggle.js +2 -2
- package/dist/components/arcgis-bookmarks.js +2 -2
- package/dist/components/arcgis-building-explorer.js +2 -2
- package/dist/components/arcgis-catalog-layer-list.js +2 -2
- package/dist/components/arcgis-compass.js +2 -2
- package/dist/components/arcgis-coordinate-conversion.js +2 -2
- package/dist/components/arcgis-daylight.js +2 -2
- package/dist/components/arcgis-directional-pad.js +2 -2
- package/dist/components/arcgis-directions.js +2 -2
- package/dist/components/arcgis-directline-measurement-3d.js +2 -2
- package/dist/components/arcgis-distance-measurement-2d.js +2 -2
- package/dist/components/arcgis-editor.js +2 -2
- package/dist/components/arcgis-elevation-profile.js +2 -2
- package/dist/components/arcgis-expand.js +2 -2
- package/dist/components/arcgis-feature-form.js +2 -2
- package/dist/components/arcgis-feature-table.js +16 -3
- package/dist/components/arcgis-feature-templates.js +2 -2
- package/dist/components/arcgis-feature.js +2 -2
- package/dist/components/arcgis-features.js +2 -2
- package/dist/components/arcgis-floor-filter.js +2 -2
- package/dist/components/arcgis-fullscreen.js +2 -2
- package/dist/components/arcgis-histogram-range-slider.js +2 -2
- package/dist/components/arcgis-histogram.js +2 -2
- package/dist/components/arcgis-home.js +2 -2
- package/dist/components/arcgis-layer-list.js +7 -3
- package/dist/components/arcgis-legend.js +2 -2
- package/dist/components/arcgis-line-of-sight.js +2 -2
- package/dist/components/arcgis-locate.js +2 -2
- package/dist/components/arcgis-map.js +5 -4
- package/dist/components/arcgis-measurement.js +2 -2
- package/dist/components/arcgis-navigation-toggle.js +2 -2
- package/dist/components/arcgis-oriented-imagery-viewer.js +2 -2
- package/dist/components/arcgis-placement.js +2 -2
- package/dist/components/arcgis-print.js +2 -2
- package/dist/components/arcgis-scale-bar.js +2 -2
- package/dist/components/arcgis-scale-range-slider.js +2 -2
- package/dist/components/arcgis-scene.js +92 -6
- package/dist/components/arcgis-search.js +2 -2
- package/dist/components/arcgis-shadow-cast.js +2 -2
- package/dist/components/arcgis-sketch.js +2 -2
- package/dist/components/arcgis-slice.js +2 -2
- package/dist/components/arcgis-slider.js +2 -2
- package/dist/components/arcgis-swipe.js +2 -2
- package/dist/components/arcgis-table-list.js +2 -2
- package/dist/components/arcgis-time-slider.js +2 -2
- package/dist/components/arcgis-track.js +2 -2
- package/dist/components/arcgis-utility-network-associations.js +2 -2
- package/dist/components/arcgis-utility-network-trace.js +3 -3
- package/dist/components/arcgis-utility-network-validate-topology.js +2 -2
- package/dist/components/arcgis-value-picker.js +2 -2
- package/dist/components/arcgis-version-management-service-item.js +2 -2
- package/dist/components/arcgis-version-management-version-item.js +2 -2
- package/dist/components/arcgis-version-management-version-list.js +2 -2
- package/dist/components/arcgis-version-management-version-properties.js +2 -2
- package/dist/components/arcgis-version-management.js +2 -2
- package/dist/components/arcgis-weather.js +2 -2
- package/dist/components/arcgis-zoom.js +2 -2
- package/dist/components/component-utils.js +22 -15
- package/dist/components/disconnected.js +2 -2
- package/dist/components/globalCss.js +2 -2
- package/dist/components/index.js +2 -2
- package/dist/components/index2.js +2 -2
- package/dist/components/index3.js +5 -3
- package/dist/components/index4.js +3 -3
- package/dist/components/useViewModel.js +2 -2
- package/dist/components/useWidget.js +2 -2
- package/dist/components/version-management-service-item.js +2 -2
- package/dist/components/version-management-version-item.js +2 -2
- package/dist/components/version-management-version-list.js +2 -2
- package/dist/components/version-management-version-properties.js +2 -2
- package/dist/esm/{app-globals-913cca84.js → app-globals-94d7a32e.js} +2 -2
- package/dist/esm/arcgis-area-measurement-2d.entry.js +8 -8
- package/dist/esm/arcgis-area-measurement-3d.entry.js +8 -8
- package/dist/esm/arcgis-attachments.entry.js +8 -8
- package/dist/esm/arcgis-basemap-gallery.entry.js +8 -8
- package/dist/esm/arcgis-basemap-layer-list.entry.js +8 -11
- package/dist/esm/arcgis-basemap-toggle.entry.js +9 -9
- package/dist/esm/arcgis-bookmarks.entry.js +8 -8
- package/dist/esm/arcgis-building-explorer_2.entry.js +96 -10
- package/dist/esm/arcgis-catalog-layer-list.entry.js +8 -8
- package/dist/esm/arcgis-compass.entry.js +9 -9
- package/dist/esm/arcgis-coordinate-conversion.entry.js +8 -8
- package/dist/esm/arcgis-daylight.entry.js +7 -7
- package/dist/esm/arcgis-directional-pad.entry.js +8 -8
- package/dist/esm/arcgis-directions.entry.js +8 -8
- package/dist/esm/arcgis-directline-measurement-3d.entry.js +8 -8
- package/dist/esm/arcgis-distance-measurement-2d.entry.js +8 -8
- package/dist/esm/arcgis-editor.entry.js +8 -8
- package/dist/esm/arcgis-elevation-profile.entry.js +8 -8
- package/dist/esm/arcgis-expand.entry.js +7 -7
- package/dist/esm/arcgis-feature-form.entry.js +8 -8
- package/dist/esm/arcgis-feature-table.entry.js +21 -8
- package/dist/esm/arcgis-feature-templates.entry.js +8 -8
- package/dist/esm/arcgis-feature.entry.js +8 -8
- package/dist/esm/arcgis-features.entry.js +8 -8
- package/dist/esm/arcgis-floor-filter.entry.js +7 -7
- package/dist/esm/arcgis-fullscreen.entry.js +9 -9
- package/dist/esm/arcgis-histogram-range-slider.entry.js +8 -8
- package/dist/esm/arcgis-histogram.entry.js +8 -8
- package/dist/esm/arcgis-home.entry.js +9 -9
- package/dist/esm/arcgis-layer-list.entry.js +12 -8
- package/dist/esm/arcgis-legend.entry.js +8 -8
- package/dist/esm/arcgis-line-of-sight.entry.js +8 -8
- package/dist/esm/arcgis-locate.entry.js +9 -9
- package/dist/esm/arcgis-map-components.js +6 -6
- package/dist/esm/arcgis-map.entry.js +9 -8
- package/dist/esm/arcgis-measurement.entry.js +8 -8
- package/dist/esm/arcgis-navigation-toggle.entry.js +8 -8
- package/dist/esm/arcgis-oriented-imagery-viewer.entry.js +8 -8
- package/dist/esm/arcgis-placement.entry.js +4 -4
- package/dist/esm/arcgis-print.entry.js +8 -8
- package/dist/esm/arcgis-scale-bar.entry.js +9 -9
- package/dist/esm/arcgis-scale-range-slider.entry.js +8 -8
- package/dist/esm/arcgis-search.entry.js +8 -8
- package/dist/esm/arcgis-shadow-cast.entry.js +8 -8
- package/dist/esm/arcgis-sketch.entry.js +8 -8
- package/dist/esm/arcgis-slice.entry.js +8 -8
- package/dist/esm/arcgis-slider.entry.js +8 -8
- package/dist/esm/arcgis-swipe.entry.js +8 -8
- package/dist/esm/arcgis-table-list.entry.js +8 -8
- package/dist/esm/arcgis-time-slider.entry.js +8 -8
- package/dist/esm/arcgis-track.entry.js +9 -9
- package/dist/esm/arcgis-utility-network-associations.entry.js +6 -6
- package/dist/esm/arcgis-utility-network-trace.entry.js +6 -6
- package/dist/esm/arcgis-utility-network-validate-topology.entry.js +6 -6
- package/dist/esm/arcgis-value-picker.entry.js +8 -8
- package/dist/esm/arcgis-version-management-service-item_2.entry.js +3 -3
- package/dist/esm/arcgis-version-management-version-item_2.entry.js +3 -3
- package/dist/esm/arcgis-version-management.entry.js +8 -8
- package/dist/esm/arcgis-weather.entry.js +8 -8
- package/dist/esm/arcgis-zoom.entry.js +9 -9
- package/dist/esm/{component-utils-fef50fe4.js → component-utils-46531994.js} +22 -15
- package/dist/esm/{disconnected-a8ea93b3.js → disconnected-c59ecc72.js} +3 -3
- package/dist/esm/{globalCss-94641557.js → globalCss-824cddf9.js} +2 -2
- package/dist/esm/{index-00ee3636.js → index-28f66413.js} +2 -2
- package/dist/esm/{index-880a56ef.js → index-ad7f5bc4.js} +7 -5
- package/dist/esm/{index-f390619b.js → index-c52668d4.js} +2 -2
- package/dist/esm/{index-7153e8fb.js → index-d8e1295e.js} +4 -4
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{useViewModel-df2c0c4a.js → useViewModel-7315c480.js} +6 -6
- package/dist/esm/{useWidget-747e5aa5.js → useWidget-5ce73029.js} +4 -4
- package/dist/loader/cdn.js +2 -2
- package/dist/loader/index.cjs.js +2 -2
- package/dist/loader/index.es2017.js +2 -2
- package/dist/loader/index.js +2 -2
- package/dist/types/components/basemap-layer-list/basemap-layer-list.d.ts +1 -4
- package/dist/types/components/basemap-toggle/basemap-toggle.d.ts +4 -13
- package/dist/types/components/compass/compass.d.ts +4 -13
- package/dist/types/components/feature/feature.d.ts +1 -1
- package/dist/types/components/feature-table/feature-table.d.ts +14 -1
- package/dist/types/components/fullscreen/fullscreen.d.ts +5 -15
- package/dist/types/components/home/home.d.ts +5 -15
- package/dist/types/components/layer-list/layer-list.d.ts +6 -1
- package/dist/types/components/locate/locate.d.ts +17 -39
- package/dist/types/components/map/map.d.ts +5 -1
- package/dist/types/components/scale-bar/scale-bar.d.ts +3 -11
- package/dist/types/components/scene/scene.d.ts +20 -2
- package/dist/types/components/track/track.d.ts +8 -21
- package/dist/types/components/version-management/version-management.d.ts +38 -82
- package/dist/types/components/zoom/zoom.d.ts +5 -15
- package/dist/types/components.d.ts +88 -20
- package/dist/types/utils/component-utils.d.ts +2 -1
- package/package.json +12 -12
- package/dist/arcgis-map-components/p-1471f798.entry.js +0 -6
- package/dist/arcgis-map-components/p-24eb6d1b.js +0 -6
- package/dist/arcgis-map-components/p-484f6ab3.js +0 -6
- package/dist/arcgis-map-components/p-4e3114d6.entry.js +0 -6
- package/dist/arcgis-map-components/p-5c5c23ec.entry.js +0 -6
- package/dist/arcgis-map-components/p-5db93b56.js +0 -6
- package/dist/arcgis-map-components/p-607c3f02.entry.js +0 -6
- package/dist/arcgis-map-components/p-7b7e4801.entry.js +0 -6
- package/dist/arcgis-map-components/p-7e080938.entry.js +0 -6
- package/dist/arcgis-map-components/p-7f59e072.entry.js +0 -6
- package/dist/arcgis-map-components/p-a406de12.js +0 -6
- package/dist/arcgis-map-components/p-b2e33417.entry.js +0 -6
- package/dist/arcgis-map-components/p-fd528297.entry.js +0 -6
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.
|
4
|
-
* v4.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
5
|
*/
|
6
|
-
import{r as e,c as i,h as t,g as s}from"./p-
|
6
|
+
import{r as e,c as i,h as t,g as s}from"./p-51cbd917.js";const n=class{constructor(t){e(this,t),this.arcgisManageVersion=i(this,"arcgisManageVersion",7),this.versionItemElementProps=void 0}render(){const{versionItemElementProps:{currentUser:e,currentVersionIdentifier:i,hasAdvEditingUte:s,isVersioningApiAvailable:n,serviceUrl:r,strings:{actions:a},versionInfo:o}}=this,c=o.versionIdentifier.name,l=c.substring(c.lastIndexOf(".")+1),d=c.substring(0,c.lastIndexOf(".")),h=o.versionIdentifier.guid,v=`actionSwitchToVersion_${h}`,g=d.toUpperCase()===e.toUpperCase()&&n&&s,f=i.guid===o.versionIdentifier.guid,p=t("calcite-action",{key:"a23d586f6b51a1fef1e4f9078e592dc1d058f555",disabled:f,id:v,icon:"code-branch",text:"",onClick:()=>{this.arcgisManageVersion.emit({actionType:"changeVersion",serviceUrl:r,versionInfo:o})},slot:"actions-start"}),u=f?void 0:t("calcite-tooltip",{"overlay-positioning":"fixed",referenceElement:v},t("span",null,a.switchToVersion));return t("calcite-list-item",{key:"7f15ceec0ab4e7320346e8bb53475ebcf17c9317",description:d,label:l,selected:!1,value:h},p,u,t("calcite-action-menu",{key:"baa224ed104a8ed33fac263c5ff8af566a018faa","overlay-positioning":"fixed",slot:"actions-end",label:""},t("calcite-action",{key:"9d0efcfc68432513a3b7fd78da4b1832d9d63c41",disabled:f,icon:"code-branch",onClick:()=>{this.arcgisManageVersion.emit({actionType:"changeVersion",serviceUrl:r,versionInfo:o})},scale:"s",text:a.switchToVersion,textEnabled:!0}),t("calcite-action",{key:"35d6fe45c545b9418b08228da189dc4476260fc1",disabled:!g||f,icon:"code-branch-edit",onClick:()=>{this.arcgisManageVersion.emit({actionType:"editVersion",serviceUrl:r,versionInfo:o})},scale:"s",text:a.editVersion,textEnabled:!0}),t("calcite-action",{key:"16fca39ec2ca22a8756a2ee048207d0d5e27a29c",disabled:!g||g&&f,icon:"trash",onClick:()=>{this.arcgisManageVersion.emit({actionType:"deleteVersion",serviceUrl:r,versionInfo:o})},scale:"s",text:a.deleteVersion,textEnabled:!0})))}get el(){return s(this)}},r=class{constructor(t){e(this,t),this.arcgisNewVersion=i(this,"arcgisNewVersion",7),this.arcgisGetVersions=i(this,"arcgisGetVersions",7),this.arcgisManageVersion=i(this,"arcgisManageVersion",7),this._handleFilterChange=()=>{const{versionListElementProps:{versionInfos:e}}=this,i=this._filterInputElement.value.toUpperCase();this._filteredVersionInfos=""===i?e:e.filter((e=>e.versionIdentifier.name.toUpperCase().includes(i)||e.versionIdentifier.guid.toUpperCase().includes(i))),this._filteredVersionInfos.length&&(this.currentPage=1)},this._handleNoticeClosed=()=>{this.versionListElementProps={...this.versionListElementProps,executionError:void 0}},this._handlePaginationChange=e=>{this.currentPage=e.target.startItem},this.currentPage=1,this.versionListElementProps=void 0,this._filteredVersionInfos=void 0}propertiesChangeHandler(e,i){i.versionInfos!==e.versionInfos&&(this._filteredVersionInfos=this.versionListElementProps.versionInfos,this._filterInputElement&&this._handleFilterChange())}componentWillLoad(){this._filteredVersionInfos=this.versionListElementProps.versionInfos}componentDidRender(){this._filterInputElement?.setFocus()}render(){const{currentPage:e,versionListElementProps:{closable:i,currentUser:s,currentVersionIdentifier:n,executionError:r,hasAdvEditingUte:a,heading:o,isVersioningApiAvailable:c,pageSize:l,serviceName:d,serviceUrl:h,state:v,strings:{headers:g},strings:f,versionInfos:p}}=this,u=t("calcite-block",{heading:g.currentVersion,description:n.name,overlayPositioning:"fixed"}),b=t("calcite-action",{id:"actionRefreshVersions",icon:"refresh",text:"",onClick:()=>{this.arcgisGetVersions.emit({serviceUrl:h})},slot:"header-actions-end"},t("calcite-tooltip",{"overlay-positioning":"fixed",referenceElement:"actionRefreshVersions"},t("span",null,f.actions.refreshVersions)));this._paginatedVersionInfos=this._filteredVersionInfos.length>l?this._paginate(this._filteredVersionInfos,l,e):this._filteredVersionInfos;const m=this._filteredVersionInfos.length>l?t("calcite-pagination",{onCalcitePaginationChange:this._handlePaginationChange,pageSize:1,startItem:e,totalItems:Math.ceil(this._filteredVersionInfos.length/l)}):void 0,x=this._paginate(this._paginatedVersionInfos,l,1).map((e=>t("arcgis-version-management-version-item",{versionItemElementProps:{currentUser:s,currentVersionIdentifier:n,isCurrentVersionCard:!1,hasAdvEditingUte:a,isVersioningApiAvailable:c,serviceUrl:h,strings:f,versionInfo:e}}))),E=p.length>l?t("calcite-block",{heading:"",open:!0},t("calcite-input-text",{ref:e=>{this._filterInputElement=e},clearable:!0,icon:"search",onCalciteInputTextInput:this._handleFilterChange,placeholder:f.actions.searchVersions})):void 0,V=t("calcite-list",null,x),I=c&&a?t("calcite-fab",{appearance:"outline-fill",slot:"fab",textEnabled:!0,text:f.actions.newVersion,onClick:()=>{this.arcgisNewVersion.emit({serviceUrl:h})}}):void 0,k=r?t("calcite-notice",{onCalciteNoticeClose:this._handleNoticeClosed,class:"notice",closable:!0,kind:"warning",open:!0,scale:"s",slot:"footer",width:"full"},t("div",{slot:"message"},this._getExecutionError(r))):void 0;return t("calcite-flow-item",{closable:i,description:d,heading:o},t("calcite-panel",{loading:"executing"===v},u,t("calcite-panel",{heading:this._filteredVersionInfos.length?`${f.headers.manageVersions} (${this._filteredVersionInfos.length})`:f.headers.manageVersions},b,E,V,I),m,k))}_getExecutionError(e){const{versionListElementProps:{strings:{executionErrors:i}}}=this;switch(e){case"no-advanced-editing-user-type-extension":return i.noAdvancedEditingUserTypeExtension;case"no-feature-service-found":return i.noFeatureServiceFound;case"no-valid-enterprise-version":return i.notValidEnterpriseVersion;case"no-valid-version-name":return i.invalidVersionName;default:return e}}_paginate(e,i,t){return e.slice((t-1)*i,t*i)}get el(){return s(this)}static get watchers(){return{versionListElementProps:["propertiesChangeHandler"]}}};export{n as arcgis_version_management_version_item,r as arcgis_version_management_version_list}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.
|
4
|
-
* v4.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
5
|
*/
|
6
|
-
import{r as s,c as t,g as i}from"./p-
|
6
|
+
import{r as s,c as t,g as i}from"./p-51cbd917.js";import{o as h}from"./p-fad10fcc.js";import{m as a}from"./p-109622b7.js";import{u as r}from"./p-58be3da6.js";import{u as o}from"./p-71481614.js";import"./p-c63ac346.js";const c=a(h),m=class{constructor(i){s(this,i),this.arcgisReady=t(this,"arcgisReady",7),this.arcgisPropertyChange=t(this,"arcgisPropertyChange",7),this.manager=o(this),this.widget=c(this),this.viewModel=this.widget.viewModel,this.arcgisPropertyChange=r()("submitting","state"),this.referenceElement=void 0,this.autoDestroyDisabled=!1,this.icon=this.widget.icon,this.label=this.widget.label,this.position="bottom-left",this.capabilities=this.widget.capabilities,this.displayType=this.widget.displayType,this.graphic=this.widget.graphic,this.submitting=this.widget.submitting,this.hideAddButton=this.widget.visibleElements.addButton,this.hideAddSubmitButton=this.widget.visibleElements.addSubmitButton,this.hideCancelAddButton=this.widget.visibleElements.cancelAddButton,this.hideCancelUpdateButton=this.widget.visibleElements.cancelUpdateButton,this.hideDeleteButton=this.widget.visibleElements.deleteButton,this.hideErrorMessage=this.widget.visibleElements.errorMessage,this.hideProgressBar=this.widget.visibleElements.progressBar,this.hideUpdateButton=this.widget.visibleElements.updateButton,this.state=this.viewModel.state}async destroy(){await this.manager.destroy()}get el(){return i(this)}};m.style="";export{m as arcgis_attachments}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.
|
4
|
-
* v4.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
5
|
*/
|
6
|
-
import{r as s,c as t,g as i}from"./p-
|
6
|
+
import{r as s,c as t,g as i}from"./p-51cbd917.js";import{N as h}from"./p-fad10fcc.js";import{u as r}from"./p-58be3da6.js";import{m as a}from"./p-109622b7.js";import{u as o}from"./p-71481614.js";import"./p-c63ac346.js";const e=a(h),c=class{constructor(i){s(this,i),this.arcgisReady=t(this,"arcgisReady",7),this.widgetSelect=t(this,"arcgisSelect",7),this.arcgisPropertyChange=t(this,"arcgisPropertyChange",7),this.manager=o(this),this.widget=e(this),this.viewModel=this.widget.viewModel,this.arcgisPropertyChange=r()("state"),this.autoDestroyDisabled=!1,this.referenceElement=void 0,this.position="bottom-left",this.icon=this.widget.icon,this.label=this.widget.label,this.headingLevel=this.widget.headingLevel,this.enableListScroll=this.widget.enableListScroll,this.filterFunction=this.widget.filterFunction,this.filterText=this.widget.filterText,this.groupBy=this.widget.groupBy,this.layers=this.widget.layers,this.selectionMode=this.widget.selectionMode,this.hideFilter=this.widget.visibleElements.filter,this.state=this.viewModel.state}async destroy(){await this.manager.destroy()}get el(){return i(this)}};c.style="";export{c as arcgis_feature_templates}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.
|
4
|
-
* v4.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
5
|
*/
|
6
|
-
import{r as s,c as t,g as i}from"./p-
|
6
|
+
import{r as s,c as t,g as i}from"./p-51cbd917.js";import{a6 as h}from"./p-fad10fcc.js";import{u as r}from"./p-58be3da6.js";import{m as a}from"./p-109622b7.js";import{u as o}from"./p-71481614.js";import"./p-c63ac346.js";const c=a(h),e=class{constructor(i){s(this,i),this.arcgisReady=t(this,"arcgisReady",7),this.arcgisPropertyChange=t(this,"arcgisPropertyChange",7),this.manager=o(this),this.widget=c(this),this.viewModel=this.widget.viewModel,this.arcgisPropertyChange=r()("state"),this.autoDestroyDisabled=!1,this.referenceElement=void 0,this.disabled=this.widget.disabled,this.icon=this.widget.icon,this.label=this.widget.label,this.layer=this.widget.layer,this.maxScale=this.widget.maxScale,this.maxScaleLimit=this.widget.maxScaleLimit,this.minScale=this.widget.minScale,this.minScaleLimit=this.widget.minScaleLimit,this.mode=this.widget.mode,this.region=this.widget.region,this.hidePreview=this.widget.visibleElements.preview,this.hideScaleMenusMinScaleMenu=this.widget.visibleElements.scaleMenus.minScaleMenu,this.hideScaleMenusMaxScaleMenu=this.widget.visibleElements.scaleMenus.maxScaleMenu,this.position="bottom-left",this.state=this.viewModel.state}async destroy(){await this.manager.destroy()}get el(){return i(this)}};e.style="arcgis-scale-range-slider{}";export{e as arcgis_scale_range_slider}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.
|
4
|
-
* v4.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
5
|
*/
|
6
|
-
import{r as s,c as t,g as i}from"./p-
|
6
|
+
import{r as s,c as t,g as i}from"./p-51cbd917.js";import{u as h}from"./p-58be3da6.js";import{a7 as a}from"./p-fad10fcc.js";import{m as r}from"./p-109622b7.js";import{u as c}from"./p-71481614.js";import"./p-c63ac346.js";const e=r(a),o=class{constructor(i){s(this,i),this.arcgisReady=t(this,"arcgisReady",7),this.arcgisPropertyChange=t(this,"arcgisPropertyChange",7),this.widgetSearchBlur=t(this,"arcgisBlur",7),this.widgetSearchClear=t(this,"arcgisClear",7),this.widgetSearchComplete=t(this,"arcgisComplete",7),this.widgetSearchFocus=t(this,"arcgisFocus",7),this.widgetSearchStart=t(this,"arcgisStart",7),this.widgetSelectResult=t(this,"arcgisSelectResult",7),this.widgetSuggestComplete=t(this,"arcgisSuggestComplete",7),this.widgetSuggestStart=t(this,"arcgisSuggestStart",7),this.manager=c(this),this.widget=e(this),this.viewModel=this.widget.viewModel,this.arcgisPropertyChange=h()("state"),this.autoDestroyDisabled=!1,this.referenceElement=void 0,this.activeMenu=this.widget.activeMenu,this.activeSource=this.widget.activeSource,this.activeSourceIndex=this.widget.activeSourceIndex,this.allPlaceholder=this.widget.allPlaceholder,this.allSources=this.widget.allSources,this.autoSelectDisabled=this.widget.autoSelect,this.defaultSources=this.widget.defaultSources,this.disabled=this.widget.disabled,this.icon=this.widget.icon,this.label=this.widget.label,this.includeDefaultSourcesDisabled=this.widget.includeDefaultSources,this.locationDisabled=this.widget.locationEnabled,this.maxResults=this.widget.maxResults,this.maxSuggestions=this.widget.maxSuggestions,this.minSuggestCharacters=this.widget.minSuggestCharacters,this.popupDisabled=this.widget.popupEnabled,this.popupTemplate=this.widget.popupTemplate,this.portal=this.widget.portal,this.resultGraphic=this.widget.resultGraphic,this.resultGraphicDisabled=this.widget.resultGraphicEnabled,this.results=this.widget.results,this.searchAllDisabled=this.widget.searchAllEnabled,this.searchTerm=this.widget.searchTerm,this.selectedResult=this.widget.selectedResult,this.sources=this.widget.sources,this.suggestions=this.widget.suggestions,this.suggestionsDisabled=this.widget.suggestionsEnabled,this.position="top-right",this.state=this.viewModel.state}async blurSearch(){this.widget?.blur()}async clearSearch(){this.widget?.clear()}async focusSearch(){this.widget?.focus()}async destroy(){await this.manager.destroy()}async search(s){return await(this.widget?.search(s))}async suggest(s){return await(this.widget?.suggest(s))}get el(){return i(this)}};o.style="";export{o as arcgis_search}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.
|
4
|
-
* v4.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
5
|
*/
|
6
6
|
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),l=(t,n)=>e.set(n.t=t,n),o=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",a="undefined"!=typeof window?window:{},u=a.document||{head:{}},f={l:0,o:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},d=t=>Promise.resolve(t),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),p=!1,m=[],v=[],y=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&f.l?w(b):f.raf(b))},$=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},b=()=>{$(m),$(v),(p=m.length>0)&&f.raf(b)},w=t=>d().then(t),g=y(v,!0),k=t=>{const e=new URL(t,f.o);return e.origin!==a.location.origin?e.href:e.pathname},S={},j=t=>"object"==(t=typeof t)||"function"===t;function O(t){var e,n,l;return null!=(l=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((e,n)=>{for(var l in n)t(e,l,{get:n[l],enumerable:!0})})({},{err:()=>C,map:()=>M,ok:()=>E,unwrap:()=>x,unwrapErr:()=>T});var E=t=>({isOk:!0,isErr:!1,value:t}),C=t=>({isOk:!1,isErr:!0,value:t});function M(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>E(t))):E(n)}if(t.isErr)return C(t.value);throw"should never get here"}var R,P,x=t=>{if(t.isOk)return t.value;throw t.value},T=t=>{if(t.isErr)return t.value;throw t.value},A=(t,e,...n)=>{let l=null,o=null,s=null,i=!1,r=!1;const c=[],a=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?a(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof t&&!j(l))&&(l+=""),i&&r?c[c.length-1].i+=l:c.push(i?D(null,l):l),r=i)};if(a(n),e){e.key&&(o=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,U);const u=D(t,null);return u.u=e,c.length>0&&(u.h=c),u.p=o,u.m=s,u},D=(t,e)=>({l:0,v:t,i:e,$:null,h:null,u:null,p:null,m:null}),L={},U={forEach:(t,e)=>t.map(F).forEach(e),map:(t,e)=>t.map(F).map(e).map(N)},F=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.m,vtag:t.v,vtext:t.i}),N=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),A(t.vtag,e,...t.vchildren||[])}const e=D(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.m=t.vname,e},W=t=>n(t).$hostElement$,H=(t,e,n)=>{const l=W(t);return{emit:t=>q(l,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},q=(t,e,n)=>{const l=f.ce(e,n);return t.dispatchEvent(l),l},G=new WeakMap,I=t=>"sc-"+t.k,V=(t,e,n,l,s,i)=>{if(n!==l){let r=o(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=z(n),s=z(l);e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("key"===e);else if("ref"===e)l&&l(t);else if(r||"o"!==e[0]||"n"!==e[1]){const o=j(l);if((r||o&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{const o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||s)&&!o&&t.setAttribute(e,l=!0===l?"":l)}else if(e="-"===e[2]?e.slice(3):o(a,c)?c.slice(2):c[2]+e.slice(3),n||l){const o=e.endsWith(B);e=e.replace(J,""),n&&f.rel(t,e,n,o),l&&f.ael(t,e,l,o)}}},_=/\s/,z=t=>t?t.split(_):[],B="Capture",J=RegExp(B+"$"),K=(t,e,n)=>{const l=11===e.$.nodeType&&e.$.host?e.$.host:e.$,o=t&&t.u||S,s=e.u||S;for(const t of Q(Object.keys(o)))t in s||V(l,t,o[t],void 0,n,e.l);for(const t of Q(Object.keys(s)))V(l,t,o[t],s[t],n,e.l)};function Q(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var X=!1,Y=!1,Z=!1,tt=!1,et=(t,e,n)=>{var l;const o=e.h[n];let s,i,r,c=0;if(X||(Z=!0,"slot"===o.v&&(o.l|=o.h?2:1)),null!==o.i)s=o.$=u.createTextNode(o.i);else if(1&o.l)s=o.$=u.createTextNode("");else if(s=o.$=u.createElement(!X&&2&o.l?"slot-fb":o.v),K(null,o,tt),s.getRootNode().querySelector("body"),o.h)for(c=0;c<o.h.length;++c)i=et(t,o,c),i&&s.appendChild(i);return s["s-hn"]=P,3&o.l&&(s["s-sr"]=!0,s["s-cr"]=R,s["s-sn"]=o.m||"",s["s-rf"]=null==(l=o.u)?void 0:l.ref,r=t&&t.h&&t.h[n],r&&r.v===o.v&&t.$&&nt(t.$,!1)),s},nt=(t,e)=>{f.l|=1;const n=Array.from(t.childNodes);for(let t=n.length-1;t>=0;t--){const l=n[t];l["s-hn"]!==P&&l["s-ol"]&&(pt(rt(l),l,it(l)),l["s-ol"].remove(),l["s-ol"]=void 0,l["s-sh"]=void 0,Z=!0),e&&nt(l,e)}f.l&=-2},lt=(t,e,n,l,o,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(;o<=s;++o)l[o]&&(i=et(null,n,o),i&&(l[o].$=i,pt(r,i,it(e))))},ot=(t,e,n)=>{for(let l=e;l<=n;++l){const e=t[l];if(e){const t=e.$;ht(e),t&&(Y=!0,t["s-ol"]?t["s-ol"].remove():nt(t,!0),t.remove())}}},st=(t,e,n=!1)=>!(t.v!==e.v||("slot"===t.v?"S"in t&&n&&8!==t.$.nodeType||t.m!==e.m:!n&&t.p!==e.p)),it=t=>t&&t["s-ol"]||t,rt=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,ct=(t,e,n=!1)=>{const l=e.$=t.$,o=t.h,s=e.h,i=e.i;let r;null===i?(("slot"!==e.v||X)&&K(t,e,tt),null!==o&&null!==s?((t,e,n,l,o=!1)=>{let s,i,r=0,c=0,a=0,u=0,f=e.length-1,d=e[0],h=e[f],p=l.length-1,m=l[0],v=l[p];for(;r<=f&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--f];else if(null==m)m=l[++c];else if(null==v)v=l[--p];else if(st(d,m,o))ct(d,m,o),d=e[++r],m=l[++c];else if(st(h,v,o))ct(h,v,o),h=e[--f],v=l[--p];else if(st(d,v,o))"slot"!==d.v&&"slot"!==v.v||nt(d.$.parentNode,!1),ct(d,v,o),pt(t,d.$,h.$.nextSibling),d=e[++r],v=l[--p];else if(st(h,m,o))"slot"!==d.v&&"slot"!==v.v||nt(h.$.parentNode,!1),ct(h,m,o),pt(t,h.$,d.$),h=e[--f],m=l[++c];else{for(a=-1,u=r;u<=f;++u)if(e[u]&&null!==e[u].p&&e[u].p===m.p){a=u;break}a>=0?(i=e[a],i.v!==m.v?s=et(e&&e[c],n,a):(ct(i,m,o),e[a]=void 0,s=i.$),m=l[++c]):(s=et(e&&e[c],n,c),m=l[++c]),s&&pt(rt(d.$),s,it(d.$))}r>f?lt(t,null==l[p+1]?null:l[p+1].$,n,l,c,p):c>p&&ot(e,r,f)})(l,o,e,s,n):null!==s?(null!==t.i&&(l.textContent=""),lt(l,null,e,s,0,s.length-1)):!n&&null!==o&&ot(o,0,o.length-1)):(r=l["s-cr"])?r.parentNode.textContent=i:t.i!==i&&(l.data=i)},at=t=>{const e=t.childNodes;for(const t of e)if(1===t.nodeType){if(t["s-sr"]){const n=t["s-sn"];t.hidden=!1;for(const l of e)if(l!==t)if(l["s-hn"]!==t["s-hn"]||""!==n){if(1===l.nodeType&&(n===l.getAttribute("slot")||n===l["s-sn"])||3===l.nodeType&&n===l["s-sn"]){t.hidden=!0;break}}else if(1===l.nodeType||3===l.nodeType&&""!==l.textContent.trim()){t.hidden=!0;break}}at(t)}},ut=[],ft=t=>{let e,n,l;for(const o of t.childNodes){if(o["s-sr"]&&(e=o["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;const t=o["s-sn"];for(l=n.length-1;l>=0;l--)if(e=n[l],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==o["s-hn"])if(dt(e,t)){let n=ut.find((t=>t.j===e));Y=!0,e["s-sn"]=e["s-sn"]||t,n?(n.j["s-sh"]=o["s-hn"],n.O=o):(e["s-sh"]=o["s-hn"],ut.push({O:o,j:e})),e["s-sr"]&&ut.map((t=>{dt(t.j,e["s-sn"])&&(n=ut.find((t=>t.j===e)),n&&!t.O&&(t.O=n.O))}))}else ut.some((t=>t.j===e))||ut.push({j:e})}1===o.nodeType&&ft(o)}},dt=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,ht=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(ht)},pt=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),mt=(t,e)=>{e&&!t.C&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.C=e)))},vt=(t,e)=>{if(t.l|=16,!(4&t.l))return mt(t,t.M),g((()=>yt(t,e)));t.l|=512},yt=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.l|=256,t.R&&(t.R.map((([t,e])=>Ot(n,t,e))),t.R=void 0),l=Ot(n,"componentWillLoad")):l=Ot(n,"componentWillUpdate"),$t(l,(()=>wt(t,n,e)))},$t=(t,e)=>bt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),bt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,wt=async(t,e,n)=>{var l;const o=t.$hostElement$,s=o["s-rc"];n&&(t=>{const e=t.P;((t,e)=>{var n;const l=I(e),o=r.get(l);if(t=11===t.nodeType?t:u,o)if("string"==typeof o){let s,i=G.get(t=t.head||t);if(i||G.set(t,i=new Set),!i.has(l)){{s=u.createElement("style"),s.innerHTML=o;const l=null!=(n=f.T)?n:O(u);null!=l&&s.setAttribute("nonce",l),(!(1&e.l)||1&e.l&&"HEAD"!==t.nodeName)&&t.insertBefore(s,t.querySelector("link"))}4&e.l&&(s.innerHTML+=c),i&&i.add(l)}}else t.adoptedStyleSheets.includes(o)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,o])})(t.$hostElement$.getRootNode(),e)})(t);gt(t,e,o,n),s&&(s.map((t=>t())),o["s-rc"]=void 0);{const e=null!=(l=o["s-p"])?l:[],n=()=>kt(t);0===e.length?n():(Promise.all(e).then(n),t.l|=4,e.length=0)}},gt=(t,e,n,l)=>{try{e=e.render&&e.render(),t.l&=-17,t.l|=2,((t,e,n=!1)=>{var l,o,s,i;const r=t.$hostElement$,c=t.P,a=t.A||D(null,null),d=(t=>t&&t.v===L)(e)?e:A(null,null,e);if(P=r.tagName,c.D&&(d.u=d.u||{},c.D.map((([t,e])=>d.u[e]=r[t]))),n&&d.u)for(const t of Object.keys(d.u))r.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.u[t]=r[t]);if(d.v=null,d.l|=4,t.A=d,d.$=a.$=r,X=!1,R=r["s-cr"],Y=!1,ct(a,d,n),f.l|=1,Z){ft(d.$);for(const t of ut){const e=t.j;if(!e["s-ol"]){const t=u.createTextNode("");t["s-nr"]=e,pt(e.parentNode,e["s-ol"]=t,e)}}for(const t of ut){const e=t.j,r=t.O;if(r){const t=r.parentNode;let n=r.nextSibling;{let s=null==(l=e["s-ol"])?void 0:l.previousSibling;for(;s;){let l=null!=(o=s["s-nr"])?o:null;if(l&&l["s-sn"]===e["s-sn"]&&t===l.parentNode){for(l=l.nextSibling;l===e||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){n=l;break}}s=s.previousSibling}}(!n&&t!==e.parentNode||e.nextSibling!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),pt(t,e,n),1===e.nodeType&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof r["s-rf"]&&r["s-rf"](e)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(i=e.hidden)&&i),e.hidden=!0)}}Y&&at(d.$),f.l&=-2,ut.length=0,R=void 0})(t,e,l)}catch(e){s(e,t.$hostElement$)}return null},kt=t=>{const e=t.$hostElement$,n=t.t,l=t.M;Ot(n,"componentDidRender"),64&t.l?Ot(n,"componentDidUpdate"):(t.l|=64,Et(e),Ot(n,"componentDidLoad"),t.L(e),l||jt()),t.U(e),t.C&&(t.C(),t.C=void 0),512&t.l&&w((()=>vt(t,!1))),t.l&=-517},St=t=>{{const e=n(t),l=e.$hostElement$.isConnected;return l&&2==(18&e.l)&&vt(e,!1),l}},jt=()=>{Et(u.documentElement),w((()=>q(a,"appload",{detail:{namespace:"arcgis-map-components"}})))},Ot=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t)}},Et=t=>t.setAttribute("hydrated",""),Ct=(t,e,l)=>{var o,i;const r=t.prototype;if(e.F||e.N||t.watchers){t.watchers&&!e.N&&(e.N=t.watchers);const c=Object.entries(null!=(o=e.F)?o:{});if(c.map((([t,[o]])=>{31&o||2&l&&32&o?Object.defineProperty(r,t,{get(){return((t,e)=>n(this).W.get(e))(0,t)},set(l){((t,e,l,o)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${o.k}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.W.get(e),a=i.l,u=i.t;if(l=((t,e)=>null==t||j(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(l,o.F[e][0]),(!(8&a)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(i.W.set(e,l),u)){if(o.N&&128&a){const t=o.N[e];t&&t.map((t=>{try{u[t](l,c,e)}catch(t){s(t,r)}}))}2==(18&a)&&vt(i,!1)}})(this,t,l,e)},configurable:!0,enumerable:!0}):1&l&&64&o&&Object.defineProperty(r,t,{value(...e){var l;const o=n(this);return null==(l=null==o?void 0:o.H)?void 0:l.then((()=>{var n;return null==(n=o.t)?void 0:n[t](...e)}))}})})),1&l){const l=new Map;r.attributeChangedCallback=function(t,o,s){f.jmp((()=>{var i;const c=l.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=e.N)?void 0:i[t];null==r||r.forEach((e=>{null!=n[e]&&n[e].call(n,s,o,t)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.N)?i:{}),...c.filter((([t,e])=>15&e[0])).map((([t,n])=>{var o;const s=n[1]||t;return l.set(s,t),512&n[0]&&(null==(o=e.D)||o.push([t,s])),s}))]))}}return t},Mt=t=>{Ot(t,"connectedCallback")},Rt=t=>{Ot(t,"disconnectedCallback")},Pt=(t,o={})=>{var d;const p=[],m=o.exclude||[],v=a.customElements,y=u.head,$=y.querySelector("meta[charset]"),b=u.createElement("style"),w=[];let g,k=!0;Object.assign(f,o),f.o=new URL(o.resourcesUrl||"./",u.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{var c;const a={l:o[0],k:o[1],F:o[2],q:o[3]};4&a.l&&(S=!0),a.F=o[2],a.q=o[3],a.D=[],a.N=null!=(c=o[4])?c:{};const d=a.k,y=class extends HTMLElement{constructor(t){super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const l={l:0,$hostElement$:t,P:n,W:new Map};l.H=new Promise((t=>l.U=t)),l.G=new Promise((t=>l.L=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,l)})(t=this,a)}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Tt(this,t,a.q)),g&&(clearTimeout(g),g=null),k?w.push(this):f.jmp((()=>(t=>{if(!(1&f.l)){const e=n(t),o=e.P,c=()=>{};if(1&e.l)Tt(t,e,o.q),(null==e?void 0:e.t)?Mt(e.t):(null==e?void 0:e.G)&&e.G.then((()=>Mt(e.t)));else{e.l|=1,12&o.l&&(t=>{const e=t["s-cr"]=u.createComment("");e["s-cn"]=!0,pt(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){mt(e,e.M=n);break}}o.F&&Object.entries(o.F).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.l)){if(e.l|=32,n.I){const t=(t=>{const e=t.k.replace(/-/g,"_"),n=t.I;if(!n)return;const l=i.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(i.set(n,t),t[e])),s)
|
7
7
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.k}#${e.V}" was not found`);o.isProxied||(n.N=o.watchers,Ct(o,n,2),o.isProxied=!0);const r=()=>{};e.l|=8;try{o.__forceUpdate=St,o.__registerControllers=t=>(l(t,e),e.P.F??{}),new o(e),o.__registerControllers=void 0}catch(t){s(t)}e.l&=-9,e.l|=128,r(),Mt(e.t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.l|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=I(n);if(!r.has(e)){const l=()=>{};((t,e,n)=>{let l=r.get(t);h&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,r.set(t,l)})(e,t,!!(1&n.l)),l()}}}const c=e.M,a=()=>vt(e,!0);c&&c["s-rc"]?c["s-rc"].push(a):a()})(t,e,o)}c()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const t=n(this);t._&&(t._.map((t=>t())),t._=void 0),(null==t?void 0:t.t)?Rt(t.t):(null==t?void 0:t.G)&&t.G.then((()=>Rt(t.t)))}})()))}componentOnReady(){return n(this).G}};a.I=t[0],m.includes(d)||v.get(d)||(p.push(d),v.define(d,Ct(y,a,1)))}))})),p.length>0&&(S&&(b.textContent+=c),b.textContent+=p.sort()+"{visibility:hidden}[hydrated]{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const t=null!=(d=f.T)?d:O(u);null!=t&&b.setAttribute("nonce",t),y.insertBefore(b,$?$.nextSibling:y.firstChild)}k=!1,w.length?w.map((t=>t.connectedCallback())):f.jmp((()=>g=setTimeout(jt,30)))},xt=(t,e)=>e,Tt=(t,e,n)=>{n&&n.map((([n,l,o])=>{const s=t,i=At(e,o),r=Dt(n);f.ael(s,l,i,r),(e._=e._||[]).push((()=>f.rel(s,l,i,r)))}))},At=(t,e)=>n=>{var l;try{256&t.l?null==(l=t.t)||l[e](n):(t.R=t.R||[]).push([e,n])}catch(t){s(t)}},Dt=t=>({passive:!!(1&t),capture:!!(2&t)}),Lt=t=>f.T=t;export{xt as F,k as a,Pt as b,H as c,St as f,W as g,A as h,d as p,l as r,Lt as s}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
|
+
*/
|
6
|
+
import{r as i,c as t,h as s,g as h}from"./p-51cbd917.js";import{l as e}from"./p-58be3da6.js";import{u as r,r as a,g as o,a as c,m as n}from"./p-71481614.js";import{i as g,Y as d,Z as w}from"./p-fad10fcc.js";import{p,c as y}from"./p-c63ac346.js";const m=n(d),V=n(w),u=class{constructor(s){i(this,s),this.arcgisViewReadyChange=t(this,"arcgisViewReadyChange",7),this.arcgisViewChange=t(this,"arcgisViewChange",7),this.arcgisViewClick=t(this,"arcgisViewClick",7),this.arcgisViewDoubleClick=t(this,"arcgisViewDoubleClick",7),this.arcgisViewDrag=t(this,"arcgisViewDrag",7),this.arcgisViewHold=t(this,"arcgisViewHold",7),this.arcgisViewImmediateClick=t(this,"arcgisViewImmediateClick",7),this.arcgisViewImmediateDoubleClick=t(this,"arcgisViewImmediateDoubleClick",7),this.arcgisViewKeyDown=t(this,"arcgisViewKeyDown",7),this.arcgisViewKeyUp=t(this,"arcgisViewKeyUp",7),this.arcgisViewLayerviewCreate=t(this,"arcgisViewLayerviewCreate",7),this.arcgisViewLayerviewCreateError=t(this,"arcgisViewLayerviewCreateError",7),this.arcgisViewLayerviewDestroy=t(this,"arcgisViewLayerviewDestroy",7),this.arcgisViewMouseWheel=t(this,"arcgisViewMouseWheel",7),this.arcgisViewPointerDown=t(this,"arcgisViewPointerDown",7),this.arcgisViewPointerEnter=t(this,"arcgisViewPointerEnter",7),this.arcgisViewPointerLeave=t(this,"arcgisViewPointerLeave",7),this.arcgisViewPointerMove=t(this,"arcgisViewPointerMove",7),this.arcgisViewPointerUp=t(this,"arcgisViewPointerUp",7),this.manager=r(this),this.reactiveUtils=e(g),this._map=m(this,{editConstructorProperties:this._editMapProperties}),this._setChildElement=i=>{this.el.childElem=i},this.autoDestroyDisabled=!1,this.view=a(V(this,{editConstructorProperties:this._editViewProperties})),this.map=this.view.map,this.allLayerViews=this.view.allLayerViews,this.background=this.view.background,this.basemapView=this.view.basemapView,this.basemap=this._map.basemap,this.center=o(void 0,{get:i=>this.view.center??i,set:i=>{const t=p(i,this.ready?this.view:void 0);return this.ready?(this.view.center=t,this.view.center):t}}),this.constraints=this.view.constraints,this.extent=o(void 0,{get:i=>this.view.extent??i,set:(i,t)=>this.view.ready?(i&&!t?.equals(i)&&(this.view.extent=i),this.view.extent):i}),this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.gamepad=o(void 0,{get:()=>this.ready?this.view.input.gamepad:void 0,set:"ignore"}),this.graphics=this.view.graphics,this.ground=this._map.ground,this.highlightOptions=this.view.highlightOptions,this.highlights=this.view.highlights,this.interacting=o(!1,{get:()=>this.view.interacting,set:"ignore"}),this.ipsInfo=this._map.ipsInfo,this.itemId=o(void 0,{get:i=>this._map.portalItem?.id??i,set:i=>(this.ready&&c.reCreate(this._map,this).then((()=>{this.view.map=this._map})).catch(console.error),i)}),this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.navigating=o(!1,{get:()=>this.view.navigating,set:"ignore"}),this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.scale=o(void 0,{get:i=>this.view.scale??i,set:i=>(this.ready&&(this.view.scale=i),i)}),this.spatialReference=o(this.view.spatialReference,{set:(i,t)=>t?.equals(i)?t:i}),this.stationary=o(!0,{get:()=>this.view.stationary,set:"ignore"}),this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.toMap=a(((...i)=>this.view.toMap(...i))),this.toScreen=a(((...i)=>this.view.toScreen(...i))),this.updating=this.view.updating,this.viewpoint=o(void 0,{get:()=>this.view.viewpoint,set:(i,t)=>y(t,i)?i:t}),this.zoom=o(void 0,{get:i=>this.view.zoom??i,set:i=>(this.ready&&(this.view.zoom=i),i)})}async addLayer(i,t){this.map?.add(i,t)}async addLayers(i,t){this.map?.addMany(i,t)}async closePopup(){this.view?.closePopup()}async destroy(){await this.manager.destroy()}async goTo(i,t){return await(this.view?.goTo(i,t))}async hitTest(i,t){return await(this.view?.hitTest(i,t))}async openPopup(i){await(this.view?.openPopup(i))}async takeScreenshot(i){return await(this.view?.takeScreenshot(i))}async tryFatalErrorRecovery(){this.view?.tryFatalErrorRecovery()}async whenLayerView(i){return await(this.view?.whenLayerView(i))}componentDidLoad(){this.view.container??=this.el.childElem;const{watch:i}=this.reactiveUtils;this.manager.onLifecycle((()=>[i((()=>this.view.stationary),(()=>{this.arcgisViewChange.emit()}),{initial:!0}),i((()=>this.view.ready),(()=>this.arcgisViewReadyChange.emit()),{initial:this.view.ready})])),c.reEmitAccessorEvents(this.manager,this.view,this.reactiveUtils,"arcgisView")}render(){return s("div",{key:"2d274723b7327e801941bf05bcc3d542d6bac19e",class:"arcgis-map",ref:this._setChildElement})}_editMapProperties(i){this.map&&(this._map=this.map),this.itemId?i.portalItem={id:this.itemId}:this.basemap||(i.basemap="topo-vector");const{basemap:t,...s}=i;t||(i=s);const{ground:h,...e}=i;return h||(i=e),i}_editViewProperties(i){this.view.ui||(i.ui={components:["attribution"]}),i.map??=this._map;const t=p(this.center,void 0);return t&&(i.center=t),this.viewpoint&&(i.viewpoint=this.viewpoint),void 0!==this.scale&&(i.scale=this.scale),this.extent&&(i.extent=this.extent),void 0!==this.zoom&&(i.zoom=this.zoom),i}get el(){return h(this)}};u.style=".arcgis-map{padding:0;margin:0;height:100%;width:100%}";export{u as arcgis_map}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
|
+
*/
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-51cbd917.js";import{ah as o}from"./p-fad10fcc.js";import{r as a,f as c,d as n}from"./p-c63ac346.js";import{o as h}from"./p-12fad1ef.js";const l=class{constructor(s){t(this,s),this.arcgisReady=i(this,"arcgisReady",7),this._watchHandles=[],this.referenceElement=void 0,this.autoRefreshAssociationsDisabled=!1,this.connectivityAssociationsLineSymbol=void 0,this.includeConnectivityAssociationsDisabled=!1,this.includeStructuralAttachmentAssociationsDisabled=!1,this.maxAllowableAssociations=250,this.maxAllowableAssociationsSliderMax=void 0,this.maxAllowableAssociationsSliderMin=void 0,this.maxAllowableAssociationsSliderStep=void 0,this.showArrowsConnectivity=!1,this.showArrowsStructuralAttachment=!1,this.showAssociationsEnabled=!1,this.structuralAttachmentAssociationsLineSymbol=void 0,this.utilityNetwork=void 0,this.visibleElementsConnectivityAssociationsSettingsArrowsToggle=!0,this.visibleElementsConnectivityAssociationsSettingsCapSelect=!0,this.visibleElementsConnectivityAssociationsSettingsColorPicker=!0,this.visibleElementsConnectivityAssociationsSettingsStylePicker=!0,this.visibleElementsConnectivityAssociationsSettingsWidthInput=!0,this.visibleElementsMaxAllowableAssociationsSlider=!0,this.visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggle=!0,this.visibleElementsStructuralAttachmentAssociationsSettingsCapSelect=!0,this.visibleElementsStructuralAttachmentAssociationsSettingsStylePicker=!0,this.visibleElementsStructuralAttachmentAssociationsSettingsWidthInput=!0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){a(this,t)}autoRefreshAssociationsDisabledWatcher(t){void 0!==t&&this.widget&&(this.widget.autoRefreshAssociations=!t)}connectivityAssociationsLineSymbolWatcher(t){this.widget&&(this.widget.connectivityAssociationsLineSymbol=t)}includeConnectivityAssociationsDisabledWatcher(t){void 0!==t&&this.widget&&(this.widget.includeConnectivityAssociations=!t)}includeStructuralAttachmentAssociationsDisabledWatcher(t){void 0!==t&&this.widget&&(this.widget.includeStructuralAttachmentAssociations=!t)}maxAllowableAssociationsWatcher(t){void 0!==t&&this.widget&&(this.widget.maxAllowableAssociations=t)}maxAllowableAssociationsSliderMaxWatcher(t){void 0!==t&&this.widget&&(this.widget.maxAllowableAssociationsSliderMax=t)}maxAllowableAssociationsSliderMinWatcher(t){void 0!==t&&this.widget&&(this.widget.maxAllowableAssociationsSliderMin=t)}maxAllowableAssociationsSliderStepWatcher(t){void 0!==t&&this.widget&&(this.widget.maxAllowableAssociationsSliderStep=t)}showArrowsConnectivityWatcher(t){void 0!==t&&this.widget&&(this.widget.showArrowsConnectivity=t)}showArrowsStructuralAttachmentWatcher(t){void 0!==t&&this.widget&&(this.widget.showArrowsStructuralAttachment=t)}showAssociationsEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.showAssociationsEnabled=t)}structuralAttachmentAssociationsLineSymbolWatcher(t){this.widget&&(this.widget.structuralAttachmentAssociationsLineSymbol=t)}utilityNetworkWatcher(t){this.widget&&(this.widget.utilityNetwork=t)}visibleElementsConnectivityAssociationsSettingsArrowsToggleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,connectivityAssociationsSettings:{...this.widget.visibleElements.connectivityAssociationsSettings,arrowsToggle:t}})}visibleElementsConnectivityAssociationsSettingsCapSelectWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,connectivityAssociationsSettings:{...this.widget.visibleElements.connectivityAssociationsSettings,capSelect:t}})}visibleElementsConnectivityAssociationsSettingsColorPickerWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,connectivityAssociationsSettings:{...this.widget.visibleElements.connectivityAssociationsSettings,colorPicker:t}})}visibleElementsConnectivityAssociationsSettingsStylePickerWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,connectivityAssociationsSettings:{...this.widget.visibleElements.connectivityAssociationsSettings,stylePicker:t}})}visibleElementsConnectivityAssociationsSettingsWidthInputWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,connectivityAssociationsSettings:{...this.widget.visibleElements.connectivityAssociationsSettings,widthInput:t}})}visibleElementsMaxAllowableAssociationsSliderWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,maxAllowableAssociationsSlider:t})}visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,structuralAttachmentAssociationsSettings:{...this.widget.visibleElements.structuralAttachmentAssociationsSettings,arrowsToggle:t}})}visibleElementsStructuralAttachmentAssociationsSettingsCapSelectWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,structuralAttachmentAssociationsSettings:{...this.widget.visibleElements.structuralAttachmentAssociationsSettings,capSelect:t}})}visibleElementsStructuralAttachmentAssociationsSettingsStylePickerWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,structuralAttachmentAssociationsSettings:{...this.widget.visibleElements.structuralAttachmentAssociationsSettings,stylePicker:t}})}visibleElementsStructuralAttachmentAssociationsSettingsWidthInputWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,structuralAttachmentAssociationsSettings:{...this.widget.visibleElements.structuralAttachmentAssociationsSettings,widthInput:t}})}positionWatcher(t){void 0!==t&&this.widget&&this.el.childElem&&this.view.ui.move(this.el.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t,this._loadUtilityNetwork())}async componentDidLoad(){const t=this._createParams(),i=await o(t);this.widget=i,this._addContainer(),c(this),n(this)}disconnectedCallback(){h(this)}render(){return s("div",{key:"95298a67acdda848db2aa409cfa47f1390ac2cb2",ref:t=>this.el.childElem=t})}_addContainer(){this.widget.container=this.el.childElem}_createParams(){const t={};return t.visibleElements={connectivityAssociationsSettings:{arrowsToggle:this.visibleElementsConnectivityAssociationsSettingsArrowsToggle,capSelect:this.visibleElementsConnectivityAssociationsSettingsCapSelect,colorPicker:this.visibleElementsConnectivityAssociationsSettingsColorPicker,stylePicker:this.visibleElementsConnectivityAssociationsSettingsStylePicker,widthInput:this.visibleElementsConnectivityAssociationsSettingsWidthInput},maxAllowableAssociationsSlider:this.visibleElementsMaxAllowableAssociationsSlider,structuralAttachmentAssociationsSettings:{arrowsToggle:this.visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggle,capSelect:this.visibleElementsStructuralAttachmentAssociationsSettingsCapSelect,stylePicker:this.visibleElementsStructuralAttachmentAssociationsSettingsStylePicker,widthInput:this.visibleElementsStructuralAttachmentAssociationsSettingsWidthInput}},void 0!==this.autoRefreshAssociationsDisabled&&(t.autoRefreshAssociations=!this.autoRefreshAssociationsDisabled),void 0!==this.connectivityAssociationsLineSymbol&&(t.connectivityAssociationsLineSymbol=this.connectivityAssociationsLineSymbol),void 0!==this.includeConnectivityAssociationsDisabled&&(t.includeConnectivityAssociations=!this.includeConnectivityAssociationsDisabled),void 0!==this.includeStructuralAttachmentAssociationsDisabled&&(t.includeStructuralAttachmentAssociations=!this.includeStructuralAttachmentAssociationsDisabled),void 0!==this.maxAllowableAssociations&&(t.maxAllowableAssociations=this.maxAllowableAssociations),void 0!==this.maxAllowableAssociationsSliderMax&&(t.maxAllowableAssociationsSliderMax=this.maxAllowableAssociationsSliderMax),void 0!==this.maxAllowableAssociationsSliderMin&&(t.maxAllowableAssociationsSliderMin=this.maxAllowableAssociationsSliderMin),void 0!==this.maxAllowableAssociationsSliderStep&&(t.maxAllowableAssociationsSliderStep=this.maxAllowableAssociationsSliderStep),void 0!==this.showArrowsConnectivity&&(t.showArrowsConnectivity=this.showArrowsConnectivity),void 0!==this.showArrowsStructuralAttachment&&(t.showArrowsStructuralAttachment=this.showArrowsStructuralAttachment),void 0!==this.showAssociationsEnabled&&(t.showAssociationsEnabled=this.showAssociationsEnabled),void 0!==this.structuralAttachmentAssociationsLineSymbol&&(t.structuralAttachmentAssociationsLineSymbol=this.structuralAttachmentAssociationsLineSymbol),void 0!==this.utilityNetwork&&(t.utilityNetwork=this.utilityNetwork),t}async _loadUtilityNetwork(){if(this.view?.map&&this.view.map.portalItem){await this.view.map.load();const t=this.view.map.utilityNetworks.getItemAt(0);await t.load(),this.utilityNetwork=t}}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],autoRefreshAssociationsDisabled:["autoRefreshAssociationsDisabledWatcher"],connectivityAssociationsLineSymbol:["connectivityAssociationsLineSymbolWatcher"],includeConnectivityAssociationsDisabled:["includeConnectivityAssociationsDisabledWatcher"],includeStructuralAttachmentAssociationsDisabled:["includeStructuralAttachmentAssociationsDisabledWatcher"],maxAllowableAssociations:["maxAllowableAssociationsWatcher"],maxAllowableAssociationsSliderMax:["maxAllowableAssociationsSliderMaxWatcher"],maxAllowableAssociationsSliderMin:["maxAllowableAssociationsSliderMinWatcher"],maxAllowableAssociationsSliderStep:["maxAllowableAssociationsSliderStepWatcher"],showArrowsConnectivity:["showArrowsConnectivityWatcher"],showArrowsStructuralAttachment:["showArrowsStructuralAttachmentWatcher"],showAssociationsEnabled:["showAssociationsEnabledWatcher"],structuralAttachmentAssociationsLineSymbol:["structuralAttachmentAssociationsLineSymbolWatcher"],utilityNetwork:["utilityNetworkWatcher"],visibleElementsConnectivityAssociationsSettingsArrowsToggle:["visibleElementsConnectivityAssociationsSettingsArrowsToggleWatcher"],visibleElementsConnectivityAssociationsSettingsCapSelect:["visibleElementsConnectivityAssociationsSettingsCapSelectWatcher"],visibleElementsConnectivityAssociationsSettingsColorPicker:["visibleElementsConnectivityAssociationsSettingsColorPickerWatcher"],visibleElementsConnectivityAssociationsSettingsStylePicker:["visibleElementsConnectivityAssociationsSettingsStylePickerWatcher"],visibleElementsConnectivityAssociationsSettingsWidthInput:["visibleElementsConnectivityAssociationsSettingsWidthInputWatcher"],visibleElementsMaxAllowableAssociationsSlider:["visibleElementsMaxAllowableAssociationsSliderWatcher"],visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggle:["visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggleWatcher"],visibleElementsStructuralAttachmentAssociationsSettingsCapSelect:["visibleElementsStructuralAttachmentAssociationsSettingsCapSelectWatcher"],visibleElementsStructuralAttachmentAssociationsSettingsStylePicker:["visibleElementsStructuralAttachmentAssociationsSettingsStylePickerWatcher"],visibleElementsStructuralAttachmentAssociationsSettingsWidthInput:["visibleElementsStructuralAttachmentAssociationsSettingsWidthInputWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};l.style="arcgis-utility-network-associations{}";export{l as arcgis_utility_network_associations}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
|
+
*/
|
6
|
+
import{w as s,p as t,C as e,s as n}from"./p-71481614.js";import{s as o,g as a}from"./p-fad10fcc.js";var i=s=>r(void 0,s),r=t(class extends e{constructor(s,t){super(s);const e=this.exports;try{n(this.component);const s=t(this.component,this),o=this.exports!==e;if(s instanceof Promise){o||this.setProvisionalExports(s);const t=s.then((s=>{this.exports=s,super.catchUpLifecycle()})).catch((s=>{this._ready.reject(s),console.error(s)}));this.onLoad((async()=>await t))}else o&&void 0===s||(this.exports=s),queueMicrotask((()=>super.catchUpLifecycle()))}catch(s){this._ready.reject(s),console.error(s)}}catchUpLifecycle(){}}),c=i,l=t=>(e={})=>i(((n,i)=>{const r=n;function c(s){const t=i.exports,e=t._original??t,n=u(e,s);s&&(n._original=e),i.exports=n}if(i.onLifecycle((()=>o(n.el,t("./assets"),(({t9nLocale:s,t9nStrings:t,lang:e})=>{const o={...t,_lang:e,_t9nLocale:s,_loading:!1};i.exports=o;const a=t.componentLabel??t.widgetLabel;"string"==typeof a&&"label"in n&&null==n.label&&(n.label??(n.label=a)),c(r.messageOverrides)}),e.name))),"messageOverrides"in r&&i.onLifecycle((()=>s(r,"messageOverrides",c))),e.blocking)return i.ready;const l=a(n.el);return{_lang:l.lang,_t9nLocale:l.t9nLocale,_loading:!0}}));function u(s,t){if(!t)return s;const e={...s};return Object.entries(t).forEach((([t,n])=>{e[t]="object"==typeof n?u(s[t],n):n??s[t]})),e}var h=()=>p,f="arcgisPropertyChange",p=(...t)=>i(((e,n)=>{let o=e[f];return e.manager.isLit&&(o=e.constructor.$createEvent(f,void 0,e)),n.onLoad((()=>n.onLifecycle((()=>t.map((t=>s(e,t,(()=>o.emit({name:t}))))))))),o}));export{c as l,l as m,h as u}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.
|
4
|
-
* v4.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
5
|
*/
|
6
|
-
import{r as s,c as t,g as i}from"./p-
|
6
|
+
import{r as s,c as t,g as i}from"./p-51cbd917.js";import{F as h}from"./p-fad10fcc.js";import{u as r}from"./p-58be3da6.js";import{m as a}from"./p-109622b7.js";import{u as o}from"./p-71481614.js";import"./p-c63ac346.js";const c=a(h),e=class{constructor(i){s(this,i),this.arcgisReady=t(this,"arcgisReady",7),this.arcgisPropertyChange=t(this,"arcgisPropertyChange",7),this.manager=o(this),this.widget=c(this),this.viewModel=this.widget.viewModel,this.arcgisPropertyChange=r()("state"),this.autoDestroyDisabled=!1,this.referenceElement=void 0,this.icon=this.widget.icon,this.label=this.widget.label,this.unit=this.widget.unit,this.unitOptions=this.widget.unitOptions,this.position="bottom-left",this.state=this.viewModel.state}async destroy(){await this.manager.destroy()}get el(){return i(this)}};e.style="";export{e as arcgis_distance_measurement_2d}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.
|
4
|
-
* v4.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
5
|
*/
|
6
|
-
import{r as e,c as t,h as i,g as s}from"./p-
|
6
|
+
import{r as e,c as t,h as i,g as s}from"./p-51cbd917.js";const c=class{constructor(i){e(this,i),this.arcgisFlowItemBack=t(this,"arcgisFlowItemBack",7),this.arcgisFlowItemClose=t(this,"arcgisFlowItemClose",7),this.arcgisGetVersions=t(this,"arcgisGetVersions",7),this.arcgisManageVersion=t(this,"arcgisManageVersion",7),this.arcgisNewVersion=t(this,"arcgisNewVersion",7),this._versionListEventListeners=new Map,this._arcgisGetVersions=e=>{this.arcgisGetVersions.emit(e.detail)},this._arcgisManageVersion=e=>{this.arcgisManageVersion.emit(e.detail)},this._arcgisNewVersion=e=>{this.arcgisNewVersion.emit(e.detail)},this.serviceItemElementProps=void 0}disconnectedCallback(){this._versionList&&this._removeVersionListEventListeners(this._versionList)}render(){const{serviceItemElementProps:{allowEditing:e,closable:t,currentUser:s,executionError:c,currentVersionIdentifier:a,flowElement:r,hasAdvEditingUte:n,heading:o,isVersioningApiAvailable:l,pageSize:d,serviceName:h,serviceUrl:f,state:b,strings:m,versionInfos:p}}=this;let{_versionList:g}=this;const v=i("calcite-combobox",{key:"55e20d6e5f51b908ad71384612d1832aa6b1bf31",clearDisabled:!0,label:h,maxItems:5,overlayPositioning:"fixed",selectionMode:"single-persist",onCalciteComboboxChange:e=>{const t=e.target,i=p.find((e=>e.versionIdentifier.guid===t.value));this.arcgisManageVersion.emit({actionType:"changeVersion",serviceUrl:f,versionInfo:i})}},p?p.map((e=>i("calcite-combobox-item",{selected:a.guid===e.versionIdentifier.guid&&a.name===e.versionIdentifier.name,textLabel:e.versionIdentifier.name,value:e.versionIdentifier.guid}))):void 0);let u,k;return e&&(u=i("calcite-action",{key:"5d130fb6308283a8405d5d786ccc5deed2a65b1d",id:`actionManageVersions_${h}`,icon:"list",scale:"s",slot:"control",text:"",onClick:async()=>{g=document.createElement("arcgis-version-management-version-list"),g.versionListElementProps={closable:t,currentUser:s,currentVersionIdentifier:a,executionError:c,hasAdvEditingUte:n,heading:o,isVersioningApiAvailable:l,pageSize:d,serviceName:h,serviceUrl:f,state:b,strings:m,versionInfos:p},g.addEventListener("calciteFlowItemBack",(e=>{e.preventDefault(),this.arcgisFlowItemBack.emit()})),g.addEventListener("calciteFlowItemClose",(()=>{this.arcgisFlowItemClose.emit()})),this._addVersionListEventListeners(g),r.append(g)}}),k=i("calcite-tooltip",{key:"522b0802ecd431e4f9a1069e20f65c3256fb6e0c",overlayPositioning:"fixed",referenceElement:`actionManageVersions_${h}`},i("span",{key:"15b78ec25223344535c237f5cd35f39c19007fa3"},m.headers.manageVersions))),i("calcite-block",{key:"ce0894bbfcadf673e7a72fc51d3fc73caa383189",open:!0,heading:h},v,u,k)}_addVersionListEventListeners(e){e.addEventListener("arcgisGetVersions",this._arcgisGetVersions),this._versionListEventListeners.set("arcgisGetVersions",this._arcgisGetVersions),e.addEventListener("arcgisManageVersion",this._arcgisManageVersion),this._versionListEventListeners.set("arcgisManageVersion",this._arcgisManageVersion),e.addEventListener("arcgisNewVersion",this._arcgisNewVersion),this._versionListEventListeners.set("arcgisNewVersion",this._arcgisNewVersion)}_removeVersionListEventListeners(e){for(const[t,i]of this._versionListEventListeners)e.removeEventListener(t,i)}get el(){return s(this)}},a=class{constructor(i){e(this,i),this.arcgisAlterVersion=t(this,"arcgisAlterVersion",7),this.arcgisCreateVersion=t(this,"arcgisCreateVersion",7),this.arcgisFlowItemBack=t(this,"arcgisFlowItemBack",7),this.arcgisFlowItemClose=t(this,"arcgisFlowItemClose",7),this._switchToVersion=!0,this._handleCancel=()=>{this.arcgisFlowItemBack.emit()},this._handleChange=e=>{const{_mode:t,_ownerName:i,_versionName:s,versionPropertiesElementProps:{currentUser:c,serviceUrl:a,versionInfo:r}}=this;let{_alterVersionParameters:n,_createVersionParameters:o}=this;switch("create"===t&&(o||(o={access:"public",description:"",featureServerUrl:a,ownerName:c,versionName:""})),"edit"===t&&(n||(n={featureServerUrl:a,versionIdentifier:r.versionIdentifier,ownerName:i,versionName:s,access:r.access,description:r.description})),e.type){case"calciteChipGroupSelect":{const i=e.target.label,s=e.target.selectedItems[0].value;"create"===t&&(o={...o,[i]:s}),"edit"===t&&(n={...n,[i]:s});break}case"calciteInputTextInput":{const i=e.target.name,s=e.target.value;"create"===t&&(o={...o,[i]:s}),"edit"===t&&(n={...n,[i]:s});break}case"calciteTextAreaInput":{const i=e.target.name,s=e.target.value;"create"===t&&(o={...o,[i]:s}),"edit"===t&&(n={...n,[i]:s});break}}"create"===t&&("public"!==o.access&&c.toUpperCase()!==o.ownerName?.toUpperCase()?(this.switchToVersionCheckboxElement.checked=!1,this.switchToVersionCheckboxElement.disabled=!0):this.switchToVersionCheckboxElement.disabled=!1,this._createVersionParameters=o),"edit"===t&&(this._alterVersionParameters=n)},this._handleClose=()=>{this.arcgisFlowItemClose.emit()},this._handleSave=()=>{const{_alterVersionParameters:e,_createVersionParameters:t,_mode:i,_switchToVersion:s}=this;"create"===i&&this.arcgisCreateVersion.emit({createVersionParameters:t,switchToVersion:s}),"edit"===i&&this.arcgisAlterVersion.emit({alterVersionParameters:e})},this._handleSwitchToVersionChange=e=>{this._switchToVersion=e.target.checked},this.versionPropertiesElementProps=void 0}async componentWillLoad(){const{versionPropertiesElementProps:{versionInfo:e}}=this;e?(this._mode="edit",this._fullVersionName=e.versionIdentifier.name,this._ownerName=this._fullVersionName.substring(0,this._fullVersionName.lastIndexOf(".")),this._versionName=this._fullVersionName.substring(this._fullVersionName.lastIndexOf(".")+1)):this._mode="create"}componentDidRender(){"create"===this._mode&&this.versionNameInputElement?.setFocus()}render(){const{versionPropertiesElementProps:{closable:e,currentUser:t,hasAdvEditingUte:s,state:c,strings:a,versionInfo:r},_mode:n,_ownerName:o,_versionName:l}=this,d=i("div",{key:"c392345595b8a469004e9c308927130e183aacc6"},i("calcite-button",{key:"dac8568d533b66419a380b3df58e575dcddcfd12",appearance:"outline",slot:"footer",width:"half",onClick:this._handleCancel},a.actions.cancelSave),i("calcite-button",{key:"4e61c27a7044e558f09b53c1df4378ad92ce7b50",slot:"footer",width:"half",onClick:this._handleSave},a.actions.saveVersion)),h=i("calcite-label",{key:"bb50ff576addda0ae8344442a78949c28d83254f"},a.input.versionAccess,i("calcite-chip-group",{key:"5f6ab42c5b917bde0e2f263cac92dbc3cf6414ae",label:"access",onCalciteChipGroupSelect:this._handleChange,selectionMode:"single-persist"},i("calcite-chip",{key:"d10f9cd361c9f49b2e6e454b149d4a65431400c4",selected:"edit"===n&&"public"===r.access||"create"===n,value:"public"},a.accessLevels.public),i("calcite-chip",{key:"09d7d3f5fcb94e7c3e23dce1844d4a0e7d86b0af",selected:"edit"===n&&"protected"===r.access,value:"protected"},a.accessLevels.protected),i("calcite-chip",{key:"60a611f3041e8affcd3a77c5b5545c01913b2845",selected:"edit"===n&&"private"===r.access,value:"private"},a.accessLevels.private))),f=i("calcite-label",{key:"07681f91b8a5c16f795ad150afc14c8cac5502f3"},a.input.versionDescription,i("calcite-text-area",{key:"fa85a6ca986bdd06f83c815fbe35814be3603cbf",name:"description",onCalciteTextAreaInput:this._handleChange,resize:"vertical",value:"edit"===n?r.description:""})),b=i("calcite-label",{key:"319c7ce3929defd8dedfae89348a7fb47189a913"},a.input.versionName,i("calcite-input-text",{key:"c818aa77d41df60db2cffa4c23e2425f830eefc9",ref:e=>{this.versionNameInputElement=e},name:"versionName",onCalciteInputTextInput:this._handleChange,maxLength:62,value:"edit"===n?l:""})),m=i("calcite-label",{key:"cd21ff656e4c7e3694766bc1aff7463cd055582a"},a.input.versionOwner,i("calcite-input-text",{key:"2c833a495d718c776d3a972aa429614de4960de8",name:"ownerName",onCalciteInputTextInput:this._handleChange,disabled:!s,value:"edit"===n?o:t})),p="create"===n?i("calcite-label",{layout:"inline"},i("calcite-checkbox",{ref:e=>{this.switchToVersionCheckboxElement=e},checked:!0,name:"switchToVersion",onCalciteCheckboxChange:this._handleSwitchToVersionChange}),a.actions.switchToVersion):void 0;return i("calcite-flow-item",{key:"07dc4c19632a828a13f8add21dc9d1ac29bb135c",closable:e,description:r?r.versionIdentifier.name:"",heading:r?a.actions.editVersion:a.actions.newVersion,onCalciteFlowItemClose:this._handleClose},i("calcite-panel",{key:"fd0048a26ecf0bc7a5c1233e1c7313a235d364f5",loading:"executing"===c},i("calcite-block",{key:"26723bde166e0a5cf21c5c8a9bd40835fdabb27a",heading:"",open:!0},b,f,h,m,p,d)))}get el(){return s(this)}};export{c as arcgis_version_management_service_item,a as arcgis_version_management_version_properties}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.
|
4
|
-
* v4.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
5
|
*/
|
6
|
-
import{r as t,c as s,h as i,g as e}from"./p-
|
6
|
+
import{r as t,c as s,h as i,g as e}from"./p-51cbd917.js";import{ai as h,i as a}from"./p-fad10fcc.js";import{r,f as c,d as o,g as d}from"./p-c63ac346.js";import{o as l}from"./p-12fad1ef.js";const n=class{constructor(i){t(this,i),this.arcgisReady=s(this,"arcgisReady",7),this.arcgisAddFlag=s(this,"arcgisAddFlag",7),this.arcgisAddFlagComplete=s(this,"arcgisAddFlagComplete",7),this.arcgisAddFlagError=s(this,"arcgisAddFlagError",7),this.arcgisAddResultArea=s(this,"arcgisAddResultArea",7),this.arcgisRemoveResultArea=s(this,"arcgisRemoveResultArea",7),this._watchHandles=[],this.referenceElement=void 0,this.enableResultArea=!1,this.defaultGraphicColor={color:[255,255,0,.6],haloOpacity:.9,fillOpacity:.2,hex:"#FFFF00"},this.disabled=!1,this.flags=[],this.gdbVersion="sde.DEFAULT",this.inputSettings=[],this.resultAreaProperties=void 0,this.selectedTraces=[],this.selectOnCompleteDisabled=!1,this.showGraphicsOnCompleteDisabled=!1,this.showSelectionAttributesDisabled=!1,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){r(this,t)}enableResultAreaWatcher(t){this.widget&&(this.widget.enableResultArea=t)}defaultGraphicColorWatcher(t){this.widget&&(this.widget.defaultGraphicColor=t)}disabledWatcher(t,s){this.widget&&t!==s&&(this.widget.disabled=t)}flagsWatcher(t){this.widget&&(this.widget.flags=t)}gdbVersionWatcher(t){this.widget&&(this.widget.gdbVersion=t)}inputSettingsWatcher(t){this.widget&&(this.widget.inputSettings=t)}resultAreaPropertiesWatcher(t){this.widget&&(this.widget.resultAreaProperties=t)}selectedTracesWatcher(t){this.widget&&(this.widget.selectedTraces=t)}selectOnCompleteDisabledWatcher(t){void 0!==t&&this.widget&&(this.widget.selectOnComplete=!t)}showGraphicsOnCompleteDisabledWatcher(t){void 0!==t&&this.widget&&(this.widget.showGraphicsOnComplete=!t)}showSelectionAttributesDisabledWatcher(t){void 0!==t&&this.widget&&(this.widget.showSelectionAttributes=!t)}positionWatcher(t){void 0!==t&&this.widget&&this.el.childElem&&this.view.ui.move(this.el.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async checkCanTrace(){await(this.widget?.checkCanTrace())}async confirmReset(){this.widget?.confirmReset()}async componentDidLoad(){const t=this._createParams(),s=await h(t);this.widget=s,await this._addWatchers(),this._proxyEvents(),this._addContainer(),c(this),o(this)}disconnectedCallback(){l(this)}render(){return i("div",{key:"0c08d69382de6c22fb9de26dc710b4be828af319",ref:t=>this.el.childElem=t})}_addContainer(){this.widget.container=this.el.childElem}async _addWatchers(){const{watch:t}=await a();d(this,t((()=>this.widget.disabled),(t=>this.disabled=t)))}_createParams(){const t={};return this.defaultGraphicColor&&(t.defaultGraphicColor=this.defaultGraphicColor),void 0!==this.enableResultArea&&(t.enableResultArea=this.enableResultArea),this.flags&&(t.flags=this.flags),this.gdbVersion&&(t.gdbVersion=this.gdbVersion),this.inputSettings&&(t.inputSettings=this.inputSettings),this.resultAreaProperties&&(t.resultAreaProperties=this.resultAreaProperties),this.selectedTraces&&(t.selectedTraces=this.selectedTraces),void 0!==this.selectOnCompleteDisabled&&(t.selectOnComplete=!this.selectOnCompleteDisabled),void 0!==this.showGraphicsOnCompleteDisabled&&(t.showGraphicsOnComplete=!this.showGraphicsOnCompleteDisabled),void 0!==this.showSelectionAttributesDisabled&&(t.showSelectionAttributes=!this.showSelectionAttributesDisabled),this.view&&(t.view=this.view),t}_proxyEvents(){this.widget.on("add-flag",(t=>this.arcgisAddFlag.emit(t))),this.widget.on("add-flag-complete",(t=>this.arcgisAddFlagComplete.emit(t))),this.widget.on("add-flag-error",(t=>this.arcgisAddFlagError.emit(t))),this.widget.on("add-result-area",(t=>this.arcgisAddResultArea.emit(t))),this.widget.on("remove-result-area",(t=>this.arcgisRemoveResultArea.emit(t)))}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],enableResultArea:["enableResultAreaWatcher"],defaultGraphicColor:["defaultGraphicColorWatcher"],disabled:["disabledWatcher"],flags:["flagsWatcher"],gdbVersion:["gdbVersionWatcher"],inputSettings:["inputSettingsWatcher"],resultAreaProperties:["resultAreaPropertiesWatcher"],selectedTraces:["selectedTracesWatcher"],selectOnCompleteDisabled:["selectOnCompleteDisabledWatcher"],showGraphicsOnCompleteDisabled:["showGraphicsOnCompleteDisabledWatcher"],showSelectionAttributesDisabled:["showSelectionAttributesDisabledWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};n.style="";export{n as arcgis_utility_network_trace}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.
|
4
|
-
* v4.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
5
|
*/
|
6
|
-
import{c as t,d as i,D as s,e as o,f as n,h as e,j as h,k as r,i as c}from"./p-d6bbd321.js";var a,d=(t,i)=>t.manager.internals.members?.[i]?.[0],u=Symbol.for("controller");function f(t){a!==t&&(a=t,queueMicrotask((()=>{a===t&&(a=void 0)})))}function l(){return a}var y,p=[];function v(t){if(void 0===t)return void(p=[]);const i=p.indexOf(t);p=-1===i?[...p,t]:p.slice(0,i+1),queueMicrotask((()=>{p=[]}))}var g,w=async(t,i)=>{const s=m(t);if(void 0===s)return t;if(await s.ready,"function"==typeof i){const t=s.watchExports((s=>i(s,t)))}return s.exports},b=async t=>{const i=m(t);return await i.ready,i},m=t=>{const i=function(){const t=y;return y=void 0,t}();if(void 0!==i)return i;const s=l().manager.internals.resolveExports(t);return void 0!==s?s:(t=>"object"==typeof t&&null!==t&&(u in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t)?t:void 0},j={setter:!1,getter:!1,readOnly:!1},k=new WeakMap;g=u;var C=class{constructor(t){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new s,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[g]=!0,this.ready=this._ready.promise,this._exports=L(this),this._exportWatchers=new Set;const i=t??l();this.component=i,this.component.addController(this),v(this),void 0===this.component.manager||queueMicrotask((()=>this.catchUpLifecycle()))}catchUpLifecycle(){const{manager:t}=this.component;!t.connectedCalled||this.connectedCalled||this.triggerConnected(),!t._loadCalled||this.triggerLoad().then((()=>{!t.loadedCalled||this.triggerLoaded()})).catch(console.error)}get exports(){return this._exports}set exports(t){const s=this._exports;s!==t&&(this._exports=t,this._exportWatchers.forEach(i),this.connectedCalled&&!1!==this.assignedProperty&&this.component.requestUpdate(this.assignedProperty,s)),this._ready.resolve(t)}setProvisionalExports(t){this._exports=L(t),this._exportWatchers.forEach(i)}watchExports(t){const i=()=>t(this._exports);return this._exportWatchers.add(i),()=>{this._exportWatchers.delete(i)}}get use(){return f(this.component),w}get useRef(){return f(this.component),b}get useRefSync(){return f(this.component),m}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this._callbacks.hostConnected.push(t)}onDisconnected(t){this._callbacks.hostDisconnected.push(t)}onLoad(t){this._callbacks.hostLoad.push(t)}onLoaded(t){this._callbacks.hostLoaded.push(t)}onUpdate(t){this._callbacks.hostUpdate.push(t)}onUpdated(t){this._callbacks.hostUpdated.push(t)}onDestroy(t){this._callbacks.hostDestroy.push(t)}onLifecycle(t){this._callbacks.hostLifecycle.push(t),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(t)}triggerConnected(){const t=this;t.hostConnected&&i(t.hostConnected,t),this._callbacks.hostConnected.forEach(i),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){const t=this;t.hostDisconnected&&i(t.hostDisconnected,t),this._callbacks.hostDisconnected.forEach(i),this._lifecycleCleanups.forEach(i),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;const t=this;t.hostLoad&&await o(t.hostLoad,t),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(o)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;const t=this;t.hostLoaded&&i(t.hostLoaded,t),this._callbacks.hostLoaded.forEach(i),this.loadedCalled=!0}triggerUpdate(t){const s=this;s.hostUpdate&&i(s.hostUpdate,s,t),this._callbacks.hostUpdate.forEach(_,t)}triggerUpdated(t){const s=this;s.hostUpdated&&i(s.hostUpdated,s,t),this._callbacks.hostUpdated.forEach(_,t)}triggerDestroy(){const t=this;t.hostDestroy&&i(t.hostDestroy,t),this._callbacks.hostDestroy.forEach(i)}triggerLifecycle(){const t=this;t.hostLifecycle&&this._callLifecycle((()=>t.hostLifecycle())),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(t){f(this.component);const s=i(t);(Array.isArray(s)?s:[s]).forEach((t=>{"function"==typeof t?this._lifecycleCleanups.push(t):"object"==typeof t&&"function"==typeof t.remove&&this._lifecycleCleanups.push(t.remove)}))}};function _(t){i(t,void 0,this)}var x=C;function L(t){if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const i=new Proxy(t,{get(t,s,o){if(!O.has(s)||!(s in t)||t[s]!==i)return s in t||s in Promise.prototype||"symbol"==typeof s?"function"==typeof t?t[s]:Reflect.get(t,s,o):void 0},set:(t,i,s,o)=>Reflect.set(t,i,s,o)});return i}var O=new Set(["exports","_exports"]),U=void 0;function D(){Array.from(U?.entries()??[]).forEach((([t,{callbacks:i}])=>{const s=Object.keys(t);i.forEach((t=>t(s)))})),U=void 0}function M(t,s,o){var n;const e=s,h=t.manager.internals;(n=h.allWatchers)[e]??(n[e]=[]);const r=h.allWatchers[e],c=o,a=(t,s,o)=>i(c,null,t,s,o);return r.push(a),()=>{const t=r.indexOf(a);-1!==t&&r.splice(t,1)}}var P=class{constructor(t){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;const t=this.component.manager.internals;Object.entries(t.members).forEach((([i,[s]])=>{var o;2048&s&&((o=t.setters)[i]??(o[i]=[]),t.setters[i].push(t.readonlySetter))}))},this.trackedValue=R,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this.reactiveUtilsIntegrations=new Set,this._exports=new WeakMap,this.readonlySetter=(t,i,s)=>{if(j.readOnly)return t;throw new Error(`Cannot assign to read-only property "${s}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=t}firePropTrackers(t,i){const s=this.keyTrackers;this.trackedValue=R,this.keyTrackers=[],s.forEach((s=>s(t,i)))}getSetProxy(t){const i=this.component,s=i.constructor.prototype;if(this._getSetProxy(s,t,"class"),i.manager.isLit)return;const o=i.el.constructor.prototype;s!==o&&this._getSetProxy(o,t,"html")}_getSetProxy(t,i,s){const o=d(this.component,i);let n;do{n=Object.getOwnPropertyDescriptor(t,i)}while(!n&&(t=Object.getPrototypeOf(t)));if(!n)return;const e=n.get,h=n.set,r=S in e,c=S in h;if(r&&c)return;const a=!r,u=!c,f=a?function(){let t=e.call(this);const s=k.get(this);if(j.getter||void 0===s)return t;const o=s.manager.internals;t=o.accessorGetter[i](t,i);const n=o.getters[i]??A;for(let s=0;s<n.length;s++)t=n[s](t,i);return t}:e,l=u?function(t){const s=e.call(this),n=k.get(this);if(void 0===n)return void h.call(this,t);let r=n.manager.isLit?t??void 0:function(t,i=8){return null==t||"object"==typeof t||"function"==typeof t?t:4&i?"false"!==t&&(""===t||!!t):2&i?Number.parseFloat(t):1&i?String(t):t}(t,o);const c=n.manager.internals;if(r===s)h.call(this,r);else{const t=j.setter?A:c.setters[i]??A;for(let o=0;o<t.length&&(r=t[o](r,s,i),r!==s);o++);r=c.accessorSetter[i](r,s,i),h.call(this,r),r!==s&&c.enabledWatchers[i]?.forEach((t=>t(r,s,i)))}c.keyTrackers.length>0&&c?.firePropTrackers(i,t)}:h;a&&(f[S]=!0),u&&(l[S]=!0),Object.defineProperty(t,i,{...n,get:f,set:l})}markExports(t,i){("object"==typeof i&&null!==i||"function"==typeof i)&&this._exports.set(i,t)}resolveExports(t){return"object"==typeof t&&null!==t||"function"==typeof t?this._exports.get(t):void 0}},A=[],S=Symbol(),R=Symbol(),E=(t,i)=>new q(t,i),q=class extends x{constructor(i,o){const n="addController"in i,e=new Set,h=i;if(h.addController=function(t){e.add(t),!(u in t)&&i.renderRoot&&i.el.isConnected&&t.hostConnected?.()},h.removeController=function(t){e.delete(t),t.controllerRemoved?.()},!n){const t=o??i.constructor.__forceUpdate;h.requestUpdate=()=>t(i)}super(i),this.internals=new P(this.component),this.destroyed=!1,this._updatePromise=new s,this._originalLifecycles={},this.isLit=n,this.component.manager=this,function(i,s){if(s)i.manager.internals.members=Object.fromEntries(Array.from(i.constructor.elementProperties,(([t,i])=>i.noAccessor?void 0:[t,[(i.readOnly?2048:0)|(i.state?32:16)]])).filter(t));else{const t=i.constructor,s=t.__registerControllers?.(i)??void 0;if(t.__registerControllers=void 0,"object"!=typeof s)throw new Error("Failed to retrieve component meta");i.manager.internals.members=Object.fromEntries(Object.entries(s).filter((([t,[i]])=>!!(63&i))))}}(i,n),this._controllers=e,this.exports=void 0,this.hasDestroy=T in this.component&&"function"==typeof this.component.destroy,this._bindLifecycleMethods();const r=this.internals;Object.keys(r.members).forEach((t=>{r.accessorGetter[t]=I,r.accessorSetter[t]=I,r.getSetProxy(t)})),n?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(i,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(r.enableReadonly),v(void 0),f(i),k.set(i.el,i),k.set(i,i)}_bindLifecycleMethods(){const t=this.component,i=this.isLit,s=t.el===t;this._originalLifecycles={_connectedCallback:i||s?void 0:t.connectedCallback,_disconnectedCallback:i||s?void 0:t.disconnectedCallback,_load:i?t.load:t.componentWillLoad,_loaded:i?t.loaded:t.componentDidLoad,_willUpdate:i?void 0:t.componentWillUpdate,_updated:i?void 0:t.componentDidUpdate,_destroy:t.destroy};const o=this._connectedCallback.bind(this),n=this._disconnectedCallback.bind(this),e=this._update.bind(this),h=this._updated.bind(this);i?t.constructor.prototype.addController.call(t,{hostConnected:o,hostDisconnected:n,hostUpdate:e,hostUpdated:h}):(t.connectedCallback=o,t.disconnectedCallback=n,t.componentWillLoad=this._load.bind(this),t.componentDidLoad=this._loaded.bind(this),t.componentWillUpdate=e,t.componentDidUpdate=h),this.hasDestroy&&(t.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){const t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It can not be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${T} prop.`)}void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout);const t=this.internals;t.enabledWatchers=t.allWatchers,D(),t.enableReadonly?.(),this._controllers.forEach(W),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(F),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){const t=this.internals.reactiveUtilsIntegrations;if(t.size>0)for(const i of t)"triggerLoad"in i?await i.triggerLoad():await o(i.hostLoad,i);await Promise.allSettled(Array.from(this._controllers,G,t)),await(this._originalLifecycles._load?.call(this.component)),this.hasDestroy&&M(this.component,T,(()=>this._setAutoDestroyTimeout()))}_loaded(){this._controllers.forEach(N),this._originalLifecycles._loaded?.call(this.component)}_update(){this._controllers.forEach(z,this.component.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){const t=this.component;if(this._controllers.forEach(B,t.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)t.$changes=new Map;else{const t=this._updatePromise;this._updatePromise=new s,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(H),this._controllers.clear(),await(this._originalLifecycles._destroy?.call(this.component))}}_setAutoDestroyTimeout(){void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout),this.component.el.isConnected||this.component.autoDestroyDisabled||(this._autoDestroyTimeout=n((()=>{this.destroy().catch(console.error)}),$))}},T="autoDestroyDisabled",$=1e3,I=t=>t;function W(t){"triggerConnected"in t?t.triggerConnected():i(t.hostConnected,t)}function F(t){"triggerDisconnected"in t?t.triggerDisconnected():i(t.hostDisconnected,t)}async function G(t){this.has(t)||("triggerLoad"in t?await t.triggerLoad():await o(t.hostLoad,t))}function N(t){"triggerLoaded"in t?t.triggerLoaded():i(t.hostLoaded,t)}function z(t){"triggerUpdate"in t?t.triggerUpdate(this):i(t.hostUpdate,t,this)}function B(t){"triggerUpdated"in t?t.triggerUpdated(this):i(t.hostUpdated,t,this)}function H(t){"triggerDestroy"in t?t.triggerDestroy():i(t.hostDestroy,t)}function J(t,s,o){const n=t.manager.internals;return n.trackedValue!==R&&n.trackedValue!==o&&n.firePropTrackers(void 0,void 0),0===n.keyTrackers.length&&queueMicrotask((()=>n.firePropTrackers(void 0,void 0))),n.trackedValue=o,n.keyTrackers.push(((t,n)=>i(s,void 0,o===n?t:void 0))),o}function K(t,s,o){const n=Array.isArray(t)?t:[t];let e=n.length+1;const h=t=>{e-=1,void 0!==t&&(e=Math.min(e,0)),0===e&&s(t)};n.forEach((t=>function(t,s,o){const n=Object.keys(t),e=n.length;void 0===U&&queueMicrotask(D),U??(U=new Map);let h=U.get(t);return void 0===h&&(h={callbacks:[],keyCount:e},U.set(t,h)),h.keyCount!==e&&(h.callbacks.forEach((t=>t(n))),h.callbacks=[],h.keyCount=e),h.callbacks.push((n=>{const h=n[e];i(s,null,void 0===h?void 0:t[h]===o?h:void 0)})),o}(t,(i=>h(void 0===i?void 0:{key:i,host:t,isReactive:!1})),o)));const r=n.find((t=>"manager"in t&&"object"==typeof t.manager&&t.manager.component===t));return r&&J(r,(t=>h(void 0===t?void 0:{key:t,host:r,isReactive:void 0!==d(r,t)})),o),o}function Q(t,i){const s=l();return J(s,(o=>{const n=o,e=s.manager,h=s,r=h[n];if(null!=r&&r!==t&&"function"==typeof i.set){const s=i.set(r,t,n);if(s!==r)if(e.isLit)h[n]=s;else{let t=!0;e.onConnected((()=>{t&&(t=!0,V((()=>{h[n]=s})))}))}}!function(t,i,s){var o,n;const e=s,h=t.manager.internals,r="function"==typeof e.get?e.get:void 0;r&&((o=h.getters)[i]??(o[i]=[]),h.getters[i].unshift(r));const c="ignore"===e.set?Y:e.set;c&&((n=h.setters)[i]??(n[i]=[]),h.setters[i].unshift(c))}(s,n,i)}),t)}function V(t){j.setter=!0;try{return t()}finally{j.setter=!1}}function X(t){j.getter=!0;try{return t()}finally{j.getter=!1}}var Y=(t,i)=>i;function Z(t){return Q(t,{set:l().manager.internals.readonlySetter})}var tt,it=t=>(...i)=>{const s=p,o=new t(...i),n=o.exports;v(s.at(-1));const e=o.component.manager.internals;var h;return e.markExports(o,n),o.watchExports((t=>e.markExports(o,t))),y!==(h=o)&&(y=h,queueMicrotask((()=>{y===h&&(y=void 0)}))),K([o.component,...s].reverse(),(t=>void 0===t?void 0:function(t,{host:i,key:s,isReactive:o},n){const e=i,h=e[s]!==n;e[s]!==t.exports&&!h&&n!==t.exports&&(e[s]=t.exports);if(i===t.component){if(o){const i=t.component.manager.internals;h&&i.markExports(t,e[s]),M(t.component,s,(s=>{s!==t.exports&&i.markExports(t,s)}))}t.assignedProperty=o?void 0:s}t.watchExports((()=>{if(e[s]===t.exports)return;const i=t.component.manager,o=i.internals.setters[s]?.includes(i.internals.readonlySetter);o?function(){j.readOnly=!0;try{return void(e[s]=t.exports)}finally{j.readOnly=!1}}():e[s]=t.exports}))}(o,t,n)),n)},st=Promise.all([e(),h()]),ot=class extends C{async hostLoad(){const[t,{subclass:i,property:s}]=await st;class o extends t{}const n=(t,i)=>a[i];function e(t,i,s){return void 0!==a&&(a[s]=t),t}const h=this.component,r=h.manager.internals,c=[];if(X((()=>Object.keys(r.members).forEach((t=>{r.accessorSetter[t]!==I||(c.push(t),r.accessorGetter[t]=n,r.accessorSetter[t]=e,s({value:h[t]})(o.prototype,t))})))),this._enabledMembers=c,0===c.length)return;const a=new(i(h.el.tagName)(o));this._instance=a}controllerRemoved(){super.controllerRemoved();const t=this.component.manager.internals;this._instance?.destroy(),this._enabledMembers?.forEach((i=>{t.accessorGetter[i]=I,t.accessorSetter[i]=I}))}},nt=t=>(i,s)=>ht(i,t,s),et=class extends x{constructor(t,i,s){super(t),this._loadAccessor=i,this._options=s,this._watchedProperties=new Map,this._isBinding={value:!0},this.setProvisionalExports(rt.makeGetterProxy(t,this._watchedProperties,this._isBinding,this.constructor.allowedPropNameMismatches));const o=t.manager.internals.reactiveUtilsIntegrations;o.add(this);const n=Array.from(o).find((t=>t instanceof ot));n&&o.delete(n),o.add(n??new ot(this.component)),J(t,(t=>{t&&(this._instancePropName=t)}),this.exports)}hostConnected(){this._isBinding.value=!1}async hostLoad(){this.reactiveUtils=await async function(){return tt??(tt=c()),await tt}();const t=this.component,i=this._gatherParameters(),s=this._options?.editConstructorProperties?.call(t,i)??i,o=s instanceof Promise?await s:s,n="string"==typeof this._instancePropName?t[this._instancePropName]:void 0;null!=n&&n!==this.exports?(this._instance=n,n.set(o)):this._instance=await this._createInstance(o),t.manager.destroyed||(rt.watchComponentUpdates(this,this._instance,this._watchedProperties),rt.watchAccessorUpdates(this,this._instance,this._watchedProperties),this.exports=this._instance)}_gatherParameters(){return Object.fromEntries(Array.from(this._watchedProperties,(([t,i])=>[i,this.component[t]])).filter((([,t])=>void 0!==t)))}async _createInstance(t){return this._isAccessorConstructor(this._loadAccessor)?new this._loadAccessor(t):await this._loadAccessor(t)}_isAccessorConstructor(t){return"prototype"in t&&"declaredClass"in t.prototype}hostDestroy(){this._instance&&this._instance.destroy()}async reCreate(){this.hostDestroy(),await this.hostLoad()}},ht=it(et),rt={makeGetterProxy:(t,i,s)=>new Proxy({},{has:(t,i)=>"string"==typeof i||i in t,get:(o,n)=>{const e=Reflect.get(o,n);return"symbol"==typeof n||n in Promise.prototype||n in o||!(s?.value??1)?e:K(t,(t=>{void 0!==t&&i.set(t.key,n)}),e)}}),watchComponentUpdates(t,i,s){function o(t,o){const n=s.get(o),e=i[n];return"boolean"==typeof e&&n!==o&&o.toLowerCase().includes("disable")?!e:e}const n=(t,o,n)=>{const h=s.get(n),r=i[h],c="boolean"==typeof r&&h!==n&&n.toLowerCase().includes("disable");if((c?!r:e.manager.isLit?r??void 0:r)===t)return t;i[h]=c?!t:t;const a=i[h];return c?!a:a},e=t.component,h=e.manager.internals;s.forEach(((t,i)=>{h.accessorGetter[i]=o,h.accessorSetter[i]=n}))},watchAccessorUpdates(t,i,s){const{component:o}=t,n=o,e=i,h=function(t){const i=t,s=Object.entries(i.__accessor__?.metadata??{});return new Set(s.filter((([t,i])=>!0===i?.readOnly)).map((([t])=>t)))}(i);X((()=>s.forEach(((t,i)=>{if(h.has(t))return;const s=n[i];let r=e[t];o.manager.isLit&&(r??(r=void 0));const c="boolean"==typeof s&&t!==i&&i.toLowerCase().includes("disable")?!s:s;null!=c&&r!==c&&(e[t]=c)})))),t.onLifecycle((()=>{if(!i.destroyed)return Array.from(s,(([i,s])=>t.reactiveUtils.watch((()=>e[s]),(()=>{const t=e[s],o="boolean"==typeof t&&s!==i&&i.toLowerCase().includes("disable")?!t:t;V((()=>{n[i]=o}))}),{initial:!0})))}))},reEmitAccessorEvents(i,s,o,n){if(!("on"in s)||"function"!=typeof s.on)return;const e=Object.entries(i.component).map((([t,i])=>{const s=i;if(!t.startsWith(n)||t===n||"object"!=typeof s||null===s||!("emit"in s)||"function"!=typeof s.emit)return;const o=s.emit,e=t.slice(n.length);return[r(e).toLowerCase(),o]})).filter(t);if(0===e.length)return;const h=s,c=()=>h;i.onLifecycle((()=>{if(!s.destroyed)return e.map((([t,i])=>o.on(c,t,i)))}))},async reCreate(t,i){const s=i.manager.useRefSync(t);void 0!==s&&await s.reCreate()}};export{et as A,C,rt as a,Q as g,nt as m,it as p,Z as r,f as s,J as t,E as u,M as w}
|
6
|
+
import{c as t,d as i,D as s,e as o,f as n,h as e,j as h,k as r,i as c}from"./p-fad10fcc.js";var a,d=(t,i)=>t.manager.internals.members?.[i]?.[0],u=Symbol.for("controller");function f(t){a!==t&&(a=t,queueMicrotask((()=>{a===t&&(a=void 0)})))}function l(){return a}var y,p=[];function v(t){if(void 0===t)return void(p=[]);const i=p.indexOf(t);p=-1===i?[...p,t]:p.slice(0,i+1),queueMicrotask((()=>{p=[]}))}var g,w=async(t,i)=>{const s=m(t);if(void 0===s)return t;if(await s.ready,"function"==typeof i){const t=s.watchExports((s=>i(s,t)))}return s.exports},b=async t=>{const i=m(t);return await i.ready,i},m=t=>{const i=function(){const t=y;return y=void 0,t}();if(void 0!==i)return i;const s=l().manager.internals.resolveExports(t);return void 0!==s?s:(t=>"object"==typeof t&&null!==t&&(u in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t)?t:void 0},j={setter:!1,getter:!1,readOnly:!1},k=new WeakMap;g=u;var C=class{constructor(t){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new s,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[g]=!0,this.ready=this._ready.promise,this._exports=L(this),this._exportWatchers=new Set;const i=t??l();this.component=i,this.component.addController(this),v(this),void 0===this.component.manager||queueMicrotask((()=>this.catchUpLifecycle()))}catchUpLifecycle(){const{manager:t}=this.component;!t.connectedCalled||this.connectedCalled||this.triggerConnected(),!t._loadCalled||this.triggerLoad().then((()=>{!t.loadedCalled||this.triggerLoaded()})).catch(console.error)}get exports(){return this._exports}set exports(t){const s=this._exports;s!==t&&(this._exports=t,this._exportWatchers.forEach(i),this.connectedCalled&&!1!==this.assignedProperty&&this.component.requestUpdate(this.assignedProperty,s)),this._ready.resolve(t)}setProvisionalExports(t){this._exports=L(t),this._exportWatchers.forEach(i)}watchExports(t){const i=()=>t(this._exports);return this._exportWatchers.add(i),()=>{this._exportWatchers.delete(i)}}get use(){return f(this.component),w}get useRef(){return f(this.component),b}get useRefSync(){return f(this.component),m}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this._callbacks.hostConnected.push(t)}onDisconnected(t){this._callbacks.hostDisconnected.push(t)}onLoad(t){this._callbacks.hostLoad.push(t)}onLoaded(t){this._callbacks.hostLoaded.push(t)}onUpdate(t){this._callbacks.hostUpdate.push(t)}onUpdated(t){this._callbacks.hostUpdated.push(t)}onDestroy(t){this._callbacks.hostDestroy.push(t)}onLifecycle(t){this._callbacks.hostLifecycle.push(t),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(t)}triggerConnected(){const t=this;t.hostConnected&&i(t.hostConnected,t),this._callbacks.hostConnected.forEach(i),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){const t=this;t.hostDisconnected&&i(t.hostDisconnected,t),this._callbacks.hostDisconnected.forEach(i),this._lifecycleCleanups.forEach(i),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;const t=this;t.hostLoad&&await o(t.hostLoad,t),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(o)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;const t=this;t.hostLoaded&&i(t.hostLoaded,t),this._callbacks.hostLoaded.forEach(i),this.loadedCalled=!0}triggerUpdate(t){const s=this;s.hostUpdate&&i(s.hostUpdate,s,t),this._callbacks.hostUpdate.forEach(_,t)}triggerUpdated(t){const s=this;s.hostUpdated&&i(s.hostUpdated,s,t),this._callbacks.hostUpdated.forEach(_,t)}triggerDestroy(){const t=this;t.hostDestroy&&i(t.hostDestroy,t),this._callbacks.hostDestroy.forEach(i)}triggerLifecycle(){const t=this;t.hostLifecycle&&this._callLifecycle((()=>t.hostLifecycle())),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(t){f(this.component);const s=i(t);(Array.isArray(s)?s:[s]).forEach((t=>{"function"==typeof t?this._lifecycleCleanups.push(t):"object"==typeof t&&"function"==typeof t.remove&&this._lifecycleCleanups.push(t.remove)}))}};function _(t){i(t,void 0,this)}var x=C;function L(t){if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const i=new Proxy(t,{get(t,s,o){if(!O.has(s)||!(s in t)||t[s]!==i)return s in t||s in Promise.prototype||"symbol"==typeof s?"function"==typeof t?t[s]:Reflect.get(t,s,o):void 0},set:(t,i,s,o)=>Reflect.set(t,i,s,o)});return i}var O=new Set(["exports","_exports"]),U=void 0;function D(){Array.from(U?.entries()??[]).forEach((([t,{callbacks:i}])=>{const s=Object.keys(t);i.forEach((t=>t(s)))})),U=void 0}function M(t,s,o){var n;const e=s,h=t.manager.internals;(n=h.allWatchers)[e]??(n[e]=[]);const r=h.allWatchers[e],c=o,a=(t,s,o)=>i(c,null,t,s,o);return r.push(a),()=>{const t=r.indexOf(a);-1!==t&&r.splice(t,1)}}var P=class{constructor(t){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;const t=this.component.manager.internals;Object.entries(t.members).forEach((([i,[s]])=>{var o;2048&s&&((o=t.setters)[i]??(o[i]=[]),t.setters[i].push(t.readonlySetter))}))},this.trackedValue=R,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this.reactiveUtilsIntegrations=new Set,this._exports=new WeakMap,this.readonlySetter=(t,i,s)=>{if(j.readOnly)return t;throw new Error(`Cannot assign to read-only property "${s}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=t}firePropTrackers(t,i){const s=this.keyTrackers;this.trackedValue=R,this.keyTrackers=[],s.forEach((s=>s(t,i)))}getSetProxy(t){const i=this.component,s=i.constructor.prototype;if(this._getSetProxy(s,t,"class"),i.manager.isLit)return;const o=i.el.constructor.prototype;s!==o&&this._getSetProxy(o,t,"html")}_getSetProxy(t,i,s){const o=d(this.component,i);let n;do{n=Object.getOwnPropertyDescriptor(t,i)}while(!n&&(t=Object.getPrototypeOf(t)));if(!n)return;const e=n.get,h=n.set,r=S in e,c=S in h;if(r&&c)return;const a=!r,u=!c,f=a?function(){let t=e.call(this);const s=k.get(this);if(j.getter||void 0===s)return t;const o=s.manager.internals;t=o.accessorGetter[i](t,i);const n=o.getters[i]??A;for(let s=0;s<n.length;s++)t=n[s](t,i);return t}:e,l=u?function(t){const s=e.call(this),n=k.get(this);if(void 0===n)return void h.call(this,t);let r=n.manager.isLit?t??void 0:function(t,i=8){return null==t||"object"==typeof t||"function"==typeof t?t:4&i?"false"!==t&&(""===t||!!t):2&i?Number.parseFloat(t):1&i?String(t):t}(t,o);const c=n.manager.internals;if(r===s)h.call(this,r);else{const t=j.setter?A:c.setters[i]??A;for(let o=0;o<t.length&&(r=t[o](r,s,i),r!==s);o++);r=c.accessorSetter[i](r,s,i),h.call(this,r),r!==s&&c.enabledWatchers[i]?.forEach((t=>t(r,s,i)))}c.keyTrackers.length>0&&c?.firePropTrackers(i,t)}:h;a&&(f[S]=!0),u&&(l[S]=!0),Object.defineProperty(t,i,{...n,get:f,set:l})}markExports(t,i){("object"==typeof i&&null!==i||"function"==typeof i)&&this._exports.set(i,t)}resolveExports(t){return"object"==typeof t&&null!==t||"function"==typeof t?this._exports.get(t):void 0}},A=[],S=Symbol(),R=Symbol(),E=(t,i)=>new q(t,i),q=class extends x{constructor(i,o){const n="addController"in i,e=new Set,h=i;if(h.addController=function(t){e.add(t),!(u in t)&&i.renderRoot&&i.el.isConnected&&t.hostConnected?.()},h.removeController=function(t){e.delete(t),t.controllerRemoved?.()},!n){const t=o??i.constructor.__forceUpdate;h.requestUpdate=()=>t(i)}super(i),this.internals=new P(this.component),this.destroyed=!1,this._updatePromise=new s,this._originalLifecycles={},this.isLit=n,this.component.manager=this,function(i,s){if(s)i.manager.internals.members=Object.fromEntries(Array.from(i.constructor.elementProperties,(([t,i])=>i.noAccessor?void 0:[t,[(i.readOnly?2048:0)|(i.state?32:16)]])).filter(t));else{const t=i.constructor,s=t.__registerControllers?.(i)??void 0;if(t.__registerControllers=void 0,"object"!=typeof s)throw new Error("Failed to retrieve component meta");i.manager.internals.members=Object.fromEntries(Object.entries(s).filter((([t,[i]])=>!!(63&i))))}}(i,n),this._controllers=e,this.exports=void 0,this.hasDestroy=T in this.component&&"function"==typeof this.component.destroy,this._bindLifecycleMethods();const r=this.internals;Object.keys(r.members).forEach((t=>{r.accessorGetter[t]=I,r.accessorSetter[t]=I,r.getSetProxy(t)})),n?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(i,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(r.enableReadonly),v(void 0),f(i),k.set(i.el,i),k.set(i,i)}_bindLifecycleMethods(){const t=this.component,i=this.isLit,s=t.el===t;this._originalLifecycles={_connectedCallback:i||s?void 0:t.connectedCallback,_disconnectedCallback:i||s?void 0:t.disconnectedCallback,_load:i?t.load:t.componentWillLoad,_loaded:i?t.loaded:t.componentDidLoad,_willUpdate:i?void 0:t.componentWillUpdate,_updated:i?void 0:t.componentDidUpdate,_destroy:t.destroy};const o=this._connectedCallback.bind(this),n=this._disconnectedCallback.bind(this),e=this._update.bind(this),h=this._updated.bind(this);i?t.constructor.prototype.addController.call(t,{hostConnected:o,hostDisconnected:n,hostUpdate:e,hostUpdated:h}):(t.connectedCallback=o,t.disconnectedCallback=n,t.componentWillLoad=this._load.bind(this),t.componentDidLoad=this._loaded.bind(this),t.componentWillUpdate=e,t.componentDidUpdate=h),this.hasDestroy&&(t.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){const t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${T} prop.`)}void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout);const t=this.internals;t.enabledWatchers=t.allWatchers,D(),t.enableReadonly?.(),this._controllers.forEach(W),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(F),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){const t=this.internals.reactiveUtilsIntegrations;if(t.size>0)for(const i of t)"triggerLoad"in i?await i.triggerLoad():await o(i.hostLoad,i);await Promise.allSettled(Array.from(this._controllers,G,t)),await(this._originalLifecycles._load?.call(this.component)),this.hasDestroy&&M(this.component,T,(()=>this._setAutoDestroyTimeout()))}_loaded(){this._controllers.forEach(N),this._originalLifecycles._loaded?.call(this.component)}_update(){this._controllers.forEach(z,this.component.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){const t=this.component;if(this._controllers.forEach(B,t.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)t.$changes=new Map;else{const t=this._updatePromise;this._updatePromise=new s,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(H),this._controllers.clear(),await(this._originalLifecycles._destroy?.call(this.component))}}_setAutoDestroyTimeout(){void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout),this.component.el.isConnected||this.component.autoDestroyDisabled||(this._autoDestroyTimeout=n((()=>{this.destroy().catch(console.error)}),$))}},T="autoDestroyDisabled",$=1e3,I=t=>t;function W(t){"triggerConnected"in t?t.triggerConnected():i(t.hostConnected,t)}function F(t){"triggerDisconnected"in t?t.triggerDisconnected():i(t.hostDisconnected,t)}async function G(t){this.has(t)||("triggerLoad"in t?await t.triggerLoad():await o(t.hostLoad,t))}function N(t){"triggerLoaded"in t?t.triggerLoaded():i(t.hostLoaded,t)}function z(t){"triggerUpdate"in t?t.triggerUpdate(this):i(t.hostUpdate,t,this)}function B(t){"triggerUpdated"in t?t.triggerUpdated(this):i(t.hostUpdated,t,this)}function H(t){"triggerDestroy"in t?t.triggerDestroy():i(t.hostDestroy,t)}function J(t,s,o){const n=t.manager.internals;return n.trackedValue!==R&&n.trackedValue!==o&&n.firePropTrackers(void 0,void 0),0===n.keyTrackers.length&&queueMicrotask((()=>n.firePropTrackers(void 0,void 0))),n.trackedValue=o,n.keyTrackers.push(((t,n)=>i(s,void 0,o===n?t:void 0))),o}function K(t,s,o){const n=Array.isArray(t)?t:[t];let e=n.length+1;const h=t=>{e-=1,void 0!==t&&(e=Math.min(e,0)),0===e&&s(t)};n.forEach((t=>function(t,s,o){const n=Object.keys(t),e=n.length;void 0===U&&queueMicrotask(D),U??(U=new Map);let h=U.get(t);return void 0===h&&(h={callbacks:[],keyCount:e},U.set(t,h)),h.keyCount!==e&&(h.callbacks.forEach((t=>t(n))),h.callbacks=[],h.keyCount=e),h.callbacks.push((n=>{const h=n[e];i(s,null,void 0===h?void 0:t[h]===o?h:void 0)})),o}(t,(i=>h(void 0===i?void 0:{key:i,host:t,isReactive:!1})),o)));const r=n.find((t=>"manager"in t&&"object"==typeof t.manager&&t.manager.component===t));return r&&J(r,(t=>h(void 0===t?void 0:{key:t,host:r,isReactive:void 0!==d(r,t)})),o),o}function Q(t,i){const s=l();return J(s,(o=>{const n=o,e=s.manager,h=s,r=h[n];if(null!=r&&r!==t&&"function"==typeof i.set){const s=i.set(r,t,n);if(s!==r)if(e.isLit)h[n]=s;else{let t=!0;e.onConnected((()=>{t&&(t=!0,V((()=>{h[n]=s})))}))}}!function(t,i,s){var o,n;const e=s,h=t.manager.internals,r="function"==typeof e.get?e.get:void 0;r&&((o=h.getters)[i]??(o[i]=[]),h.getters[i].unshift(r));const c="ignore"===e.set?Y:e.set;c&&((n=h.setters)[i]??(n[i]=[]),h.setters[i].unshift(c))}(s,n,i)}),t)}function V(t){j.setter=!0;try{return t()}finally{j.setter=!1}}function X(t){j.getter=!0;try{return t()}finally{j.getter=!1}}var Y=(t,i)=>i;function Z(t){return Q(t,{set:l().manager.internals.readonlySetter})}var tt,it=t=>(...i)=>{const s=p,o=new t(...i),n=o.exports;v(s.at(-1));const e=o.component.manager.internals;var h;return e.markExports(o,n),o.watchExports((t=>e.markExports(o,t))),y!==(h=o)&&(y=h,queueMicrotask((()=>{y===h&&(y=void 0)}))),K([o.component,...s].reverse(),(t=>void 0===t?void 0:function(t,{host:i,key:s,isReactive:o},n){const e=i,h=e[s]!==n;e[s]!==t.exports&&!h&&n!==t.exports&&(e[s]=t.exports);if(i===t.component){if(o){const i=t.component.manager.internals;h&&i.markExports(t,e[s]),M(t.component,s,(s=>{s!==t.exports&&i.markExports(t,s)}))}t.assignedProperty=o?void 0:s}t.watchExports((()=>{if(e[s]===t.exports)return;const i=t.component.manager,o=i.internals.setters[s]?.includes(i.internals.readonlySetter);o?function(){j.readOnly=!0;try{return void(e[s]=t.exports)}finally{j.readOnly=!1}}():e[s]=t.exports}))}(o,t,n)),n)},st=Promise.all([e(),h()]),ot=class extends C{async hostLoad(){const[t,{subclass:i,property:s}]=await st;class o extends t{}const n=(t,i)=>a[i];function e(t,i,s){return void 0!==a&&(a[s]=t),t}const h=this.component,r=h.manager.internals,c=[];if(X((()=>Object.keys(r.members).forEach((t=>{r.accessorSetter[t]!==I||(c.push(t),r.accessorGetter[t]=n,r.accessorSetter[t]=e,s({value:h[t]})(o.prototype,t))})))),this._enabledMembers=c,0===c.length)return;const a=new(i(h.el.tagName)(o));this._instance=a}controllerRemoved(){super.controllerRemoved();const t=this.component.manager.internals;this._instance?.destroy(),this._enabledMembers?.forEach((i=>{t.accessorGetter[i]=I,t.accessorSetter[i]=I}))}},nt=t=>(i,s)=>ht(i,t,s),et=class extends x{constructor(t,i,s){super(t),this._loadAccessor=i,this._options=s,this._watchedProperties=new Map,this._isBinding={value:!0},this.setProvisionalExports(rt.makeGetterProxy(t,this._watchedProperties,this._isBinding,this.constructor.allowedPropNameMismatches));const o=t.manager.internals.reactiveUtilsIntegrations;o.add(this);const n=Array.from(o).find((t=>t instanceof ot));n&&o.delete(n),o.add(n??new ot(this.component)),J(t,(t=>{t&&(this._instancePropName=t)}),this.exports)}hostConnected(){this._isBinding.value=!1}async hostLoad(){this.reactiveUtils=await async function(){return tt??(tt=c()),await tt}();const t=this.component,i=this._gatherParameters(),s=this._options?.editConstructorProperties?.call(t,i)??i,o=s instanceof Promise?await s:s,n="string"==typeof this._instancePropName?t[this._instancePropName]:void 0;null!=n&&n!==this.exports?(this._instance=n,n.set(o)):this._instance=await this._createInstance(o),t.manager.destroyed||(rt.watchComponentUpdates(this,this._instance,this._watchedProperties),rt.watchAccessorUpdates(this,this._instance,this._watchedProperties),this.exports=this._instance)}_gatherParameters(){return Object.fromEntries(Array.from(this._watchedProperties,(([t,i])=>[i,this.component[t]])).filter((([,t])=>void 0!==t)))}async _createInstance(t){return this._isAccessorConstructor(this._loadAccessor)?new this._loadAccessor(t):await this._loadAccessor(t)}_isAccessorConstructor(t){return"prototype"in t&&"declaredClass"in t.prototype}hostDestroy(){this._instance&&this._instance.destroy()}async reCreate(){this.hostDestroy(),await this.hostLoad()}},ht=it(et),rt={makeGetterProxy:(t,i,s)=>new Proxy({},{has:(t,i)=>"string"==typeof i||i in t,get:(o,n)=>{const e=Reflect.get(o,n);return"symbol"==typeof n||n in Promise.prototype||n in o||!(s?.value??1)?e:K(t,(t=>{void 0!==t&&i.set(t.key,n)}),e)}}),watchComponentUpdates(t,i,s){function o(t,o){const n=s.get(o),e=i[n];return"boolean"==typeof e&&n!==o&&o.toLowerCase().includes("disable")?!e:e}const n=(t,o,n)=>{const h=s.get(n),r=i[h],c="boolean"==typeof r&&h!==n&&n.toLowerCase().includes("disable");if((c?!r:e.manager.isLit?r??void 0:r)===t)return t;i[h]=c?!t:t;const a=i[h];return c?!a:a},e=t.component,h=e.manager.internals;s.forEach(((t,i)=>{h.accessorGetter[i]=o,h.accessorSetter[i]=n}))},watchAccessorUpdates(t,i,s){const{component:o}=t,n=o,e=i,h=function(t){const i=t,s=Object.entries(i.__accessor__?.metadata??{});return new Set(s.filter((([t,i])=>!0===i?.readOnly)).map((([t])=>t)))}(i);X((()=>s.forEach(((t,i)=>{if(h.has(t))return;const s=n[i];let r=e[t];o.manager.isLit&&(r??(r=void 0));const c="boolean"==typeof s&&t!==i&&i.toLowerCase().includes("disable")?!s:s;null!=c&&r!==c&&(e[t]=c)})))),t.onLifecycle((()=>{if(!i.destroyed)return Array.from(s,(([i,s])=>t.reactiveUtils.watch((()=>e[s]),(()=>{const t=e[s],o="boolean"==typeof t&&s!==i&&i.toLowerCase().includes("disable")?!t:t;V((()=>{n[i]=o}))}),{initial:!0})))}))},reEmitAccessorEvents(i,s,o,n){if(!("on"in s)||"function"!=typeof s.on)return;const e=Object.entries(i.component).map((([t,i])=>{const s=i;if(!t.startsWith(n)||t===n||"object"!=typeof s||null===s||!("emit"in s)||"function"!=typeof s.emit)return;const o=s.emit,e=t.slice(n.length);return[r(e).toLowerCase(),o]})).filter(t);if(0===e.length)return;const h=s,c=()=>h;i.onLifecycle((()=>{if(!s.destroyed)return e.map((([t,i])=>o.on(c,t,i)))}))},async reCreate(t,i){const s=i.manager.useRefSync(t);void 0!==s&&await s.reCreate()}};export{et as A,C,rt as a,Q as g,nt as m,it as p,Z as r,f as s,J as t,E as u,M as w}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.
|
4
|
-
* v4.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
5
|
*/
|
6
|
-
import{r as s,c as t,g as i}from"./p-
|
6
|
+
import{r as s,c as t,g as i}from"./p-51cbd917.js";import{u as h}from"./p-58be3da6.js";import{ae as r}from"./p-fad10fcc.js";import{m as a}from"./p-109622b7.js";import{u as o,g as e}from"./p-71481614.js";import"./p-c63ac346.js";const c=a(r),p=class{constructor(i){s(this,i),this.arcgisReady=t(this,"arcgisReady",7),this.arcgisPropertyChange=t(this,"arcgisPropertyChange",7),this.widgetTriggerAction=t(this,"arcgisTriggerAction",7),this.manager=o(this),this.widget=c(this),this.viewModel=this.widget.viewModel,this.arcgisPropertyChange=h()("state"),this.autoDestroyDisabled=!1,this.referenceElement=void 0,this.collapsed=this.widget.collapsed,this.dragEnabled=this.widget.dragEnabled,this.filterPlaceholder=this.widget.filterPlaceholder,this.filterText=this.widget.filterText,this.icon=this.widget.icon,this.label=this.widget.label,this.minDragEnabledItems=this.widget.minDragEnabledItems,this.minFilterItems=this.widget.minFilterItems,this.selectedItems=this.widget.selectedItems,this.selectionMode=this.widget.selectionMode,this.tableItems=e(void 0,{get:()=>this.widget.tableItems,set:"ignore"}),this.listItemCreatedFunction=this.widget.listItemCreatedFunction,this.visibleElementsCloseButton=!1,this.visibleElementsCollapseButton=!1,this.visibleElementsErrors=!1,this.visibleElementsFilter=!1,this.visibleElementsFlow=!0,this.visibleElementsHeading=!1,this.visibleElementsStatusIndicators=!0,this.visibleElementsTemporaryTableIndicators=!1,this.position="bottom-left",this.state=this.viewModel.state}async destroy(){await this.manager.destroy()}get el(){return i(this)}};p.style="arcgis-table-list{}";export{p as arcgis_table_list}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.
|
4
|
-
* v4.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
5
|
*/
|
6
|
-
import{r as t,c as s,f as i,h as e,g as a}from"./p-
|
6
|
+
import{r as t,c as s,f as i,h as e,g as a}from"./p-51cbd917.js";import{g as r}from"./p-75616e4c.js";import{u as n,m as o}from"./p-a5d2b31c.js";import{i as l,a3 as c,a4 as h,t as d,a5 as b}from"./p-fad10fcc.js";import{l as u}from"./p-58be3da6.js";import{u as _,g as p}from"./p-71481614.js";import"./p-c63ac346.js";const m="esri-scale-bar",f={base:m,labelContainer:`${m}__label-container`,rulerLabelContainer:`${m}__label-container--ruler`,lineLabelContainer:`${m}__label-container--line`,topLabelContainer:`${m}__label-container--top`,bottomLabelContainer:`${m}__label-container--bottom`,label:`${m}__label`,line:`${m}__line`,topLine:`${m}__line--top`,bottomLine:`${m}__line--bottom`,ruler:`${m}__ruler`,rulerBlock:`${m}__ruler-block`,barContainer:`${m}__bar-container`,rulerBarContainer:`${m}__bar-container--ruler`,lineBarContainer:`${m}__bar-container--line`};function v(t=0,s=0){return{x:t,y:s}}const $=o(b),y=class{constructor(i){t(this,i),this.arcgisReady=s(this,"arcgisReady",7),this.manager=_(this),this.messages=n(),this.reactiveUtils=u(l),this.intlUtils=u(c),this.unitUtils=u(h),this.viewModel=$(this),this._scaleComputedFrom=v(),this.autoDestroyDisabled=!1,this.icon="actual-size",this.label=void 0,this.position="top-left",this.referenceElement=void 0,this.barStyle="line",this.unit=p(void 0,{set:t=>t??this._defaultUnit})}componentDidLoad(){this._defaultUnit=this.unitUtils.getDefaultUnitForView(this.viewModel.view),this.unit||(this.unit=this._defaultUnit),this.manager.onLifecycle((()=>this.reactiveUtils.watch((()=>{const t=this.viewModel.view;return[t?.stationary,t?.center,t?.scale,t?.zoom]}),(([t])=>{t&&i(this)}))))}async destroy(){await this.manager.destroy()}componentDidRender(){this._handleRootCreateOrUpdate()}render(){const t="disabled"===this.viewModel.state,s={[r.disabled]:t};let i,a;if(!t){const{unit:t,barStyle:s}=this,e="metric"===t||"dual"===t,r=100,n="dual"===t?"line":s;if("imperial"===t||"dual"===t){const t=this.viewModel.getScaleBarProperties(r,"imperial");t&&(a="ruler"===n?this._renderRuler(t):this._renderLine(t,"bottom"))}if(e){const t=this.viewModel.getScaleBarProperties(r,"metric");t&&(i="ruler"===n?this._renderRuler(t):this._renderLine(t,"top"))}}return e("div",{key:"8224f987c000c7263570091b725bad517f11bbf3",ref:t=>t?this._handleRootCreateOrUpdate():void 0,class:d(f.base,r.widget,s)},i,a)}_renderRuler(t){const{length:s,unit:i,value:a}=t,r=Math.round(s),n=this._formatDistance(a,i);return e("div",{class:d(f.barContainer,f.rulerBarContainer)},e("div",{class:f.ruler,style:{width:`${r}px`}},e("div",{class:f.rulerBlock}),e("div",{class:f.rulerBlock}),e("div",{class:f.rulerBlock}),e("div",{class:f.rulerBlock})),e("div",{class:d(f.labelContainer,f.rulerLabelContainer)},e("div",{class:f.label},"0"),e("div",{class:f.label},n)))}_renderLine(t,s){const{length:i,unit:a,value:r}=t,n=Math.round(i),o=this._formatDistance(r,a),l=e("div",{class:d(f.labelContainer,f.lineLabelContainer,{[f.topLabelContainer]:"top"===s,[f.bottomLabelContainer]:"bottom"===s})},e("div",{class:f.label},o)),c=e("div",{class:d(f.line,{[f.topLine]:"top"===s,[f.bottomLine]:"bottom"===s}),style:{width:`${n}px`}});return e("div",{class:d(f.barContainer,f.lineBarContainer)},[c,l])}_handleRootCreateOrUpdate(){if(!this.viewModel)return;const t=this._scaleComputedFrom,s=this.el.getBoundingClientRect(),i=v(s.left+window.pageXOffset,s.top+window.pageYOffset);(i.x!==t.x||i.y!==t.y)&&(this._scaleComputedFrom=i)}_formatDistance(t,s){return this.intlUtils.formatNumber(t,{style:"unit",unit:s,unitDisplay:"short"})}static get assetsDirs(){return["assets"]}get el(){return a(this)}};export{y as arcgis_scale_bar}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.
|
4
|
-
* v4.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
5
|
*/
|
6
6
|
const e={anchor:"esri-widget__anchor",anchorDisabled:"esri-widget__anchor--disabled",button:"esri-button",buttonDisabled:"esri-button--disabled",buttonHalf:"esri-button--half",buttonSecondary:"esri-button--secondary",buttonSmall:"esri-button--small",buttonTertiary:"esri-button--tertiary",buttonThird:"esri-button--third",disabled:"esri-disabled",disabledElement:"esri-disabled-element",empty:"esri-widget__content--empty",emptyIllustration:"esri-widget__content-illustration--empty",heading:"esri-widget__heading",hidden:"esri-hidden",input:"esri-input",interactive:"esri-interactive",loader:"esri-widget__loader",loaderAnimation:"esri-widget__loader-animation",loaderText:"esri-widget__loader-text",menu:"esri-menu",menuHeader:"esri-menu__header",menuItem:"esri-menu__list-item",menuItemActive:"esri-menu__list-item--active",menuItemFocus:"esri-menu__list-item--focus",menuList:"esri-menu__list",noBookmarksIcon:"esri-widget__no-bookmark-icon",panel:"esri-widget--panel",panelHeightOnly:"esri-widget--panel-height-only",primaryTick:"primary-tick",primaryTickAmPm:"primary-tick__ampm",primaryTickLabel:"primary-tick__label",rotating:"esri-rotating",secondaryTick:"secondary-tick",select:"esri-select",table:"esri-widget__table",ui:"esri-component",widget:"esri-widget",widgetButton:"esri-widget--button",widgetButtonActive:"esri-widget--button-active",widgetDisabled:"esri-widget--disabled"};export{e as g}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.
|
4
|
-
* v4.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
5
|
*/
|
6
|
-
import{r as i,c as e,h as o,g as r}from"./p-
|
6
|
+
import{r as i,c as e,h as o,g as r}from"./p-51cbd917.js";import{g as s}from"./p-75616e4c.js";import{u as n,m as c}from"./p-a5d2b31c.js";import{t,X as a}from"./p-fad10fcc.js";import{u as l}from"./p-58be3da6.js";import{u as d}from"./p-71481614.js";import"./p-c63ac346.js";const h={arrowDown:"esri-icon-arrow-down",arrowUp:"esri-icon-arrow-up",basemap:"esri-icon-basemap",bookmark:"esri-icon-bookmark",calendar:"esri-icon-calendar",checkMark:"esri-icon-check-mark",checkboxUnchecked:"esri-icon-checkbox-unchecked",close:"esri-icon-close",collapse:"esri-icon-collapse",defaultAction:"esri-icon-default-action",description:"esri-icon-description",directions:"esri-icon-directions",dockBottom:"esri-icon-dock-bottom",dockLeft:"esri-icon-dock-left",dockRight:"esri-icon-dock-right",down:"esri-icon-down",downArrow:"esri-icon-down-arrow",download:"esri-icon-download",dragHorizontal:"esri-icon-drag-horizontal",dragVertical:"esri-icon-drag-vertical",duplicate:"esri-icon-duplicate",edit:"esri-icon-edit",elevationProfile:"esri-icon-elevation-profile",environmentSettings:"esri-icon-environment-settings",erase:"esri-icon-erase",error:"esri-icon-error",expand:"esri-icon-expand",fontFallbackText:"esri-icon-font-fallback-text",forward:"esri-icon-forward",gear:"esri-icon-gear",handleHorizontal:"esri-icon-handle-horizontal",handleVertical:"esri-icon-handle-vertical",home:"esri-icon-home",icon:"esri-icon",launchLinkExternal:"esri-icon-launch-link-external",layerList:"esri-icon-layer-list",layers:"esri-icon-layers",left:"esri-icon-left",leftArrows:"esri-icon-left-arrow",leftTriangleArrow:"esri-icon-left-triangle-arrow",lineOfSight:"esri-icon-line-of-sight",link:"esri-icon-link",linkExternal:"esri-icon-link-external",linkHorizontal:"esri-icon-link-horizontal",loadingIndicator:"esri-icon-loading-indicator",locate:"esri-icon-locate",locateCircled:"esri-icon-locate-circled",locked:"esri-icon-locked",mapPin:"esri-icon-map-pin",maximize:"esri-icon-maximize",measure:"esri-icon-measure",measureArea:"esri-icon-measure-area",measureBuildingHeightShadow:"esri-icon-measure-building-height-shadow",measureLine:"esri-icon-measure-line",menu:"esri-icon-menu",minimize:"esri-icon-minimize",minus:"esri-icon-minus",nonVisible:"esri-icon-non-visible",northNavigation:"esri-icon-north-navigation",noticeTriangle:"esri-icon-notice-triangle",organization:"esri-icon-organization",pan:"esri-icon-pan",pan2:"esri-icon-pan2",partlyCloudy:"esri-icon-partly-cloudy",pause:"esri-icon-pause",play:"esri-icon-play",playCircled:"esri-icon-play-circled",plus:"esri-icon-plus",polyline:"esri-icon-polyline",printer:"esri-icon-printer",radioChecked:"esri-icon-radio-checked",radioUnchecked:"esri-icon-radio-unchecked",refresh:"esri-icon-refresh",reverse:"esri-icon-reverse",right:"esri-icon-right",rightArrow:"esri-icon-right-arrow",rightTriangleArrow:"esri-icon-right-triangle-arrow",rotate:"esri-icon-rotate",save:"esri-icon-save",search:"esri-icon-search",settings2:"esri-icon-settings2",slice:"esri-icon-slice",swap:"esri-icon-swap",table:"esri-icon-table",timeClock:"esri-icon-time-clock",tracking:"esri-icon-tracking",trash:"esri-icon-trash",unlockedLinkHorizontal:"esri-icon-unlocked-link-horizontal",up:"esri-icon-up",upArrow:"esri-icon-up-arrow",upDownArrows:"esri-icon-up-down-arrows",urbanModel:"esri-icon-urban-model",vertexGps:"esri-icon-vertex-gps",visible:"esri-icon-visible",zoomInFixed:"esri-icon-zoom-in-fixed",zoomInMagnifyingGlass:"esri-icon-zoom-in-magnifying-glass",zoomOutFixed:"esri-icon-zoom-out-fixed",zoomToObject:"esri-icon-zoom-to-object"},p="gps-off",m=c(a),g=class{constructor(o){i(this,o),this.arcgisPropertyChange=e(this,"arcgisPropertyChange",7),this.arcgisReady=e(this,"arcgisReady",7),this.viewModelLocate=e(this,"arcgisSuccess",7),this.viewModelLocateError=e(this,"arcgisError",7),this.manager=d(this),this.messages=n(),this.viewModel=m(this),this.arcgisPropertyChange=l()("state"),this._locate=()=>{const{viewModel:i}=this;"locating"===i.state?i.cancelLocate():i.locate().catch((()=>{}))},this.autoDestroyDisabled=!1,this.geolocationOptions=this.viewModel.geolocationOptions,this.goToLocationDisabled=this.viewModel.goToLocationEnabled,this.graphic=this.viewModel.graphic,this.goToOverride=this.viewModel.goToOverride,this.icon=p,this.label=void 0,this.popupDisabled=this.viewModel.popupEnabled,this.position="top-left",this.referenceElement=void 0,this.scale=this.viewModel.scale,this.state=this.viewModel.state}async cancelLocate(){this.viewModel.cancelLocate()}async destroy(){await this.manager.destroy()}async locate(){return await this.viewModel.locate()}render(){const{viewModel:i,icon:e}=this,{state:r}=i,n="locating"===r,c=n?this.messages.cancel:this.messages.title,a="feature-unsupported"===r,l=void 0===h?p:void 0,d=this._localizeError(this.viewModel?.error);return o("div",{key:"95cc1248715ca71edf1b9688ac39f5a92c0ca387",class:t("esri-locate",s.widget)},!a&&o("calcite-button",{key:"e5fc57d816b391ecde3ed936414f3a40cdeac783",class:s.widgetButton,disabled:"disabled"===r,"icon-start":n?void 0:e??l,kind:"neutral",label:c,onClick:this._locate,title:c},n?o("calcite-loader",{inline:!0,label:""}):null),d?o("calcite-tooltip",{open:!0,"overlay-positioning":"fixed","reference-element":this.el},d):null)}_localizeError(i){return i instanceof GeolocationPositionError?i.code===GeolocationPositionError.PERMISSION_DENIED?this.messages?.permissionError:i.code===GeolocationPositionError.TIMEOUT?this.messages?.timeoutError:this.messages?.positionUnavailable:i instanceof Error?i.message:void 0}static get assetsDirs(){return["assets"]}get el(){return r(this)}};export{g as arcgis_locate}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
|
+
*/
|
6
|
+
import{r as s,c as t,h as i,g as a}from"./p-51cbd917.js";import{g as e}from"./p-75616e4c.js";import{t as o,T as c}from"./p-fad10fcc.js";import{u as h}from"./p-58be3da6.js";import{u as r,m as n}from"./p-a5d2b31c.js";import{u as d}from"./p-71481614.js";import"./p-c63ac346.js";const l=n(c),m=class{constructor(i){s(this,i),this.arcgisReady=t(this,"arcgisReady",7),this.viewModelGo=t(this,"arcgisGo",7),this.arcgisPropertyChange=t(this,"arcgisPropertyChange",7),this.manager=d(this),this.messages=r(),this.viewModel=l(this),this.arcgisPropertyChange=h()("state"),this._go=()=>{const{viewModel:s}=this;"going-home"===s.state?s.cancelGo():s.go()},this.goToOverride=this.viewModel.goToOverride,this.icon="home",this.label=void 0,this.messageOverrides=void 0,this.position="top-left",this.referenceElement=void 0,this.viewpoint=this.viewModel.viewpoint,this.state=this.viewModel.state,this.autoDestroyDisabled=!1}async cancelGo(){this.viewModel.cancelGo()}async destroy(){await this.manager.destroy()}async go(){return this.viewModel.go()}render(){const{messages:s,icon:t}=this,a=this.viewModel?.state,c="going-home"===a;return i("div",{key:"95cc21c852a8825bcd481b9934a8a4f23dc8e77c",class:o("esri-home",e.widget)},i("calcite-button",{key:"067e8321483c04cabd1e22b3b95589b305187f13",class:e.widgetButton,disabled:"disabled"===a,iconStart:c?void 0:t??void 0,kind:"neutral",label:s.componentLabel,onClick:this._go,scale:c?"s":"m",title:"going-home"===a?s.cancel:s.title},c?i("calcite-loader",{inline:!0,label:""}):null))}static get assetsDirs(){return["assets"]}get el(){return a(this)}};export{m as arcgis_home}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.
|
4
|
-
* v4.
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
+
* v4.32.0-next.1
|
5
5
|
*/
|
6
|
-
import{r as s,c as t,g as i}from"./p-
|
6
|
+
import{r as s,c as t,g as i}from"./p-51cbd917.js";import{z as h}from"./p-fad10fcc.js";import{u as r}from"./p-71481614.js";import{m as a}from"./p-109622b7.js";import"./p-c63ac346.js";const o=a(h),c=class{constructor(i){s(this,i),this.arcgisReady=t(this,"arcgisReady",7),this.manager=r(this),this.widget=o(this),this.viewModel=this.widget.viewModel,this.autoDestroyDisabled=!1,this.referenceElement=void 0,this.currentSeason=this.viewModel.currentSeason,this.dayPlaying=this.viewModel.dayPlaying,this.yearPlaying=this.viewModel.yearPlaying,this.dateOrSeason=this.widget.dateOrSeason,this.icon=this.widget.icon,this.label=this.widget.label,this.headingLevel=this.widget.headingLevel,this.playSpeedMultiplier=this.widget.playSpeedMultiplier,this.timeSliderSteps=this.widget.timeSliderSteps,this.hideHeader=this.widget.visibleElements.header,this.hidePlayButtons=this.widget.visibleElements.playButtons,this.hideDatePicker=this.widget.visibleElements.datePicker,this.hideTimezone=this.widget.visibleElements.timezone,this.hideSunLightingToggle=this.widget.visibleElements.sunLightingToggle,this.hideShadowsToggle=this.widget.visibleElements.shadowsToggle,this.position="bottom-left"}async destroy(){await this.manager.destroy()}get el(){return i(this)}};c.style="";export{c as arcgis_daylight}
|