@esri/solutions-components 0.5.6 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. package/dist/assets/t9n/map-select-tools/resources.json +2 -2
  2. package/dist/assets/t9n/map-select-tools/resources_en.json +2 -2
  3. package/dist/assets/t9n/public-notification/resources.json +1 -1
  4. package/dist/assets/t9n/public-notification/resources_en.json +1 -1
  5. package/dist/cjs/calcite-input-text_5.cjs.entry.js +3 -3
  6. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +1 -1
  7. package/dist/cjs/public-notification.cjs.entry.js +12 -1
  8. package/dist/cjs/solution-configuration.cjs.entry.js +1 -1
  9. package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
  10. package/dist/cjs/{solution-store-70002b57.js → solution-store-ca4639d5.js} +3 -3
  11. package/dist/collection/components/map-select-tools/map-select-tools.css +7 -2
  12. package/dist/collection/components/map-select-tools/map-select-tools.js +2 -2
  13. package/dist/collection/components/public-notification/public-notification.js +12 -1
  14. package/dist/components/map-select-tools2.js +14 -14
  15. package/dist/components/public-notification.js +12 -1
  16. package/dist/components/solution-store.js +3 -3
  17. package/dist/esm/calcite-input-text_5.entry.js +3 -3
  18. package/dist/esm/calcite-shell-panel_14.entry.js +1 -1
  19. package/dist/esm/public-notification.entry.js +12 -1
  20. package/dist/esm/solution-configuration.entry.js +1 -1
  21. package/dist/esm/solution-contents_3.entry.js +1 -1
  22. package/dist/esm/{solution-store-5d068b07.js → solution-store-70f874f8.js} +3 -3
  23. package/dist/solutions-components/{p-41802f6b.entry.js → p-16dfb254.entry.js} +1 -1
  24. package/dist/solutions-components/{p-7e409786.entry.js → p-1b08d9d6.entry.js} +3 -3
  25. package/dist/solutions-components/{p-4769a2a5.entry.js → p-5ed755a2.entry.js} +1 -1
  26. package/dist/solutions-components/{p-826a814d.js → p-78719506.js} +2 -2
  27. package/dist/solutions-components/{p-9f620303.entry.js → p-b4b19fd3.entry.js} +1 -1
  28. package/dist/solutions-components/p-f66a7ea7.entry.js +6 -0
  29. package/dist/solutions-components/solutions-components.esm.js +1 -1
  30. package/package.json +1 -1
  31. package/dist/solutions-components/p-6e87198f.entry.js +0 -6
@@ -10,6 +10,6 @@
10
10
  "sketchLayer": "Sketch Layer",
11
11
  "useLayerFeatures": "Use layer features",
12
12
  "inputLayer": "Input layer",
13
- "useLayerFeaturesTooltip": "Select a layer that can be used as a boundary or intersecting feature for the input layer",
14
- "useSearchDistanceTootip": "Define a distance for a search buffer that will select input features that intersect the buffer"
13
+ "useLayerFeaturesTooltip": "Choose a layer and use the sketch tools to point to features that can be used as a boundary to select intersecting features from the input layer.",
14
+ "useSearchDistanceTootip": "Define a distance for a search buffer that will select input features that intersect the buffer."
15
15
  }
@@ -10,6 +10,6 @@
10
10
  "sketchLayer": "Sketch Layer",
11
11
  "useLayerFeatures": "Use layer features",
12
12
  "inputLayer": "Input layer",
13
- "useLayerFeaturesTooltip": "Select a layer that can be used as a boundary or intersecting feature for the input layer",
14
- "useSearchDistanceTootip": "Define a distance for a search buffer that will select input features that intersect the buffer"
13
+ "useLayerFeaturesTooltip": "Choose a layer and use the sketch tools to point to features that can be used as a boundary to select intersecting features from the input layer.",
14
+ "useSearchDistanceTootip": "Define a distance for a search buffer that will select input features that intersect the buffer."
15
15
  }
@@ -22,7 +22,7 @@
22
22
  "selectLayerTip": "Draw shapes to select features from the chosen selection layer; the results will be used to select features from the addressee layer",
23
23
  "selectSketchTip": "Use sketch tools to draw graphics in the map to select intersecting features in the addressee layer.",
24
24
  "optionalSearchDistance": "and optionally add search distance.",
25
- "listHasSetsTip": "Edit or delete existing lists or choose a layer and click Create new list",
25
+ "listHasSetsTip": "Edit or delete existing lists or click Create new list.",
26
26
  "uniqueCout": "Unique Count: {{n}}",
27
27
  "searchDistance": "Search distance",
28
28
  "useLayerFeatures": "Use layer features",
@@ -22,7 +22,7 @@
22
22
  "selectLayerTip": "Draw shapes to select features from the chosen selection layer; the results will be used to select features from the addressee layer",
23
23
  "selectSketchTip": "Use sketch tools to draw graphics in the map to select intersecting features in the addressee layer.",
24
24
  "optionalSearchDistance": "and optionally add search distance.",
25
- "listHasSetsTip": "Edit or delete existing lists or choose a layer and click Create new list",
25
+ "listHasSetsTip": "Edit or delete existing lists or click Create new list.",
26
26
  "uniqueCout": "Unique Count: {{n}}",
27
27
  "searchDistance": "Search distance",
28
28
  "useLayerFeatures": "Use layer features",
@@ -474,7 +474,7 @@ const Notice = class {
474
474
  };
475
475
  Notice.style = noticeCss;
476
476
 
477
- const mapSelectToolsCss = ":host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-ui-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:\"1rem\" !important}.end-border{-webkit-border-end:1px solid var(--calcite-ui-border-2);border-inline-end:1px solid var(--calcite-ui-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.tooltip-container{justify-content:center;display:flex}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.icon{--calcite-ui-icon-color:var(--calcite-ui-brand)}";
477
+ const mapSelectToolsCss = ":host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-ui-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:\"1rem\" !important}.end-border{-webkit-border-end:1px solid var(--calcite-ui-border-2);border-inline-end:1px solid var(--calcite-ui-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.tooltip-container{display:flex}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.icon{--calcite-ui-icon-color:var(--calcite-ui-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}";
478
478
 
