@arcgis/map-components 4.33.0-next.148 → 4.33.0-next.149
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/{ULZVV5OE.js → 26PSXZFT.js} +2 -2
- package/dist/cdn/{XYTU2T4G.js → 2BQDFL5K.js} +2 -2
- package/dist/cdn/{DPAZX3UP.js → 2IC3D4FL.js} +2 -2
- package/dist/cdn/{74BF56M6.js → 2PU2WWUG.js} +2 -2
- package/dist/cdn/{N2OUYWIG.js → 2TEJ63B5.js} +2 -2
- package/dist/cdn/{R5VQZYHH.js → 2URM45AF.js} +2 -2
- package/dist/cdn/{QUMQSMTI.js → 2WQRFFZW.js} +1 -1
- package/dist/cdn/{VALMPLFI.js → 35TWACW6.js} +2 -2
- package/dist/cdn/{VPLZC6P5.js → 37AGC5O5.js} +2 -2
- package/dist/cdn/{ZML3GRR7.js → 3D5X5L62.js} +1 -1
- package/dist/cdn/3RWBD22P.js +4 -0
- package/dist/cdn/{2PRKPYRM.js → 3VOVJXWX.js} +2 -2
- package/dist/cdn/{XMJXXBSU.js → 4274DARK.js} +2 -2
- package/dist/cdn/{O2FPNG3E.js → 4T3QVPNI.js} +2 -2
- package/dist/cdn/{YXKJTUET.js → 5CVEBY22.js} +2 -2
- package/dist/cdn/{MM4RXUJJ.js → 5KOVIKPQ.js} +2 -2
- package/dist/cdn/{O3HNAMQW.js → 5PWQMP2P.js} +2 -2
- package/dist/cdn/{4TRCVKET.js → 5TMHHOUR.js} +1 -1
- package/dist/cdn/{UE3A6JIQ.js → 6AR43MTY.js} +2 -2
- package/dist/cdn/{XQJ2KSRZ.js → 6CCUSBYX.js} +2 -2
- package/dist/cdn/{ZY5ZL32Q.js → 7QGAFIYJ.js} +2 -2
- package/dist/cdn/{RBHGKATQ.js → AIZTIILS.js} +2 -2
- package/dist/cdn/{YVADNO2N.js → AKQZRPTU.js} +2 -2
- package/dist/cdn/{T3QYN6RN.js → AQRH7RSF.js} +2 -2
- package/dist/cdn/{RJTDFI2N.js → ATMJJMCM.js} +2 -2
- package/dist/cdn/{KMBJ3DB7.js → B344GKWP.js} +2 -2
- package/dist/cdn/{LEWBJQIB.js → B4643C6C.js} +2 -2
- package/dist/cdn/{IXPQP5TV.js → BDHK4RAH.js} +2 -2
- package/dist/cdn/{COQJ25XI.js → C27NUXO5.js} +2 -2
- package/dist/cdn/{ZZROATGD.js → C72LTEYN.js} +2 -2
- package/dist/cdn/{QGYCI4EG.js → CJFAQBGL.js} +2 -2
- package/dist/cdn/{65XTHXIS.js → CKBTJCS6.js} +2 -2
- package/dist/cdn/{4Q4FSWEF.js → CQL6NJLV.js} +2 -2
- package/dist/cdn/{J4WL6N5U.js → DKYJA5ZR.js} +2 -2
- package/dist/cdn/{MGWOLYFV.js → E24E4VRJ.js} +2 -2
- package/dist/cdn/{47CH5NJ3.js → EPHKLJ26.js} +2 -2
- package/dist/cdn/{IIJZ4Z4K.js → ESUWG6TF.js} +2 -2
- package/dist/cdn/{5CE42BLO.js → EVVYZKOQ.js} +2 -2
- package/dist/cdn/{3DEJYBA7.js → EYM72FZ3.js} +2 -2
- package/dist/cdn/{7SF5VECK.js → FCQCDKEX.js} +2 -2
- package/dist/cdn/{AKYXACJ7.js → FG2MNMJV.js} +2 -2
- package/dist/cdn/{6JOCMC2K.js → FPPONXLB.js} +2 -2
- package/dist/cdn/{DG4IRVGT.js → FTE65SAE.js} +2 -2
- package/dist/cdn/{WJ35FRR3.js → FV4TT6MA.js} +2 -2
- package/dist/cdn/{OBXG4WYB.js → FZ7327JD.js} +2 -2
- package/dist/cdn/{7RFWGBTB.js → FZPGGKUT.js} +2 -2
- package/dist/cdn/{UYDVEFFV.js → G3W3IDSX.js} +2 -2
- package/dist/cdn/{WY4VHPSG.js → GRGGGOVV.js} +2 -2
- package/dist/cdn/{QAS77ITO.js → GW5B7ZEV.js} +2 -2
- package/dist/cdn/{M2BERX6H.js → HDN3NHKP.js} +2 -2
- package/dist/cdn/{RDIYLGHX.js → HDUOGFM6.js} +2 -2
- package/dist/cdn/{FR5NBYJN.js → HGD3574B.js} +1 -1
- package/dist/cdn/{NXCF2KR3.js → HGJEIF4D.js} +2 -2
- package/dist/cdn/{WOSRF6UP.js → HJBFPAEB.js} +2 -2
- package/dist/cdn/{ZVF2CENF.js → HY6ACP3M.js} +2 -2
- package/dist/cdn/{E7C7VTAV.js → HZRNT6GB.js} +2 -2
- package/dist/cdn/{DM2TPWZB.js → I6YPJSC5.js} +2 -2
- package/dist/cdn/{CKLQZMDM.js → IEPVX2MI.js} +2 -2
- package/dist/cdn/{XDCI4KZE.js → IKYZVVEW.js} +2 -2
- package/dist/cdn/{Q3UFBMWG.js → IL3E3JOM.js} +2 -2
- package/dist/cdn/{7UFQE77M.js → IRRSR4N3.js} +2 -2
- package/dist/cdn/{2QJUWLTZ.js → J5JIGXGG.js} +2 -2
- package/dist/cdn/{7KPGIWL5.js → J65XM6RK.js} +2 -2
- package/dist/cdn/{6H55JPOD.js → JPRYXRRB.js} +2 -2
- package/dist/cdn/{M3IIAVBP.js → JR4ZFJGW.js} +2 -2
- package/dist/cdn/{5TTZCTDC.js → JRT5IKMT.js} +2 -2
- package/dist/cdn/{IYRGK4GJ.js → LDTJ54Z6.js} +2 -2
- package/dist/cdn/{35QYTW5P.js → MDJT3SZL.js} +2 -2
- package/dist/cdn/{K3DXQ4ZT.js → MHEEYDOA.js} +2 -2
- package/dist/cdn/{SNKSZ3U3.js → MM43JHY6.js} +2 -2
- package/dist/cdn/{2GXF34VG.js → MSKBG7RJ.js} +2 -2
- package/dist/cdn/{X53VSHOY.js → N6XCAO4J.js} +2 -2
- package/dist/cdn/{65PUNHYL.js → N7NQK4M6.js} +2 -2
- package/dist/cdn/{CDELV4YK.js → N7TZZ3FI.js} +2 -2
- package/dist/cdn/{IF4AJM6Y.js → NRVX25WQ.js} +2 -2
- package/dist/cdn/{ZO3P3W7V.js → NU5PSAZX.js} +2 -2
- package/dist/cdn/{5BBA7DS7.js → NWE3CJHT.js} +2 -2
- package/dist/cdn/{ENRWOY2M.js → O6QRHF7P.js} +2 -2
- package/dist/cdn/{GQPMZHCT.js → OB55DTMH.js} +2 -2
- package/dist/cdn/{L2UWYLDA.js → OVORVPWH.js} +2 -2
- package/dist/cdn/{LUQAAXRD.js → P7HB6EE5.js} +2 -2
- package/dist/cdn/{6V2VS6SK.js → PBQJPGN5.js} +2 -2
- package/dist/cdn/{4TJHVGAJ.js → PDOBGW56.js} +2 -2
- package/dist/cdn/{LG2MT572.js → PG76GNKY.js} +2 -2
- package/dist/cdn/{HYC3NN7N.js → QGRUBNZ6.js} +2 -2
- package/dist/cdn/{ZGNLBXFU.js → QPMAEWGU.js} +2 -2
- package/dist/cdn/{QSDT5FDW.js → QUZS23U4.js} +2 -2
- package/dist/cdn/{CFZNBUIK.js → QWIHG3P2.js} +2 -2
- package/dist/cdn/{D6JPAUFY.js → R4ECLQXB.js} +2 -2
- package/dist/cdn/{6QECHJI5.js → RFYKABGQ.js} +2 -2
- package/dist/cdn/{INESEGID.js → RMCZL5YP.js} +2 -2
- package/dist/cdn/{C66UXP25.js → RXYDV4OE.js} +2 -2
- package/dist/cdn/{BOQOKQSJ.js → S4MVQY54.js} +2 -2
- package/dist/cdn/{E6S5GQLW.js → SPNROWXH.js} +1 -1
- package/dist/cdn/{R7AXS3EU.js → TFXQECDX.js} +2 -2
- package/dist/cdn/{GX5Q2FK4.js → TOT3TAQ6.js} +2 -2
- package/dist/cdn/{BNCYLLWS.js → TTF2TPDF.js} +2 -2
- package/dist/cdn/{3SWVH5FJ.js → TX7N74W2.js} +2 -2
- package/dist/cdn/{GDKSZZTD.js → TZRQJ4WB.js} +2 -2
- package/dist/cdn/{TJRL43XA.js → U2QZP4MA.js} +2 -2
- package/dist/cdn/{LXNJNGCL.js → UHCKGMUP.js} +2 -2
- package/dist/cdn/{4MWVVERI.js → URYPYM2I.js} +2 -2
- package/dist/cdn/{6LVEO2NI.js → UVBJ7KT4.js} +2 -2
- package/dist/cdn/{YW2XYXVK.js → UW6HY43H.js} +2 -2
- package/dist/cdn/{EAHJ2QPT.js → VGYV5TXT.js} +2 -2
- package/dist/cdn/{JEWO6AK3.js → VSN2DQRW.js} +2 -2
- package/dist/cdn/{MSFO4435.js → W4P62AUC.js} +2 -2
- package/dist/cdn/{7HSGLVXV.js → X2EIENHI.js} +2 -2
- package/dist/cdn/{55GYRWUU.js → XPZSQ552.js} +2 -2
- package/dist/cdn/{GHQSRIZ7.js → XVDOB36B.js} +2 -2
- package/dist/cdn/{IL4DIA6O.js → XWWUIQIJ.js} +1 -1
- package/dist/cdn/{53DGYMX6.js → Y2NFSNYX.js} +2 -2
- package/dist/cdn/{Z3I2X2OR.js → Y6H3NBC4.js} +2 -2
- package/dist/cdn/{LRQBHWQI.js → YTJ4WNFK.js} +2 -2
- package/dist/cdn/{6LCAPKUC.js → ZB64CGXY.js} +2 -2
- package/dist/cdn/{DXTVN7JM.js → ZF7D5R3R.js} +2 -2
- package/dist/cdn/{ALJ4MJ7B.js → ZMGUGDTS.js} +1 -1
- package/dist/cdn/{WU2AZ2PC.js → ZQDXZSDQ.js} +1 -1
- package/dist/cdn/{J2SKFUJC.js → ZY62LZHU.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 -16
- 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.d.ts +14 -14
- package/dist/components/arcgis-search/customElement.js +26 -26
- 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.js +1 -1
- 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 +52 -52
- package/dist/docs/docs.json +29 -29
- package/dist/docs/vscode.html-custom-data.json +10 -10
- package/dist/docs/web-types.json +30 -30
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cdn/35M2UN2R.js +0 -4
|
@@ -5605,7 +5605,7 @@
|
|
|
5605
5605
|
},
|
|
5606
5606
|
{
|
|
5607
5607
|
"name": "arcgis-print",
|
|
5608
|
-
"description": "The 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 has two required properties: [view](#view) (reference to the MapView)\nand [printServiceUrl](#printServiceUrl) (URL of the REST endpoint of the Export Web Map Task).\nThe component can preserve map scale or map extent in the printout. By default, the map extent is\npreserved. Use [TemplateOptions.scaleEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#scaleEnabled) to preserve scale\ninstead.\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**\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**\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",
|
|
@@ -5647,7 +5647,7 @@
|
|
|
5647
5647
|
},
|
|
5648
5648
|
{
|
|
5649
5649
|
"name": "heading-level",
|
|
5650
|
-
"description": "Indicates the heading level to use for the \"Exported files\" text where users can\naccess the exported map printout. By default, this text is rendered\nas a level 3 heading (e.g. `<h3>Exported files</h3>`). Depending on the
|
|
5650
|
+
"description": "Indicates the heading level to use for the \"Exported files\" text where users can\naccess the exported map printout. By default, this text is rendered\nas a level 3 heading (e.g. `<h3>Exported files</h3>`). Depending on the component's placement\nin your app, you may need to adjust this heading for proper semantics. This is\nimportant for meeting accessibility standards.",
|
|
5651
5651
|
"values": [
|
|
5652
5652
|
{
|
|
5653
5653
|
"name": "1"
|
|
@@ -5726,7 +5726,7 @@
|
|
|
5726
5726
|
},
|
|
5727
5727
|
{
|
|
5728
5728
|
"name": "show-print-area-enabled",
|
|
5729
|
-
"description": "The initial state of the print area toggle in the Print
|
|
5729
|
+
"description": "The initial state of the print area toggle in the Print component UI.\nWhen set to `true`, the print area toggle is enabled by default.\nWhen set to `false`, the print area toggle is disabled by default.",
|
|
5730
5730
|
"values": []
|
|
5731
5731
|
},
|
|
5732
5732
|
{
|
|
@@ -6137,7 +6137,7 @@
|
|
|
6137
6137
|
"values": []
|
|
6138
6138
|
},
|
|
6139
6139
|
{
|
|
6140
|
-
"name": "auto-select",
|
|
6140
|
+
"name": "auto-select-disabled",
|
|
6141
6141
|
"description": "Indicates whether to automatically select and zoom to the first geocoded result. If `false`, the\n[findAddressCandidates](https://developers.arcgis.com/rest/geocode/api-reference/geocoding-find-address-candidates.htm)\noperation will still geocode the input string, but the top result will not be selected. To work with the\ngeocoded results, you can set up a [search-complete](#event-search-complete) event handler and get the results\nthrough the event object.",
|
|
6142
6142
|
"values": []
|
|
6143
6143
|
},
|
|
@@ -6152,7 +6152,7 @@
|
|
|
6152
6152
|
"values": []
|
|
6153
6153
|
},
|
|
6154
6154
|
{
|
|
6155
|
-
"name": "include-default-sources",
|
|
6155
|
+
"name": "include-default-sources-disabled",
|
|
6156
6156
|
"description": "Indicates whether or not to include [defaultSources](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#defaultSources) in the Search UI.\nThis can be a boolean value or a function that returns an array of Search [sources](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#sources).",
|
|
6157
6157
|
"values": []
|
|
6158
6158
|
},
|
|
@@ -6162,7 +6162,7 @@
|
|
|
6162
6162
|
"values": []
|
|
6163
6163
|
},
|
|
6164
6164
|
{
|
|
6165
|
-
"name": "location-
|
|
6165
|
+
"name": "location-disabled",
|
|
6166
6166
|
"description": "Enables location services within the component.\n\n\n\n::: esri-md class=\"warning\"\nThe use of this property is only supported on secure origins.\nTo use it, switch your application to a secure origin, such as HTTPS.\nNote that localhost is considered \"potentially secure\" and can be used for easy testing in browsers that supports\n[Window.isSecureContext](https://developer.mozilla.org/en-US/docs/Web/API/isSecureContext#browser_compatibility)\n(currently Chrome and Firefox).\n:::",
|
|
6167
6167
|
"values": []
|
|
6168
6168
|
},
|
|
@@ -6182,7 +6182,7 @@
|
|
|
6182
6182
|
"values": []
|
|
6183
6183
|
},
|
|
6184
6184
|
{
|
|
6185
|
-
"name": "popup-
|
|
6185
|
+
"name": "popup-disabled",
|
|
6186
6186
|
"description": "Indicates whether to display the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) on feature click. The graphic can\nbe clicked to display a [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html).",
|
|
6187
6187
|
"values": []
|
|
6188
6188
|
},
|
|
@@ -6223,12 +6223,12 @@
|
|
|
6223
6223
|
"values": []
|
|
6224
6224
|
},
|
|
6225
6225
|
{
|
|
6226
|
-
"name": "result-graphic-
|
|
6226
|
+
"name": "result-graphic-disabled",
|
|
6227
6227
|
"description": "Indicates if the [resultGraphic](#resultGraphic) will display at the\nlocation of the selected feature.",
|
|
6228
6228
|
"values": []
|
|
6229
6229
|
},
|
|
6230
6230
|
{
|
|
6231
|
-
"name": "search-all-
|
|
6231
|
+
"name": "search-all-disabled",
|
|
6232
6232
|
"description": "Indicates whether to display the option to search all sources. When `true`, the \"All\" option\nis displayed by default:\n\n\n\nWhen `false`, no option to search all sources at once is available:\n\n",
|
|
6233
6233
|
"values": []
|
|
6234
6234
|
},
|
|
@@ -6256,7 +6256,7 @@
|
|
|
6256
6256
|
]
|
|
6257
6257
|
},
|
|
6258
6258
|
{
|
|
6259
|
-
"name": "suggestions-
|
|
6259
|
+
"name": "suggestions-disabled",
|
|
6260
6260
|
"description": "Enable suggestions for the component.\n\nThis is only available if working with a 10.3 or greater geocoding service that has [suggest capability\nloaded](https://developers.arcgis.com/rest/geocode/api-reference/geocoding-suggest.htm) or a 10.3 or greater feature layer that supports pagination, i.e. `supportsPagination = true`.",
|
|
6261
6261
|
"values": []
|
|
6262
6262
|
}
|
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.149",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -10730,7 +10730,7 @@
|
|
|
10730
10730
|
},
|
|
10731
10731
|
{
|
|
10732
10732
|
"name": "arcgis-print",
|
|
10733
|
-
"description": "The Print
|
|
10733
|
+
"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 has two required properties: [view](#view) (reference to the MapView)\nand [printServiceUrl](#printServiceUrl) (URL of the REST endpoint of the Export Web Map Task).\nThe component can preserve map scale or map extent in the printout. By default, the map extent is\npreserved. Use [TemplateOptions.scaleEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#scaleEnabled) to preserve scale\ninstead.\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**\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**\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.",
|
|
10734
10734
|
"doc-url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-print/",
|
|
10735
10735
|
"attributes": [
|
|
10736
10736
|
{
|
|
@@ -10788,7 +10788,7 @@
|
|
|
10788
10788
|
},
|
|
10789
10789
|
{
|
|
10790
10790
|
"name": "heading-level",
|
|
10791
|
-
"description": "Indicates the heading level to use for the \"Exported files\" text where users can\naccess the exported map printout. By default, this text is rendered\nas a level 3 heading (e.g. `<h3>Exported files</h3>`). Depending on the
|
|
10791
|
+
"description": "Indicates the heading level to use for the \"Exported files\" text where users can\naccess the exported map printout. By default, this text is rendered\nas a level 3 heading (e.g. `<h3>Exported files</h3>`). Depending on the component's placement\nin your app, you may need to adjust this heading for proper semantics. This is\nimportant for meeting accessibility standards.",
|
|
10792
10792
|
"default": "3",
|
|
10793
10793
|
"value": {
|
|
10794
10794
|
"type": [
|
|
@@ -10855,7 +10855,7 @@
|
|
|
10855
10855
|
},
|
|
10856
10856
|
{
|
|
10857
10857
|
"name": "show-print-area-enabled",
|
|
10858
|
-
"description": "The initial state of the print area toggle in the Print
|
|
10858
|
+
"description": "The initial state of the print area toggle in the Print component UI.\nWhen set to `true`, the print area toggle is enabled by default.\nWhen set to `false`, the print area toggle is disabled by default.",
|
|
10859
10859
|
"default": "false",
|
|
10860
10860
|
"value": {
|
|
10861
10861
|
"type": "boolean"
|
|
@@ -10932,7 +10932,7 @@
|
|
|
10932
10932
|
},
|
|
10933
10933
|
{
|
|
10934
10934
|
"name": "exportedLinks",
|
|
10935
|
-
"description": "The collection of links exported from the Print
|
|
10935
|
+
"description": "The collection of links exported from the Print component.",
|
|
10936
10936
|
"type": "Collection<FileLink>"
|
|
10937
10937
|
},
|
|
10938
10938
|
{
|
|
@@ -10942,7 +10942,7 @@
|
|
|
10942
10942
|
},
|
|
10943
10943
|
{
|
|
10944
10944
|
"name": "headingLevel",
|
|
10945
|
-
"description": "Indicates the heading level to use for the \"Exported files\" text where users can\naccess the exported map printout. By default, this text is rendered\nas a level 3 heading (e.g. `<h3>Exported files</h3>`). Depending on the
|
|
10945
|
+
"description": "Indicates the heading level to use for the \"Exported files\" text where users can\naccess the exported map printout. By default, this text is rendered\nas a level 3 heading (e.g. `<h3>Exported files</h3>`). Depending on the component's placement\nin your app, you may need to adjust this heading for proper semantics. This is\nimportant for meeting accessibility standards.",
|
|
10946
10946
|
"type": "1 | 2 | 3 | 4 | 5 | 6"
|
|
10947
10947
|
},
|
|
10948
10948
|
{
|
|
@@ -10993,7 +10993,7 @@
|
|
|
10993
10993
|
},
|
|
10994
10994
|
{
|
|
10995
10995
|
"name": "showPrintAreaEnabled",
|
|
10996
|
-
"description": "The initial state of the print area toggle in the Print
|
|
10996
|
+
"description": "The initial state of the print area toggle in the Print component UI.\nWhen set to `true`, the print area toggle is enabled by default.\nWhen set to `false`, the print area toggle is disabled by default.",
|
|
10997
10997
|
"type": "boolean"
|
|
10998
10998
|
},
|
|
10999
10999
|
{
|
|
@@ -11003,12 +11003,12 @@
|
|
|
11003
11003
|
},
|
|
11004
11004
|
{
|
|
11005
11005
|
"name": "templateCustomTextElements",
|
|
11006
|
-
"description": "An object containing an array of `customTextElements` name-value pair objects\nfor each print template in a custom print service. Use this property to update\nthe text for custom text elements on the page layout.\n\nThe Print
|
|
11006
|
+
"description": "An object containing an array of `customTextElements` name-value pair objects\nfor each print template in a custom print service. Use this property to update\nthe text for custom text elements on the page layout.\n\nThe Print component calls the `Get Layout Templates Info` task on the GPServer\nto discover possible `customTextElements` values for each template. The name of\nthe task must match `Get Layout Templates Info`, templates must be published\nwith `customTextElements`, and values must be strings. Values found there will be\npopulated in the Print component under `Advanced options`. These values can be\noverwritten in the Print component UI, or programmatically using this property.\nTo list all print templates available on the print service to see\nsee which templates were published with `customTextElements`, use the\n[effectiveTemplateCustomTextElements](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#effectiveTemplateCustomTextElements)\nproperty.",
|
|
11007
11007
|
"type": "{\n [x: string]: Array<HashMap<string>> | undefined;\n}"
|
|
11008
11008
|
},
|
|
11009
11009
|
{
|
|
11010
11010
|
"name": "templateOptions",
|
|
11011
|
-
"description": "Defines the layout template options used by the [Print](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html)
|
|
11011
|
+
"description": "Defines the layout template options used by the [Print](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html) component to generate the print page.",
|
|
11012
11012
|
"type": "TemplateOptions"
|
|
11013
11013
|
}
|
|
11014
11014
|
],
|
|
@@ -12040,9 +12040,9 @@
|
|
|
12040
12040
|
}
|
|
12041
12041
|
},
|
|
12042
12042
|
{
|
|
12043
|
-
"name": "auto-select",
|
|
12043
|
+
"name": "auto-select-disabled",
|
|
12044
12044
|
"description": "Indicates whether to automatically select and zoom to the first geocoded result. If `false`, the\n[findAddressCandidates](https://developers.arcgis.com/rest/geocode/api-reference/geocoding-find-address-candidates.htm)\noperation will still geocode the input string, but the top result will not be selected. To work with the\ngeocoded results, you can set up a [search-complete](#event-search-complete) event handler and get the results\nthrough the event object.",
|
|
12045
|
-
"default": "
|
|
12045
|
+
"default": "false",
|
|
12046
12046
|
"value": {
|
|
12047
12047
|
"type": "boolean"
|
|
12048
12048
|
}
|
|
@@ -12064,9 +12064,9 @@
|
|
|
12064
12064
|
}
|
|
12065
12065
|
},
|
|
12066
12066
|
{
|
|
12067
|
-
"name": "include-default-sources",
|
|
12067
|
+
"name": "include-default-sources-disabled",
|
|
12068
12068
|
"description": "Indicates whether or not to include [defaultSources](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#defaultSources) in the Search UI.\nThis can be a boolean value or a function that returns an array of Search [sources](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#sources).",
|
|
12069
|
-
"default": "
|
|
12069
|
+
"default": "false",
|
|
12070
12070
|
"value": {
|
|
12071
12071
|
"type": "boolean"
|
|
12072
12072
|
}
|
|
@@ -12079,9 +12079,9 @@
|
|
|
12079
12079
|
}
|
|
12080
12080
|
},
|
|
12081
12081
|
{
|
|
12082
|
-
"name": "location-
|
|
12082
|
+
"name": "location-disabled",
|
|
12083
12083
|
"description": "Enables location services within the component.\n\n\n\n::: esri-md class=\"warning\"\nThe use of this property is only supported on secure origins.\nTo use it, switch your application to a secure origin, such as HTTPS.\nNote that localhost is considered \"potentially secure\" and can be used for easy testing in browsers that supports\n[Window.isSecureContext](https://developer.mozilla.org/en-US/docs/Web/API/isSecureContext#browser_compatibility)\n(currently Chrome and Firefox).\n:::",
|
|
12084
|
-
"default": "
|
|
12084
|
+
"default": "false",
|
|
12085
12085
|
"value": {
|
|
12086
12086
|
"type": "boolean"
|
|
12087
12087
|
}
|
|
@@ -12111,9 +12111,9 @@
|
|
|
12111
12111
|
}
|
|
12112
12112
|
},
|
|
12113
12113
|
{
|
|
12114
|
-
"name": "popup-
|
|
12114
|
+
"name": "popup-disabled",
|
|
12115
12115
|
"description": "Indicates whether to display the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) on feature click. The graphic can\nbe clicked to display a [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html).",
|
|
12116
|
-
"default": "
|
|
12116
|
+
"default": "false",
|
|
12117
12117
|
"value": {
|
|
12118
12118
|
"type": "boolean"
|
|
12119
12119
|
}
|
|
@@ -12142,17 +12142,17 @@
|
|
|
12142
12142
|
}
|
|
12143
12143
|
},
|
|
12144
12144
|
{
|
|
12145
|
-
"name": "result-graphic-
|
|
12145
|
+
"name": "result-graphic-disabled",
|
|
12146
12146
|
"description": "Indicates if the [resultGraphic](#resultGraphic) will display at the\nlocation of the selected feature.",
|
|
12147
|
-
"default": "
|
|
12147
|
+
"default": "false",
|
|
12148
12148
|
"value": {
|
|
12149
12149
|
"type": "boolean"
|
|
12150
12150
|
}
|
|
12151
12151
|
},
|
|
12152
12152
|
{
|
|
12153
|
-
"name": "search-all-
|
|
12153
|
+
"name": "search-all-disabled",
|
|
12154
12154
|
"description": "Indicates whether to display the option to search all sources. When `true`, the \"All\" option\nis displayed by default:\n\n\n\nWhen `false`, no option to search all sources at once is available:\n\n",
|
|
12155
|
-
"default": "
|
|
12155
|
+
"default": "false",
|
|
12156
12156
|
"value": {
|
|
12157
12157
|
"type": "boolean"
|
|
12158
12158
|
}
|
|
@@ -12178,9 +12178,9 @@
|
|
|
12178
12178
|
}
|
|
12179
12179
|
},
|
|
12180
12180
|
{
|
|
12181
|
-
"name": "suggestions-
|
|
12181
|
+
"name": "suggestions-disabled",
|
|
12182
12182
|
"description": "Enable suggestions for the component.\n\nThis is only available if working with a 10.3 or greater geocoding service that has [suggest capability\nloaded](https://developers.arcgis.com/rest/geocode/api-reference/geocoding-suggest.htm) or a 10.3 or greater feature layer that supports pagination, i.e. `supportsPagination = true`.",
|
|
12183
|
-
"default": "
|
|
12183
|
+
"default": "false",
|
|
12184
12184
|
"value": {
|
|
12185
12185
|
"type": "boolean"
|
|
12186
12186
|
}
|
|
@@ -12261,7 +12261,7 @@
|
|
|
12261
12261
|
"type": "boolean"
|
|
12262
12262
|
},
|
|
12263
12263
|
{
|
|
12264
|
-
"name": "
|
|
12264
|
+
"name": "autoSelectDisabled",
|
|
12265
12265
|
"description": "Indicates whether to automatically select and zoom to the first geocoded result. If `false`, the\n[findAddressCandidates](https://developers.arcgis.com/rest/geocode/api-reference/geocoding-find-address-candidates.htm)\noperation will still geocode the input string, but the top result will not be selected. To work with the\ngeocoded results, you can set up a [search-complete](#event-search-complete) event handler and get the results\nthrough the event object.",
|
|
12266
12266
|
"type": "boolean"
|
|
12267
12267
|
},
|
|
@@ -12286,7 +12286,7 @@
|
|
|
12286
12286
|
"type": "string"
|
|
12287
12287
|
},
|
|
12288
12288
|
{
|
|
12289
|
-
"name": "
|
|
12289
|
+
"name": "includeDefaultSourcesDisabled",
|
|
12290
12290
|
"description": "Indicates whether or not to include [defaultSources](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#defaultSources) in the Search UI.\nThis can be a boolean value or a function that returns an array of Search [sources](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#sources).",
|
|
12291
12291
|
"type": "Function | boolean"
|
|
12292
12292
|
},
|
|
@@ -12296,7 +12296,7 @@
|
|
|
12296
12296
|
"type": "string"
|
|
12297
12297
|
},
|
|
12298
12298
|
{
|
|
12299
|
-
"name": "
|
|
12299
|
+
"name": "locationDisabled",
|
|
12300
12300
|
"description": "Enables location services within the component.\n\n\n\n::: esri-md class=\"warning\"\nThe use of this property is only supported on secure origins.\nTo use it, switch your application to a secure origin, such as HTTPS.\nNote that localhost is considered \"potentially secure\" and can be used for easy testing in browsers that supports\n[Window.isSecureContext](https://developer.mozilla.org/en-US/docs/Web/API/isSecureContext#browser_compatibility)\n(currently Chrome and Firefox).\n:::",
|
|
12301
12301
|
"type": "boolean"
|
|
12302
12302
|
},
|
|
@@ -12321,7 +12321,7 @@
|
|
|
12321
12321
|
"type": "number"
|
|
12322
12322
|
},
|
|
12323
12323
|
{
|
|
12324
|
-
"name": "
|
|
12324
|
+
"name": "popupDisabled",
|
|
12325
12325
|
"description": "Indicates whether to display the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) on feature click. The graphic can\nbe clicked to display a [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html).",
|
|
12326
12326
|
"type": "boolean"
|
|
12327
12327
|
},
|
|
@@ -12349,7 +12349,7 @@
|
|
|
12349
12349
|
"type": "Graphic"
|
|
12350
12350
|
},
|
|
12351
12351
|
{
|
|
12352
|
-
"name": "
|
|
12352
|
+
"name": "resultGraphicDisabled",
|
|
12353
12353
|
"description": "Indicates if the [resultGraphic](#resultGraphic) will display at the\nlocation of the selected feature.",
|
|
12354
12354
|
"type": "boolean"
|
|
12355
12355
|
},
|
|
@@ -12359,7 +12359,7 @@
|
|
|
12359
12359
|
"type": "Array<SearchResults>"
|
|
12360
12360
|
},
|
|
12361
12361
|
{
|
|
12362
|
-
"name": "
|
|
12362
|
+
"name": "searchAllDisabled",
|
|
12363
12363
|
"description": "Indicates whether to display the option to search all sources. When `true`, the \"All\" option\nis displayed by default:\n\n\n\nWhen `false`, no option to search all sources at once is available:\n\n",
|
|
12364
12364
|
"type": "boolean"
|
|
12365
12365
|
},
|
|
@@ -12389,7 +12389,7 @@
|
|
|
12389
12389
|
"type": "Array<SuggestResults>"
|
|
12390
12390
|
},
|
|
12391
12391
|
{
|
|
12392
|
-
"name": "
|
|
12392
|
+
"name": "suggestionsDisabled",
|
|
12393
12393
|
"description": "Enable suggestions for the component.\n\nThis is only available if working with a 10.3 or greater geocoding service that has [suggest capability\nloaded](https://developers.arcgis.com/rest/geocode/api-reference/geocoding-suggest.htm) or a 10.3 or greater feature layer that supports pagination, i.e. `supportsPagination = true`.",
|
|
12394
12394
|
"type": "boolean"
|
|
12395
12395
|
}
|
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.149 */
|
|
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.149 */
|
|
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"],
|
|
@@ -67,7 +67,7 @@ const a = t(e, {
|
|
|
67
67
|
"arcgis-scale-bar": [() => import("./components/arcgis-scale-bar/customElement.js"), "autoDestroyDisabled,barStyle,icon,label,messageOverrides:,position,referenceElement,unit;destroy"],
|
|
68
68
|
"arcgis-scale-range-slider": [() => import("./components/arcgis-scale-range-slider/customElement.js"), "autoDestroyDisabled,disabled,hidePreview,hideScaleMenusMaxScaleMenu,hideScaleMenusMinScaleMenu,icon,label,layer:,maxScale,maxScaleLimit,minScale,minScaleLimit,mode,position,referenceElement,region:,state;destroy"],
|
|
69
69
|
"arcgis-scene": [() => import("./components/arcgis-scene/customElement.js"), "allLayerViews:,alphaCompositingEnabled,analyses:,autoDestroyDisabled,basemap,basemapView:,camera:,cameraFov,cameraHeading,cameraPosition,cameraTilt,center,clippingArea:,constraints:,displayFilterDisabled,environment:,extent:,fatalError:,floors:,gamepad:,graphics:,ground,groundView:,highlightOptions:,highlights:,interacting:,itemId,layerViews:,magnifier:,map:,navigating:,navigation:,padding:,performanceInfo:,popup:,popupDisabled,qualityProfile,ready:,resolution:,scale,spatialReference:,stationary:,suspended,theme:,timeExtent:,updating:,view:,viewingMode,viewpoint:,visibleArea:,zoom;addLayer,addLayers,addTable,addTables,closePopup,destroy,goTo,hitTest,openPopup,takeScreenshot,tryFatalErrorRecovery,viewOnReady,whenAnalysisView,whenLayerView;toMap,toScreen"],
|
|
70
|
-
"arcgis-search": [() => import("./components/arcgis-search/customElement.js"), "activeMenu,activeSource:,activeSourceIndex,allPlaceholder,allSources:,autoDestroyDisabled,autoNavigate,
|
|
70
|
+
"arcgis-search": [() => import("./components/arcgis-search/customElement.js"), "activeMenu,activeSource:,activeSourceIndex,allPlaceholder,allSources:,autoDestroyDisabled,autoNavigate,autoSelectDisabled,defaultSources:,disabled,goToOverride:,icon,includeDefaultSourcesDisabled,label,locationDisabled,maxResults,maxSuggestions,messageOverrides:,minSuggestCharacters,popupDisabled,popupTemplate:,portal:,position,referenceElement,resultGraphic:,resultGraphicDisabled,results:,searchAllDisabled,searchTerm,selectedResult:,sources:,state,suggestions:,suggestionsDisabled;destroy,search,setFocus,suggest;clear"],
|
|
71
71
|
"arcgis-search-result-renderer": [() => import("./components/arcgis-search-result-renderer/customElement.js"), "autoDestroyDisabled,messages:,viewModel:;destroy"],
|
|
72
72
|
"arcgis-shadow-cast": [() => import("./components/arcgis-shadow-cast/customElement.js"), "autoDestroyDisabled,date,discreteOptions:,durationOptions:,endTimeOfDay,headingLevel,hideColorPicker,hideDatePicker,hideThresholdContext,hideThresholdContextColor,hideThresholdContextTimeInterval,hideThresholdContextToggle,hideTimeRangeSlider,hideTimezone,hideTooltip,hideVisualizationOptions,icon,label,position,referenceElement,startTimeOfDay,state,thresholdOptions:,utcOffset,visualizationType;destroy,getDuration,start,stop"],
|
|
73
73
|
"arcgis-sketch": [() => import("./components/arcgis-sketch/customElement.js"), "activeTool,autoDestroyDisabled,availableCreateTools:,createGraphic:,creationMode,defaultCreateOptions:,defaultGraphicsLayerDisabled,defaultUpdateOptions:,hideCreateToolsCircle,hideCreateToolsPoint,hideCreateToolsPolygon,hideCreateToolsPolyline,hideCreateToolsRectangle,hideDeleteButton,hideDuplicateButton,hideLabelsToggle,hideSelectionCountLabel,hideSelectionToolsLassoSelection,hideSelectionToolsRectangleSelection,hideSettingsMenu,hideSnappingControls,hideSnappingControlsElementsEnabledToggle,hideSnappingControlsElementsFeatureEnabledToggle,hideSnappingControlsElementsLayerList,hideSnappingControlsElementsSelfEnabledToggle,hideTooltipsToggle,hideUndoRedoMenu,icon,label,labelOptions:,layer:,layout,pointSymbol:,polygonSymbol:,polylineSymbol:,position,referenceElement,scale,showSnappingControlsElementsHeader,snappingOptions:,state,toolbarKind,tooltipOptions:,updateGraphics:;cancel,complete,create,delete,destroy,duplicate,redo,triggerUpdate,undo"],
|
package/dist/types/lumina.d.ts
CHANGED
|
@@ -368,7 +368,7 @@ interface LuminaArcgisScene extends Partial<Pick<ArcgisScene, 'alphaCompositingE
|
|
|
368
368
|
}
|
|
369
369
|
type ArcgisSceneSetterTypes = ArcgisScene["_setterTypes"]
|
|
370
370
|
|
|
371
|
-
interface LuminaArcgisSearch extends Partial<Pick<ArcgisSearch, 'activeMenu' | 'activeSourceIndex' | 'allPlaceholder' | 'autoDestroyDisabled' | '
|
|
371
|
+
interface LuminaArcgisSearch extends Partial<Pick<ArcgisSearch, 'activeMenu' | 'activeSourceIndex' | 'allPlaceholder' | 'autoDestroyDisabled' | 'autoSelectDisabled' | 'disabled' | 'goToOverride' | 'icon' | 'includeDefaultSourcesDisabled' | 'label' | 'locationDisabled' | 'maxResults' | 'maxSuggestions' | 'messageOverrides' | 'minSuggestCharacters' | 'popupDisabled' | 'popupTemplate' | 'portal' | 'position' | 'referenceElement' | 'resultGraphicDisabled' | 'searchAllDisabled' | 'searchTerm' | 'sources' | 'suggestionsDisabled'>>, h.JSX.HTMLAttributes<HTMLArcgisSearchElement> {
|
|
372
372
|
onarcgisPropertyChange?: EventHandler<HTMLArcgisSearchElement["arcgisPropertyChange"]>;
|
|
373
373
|
onarcgisReady?: EventHandler<HTMLArcgisSearchElement["arcgisReady"]>;
|
|
374
374
|
onarcgisSearchClear?: EventHandler<HTMLArcgisSearchElement["arcgisSearchClear"]>;
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -369,7 +369,7 @@ interface PreactArcgisScene extends Partial<Pick<ArcgisScene, 'alphaCompositingE
|
|
|
369
369
|
}
|
|
370
370
|
type ArcgisSceneSetterTypes = ArcgisScene["_setterTypes"]
|
|
371
371
|
|
|
372
|
-
interface PreactArcgisSearch extends Partial<Pick<ArcgisSearch, 'activeMenu' | 'activeSourceIndex' | 'allPlaceholder' | 'autoDestroyDisabled' | '
|
|
372
|
+
interface PreactArcgisSearch extends Partial<Pick<ArcgisSearch, 'activeMenu' | 'activeSourceIndex' | 'allPlaceholder' | 'autoDestroyDisabled' | 'autoSelectDisabled' | 'disabled' | 'goToOverride' | 'icon' | 'includeDefaultSourcesDisabled' | 'label' | 'locationDisabled' | 'maxResults' | 'maxSuggestions' | 'messageOverrides' | 'minSuggestCharacters' | 'popupDisabled' | 'popupTemplate' | 'portal' | 'position' | 'referenceElement' | 'resultGraphicDisabled' | 'searchAllDisabled' | 'searchTerm' | 'sources' | 'suggestionsDisabled'>>, PreactJsx.HTMLAttributes<HTMLArcgisSearchElement> {
|
|
373
373
|
onarcgisPropertyChange?: EventHandler<HTMLArcgisSearchElement["arcgisPropertyChange"]>;
|
|
374
374
|
onarcgisReady?: EventHandler<HTMLArcgisSearchElement["arcgisReady"]>;
|
|
375
375
|
onarcgisSearchClear?: EventHandler<HTMLArcgisSearchElement["arcgisSearchClear"]>;
|
package/dist/types/react.d.ts
CHANGED
|
@@ -369,7 +369,7 @@ interface ReactArcgisScene extends Partial<Pick<ArcgisScene, 'alphaCompositingEn
|
|
|
369
369
|
}
|
|
370
370
|
type ArcgisSceneSetterTypes = ArcgisScene["_setterTypes"]
|
|
371
371
|
|
|
372
|
-
interface ReactArcgisSearch extends Partial<Pick<ArcgisSearch, 'activeMenu' | 'activeSourceIndex' | 'allPlaceholder' | 'autoDestroyDisabled' | '
|
|
372
|
+
interface ReactArcgisSearch extends Partial<Pick<ArcgisSearch, 'activeMenu' | 'activeSourceIndex' | 'allPlaceholder' | 'autoDestroyDisabled' | 'autoSelectDisabled' | 'disabled' | 'goToOverride' | 'icon' | 'includeDefaultSourcesDisabled' | 'label' | 'locationDisabled' | 'maxResults' | 'maxSuggestions' | 'messageOverrides' | 'minSuggestCharacters' | 'popupDisabled' | 'popupTemplate' | 'portal' | 'position' | 'referenceElement' | 'resultGraphicDisabled' | 'searchAllDisabled' | 'searchTerm' | 'sources' | 'suggestionsDisabled'>>, HTMLProps<HTMLArcgisSearchElement> {
|
|
373
373
|
onarcgisPropertyChange?: EventHandler<HTMLArcgisSearchElement["arcgisPropertyChange"]>;
|
|
374
374
|
onarcgisReady?: EventHandler<HTMLArcgisSearchElement["arcgisReady"]>;
|
|
375
375
|
onarcgisSearchClear?: EventHandler<HTMLArcgisSearchElement["arcgisSearchClear"]>;
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -369,7 +369,7 @@ interface StencilArcgisScene extends Partial<Pick<ArcgisScene, 'alphaCompositing
|
|
|
369
369
|
}
|
|
370
370
|
type ArcgisSceneSetterTypes = ArcgisScene["_setterTypes"]
|
|
371
371
|
|
|
372
|
-
interface StencilArcgisSearch extends Partial<Pick<ArcgisSearch, 'activeMenu' | 'activeSourceIndex' | 'allPlaceholder' | 'autoDestroyDisabled' | '
|
|
372
|
+
interface StencilArcgisSearch extends Partial<Pick<ArcgisSearch, 'activeMenu' | 'activeSourceIndex' | 'allPlaceholder' | 'autoDestroyDisabled' | 'autoSelectDisabled' | 'disabled' | 'goToOverride' | 'icon' | 'includeDefaultSourcesDisabled' | 'label' | 'locationDisabled' | 'maxResults' | 'maxSuggestions' | 'messageOverrides' | 'minSuggestCharacters' | 'popupDisabled' | 'popupTemplate' | 'portal' | 'position' | 'referenceElement' | 'resultGraphicDisabled' | 'searchAllDisabled' | 'searchTerm' | 'sources' | 'suggestionsDisabled'>>, StencilJsx.HTMLAttributes<HTMLArcgisSearchElement> {
|
|
373
373
|
onArcgisPropertyChange?: EventHandler<HTMLArcgisSearchElement["arcgisPropertyChange"]>;
|
|
374
374
|
onArcgisReady?: EventHandler<HTMLArcgisSearchElement["arcgisReady"]>;
|
|
375
375
|
onArcgisSearchClear?: EventHandler<HTMLArcgisSearchElement["arcgisSearchClear"]>;
|
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.149",
|
|
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.149",
|
|
46
|
+
"@arcgis/lumina": "4.33.0-next.149",
|
|
47
47
|
"tslib": "^2.8.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
package/dist/cdn/35M2UN2R.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.148 */
|
|
4
|
-
import{b as g}from"./6JOCMC2K.js";import{a as d}from"./QUMQSMTI.js";import e from"./HYC3NN7N.js";import{a as b}from"./LG2MT572.js";import{a as x}from"./IL4DIA6O.js";import c from"./INESEGID.js";import a from"./ZZROATGD.js";import{e as C}from"./2QJUWLTZ.js";import"./WY4VHPSG.js";import"./WU2AZ2PC.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"./FR5NBYJN.js";export default $arcgis.t(([E,{isAbortError:A},{substitute:T},{watch:I},,{a:a},R])=>{var h="arcgis-search",u={base:h,autocomplete:`${h}__autocomplete`,dropdown:`${h}__dropdown`,container:`${h}__container`,form:`${h}__form`},N=_`@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}}`,D=R(E),p=class extends M{constructor(){super(...arguments),this.viewModel=D(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=b({}),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.autoSelect=this.viewModel.autoSelect,this.defaultSources=this.viewModel.defaultSources,this.disabled=!1,this.includeDefaultSources=this.viewModel.includeDefaultSources,this.locationEnabled=this.viewModel.locationEnabled,this.maxResults=this.viewModel.maxResults,this.maxSuggestions=this.viewModel.maxSuggestions,this.minSuggestCharacters=this.viewModel.minSuggestCharacters,this.popupEnabled=this.viewModel.popupEnabled,this.popupTemplate=this.viewModel.popupTemplate,this.portal=this.viewModel.portal,this.resultGraphic=this.viewModel.resultGraphic,this.resultGraphicEnabled=this.viewModel.resultGraphicEnabled,this.results=this.viewModel.results,this.searchAllEnabled=this.viewModel.searchAllEnabled,this.searchTerm=this.viewModel.searchTerm,this.selectedResult=this.viewModel.selectedResult,this.sources=this.viewModel.sources,this.suggestions=this.viewModel.suggestions,this.suggestionsEnabled=this.viewModel.suggestionsEnabled,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=C()("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,autoSelect:5,defaultSources:0,disabled:5,includeDefaultSources:5,locationEnabled:5,maxResults:9,maxSuggestions:9,minSuggestCharacters:9,popupEnabled:5,popupTemplate:0,portal:0,resultGraphic:0,resultGraphicEnabled:5,results:0,searchAllEnabled:5,searchTerm:1,selectedResult:0,sources:0,suggestions:0,suggestionsEnabled:5,autoDestroyDisabled:5,messageOverrides:0,label:1,state:3}}static{this.styles=N}static{this.shadowRootOptions=S}get _isDisabled(){let{state:e}=this.viewModel;return e==="disabled"||e==="loading"||this.disabled}get _showCurrentLocation(){return this.locationEnabled&&!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(()=>I(()=>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){A(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?T(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)
|