@esri/solutions-components 0.6.20 → 0.6.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +1 -1
- package/dist/cjs/card-manager_3.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-manager.cjs.entry.js +6 -8
- package/dist/cjs/edit-card_2.cjs.entry.js +9 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +6 -8
- package/dist/collection/components/edit-card/edit-card.js +9 -1
- package/dist/collection/components/info-card/info-card.css +1 -1
- package/dist/collection/components/layer-table/layer-table.css +5 -0
- package/dist/collection/components/layer-table/layer-table.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +2 -3
- package/dist/collection/components/map-select-tools/map-select-tools.js +2 -2
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/demos/new-public-notification.html +4 -2
- package/dist/components/crowdsource-manager.js +6 -8
- package/dist/components/edit-card2.js +17 -3
- package/dist/components/info-card2.js +1 -1
- package/dist/components/layer-table2.js +2 -2
- package/dist/components/map-layer-picker2.js +1 -1
- package/dist/components/map-select-tools2.js +2 -2
- package/dist/components/refine-selection2.js +1 -1
- package/dist/esm/calcite-combobox_6.entry.js +1 -1
- package/dist/esm/card-manager_3.entry.js +2 -2
- package/dist/esm/crowdsource-manager.entry.js +6 -8
- package/dist/esm/edit-card_2.entry.js +9 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +3 -3
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/demos/new-public-notification.html +4 -2
- package/dist/solutions-components/{p-ceffb944.entry.js → p-37372a3d.entry.js} +1 -1
- package/dist/solutions-components/p-531ab1e1.entry.js +6 -0
- package/dist/solutions-components/p-64a0e0e7.entry.js +6 -0
- package/dist/solutions-components/p-6dcf404a.entry.js +6 -0
- package/dist/solutions-components/p-ad16d71b.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +2 -2
- package/dist/types/components/edit-card/edit-card.d.ts +4 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-79c55b19.entry.js +0 -6
- package/dist/solutions-components/p-a3ef570f.entry.js +0 -6
- package/dist/solutions-components/p-a8a80924.entry.js +0 -6
- package/dist/solutions-components/p-e03226cf.entry.js +0 -6
@@ -1708,7 +1708,7 @@ const MapLayerPicker = class {
|
|
1708
1708
|
this.placeholderIcon = "";
|
1709
1709
|
this.selectedIds = [];
|
1710
1710
|
this.scale = "m";
|
1711
|
-
this.showTables =
|
1711
|
+
this.showTables = undefined;
|
1712
1712
|
this.type = "select";
|
1713
1713
|
this._hasValidLayers = true;
|
1714
1714
|
this.ids = [];
|
@@ -102,7 +102,7 @@ const CardManager = class {
|
|
102
102
|
};
|
103
103
|
CardManager.style = cardManagerCss;
|
104
104
|
|
105
|
-
const layerTableCss = ":host{display:block}.height-full{height:100%}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-ui-border-2)}.border-end{border-inline-end:1px solid var(--calcite-ui-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51{height:51px}.bottom-left{position:absolute;left:0;bottom:0}html[dir=\"rtl\"] .bottom-left{position:absolute;right:0;bottom:0}.background{background-color:var(--calcite-ui-background)}.text-color{color:var(--calcite-ui-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-ui-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{padding:var(--lumo-space-xs) var(--lumo-space-m) !important}";
|
105
|
+
const layerTableCss = ":host{display:block}.height-full{height:100%}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-ui-border-2)}.border-end{border-inline-end:1px solid var(--calcite-ui-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51{height:51px}.bottom-left{position:absolute;left:0;bottom:0}html[dir=\"rtl\"] .bottom-left{position:absolute;right:0;bottom:0}.background{background-color:var(--calcite-ui-background)}.text-color{color:var(--calcite-ui-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-ui-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{padding:var(--lumo-space-xs) var(--lumo-space-m) !important;font-size:14px !important}.esri-field-column__header-content{background-color:var(--calcite-ui-foreground-3)}";
|
106
106
|
|
107
107
|
const LayerTable = class {
|
108
108
|
constructor(hostRef) {
|
@@ -290,7 +290,7 @@ const LayerTable = class {
|
|
290
290
|
var _a;
|
291
291
|
const featuresSelected = this._selectedIndexes.length > 0;
|
292
292
|
const id = "more-table-options";
|
293
|
-
return (index.h("div", { class: "display-flex table-border height-51", slot: slot }, index.h("calcite-action-bar", { expandDisabled: true, expanded: true, layout: "horizontal" }, index.h("div", { class: "border-end" }, index.h("map-layer-picker", { appearance: "transparent", mapView: this.mapView, onLayerSelectionChange: (evt) => this._layerSelectionChanged(evt), onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, placeholderIcon: "layers", scale: "l", type: "dropdown" })), this._getAction("zoom-to-object", this._translations.zoom, () => this._zoom(), !featuresSelected), ((_a = this.mapInfo) === null || _a === void 0 ? void 0 : _a.filters) ? this._getAction("filter", this._translations.filters, () => this._filter(), false) : undefined, this._deleteEnabled ? this._getDangerAction("trash", this._translations.delete, () => this._delete(), !featuresSelected) : undefined, this._getAction("erase", this._translations.clearSelection, () => this._clearSelection(), !featuresSelected), this._getAction("selected-items-filter", this._showOnlySelected ? this._translations.showAll : this._translations.showSelected, () => this._toggleShowSelected(), !featuresSelected)), index.h("calcite-dropdown", { disabled: this._layer === undefined }, index.h("calcite-action", { appearance: "solid", id: id, label: "", slot: "trigger", text: "" }, index.h("calcite-button", { appearance: "transparent", iconEnd: "chevron-down", kind: "neutral" }, this._translations.more)), index.h("calcite-dropdown-group", { "selection-mode": "none" }, index.h("calcite-dropdown-item", { iconStart: "list-check-all", onClick: () => this._selectAll() }, this._translations.selectAll), index.h("calcite-dropdown-item", { iconStart: "compare", onClick: () => this._switchSelected() }, this._translations.switchSelected), index.h("calcite-dropdown-item", { iconStart: "refresh", onClick: () => this._refresh() }, this._translations.refresh), index.h("calcite-dropdown-item", { iconStart: "export", onClick: () => void this._exportToCSV() }, this._translations.exportCSV))), index.h("calcite-tooltip", { label: "", placement: "bottom", "reference-element": id }, index.h("span", null, this._translations.moreOptions))));
|
293
|
+
return (index.h("div", { class: "display-flex table-border height-51", slot: slot }, index.h("calcite-action-bar", { expandDisabled: true, expanded: true, layout: "horizontal" }, index.h("div", { class: "border-end" }, index.h("map-layer-picker", { appearance: "transparent", mapView: this.mapView, onLayerSelectionChange: (evt) => this._layerSelectionChanged(evt), onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, placeholderIcon: "layers", scale: "l", showTables: true, type: "dropdown" })), this._getAction("zoom-to-object", this._translations.zoom, () => this._zoom(), !featuresSelected), ((_a = this.mapInfo) === null || _a === void 0 ? void 0 : _a.filters) ? this._getAction("filter", this._translations.filters, () => this._filter(), false) : undefined, this._deleteEnabled ? this._getDangerAction("trash", this._translations.delete, () => this._delete(), !featuresSelected) : undefined, this._getAction("erase", this._translations.clearSelection, () => this._clearSelection(), !featuresSelected), this._getAction("selected-items-filter", this._showOnlySelected ? this._translations.showAll : this._translations.showSelected, () => this._toggleShowSelected(), !featuresSelected)), index.h("calcite-dropdown", { disabled: this._layer === undefined }, index.h("calcite-action", { appearance: "solid", id: id, label: "", slot: "trigger", text: "" }, index.h("calcite-button", { appearance: "transparent", iconEnd: "chevron-down", kind: "neutral" }, this._translations.more)), index.h("calcite-dropdown-group", { "selection-mode": "none" }, index.h("calcite-dropdown-item", { iconStart: "list-check-all", onClick: () => this._selectAll() }, this._translations.selectAll), index.h("calcite-dropdown-item", { iconStart: "compare", onClick: () => this._switchSelected() }, this._translations.switchSelected), index.h("calcite-dropdown-item", { iconStart: "refresh", onClick: () => this._refresh() }, this._translations.refresh), index.h("calcite-dropdown-item", { iconStart: "export", onClick: () => void this._exportToCSV() }, this._translations.exportCSV))), index.h("calcite-tooltip", { label: "", placement: "bottom", "reference-element": id }, index.h("span", null, this._translations.moreOptions))));
|
294
294
|
}
|
295
295
|
/**
|
296
296
|
* Get an action and tooltip
|
@@ -227,7 +227,7 @@ const CrowdsourceManager = class {
|
|
227
227
|
*/
|
228
228
|
_getMapAndCard(layoutMode, panelOpen, hideMap) {
|
229
229
|
const mapSizeClass = this._getMapSizeClass(layoutMode, panelOpen);
|
230
|
-
return this.classicGrid ? (index.h("div", { class: `${mapSizeClass} overflow-hidden` }, this._getCardNode(
|
230
|
+
return this.classicGrid ? (index.h("div", { class: `${mapSizeClass} overflow-hidden` }, this._getCardNode(), this._getMapNode(layoutMode, hideMap))) : (index.h("div", { class: `${mapSizeClass} overflow-hidden` }, this._getMapNode(layoutMode, hideMap), this._getPopupExpandNode()));
|
231
231
|
}
|
232
232
|
/**
|
233
233
|
* Get the map node based for the current layout options
|
@@ -251,12 +251,12 @@ const CrowdsourceManager = class {
|
|
251
251
|
* @returns the expand node
|
252
252
|
* @protected
|
253
253
|
*/
|
254
|
-
_getPopupExpandNode(
|
254
|
+
_getPopupExpandNode() {
|
255
255
|
const icon = this._expandPopup ? "chevrons-down" : "chevrons-up";
|
256
256
|
const id = "expand-popup";
|
257
257
|
const tooltip = this._expandPopup ? this._translations.collapsePopup : this._translations.expandPopup;
|
258
258
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
259
|
-
return (index.h("div", { class: "calcite-mode-dark" }, index.h("calcite-panel", null, index.h("div", { class: "display-flex align-items-center", slot: "header-content" }, index.h("calcite-icon", { icon: "information", scale: "s" }), index.h("div", { class: "padding-inline-start-75" }, this._translations.information)), index.h("calcite-action", { class: "height-49-px", icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end" }), index.h("calcite-tooltip", { class: themeClass, label: "", placement: "bottom", "reference-element": id }, index.h("span", null, tooltip)), this._getCardNode(
|
259
|
+
return (index.h("div", { class: "calcite-mode-dark height-full" }, index.h("calcite-panel", null, index.h("div", { class: "display-flex align-items-center", slot: "header-content" }, index.h("calcite-icon", { icon: "information", scale: "s" }), index.h("div", { class: "padding-inline-start-75" }, this._translations.information)), index.h("calcite-action", { class: "height-49-px", icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end" }), index.h("calcite-tooltip", { class: themeClass, label: "", placement: "bottom", "reference-element": id }, index.h("span", null, tooltip)), this._getCardNode())));
|
260
260
|
}
|
261
261
|
/**
|
262
262
|
* Toggle the popup information
|
@@ -275,11 +275,9 @@ const CrowdsourceManager = class {
|
|
275
275
|
* @returns the map node
|
276
276
|
* @protected
|
277
277
|
*/
|
278
|
-
_getCardNode(
|
279
|
-
const cardManagerHeight = this.
|
280
|
-
|
281
|
-
const cardManagerContainer = this.classicGrid && layoutMode === interfaces.ELayoutMode.GRID ?
|
282
|
-
"width-full adjusted-height-100" : this._expandPopup ? "width-50 adjusted-height-100-50" : "width-50 height-full";
|
278
|
+
_getCardNode() {
|
279
|
+
const cardManagerHeight = !this._expandPopup ? "height-50" : "height-full";
|
280
|
+
const cardManagerContainer = this._expandPopup ? "width-50 adjusted-height-100-50" : "width-50 height-full";
|
283
281
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
284
282
|
return (index.h("div", { class: `${cardManagerContainer} ${themeClass}` }, index.h("card-manager", { class: `${cardManagerHeight} width-full`, mapView: this === null || this === void 0 ? void 0 : this._mapView, zoomAndScrollToSelected: this.zoomAndScrollToSelected })));
|
285
283
|
}
|
@@ -27,6 +27,7 @@ const EditCard = class {
|
|
27
27
|
this.mapView = undefined;
|
28
28
|
this.open = false;
|
29
29
|
this.graphicIndex = 0;
|
30
|
+
this._editorLoading = false;
|
30
31
|
this._translations = undefined;
|
31
32
|
}
|
32
33
|
//--------------------------------------------------------------------------
|
@@ -46,11 +47,13 @@ const EditCard = class {
|
|
46
47
|
async openWatchHandler(v) {
|
47
48
|
var _a;
|
48
49
|
if (v && ((_a = this.graphics) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.graphicIndex > -1) {
|
50
|
+
this._editorLoading = true;
|
49
51
|
this._initEditorWidget();
|
50
52
|
if (this.graphicIndex > -1 && this.graphics.length > 0 && this.open && !this._shouldClose) {
|
51
53
|
await this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]);
|
52
54
|
this._shouldClose = true;
|
53
55
|
}
|
56
|
+
this._editorLoading = false;
|
54
57
|
}
|
55
58
|
if (!v) {
|
56
59
|
this._shouldClose = false;
|
@@ -90,11 +93,13 @@ const EditCard = class {
|
|
90
93
|
this._layerEditHandle.remove();
|
91
94
|
}
|
92
95
|
this._layerEditHandle = this._layer.on("edits", () => {
|
96
|
+
this._editorLoading = true;
|
93
97
|
this.editsComplete.emit();
|
94
98
|
this._shouldClose = false;
|
95
99
|
this._initEditorWidget();
|
96
100
|
void this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]);
|
97
101
|
this._shouldClose = true;
|
102
|
+
this._editorLoading = false;
|
98
103
|
});
|
99
104
|
}
|
100
105
|
}
|
@@ -107,7 +112,9 @@ const EditCard = class {
|
|
107
112
|
// when you use MULTI edit mode...is fine in SINGLE
|
108
113
|
const editDisabled = ((_a = this.graphics) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.graphics[0] ?
|
109
114
|
!this.graphics[0].layer.editingEnabled : true;
|
110
|
-
|
115
|
+
const tableNodeClass = this._editorLoading ? "display-none" : "";
|
116
|
+
const loadingClass = this._editorLoading ? "" : "display-none";
|
117
|
+
return (index.h(index.Host, null, index.h("div", { class: "position-relative" }, 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", { slot: "content" }, index.h("div", { class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), index.h("calcite-loader", { class: loadingClass, scale: "s" })))));
|
111
118
|
}
|
112
119
|
//--------------------------------------------------------------------------
|
113
120
|
//
|
@@ -193,7 +200,7 @@ const EditCard = class {
|
|
193
200
|
};
|
194
201
|
EditCard.style = editCardCss;
|
195
202
|
|
196
|
-
const infoCardCss = ":host{display:block;--calcite-label-margin-bottom:0}table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:8px}tr:nth-child(odd){background:var(--calcite-ui-foreground-2)}.bottom-border{padding-bottom:0.5rem;border-bottom:1px solid var(--calcite-ui-border-1)}.padding-1-2{padding:0.5rem}.padding-top-1-2{padding-top:0.5rem}.font-color-3{color:var(--calcite-ui-text-3)}.display-none{display:none}.display-flex{display:flex}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.esri-features__footer{display:none !important}.button-container{justify-content:space-between;align-items:center}.top-border{border-top:1px solid var(--calcite-ui-border-1)}.min-width-100{min-width:100px}.width-100{width:100%}.esri-features__container{padding:0.5rem !important;background-color:var(--calcite-ui-foreground-1) !important;height:100% !important}";
|
203
|
+
const infoCardCss = ":host{display:block;--calcite-label-margin-bottom:0}table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:8px}tr:nth-child(odd){background:var(--calcite-ui-foreground-2)}.bottom-border{padding-bottom:0.5rem;border-bottom:1px solid var(--calcite-ui-border-1)}.padding-1-2{padding:0.5rem}.padding-top-1-2{padding-top:0.5rem}.font-color-3{color:var(--calcite-ui-text-3)}.display-none{display:none !important}.display-flex{display:flex}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.esri-features__footer{display:none !important}.button-container{justify-content:space-between;align-items:center}.top-border{border-top:1px solid var(--calcite-ui-border-1)}.min-width-100{min-width:100px}.width-100{width:100%}.esri-features__container{padding:0.5rem !important;background-color:var(--calcite-ui-foreground-1) !important;height:100% !important}";
|
197
204
|
|
198
205
|
const InfoCard = class {
|
199
206
|
constructor(hostRef) {
|