@esri/solutions-components 0.7.22 → 0.7.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/dist/assets/t9n/public-notification/resources.json +2 -3
  2. package/dist/assets/t9n/public-notification/resources_en.json +2 -3
  3. package/dist/cjs/basemap-gallery_7.cjs.entry.js +11 -12
  4. package/dist/cjs/calcite-alert_3.cjs.entry.js +23 -13
  5. package/dist/cjs/card-manager_3.cjs.entry.js +21 -3
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/public-notification.cjs.entry.js +1 -1
  8. package/dist/cjs/solutions-components.cjs.js +1 -1
  9. package/dist/collection/components/edit-card/edit-card.js +23 -13
  10. package/dist/collection/components/floor-filter/floor-filter.js +28 -12
  11. package/dist/collection/components/layer-table/layer-table.js +27 -3
  12. package/dist/collection/components/public-notification/public-notification.js +1 -1
  13. package/dist/collection/demos/crowdsource-manager.html +13 -0
  14. package/dist/components/edit-card2.js +23 -13
  15. package/dist/components/floor-filter2.js +12 -13
  16. package/dist/components/layer-table2.js +22 -4
  17. package/dist/components/public-notification.js +1 -1
  18. package/dist/esm/basemap-gallery_7.entry.js +11 -12
  19. package/dist/esm/calcite-alert_3.entry.js +23 -13
  20. package/dist/esm/card-manager_3.entry.js +21 -3
  21. package/dist/esm/loader.js +1 -1
  22. package/dist/esm/public-notification.entry.js +1 -1
  23. package/dist/esm/solutions-components.js +1 -1
  24. package/dist/solutions-components/demos/crowdsource-manager.html +13 -0
  25. package/dist/solutions-components/p-04f05bc5.entry.js +6 -0
  26. package/dist/solutions-components/{p-d3085b7a.entry.js → p-bacc9b0d.entry.js} +1 -1
  27. package/dist/solutions-components/{p-a40a1eab.entry.js → p-c634d047.entry.js} +1 -1
  28. package/dist/solutions-components/p-eff7f407.entry.js +6 -0
  29. package/dist/solutions-components/solutions-components.esm.js +1 -1
  30. package/dist/types/components/edit-card/edit-card.d.ts +2 -1
  31. package/dist/types/components/floor-filter/floor-filter.d.ts +13 -0
  32. package/dist/types/components/layer-table/layer-table.d.ts +19 -3
  33. package/dist/types/components.d.ts +19 -0
  34. package/dist/types/preact.d.ts +3 -1
  35. package/package.json +2 -2
  36. package/dist/solutions-components/p-630e274b.entry.js +0 -6
  37. package/dist/solutions-components/p-704da348.entry.js +0 -6
@@ -259,8 +259,11 @@ const LayerTable = class {
259
259
  * watch for changes in layer view and verify if it has editing enabled
260
260
  */
261
261
  async _layerWatchHandler() {
262
+ var _a, _b;
262
263
  this._fetchingData = true;
263
264
  this._definitionExpression = this._layer.definitionExpression;
265
+ this._floorField = (_b = (_a = this._layer) === null || _a === void 0 ? void 0 : _a.floorInfo) === null || _b === void 0 ? void 0 : _b.floorField;
266
+ this._updateFloorDefinitionExpression();
264
267
  await this._resetTable();
265
268
  this._updateShareUrl();
266
269
  this._initLayerExpressions();
@@ -324,14 +327,19 @@ const LayerTable = class {
324
327
  }
325
328
  /**
326
329
  * Refresh the table when edits are completed
327
- *
328
330
  */
329
331
  async editsComplete() {
330
332
  await this._refresh();
331
333
  }
332
334
  /**
333
- * Refresh the table when edits are completed
334
- *
335
+ * Refresh the table when floor filter level is changed
336
+ */
337
+ async levelChanged(evt) {
338
+ this._floorLevel = evt.detail;
339
+ this._updateFloorDefinitionExpression();
340
+ }
341
+ /**
342
+ * Refresh the table when
335
343
  */
336
344
  noLayersFound() {
337
345
  this._layer = undefined;
@@ -616,6 +624,16 @@ const LayerTable = class {
616
624
  this._defaultVisibleToolSizeInfos = undefined;
617
625
  }
618
626
  }
627
+ /**
628
+ * Applies a definition expression when floor field and level are available
629
+ *
630
+ * @returns boolean
631
+ */
632
+ _updateFloorDefinitionExpression() {
633
+ if (this._floorField && this._floorLevel) {
634
+ this._layer.definitionExpression = `${this._floorField} = '${this._floorLevel}'`;
635
+ }
636
+ }
619
637
  /**
620
638
  * Returns true when one ore more features are selected
621
639
  *