479
479
  const MapSelectTools = class {
480
480
  constructor(hostRef) {
@@ -644,14 +644,14 @@ const MapSelectTools = class {
644
644
  var _a, _b;
645
645
  const showBufferToolsClass = this._searchDistanceEnabled ? "search-distance" : "div-not-visible";
646
646
  const bufferDistance = typeof ((_a = this.selectionSet) === null || _a === void 0 ? void 0 : _a.distance) === "number" ? this.selectionSet.distance : this.defaultBufferDistance;
647
- return (index.h("div", null, index.h("div", { class: "padding-top-1 display-flex" }, index.h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, index.h("div", { class: "tooltip-container" }, this._translations.searchDistance, index.h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "search-distance-icon", scale: "s" }), index.h("calcite-tooltip", { label: "Data disclaimer", placement: "auto", "reference-element": "search-distance-icon" }, index.h("span", null, this._translations.useSearchDistanceTootip))), index.h("calcite-switch", { checked: this._searchDistanceEnabled, onCalciteSwitchChange: () => this._searchDistanceEnabled = !this._searchDistanceEnabled }))), index.h("div", { class: showBufferToolsClass }, index.h("buffer-tools", { disabled: !this._searchDistanceEnabled, distance: bufferDistance, geometries: this.geometries, onBufferComplete: (evt) => this._bufferComplete(evt), ref: (el) => this._bufferTools = el, unit: ((_b = this.selectionSet) === null || _b === void 0 ? void 0 : _b.unit) || this.defaultBufferUnit }))));
647
+ return (index.h("div", null, index.h("div", { class: "padding-top-1 display-flex" }, index.h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, index.h("div", { class: "tooltip-container" }, this._translations.searchDistance, index.h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "search-distance-icon", scale: "s" }))), index.h("calcite-popover", { closable: true, label: "", referenceElement: "search-distance-icon" }, index.h("span", { class: "tooltip-message" }, this._translations.useSearchDistanceTootip)), index.h("calcite-switch", { checked: this._searchDistanceEnabled, onCalciteSwitchChange: () => this._searchDistanceEnabled = !this._searchDistanceEnabled })), index.h("div", { class: showBufferToolsClass }, index.h("buffer-tools", { disabled: !this._searchDistanceEnabled, distance: bufferDistance, geometries: this.geometries, onBufferComplete: (evt) => this._bufferComplete(evt), ref: (el) => this._bufferTools = el, unit: ((_b = this.selectionSet) === null || _b === void 0 ? void 0 : _b.unit) || this.defaultBufferUnit }))));
648
648
  }
649
649
  /**
650
650
  * Renders the map layer picker component.
651
651
  */
652
652
  _getUseLayerFeaturesOptions() {
653
653
  const useLayerFeaturesClass = this._useLayerFeaturesEnabled ? "div-visible" : "div-not-visible";
654
- return (index.h("div", null, index.h("div", { class: "padding-top-1 display-flex" }, index.h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, index.h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, index.h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "use-layer-features-icon", scale: "s" }), index.h("calcite-tooltip", { label: "Data disclaimer", placement: "auto", "reference-element": "use-layer-features-icon" }, index.h("span", null, this._translations.useLayerFeaturesTooltip))), index.h("calcite-switch", { checked: this._useLayerFeaturesEnabled, onCalciteSwitchChange: () => { this._useLayerFeaturesEnabledChanged(); } }))), index.h("div", { class: useLayerFeaturesClass + " padding-top-1" }, index.h("map-layer-picker", { enabledLayerIds: this.enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedLayerIds: this.layerViews.map(l => l.layer.id), selectionMode: "single" }))));
654
+ return (index.h("div", null, index.h("div", { class: "padding-top-1 display-flex" }, index.h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, index.h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, index.h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "use-layer-features-icon", scale: "s" }))), index.h("calcite-popover", { closable: true, label: "", referenceElement: "use-layer-features-icon" }, index.h("span", { class: "tooltip-message" }, this._translations.useLayerFeaturesTooltip)), index.h("calcite-switch", { checked: this._useLayerFeaturesEnabled, onCalciteSwitchChange: () => { this._useLayerFeaturesEnabledChanged(); } })), index.h("div", { class: useLayerFeaturesClass + " padding-top-1" }, index.h("map-layer-picker", { enabledLayerIds: this.enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedLayerIds: this.layerViews.map(l => l.layer.id), selectionMode: "single" }))));
655
655
  }
