@vertigis/arcgis-extensions 46.1.0 → 47.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/tasks_query_ArcGISServiceTableQueryProvider.ArcGISServiceTableQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_ArcGISSublayerQueryProvider.ArcGISSublayerQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_BuildingComponentSublayerClientSideQueryProvider.BuildingComponentSublayerClientSideQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_CSVLayerClientSideQueryProvider.CSVLayerClientSideQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_ClientSideQueryProvider.ClientSideQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_FeatureLayerQueryProvider.FeatureLayerQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_GeoJSONLayerClientSideQueryProvider.GeoJSONLayerClientSideQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_GeoRSSLayerQueryProvider.GeoRSSLayerQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_GraphicsLayerQueryProvider.GraphicsLayerQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_ImageryLayerQueryProvider.ImageryLayerQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_KMLLayerQueryProvider.KMLLayerQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_MapNotesSublayerQueryProvider.MapNotesSublayerQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_QueryError.QueryError.html +12 -8
- package/docs/html/classes/tasks_query_QueryProviderBase.QueryProviderBase.html +9 -2
- package/docs/html/classes/tasks_query_QueryService.QueryService.html +5 -2
- package/docs/html/classes/tasks_query_RouteLayerQueryProvider.RouteLayerQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_SceneLayerClientSideQueryProvider.SceneLayerClientSideQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_SceneLayerQueryProvider.SceneLayerQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_StreamLayerClientSideQueryProvider.StreamLayerClientSideQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_SubtypeSublayerQueryProvider.SubtypeSublayerQueryProvider.html +10 -3
- package/docs/html/classes/tasks_query_WFSLayerQueryProvider.WFSLayerQueryProvider.html +10 -3
- package/docs/html/classes/tasks_search_SearchError.SearchError.html +2 -2
- package/docs/html/classes/tasks_search_SearchProviderBase.SearchProviderBase.html +1 -1
- package/docs/html/classes/tasks_search_SubtypeSublayerQuerySearchProvider.SubtypeSublayerQuerySearchProvider.html +52 -0
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/interfaces/tasks_query_QueryProvider.QueryProvider.html +1 -1
- package/docs/html/interfaces/tasks_query_QueryService.QueryDefinition.html +8 -0
- package/docs/html/interfaces/{tasks_search_QuerySearchProvider.ExpandSearchAreaResult.html → tasks_search_support__querySearchProviderUtils.ExpandSearchAreaResult.html} +3 -3
- package/docs/html/modules/tasks_query_QueryService.html +1 -0
- package/docs/html/modules/tasks_search_QuerySearchProvider.html +0 -1
- package/docs/html/modules/tasks_search_SubtypeSublayerQuerySearchProvider.html +2 -0
- package/docs/html/modules/tasks_search_support__querySearchProviderUtils.html +2 -0
- package/docs/html/variables/version.version.html +1 -1
- package/package.json +1 -1
- package/tasks/query/QueryError.d.ts +15 -7
- package/tasks/query/QueryError.js +1 -1
- package/tasks/query/QueryOptions.js +1 -1
- package/tasks/query/QueryProvider.d.ts +1 -1
- package/tasks/query/QueryProviderBase.d.ts +11 -1
- package/tasks/query/QueryProviderBase.js +1 -1
- package/tasks/query/QueryService.d.ts +25 -1
- package/tasks/query/QueryService.js +1 -1
- package/tasks/query/SubtypeSublayerQueryProvider.d.ts +4 -1
- package/tasks/query/SubtypeSublayerQueryProvider.js +1 -1
- package/tasks/search/QuerySearchProvider.d.ts +0 -19
- package/tasks/search/QuerySearchProvider.js +1 -1
- package/tasks/search/SearchError.d.ts +3 -2
- package/tasks/search/SearchError.js +1 -1
- package/tasks/search/SearchService.js +1 -1
- package/tasks/search/SubtypeSublayerQuerySearchProvider.d.ts +25 -0
- package/tasks/search/SubtypeSublayerQuerySearchProvider.js +1 -0
- package/tasks/search/support/_querySearchProviderUtils.d.ts +14 -0
- package/tasks/search/support/_querySearchProviderUtils.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>tasks/search/support/_querySearchProviderUtils | @vertigis/arcgis-extensions</title><meta name="description" content="Documentation for @vertigis/arcgis-extensions"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@vertigis/arcgis-extensions</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">@vertigis/arcgis-extensions</a></li><li><a href="tasks_search_support__querySearchProviderUtils.html">tasks/search/support/_querySearchProviderUtils</a></li></ul><h1>Module tasks/search/support/_querySearchProviderUtils</h1></div><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><h3 class="tsd-index-heading uppercase">Index</h3><section class="tsd-index-section"><h3 class="tsd-index-heading">Interfaces</h3><div class="tsd-index-list"><a href="../interfaces/tasks_search_support__querySearchProviderUtils.ExpandSearchAreaResult.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Expand<wbr/>Search<wbr/>Area<wbr/>Result</span></a>
|
|
2
|
+
</div></section></section></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1"></use></svg><span>@vertigis/arcgis-extensions</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li><a href="AccessDeniedError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>AccessDeniedError</a></li><li><a href="ArgumentError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>ArgumentError</a></li><li><a href="ArgumentMissingError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>ArgumentMissingError</a></li><li><a href="ArgumentOutOfRangeError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>ArgumentOutOfRangeError</a></li><li><a href="Entity.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>Entity</a></li><li><a href="ErrorBase.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>ErrorBase</a></li><li><a href="FailureMode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>FailureMode</a></li><li><a href="Hyperlink.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>Hyperlink</a></li><li><a href="InvalidOperationError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>InvalidOperationError</a></li><li><a href="ItemType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>ItemType</a></li><li><a href="LanguageResources.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>LanguageResources</a></li><li><a href="NotFoundError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>NotFoundError</a></li><li><a href="PortalUri.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>PortalUri</a></li><li><a href="config.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>config</a></li><details class="tsd-index-accordion" data-key="data"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg><span>data</span></summary><div class="tsd-accordion-details"><ul class="tsd-nested-navigation"><li><a href="data_ArcGISServiceTableExtension.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>ArcGISServiceTableExtension</a></li><li><a href="data_Attachment.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>Attachment</a></li><li><a href="data_Capabilities.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>Capabilities</a></li><li><a href="data_Feature.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>Feature</a></li><li><a href="data_FeatureList.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>FeatureList</a></li><li><a href="data_FeatureSaveError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>FeatureSaveError</a></li></ul></div></details><li>Loading...</li></ul></nav></div></div></div><div class="overlay"></div><svg style="display: none"><g id="icon-1"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-2"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g><g id="icon-16"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)"></path></g><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g><g id="icon-512"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-1024"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-2048"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4096"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-8192"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-16384"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-32768"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-65536"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-131072"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-262144"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-524288"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-1048576"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-2097152"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)"></path></g><g id="icon-chevronDown"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></g><g id="icon-chevronSmall"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></g><g id="icon-menu"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></g><g id="icon-search"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></g><g id="icon-anchor"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g></svg></body></html>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>version | @vertigis/arcgis-extensions</title><meta name="description" content="Documentation for @vertigis/arcgis-extensions"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@vertigis/arcgis-extensions</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">@vertigis/arcgis-extensions</a></li><li><a href="../modules/version.html">version</a></li><li><a href="version.version.html">version</a></li></ul><h1>Variable version<code class="tsd-tag ts-flagConst">Const</code> </h1></div><div class="tsd-signature"><span class="tsd-kind-variable">version</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>version | @vertigis/arcgis-extensions</title><meta name="description" content="Documentation for @vertigis/arcgis-extensions"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@vertigis/arcgis-extensions</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">@vertigis/arcgis-extensions</a></li><li><a href="../modules/version.html">version</a></li><li><a href="version.version.html">version</a></li></ul><h1>Variable version<code class="tsd-tag ts-flagConst">Const</code> </h1></div><div class="tsd-signature"><span class="tsd-kind-variable">version</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"47.0.0"</span><span class="tsd-signature-symbol"> = "47.0.0"</span></div><div class="tsd-comment tsd-typography"><p>The current version of the Geocortex ArcGIS Extensions API.</p>
|
|
2
2
|
</div><div class="tsd-comment tsd-typography"></div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1"></use></svg><span>@vertigis/arcgis-extensions</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li><a href="../modules/AccessDeniedError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>AccessDeniedError</a></li><li><a href="../modules/ArgumentError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>ArgumentError</a></li><li><a href="../modules/ArgumentMissingError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>ArgumentMissingError</a></li><li><a href="../modules/ArgumentOutOfRangeError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>ArgumentOutOfRangeError</a></li><li><a href="../modules/Entity.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>Entity</a></li><li><a href="../modules/ErrorBase.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>ErrorBase</a></li><li><a href="../modules/FailureMode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>FailureMode</a></li><li><a href="../modules/Hyperlink.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>Hyperlink</a></li><li><a href="../modules/InvalidOperationError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>InvalidOperationError</a></li><li><a href="../modules/ItemType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>ItemType</a></li><li><a href="../modules/LanguageResources.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>LanguageResources</a></li><li><a href="../modules/NotFoundError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>NotFoundError</a></li><li><a href="../modules/PortalUri.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>PortalUri</a></li><li><a href="../modules/config.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>config</a></li><details class="tsd-index-accordion" data-key="data"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg><span>data</span></summary><div class="tsd-accordion-details"><ul class="tsd-nested-navigation"><li><a href="../modules/data_ArcGISServiceTableExtension.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>ArcGISServiceTableExtension</a></li><li><a href="../modules/data_Attachment.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>Attachment</a></li><li><a href="../modules/data_Capabilities.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>Capabilities</a></li><li><a href="../modules/data_Feature.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>Feature</a></li><li><a href="../modules/data_FeatureList.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>FeatureList</a></li><li><a href="../modules/data_FeatureSaveError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg>FeatureSaveError</a></li></ul></div></details><li>Loading...</li></ul></nav></div></div></div><div class="overlay"></div><svg style="display: none"><g id="icon-1"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-2"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g><g id="icon-16"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)"></path></g><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g><g id="icon-512"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-1024"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-2048"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4096"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-8192"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-16384"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-32768"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-65536"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-131072"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-262144"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-524288"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-1048576"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-2097152"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)"></path></g><g id="icon-chevronDown"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></g><g id="icon-chevronSmall"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></g><g id="icon-menu"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></g><g id="icon-search"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></g><g id="icon-anchor"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g></svg></body></html>
|
package/package.json
CHANGED
|
@@ -4,20 +4,28 @@ import type { FeatureSource } from "../../data/FeatureSource.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class QueryError extends Error {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Maps individual feature sources to an error that occurred for that
|
|
8
|
+
* source.
|
|
8
9
|
*/
|
|
9
|
-
readonly
|
|
10
|
+
readonly errors: Map<FeatureSource, Error>;
|
|
10
11
|
/**
|
|
11
|
-
* The
|
|
12
|
+
* The first source in `errors`.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated Use `errors` to get all sources with errors.
|
|
15
|
+
*/
|
|
16
|
+
get source(): FeatureSource;
|
|
17
|
+
/**
|
|
18
|
+
* The first error in `errors`.
|
|
19
|
+
*
|
|
20
|
+
* @deprecated Use `errors` to get all errors.
|
|
12
21
|
*/
|
|
13
|
-
|
|
22
|
+
get error(): Error;
|
|
14
23
|
/**
|
|
15
24
|
* Initializes a new instance of the {@link QueryError} class.
|
|
16
25
|
*
|
|
17
|
-
* @param
|
|
18
|
-
* @param error The original error.
|
|
26
|
+
* @param errors A mapping of feature sources to errors.
|
|
19
27
|
* @param message An optional error message.
|
|
20
28
|
* @param args Values for placeholders in the error message.
|
|
21
29
|
*/
|
|
22
|
-
constructor(
|
|
30
|
+
constructor(errors: Iterable<[FeatureSource | FeatureSource[], Error] | QueryError>, message?: string, ...args: unknown[]);
|
|
23
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{getLogger as r}from"../../utilities/log.js";import{format as e}from"../../utilities/string.js";const s=r("QueryError");export class QueryError extends Error{errors;get source(){return s.error("`source` is deprecated. Use `errors` instead."),this.errors.keys().next().value}get error(){return s.error("`error` is deprecated. Use `errors` instead."),this.errors.values().next().value}constructor(r,s,...o){super(s&&e(s,...o)||"One or more sources could not be queried."),this.name="QueryError",this.errors=new Map;for(const e of r){if("errors"in e){for(const[r,s]of e.errors)this.errors.set(r,s);continue}const[r,s]=e;if(Array.isArray(r))for(const e of r)this.errors.set(e,s);else this.errors.set(r,s)}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export var QueryOptions;!function(
|
|
1
|
+
import{equals as e}from"@arcgis/core/geometry/geometryEngineAsync.js";import{caseInsensitiveEquals as t}from"../../utilities/string.js";export var QueryOptions;!function(l){l.DEFAULTS={returnGeometry:!0,outFields:["*"]},l.fromFeatureSource=function(e){return{outFields:e.featureSettings.outFields,returnGeometry:e.featureSettings.returnGeometry,outSpatialReference:e.featureSettings.outSpatialReference,maxAllowableOffset:e.featureSettings.maxAllowableOffset}},l.areSameOptions=async function(l,u){return l===u||l.cancelToken===u.cancelToken&&(l.returnGeometry===u.returnGeometry&&l.maxAllowableOffset===u.maxAllowableOffset&&l.maxResults===u.maxResults&&(!(null==l.outSpatialReference&&null!=u.outSpatialReference||null!=l.outSpatialReference&&null==u.outSpatialReference)&&(!(null!=l.outSpatialReference&&null!=u.outSpatialReference&&!l.outSpatialReference.equals(u.outSpatialReference))&&(!(null==l.outFields&&null!=u.outFields||null!=l.outFields&&null==u.outFields)&&(!!(null==l.outFields||null==u.outFields||l.outFields.length===u.outFields.length&&l.outFields.every((e=>u.outFields.some((l=>t(e,l))))))&&(!(null==l.spatialFilter&&null!=u.spatialFilter||null!=l.spatialFilter&&null==u.spatialFilter)&&!(null!=l.spatialFilter&&null!=u.spatialFilter&&!await e(l.spatialFilter,u.spatialFilter))))))))}}(QueryOptions||(QueryOptions={}));
|
|
@@ -22,7 +22,7 @@ export interface QueryProvider {
|
|
|
22
22
|
* @param where An SQL expression to match against, e.g. "lastName='Smith'".
|
|
23
23
|
* @param options Additional options that affect the query.
|
|
24
24
|
*/
|
|
25
|
-
query(source: FeatureSource, where: string, options?: QueryOptions): AsyncIterable<Feature>;
|
|
25
|
+
query(source: FeatureSource | FeatureSource[], where: string, options?: QueryOptions): AsyncIterable<Feature>;
|
|
26
26
|
/**
|
|
27
27
|
* Queries a given feature source for a count of features that match the
|
|
28
28
|
* query criteria.
|
|
@@ -14,11 +14,21 @@ export declare abstract class QueryProviderBase implements QueryProvider {
|
|
|
14
14
|
/**
|
|
15
15
|
* @inheritDoc
|
|
16
16
|
*/
|
|
17
|
-
query(source: FeatureSource, where: string, options?: QueryOptions): AsyncIterable<Feature>;
|
|
17
|
+
query(source: FeatureSource | FeatureSource[], where: string, options?: QueryOptions): AsyncIterable<Feature>;
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
|
21
21
|
count(source: FeatureSource, where: string, options?: QueryOptions): Promise<CountResult>;
|
|
22
|
+
/**
|
|
23
|
+
* Invoked to perform the work for {@link query}. Default implementation
|
|
24
|
+
* calls {@link _query} for each source. Derived classes can override this
|
|
25
|
+
* method to implement special handling for multiple sources.
|
|
26
|
+
*
|
|
27
|
+
* @param sources The sources to identify.
|
|
28
|
+
* @param where An SQL expression to match against, e.g. "lastName='Smith'".
|
|
29
|
+
* @param options Additional options that affect the query.
|
|
30
|
+
*/
|
|
31
|
+
protected _queryMany(sources: FeatureSource[], where: string, options?: QueryOptions): AsyncIterable<Feature>;
|
|
22
32
|
/**
|
|
23
33
|
* Invoked to perform the actual work for {@link query}. Derived classes
|
|
24
34
|
* should override this method rather than query().
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{InvalidOperationError as r}from"../../InvalidOperationError.js";import{checkArg as i}from"../../utilities/checkArg.js";import{QueryOptions as
|
|
1
|
+
import{InvalidOperationError as r}from"../../InvalidOperationError.js";import{isCancellation as e}from"../../support/utilities.js";import{AsyncQueue as t}from"../../utilities/asyncIterable.js";import{checkArg as i}from"../../utilities/checkArg.js";import{parallelEach as o}from"../../utilities/promise.js";import{QueryError as s}from"./QueryError.js";import{QueryOptions as n}from"./QueryOptions.js";export class QueryProviderBase{query(e,t,s){i("source",e).isNotMissing().isNotEmpty(),i("where",t).isNotMissing();const n=Array.isArray(e)?e:[e];if(!n.every((r=>this.isSupported(r))))throw new r("Unsupported feature source.");const u=this;return async function*(){await o(n,(r=>r.initialize())),yield*u._queryMany(n,t,s)}()}async count(e,t,o){if(i("source",e).isNotMissing(),i("where",t).isNotMissing(),!this.isSupported(e))throw new r("Unsupported feature source.");await e.initialize();const s={returnGeometry:!1,outFields:void 0};return this._count(e,t,{...n.fromFeatureSource(e),...o,...s})}_queryMany(r,i,o){const u=new t;if(0===r.length)return u.done(),u;let a=0;const c=new Map;for(const t of r)(async()=>{if(u.isDone)return;const f={...n.DEFAULTS,...n.fromFeatureSource(t),...o};try{for await(const r of this._query(t,i,f)){if(u.isDone)return;u.add(r)}}catch(r){if(e(r))return void u.reject(r);c.set(t,r)}finally{++a===r.length&&(0===c.size?u.done():u.reject(new s(c)))}})();return u}}
|
|
@@ -5,6 +5,23 @@ import { InitializableBase } from "../../support/InitializableBase.js";
|
|
|
5
5
|
import type { CountResult } from "../CountResult.js";
|
|
6
6
|
import { QueryOptions } from "./QueryOptions.js";
|
|
7
7
|
import type { QueryProvider } from "./QueryProvider.js";
|
|
8
|
+
/**
|
|
9
|
+
* Defines the parameters necessary to perform a query.
|
|
10
|
+
*/
|
|
11
|
+
export interface QueryDefinition {
|
|
12
|
+
/**
|
|
13
|
+
* The source to query.
|
|
14
|
+
*/
|
|
15
|
+
source: FeatureSource;
|
|
16
|
+
/**
|
|
17
|
+
* An SQL expression to match against, e.g. "lastName='Smith'".
|
|
18
|
+
*/
|
|
19
|
+
where: string;
|
|
20
|
+
/**
|
|
21
|
+
* Additional options that affect the query.
|
|
22
|
+
*/
|
|
23
|
+
options?: QueryOptions;
|
|
24
|
+
}
|
|
8
25
|
/**
|
|
9
26
|
* Allows querying for features by SQL expression.
|
|
10
27
|
*/
|
|
@@ -25,11 +42,18 @@ export declare class QueryService extends InitializableBase {
|
|
|
25
42
|
* @param source The source to check.
|
|
26
43
|
*/
|
|
27
44
|
isSupported(source: FeatureSource): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Queries the given feature sources provided in the query definitions for
|
|
47
|
+
* features that match the query criteria.
|
|
48
|
+
*
|
|
49
|
+
* @param queries The queries to perform.
|
|
50
|
+
*/
|
|
51
|
+
query(queries: QueryDefinition[]): AsyncIterable<Feature>;
|
|
28
52
|
/**
|
|
29
53
|
* Queries a given feature source for features that match the query
|
|
30
54
|
* criteria.
|
|
31
55
|
*
|
|
32
|
-
* @param source The source to
|
|
56
|
+
* @param source The source to query.
|
|
33
57
|
* @param where An SQL expression to match against, e.g. "lastName='Smith'".
|
|
34
58
|
* @param options Additional options that affect the query.
|
|
35
59
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__decorate as e}from"tslib";import r from"@arcgis/core/core/Collection";import{InvalidOperationError as i}from"../../InvalidOperationError.js";import{InitializableBase as
|
|
1
|
+
import{__decorate as e}from"tslib";import r from"@arcgis/core/core/Collection";import{InvalidOperationError as i}from"../../InvalidOperationError.js";import{InitializableBase as o}from"../../support/InitializableBase.js";import{serializable as t}from"../../support/Serializable.js";import{isCancellation as s}from"../../support/utilities.js";import{groupBy as n}from"../../utilities/array.js";import{AsyncQueue as a}from"../../utilities/asyncIterable.js";import{checkArg as d}from"../../utilities/checkArg.js";import{parallelEach as u,reduce as p}from"../../utilities/promise.js";import{QueryError as c}from"./QueryError.js";import{QueryOptions as y}from"./QueryOptions.js";let l=class extends o{providers=new r;isSupported(e){return!!this.providers.find((r=>r.isSupported(e)))}query(e,r,o){d("source",e).isNotMissing().isNotEmpty(),d("where",r).isNotEmpty();const t=new a,l=Array.isArray(e)?e:[{source:e,where:r,options:o}],f=[];let h=0;const v=(e,r)=>{r&&0!==e.length&&(h++,(async()=>{if(t.isDone)return;const i=await p(e,(async(e,r)=>{const i={...y.DEFAULTS,...y.fromFeatureSource(r.source),...r.options};if(e.has(r.where)){const o=e.get(r.where);let t=!1;for(const{sources:e,options:s}of o)if(await y.areSameOptions(i,s)){e.push(r.source),t=!0;break}t||o.push({sources:[r.source],options:i})}else e.set(r.where,[{sources:[r.source],options:i}]);return e}),new Map);if(t.isDone)return;await u(e,(e=>e.source.initialize()));const o=[];for(const[e,n]of i){if(t.isDone)return;for(const i of n)o.push((async()=>{if(!t.isDone)try{const o=r.query(i.sources,e,i.options);for await(const e of o){if(t.isDone)return;i.options.outSpatialReference&&(e.schema.spatialReference=i.options.outSpatialReference),t.add(e)}}catch(e){s(e)?t.reject(e):e instanceof c?f.push(e):f.push([i.sources,e])}})())}await Promise.all(o),t.done(),0==--h&&(f.length?t.reject(new c(f)):t.done())})())};return(async()=>{await this.initialize(),n(l,(e=>this.providers.find((r=>r.isSupported(e.source))))).forEach(v),0===h&&t.reject(new i("Unable to query: no provider registered for this type of feature source."))})(),t}async count(e,r,o){d("source",e).isNotMissing(),d("where",r).isNotMissing(),await this.initialize();const t=this.providers.find((r=>r.isSupported(e)));if(!t)throw new i("Unable to query: no provider registered for this type of feature source.");try{await e.initialize();const i={returnGeometry:!1,outFields:void 0};return await t.count(e,r,{...y.fromFeatureSource(e),...o,...i})}catch(r){throw s(r)?r:new c([[e,r]])}}async _onInitialize(){await super._onInitialize();const{ArcGISServiceTableQueryProvider:e,ArcGISSublayerQueryProvider:r,BuildingComponentSublayerClientSideQueryProvider:i,CSVLayerClientSideQueryProvider:o,FeatureLayerQueryProvider:t,GeoJSONLayerClientSideQueryProvider:s,GeoRSSLayerQueryProvider:n,ImageryLayerQueryProvider:a,KMLLayerQueryProvider:d,MapNotesSublayerQueryProvider:u,RouteLayerQueryProvider:p,SceneLayerClientSideQueryProvider:c,SceneLayerQueryProvider:y,StreamLayerClientSideQueryProvider:l,SubtypeSublayerQueryProvider:f,WFSLayerQueryProvider:h}=await import("./defaultProviders.js");this.providers.add(new e),this.providers.add(new r),this.providers.add(new o),this.providers.add(new t),this.providers.add(new s),this.providers.add(new n),this.providers.add(new a),this.providers.add(new d),this.providers.add(new i),this.providers.add(new c),this.providers.add(new y),this.providers.add(new l),this.providers.add(new f),this.providers.add(new p),this.providers.add(new u),this.providers.add(new h)}};l=e([t],l);export{l as QueryService};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Feature } from "../../data/Feature.js";
|
|
2
2
|
import type { FeatureSource } from "../../data/FeatureSource.js";
|
|
3
3
|
import type { CountResult } from "../CountResult.js";
|
|
4
|
-
import
|
|
4
|
+
import { QueryOptions } from "./QueryOptions.js";
|
|
5
5
|
import { QueryProviderBase } from "./QueryProviderBase.js";
|
|
6
6
|
/**
|
|
7
7
|
* A query provider for feature layers.
|
|
@@ -15,8 +15,11 @@ export declare class SubtypeSublayerQueryProvider extends QueryProviderBase {
|
|
|
15
15
|
* @inheritDoc
|
|
16
16
|
*/
|
|
17
17
|
protected _query(source: FeatureSource, where: string, options: QueryOptions): AsyncIterable<Feature>;
|
|
18
|
+
protected _queryMany(sources: FeatureSource[], where: string, options?: QueryOptions): AsyncIterable<Feature>;
|
|
18
19
|
/**
|
|
19
20
|
* @inheritDoc
|
|
20
21
|
*/
|
|
21
22
|
protected _count(source: FeatureSource, where: string, options: QueryOptions): Promise<CountResult>;
|
|
23
|
+
private _createQuery;
|
|
24
|
+
private _createBasicQuery;
|
|
22
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{executeQuery as e,executeCount as
|
|
1
|
+
import{executeQuery as e,executeCount as t,concatenateWhereClauses as r,constrainQueryTimeExtentToView as s}from"../../support/_query.js";import{isSubtypeSublayer as o}from"../../utilities/_layers.js";import{AsyncQueue as u}from"../../utilities/asyncIterable.js";import{removeZValues as i}from"../../utilities/geometry.js";import{caseInsensitiveEquals as a}from"../../utilities/string.js";import{QueryOptions as l}from"./QueryOptions.js";import{QueryProviderBase as n}from"./QueryProviderBase.js";export class SubtypeSublayerQueryProvider extends n{isSupported(e){const{sublayer:t}=e;return o(t)&&t.layer&&e.layerExtension?.capabilities.supportsQuery}_query(t,s,o){const{sublayer:u}=t,i=this._createQuery(u.layer,o,o.outFields??t.featureSettings.outFields);return i.where=r(`${u.layer.subtypeField}=${u.subtypeCode}`,s),e(i,t,u.layer,o.cancelToken)}_queryMany(t,o,i){if(1===t.length){const e={...l.DEFAULTS,...l.fromFeatureSource(t[0]),...i};return this._query(t[0],o,e)}const n=new u,y=t.length;let c=0;const p=t.reduce(((e,t)=>{const r=t,s={...l.DEFAULTS,...l.fromFeatureSource(r),...i},o=s.outFields??r.featureSettings.outFields;if(e.has(r.sublayer.layer)){const t=e.get(r.sublayer.layer);let i=!1;for(const{sources:e,queryOptions:l,outFields:y}of t)if(n=s,(u=l).returnGeometry===n.returnGeometry&&(u.outSpatialReference===n.outSpatialReference||u.outSpatialReference?.equals(n.outSpatialReference))&&u.maxAllowableOffset===n.maxAllowableOffset&&o.length===y.length&&o.every((e=>y.some((t=>a(e,t)))))){e.push(r),i=!0;break}i||t.push({sources:[r],queryOptions:s,outFields:o})}else e.set(r.sublayer.layer,[{sources:[r],queryOptions:s,outFields:o}]);var u,n;return e}),new Map);for(const[t,u]of p)for(const{sources:i,queryOptions:l,outFields:p}of u)(async()=>{if(n.isDone)return;const u=new Map,f=[];for(const e of i)u.set(e.sublayer.subtypeCode,e),f.push(e.sublayer.subtypeCode);const d=this._createQuery(t,l,p);let b=!1;d.outFields.some((e=>"*"===e||a(e,t.subtypeField)))||(b=!0,d.outFields=[...d.outFields,t.subtypeField]),d.where=r(`${t.subtypeField} IN (${f.join(",")})`,o),s(d,i[0]);try{for await(const r of e(d,(e=>{if(null!=e.attributes){const r=e.attributes;let s=r[t.subtypeField];if(void 0===s){s=r[Object.keys(r).find((e=>a(e,t.subtypeField)))]}return u.get(s)}}),t,l.cancelToken)){if(n.isDone)return;b&&r.attributes.delete(t.subtypeField),n.add(r)}}catch(e){n.reject(e)}finally{c+=i.length,c===y&&n.done()}})();return n}_count(e,s,o){const{sublayer:u}=e,i=this._createBasicQuery(u.layer,o,o.outFields??e.featureSettings.outFields);return i.where=r(`${u.layer.subtypeField}=${u.subtypeCode}`,s),t(i,e,u.layer,o.cancelToken)}_createQuery(e,t,r){const s=this._createBasicQuery(e,t,r);return s.outSpatialReference=t.outSpatialReference,s.maxAllowableOffset=t.maxAllowableOffset,s.returnZ=e.hasZ,s}_createBasicQuery(e,t,r){const s=e.createQuery();s.outFields=r,s.returnGeometry=t.returnGeometry;let o=t.spatialFilter;return o&&(s.spatialRelationship="intersects",!o||e.hasZ&&e.capabilities?.data?.supportsZ||(o=i(o.clone())),s.geometry=o),e.capabilities.query.supportsPagination&&(s.num=t.maxResults),s}}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type Geometry from "@arcgis/core/geometry/Geometry.js";
|
|
2
1
|
import type { Feature } from "../../data/Feature.js";
|
|
3
2
|
import type { FeatureSource } from "../../data/FeatureSource.js";
|
|
4
3
|
import type { CountResult } from "../CountResult.js";
|
|
@@ -14,10 +13,6 @@ export declare class QuerySearchProvider extends SearchProviderBase {
|
|
|
14
13
|
* The query service that will be used to perform the search.
|
|
15
14
|
*/
|
|
16
15
|
queryService: QueryService;
|
|
17
|
-
/**
|
|
18
|
-
* Regex to capture spaces and dashes.
|
|
19
|
-
*/
|
|
20
|
-
private readonly separatorRegex;
|
|
21
16
|
/**
|
|
22
17
|
* Regex to capture quoted search terms.
|
|
23
18
|
*/
|
|
@@ -45,18 +40,4 @@ export declare class QuerySearchProvider extends SearchProviderBase {
|
|
|
45
40
|
* @inheritDoc
|
|
46
41
|
*/
|
|
47
42
|
protected _suggest(_source: FeatureSource, _searchText: string, _options: SearchOptions): Promise<SearchSuggestion[]>;
|
|
48
|
-
private _expandSearchArea;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* The expanded search area and scale.
|
|
52
|
-
*/
|
|
53
|
-
export interface ExpandSearchAreaResult {
|
|
54
|
-
/**
|
|
55
|
-
* The new expanded geometry.
|
|
56
|
-
*/
|
|
57
|
-
geometry?: Geometry;
|
|
58
|
-
/**
|
|
59
|
-
* The new scale for the returned geometry.
|
|
60
|
-
*/
|
|
61
|
-
scale?: number;
|
|
62
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{SCORE_FIELD as e,SCORE_FIELD_ORIGINAL as t}from"../../data/Feature.js";import{AsyncQueue as r}from"../../utilities/asyncIterable.js";import{map as s}from"../../utilities/promise.js";import{QueryService as a}from"../query/QueryService.js";import{SearchError as i}from"./SearchError.js";import{SearchOptions as o}from"./SearchOptions.js";import{SearchProviderBase as n}from"./SearchProviderBase.js";import{getSearchableValue as c}from"./_utilities.js";import{expandSearchArea as u,getSearchableFields as l,getWhereClause as m,initializeElasticlunrIndex as f,normalizeScores as p,separatorRegex as h}from"./support/_querySearchProviderUtils.js";export class QuerySearchProvider extends n{queryService=new a;quotedTermsRegex=/(?:"(.*?)")|(?:“(.*?)”)|(?:«(.*?)»)|(?:„(.*?)”)|(?:„(.*?)“)|(?:»(.*?)«)/g;isSupported(e){return this.queryService.isSupported(e)}getSearchTerms(e,t){const r=e.match(this.quotedTermsRegex),s=t(e.replace(this.quotedTermsRegex,""));return r?s.concat(r.map((e=>e.replace(/"|“|”|«|»|„/g,"")))):s}_search(s,a,n){const S=new r,x=new Map,d="__id";let g=0;const y=f(h),R=new i([]);return s.forEach((r=>{(async()=>{try{const{index:s,tokenizer:i}=await y;s.setRef(d);const f={...o.DEFAULTS,...o.fromFeatureSource(r),spatialFilter:n?.initialSearchArea,tokenizeSearchString:!0,...n},h=f.tokenizeSearchString?s.pipeline.run(this.getSearchTerms(a,i)):[a],g=l(r),R=m(r,h,g,f);if(!h.length||!g.length||!R)return;let{maxResults:w}=f;null!=f.maxQueryResults&&null!=f.maxResults&&(w=Math.max(f.maxQueryResults,f.maxResults));const F={...f,maxResults:w};let b=0,k=F.currentScale;const j=new Map,q=r.getFullExtent();for(const e of g)s.addField(e.name.toLowerCase());for(;;){if(S.isDone)return;const i=this.queryService.query(r,R,F),o=new Map;for await(const e of i){if(S.isDone)return;const t={};for(const r of g)t[r.name.toLowerCase()]=c(e,r);const a=`${r.id}-${e.primaryKey}`;t[d]=a,s.addDoc(t),o.set(a,e),x.set(a,e)}const n=s.search(a,{expand:!0});p(n);for(const r of n){const s=x.get(r.ref);if(s&&(s.attributes.set(e,r.score),s.attributes.set(t,r.score),o.has(r.ref)&&!j.has(r.ref)&&(j.set(r.ref,s),o.delete(r.ref),S.add(s),b++)),null!=f.maxResults&&b>=f.maxResults)break}for(const[r,s]of o){if(null!=f.maxResults&&b>=f.maxResults)break;s.attributes.set(e,50),s.attributes.set(t,50),j.has(r)||(j.set(r,s),S.add(s),b++)}if(null!=f.maxResults&&b>=f.maxResults)break;const{scale:l,geometry:m}=await u(F.spatialFilter?.extent,q,k,0===b?3:1);if(!m)break;F.spatialFilter=m,k=l}}catch(e){R.errors.set(r,e)}finally{++g===s.length&&(0===R.errors.size?S.done():S.reject(R))}})()})),S}async _count(e,t,r){return s(e,(async e=>{const{index:s,tokenizer:a}=await f(h),i={...o.fromFeatureSource(e),tokenizeSearchString:!0,...r,spatialFilter:r?.initialSearchArea,returnGeometry:!1},n=i.tokenizeSearchString?s.pipeline.run(this.getSearchTerms(t,a)):[t],c=l(e);if(!n.length||!c.length)return{source:e,count:0};const p=m(e,n,c,i);let S=i.currentScale;const x=e.getFullExtent();let d;for(;;){if(d=await this.queryService.count(e,p,i),d.count>=(i.maxResults??Number.MAX_SAFE_INTEGER))break;const{scale:t,geometry:r}=await u(i.spatialFilter?.extent,x,S,0===d.count?3:1);if(!r)break;i.spatialFilter=r.extent,S=t}return d}))}async _suggest(e,t,r){return[]}}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { FeatureSource } from "../../data/FeatureSource.js";
|
|
2
|
+
import type { QueryError } from "../query/QueryError.js";
|
|
2
3
|
/**
|
|
3
4
|
* An error that is thrown when a search operation fails for one or more feature
|
|
4
5
|
* sources.
|
|
@@ -8,7 +9,7 @@ export declare class SearchError extends Error {
|
|
|
8
9
|
* Maps individual feature sources to an error that occurred for that
|
|
9
10
|
* source.
|
|
10
11
|
*/
|
|
11
|
-
readonly errors: Map<FeatureSource
|
|
12
|
+
readonly errors: Map<FeatureSource, Error>;
|
|
12
13
|
/**
|
|
13
14
|
* Initializes a new instance of the {@link SearchError} class.
|
|
14
15
|
*
|
|
@@ -16,5 +17,5 @@ export declare class SearchError extends Error {
|
|
|
16
17
|
* @param message An optional error message.
|
|
17
18
|
* @param args Values for placeholders in the error message.
|
|
18
19
|
*/
|
|
19
|
-
constructor(errors: Iterable<[FeatureSource[], Error]>, message?: string, ...args: unknown[]);
|
|
20
|
+
constructor(errors: Iterable<[FeatureSource | FeatureSource[], Error] | SearchError | QueryError>, message?: string, ...args: unknown[]);
|
|
20
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{format as r}from"../../utilities/string.js";export class SearchError extends Error{errors;constructor(
|
|
1
|
+
import{format as r}from"../../utilities/string.js";export class SearchError extends Error{errors;constructor(s,o,...e){super(o&&r(o,...e)||"One or more sources could not be searched."),this.name="SearchError",this.errors=new Map;for(const r of s){if("errors"in r){for(const[s,o]of r.errors)this.errors.set(s,o);continue}const[s,o]=r;if(Array.isArray(s))for(const r of s)this.errors.set(r,o);else this.errors.set(s,o)}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__decorate as e}from"tslib";import t from"@arcgis/core/core/Collection";import i from"@arcgis/core/geometry/Point";import{distance as r}from"@arcgis/core/geometry/geometryEngineAsync";import{isLayerExtension as a,isMapExtension as o,isSublayerExtension as s}from"../../ItemType.js";import{SCORE_FIELD as n,SCORE_FIELD_ORIGINAL as c}from"../../data/Feature.js";import{MapExtension as l}from"../../mapping/MapExtension.js";import{cancelify as p}from"../../support/Cancellable.js";import{InitializableBase as u}from"../../support/InitializableBase.js";import{serializable as m}from"../../support/Serializable.js";import{isCancellation as f}from"../../support/utilities.js";import{groupBy as d}from"../../utilities/array.js";import{AsyncQueue as
|
|
1
|
+
import{__decorate as e}from"tslib";import t from"@arcgis/core/core/Collection";import i from"@arcgis/core/geometry/Point";import{distance as r}from"@arcgis/core/geometry/geometryEngineAsync";import{isLayerExtension as a,isMapExtension as o,isSublayerExtension as s}from"../../ItemType.js";import{SCORE_FIELD as n,SCORE_FIELD_ORIGINAL as c}from"../../data/Feature.js";import{MapExtension as l}from"../../mapping/MapExtension.js";import{cancelify as p}from"../../support/Cancellable.js";import{InitializableBase as u}from"../../support/InitializableBase.js";import{serializable as m}from"../../support/Serializable.js";import{isCancellation as f}from"../../support/utilities.js";import{groupBy as d}from"../../utilities/array.js";import{AsyncQueue as h}from"../../utilities/asyncIterable.js";import{checkArg as y}from"../../utilities/checkArg.js";import{isMap as w}from"../../utilities/mapping.js";import{parallelEach as g}from"../../utilities/promise.js";import{SearchError as S}from"./SearchError.js";import{SearchOptions as v}from"./SearchOptions.js";import{SubtypeSublayerQuerySearchProvider as j}from"./SubtypeSublayerQuerySearchProvider.js";let x=class extends u{providers=new t;isSupported(e){return!!this.providers.find((t=>t.isSupported(e)))}search(e,a,s){y("sources",e).isNotMissing();const n={...v.DEFAULTS,...s},{outSpatialReference:c,onSourceComplete:p}=n;let u,m=[];t.isCollection(e)?m=e.toArray():o(e)?u=e:w(e)?u=new l({map:e}):m=[...e];let j=0;const x=new h,z=[],A=(e,t)=>{if(!t||0===e.length)return;j++;const o=new Map;for(const t of e)o.set(t,{source:t,count:0,time:-1});(async()=>{const l=await async function(e){if(!e.near||!e.initialSearchArea?.extent?.spatialReference.equals(e.near.spatialReference))return;const{extent:t}=e.initialSearchArea,{spatialReference:a}=t,[o,s,n,c]=await Promise.all([r(new i({x:t.xmin,y:t.ymin,spatialReference:a}),e.near,void 0),r(new i({x:t.xmin,y:t.ymax,spatialReference:a}),e.near,void 0),r(new i({x:t.xmax,y:t.ymin,spatialReference:a}),e.near,void 0),r(new i({x:t.xmax,y:t.ymax,spatialReference:a}),e.near,void 0)]);return Math.max(o,s,n,c)}(n),u=[];try{if(x.isDone)return;const i=Date.now();await g(e,(e=>e.initialize()));for await(const r of t.search(e,a,s)){const e=o.get(r.source);if(e&&(e.count++,e.time<0&&(e.time=Date.now()-i)),x.isDone)return;c&&(r.schema.spatialReference=c),await b(r,l,s);let t=!1;u.push(r.attributes.on("change",(async()=>{t||(t=!0,await b(r,l,s),t=!1)}))),x.add(r)}for(const t of e){const e=o.get(t);e&&e.time<0&&(e.time=Date.now()-i)}}catch(t){for(const i of e){o.get(i).failureReason=t}if(f(t))return void x.reject(t);t instanceof S?z.push(t):z.push([e,t])}finally{u.forEach((e=>e.remove()));for(const t of e){const e=o.get(t);p?.(e)}}0==--j&&(z.length?x.reject(new S(z)):x.done())})()};return(async()=>{try{u&&(await u.initialize(),m=u.getAllFeatureSources(isSearchable))}catch(e){x.reject(new Error("Map failed to initialize.",{cause:e}))}await this.initialize(),d(m,(e=>this.providers.find((t=>t.isSupported(e))))).forEach(A),0===j&&x.done()})(),x}count(e,i,r){y("sources",e).isNotMissing();const a={...r,returnGeometry:!1};let s,n=[];t.isCollection(e)?n=e.toArray():o(e)?s=e:w(e)?s=new l({map:e}):n=[...e];let c=0;const p=new h,u=new Map,m=(e,t)=>{t&&(c++,(async()=>{if(!p.isDone){try{if(await g(e,(e=>e.initialize())),p.isDone)return;p.addMany(await t.count(e,i,a))}catch(t){if(f(t))return void p.reject(t);u.set(e,t)}0==--c&&(u.size?p.reject(new S(u)):p.done())}})())};return(async()=>{try{s&&(await s.initialize(),n=s.getAllFeatureSources(isSearchable))}catch(e){p.reject(new Error("Map failed to initialize.",{cause:e}))}await this.initialize(),d(n,(e=>this.providers.find((t=>t.isSupported(e))))).forEach(m),0===c&&p.done()})(),p}async suggest(e,t,i){y("sources",e).isNotMissing();const r={...v.DEFAULTS,...i};return p(this._suggest(e,t,r),r.cancelToken)}async _onInitialize(){await super._onInitialize();const{QuerySearchProvider:e,ArcGISGeocoderSearchProvider:t,GeocoderSearchProvider:i}=await import("./defaultProviders.js"),r=new e;await r.queryService.initialize(),this.providers.add(new j(r)),this.providers.add(r),this.providers.add(new t),this.providers.add(new i)}async _suggest(e,i,r){let a,s=[];t.isCollection(e)?s=e.toArray():o(e)?a=e:w(e)?a=new l({map:e}):s=[...e];const n=[];if(a)try{await a.initialize(),s=a.getAllFeatureSources(isSearchable)}catch(e){throw new Error("Map failed to initialize.",{cause:e})}await this.initialize();const c=d(s,(e=>this.providers.find((t=>t.isSupported(e)))));return await g(c.entries(),(async([e,t])=>{if(e)try{const a=await e.suggest(t,i,r);for(const e of a){const t=n.findIndex((t=>t.suggestion===e.suggestion));t>=0?e.score>n[t].score&&(n[t]=e):n.push(e)}}catch(e){throw f(e)?e:new S([[t,e]])}})),n.sort(((e,t)=>t.score-e.score)).slice(0,r.maxSuggestions)}};x=e([m],x);export{x as SearchService};export function isSearchable(e){return!!e.taskSettings.enableSearch&&(a(e)?e.layer?.visible:!s(e)||e.sublayer?.visible)}async function b(e,t,i){if(!(t&&i.near&&i.initialSearchArea&&e.geometry&&i.near.spatialReference.equals(e.geometry.spatialReference)&&e.attributes.has(n)))return;const a=(t-await r(e.geometry,i.near,void 0))/t,o=(2*e.attributes.get(c)+a)/3;e.attributes.set(n,o)}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Feature } from "../../data/Feature.js";
|
|
2
|
+
import type { FeatureSource } from "../../data/FeatureSource.js";
|
|
3
|
+
import type { SubtypeSublayerExtension } from "../../mapping/SubtypeSublayerExtension.js";
|
|
4
|
+
import type { CountResult } from "../CountResult.js";
|
|
5
|
+
import type { QuerySearchProvider } from "./QuerySearchProvider.js";
|
|
6
|
+
import { SearchOptions } from "./SearchOptions.js";
|
|
7
|
+
import { SearchProviderBase } from "./SearchProviderBase.js";
|
|
8
|
+
import type { SearchSuggestion } from "./SearchSuggestion.js";
|
|
9
|
+
/**
|
|
10
|
+
* A search provider for subtype sublayers.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SubtypeSublayerQuerySearchProvider extends SearchProviderBase {
|
|
13
|
+
private readonly _queryProvider;
|
|
14
|
+
constructor(querySearchProvider: QuerySearchProvider);
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
isSupported(source: FeatureSource): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
protected _search(sources: SubtypeSublayerExtension[], searchText: string, options: SearchOptions): AsyncIterable<Feature>;
|
|
23
|
+
protected _count(source: FeatureSource | FeatureSource[], searchText: string, options: SearchOptions): Promise<CountResult[]>;
|
|
24
|
+
protected _suggest(source: FeatureSource | FeatureSource[], searchText: string, options: SearchOptions): Promise<SearchSuggestion[]>;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SCORE_FIELD as e,SCORE_FIELD_ORIGINAL as t}from"../../data/Feature.js";import{isSubtypeSublayer as r}from"../../utilities/_layers.js";import{AsyncQueue as s}from"../../utilities/asyncIterable.js";import{isSubtypeSublayerExtension as o}from"../../utilities/extensions.js";import{QueryError as n}from"../query/QueryError.js";import{SearchError as i}from"./SearchError.js";import{SearchOptions as u}from"./SearchOptions.js";import{SearchProviderBase as a}from"./SearchProviderBase.js";import{getSearchableValue as c}from"./_utilities.js";import{expandSearchArea as l,getSearchableFields as f,getWhereClause as p,initializeElasticlunrIndex as d,normalizeScores as y,separatorRegex as m}from"./support/_querySearchProviderUtils.js";export class SubtypeSublayerQuerySearchProvider extends a{_queryProvider;constructor(e){super(),this._queryProvider=e}isSupported(e){return o(e)&&r(e.sublayer)&&e.sublayer.layer&&e.layerExtension?.capabilities.supportsQuery}_search(r,a,h){const x=new s,g=new Map,w="__id",S=[],q=new Map,R=new Set,_=async()=>{let e=[a];if(h?.tokenizeSearchString??1){const{index:t,tokenizer:r}=await d(m);t.setRef(w),e=t.pipeline.run(this._queryProvider.getSearchTerms(a,r))}if(e.length)for(const t of r){const r={...u.DEFAULTS,...u.fromFeatureSource(t.layerExtension),spatialFilter:h?.initialSearchArea,tokenizeSearchString:!0,...h},s=f(t),o=p(t,e,s,r);if(!s.length||!o)continue;if(q.has(t.layerExtension)){q.get(t.layerExtension).sources.set(t,{fields:s,where:o});continue}const{index:n}=await d(m);n.setRef(w);for(const e of s)n.addField(e.name.toLowerCase());let{maxResults:i}=r;null!=r.maxQueryResults&&null!=r.maxResults&&(i=Math.max(r.maxQueryResults,r.maxResults));const a={...r,maxResults:i};R.add(t.layerExtension),q.set(t.layerExtension,{searchOptions:r,queryOptions:a,index:n,results:{count:0,lookup:new Map},sources:new Map([[t,{fields:s,where:o}]])})}},b=async e=>{const t=q.get(e),r=[];for(const[e,s]of t.sources)r.push({source:e,where:s.where,options:t.queryOptions});try{const e=this._queryProvider.queryService.query(r);for await(const t of e){if(x.isDone)return;const{source:e}=t;if(!o(e))continue;const{index:r,sources:s,results:{lookup:n}}=q.get(e.layerExtension),{fields:i}=s.get(e),u={};for(const e of i)u[e.name.toLowerCase()]=c(t,e);const a=`${e.id}-${t.primaryKey}`;!0!==g.get(a)?.queued&&(u[w]=a,r.addDoc(u),n.set(a,t),g.set(a,{feature:t,queued:!1}))}}catch(e){e instanceof n?S.push(e):S.push(new i([[[...t.sources.keys()],e]]))}},j=r=>{const{index:s,searchOptions:o,results:n}=q.get(r),i=s.search(a,{expand:!0});y(i);for(const s of i){const{feature:i,queued:u}=g.get(s.ref);if(i&&!u&&n.lookup.has(s.ref)&&(i.attributes.set(e,s.score),i.attributes.set(t,s.score),g.get(s.ref).queued=!0,x.add(i),n.lookup.delete(s.ref),n.count++),null!=o.maxResults&&n.count>=o.maxResults){R.delete(r);break}}for(const[s,i]of n.lookup){if(null!=o.maxResults&&n.count>=o.maxResults){R.delete(r);break}i.attributes.set(e,50),i.attributes.set(t,50),g.get(s).queued||(g.get(s).queued=!0,x.add(i),n.count++)}},k=async e=>{const{queryOptions:t,searchOptions:r,results:{count:s}}=q.get(e);if(null!=r.maxResults&&s>=r.maxResults)return void R.delete(e);const{scale:o,geometry:n}=await l(t.spatialFilter?.extent,e.getFullExtent(),r.currentScale,0===s?3:1);n?(t.spatialFilter=n,r.currentScale=o):R.delete(e)},v=async e=>{for(;R.size>0;){if(x.isDone)return;if(await b(e),x.isDone)return;j(e),await k(e)}};return(async()=>{await _();const e=[];for(const[t]of q)e.push(v(t));await Promise.all(e),S.length>0?x.reject(new i(S)):x.done()})(),x}async _count(e,t,r){return this._queryProvider.count(e,t,r)}_suggest(e,t,r){return this._queryProvider.suggest(e,t,r)}}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type Geometry from "@arcgis/core/geometry/Geometry.js";
|
|
2
|
+
/**
|
|
3
|
+
* The expanded search area and scale.
|
|
4
|
+
*/
|
|
5
|
+
export interface ExpandSearchAreaResult {
|
|
6
|
+
/**
|
|
7
|
+
* The new expanded geometry.
|
|
8
|
+
*/
|
|
9
|
+
geometry?: Geometry;
|
|
10
|
+
/**
|
|
11
|
+
* The new scale for the returned geometry.
|
|
12
|
+
*/
|
|
13
|
+
scale?: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{difference as e}from"@arcgis/core/geometry/geometryEngineAsync";import{isCodedValueDomain as t}from"../../../utilities/esri.js";import{getBounds as n,getScreenExtent as o}from"../../../utilities/geometry.js";import{average as r,standardDeviation as i}from"../../../utilities/math.js";import{NumberFormat as s,NumberFormatter as c,format as a}from"../../../utilities/number.js";import{expandExtentToScale as l,getNextScale as u,getScaleRange as m}from"../../../utilities/scaleRanges.js";import{caseInsensitiveEquals as p}from"../../../utilities/string.js";export const separatorRegex=/(\s|(?<=\w)-|-(?![\d,.]))+/;export async function initializeElasticlunrIndex(e){const t=(await import("elasticlunr")).default;t.tokenizer.setSeperator(e),t.Pipeline.getRegisteredFunction("gcx.trimmer")||t.Pipeline.registerFunction(d,"gcx.trimmer");const n=t();return n.pipeline.reset(),n.pipeline.add(d),n.pipeline.add(t.Pipeline.getRegisteredFunction("stopWordFilter")),n.saveDocument(!1),{index:n,tokenizer:t.tokenizer}}export function getSearchableFields(e){const{outFields:t}=e.featureSettings,n=!t.includes("*");return e.schema.fieldExtensions.initializedItems.filter((e=>e.searchable&&(!n||t.includes(e.field.name)))).map((e=>e.field)).toArray()}export function getWhereClause(e,n,o,r){const i=[],a=new c({locale:r.locale,defaultParseFormat:[s.CURRENCY,s.FIXED_POINT,s.PERCENT,s.NUMBER,s.ROUND_TRIP]});for(const r of o){let o=[];r.domain&&t(r.domain)&&(o=o.concat(r.domain.codedValues));for(const t of e.schema.types.toArray()){const{domains:e}=t;e?.[r.name]?.codedValues&&(o=o.concat(e[r.name].codedValues))}for(const t of n)if(e.schema.types.length>0&&p(r.name,e.schema.typeIdField)){const n=e.schema.types.findIndex((e=>p(e.name,t.toLowerCase())));if(n>-1){const t=e.schema.types.getItemAt(n).id;"string"==typeof t?i.push(`${e.schema.typeIdField} = '${x(t)}'`):i.push(`${e.schema.typeIdField} = ${t}`)}}else if(o.length>0){const e=o.findIndex((e=>e.name.toLowerCase().includes(t.toLowerCase())));e>-1&&("string"==typeof o[e].code?i.push(`${r.name} = '${x(o[e].code)}'`):i.push(`${r.name} = ${o[e].code}`))}else switch(r.type){case"string":i.push(`lower(${r.name}) like '%${x(t.toLowerCase())}%'`);break;case"integer":case"small-integer":case"single":case"double":{const e=g(t),n=a.parse({format:[s.DEFAULT,s.FIXED_POINT,s.NUMBER]},e);if(isNaN(n))continue;const o=f(n);n<0?i.push(`(${r.name} > ${o.lower} and ${r.name} <= ${o.upper})`):i.push(`(${r.name} >= ${o.lower} and ${r.name} < ${o.upper})`);break}}}return i.join(" or ")}export function normalizeScores(e){const t=e.map((e=>e.score)),n=r(t),o=i(t);for(const t of e)o?(t.score=(t.score-n)/o,t.score=Math.max(-2,t.score),t.score=Math.min(2,t.score),t.score=t.score/4+.5,t.score*=100):t.score=100}export async function expandSearchArea(t,r,i,s){if(!r||!t||!i||t.contains(r))return{};const c=u(i,s),a=m("continent"),p=!c||null!=a&&c>=a?r:l(t,i,c);return{geometry:function(e){const t=e.filter((e=>!!e?.spatialReference));if(!t.length)return!0;const{spatialReference:r}=t[0],{isWebMercator:i,isWGS84:s}=r;if(!i&&!s)return!0;const c=o(t),a=n(r);if(null==a||null==c)return!0;const{xmax:l,xmin:u}=c,{max:m,min:p}=a;return l<=m&&u>=p}([p])?await e(p,t):p,scale:c}}function d(e){if(null==e)throw new Error("token should not be undefined");return e.replace(/^[^a-zA-Z0-9\u007F-\uFFFF-]+/,"").replace(/[^a-zA-Z0-9\u007F-\uFFFF-]+$/,"")}function f(e){let t,n=0;const o=a(s.ROUND_TRIP,e),r=h(o);o.includes(".")&&(n=o.length-o.indexOf(".")-1);let i=e;return 0===r&&n>0?t=Math.pow(10,-(n-1)):null!=r&&n>r?(i=Number(e.toFixed(n-r)),t=Math.pow(10,-n)):t=1,t/=2,{lower:(i-t).toFixed(n+1),upper:(i+t).toFixed(n+1)}}function g(e){let t=h(e);const n=a(-123456780.9),o=function(){const e=a(1234567890);return a(-123456780.9).split("").filter((t=>!e.includes(t))).join("")}();if(null!=t&&t>0){const r=new RegExp(`[${n}]`,"g"),i=e.match(r);if(null!=i){const e=i.length;let n=0;for(;t>0&&n<=e;){const r=e-n-1;o.includes(i[r])||(i[r]=a(0).toString(),t--),n++}return i.join("")}}return e}function h(e){const t=a(1234567890),n=new RegExp(`[${t}]`,"g"),o=e.match(n);return o?o.length-14:void 0}function x(e){return e.replace(/([%'])/g,"$1$1")}
|
package/version.d.ts
CHANGED
package/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version="
|
|
1
|
+
export const version="47.0.0";
|