@esri/solutions-components 0.10.20 → 0.10.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. package/dist/cjs/calcite-alert_5.cjs.entry.js +6 -2
  2. package/dist/cjs/crowdsource-manager.cjs.entry.js +17 -3
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/map-select-tools_3.cjs.entry.js +78 -21
  5. package/dist/cjs/public-notification.cjs.entry.js +3 -3
  6. package/dist/cjs/solutions-components.cjs.js +1 -1
  7. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +37 -4
  8. package/dist/collection/components/edit-card/edit-card.js +6 -2
  9. package/dist/collection/components/map-select-tools/map-select-tools.js +78 -21
  10. package/dist/collection/components/public-notification/public-notification.js +5 -5
  11. package/dist/components/crowdsource-manager.js +20 -4
  12. package/dist/components/edit-card2.js +6 -2
  13. package/dist/components/map-select-tools2.js +78 -21
  14. package/dist/components/public-notification.js +3 -3
  15. package/dist/esm/calcite-alert_5.entry.js +6 -2
  16. package/dist/esm/crowdsource-manager.entry.js +17 -3
  17. package/dist/esm/loader.js +1 -1
  18. package/dist/esm/map-select-tools_3.entry.js +78 -21
  19. package/dist/esm/public-notification.entry.js +3 -3
  20. package/dist/esm/solutions-components.js +1 -1
  21. package/dist/solutions-components/{p-4c88578a.entry.js → p-5067d77e.entry.js} +1 -1
  22. package/dist/solutions-components/{p-9fed495d.entry.js → p-a85fd786.entry.js} +1 -1
  23. package/dist/solutions-components/p-bd2278cf.entry.js +6 -0
  24. package/dist/solutions-components/p-cd5a9034.entry.js +6 -0
  25. package/dist/solutions-components/solutions-components.esm.js +1 -1
  26. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +8 -0
  27. package/dist/types/components/edit-card/edit-card.d.ts +3 -1
  28. package/dist/types/components/map-select-tools/map-select-tools.d.ts +22 -0
  29. package/dist/types/components.d.ts +8 -0
  30. package/package.json +1 -1
  31. package/dist/solutions-components/p-5612aa0c.entry.js +0 -6
  32. package/dist/solutions-components/p-bde2619f.entry.js +0 -6