656
656
  /**
657
657
  * Renders the number of selected features
@@ -22,7 +22,7 @@ const sharedListRender = require('./shared-list-render-298c77b3.js');
22
22
  const resources$1 = require('./resources-bbd38cff.js');
23
23
  const resources = require('./resources-b76585de.js');
24
24
  const locale$1 = require('./locale-b113c6b2.js');
25
- const solutionStore = require('./solution-store-70002b57.js');
25
+ const solutionStore = require('./solution-store-ca4639d5.js');
26
26
  const interfaces = require('./interfaces-842c84a1.js');
27
27
  require('./resources-1f836572.js');
28
28
  require('./key-d55baa11.js');
@@ -310,7 +310,18 @@ const PublicNotification = class {
310
310
  return (index.h("div", { class: "padding-top-1-2 padding-bottom-1-2" }, index.h("calcite-list", { class: "list-border margin-sides-1" }, this._selectionSets.reduce((prev, cur, i) => {
311
311
  var _a;
312
312
  const ids = this._getSelectionSetIds(cur);
313
- prev.push((index.h("calcite-list-item", { description: this._translations.selectedFeatures.replace("{{n}}", ids.length.toString()), label: cur.label, onClick: () => this._gotoSelection(cur, this.mapView) }, index.h("div", { slot: "content" }, index.h("div", { class: "list-label" }, cur.label), index.h("div", { class: "list-description" }, (_a = cur === null || cur === void 0 ? void 0 : cur.layerView) === null || _a === void 0 ? void 0 : _a.layer.title), index.h("div", { class: "list-description" }, this._translations.selectedFeatures.replace("{{n}}", ids.length.toString()))), this._getAction(true, "pencil", "", (evt) => this._openSelection(cur, evt), false, "actions-end"), this._getAction(true, "x", "", (evt) => this._deleteSelection(i, evt), false, "actions-end"))));
313
+ let validSet = true;
314
+ if (cur.workflowType === interfaces.EWorkflowType.REFINE) {
315
+ const numIds = Object.keys(cur.refineInfos).reduce((_prev, _cur) => {
316
+ const refineInfo = cur.refineInfos[_cur];
317
+ _prev += refineInfo.addIds.length + refineInfo.removeIds.length;
318
+ return _prev;
319
+ }, 0);
320
+ validSet = numIds > 0;
321
+ }
322
+ if (validSet) {
323
+ prev.push((index.h("calcite-list-item", { description: this._translations.selectedFeatures.replace("{{n}}", ids.length.toString()), label: cur.label, onClick: () => this._gotoSelection(cur, this.mapView) }, index.h("div", { slot: "content" }, index.h("div", { class: "list-label" }, cur.label), index.h("div", { class: "list-description" }, (_a = cur === null || cur === void 0 ? void 0 : cur.layerView) === null || _a === void 0 ? void 0 : _a.layer.title), index.h("div", { class: "list-description" }, this._translations.selectedFeatures.replace("{{n}}", ids.length.toString()))), this._getAction(true, "pencil", "", (evt) => this._openSelection(cur, evt), false, "actions-end"), this._getAction(true, "x", "", (evt) => this._deleteSelection(i, evt), false, "actions-end"))));
324
+ }
314
325
  return prev;
315
326
  }, []))));
316
327
  }
@@ -8,7 +8,7 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-6654298b.js');
11
- const solutionStore = require('./solution-store-70002b57.js');
11
+ const solutionStore = require('./solution-store-ca4639d5.js');
12
12
  const locale = require('./locale-b113c6b2.js');
13
13
  require('./index-e1b1954f.js');
14
14
  require('./interfaces-842c84a1.js');
@@ -8,7 +8,7 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-6654298b.js');
11
- const solutionStore = require('./solution-store-70002b57.js');
11
+ const solutionStore = require('./solution-store-ca4639d5.js');
12
12
  const locale = require('./locale-b113c6b2.js');
13
13
  require('./interfaces-842c84a1.js');
14
14
  require('./index-e1b1954f.js');
@@ -899,7 +899,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
899
899
  });
900
900
 
901
901
  /*!
902
- * @esri/arcgis-html-sanitizer - v3.0.0 - Mon Aug 22 2022 11:29:01 GMT-0400 (Eastern Daylight Time)
902
+ * @esri/arcgis-html-sanitizer - v3.0.1 - Tue Nov 15 2022 09:46:54 GMT-0800 (Pacific Standard Time)
903
903
  * Copyright (c) 2022 - Environmental Systems Research Institute, Inc.
904
904
  * Apache-2.0
905
905
  *
@@ -2134,7 +2134,7 @@ function parseTag$1(html, onTag, escapeHtml) {
2134
2134
  lastPos = currentPos;
2135
2135
  continue;
2136
2136
  }
2137
- if (c === ">" || currentPos === len - 1) {
2137
+ if (c === ">") {
2138
2138
  rethtml += escapeHtml(html.slice(lastPos, tagStart));
2139
2139
  currentHtml = html.slice(tagStart, currentPos + 1);
2140
2140
  currentTagName = getTagName(currentHtml);
@@ -2169,7 +2169,7 @@ function parseTag$1(html, onTag, escapeHtml) {
2169
2169
  }
2170
2170
  }
2171
2171
  }
2172
- if (lastPos < len) {
2172
+ if (lastPos < html.length) {
2173
2173
  rethtml += escapeHtml(html.substr(lastPos));
2174
2174
  }
2175
2175
 
@@ -77,7 +77,6 @@
77
77
  }
78
78
 
79
79
  .tooltip-container {
80
- justify-content: center;
81
80
  display: flex;
82
81
  }
83
82
 
@@ -88,4 +87,10 @@
88
87
 
89
88
  .icon {
90
89
  --calcite-ui-icon-color: var(--calcite-ui-brand);
91
- }
90
+ }
91
+
92
+ .tooltip-message {
93
+ padding: 5px 8px;
94
+ font-weight: var(--calcite-font-weight-normal);
95
+ color: var(--calcite-ui-text-2);
96
+ }
@@ -191,14 +191,14 @@ export class MapSelectTools {
191
191
  var _a, _b;
192
192
  const showBufferToolsClass = this._searchDistanceEnabled ? "search-distance" : "div-not-visible";
193
193
  const bufferDistance = typeof ((_a = this.selectionSet) === null || _a === void 0 ? void 0 : _a.distance) === "number" ? this.selectionSet.distance : this.defaultBufferDistance;
194
- return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.searchDistance, h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "search-distance-icon", scale: "s" }), h("calcite-tooltip", { label: "Data disclaimer", placement: "auto", "reference-element": "search-distance-icon" }, h("span", null, this._translations.useSearchDistanceTootip))), h("calcite-switch", { checked: this._searchDistanceEnabled, onCalciteSwitchChange: () => this._searchDistanceEnabled = !this._searchDistanceEnabled }))), h("div", { class: showBufferToolsClass }, h("buffer-tools", { disabled: !this._searchDistanceEnabled, distance: bufferDistance, geometries: this.geometries, onBufferComplete: (evt) => this._bufferComplete(evt), ref: (el) => this._bufferTools = el, unit: ((_b = this.selectionSet) === null || _b === void 0 ? void 0 : _b.unit) || this.defaultBufferUnit }))));
194
+ return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.searchDistance, h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "search-distance-icon", scale: "s" }))), h("calcite-popover", { closable: true, label: "", referenceElement: "search-distance-icon" }, h("span", { class: "tooltip-message" }, this._translations.useSearchDistanceTootip)), h("calcite-switch", { checked: this._searchDistanceEnabled, onCalciteSwitchChange: () => this._searchDistanceEnabled = !this._searchDistanceEnabled })), h("div", { class: showBufferToolsClass }, h("buffer-tools", { disabled: !this._searchDistanceEnabled, distance: bufferDistance, geometries: this.geometries, onBufferComplete: (evt) => this._bufferComplete(evt), ref: (el) => this._bufferTools = el, unit: ((_b = this.selectionSet) === null || _b === void 0 ? void 0 : _b.unit) || this.defaultBufferUnit }))));
195
195
  }
196
196
  /**
197
197
  * Renders the map layer picker component.
198
198
  */
