@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
@@ -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-b7d9e71c.js');
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-95e4a5b2.js');
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-b7d9e71c.js');
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-95e4a5b2.js');
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');