@@ -1287,6 +1287,8 @@ const EditCard = class {
1287
1287
  _editor;
1288
1288
  /**
1289
1289
  * esri/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html
1290
+ * OR
1291
+ * esri/layers/support/SubtypeSublayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html
1290
1292
  */
1291
1293
  _layer;
1292
1294
  /**
@@ -1391,7 +1393,9 @@ const EditCard = class {
1391
1393
  if (this._layerEditHandle) {
1392
1394
  this._layerEditHandle.remove();
1393
1395
  }
1394
- this._layerEditHandle = this._layer.on("edits", () => {
1396
+ // #896 Editing on sybtype group layer is failing in Manager
1397
+ const layer = this._layer.type === "subtype-sublayer" ? this._layer.parent : this._layer;
1398
+ this._layerEditHandle = layer.on("edits", () => {
1395
1399
  this.editsComplete.emit();
1396
1400
  });
1397
1401
  }
@@ -1406,7 +1410,7 @@ const EditCard = class {
1406
1410
  !this.graphics[0].layer.editingEnabled : true;
1407
1411
  const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
1408
1412
  const loadingClass = this._editorLoading ? "" : "display-none";
1409
- return (index.h(index.Host, { key: '1520951922ca98ee92ccc8f7119d7fa3666eddfa' }, index.h("div", { key: 'd436d1660fd46bba90dd5dadc6962c619b99143e', class: "position-absolute" }, editDisabled ? (index.h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, index.h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, index.h("div", { key: 'cff16539fd7b4a85234e0d15d2170470d95d0ad9', class: "position-absolute" }, index.h("div", { key: '0b96a2d27a5df344da9192a01d5c42496e057cd1', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), index.h("calcite-loader", { key: '49cadf3456d1f3289abde18c35b726471ac551cd', class: loadingClass, label: "", scale: "s" })))));
1413
+ return (index.h(index.Host, { key: '16dd78822ee6d7c4e2da97c4b7ec7c0678b51e68' }, index.h("div", { key: '8aba2b86c7bf8e7dfbf7567b156e02b23b728f4e', class: "position-absolute" }, editDisabled ? (index.h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, index.h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, index.h("div", { key: '8230d44ec05ff207681e6333b7f08c80748c4f3d', class: "position-absolute" }, index.h("div", { key: '71792b5737c43a024ebc677ae168d74569349585', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), index.h("calcite-loader", { key: '47176534c25769af8ae107c3864901c4294b4359', class: loadingClass, label: "", scale: "s" })))));
1410
1414
  }
1411
1415
  //--------------------------------------------------------------------------
1412
1416
  //
@@ -22,7 +22,7 @@ const CrowdsourceManager = class {
22
22
  index.registerInstance(this, hostRef);
23
23
  this.showIntroductionWindow = index.createEvent(this, "showIntroductionWindow", 7);
24
24
  this.showCoverPage = index.createEvent(this, "showCoverPage", 7);
25
- this.appLayout = 'splitView';
25
+ this.appLayout = undefined;
26
26
  this.appProxies = undefined;
27
27
  this.basemapConfig = undefined;
28
28
  this.coverPageEnabled = undefined;
@@ -45,6 +45,7 @@ const CrowdsourceManager = class {
45
45
  this.enableSearch = true;
46
46
  this.enableShare = false;
47
47
  this.enableZoom = true;
48
+ this.hideMapOnLoad = false;
48
49
  this.mapInfos = [];
49
50
  this.onlyShowUpdatableLayers = true;
50
51
  this.popupHeaderColor = undefined;
@@ -128,6 +129,12 @@ const CrowdsourceManager = class {
128
129
  enableZoomWatchHandler() {
129
130
  this._initMapZoom();
130
131
  }
132
+ /**
133
+ * When true and no appLayout is defined the map will be hidden on load
134
+ */
135
+ hideMapOnLoadWatchHandler() {
136
+ console.warn("hideMapOnLoad will be removed. Please use appLayout to control layout options.");
137
+ }
131
138
  //--------------------------------------------------------------------------
132
139
  //
133
140
  // Methods (public)
@@ -206,7 +213,7 @@ const CrowdsourceManager = class {
206
213
  render() {
207
214
  // only avoid border when we have a header color that is not white
208
215
  const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
209
- return (index.h(index.Host, { key: '113737d5d1c315a85d7fd72f2f79aa1ad4acd03d' }, index.h("calcite-shell", { key: 'b5e9653ecc35019333ed8a7d7f91c7b4c4930fcc', class: "position-relative" }, index.h("calcite-panel", { key: '45cd232c8ea8706315e9fc15bb35f99698c33467', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter()), this._filterModal()));
216
+ return (index.h(index.Host, { key: '28614b892c93b83de202a681a756027472d092c2' }, index.h("calcite-shell", { key: '8f9c57fa9d1c1c88dbac9706376aad6bbd425691', class: "position-relative" }, index.h("calcite-panel", { key: '3c156df89f396425c2711a39968017cc23910a55', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter()), this._filterModal()));
210
217
  }
211
218
  /**
212
219
  * Called after each render
@@ -225,6 +232,12 @@ const CrowdsourceManager = class {
225
232
  */
226
233
  async componentDidLoad() {
227
234
  this._resizeObserver.observe(this.el);
235
+ if (this.hideMapOnLoad && !this.appLayout) {
236
+ this.appLayout = 'tableView';
237
+ }
238
+ else if (!this.appLayout) {
239
+ this.appLayout = 'splitView';
240
+ }
228
241
  this._isMapViewOnLoad = this.appLayout === 'mapView';
229
242
  this._setActiveLayout(this.appLayout);
230
243
  }
@@ -666,7 +679,8 @@ const CrowdsourceManager = class {
666
679
  this._translations = messages[0];
667
680
  }
668
681
  static get watchers() { return {
669
- "enableZoom": ["enableZoomWatchHandler"]
682
+ "enableZoom": ["enableZoomWatchHandler"],
683
+ "hideMapOnLoad": ["hideMapOnLoadWatchHandler"]
670
684
  }; }
671
685
  };
672
686
  CrowdsourceManager.style = CrowdsourceManagerStyle0;