199
199
  _getUseLayerFeaturesOptions() {
200
200
  const useLayerFeaturesClass = this._useLayerFeaturesEnabled ? "div-visible" : "div-not-visible";
201
- return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "use-layer-features-icon", scale: "s" }), h("calcite-tooltip", { label: "Data disclaimer", placement: "auto", "reference-element": "use-layer-features-icon" }, h("span", null, this._translations.useLayerFeaturesTooltip))), h("calcite-switch", { checked: this._useLayerFeaturesEnabled, onCalciteSwitchChange: () => { this._useLayerFeaturesEnabledChanged(); } }))), h("div", { class: useLayerFeaturesClass + " padding-top-1" }, h("map-layer-picker", { enabledLayerIds: this.enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedLayerIds: this.layerViews.map(l => l.layer.id), selectionMode: "single" }))));
201
+ return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "use-layer-features-icon", scale: "s" }))), h("calcite-popover", { closable: true, label: "", referenceElement: "use-layer-features-icon" }, h("span", { class: "tooltip-message" }, this._translations.useLayerFeaturesTooltip)), h("calcite-switch", { checked: this._useLayerFeaturesEnabled, onCalciteSwitchChange: () => { this._useLayerFeaturesEnabledChanged(); } })), h("div", { class: useLayerFeaturesClass + " padding-top-1" }, h("map-layer-picker", { enabledLayerIds: this.enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedLayerIds: this.layerViews.map(l => l.layer.id), selectionMode: "single" }))));
202
202
  }
203
203
  /**
204
204
  * Renders the number of selected features
@@ -314,7 +314,18 @@ export class PublicNotification {
314
314
  return (h("div", { class: "padding-top-1-2 padding-bottom-1-2" }, h("calcite-list", { class: "list-border margin-sides-1" }, this._selectionSets.reduce((prev, cur, i) => {
315
315
  var _a;
316
316
  const ids = this._getSelectionSetIds(cur);
317
- prev.push((h("calcite-list-item", { description: this._translations.selectedFeatures.replace("{{n}}", ids.length.toString()), label: cur.label, onClick: () => this._gotoSelection(cur, this.mapView) }, h("div", { slot: "content" }, h("div", { class: "list-label" }, cur.label), h("div", { class: "list-description" }, (_a = cur === null || cur === void 0 ? void 0 : cur.layerView) === null || _a === void 0 ? void 0 : _a.layer.title), h("div", { class: "list-description" }, this._translations.selectedFeatures.replace("{{n}}", ids.length.toString()))), this._getAction(true, "pencil", "", (evt) => this._openSelection(cur, evt), false, "actions-end"), this._getAction(true, "x", "", (evt) => this._deleteSelection(i, evt), false, "actions-end"))));
317
+ let validSet = true;
318
+ if (cur.workflowType === EWorkflowType.REFINE) {
319
+ const numIds = Object.keys(cur.refineInfos).reduce((_prev, _cur) => {
320
+ const refineInfo = cur.refineInfos[_cur];
321
+ _prev += refineInfo.addIds.length + refineInfo.removeIds.length;
322
+ return _prev;
323
+ }, 0);
324
+ validSet = numIds > 0;
325
+ }
326
+ if (validSet) {
327
+ prev.push((h("calcite-list-item", { description: this._translations.selectedFeatures.replace("{{n}}", ids.length.toString()), label: cur.label, onClick: () => this._gotoSelection(cur, this.mapView) }, h("div", { slot: "content" }, h("div", { class: "list-label" }, cur.label), h("div", { class: "list-description" }, (_a = cur === null || cur === void 0 ? void 0 : cur.layerView) === null || _a === void 0 ? void 0 : _a.layer.title), h("div", { class: "list-description" }, this._translations.selectedFeatures.replace("{{n}}", ids.length.toString()))), this._getAction(true, "pencil", "", (evt) => this._openSelection(cur, evt), false, "actions-end"), this._getAction(true, "x", "", (evt) => this._deleteSelection(i, evt), false, "actions-end"))));
328
+ }
318
329
  return prev;
319
330
  }, []))));
320
331
  }
@@ -22,14 +22,14 @@ import { d as defineCustomElement$b } from './input-message.js';
22
22
  import { d as defineCustomElement$a } from './label.js';
23
23
  import { d as defineCustomElement$9 } from './loader.js';
24
24
  import { d as defineCustomElement$8 } from './option.js';
25
- import { d as defineCustomElement$7 } from './progress.js';
26
- import { d as defineCustomElement$6 } from './select.js';
27
- import { d as defineCustomElement$5 } from './slider.js';
28
- import { d as defineCustomElement$4 } from './switch.js';
29
- import { d as defineCustomElement$3 } from './tooltip.js';
25
+ import { d as defineCustomElement$7 } from './popover.js';
26
+ import { d as defineCustomElement$6 } from './progress.js';
27
+ import { d as defineCustomElement$5 } from './select.js';
28
+ import { d as defineCustomElement$4 } from './slider.js';
29
+ import { d as defineCustomElement$3 } from './switch.js';
30
30
  import { d as defineCustomElement$2 } from './map-draw-tools2.js';
31
31
 
32
- const mapSelectToolsCss = ":host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-ui-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:\"1rem\" !important}.end-border{-webkit-border-end:1px solid var(--calcite-ui-border-2);border-inline-end:1px solid var(--calcite-ui-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.tooltip-container{justify-content:center;display:flex}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.icon{--calcite-ui-icon-color:var(--calcite-ui-brand)}";
32
+ const mapSelectToolsCss = ":host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-ui-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:\"1rem\" !important}.end-border{-webkit-border-end:1px solid var(--calcite-ui-border-2);border-inline-end:1px solid var(--calcite-ui-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.tooltip-container{display:flex}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.icon{--calcite-ui-icon-color:var(--calcite-ui-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}";
33
33
 
34
34
  const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
35
35
  constructor() {
@@ -200,14 +200,14 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
200
200
  var _a, _b;
201
201
  const showBufferToolsClass = this._searchDistanceEnabled ? "search-distance" : "div-not-visible";
202
202
  const bufferDistance = typeof ((_a = this.selectionSet) === null || _a === void 0 ? void 0 : _a.distance) === "number" ? this.selectionSet.distance : this.defaultBufferDistance;
203
- return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.searchDistance, h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "search-distance-icon", scale: "s" }), h("calcite-tooltip", { label: "Data disclaimer", placement: "auto", "reference-element": "search-distance-icon" }, h("span", null, this._translations.useSearchDistanceTootip))), h("calcite-switch", { checked: this._searchDistanceEnabled, onCalciteSwitchChange: () => this._searchDistanceEnabled = !this._searchDistanceEnabled }))), h("div", { class: showBufferToolsClass }, h("buffer-tools", { disabled: !this._searchDistanceEnabled, distance: bufferDistance, geometries: this.geometries, onBufferComplete: (evt) => this._bufferComplete(evt), ref: (el) => this._bufferTools = el, unit: ((_b = this.selectionSet) === null || _b === void 0 ? void 0 : _b.unit) || this.defaultBufferUnit }))));
203
+ return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.searchDistance, h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "search-distance-icon", scale: "s" }))), h("calcite-popover", { closable: true, label: "", referenceElement: "search-distance-icon" }, h("span", { class: "tooltip-message" }, this._translations.useSearchDistanceTootip)), h("calcite-switch", { checked: this._searchDistanceEnabled, onCalciteSwitchChange: () => this._searchDistanceEnabled = !this._searchDistanceEnabled })), h("div", { class: showBufferToolsClass }, h("buffer-tools", { disabled: !this._searchDistanceEnabled, distance: bufferDistance, geometries: this.geometries, onBufferComplete: (evt) => this._bufferComplete(evt), ref: (el) => this._bufferTools = el, unit: ((_b = this.selectionSet) === null || _b === void 0 ? void 0 : _b.unit) || this.defaultBufferUnit }))));
204
204
  }
205
205
  /**
206
206
  * Renders the map layer picker component.
207
207
  */
