@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.
Files changed (67) hide show
  1. package/dist/assets/t9n/layer-table/resources.json +1 -0
  2. package/dist/assets/t9n/layer-table/resources_en.json +1 -0
  3. package/dist/cjs/basemap-gallery_7.cjs.entry.js +1 -1
  4. package/dist/cjs/calcite-alert_3.cjs.entry.js +1 -1
  5. package/dist/cjs/calcite-combobox_6.cjs.entry.js +16 -7
  6. package/dist/cjs/card-manager_3.cjs.entry.js +176 -22
  7. package/dist/cjs/crowdsource-manager.cjs.entry.js +12 -1
  8. package/dist/cjs/{downloadUtils-95e4a5b2.js → downloadUtils-8f50633d.js} +2 -2
  9. package/dist/cjs/{index.es-a88403f8.js → index.es-140aa937.js} +2 -2
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
  12. package/dist/cjs/{mapViewUtils-b7d9e71c.js → mapViewUtils-569e9644.js} +17 -0
  13. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  14. package/dist/cjs/solutions-components.cjs.js +1 -1
  15. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +20 -2
  16. package/dist/collection/components/layer-table/layer-table.js +175 -21
  17. package/dist/collection/components/map-layer-picker/map-layer-picker.css +1 -0
  18. package/dist/collection/components/map-layer-picker/map-layer-picker.js +69 -5
  19. package/dist/collection/components/map-picker/map-picker.js +1 -1
  20. package/dist/collection/demos/crowdsource-manager.html +2 -2
  21. package/dist/collection/utils/interfaces.ts +5 -0
  22. package/dist/collection/utils/queryUtils.js +16 -0
  23. package/dist/collection/utils/queryUtils.ts +21 -0
  24. package/dist/components/crowdsource-manager.js +15 -3
  25. package/dist/components/layer-table2.js +175 -21
  26. package/dist/components/map-layer-picker2.js +17 -6
  27. package/dist/components/map-picker2.js +1 -1
  28. package/dist/components/map-select-tools2.js +1 -1
  29. package/dist/components/queryUtils.js +17 -1
  30. package/dist/components/refine-selection2.js +1 -1
  31. package/dist/esm/basemap-gallery_7.entry.js +1 -1
  32. package/dist/esm/calcite-alert_3.entry.js +1 -1
  33. package/dist/esm/calcite-combobox_6.entry.js +16 -7
  34. package/dist/esm/card-manager_3.entry.js +176 -22
  35. package/dist/esm/crowdsource-manager.entry.js +12 -1
  36. package/dist/esm/{downloadUtils-83dd2143.js → downloadUtils-9dee8bc0.js} +2 -2
  37. package/dist/esm/{index.es-0c98e2f3.js → index.es-54e86c8e.js} +2 -2
  38. package/dist/esm/loader.js +1 -1
  39. package/dist/esm/map-select-tools_3.entry.js +2 -2
  40. package/dist/esm/{mapViewUtils-3ff1c264.js → mapViewUtils-066602d5.js} +17 -1
  41. package/dist/esm/public-notification.entry.js +2 -2
  42. package/dist/esm/solutions-components.js +1 -1
  43. package/dist/solutions-components/demos/crowdsource-manager.html +2 -2
  44. package/dist/solutions-components/{p-546a3d3c.entry.js → p-13bfc206.entry.js} +2 -2
  45. package/dist/solutions-components/{p-d6050d57.js → p-1bdd64a0.js} +2 -2
  46. package/dist/solutions-components/{p-b7e2c75b.js → p-531d91d6.js} +1 -1
  47. package/dist/solutions-components/{p-dcd6e7b9.entry.js → p-6656c53e.entry.js} +1 -1
  48. package/dist/solutions-components/{p-a5d924a9.entry.js → p-683cded6.entry.js} +1 -1
  49. package/dist/solutions-components/{p-95ebc2e5.entry.js → p-c2b20b85.entry.js} +1 -1
  50. package/dist/solutions-components/p-c7ff24df.entry.js +6 -0
  51. package/dist/solutions-components/{p-b030a151.js → p-dfdb8411.js} +1 -1
  52. package/dist/solutions-components/p-f7870ec1.entry.js +6 -0
  53. package/dist/solutions-components/p-ffae568b.entry.js +6 -0
  54. package/dist/solutions-components/solutions-components.esm.js +1 -1
  55. package/dist/solutions-components/utils/interfaces.ts +5 -0
  56. package/dist/solutions-components/utils/queryUtils.ts +21 -0
  57. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +8 -0
  58. package/dist/types/components/layer-table/layer-table.d.ts +54 -1
  59. package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +15 -1
  60. package/dist/types/components.d.ts +23 -2
  61. package/dist/types/preact.d.ts +2 -1
  62. package/dist/types/utils/interfaces.d.ts +4 -0
  63. package/dist/types/utils/queryUtils.d.ts +11 -0
  64. package/package.json +1 -1
  65. package/dist/solutions-components/p-1b9709ce.entry.js +0 -6
  66. package/dist/solutions-components/p-4f1c4004.entry.js +0 -6
  67. 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, d as queryObjectIds, e as getQueryGeoms, f as getFeatureLayerView, i as queryFeaturesByGeometry, j as getIdSets, k as highlightAllFeatures } from './mapViewUtils-3ff1c264.js';
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-83dd2143.js';
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, queryAllIds as b, queryFeaturesByGlobalID as c, queryObjectIds as d, getQueryGeoms as e, getFeatureLayerView as f, goToSelection as g, highlightFeatures as h, queryFeaturesByGeometry as i, getIdSets as j, highlightAllFeatures as k, getAllLayers as l, getMapLayerHash as m, getMapTableHash as n, queryFeaturesByID as q };
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-3ff1c264.js';
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-83dd2143.js';
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';