@esri/solutions-components 0.8.28 → 0.8.30
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +65 -31
- package/dist/cjs/calcite-alert_4.cjs.entry.js +3 -3
- package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-flow_6.cjs.entry.js +1 -1
- package/dist/cjs/card-manager_3.cjs.entry.js +19 -19
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
- package/dist/cjs/{downloadUtils-5349717a.js → downloadUtils-83bf79ba.js} +2 -2
- package/dist/cjs/feature-list.cjs.entry.js +3 -3
- package/dist/cjs/{index.es-aa69b58b.js → index.es-4e523f8b.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-6e46ba33.js → mapViewUtils-911698e5.js} +31 -17
- package/dist/cjs/{popupUtils-3e65296c.js → popupUtils-e3fa775b.js} +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +2 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/floor-filter/floor-filter.js +66 -30
- package/dist/collection/components/layer-table/layer-table.js +18 -18
- package/dist/collection/utils/queryUtils.js +30 -0
- package/dist/collection/utils/queryUtils.ts +41 -0
- package/dist/components/floor-filter2.js +67 -32
- package/dist/components/layer-table2.js +18 -18
- package/dist/components/queryUtils.js +31 -17
- package/dist/esm/basemap-gallery_7.entry.js +65 -31
- package/dist/esm/calcite-alert_4.entry.js +3 -3
- package/dist/esm/calcite-dropdown-group_2.entry.js +1 -1
- package/dist/esm/calcite-flow_6.entry.js +1 -1
- package/dist/esm/card-manager_3.entry.js +19 -19
- package/dist/esm/crowdsource-manager.entry.js +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +1 -1
- package/dist/esm/{downloadUtils-5fa0d437.js → downloadUtils-571a502d.js} +2 -2
- package/dist/esm/feature-list.entry.js +3 -3
- package/dist/esm/{index.es-57c15c9b.js → index.es-2f9f04c5.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-4618ddb8.js → mapViewUtils-b8deb4ae.js} +31 -17
- package/dist/esm/{popupUtils-650b6bba.js → popupUtils-17193415.js} +1 -1
- package/dist/esm/public-notification.entry.js +2 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/{p-81747268.entry.js → p-061da95a.entry.js} +1 -1
- package/dist/solutions-components/{p-e1662e32.entry.js → p-16fb8296.entry.js} +1 -1
- package/dist/solutions-components/p-1bdf0ba0.entry.js +6 -0
- package/dist/solutions-components/{p-a1037b19.js → p-2e23ac2c.js} +1 -1
- package/dist/solutions-components/{p-66722851.entry.js → p-2f7bfd8d.entry.js} +1 -1
- package/dist/solutions-components/{p-bfdabb9d.entry.js → p-51d5532f.entry.js} +1 -1
- package/dist/solutions-components/{p-6f69de4d.js → p-52dba022.js} +2 -2
- package/dist/solutions-components/{p-24bf45b7.js → p-57eeed77.js} +1 -1
- package/dist/solutions-components/p-5aaa05ef.js +36 -0
- package/dist/solutions-components/{p-05b3a5d9.entry.js → p-61bf98bc.entry.js} +1 -1
- package/dist/solutions-components/p-a0616647.entry.js +6 -0
- package/dist/solutions-components/{p-296375d3.entry.js → p-bb90a138.entry.js} +1 -1
- package/dist/solutions-components/{p-6bd6624f.entry.js → p-bda54b12.entry.js} +1 -1
- package/dist/solutions-components/{p-cd694107.entry.js → p-c21a6940.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/queryUtils.ts +41 -0
- package/dist/types/components/floor-filter/floor-filter.d.ts +23 -1
- package/dist/types/utils/queryUtils.d.ts +16 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-2a6db6e8.entry.js +0 -6
- package/dist/solutions-components/p-583e5dd0.js +0 -36
- package/dist/solutions-components/p-c3821586.entry.js +0 -6
@@ -9,10 +9,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
10
10
|
const index = require('./index-79b35510.js');
|
11
11
|
const locale = require('./locale-48d76c59.js');
|
12
|
-
const mapViewUtils = require('./mapViewUtils-
|
12
|
+
const mapViewUtils = require('./mapViewUtils-911698e5.js');
|
13
13
|
const interfaces = require('./interfaces-7cd0a48a.js');
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-3bfbbed3.js');
|
15
|
-
const downloadUtils = require('./downloadUtils-
|
15
|
+
const downloadUtils = require('./downloadUtils-83bf79ba.js');
|
16
16
|
require('./esri-loader-fce6a9cb.js');
|
17
17
|
require('./index-c078ea5f.js');
|
18
18
|
require('./solution-resource-a577e84f.js');
|
@@ -22,6 +22,36 @@ const interfaces = require('./interfaces-7cd0a48a.js');
|
|
22
22
|
* See the License for the specific language governing permissions and
|
23
23
|
* limitations under the License.
|
24
24
|
*/
|
25
|
+
/**
|
26
|
+
* Query the layer for all OIDs valid for any definition expressions applied to the layer.
|
27
|
+
*
|
28
|
+
* This query allows OIDs to be returned in the same order as shown in the FeatureTable.
|
29
|
+
* FeatureLayer.queryObjectIds can return OIDs in a different order.
|
30
|
+
*
|
31
|
+
* @param start zero-based index indicating where to begin retrieving features
|
32
|
+
* @param layer the layer to retrieve features from
|
33
|
+
* @param graphics stores the features
|
34
|
+
* @param orderBy One or more field names used to order the query results.
|
35
|
+
* Specify ASC (ascending) or DESC (descending) after the field name to control the order.
|
36
|
+
* The default order is ASC.
|
37
|
+
*
|
38
|
+
* @returns Promise with the OIDs sorted based on any orderBy definitions
|
39
|
+
*/
|
40
|
+
async function queryAllOidsWithQueryFeatures(start, layer, graphics, orderBy) {
|
41
|
+
const num = layer.capabilities.query.maxRecordCount;
|
42
|
+
const query = layer.createQuery();
|
43
|
+
query.start = start;
|
44
|
+
query.num = num;
|
45
|
+
query.returnGeometry = false;
|
46
|
+
query.orderByFields = orderBy;
|
47
|
+
query.outFields = [layer.objectIdField];
|
48
|
+
query.where = layer.definitionExpression || "1=1";
|
49
|
+
const result = await layer.queryFeatures(query);
|
50
|
+
graphics = graphics.concat(result.features);
|
51
|
+
return result.exceededTransferLimit ?
|
52
|
+
queryAllOidsWithQueryFeatures(start += num, layer, graphics, orderBy) :
|
53
|
+
Promise.resolve(graphics.map(g => g.attributes[layer.objectIdField]));
|
54
|
+
}
|
25
55
|
/**
|
26
56
|
* Query the layer for all IDs
|
27
57
|
*
|
@@ -129,22 +159,6 @@ async function queryFeaturesByGeometry(start, layer, geometry, featuresCollectio
|
|
129
159
|
queryFeaturesByGeometry(start += num, layer, geometry, featuresCollection) :
|
130
160
|
Promise.resolve(featuresCollection);
|
131
161
|
}
|
132
|
-
/**
|
133
|
-
* Query the layer for feature ids that match the provided where clause.
|
134
|
-
* If no where clause is provided all features will be returned.
|
135
|
-
*
|
136
|
-
* @param layer the layer to retrieve features from
|
137
|
-
* @param where the where clause for the query
|
138
|
-
* @param orderBy any sort order to apply to the query
|
139
|
-
*
|
140
|
-
* @returns Promise with the ids from the layer that match the where and are sorted as defined by orderBy
|
141
|
-
*/
|
142
|
-
async function queryFeatureIds(layer, where, orderBy) {
|
143
|
-
const query = layer.createQuery();
|
144
|
-
query.where = where ? where : "1=1";
|
145
|
-
query.orderByFields = orderBy;
|
146
|
-
return await layer.queryObjectIds(query);
|
147
|
-
}
|
148
162
|
/**
|
149
163
|
* Query the layer for the extent of features with the provided OIDs
|
150
164
|
*
|
@@ -487,7 +501,7 @@ exports.goToSelection = goToSelection;
|
|
487
501
|
exports.highlightAllFeatures = highlightAllFeatures;
|
488
502
|
exports.highlightFeatures = highlightFeatures;
|
489
503
|
exports.queryAllIds = queryAllIds;
|
490
|
-
exports.
|
504
|
+
exports.queryAllOidsWithQueryFeatures = queryAllOidsWithQueryFeatures;
|
491
505
|
exports.queryFeaturesByGeometry = queryFeaturesByGeometry;
|
492
506
|
exports.queryFeaturesByGlobalID = queryFeaturesByGlobalID;
|
493
507
|
exports.queryFeaturesByID = queryFeaturesByID;
|
@@ -10,9 +10,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
10
10
|
const index = require('./index-79b35510.js');
|
11
11
|
const interfaces = require('./interfaces-7cd0a48a.js');
|
12
12
|
const locale = require('./locale-48d76c59.js');
|
13
|
-
const mapViewUtils = require('./mapViewUtils-
|
13
|
+
const mapViewUtils = require('./mapViewUtils-911698e5.js');
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-3bfbbed3.js');
|
15
|
-
const downloadUtils = require('./downloadUtils-
|
15
|
+
const downloadUtils = require('./downloadUtils-83bf79ba.js');
|
16
16
|
require('./esri-loader-fce6a9cb.js');
|
17
17
|
require('./index-c078ea5f.js');
|
18
18
|
require('./solution-resource-a577e84f.js');
|