@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
@@ -5,10 +5,10 @@
5
5
  */
6
6
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-ba5da2b0.js';
7
7
  import { a as getComponentClosestLanguage, l as loadModules, g as getLocaleComponentStrings } from './locale-a490c4f6.js';
8
- import { e as goToSelection, h as highlightFeatures, k as queryObjectIds, l as getQueryGeoms, c as getFeatureLayerView, m as queryFeaturesByGeometry, n as getIdSets, o as highlightAllFeatures } from './mapViewUtils-4618ddb8.js';
8
+ import { e as goToSelection, h as highlightFeatures, k as queryObjectIds, l as getQueryGeoms, c as getFeatureLayerView, m as queryFeaturesByGeometry, n as getIdSets, o as highlightAllFeatures } from './mapViewUtils-b8deb4ae.js';
9
9
  import { a as EWorkflowType, e as ESelectionMode, f as EDrawMode } from './interfaces-586e863c.js';
10
10
  import { s as state } from './publicNotificationStore-74c7e9f4.js';
11
- import { d as downloadCSV, a as downloadPDF } from './downloadUtils-5fa0d437.js';
11
+ import { d as downloadCSV, a as downloadPDF } from './downloadUtils-571a502d.js';
12
12
  import './esri-loader-2bf735ed.js';
13
13
  import './index-c06194fa.js';
14
14
  import './solution-resource-0d0eb597.js';
@@ -20,6 +20,36 @@ import { a as EWorkflowType } from './interfaces-586e863c.js';
20
20
  * See the License for the specific language governing permissions and
21
21
  * limitations under the License.
22
22
  */
23
+ /**
24
+ * Query the layer for all OIDs valid for any definition expressions applied to the layer.
25
+ *
26
+ * This query allows OIDs to be returned in the same order as shown in the FeatureTable.
27
+ * FeatureLayer.queryObjectIds can return OIDs in a different order.
28
+ *
29
+ * @param start zero-based index indicating where to begin retrieving features
30
+ * @param layer the layer to retrieve features from
31
+ * @param graphics stores the features
32
+ * @param orderBy One or more field names used to order the query results.
33
+ * Specify ASC (ascending) or DESC (descending) after the field name to control the order.
34
+ * The default order is ASC.
35
+ *
36
+ * @returns Promise with the OIDs sorted based on any orderBy definitions
37
+ */
38
+ async function queryAllOidsWithQueryFeatures(start, layer, graphics, orderBy) {
39
+ const num = layer.capabilities.query.maxRecordCount;
40
+ const query = layer.createQuery();
41
+ query.start = start;
42
+ query.num = num;
43
+ query.returnGeometry = false;
44
+ query.orderByFields = orderBy;
45
+ query.outFields = [layer.objectIdField];
46
+ query.where = layer.definitionExpression || "1=1";
47
+ const result = await layer.queryFeatures(query);
48
+ graphics = graphics.concat(result.features);
49
+ return result.exceededTransferLimit ?
50
+ queryAllOidsWithQueryFeatures(start += num, layer, graphics, orderBy) :
51
+ Promise.resolve(graphics.map(g => g.attributes[layer.objectIdField]));
52
+ }
23
53
  /**
24
54
  * Query the layer for all IDs
25
55
  *
@@ -127,22 +157,6 @@ async function queryFeaturesByGeometry(start, layer, geometry, featuresCollectio
127
157
  queryFeaturesByGeometry(start += num, layer, geometry, featuresCollection) :
128
158
  Promise.resolve(featuresCollection);
129
159
  }
130
- /**
131
- * Query the layer for feature ids that match the provided where clause.
132
- * If no where clause is provided all features will be returned.
133
- *
134
- * @param layer the layer to retrieve features from
135
- * @param where the where clause for the query
136
- * @param orderBy any sort order to apply to the query
137
- *
138
- * @returns Promise with the ids from the layer that match the where and are sorted as defined by orderBy
139
- */
140
- async function queryFeatureIds(layer, where, orderBy) {
141
- const query = layer.createQuery();
142
- query.where = where ? where : "1=1";
143
- query.orderByFields = orderBy;
144
- return await layer.queryObjectIds(query);
145
- }
146
160
  /**
147
161
  * Query the layer for the extent of features with the provided OIDs
148
162
  *
@@ -473,4 +487,4 @@ async function goToSelection(ids, layerView, mapView, flashFeatures = true, feat
473
487
  }
474
488
  }
475
489
 
476
- export { getAllLayers as a, getAllTables as b, getFeatureLayerView as c, getMapLayerHash as d, goToSelection as e, queryAllIds as f, getLayerOrTable as g, highlightFeatures as h, queryFeatureIds as i, queryFeaturesByGlobalID as j, queryObjectIds as k, getQueryGeoms as l, queryFeaturesByGeometry as m, getIdSets as n, highlightAllFeatures as o, getMapTableHash as p, queryFeaturesByID as q };
490
+ export { getAllLayers as a, getAllTables as b, getFeatureLayerView as c, getMapLayerHash as d, goToSelection as e, queryAllIds as f, getLayerOrTable as g, highlightFeatures as h, queryAllOidsWithQueryFeatures as i, queryFeaturesByGlobalID as j, queryObjectIds as k, getQueryGeoms as l, queryFeaturesByGeometry as m, getIdSets as n, highlightAllFeatures as o, getMapTableHash as p, queryFeaturesByID as q };
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import { _ as _prepareAttributeValue } from './downloadUtils-5fa0d437.js';
6
+ import { _ as _prepareAttributeValue } from './downloadUtils-571a502d.js';
7
7
  import { l as loadModules } from './locale-a490c4f6.js';
8
8
 
9
9
  /** @license
@@ -6,9 +6,9 @@
6
6
  import { r as registerInstance, c as createEvent, a as getAssetPath, h, H as Host, g as getElement } from './index-ba5da2b0.js';
7
7
  import { b as EExportType, c as EPageType, a as EWorkflowType } from './interfaces-586e863c.js';
8
8
  import { l as loadModules, g as getLocaleComponentStrings } from './locale-a490c4f6.js';
9
- import { e as goToSelection, h as highlightFeatures } from './mapViewUtils-4618ddb8.js';
9
+ import { e as goToSelection, h as highlightFeatures } from './mapViewUtils-b8deb4ae.js';
10
10
  import { s as state } from './publicNotificationStore-74c7e9f4.js';
11
- import { c as consolidateLabels, r as removeDuplicateLabels } from './downloadUtils-5fa0d437.js';
11
+ import { c as consolidateLabels, r as removeDuplicateLabels } from './downloadUtils-571a502d.js';
12
12
  import './esri-loader-2bf735ed.js';
13
13
  import './index-c06194fa.js';
14
14
  import './solution-resource-0d0eb597.js';