208
208
  _getUseLayerFeaturesOptions() {
209
209
  const useLayerFeaturesClass = this._useLayerFeaturesEnabled ? "div-visible" : "div-not-visible";
210
- return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "use-layer-features-icon", scale: "s" }), h("calcite-tooltip", { label: "Data disclaimer", placement: "auto", "reference-element": "use-layer-features-icon" }, h("span", null, this._translations.useLayerFeaturesTooltip))), h("calcite-switch", { checked: this._useLayerFeaturesEnabled, onCalciteSwitchChange: () => { this._useLayerFeaturesEnabledChanged(); } }))), h("div", { class: useLayerFeaturesClass + " padding-top-1" }, h("map-layer-picker", { enabledLayerIds: this.enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedLayerIds: this.layerViews.map(l => l.layer.id), selectionMode: "single" }))));
210
+ return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "use-layer-features-icon", scale: "s" }))), h("calcite-popover", { closable: true, label: "", referenceElement: "use-layer-features-icon" }, h("span", { class: "tooltip-message" }, this._translations.useLayerFeaturesTooltip)), h("calcite-switch", { checked: this._useLayerFeaturesEnabled, onCalciteSwitchChange: () => { this._useLayerFeaturesEnabledChanged(); } })), h("div", { class: useLayerFeaturesClass + " padding-top-1" }, h("map-layer-picker", { enabledLayerIds: this.enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedLayerIds: this.layerViews.map(l => l.layer.id), selectionMode: "single" }))));
211
211
  }
