@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
@@ -9,11 +9,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
10
10
|
const index = require('./index-b8a649fc.js');
|
11
11
|
const loadModules = require('./loadModules-46d14e81.js');
|
12
|
-
const mapViewUtils = require('./mapViewUtils-
|
12
|
+
const mapViewUtils = require('./mapViewUtils-569e9644.js');
|
13
13
|
const interfaces = require('./interfaces-7cd0a48a.js');
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-3a17c2f4.js');
|
15
15
|
const locale = require('./locale-9db09b63.js');
|
16
|
-
const downloadUtils = require('./downloadUtils-
|
16
|
+
const downloadUtils = require('./downloadUtils-8f50633d.js');
|
17
17
|
require('./esri-loader-a91c0ec1.js');
|
18
18
|
require('./_commonjsHelpers-384729db.js');
|
19
19
|
require('./index-22bb61da.js');
|
@@ -126,6 +126,22 @@ async function queryFeaturesByGeometry(start, layer, geometry, featuresCollectio
|
|
126
126
|
queryFeaturesByGeometry(start += num, layer, geometry, featuresCollection) :
|
127
127
|
Promise.resolve(featuresCollection);
|
128
128
|
}
|
129
|
+
/**
|
130
|
+
* Query the layer for feature ids that match the provided where clause.
|
131
|
+
* If no where clause is provided all features will be returned.
|
132
|
+
*
|
133
|
+
* @param layer the layer to retrieve features from
|
134
|
+
* @param where the where clause for the query
|
135
|
+
* @param orderBy any sort order to apply to the query
|
136
|
+
*
|
137
|
+
* @returns Promise with the ids from the layer that match the where and are sorted as defined by orderBy
|
138
|
+
*/
|
139
|
+
async function queryFeatureIds(layer, where, orderBy) {
|
140
|
+
const query = layer.createQuery();
|
141
|
+
query.where = where ? where : "1=1";
|
142
|
+
query.orderByFields = orderBy;
|
143
|
+
return await layer.queryObjectIds(query);
|
144
|
+
}
|
129
145
|
/**
|
130
146
|
* Query the layer for the extent of features with the provided OIDs
|
131
147
|
*
|
@@ -444,6 +460,7 @@ exports.goToSelection = goToSelection;
|
|
444
460
|
exports.highlightAllFeatures = highlightAllFeatures;
|
445
461
|
exports.highlightFeatures = highlightFeatures;
|
446
462
|
exports.queryAllIds = queryAllIds;
|
463
|
+
exports.queryFeatureIds = queryFeatureIds;
|
447
464
|
exports.queryFeaturesByGeometry = queryFeaturesByGeometry;
|
448
465
|
exports.queryFeaturesByGlobalID = queryFeaturesByGlobalID;
|
449
466
|
exports.queryFeaturesByID = queryFeaturesByID;
|
@@ -10,10 +10,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
10
10
|
const index = require('./index-b8a649fc.js');
|
11
11
|
const interfaces = require('./interfaces-7cd0a48a.js');
|
12
12
|
const loadModules = require('./loadModules-46d14e81.js');
|
13
|
-
const mapViewUtils = require('./mapViewUtils-
|
13
|
+
const mapViewUtils = require('./mapViewUtils-569e9644.js');
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-3a17c2f4.js');
|
15
15
|
const locale = require('./locale-9db09b63.js');
|
16
|
-
const downloadUtils = require('./downloadUtils-
|
16
|
+
const downloadUtils = require('./downloadUtils-8f50633d.js');
|
17
17
|
require('./esri-loader-a91c0ec1.js');
|
18
18
|
require('./_commonjsHelpers-384729db.js');
|
19
19
|
require('./index-22bb61da.js');
|