@arcgis/map-components 4.33.0-next.150 → 4.33.0-next.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{EQ2KIV3B.js → 2PIG7EYG.js} +2 -2
- package/dist/cdn/{7KADKYGS.js → 2UQZOC22.js} +2 -2
- package/dist/cdn/{EKWXVS6K.js → 36WNBVGD.js} +2 -2
- package/dist/cdn/{3HJ6CYSM.js → 3IUK3SD7.js} +2 -2
- package/dist/cdn/{VT7Z3P25.js → 3QOJ6KZP.js} +2 -2
- package/dist/cdn/{GRXF4KCJ.js → 3TPGT3L6.js} +2 -2
- package/dist/cdn/{VOA7MJAR.js → 3VHH7G64.js} +2 -2
- package/dist/cdn/{I2O4N5OX.js → 3WRXA6AT.js} +2 -2
- package/dist/cdn/{W2L5HN4E.js → 3YONMDGO.js} +1 -1
- package/dist/cdn/{6D7HMZRB.js → 4FRGEBC6.js} +2 -2
- package/dist/cdn/{J4IH22UU.js → 56DFKO6V.js} +2 -2
- package/dist/cdn/{M75JH3FG.js → 5GTBWHWL.js} +2 -2
- package/dist/cdn/{HBQERMSF.js → 5RLKMGMG.js} +2 -2
- package/dist/cdn/{UM2VXPHN.js → 6JPNYGWS.js} +2 -2
- package/dist/cdn/{H7SS7M4C.js → 6LLLUAK5.js} +2 -2
- package/dist/cdn/{RYICJCZD.js → 6WFZO7CS.js} +2 -2
- package/dist/cdn/{QLPIT4BY.js → 75TV66EW.js} +2 -2
- package/dist/cdn/{H7AUXYFF.js → 76FCUZNX.js} +1 -1
- package/dist/cdn/{5PZBXMRR.js → 7LXSO7PK.js} +2 -2
- package/dist/cdn/{DNCZS7D2.js → 7RULI62X.js} +2 -2
- package/dist/cdn/{ORVA7BZO.js → AFXY7TBW.js} +2 -2
- package/dist/cdn/{T4PMBDG4.js → AJVBSPFT.js} +2 -2
- package/dist/cdn/{G442HCPX.js → ANIKJHBD.js} +2 -2
- package/dist/cdn/{Z2BJDM5K.js → AONNUC3B.js} +2 -2
- package/dist/cdn/{3XLE2IQB.js → BG2HX7FF.js} +2 -2
- package/dist/cdn/{4K7QFQJR.js → BULTNHJP.js} +2 -2
- package/dist/cdn/{IPJD4J4O.js → CAFR4IUD.js} +2 -2
- package/dist/cdn/{7RJ4XDCF.js → CCMA6XDN.js} +2 -2
- package/dist/cdn/{HL5TLQ4R.js → CGHT777E.js} +2 -2
- package/dist/cdn/{7EJS3KGI.js → CKR32UUV.js} +2 -2
- package/dist/cdn/{25P53EZS.js → CZFE6ROE.js} +2 -2
- package/dist/cdn/{6UZL5AW4.js → D6CBLQFE.js} +2 -2
- package/dist/cdn/{2WZO3W64.js → DBCQNKHR.js} +2 -2
- package/dist/cdn/{J6ESB4DR.js → DCUIVVJZ.js} +1 -1
- package/dist/cdn/{K76M7F5S.js → DENHWDH2.js} +2 -2
- package/dist/cdn/{24SWAIGO.js → DIHVY2NX.js} +2 -2
- package/dist/cdn/{BBJXTRDP.js → DNTBEQAP.js} +1 -1
- package/dist/cdn/{VJEPYL2S.js → DQMY7QRT.js} +2 -2
- package/dist/cdn/{TDHF2KR6.js → DSQ7KLVZ.js} +2 -2
- package/dist/cdn/{P3W6NOCV.js → DXYB3DKO.js} +2 -2
- package/dist/cdn/{INAKUFLH.js → EDNLALQ3.js} +2 -2
- package/dist/cdn/{GCMGXWTD.js → ETVC27UM.js} +2 -2
- package/dist/cdn/{KRIHIX76.js → EUG6Q3J6.js} +2 -2
- package/dist/cdn/{5LNG3YWI.js → EYAU2JIA.js} +2 -2
- package/dist/cdn/FHPZEP44.js +4 -0
- package/dist/cdn/{NHYK5UJS.js → FN4OQIO6.js} +2 -2
- package/dist/cdn/{J55Y2M2U.js → G4ZJXERJ.js} +2 -2
- package/dist/cdn/{DKG63VSL.js → G6ZF35HI.js} +2 -2
- package/dist/cdn/{KWYJVXNI.js → GDAACKFD.js} +2 -2
- package/dist/cdn/{TB2CQXWA.js → GKN4HDBA.js} +2 -2
- package/dist/cdn/{FJZ62J3U.js → GT5IJEOQ.js} +2 -2
- package/dist/cdn/{OMTIWMWE.js → GU3JRKND.js} +2 -2
- package/dist/cdn/{5MIBIKPV.js → GUP57ECL.js} +2 -2
- package/dist/cdn/{AUXZ4X4L.js → H4ZX67QA.js} +2 -2
- package/dist/cdn/{R6Q3GBNO.js → I5ZEBK3K.js} +2 -2
- package/dist/cdn/{3H4UUWXI.js → I6RP5NOQ.js} +2 -2
- package/dist/cdn/{JYQYWJAB.js → I7AY2QMB.js} +2 -2
- package/dist/cdn/{NYRGMHWD.js → IWLX4QU5.js} +2 -2
- package/dist/cdn/{NTTETHFJ.js → J7MOVDPP.js} +2 -2
- package/dist/cdn/{IQCXPYLQ.js → JC475TDY.js} +1 -1
- package/dist/cdn/{WE6BX5IS.js → JIYZUPUV.js} +2 -2
- package/dist/cdn/{AR7PK26R.js → JOH5WW6C.js} +2 -2
- package/dist/cdn/{O2ILDDKF.js → JXA23OGZ.js} +2 -2
- package/dist/cdn/{CGMZCF3F.js → KX5P2EZG.js} +2 -2
- package/dist/cdn/{VS5NAUL3.js → LBMMJSLI.js} +2 -2
- package/dist/cdn/{KBEAFGR5.js → LC6QO4LJ.js} +2 -2
- package/dist/cdn/{UMQRT6FB.js → LCV7TH56.js} +2 -2
- package/dist/cdn/{NCNCLP5I.js → LDOM52PU.js} +2 -2
- package/dist/cdn/{FW4ZLY7Q.js → M42EGXXB.js} +2 -2
- package/dist/cdn/{RZ7NOB6J.js → M4YY2J2P.js} +2 -2
- package/dist/cdn/{ZSAB7EHV.js → MJNARHWC.js} +2 -2
- package/dist/cdn/{VB5U4DQO.js → MO2T7RGM.js} +2 -2
- package/dist/cdn/{Q2Y625YE.js → MRY7KQDY.js} +2 -2
- package/dist/cdn/{R6SUPSVA.js → NLPZQXBN.js} +1 -1
- package/dist/cdn/{NSKIZPQB.js → O7GTRSXL.js} +2 -2
- package/dist/cdn/{DHC6QEPA.js → OJA4AJPQ.js} +2 -2
- package/dist/cdn/{AJJHKNDB.js → OSSGJHWT.js} +2 -2
- package/dist/cdn/{AUNYDHZT.js → OW57W5NN.js} +2 -2
- package/dist/cdn/{NO7USQR5.js → OX3D4PAZ.js} +2 -2
- package/dist/cdn/{CB7QINFN.js → PHPCQAD4.js} +2 -2
- package/dist/cdn/{O3JUZSAH.js → PS3XTWR5.js} +2 -2
- package/dist/cdn/{I6MQPOIZ.js → PT5LVJIT.js} +2 -2
- package/dist/cdn/{LXJNC4W4.js → QZO6WRBC.js} +2 -2
- package/dist/cdn/{7KJ2ON2C.js → RPDWFITJ.js} +2 -2
- package/dist/cdn/{MHHBVMP6.js → RPUXDT4U.js} +2 -2
- package/dist/cdn/{W7AV547K.js → RZL35UPU.js} +2 -2
- package/dist/cdn/{7TWOMRNP.js → SCCWN5SM.js} +2 -2
- package/dist/cdn/{ICQ3VDFN.js → SRAU6NZF.js} +2 -2
- package/dist/cdn/{YA3VFWY6.js → SZWFIZ3B.js} +2 -2
- package/dist/cdn/{4MH7TYTN.js → TCAIPSVK.js} +2 -2
- package/dist/cdn/{VIXMC54I.js → TMLKA5SH.js} +2 -2
- package/dist/cdn/{LXLXU6WH.js → TVBJKOB6.js} +2 -2
- package/dist/cdn/{UGKSMMJD.js → U3HJZMJ3.js} +2 -2
- package/dist/cdn/{RHTNZ3VZ.js → U74KHJ6E.js} +2 -2
- package/dist/cdn/{VUP6WWYC.js → UEXXGFVF.js} +2 -2
- package/dist/cdn/{OQYLDPMQ.js → UIQBV24S.js} +2 -2
- package/dist/cdn/{QPBLLBTA.js → UT72YCCS.js} +2 -2
- package/dist/cdn/{5EGTJWHY.js → V2VM7PWP.js} +2 -2
- package/dist/cdn/{MX2S4PBX.js → VVOORNO7.js} +2 -2
- package/dist/cdn/{NFV4PVLC.js → VXRTW5MA.js} +2 -2
- package/dist/cdn/{UZLB4YWO.js → WDC57HW6.js} +2 -2
- package/dist/cdn/{N4OFS6IV.js → WJALCIY2.js} +2 -2
- package/dist/cdn/{NJAS3MEV.js → WVN6PEQT.js} +2 -2
- package/dist/cdn/{Q7V6KDMD.js → XBAMUWPQ.js} +1 -1
- package/dist/cdn/{FPRMCX6V.js → XIYSZGHQ.js} +2 -2
- package/dist/cdn/{RZLBWXOP.js → Y2VYJX3I.js} +2 -2
- package/dist/cdn/{QTS6CRLW.js → Y3BMND4P.js} +2 -2
- package/dist/cdn/{KFUWVXQZ.js → YBQA2GG6.js} +1 -1
- package/dist/cdn/{VBY3N3BJ.js → YCDO3WRS.js} +2 -2
- package/dist/cdn/{CP2VOA6T.js → YDNP4MP3.js} +2 -2
- package/dist/cdn/{Z4VPOUYO.js → YM2A5ME6.js} +2 -2
- package/dist/cdn/{YDBQ2Y5T.js → YURYHTG4.js} +2 -2
- package/dist/cdn/{B2Y5PFWC.js → YX7C3PK3.js} +2 -2
- package/dist/cdn/{AXVKAHRK.js → YZN4BS4C.js} +2 -2
- package/dist/cdn/{5FXSJXZI.js → Z4WEC5CE.js} +2 -2
- package/dist/cdn/{6QAHO4MJ.js → Z6LYAU6V.js} +2 -2
- package/dist/cdn/{EYJGB3X4.js → ZISXKRAP.js} +2 -2
- package/dist/cdn/{6Y5HMRQO.js → ZIZYGOXP.js} +2 -2
- package/dist/cdn/{KSMQCWO4.js → ZU66DJ3V.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/AnalysisViewModel.js +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/createCloseEvent.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/layer-list.js +1 -1
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/useHandles.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-measurement-content/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-placement/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.d.ts +16 -11
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-exported-link/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.js +7 -7
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-slider/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-unit-select/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.d.ts +1 -0
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video-player/customElement.d.ts +1 -0
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/docs/api.json +32 -10
- package/dist/docs/docs.json +27 -11
- package/dist/docs/vscode.html-custom-data.json +4 -3
- package/dist/docs/web-types.json +17 -11
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +3 -3
- package/dist/cdn/Z2VRDG3U.js +0 -4
|
@@ -5605,7 +5605,7 @@
|
|
|
5605
5605
|
},
|
|
5606
5606
|
{
|
|
5607
5607
|
"name": "arcgis-print",
|
|
5608
|
-
"description": "The Print component connects your application with a [printing service](https://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-the-portal-to-print-maps.htm) to allow the map to be printed.\nIt takes advantage of server-side, high-quality, full cartographic print functionality using the ExportWebMap service of ArcGIS,\nwhich can be configured with custom layout templates. One is provided that shows the map only, while another provides a layout with legend, etc.\nThe Print component works with the [print](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html) which generates a printer-ready version of the map.\n\nThe Print component
|
|
5608
|
+
"description": "The Print component connects your application with a [printing service](https://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-the-portal-to-print-maps.htm) to allow the map to be printed.\nIt takes advantage of server-side, high-quality, full cartographic print functionality using the ExportWebMap service of ArcGIS,\nwhich can be configured with custom layout templates. One is provided that shows the map only, while another provides a layout with legend, etc.\nThe Print component works with the [print](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html) module, which generates a printer-ready version of the map.\n\nThe Print component uses the ArcGIS Online print service by default, but it can be configured to use a custom print service with the [printServiceUrl](#printServiceUrl) property.\nThe component can preserve map scale or map extent in the printout. By default, the map extent is preserved. Use\n[TemplateOptions.scaleEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#scaleEnabled) to preserve scale instead.\n\nThe Print component prints a localized date for all [layouts](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#layout)\nexcept `map-only`. If using a custom print service, then `customTextElements` are supported for each print\ntemplate. Values found there will be populated in the Print component under `Advanced options`. These values can\nbe overwritten in the Print component UI, or programmatically using the\n[templateCustomTextElements](#templateCustomTextElements) property.\n\nFor more information about printing with the `MAP_ONLY` layout, please see\n[exportOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#exportOptions).\n\n**Known limitations**\n\nSee [print](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html) for a detailed list of known limitations.\n\n```html\n<arcgis-map item-id=\"45725ba7d9fb47a0925398919b13d1fa\">\n <arcgis-print position=\"top-right\"></arcgis-print>\n</arcgis-map>\n```\n\n```js\n// get a reference to the component\nconst components = document.querySelectorAll(\"arcgis-print\");\n\nconst portal = new Portal({\n url: \"https://user.maps.arcgis.com/sharing\",\n authMode: \"immediate\",\n authorizedCrossOriginDomains: [\"https://user.maps.arcgis.com\"],\n});\n\ncomponents.forEach((component) => {\n component.portal = portal;\n});\n```\n--\n\n### Events\n- **arcgisComplete** - Emitted when the component is complete.\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n- **arcgisSubmit** - Emitted when the component is submitted.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
|
|
5609
5609
|
"attributes": [
|
|
5610
5610
|
{
|
|
5611
5611
|
"name": "allowed-formats",
|
|
@@ -5614,6 +5614,7 @@
|
|
|
5614
5614
|
},
|
|
5615
5615
|
{
|
|
5616
5616
|
"name": "allowed-formats-for-saving",
|
|
5617
|
+
"description": "Specifies the print output file format(s) that the user can select when saving the exported map printout.\nThis property can take a string value or an array of string values.",
|
|
5617
5618
|
"values": [
|
|
5618
5619
|
{
|
|
5619
5620
|
"name": "all"
|
|
@@ -5717,7 +5718,7 @@
|
|
|
5717
5718
|
},
|
|
5718
5719
|
{
|
|
5719
5720
|
"name": "print-service-url",
|
|
5720
|
-
"description": "The URL of the REST endpoint of the Export Web Map Task.\nIf the [portal](#portal) property is set,
|
|
5721
|
+
"description": "The URL of the REST endpoint of the Export Web Map Task.\nDefaults to the ArcGIS Online print service if this property is not specified.\nIf the [portal](#portal) property is set, this property will use the portal's print service URL.",
|
|
5721
5722
|
"values": []
|
|
5722
5723
|
},
|
|
5723
5724
|
{
|
|
@@ -5731,7 +5732,7 @@
|
|
|
5731
5732
|
},
|
|
5732
5733
|
{
|
|
5733
5734
|
"name": "state",
|
|
5734
|
-
"description": "The
|
|
5735
|
+
"description": "The state of the Print component.",
|
|
5735
5736
|
"values": [
|
|
5736
5737
|
{
|
|
5737
5738
|
"name": "disabled"
|
package/dist/docs/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@arcgis/map-components",
|
|
4
|
-
"version": "4.33.0-next.
|
|
4
|
+
"version": "4.33.0-next.151",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -10740,7 +10740,7 @@
|
|
|
10740
10740
|
},
|
|
10741
10741
|
{
|
|
10742
10742
|
"name": "arcgis-print",
|
|
10743
|
-
"description": "The Print component connects your application with a [printing service](https://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-the-portal-to-print-maps.htm) to allow the map to be printed.\nIt takes advantage of server-side, high-quality, full cartographic print functionality using the ExportWebMap service of ArcGIS,\nwhich can be configured with custom layout templates. One is provided that shows the map only, while another provides a layout with legend, etc.\nThe Print component works with the [print](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html) which generates a printer-ready version of the map.\n\nThe Print component
|
|
10743
|
+
"description": "The Print component connects your application with a [printing service](https://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-the-portal-to-print-maps.htm) to allow the map to be printed.\nIt takes advantage of server-side, high-quality, full cartographic print functionality using the ExportWebMap service of ArcGIS,\nwhich can be configured with custom layout templates. One is provided that shows the map only, while another provides a layout with legend, etc.\nThe Print component works with the [print](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html) module, which generates a printer-ready version of the map.\n\nThe Print component uses the ArcGIS Online print service by default, but it can be configured to use a custom print service with the [printServiceUrl](#printServiceUrl) property.\nThe component can preserve map scale or map extent in the printout. By default, the map extent is preserved. Use\n[TemplateOptions.scaleEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#scaleEnabled) to preserve scale instead.\n\nThe Print component prints a localized date for all [layouts](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#layout)\nexcept `map-only`. If using a custom print service, then `customTextElements` are supported for each print\ntemplate. Values found there will be populated in the Print component under `Advanced options`. These values can\nbe overwritten in the Print component UI, or programmatically using the\n[templateCustomTextElements](#templateCustomTextElements) property.\n\nFor more information about printing with the `MAP_ONLY` layout, please see\n[exportOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#exportOptions).\n\n**Known limitations**\n\nSee [print](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html) for a detailed list of known limitations.\n\n```html\n<arcgis-map item-id=\"45725ba7d9fb47a0925398919b13d1fa\">\n <arcgis-print position=\"top-right\"></arcgis-print>\n</arcgis-map>\n```\n\n```js\n// get a reference to the component\nconst components = document.querySelectorAll(\"arcgis-print\");\n\nconst portal = new Portal({\n url: \"https://user.maps.arcgis.com/sharing\",\n authMode: \"immediate\",\n authorizedCrossOriginDomains: [\"https://user.maps.arcgis.com\"],\n});\n\ncomponents.forEach((component) => {\n component.portal = portal;\n});\n```\n--\n\n### Events\n- **arcgisComplete** - Emitted when the component is complete.\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n- **arcgisSubmit** - Emitted when the component is submitted.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
|
|
10744
10744
|
"doc-url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-print/",
|
|
10745
10745
|
"attributes": [
|
|
10746
10746
|
{
|
|
@@ -10753,6 +10753,7 @@
|
|
|
10753
10753
|
},
|
|
10754
10754
|
{
|
|
10755
10755
|
"name": "allowed-formats-for-saving",
|
|
10756
|
+
"description": "Specifies the print output file format(s) that the user can select when saving the exported map printout.\nThis property can take a string value or an array of string values.",
|
|
10756
10757
|
"value": {
|
|
10757
10758
|
"type": "\"all\""
|
|
10758
10759
|
}
|
|
@@ -10852,7 +10853,7 @@
|
|
|
10852
10853
|
},
|
|
10853
10854
|
{
|
|
10854
10855
|
"name": "print-service-url",
|
|
10855
|
-
"description": "The URL of the REST endpoint of the Export Web Map Task.\nIf the [portal](#portal) property is set,
|
|
10856
|
+
"description": "The URL of the REST endpoint of the Export Web Map Task.\nDefaults to the ArcGIS Online print service if this property is not specified.\nIf the [portal](#portal) property is set, this property will use the portal's print service URL.",
|
|
10856
10857
|
"value": {
|
|
10857
10858
|
"type": "string"
|
|
10858
10859
|
}
|
|
@@ -10873,7 +10874,7 @@
|
|
|
10873
10874
|
},
|
|
10874
10875
|
{
|
|
10875
10876
|
"name": "state",
|
|
10876
|
-
"description": "The
|
|
10877
|
+
"description": "The state of the Print component.",
|
|
10877
10878
|
"default": "\"disabled\"",
|
|
10878
10879
|
"value": {
|
|
10879
10880
|
"type": [
|
|
@@ -10888,7 +10889,8 @@
|
|
|
10888
10889
|
"events": [
|
|
10889
10890
|
{
|
|
10890
10891
|
"name": "arcgisComplete",
|
|
10891
|
-
"type": "{ link: FileLink; }"
|
|
10892
|
+
"type": "{ link: FileLink; }",
|
|
10893
|
+
"description": "Emitted when the component is complete."
|
|
10892
10894
|
},
|
|
10893
10895
|
{
|
|
10894
10896
|
"name": "arcgisPropertyChange",
|
|
@@ -10902,7 +10904,8 @@
|
|
|
10902
10904
|
},
|
|
10903
10905
|
{
|
|
10904
10906
|
"name": "arcgisSubmit",
|
|
10905
|
-
"type": "{ link: FileLink; }"
|
|
10907
|
+
"type": "{ link: FileLink; }",
|
|
10908
|
+
"description": "Emitted when the component is submitted."
|
|
10906
10909
|
}
|
|
10907
10910
|
],
|
|
10908
10911
|
"js": {
|
|
@@ -10914,6 +10917,7 @@
|
|
|
10914
10917
|
},
|
|
10915
10918
|
{
|
|
10916
10919
|
"name": "allowedFormatsForSaving",
|
|
10920
|
+
"description": "Specifies the print output file format(s) that the user can select when saving the exported map printout.\nThis property can take a string value or an array of string values.",
|
|
10917
10921
|
"type": "\"all\" | Array<string>"
|
|
10918
10922
|
},
|
|
10919
10923
|
{
|
|
@@ -10990,7 +10994,7 @@
|
|
|
10990
10994
|
},
|
|
10991
10995
|
{
|
|
10992
10996
|
"name": "printServiceUrl",
|
|
10993
|
-
"description": "The URL of the REST endpoint of the Export Web Map Task.\nIf the [portal](#portal) property is set,
|
|
10997
|
+
"description": "The URL of the REST endpoint of the Export Web Map Task.\nDefaults to the ArcGIS Online print service if this property is not specified.\nIf the [portal](#portal) property is set, this property will use the portal's print service URL.",
|
|
10994
10998
|
"type": "string"
|
|
10995
10999
|
},
|
|
10996
11000
|
{
|
|
@@ -11008,7 +11012,7 @@
|
|
|
11008
11012
|
},
|
|
11009
11013
|
{
|
|
11010
11014
|
"name": "state",
|
|
11011
|
-
"description": "The
|
|
11015
|
+
"description": "The state of the Print component.",
|
|
11012
11016
|
"type": "\"disabled\" | \"error\" | \"initializing\" | \"ready\""
|
|
11013
11017
|
},
|
|
11014
11018
|
{
|
|
@@ -11018,14 +11022,15 @@
|
|
|
11018
11022
|
},
|
|
11019
11023
|
{
|
|
11020
11024
|
"name": "templateOptions",
|
|
11021
|
-
"description": "Defines the layout template options used by the
|
|
11025
|
+
"description": "Defines the layout template options used by the Print component to generate the print page.",
|
|
11022
11026
|
"type": "TemplateOptions"
|
|
11023
11027
|
}
|
|
11024
11028
|
],
|
|
11025
11029
|
"events": [
|
|
11026
11030
|
{
|
|
11027
11031
|
"name": "arcgisComplete",
|
|
11028
|
-
"type": "{ link: FileLink; }"
|
|
11032
|
+
"type": "{ link: FileLink; }",
|
|
11033
|
+
"description": "Emitted when the component is complete."
|
|
11029
11034
|
},
|
|
11030
11035
|
{
|
|
11031
11036
|
"name": "arcgisPropertyChange",
|
|
@@ -11039,7 +11044,8 @@
|
|
|
11039
11044
|
},
|
|
11040
11045
|
{
|
|
11041
11046
|
"name": "arcgisSubmit",
|
|
11042
|
-
"type": "{ link: FileLink; }"
|
|
11047
|
+
"type": "{ link: FileLink; }",
|
|
11048
|
+
"description": "Emitted when the component is submitted."
|
|
11043
11049
|
}
|
|
11044
11050
|
]
|
|
11045
11051
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s, g as t } from "./chunks/runtime.js";
|
|
2
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
|
-
v4.33.0-next.
|
|
4
|
+
v4.33.0-next.151 */
|
|
5
5
|
const a = s, A = t;
|
|
6
6
|
export {
|
|
7
7
|
A as getArcgisAssetPath,
|
package/dist/loader.js
CHANGED
|
@@ -2,7 +2,7 @@ import { r as e } from "./chunks/runtime.js";
|
|
|
2
2
|
import { makeDefineCustomElements as t } from "@arcgis/lumina";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
5
|
-
v4.33.0-next.
|
|
5
|
+
v4.33.0-next.151 */
|
|
6
6
|
const a = t(e, {
|
|
7
7
|
"arcgis-area-measurement-2d": [() => import("./components/arcgis-area-measurement-2d/customElement.js"), "autoDestroyDisabled,icon,label,position,referenceElement,snappingOptions:,state,unit,unitOptions:;clear,destroy,start"],
|
|
8
8
|
"arcgis-area-measurement-3d": [() => import("./components/arcgis-area-measurement-3d/customElement.js"), "analysis:,autoDestroyDisabled,icon,label,position,referenceElement,state,unit,unitOptions:;clear,destroy,start"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/map-components",
|
|
3
|
-
"version": "4.33.0-next.
|
|
3
|
+
"version": "4.33.0-next.151",
|
|
4
4
|
"description": "ArcGIS Map Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
],
|
|
43
43
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@arcgis/components-utils": "4.33.0-next.
|
|
46
|
-
"@arcgis/lumina": "4.33.0-next.
|
|
45
|
+
"@arcgis/components-utils": "4.33.0-next.151",
|
|
46
|
+
"@arcgis/lumina": "4.33.0-next.151",
|
|
47
47
|
"tslib": "^2.8.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
package/dist/cdn/Z2VRDG3U.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.150 */
|
|
4
|
-
import{b as g}from"./W7AV547K.js";import{a as d}from"./H7AUXYFF.js";import e from"./6QAHO4MJ.js";import{a as C}from"./3XLE2IQB.js";import{a as x}from"./KFUWVXQZ.js";import c from"./6D7HMZRB.js";import a from"./KSMQCWO4.js";import{e as b}from"./ORVA7BZO.js";import"./5FXSJXZI.js";import"./J6ESB4DR.js";import{A as w,D as S,O as M,P as l,R as f,T as $,a as m,i as _,j as r,o as v}from"./W2L5HN4E.js";export default $arcgis.t(([A,{isAbortError:T},{substitute:D},{watch:E},,{a:a},R])=>{var h="arcgis-search",u={base:h,autocomplete:`${h}__autocomplete`,dropdown:`${h}__dropdown`,container:`${h}__container`,form:`${h}__form`},I=_`@layer{arcgis-search{display:block}.arcgis-search{--arcgis-internal-search-width: 240px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;width:var(--arcgis-internal-search-width)}.arcgis-search__dropdown{--calcite-color-border-1: var(--calcite-color-border-input);--calcite-dropdown-width: var(--arcgis-internal-search-width);width:31px}.arcgis-search__autocomplete{flex:1}.arcgis-search__container{display:flex;position:relative;flex:1 0 100%;flex-flow:row nowrap;align-items:stretch}.arcgis-search__form{display:flex;flex:1 0;flex-flow:row nowrap;align-items:stretch;margin:0;padding:0}}`,N=R(A),p=class extends M{constructor(){super(...arguments),this.viewModel=N(this),this._currentLocationValue="search-use-current-location",this._autocompleteEl=void 0,this._searchResultRendererContainerEl=document.createElement("div"),this._searchResultRendererEl=void 0,this._suggestController=void 0,this._searchController=void 0,this._lastSearchTerm="",this.messages=C({}),this._setSearchResultRendererRef=e=>{this._searchResultRendererEl=e},this._locateFailed=!1,this._showNoResults=!1,this.position="top-left",this.goToOverride=this.viewModel.goToOverride,this.icon="search",this.activeMenu="none",this.activeSourceIndex=this.viewModel.activeSourceIndex,this.allPlaceholder=this.viewModel.allPlaceholder,this.allSources=this.viewModel.allSources,this.autoNavigate=this.viewModel.autoNavigate,this.autoSelectDisabled=this.viewModel.autoSelect,this.defaultSources=this.viewModel.defaultSources,this.disabled=!1,this.includeDefaultSourcesDisabled=this.viewModel.includeDefaultSources,this.locationDisabled=this.viewModel.locationEnabled,this.maxResults=this.viewModel.maxResults,this.maxSuggestions=this.viewModel.maxSuggestions,this.minSuggestCharacters=this.viewModel.minSuggestCharacters,this.popupDisabled=this.viewModel.popupEnabled,this.popupTemplate=this.viewModel.popupTemplate,this.portal=this.viewModel.portal,this.resultGraphic=this.viewModel.resultGraphic,this.resultGraphicDisabled=this.viewModel.resultGraphicEnabled,this.results=this.viewModel.results,this.searchAllDisabled=this.viewModel.searchAllEnabled,this.searchTerm=this.viewModel.searchTerm,this.selectedResult=this.viewModel.selectedResult,this.sources=this.viewModel.sources,this.suggestions=this.viewModel.suggestions,this.suggestionsDisabled=this.viewModel.suggestionsEnabled,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=b()("state"),this.arcgisReady=w(),this.arcgisSearchClear=a(()=>this.viewModel,"search-clear"),this.arcgisSearchComplete=a(()=>this.viewModel,"search-complete"),this.arcgisSearchStart=a(()=>this.viewModel,"search-start"),this.arcgisSelectResult=a(()=>this.viewModel,"select-result"),this.arcgisSuggestComplete=a(()=>this.viewModel,"suggest-complete"),this.arcgisSuggestStart=a(()=>this.viewModel,"suggest-start"),this._renderSearchResultsContent=()=>this._searchResultRendererEl}static{this.properties={_locateFailed:16,_showNoResults:16,_isDisabled:16,_showCurrentLocation:16,_effectiveActiveMenu:16,referenceElement:1,position:3,goToOverride:0,icon:1,activeMenu:1,activeSource:32,activeSourceIndex:9,allPlaceholder:1,allSources:0,autoNavigate:5,autoSelectDisabled:5,defaultSources:0,disabled:5,includeDefaultSourcesDisabled:5,locationDisabled:5,maxResults:9,maxSuggestions:9,minSuggestCharacters:9,popupDisabled:5,popupTemplate:0,portal:0,resultGraphic:0,resultGraphicDisabled:5,results:0,searchAllDisabled:5,searchTerm:1,selectedResult:0,sources:0,suggestions:0,suggestionsDisabled:5,autoDestroyDisabled:5,messageOverrides:0,label:1,state:3}}static{this.styles=I}static{this.shadowRootOptions=S}get _isDisabled(){let{state:e}=this.viewModel;return e==="disabled"||e==="loading"||this.disabled}get _showCurrentLocation(){return!this.locationDisabled&&!this.searchTerm?.trim()}get _effectiveActiveMenu(){return this._isDisabled?"none":this.activeMenu}get activeSource(){return this.viewModel?.activeSource}clear(){this._locateFailed=!1,this.viewModel.clear()}async destroy(){await this.manager.destroy(),await this._searchResultRendererEl?.destroy(),this._cancelQueries()}async search(e){this._cancelQueries();let t=new AbortController,{signal:s}=t;this._searchController=t;try{let i=await this.viewModel.search(e,{signal:s});return this._searchController!==t?void 0:(i?.numResults||(this._showNoResults=!0,this.activeMenu="suggestion"),this._searchController=void 0,i)}catch{if(this._searchController!==t)return;this._searchController=void 0;return}}async suggest(e){this._cancelSuggest();let t=new AbortController,{signal:s}=t;this._suggestController=t;try{let i=await this.viewModel.suggest(e,null,{signal:s});return this._suggestController!==t?void 0:(this._suggestController=void 0,i?.numResults&&(this.activeMenu="suggestion",this._scrollToTopSuggestion()),i)}catch{return this._suggestController!==t||(this._suggestController=void 0),null}}async setFocus(){await this._autocompleteEl?.setFocus()}loaded(){this._addSearchResultRenderer(),this.manager.onLifecycle(()=>E(()=>this.viewModel?.defaultPopupTemplate,e=>{e&&(e.content=this._renderSearchResultsContent)},{initial:!0}))}_addSearchResultRenderer(){v(r`<arcgis-search-result-renderer auto-destroy-disabled .messages=${this.messages} .viewModel=${this.viewModel} ${g(this._setSearchResultRendererRef)}></arcgis-search-result-renderer>`,this._searchResultRendererContainerEl)}_handleInputKeydown(e){e.key==="Tab"&&this._cancelSuggest()}_handleAutocompleteCreate(e){this._autocompleteEl=e}_handleCalciteAutocompleteTextInput(e){let t=e.target.inputValue;t!==this.viewModel.searchTerm&&(this.viewModel.searchTerm=t,t||this.clear(),this.suggest())}_handleAutocompleteOpen(){this.activeMenu="suggestion"}_handleAutocompleteClose(){this.activeMenu==="suggestion"&&(this.activeMenu="none")}_handleCalciteAutocompleteChange(e){let t=e.target.value;if(t===this._currentLocationValue){this._useCurrentLocation();return}let s=JSON.parse(t),i=this.viewModel.suggestions?.find(({sourceIndex:o})=>o===s.sourceIndex)?.results?.find(({key:o})=>`${o}`==`${s.key}`);i&&this.search(i)}async _useCurrentLocation(){this._cancelQueries();let e=new AbortController,{signal:t}=e;this._searchController=e;try{await this.viewModel.searchNearby({signal:t})}catch(s){T(s)||(this._locateFailed=!0,this.activeMenu="suggestion")}finally{this._searchController=void 0}}_handleSourceOpen(){this.activeMenu="source"}_handleSourceClose(){this.activeMenu==="source"&&(this.activeMenu="none")}_handleSourceSelect(e){let t=e.target.selectedItems[0].getAttribute("data-source-index");t&&(this.viewModel.activeSourceIndex=Number.parseInt(t,10))}_cancelSuggest(){this.activeMenu="none",this._locateFailed=!1,this._showNoResults=!1,this._suggestController=d(this._suggestController)}_cancelQueries(){this._cancelSuggest(),this._searchController=d(this._searchController)}_scrollToTopSuggestion(){this._autocompleteEl?.scrollContentTo({top:0})}_formSubmit(e){e.preventDefault(),this.activeMenu="none",this._lastSearchTerm=this.searchTerm,this.searchTerm&&this.search()}_getSourceName(e){let{messages:t}=this,{allSources:s}=this.viewModel,i=s.at(e);return(e===-1?t.all:i?.name||t.untitledSource)||""}render(){return r`<div class=${l(m(u.base,x.widget))}><div class=${l(u.container)}>${this._renderSourcesMenu()}${this._renderForm()}</div></div>`}_renderSourcesMenu(){let{messages:e,_isDisabled:t,_effectiveActiveMenu:s}=this,{allSources:i,searchAllEnabled:o}=this.viewModel;return i.length>1?r`<calcite-dropdown class=${l(u.dropdown)} .disabled=${t} .open=${s==="source"} overlay-positioning=fixed @calciteDropdownClose=${this._handleSourceClose} @calciteDropdownOpen=${this._handleSourceOpen} @calciteDropdownSelect=${this._handleSourceSelect}><calcite-button appearance=outline-fill icon-start=caret-down kind=neutral .label=${e.searchIn} slot=trigger></calcite-button><calcite-dropdown-group .groupTitle=${e.searchIn}>${o?this._renderSource(-1):null}${i.map((c,n)=>this._renderSource(n)).toArray()}</calcite-dropdown-group></calcite-dropdown>`:null}_renderUseCurrentLocation(){let{_currentLocationValue:e}=this;return r`<calcite-autocomplete-item .heading=${this.messages.useCurrentLocation??""} icon-start=gps-on .value=${e}></calcite-autocomplete-item>`}_renderAutocomplete(){let{_effectiveActiveMenu:e,messages:t,_isDisabled:s}=this,{maxInputLength:i,placeholder:o,searchTerm:c,state:n}=this.viewModel,y=this.label??t.searchButtonTitle??"";return r`<calcite-autocomplete .autocomplete=${"off"} class=${l(u.autocomplete)} .disabled=${s} .icon=${this.icon} .inputValue=${c} .label=${y} .loading=${n==="searching"} .maxLength=${i} .name=${this.el.id} @keydown=${this._handleInputKeydown} .open=${e==="suggestion"} overlay-positioning=fixed .placeholder=${o} title=${(c?"":o)??f} @calciteAutocompleteChange=${this._handleCalciteAutocompleteChange} @calciteAutocompleteClose=${this._handleAutocompleteClose} @calciteAutocompleteOpen=${this._handleAutocompleteOpen} @calciteAutocompleteTextChange=${this._handleCalciteAutocompleteTextInput} @calciteAutocompleteTextInput=${this._handleCalciteAutocompleteTextInput} ${g(this._handleAutocompleteCreate)}>${this._renderSuggestions()}${this._renderNotices()}</calcite-autocomplete>`}_renderForm(){return r`<form class=${l(u.form)} @submit=${this._formSubmit} role=search>${this._renderAutocomplete()}</form>`}_renderSuggestGroup(e){return e.results?.map(t=>this._renderSuggestion(t))}_renderSuggestions(){let{suggestions:e}=this.viewModel;return this._showNoResults?null:this._showCurrentLocation?this._renderUseCurrentLocation():e?.map(t=>this._renderSuggestResults(t))}_renderSuggestResults(e){let{allSources:t,activeSourceIndex:s}=this.viewModel,{sourceIndex:i}=e,o=e.results?.length,c=t.length>1&&s===-1,n=this._getSourceName(i);return o&&c?r`<calcite-autocomplete-item-group .heading=${n}>${this._renderSuggestGroup(e)}</calcite-autocomplete-item-group>`:this._renderSuggestGroup(e)}_renderSuggestion({key:e,sourceIndex:t,text:s}){let i={key:e,sourceIndex:t};return r`<calcite-autocomplete-item .heading=${s??this.messages.untitledResult??""} .value=${JSON.stringify(i)}></calcite-autocomplete-item>`}_renderSource(e){let t=this._getSourceName(e);return r`<calcite-dropdown-item data-source-index=${`${e}`} .selected=${e===this.viewModel.activeSourceIndex}>${t}</calcite-dropdown-item>`}_renderNoResultsWarning(e){let{messages:t}=this,s=e?D(t.noResultsFoundForValue??"",{value:`"${e}"`}):t.noResultsFound;return r`<calcite-notice icon=exclamation-mark-triangle kind=warning open slot=content-bottom><div slot=title>${t.noResults}</div><div slot=message>${s}</div></calcite-notice>`}_renderLocateError(){return r`<calcite-notice icon=exclamation-mark-circle kind=danger open slot=content-bottom><div slot=message>${this.messages.locateError}</div></calcite-notice>`}_renderNotices(){return this._locateFailed?this._renderLocateError():this._showNoResults?this._renderNoResultsWarning(this._lastSearchTerm??this.viewModel.searchTerm):null}};$("arcgis-search",p);return p},"widgets/Search/SearchViewModel","core/promiseUtils","intl","core/reactiveUtils",a,c,e)
|