212
212
  /**
213
213
  * Renders the number of selected features
@@ -809,7 +809,7 @@ function defineCustomElement() {
809
809
  if (typeof customElements === "undefined") {
810
810
  return;
811
811
  }
812
- const components = ["map-select-tools", "buffer-tools", "calcite-action", "calcite-chip", "calcite-combobox", "calcite-combobox-item", "calcite-graph", "calcite-icon", "calcite-input", "calcite-input-message", "calcite-label", "calcite-loader", "calcite-option", "calcite-progress", "calcite-select", "calcite-slider", "calcite-switch", "calcite-tooltip", "map-draw-tools", "map-layer-picker"];
812
+ const components = ["map-select-tools", "buffer-tools", "calcite-action", "calcite-chip", "calcite-combobox", "calcite-combobox-item", "calcite-graph", "calcite-icon", "calcite-input", "calcite-input-message", "calcite-label", "calcite-loader", "calcite-option", "calcite-popover", "calcite-progress", "calcite-select", "calcite-slider", "calcite-switch", "map-draw-tools", "map-layer-picker"];
813
813
  components.forEach(tagName => { switch (tagName) {
814
814
  case "map-select-tools":
815
815
  if (!customElements.get(tagName)) {
@@ -876,27 +876,27 @@ function defineCustomElement() {
876
876
  defineCustomElement$8();
877
877
  }
878
878
  break;
879
- case "calcite-progress":
879
+ case "calcite-popover":
880
880
  if (!customElements.get(tagName)) {
881
881
  defineCustomElement$7();
882
882
  }
883
883
  break;
884
- case "calcite-select":
884
+ case "calcite-progress":
885
885
  if (!customElements.get(tagName)) {
886
886
  defineCustomElement$6();
887
887
  }
888
888
  break;
889
- case "calcite-slider":
889
+ case "calcite-select":
890
890
  if (!customElements.get(tagName)) {
891
891
  defineCustomElement$5();
892
892
  }
893
893
  break;
894
- case "calcite-switch":
894
+ case "calcite-slider":
895
895
  if (!customElements.get(tagName)) {
896
896
  defineCustomElement$4();
897
897
  }
898
898
  break;
899
- case "calcite-tooltip":
899
+ case "calcite-switch":
900
900
  if (!customElements.get(tagName)) {
901
901
  defineCustomElement$3();
902
902
  }
@@ -342,7 +342,18 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
342
342
  return (h("div", { class: "padding-top-1-2 padding-bottom-1-2" }, h("calcite-list", { class: "list-border margin-sides-1" }, this._selectionSets.reduce((prev, cur, i) => {
343
343
  var _a;
344
344
  const ids = this._getSelectionSetIds(cur);
345
- prev.push((h("calcite-list-item", { description: this._translations.selectedFeatures.replace("{{n}}", ids.length.toString()), label: cur.label, onClick: () => this._gotoSelection(cur, this.mapView) }, h("div", { slot: "content" }, h("div", { class: "list-label" }, cur.label), h("div", { class: "list-description" }, (_a = cur === null || cur === void 0 ? void 0 : cur.layerView) === null || _a === void 0 ? void 0 : _a.layer.title), h("div", { class: "list-description" }, this._translations.selectedFeatures.replace("{{n}}", ids.length.toString()))), this._getAction(true, "pencil", "", (evt) => this._openSelection(cur, evt), false, "actions-end"), this._getAction(true, "x", "", (evt) => this._deleteSelection(i, evt), false, "actions-end"))));
345
+ let validSet = true;
346
+ if (cur.workflowType === EWorkflowType.REFINE) {
347
+ const numIds = Object.keys(cur.refineInfos).reduce((_prev, _cur) => {
348
+ const refineInfo = cur.refineInfos[_cur];
349
+ _prev += refineInfo.addIds.length + refineInfo.removeIds.length;
350
+ return _prev;
351
+ }, 0);
352
+ validSet = numIds > 0;
353
+ }
354
+ if (validSet) {
355
+ prev.push((h("calcite-list-item", { description: this._translations.selectedFeatures.replace("{{n}}", ids.length.toString()), label: cur.label, onClick: () => this._gotoSelection(cur, this.mapView) }, h("div", { slot: "content" }, h("div", { class: "list-label" }, cur.label), h("div", { class: "list-description" }, (_a = cur === null || cur === void 0 ? void 0 : cur.layerView) === null || _a === void 0 ? void 0 : _a.layer.title), h("div", { class: "list-description" }, this._translations.selectedFeatures.replace("{{n}}", ids.length.toString()))), this._getAction(true, "pencil", "", (evt) => this._openSelection(cur, evt), false, "actions-end"), this._getAction(true, "x", "", (evt) => this._deleteSelection(i, evt), false, "actions-end"))));
356
+ }
346
357
  return prev;
347
358
  }, []))));
348
359
  }
@@ -897,7 +897,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
897
897
  });
898
898
 
899
899
  /*!
900
- * @esri/arcgis-html-sanitizer - v3.0.0 - Mon Aug 22 2022 11:29:01 GMT-0400 (Eastern Daylight Time)
900
+ * @esri/arcgis-html-sanitizer - v3.0.1 - Tue Nov 15 2022 09:46:54 GMT-0800 (Pacific Standard Time)
901
901
  * Copyright (c) 2022 - Environmental Systems Research Institute, Inc.
902
902
  * Apache-2.0
903
903
  *
@@ -2132,7 +2132,7 @@ function parseTag$1(html, onTag, escapeHtml) {
2132
2132
  lastPos = currentPos;
2133
2133
  continue;
2134
2134
  }
2135
- if (c === ">" || currentPos === len - 1) {
2135
+ if (c === ">") {
2136
2136
  rethtml += escapeHtml(html.slice(lastPos, tagStart));
2137
2137
  currentHtml = html.slice(tagStart, currentPos + 1);
2138
2138
  currentTagName = getTagName(currentHtml);
@@ -2167,7 +2167,7 @@ function parseTag$1(html, onTag, escapeHtml) {
2167
2167
  }
2168
2168
  }
2169
2169
  }
2170
- if (lastPos < len) {
2170
+ if (lastPos < html.length) {
2171
2171
  rethtml += escapeHtml(html.substr(lastPos));
2172
2172
  }
2173
2173
 
@@ -470,7 +470,7 @@ const Notice = class {
470
470
  };
471
471
  Notice.style = noticeCss;
472
472
 
473
- const mapSelectToolsCss = ":host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-ui-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:\"1rem\" !important}.end-border{-webkit-border-end:1px solid var(--calcite-ui-border-2);border-inline-end:1px solid var(--calcite-ui-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.tooltip-container{justify-content:center;display:flex}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.icon{--calcite-ui-icon-color:var(--calcite-ui-brand)}";
473
+ const mapSelectToolsCss = ":host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-ui-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:\"1rem\" !important}.end-border{-webkit-border-end:1px solid var(--calcite-ui-border-2);border-inline-end:1px solid var(--calcite-ui-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.tooltip-container{display:flex}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.icon{--calcite-ui-icon-color:var(--calcite-ui-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}";
474
474
 
475
475
  const MapSelectTools = class {
476
476
  constructor(hostRef) {
@@ -640,14 +640,14 @@ const MapSelectTools = class {
640
640
  var _a, _b;
641
641
  const showBufferToolsClass = this._searchDistanceEnabled ? "search-distance" : "div-not-visible";
642
642
  const bufferDistance = typeof ((_a = this.selectionSet) === null || _a === void 0 ? void 0 : _a.distance) === "number" ? this.selectionSet.distance : this.defaultBufferDistance;
643
- return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.searchDistance, h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "search-distance-icon", scale: "s" }), h("calcite-tooltip", { label: "Data disclaimer", placement: "auto", "reference-element": "search-distance-icon" }, h("span", null, this._translations.useSearchDistanceTootip))), h("calcite-switch", { checked: this._searchDistanceEnabled, onCalciteSwitchChange: () => this._searchDistanceEnabled = !this._searchDistanceEnabled }))), h("div", { class: showBufferToolsClass }, h("buffer-tools", { disabled: !this._searchDistanceEnabled, distance: bufferDistance, geometries: this.geometries, onBufferComplete: (evt) => this._bufferComplete(evt), ref: (el) => this._bufferTools = el, unit: ((_b = this.selectionSet) === null || _b === void 0 ? void 0 : _b.unit) || this.defaultBufferUnit }))));
643
+ return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.searchDistance, h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "search-distance-icon", scale: "s" }))), h("calcite-popover", { closable: true, label: "", referenceElement: "search-distance-icon" }, h("span", { class: "tooltip-message" }, this._translations.useSearchDistanceTootip)), h("calcite-switch", { checked: this._searchDistanceEnabled, onCalciteSwitchChange: () => this._searchDistanceEnabled = !this._searchDistanceEnabled })), h("div", { class: showBufferToolsClass }, h("buffer-tools", { disabled: !this._searchDistanceEnabled, distance: bufferDistance, geometries: this.geometries, onBufferComplete: (evt) => this._bufferComplete(evt), ref: (el) => this._bufferTools = el, unit: ((_b = this.selectionSet) === null || _b === void 0 ? void 0 : _b.unit) || this.defaultBufferUnit }))));
644
644
  }
645
645
  /**
646
646
  * Renders the map layer picker component.
647
647
  */
