@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.
Files changed (61) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +65 -31
  2. package/dist/cjs/calcite-alert_4.cjs.entry.js +3 -3
  3. package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +1 -1
  4. package/dist/cjs/calcite-flow_6.cjs.entry.js +1 -1
  5. package/dist/cjs/card-manager_3.cjs.entry.js +19 -19
  6. package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
  7. package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
  8. package/dist/cjs/{downloadUtils-5349717a.js → downloadUtils-83bf79ba.js} +2 -2
  9. package/dist/cjs/feature-list.cjs.entry.js +3 -3
  10. package/dist/cjs/{index.es-aa69b58b.js → index.es-4e523f8b.js} +2 -2
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
  13. package/dist/cjs/{mapViewUtils-6e46ba33.js → mapViewUtils-911698e5.js} +31 -17
  14. package/dist/cjs/{popupUtils-3e65296c.js → popupUtils-e3fa775b.js} +1 -1
  15. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  16. package/dist/cjs/solutions-components.cjs.js +1 -1
  17. package/dist/collection/components/floor-filter/floor-filter.js +66 -30
  18. package/dist/collection/components/layer-table/layer-table.js +18 -18
  19. package/dist/collection/utils/queryUtils.js +30 -0
  20. package/dist/collection/utils/queryUtils.ts +41 -0
  21. package/dist/components/floor-filter2.js +67 -32
  22. package/dist/components/layer-table2.js +18 -18
  23. package/dist/components/queryUtils.js +31 -17
  24. package/dist/esm/basemap-gallery_7.entry.js +65 -31
  25. package/dist/esm/calcite-alert_4.entry.js +3 -3
  26. package/dist/esm/calcite-dropdown-group_2.entry.js +1 -1
  27. package/dist/esm/calcite-flow_6.entry.js +1 -1
  28. package/dist/esm/card-manager_3.entry.js +19 -19
  29. package/dist/esm/crowdsource-manager.entry.js +1 -1
  30. package/dist/esm/crowdsource-reporter.entry.js +1 -1
  31. package/dist/esm/{downloadUtils-5fa0d437.js → downloadUtils-571a502d.js} +2 -2
  32. package/dist/esm/feature-list.entry.js +3 -3
  33. package/dist/esm/{index.es-57c15c9b.js → index.es-2f9f04c5.js} +2 -2
  34. package/dist/esm/loader.js +1 -1
  35. package/dist/esm/map-select-tools_3.entry.js +2 -2
  36. package/dist/esm/{mapViewUtils-4618ddb8.js → mapViewUtils-b8deb4ae.js} +31 -17
  37. package/dist/esm/{popupUtils-650b6bba.js → popupUtils-17193415.js} +1 -1
  38. package/dist/esm/public-notification.entry.js +2 -2
  39. package/dist/esm/solutions-components.js +1 -1
  40. package/dist/solutions-components/{p-81747268.entry.js → p-061da95a.entry.js} +1 -1
  41. package/dist/solutions-components/{p-e1662e32.entry.js → p-16fb8296.entry.js} +1 -1
  42. package/dist/solutions-components/p-1bdf0ba0.entry.js +6 -0
  43. package/dist/solutions-components/{p-a1037b19.js → p-2e23ac2c.js} +1 -1
  44. package/dist/solutions-components/{p-66722851.entry.js → p-2f7bfd8d.entry.js} +1 -1
  45. package/dist/solutions-components/{p-bfdabb9d.entry.js → p-51d5532f.entry.js} +1 -1
  46. package/dist/solutions-components/{p-6f69de4d.js → p-52dba022.js} +2 -2
  47. package/dist/solutions-components/{p-24bf45b7.js → p-57eeed77.js} +1 -1
  48. package/dist/solutions-components/p-5aaa05ef.js +36 -0
  49. package/dist/solutions-components/{p-05b3a5d9.entry.js → p-61bf98bc.entry.js} +1 -1
  50. package/dist/solutions-components/p-a0616647.entry.js +6 -0
  51. package/dist/solutions-components/{p-296375d3.entry.js → p-bb90a138.entry.js} +1 -1
  52. package/dist/solutions-components/{p-6bd6624f.entry.js → p-bda54b12.entry.js} +1 -1
  53. package/dist/solutions-components/{p-cd694107.entry.js → p-c21a6940.entry.js} +1 -1
  54. package/dist/solutions-components/solutions-components.esm.js +1 -1
  55. package/dist/solutions-components/utils/queryUtils.ts +41 -0
  56. package/dist/types/components/floor-filter/floor-filter.d.ts +23 -1
  57. package/dist/types/utils/queryUtils.d.ts +16 -0
  58. package/package.json +1 -1
  59. package/dist/solutions-components/p-2a6db6e8.entry.js +0 -6
  60. package/dist/solutions-components/p-583e5dd0.js +0 -36
  61. 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-6e46ba33.js');
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-5349717a.js');
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.queryFeatureIds = queryFeatureIds;
504
+ exports.queryAllOidsWithQueryFeatures = queryAllOidsWithQueryFeatures;
491
505
  exports.queryFeaturesByGeometry = queryFeaturesByGeometry;
492
506
  exports.queryFeaturesByGlobalID = queryFeaturesByGlobalID;
493
507
  exports.queryFeaturesByID = queryFeaturesByID;
@@ -5,7 +5,7 @@
5
5
  */
6
6
  'use strict';
7
7
 
8
- const downloadUtils = require('./downloadUtils-5349717a.js');
8
+ const downloadUtils = require('./downloadUtils-83bf79ba.js');
9
9
  const locale = require('./locale-48d76c59.js');
10
10
 
11
11
  /** @license
@@ -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-6e46ba33.js');
13
+ const mapViewUtils = require('./mapViewUtils-911698e5.js');
14
14
  const publicNotificationStore = require('./publicNotificationStore-3bfbbed3.js');
15
- const downloadUtils = require('./downloadUtils-5349717a.js');
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');