@esri/solutions-components 0.7.8 → 0.7.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/layer-table/resources.json +1 -0
- package/dist/assets/t9n/layer-table/resources_en.json +1 -0
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +1 -1
- package/dist/cjs/calcite-alert_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +16 -7
- package/dist/cjs/card-manager_3.cjs.entry.js +176 -22
- package/dist/cjs/crowdsource-manager.cjs.entry.js +12 -1
- package/dist/cjs/{downloadUtils-95e4a5b2.js → downloadUtils-8f50633d.js} +2 -2
- package/dist/cjs/{index.es-a88403f8.js → index.es-140aa937.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
- package/dist/cjs/{mapViewUtils-b7d9e71c.js → mapViewUtils-569e9644.js} +17 -0
- package/dist/cjs/public-notification.cjs.entry.js +2 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +20 -2
- package/dist/collection/components/layer-table/layer-table.js +175 -21
- package/dist/collection/components/map-layer-picker/map-layer-picker.css +1 -0
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +69 -5
- package/dist/collection/components/map-picker/map-picker.js +1 -1
- package/dist/collection/demos/crowdsource-manager.html +2 -2
- package/dist/collection/utils/interfaces.ts +5 -0
- package/dist/collection/utils/queryUtils.js +16 -0
- package/dist/collection/utils/queryUtils.ts +21 -0
- package/dist/components/crowdsource-manager.js +15 -3
- package/dist/components/layer-table2.js +175 -21
- package/dist/components/map-layer-picker2.js +17 -6
- package/dist/components/map-picker2.js +1 -1
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/queryUtils.js +17 -1
- package/dist/components/refine-selection2.js +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +1 -1
- package/dist/esm/calcite-alert_3.entry.js +1 -1
- package/dist/esm/calcite-combobox_6.entry.js +16 -7
- package/dist/esm/card-manager_3.entry.js +176 -22
- package/dist/esm/crowdsource-manager.entry.js +12 -1
- package/dist/esm/{downloadUtils-83dd2143.js → downloadUtils-9dee8bc0.js} +2 -2
- package/dist/esm/{index.es-0c98e2f3.js → index.es-54e86c8e.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +2 -2
- package/dist/esm/{mapViewUtils-3ff1c264.js → mapViewUtils-066602d5.js} +17 -1
- package/dist/esm/public-notification.entry.js +2 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/demos/crowdsource-manager.html +2 -2
- package/dist/solutions-components/{p-546a3d3c.entry.js → p-13bfc206.entry.js} +2 -2
- package/dist/solutions-components/{p-d6050d57.js → p-1bdd64a0.js} +2 -2
- package/dist/solutions-components/{p-b7e2c75b.js → p-531d91d6.js} +1 -1
- package/dist/solutions-components/{p-dcd6e7b9.entry.js → p-6656c53e.entry.js} +1 -1
- package/dist/solutions-components/{p-a5d924a9.entry.js → p-683cded6.entry.js} +1 -1
- package/dist/solutions-components/{p-95ebc2e5.entry.js → p-c2b20b85.entry.js} +1 -1
- package/dist/solutions-components/p-c7ff24df.entry.js +6 -0
- package/dist/solutions-components/{p-b030a151.js → p-dfdb8411.js} +1 -1
- package/dist/solutions-components/p-f7870ec1.entry.js +6 -0
- package/dist/solutions-components/p-ffae568b.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +5 -0
- package/dist/solutions-components/utils/queryUtils.ts +21 -0
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +8 -0
- package/dist/types/components/layer-table/layer-table.d.ts +54 -1
- package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +15 -1
- package/dist/types/components.d.ts +23 -2
- package/dist/types/preact.d.ts +2 -1
- package/dist/types/utils/interfaces.d.ts +4 -0
- package/dist/types/utils/queryUtils.d.ts +11 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-1b9709ce.entry.js +0 -6
- package/dist/solutions-components/p-4f1c4004.entry.js +0 -6
- package/dist/solutions-components/p-c556ed60.entry.js +0 -6
@@ -5,11 +5,11 @@
|
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-7183ce4a.js';
|
7
7
|
import { l as loadModules } from './loadModules-cea493da.js';
|
8
|
-
import { g as goToSelection, h as highlightFeatures,
|
8
|
+
import { g as goToSelection, h as highlightFeatures, e as queryObjectIds, f as getQueryGeoms, i as getFeatureLayerView, j as queryFeaturesByGeometry, k as getIdSets, l as highlightAllFeatures } from './mapViewUtils-066602d5.js';
|
9
9
|
import { c as EWorkflowType, e as ESelectionMode, f as EDrawMode } from './interfaces-341e3ab3.js';
|
10
10
|
import { s as state } from './publicNotificationStore-9362d7ae.js';
|
11
11
|
import { a as getComponentClosestLanguage, g as getLocaleComponentStrings } from './locale-834c52c6.js';
|
12
|
-
import { d as downloadCSV, a as downloadPDF } from './downloadUtils-
|
12
|
+
import { d as downloadCSV, a as downloadPDF } from './downloadUtils-9dee8bc0.js';
|
13
13
|
import './esri-loader-eda07632.js';
|
14
14
|
import './_commonjsHelpers-d5f9d613.js';
|
15
15
|
import './index-857df22e.js';
|
@@ -124,6 +124,22 @@ async function queryFeaturesByGeometry(start, layer, geometry, featuresCollectio
|
|
124
124
|
queryFeaturesByGeometry(start += num, layer, geometry, featuresCollection) :
|
125
125
|
Promise.resolve(featuresCollection);
|
126
126
|
}
|
127
|
+
/**
|
128
|
+
* Query the layer for feature ids that match the provided where clause.
|
129
|
+
* If no where clause is provided all features will be returned.
|
130
|
+
*
|
131
|
+
* @param layer the layer to retrieve features from
|
132
|
+
* @param where the where clause for the query
|
133
|
+
* @param orderBy any sort order to apply to the query
|
134
|
+
*
|
135
|
+
* @returns Promise with the ids from the layer that match the where and are sorted as defined by orderBy
|
136
|
+
*/
|
137
|
+
async function queryFeatureIds(layer, where, orderBy) {
|
138
|
+
const query = layer.createQuery();
|
139
|
+
query.where = where ? where : "1=1";
|
140
|
+
query.orderByFields = orderBy;
|
141
|
+
return await layer.queryObjectIds(query);
|
142
|
+
}
|
127
143
|
/**
|
128
144
|
* Query the layer for the extent of features with the provided OIDs
|
129
145
|
*
|
@@ -431,4 +447,4 @@ async function goToSelection(ids, layerView, mapView, flashFeatures = true, feat
|
|
431
447
|
}
|
432
448
|
}
|
433
449
|
|
434
|
-
export { getLayerOrTable as a,
|
450
|
+
export { getLayerOrTable as a, queryFeatureIds as b, queryAllIds as c, queryFeaturesByGlobalID as d, queryObjectIds as e, getQueryGeoms as f, goToSelection as g, highlightFeatures as h, getFeatureLayerView as i, queryFeaturesByGeometry as j, getIdSets as k, highlightAllFeatures as l, getAllLayers as m, getMapLayerHash as n, getMapTableHash as o, queryFeaturesByID as q };
|
@@ -6,10 +6,10 @@
|
|
6
6
|
import { r as registerInstance, c as createEvent, a as getAssetPath, h, H as Host, g as getElement } from './index-7183ce4a.js';
|
7
7
|
import { a as EExportType, b as EPageType, c as EWorkflowType } from './interfaces-341e3ab3.js';
|
8
8
|
import { l as loadModules } from './loadModules-cea493da.js';
|
9
|
-
import { g as goToSelection, h as highlightFeatures } from './mapViewUtils-
|
9
|
+
import { g as goToSelection, h as highlightFeatures } from './mapViewUtils-066602d5.js';
|
10
10
|
import { s as state } from './publicNotificationStore-9362d7ae.js';
|
11
11
|
import { g as getLocaleComponentStrings } from './locale-834c52c6.js';
|
12
|
-
import { c as consolidateLabels, r as removeDuplicateLabels } from './downloadUtils-
|
12
|
+
import { c as consolidateLabels, r as removeDuplicateLabels } from './downloadUtils-9dee8bc0.js';
|
13
13
|
import './esri-loader-eda07632.js';
|
14
14
|
import './_commonjsHelpers-d5f9d613.js';
|
15
15
|
import './index-857df22e.js';
|