648
648
  _getUseLayerFeaturesOptions() {
649
649
  const useLayerFeaturesClass = this._useLayerFeaturesEnabled ? "div-visible" : "div-not-visible";
650
- return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "use-layer-features-icon", scale: "s" }), h("calcite-tooltip", { label: "Data disclaimer", placement: "auto", "reference-element": "use-layer-features-icon" }, h("span", null, this._translations.useLayerFeaturesTooltip))), h("calcite-switch", { checked: this._useLayerFeaturesEnabled, onCalciteSwitchChange: () => { this._useLayerFeaturesEnabledChanged(); } }))), h("div", { class: useLayerFeaturesClass + " padding-top-1" }, h("map-layer-picker", { enabledLayerIds: this.enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedLayerIds: this.layerViews.map(l => l.layer.id), selectionMode: "single" }))));
650
+ return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "use-layer-features-icon", scale: "s" }))), h("calcite-popover", { closable: true, label: "", referenceElement: "use-layer-features-icon" }, h("span", { class: "tooltip-message" }, this._translations.useLayerFeaturesTooltip)), h("calcite-switch", { checked: this._useLayerFeaturesEnabled, onCalciteSwitchChange: () => { this._useLayerFeaturesEnabledChanged(); } })), h("div", { class: useLayerFeaturesClass + " padding-top-1" }, h("map-layer-picker", { enabledLayerIds: this.enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedLayerIds: this.layerViews.map(l => l.layer.id), selectionMode: "single" }))));
651
651
  }
652
652
  /**
653
653
  * Renders the number of selected features
@@ -18,7 +18,7 @@ import { q as getItemIndex, m as mutationObserverCallback, d as deselectRemovedI
18
18
  import { C as CSS$3, S as SLOTS$3 } from './resources-34a756bf.js';
19
19
  import { I as ICON_TYPES$1 } from './resources-b9ac23e3.js';
20
20
  import { g as getLocaleComponentStrings } from './locale-54cac39a.js';
21
- import { s as state, E as EFileType } from './solution-store-5d068b07.js';
21
+ import { s as state, E as EFileType } from './solution-store-70f874f8.js';
22
22
  import { d as EUpdateType } from './interfaces-523c6558.js';
23
23
  import './resources-e83f65b3.js';
24
24
  import './key-218d8d4d.js';
@@ -306,7 +306,18 @@ const PublicNotification = class {
306
306
  return (h("div", { class: "padding-top-1-2 padding-bottom-1-2" }, h("calcite-list", { class: "list-border margin-sides-1" }, this._selectionSets.reduce((prev, cur, i) => {
307
307
  var _a;
308
308
  const ids = this._getSelectionSetIds(cur);
309
- prev.push((h("calcite-list-item", { description: this._translations.selectedFeatures.replace("{{n}}", ids.length.toString()), label: cur.label, onClick: () => this._gotoSelection(cur, this.mapView) }, h("div", { slot: "content" }, h("div", { class: "list-label" }, cur.label), h("div", { class: "list-description" }, (_a = cur === null || cur === void 0 ? void 0 : cur.layerView) === null || _a === void 0 ? void 0 : _a.layer.title), h("div", { class: "list-description" }, this._translations.selectedFeatures.replace("{{n}}", ids.length.toString()))), this._getAction(true, "pencil", "", (evt) => this._openSelection(cur, evt), false, "actions-end"), this._getAction(true, "x", "", (evt) => this._deleteSelection(i, evt), false, "actions-end"))));
309
+ let validSet = true;
310
+ if (cur.workflowType === EWorkflowType.REFINE) {
311
+ const numIds = Object.keys(cur.refineInfos).reduce((_prev, _cur) => {
312
+ const refineInfo = cur.refineInfos[_cur];
313
+ _prev += refineInfo.addIds.length + refineInfo.removeIds.length;
314
+ return _prev;
315
+ }, 0);
316
+ validSet = numIds > 0;
317
+ }
318
+ if (validSet) {
319
+ prev.push((h("calcite-list-item", { description: this._translations.selectedFeatures.replace("{{n}}", ids.length.toString()), label: cur.label, onClick: () => this._gotoSelection(cur, this.mapView) }, h("div", { slot: "content" }, h("div", { class: "list-label" }, cur.label), h("div", { class: "list-description" }, (_a = cur === null || cur === void 0 ? void 0 : cur.layerView) === null || _a === void 0 ? void 0 : _a.layer.title), h("div", { class: "list-description" }, this._translations.selectedFeatures.replace("{{n}}", ids.length.toString()))), this._getAction(true, "pencil", "", (evt) => this._openSelection(cur, evt), false, "actions-end"), this._getAction(true, "x", "", (evt) => this._deleteSelection(i, evt), false, "actions-end"))));
320
+ }
310
321
  return prev;
311
322
  }, []))));
312
323
  }
@@ -4,7 +4,7 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { r as registerInstance, h, H as Host, g as getElement } from './index-d298aca9.js';
7
- import { r as request, N as NODEJS_DEFAULT_REFERER_HEADER, c as cleanUrl, e as encodeQueryString, A as ArcGISAuthError, g as getProp, s as state } from './solution-store-5d068b07.js';
7
+ import { r as request, N as NODEJS_DEFAULT_REFERER_HEADER, c as cleanUrl, e as encodeQueryString, A as ArcGISAuthError, g as getProp, s as state } from './solution-store-70f874f8.js';
8
8
  import { g as getLocaleComponentStrings } from './locale-54cac39a.js';
9
9
  import './index-4c4a4f3d.js';
10
10
  import './interfaces-523c6558.js';
@@ -4,7 +4,7 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d298aca9.js';
7
- import { s as state } from './solution-store-5d068b07.js';
7
+ import { s as state } from './solution-store-70f874f8.js';
8
8
  import { g as getLocaleComponentStrings } from './locale-54cac39a.js';
9
9
  import './interfaces-523c6558.js';
10
10
  import './index-4c4a4f3d.js';
@@ -897,7 +897,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
897
897
  });
898
898
 
899
899
  /*!
900
- * @esri/arcgis-html-sanitizer - v3.0.0 - Mon Aug 22 2022 11:29:01 GMT-0400 (Eastern Daylight Time)
900
+ * @esri/arcgis-html-sanitizer - v3.0.1 - Tue Nov 15 2022 09:46:54 GMT-0800 (Pacific Standard Time)
901
901
  * Copyright (c) 2022 - Environmental Systems Research Institute, Inc.
902
902
  * Apache-2.0
903
903
  *
@@ -2132,7 +2132,7 @@ function parseTag$1(html, onTag, escapeHtml) {
2132
2132
  lastPos = currentPos;
2133
2133
  continue;
2134
2134
  }
2135
- if (c === ">" || currentPos === len - 1) {
2135
+ if (c === ">") {
2136
2136
  rethtml += escapeHtml(html.slice(lastPos, tagStart));
2137
2137
  currentHtml = html.slice(tagStart, currentPos + 1);
2138
2138
  currentTagName = getTagName(currentHtml);
@@ -2167,7 +2167,7 @@ function parseTag$1(html, onTag, escapeHtml) {
2167
2167
  }
2168
2168
  }
2169
2169
  }
2170
- if (lastPos < len) {
2170
+ if (lastPos < html.length) {
2171
2171
  rethtml += escapeHtml(html.substr(lastPos));
2172
2172
  }
2173
2173
 
@@ -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{r as t,h as i,f as e,g as a,c as o,H as s,F as n}from"./p-f8be5d5f.js";import{c as l,d as c}from"./p-a4f08a98.js";import{b as r,i as h,a as d,n as m,j as p,l as u,g as b,t as g}from"./p-dd3d070d.js";import{c as f,d as w}from"./p-0d207a2c.js";import{c as v}from"./p-56fd542b.js";import{c as x,s as k,d as y,u as _}from"./p-6bbf6f62.js";import{g as C}from"./p-d1bcb992.js";import{c as z}from"./p-631b6461.js";import{u as D}from"./p-c0d3537c.js";import{S as L}from"./p-77182c3a.js";import{s as T,a as I,c as A}from"./p-5b5ad89d.js";import{q as j,m as H,d as M,a as W,s as S,h as R,b as $,g as F,k as E,t as U,i as O,c as B,f as N,e as P,n as V,r as J,j as K,l as q,o as G,p as X,L as Q}from"./p-325b39d1.js";import{C as Y,S as Z}from"./p-4281be43.js";import{I as tt}from"./p-14da4ba2.js";import{g as it}from"./p-fc2277fe.js";import{s as et,E as at}from"./p-826a814d.js";import{d as ot}from"./p-92de1de9.js";import"./p-062f1fe7.js";import"./p-89e6a976.js";import"./p-a458e487.js";import"./p-96397baa.js";import"./p-4e32bf8c.js";import"./p-e1a4994d.js";import"./p-4ff653eb.js";
6
+ import{r as t,h as i,f as e,g as a,c as o,H as s,F as n}from"./p-f8be5d5f.js";import{c as l,d as c}from"./p-a4f08a98.js";import{b as r,i as h,a as d,n as m,j as p,l as u,g as b,t as g}from"./p-dd3d070d.js";import{c as f,d as w}from"./p-0d207a2c.js";import{c as v}from"./p-56fd542b.js";import{c as x,s as k,d as y,u as _}from"./p-6bbf6f62.js";import{g as C}from"./p-d1bcb992.js";import{c as z}from"./p-631b6461.js";import{u as D}from"./p-c0d3537c.js";import{S as L}from"./p-77182c3a.js";import{s as T,a as I,c as A}from"./p-5b5ad89d.js";import{q as j,m as H,d as M,a as W,s as S,h as R,b as $,g as F,k as E,t as U,i as O,c as B,f as N,e as P,n as V,r as J,j as K,l as q,o as G,p as X,L as Q}from"./p-325b39d1.js";import{C as Y,S as Z}from"./p-4281be43.js";import{I as tt}from"./p-14da4ba2.js";import{g as it}from"./p-fc2277fe.js";import{s as et,E as at}from"./p-78719506.js";import{d as ot}from"./p-92de1de9.js";import"./p-062f1fe7.js";import"./p-89e6a976.js";import"./p-a458e487.js";import"./p-96397baa.js";import"./p-4e32bf8c.js";import"./p-e1a4994d.js";import"./p-4ff653eb.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.