@esri/solutions-components 0.8.24 → 0.8.26
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +6 -6
- package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-alert_4.cjs.entry.js +6 -6
- package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-flow_6.cjs.entry.js +108 -65
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +7 -7
- package/dist/cjs/card-manager_3.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +4 -4
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/feature-comments.cjs.entry.js +1 -1
- package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/feature-list.cjs.entry.js +4 -4
- package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/layout-manager.cjs.entry.js +1 -1
- package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +1 -1
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/share-item.cjs.entry.js +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
- package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
- package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
- package/dist/collection/components/create-feature/create-feature.js +90 -51
- package/dist/collection/components/create-related-feature/create-related-feature.js +9 -2
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +1 -1
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +4 -4
- package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
- package/dist/collection/components/delete-button/delete-button.css +4 -0
- package/dist/collection/components/delete-button/delete-button.js +2 -2
- package/dist/collection/components/edit-card/edit-card.js +1 -1
- package/dist/collection/components/feature-comments/feature-comments.js +1 -1
- package/dist/collection/components/feature-details/feature-details.css +4 -4
- package/dist/collection/components/feature-details/feature-details.js +12 -11
- package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
- package/dist/collection/components/feature-list/feature-list.css +2 -0
- package/dist/collection/components/feature-list/feature-list.js +3 -3
- package/dist/collection/components/features-flow-item/features-flow-item.js +1 -1
- package/dist/collection/components/floor-filter/floor-filter.js +1 -1
- package/dist/collection/components/info-card/info-card.js +2 -2
- package/dist/collection/components/json-editor/json-editor.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +1 -1
- package/dist/collection/components/layout-manager/layout-manager.js +1 -1
- package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
- package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
- package/dist/collection/components/map-card/map-card.js +1 -1
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.js +1 -1
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
- package/dist/collection/components/map-tools/map-tools.js +1 -1
- package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
- package/dist/collection/components/pdf-download/pdf-download.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +1 -1
- package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/components/share-item/share-item.js +1 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
- package/dist/collection/components/solution-contents/solution-contents.js +1 -1
- package/dist/collection/components/solution-item/solution-item.js +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
- package/dist/collection/components/solution-variables/solution-variables.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
- package/dist/components/create-feature2.js +98 -54
- package/dist/components/create-related-feature2.js +9 -2
- package/dist/components/crowdsource-manager.js +1 -1
- package/dist/components/crowdsource-reporter.js +4 -4
- package/dist/components/deduct-calculator2.js +1 -1
- package/dist/components/delete-button2.js +3 -3
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/feature-comments.js +1 -1
- package/dist/components/feature-details2.js +12 -11
- package/dist/components/feature-form-flow-item.js +1 -1
- package/dist/components/feature-list2.js +4 -4
- package/dist/components/features-flow-item.js +1 -1
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/info-card2.js +2 -2
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/layer-table2.js +1 -1
- package/dist/components/layout-manager.js +1 -1
- package/dist/components/list-flow-item.js +1 -1
- package/dist/components/location-flow-item.js +1 -1
- package/dist/components/map-card2.js +1 -1
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +1 -1
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +1 -1
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/map-tools2.js +1 -1
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/public-notification.js +1 -1
- package/dist/components/refine-results-flow-item.js +1 -1
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/share-item.js +1 -1
- package/dist/components/solution-configuration.js +3 -3
- package/dist/components/solution-contents2.js +1 -1
- package/dist/components/solution-item-details2.js +1 -1
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +1 -1
- package/dist/components/solution-item2.js +1 -1
- package/dist/components/solution-organization-variables2.js +1 -1
- package/dist/components/solution-resource-item2.js +1 -1
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-template-data2.js +1 -1
- package/dist/components/solution-variables2.js +1 -1
- package/dist/components/spatial-ref2.js +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +6 -6
- package/dist/esm/buffer-tools_3.entry.js +1 -1
- package/dist/esm/calcite-alert_4.entry.js +6 -6
- package/dist/esm/calcite-dropdown-group_2.entry.js +1 -1
- package/dist/esm/calcite-flow_6.entry.js +108 -65
- package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
- package/dist/esm/card-manager_3.entry.js +2 -2
- package/dist/esm/crowdsource-manager.entry.js +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +4 -4
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/feature-comments.entry.js +1 -1
- package/dist/esm/feature-form-flow-item.entry.js +1 -1
- package/dist/esm/feature-list.entry.js +4 -4
- package/dist/esm/features-flow-item.entry.js +1 -1
- package/dist/esm/layout-manager.entry.js +1 -1
- package/dist/esm/list-flow-item.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/location-flow-item.entry.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +3 -3
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/public-notification.entry.js +1 -1
- package/dist/esm/refine-results-flow-item.entry.js +1 -1
- package/dist/esm/share-item.entry.js +1 -1
- package/dist/esm/solution-configuration.entry.js +3 -3
- package/dist/esm/solution-contents_3.entry.js +3 -3
- package/dist/esm/solution-item-icon.entry.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +1 -1
- package/dist/solutions-components/{p-2c044250.entry.js → p-053be79f.entry.js} +2 -2
- package/dist/solutions-components/{p-1ff9eb95.entry.js → p-05b3a5d9.entry.js} +1 -1
- package/dist/solutions-components/p-0d17246a.entry.js +6 -0
- package/dist/solutions-components/{p-b3160299.entry.js → p-1e915546.entry.js} +1 -1
- package/dist/solutions-components/{p-97e343df.entry.js → p-1f4b174f.entry.js} +1 -1
- package/dist/solutions-components/p-27e9ea86.entry.js +6 -0
- package/dist/solutions-components/{p-72317f8e.entry.js → p-296375d3.entry.js} +2 -2
- package/dist/solutions-components/{p-af4be4ce.entry.js → p-2a6db6e8.entry.js} +1 -1
- package/dist/solutions-components/p-4870be89.entry.js +6 -0
- package/dist/solutions-components/p-51b5ac05.entry.js +6 -0
- package/dist/solutions-components/{p-1251dcc6.entry.js → p-66722851.entry.js} +1 -1
- package/dist/solutions-components/{p-f35cc7ae.entry.js → p-81747268.entry.js} +1 -1
- package/dist/solutions-components/{p-84a5d221.entry.js → p-92eadd14.entry.js} +1 -1
- package/dist/solutions-components/{p-fc665a1a.entry.js → p-96c901b4.entry.js} +1 -1
- package/dist/solutions-components/p-9cfc59dd.entry.js +6 -0
- package/dist/solutions-components/{p-16730f05.entry.js → p-b656b73e.entry.js} +1 -1
- package/dist/solutions-components/{p-8c500fd7.entry.js → p-bfdabb9d.entry.js} +1 -1
- package/dist/solutions-components/p-c5becad1.entry.js +6 -0
- package/dist/solutions-components/{p-102b1f94.entry.js → p-cb20ba34.entry.js} +1 -1
- package/dist/solutions-components/p-cd694107.entry.js +17 -0
- package/dist/solutions-components/p-e1662e32.entry.js +6 -0
- package/dist/solutions-components/p-eda6994e.entry.js +6 -0
- package/dist/solutions-components/{p-bf57dbfd.entry.js → p-edcc1f23.entry.js} +1 -1
- package/dist/solutions-components/p-f7b791a8.entry.js +6 -0
- package/dist/solutions-components/p-fac36b42.entry.js +6 -0
- package/dist/solutions-components/{p-33845a79.entry.js → p-fd28754c.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/create-feature/create-feature.d.ts +25 -3
- package/dist/types/components/create-related-feature/create-related-feature.d.ts +4 -0
- package/dist/types/components/feature-details/feature-details.d.ts +4 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-28c6906c.entry.js +0 -6
- package/dist/solutions-components/p-3470c0f7.entry.js +0 -6
- package/dist/solutions-components/p-3fae9775.entry.js +0 -6
- package/dist/solutions-components/p-71de367b.entry.js +0 -6
- package/dist/solutions-components/p-8a81f3c7.entry.js +0 -6
- package/dist/solutions-components/p-aa06f4d1.entry.js +0 -6
- package/dist/solutions-components/p-b76b5310.entry.js +0 -6
- package/dist/solutions-components/p-c047a6fc.entry.js +0 -6
- package/dist/solutions-components/p-cbf0dada.entry.js +0 -17
- package/dist/solutions-components/p-e78be59a.entry.js +0 -6
- package/dist/solutions-components/p-e9176a44.entry.js +0 -6
@@ -325,7 +325,7 @@ const Alert = class {
|
|
325
325
|
};
|
326
326
|
Alert.style = CalciteAlertStyle0;
|
327
327
|
|
328
|
-
const deleteButtonCss = ":host{display:block}";
|
328
|
+
const deleteButtonCss = ":host{display:block}.delete-modal{position:fixed}";
|
329
329
|
const DeleteButtonStyle0 = deleteButtonCss;
|
330
330
|
|
331
331
|
const DeleteButton = class {
|
@@ -382,7 +382,7 @@ const DeleteButton = class {
|
|
382
382
|
* Renders the component.
|
383
383
|
*/
|
384
384
|
render() {
|
385
|
-
return (h(Host, { key: '
|
385
|
+
return (h(Host, { key: '87e080ea4203ab7fcb1313d8fa57a3d5c5d37885' }, this.buttonType === "button" ? (h("calcite-button", { appearance: "outline", disabled: !this._deleteEndabled, id: "solutions-delete", kind: "danger", onClick: () => this._delete(), width: "full" }, this._translations.deleteCount.replace("{{n}}", this.ids.length.toString()))) : (h("calcite-action", { appearance: "solid", compact: true, disabled: !this._deleteEndabled, id: this.icon, onClick: () => this._delete(), scale: "s", text: this._translations.delete }, h("calcite-button", { appearance: "transparent", iconStart: this.icon, kind: "danger" }, this._translations.delete))), this._deleteMessage()));
|
386
386
|
}
|
387
387
|
/**
|
388
388
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -419,7 +419,7 @@ const DeleteButton = class {
|
|
419
419
|
_deleteMessage() {
|
420
420
|
const confirmMessage = this.ids.length === 1 ? this._translations.confirmSingle :
|
421
421
|
this._translations.confirmMultiple;
|
422
|
-
return (h("calcite-modal", { "aria-labelledby": "modal-title", kind: "danger", onCalciteModalClose: () => this._deleteClosed(), open: this._confirmDelete }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations.deleteFeature), h("div", { slot: "content" }, confirmMessage), h("calcite-button", { appearance: "outline", kind: "danger", onClick: () => this._deleteClosed(), slot: "secondary", width: "full" }, this._translations.cancel), h("calcite-button", { kind: "danger", loading: this._isDeleting, onClick: () => void this._deleteFeatures(), slot: "primary", width: "full" }, this._translations.delete)));
|
422
|
+
return (h("calcite-modal", { "aria-labelledby": "modal-title", class: "delete-modal", kind: "danger", onCalciteModalClose: () => this._deleteClosed(), open: this._confirmDelete }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations.deleteFeature), h("div", { slot: "content" }, confirmMessage), h("calcite-button", { appearance: "outline", kind: "danger", onClick: () => this._deleteClosed(), slot: "secondary", width: "full" }, this._translations.cancel), h("calcite-button", { kind: "danger", loading: this._isDeleting, onClick: () => void this._deleteFeatures(), slot: "primary", width: "full" }, this._translations.delete)));
|
423
423
|
}
|
424
424
|
/**
|
425
425
|
* Delete the currently selected features
|
@@ -556,7 +556,7 @@ const EditCard = class {
|
|
556
556
|
!this.graphics[0].layer.editingEnabled : true;
|
557
557
|
const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
|
558
558
|
const loadingClass = this._editorLoading ? "" : "display-none";
|
559
|
-
return (h(Host, { key: '
|
559
|
+
return (h(Host, { key: '80acdd7d9b9441be28664ab60b7ad5d19c633bdd' }, h("div", { key: 'c8e41f2f7f3d5fcc4f49dd42b1f530c9e422cc8a', class: "position-absolute" }, editDisabled ? (h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, h("div", { key: '4b93fef902254d2a55e997bccdb4e16ee67c3c75', class: "position-absolute" }, h("div", { key: '1794c5c246ab90b2915a15a15077ae7d82ec567c', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), h("calcite-loader", { key: '001162f8ae947cae915de33c16a116efd7795f75', class: loadingClass, label: "", scale: "s" })))));
|
560
560
|
}
|
561
561
|
//--------------------------------------------------------------------------
|
562
562
|
//
|
@@ -838,8 +838,8 @@ const InfoCard = class {
|
|
838
838
|
const id = (_d = (_c = this._features) === null || _c === void 0 ? void 0 : _c.selectedFeature) === null || _d === void 0 ? void 0 : _d.getObjectId();
|
839
839
|
const ids = parseInt(id === null || id === void 0 ? void 0 : id.toString(), 10) > -1 ? [id] : [];
|
840
840
|
const deleteEnabled = ((_e = this._layer) === null || _e === void 0 ? void 0 : _e.editingEnabled) && ((_h = (_g = (_f = this._layer) === null || _f === void 0 ? void 0 : _f.capabilities) === null || _g === void 0 ? void 0 : _g.operations) === null || _h === void 0 ? void 0 : _h.supportsDelete);
|
841
|
-
return (h(Host, { key: '
|
842
|
-
h("div", { key: '
|
841
|
+
return (h(Host, { key: 'ac9c78b064154a666a50e7e8540f13bd541c4d37' }, h("calcite-shell", { key: 'e12b6fd8ac5f92282899edceb5818764fb543301', style: { position: this.position } }, this._getHeader(), h("calcite-loader", { key: 'e73db3c6f71cddf497cb20e1f59e9f1d8b1ecdd6', class: loadingClass, label: this._translations.fetchingData }), h("div", { key: 'ab1913d90206219978d425a45f312da3e73bcca8', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), h("div", { key: '67242dfb2b219e71a135c88d9d5e2fd40b083226', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
|
842
|
+
h("div", { key: '25ee3d9374a5ce97c4fcd672b1f78315d1294719', class: "display-flex top-border padding-1-2" }, h("calcite-button", { key: '840e3b4ae075fbfd7836f2757128e2cfe9f267e3', appearance: "solid", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), this.isMobile && deleteEnabled ? (h("delete-button", { class: "padding-inline-start-1 width-100", id: "solutions-delete", ids: ids, layer: this._layer, onEditsComplete: () => this._closePopup() })) : undefined, h("calcite-tooltip", { key: '747436c3815e94976c2838777a26185c9cb7ab28', placement: "bottom", "reference-element": "solutions-edit" }, h("span", { key: 'd40dbe85eddaf99acc522f305960ce59c16a8b1f' }, this._translations.edit)), this.isMobile ? (h("calcite-tooltip", { placement: "bottom", "reference-element": "solutions-delete" }, h("span", null, this._translations.delete))) : undefined), this.paginationEnabled && !nextBackDisabled && h("div", { key: '9a1b1e5d7e4432f6b2cd80f77a49f50b1910117f', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, h("div", { key: '9b6fd66023b514ff996107ade3af93415f1353f1' }, h("calcite-button", { key: '823bcbe1a3b592344972e6ef39fd5088ab6197fa', appearance: 'transparent', disabled: nextBackDisabled, iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), h("calcite-tooltip", { key: 'f547487c9eae179e0c65015a24432c936de2ceca', placement: "top", "reference-element": "solutions-back" }, h("span", { key: 'f6f352416103008acc20238efe7e7714fca8d05e' }, this._translations.back))), h("calcite-action", { key: '799e06b8af5df338b920ddc578fa349de469e786', class: 'pagination-action', onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, h("span", { key: 'adee5b6b5149dbb4c1d6136c1314db89a04e8913', class: "pagination-count" }, this._count)), h("div", { key: '87f181c53ad1806a9831d01b54fdd51434a5a4c2' }, h("calcite-button", { key: 'a4612a6f0d9b6a9412e60022599cba536cd4f623', appearance: "transparent", disabled: nextBackDisabled, iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), h("calcite-tooltip", { key: '613849a34a568fe8df2abe8b1813070cb7a54633', placement: "top", "reference-element": "solutions-next" }, h("span", { key: '35a2e621ce4b3bccb2b859e961db1065d619b2d9' }, this._translations.next))))), h("edit-card", { key: 'a2054fc21fc09dbffc47e1a7617a4b91b29d26fd', class: editClass, graphicIndex: (_j = this._features) === null || _j === void 0 ? void 0 : _j.selectedFeatureIndex, graphics: this.graphics, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { key: 'ec0fd6540b21987c80fe2035efa96d197c1e6cec', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { key: '721a363423ec61a9645b003a7d53849137fe1b82', slot: "title" }, this._translations.editDisabled), h("div", { key: '143e9ff06f5363682e8b9e1976fdbfdd1b56f2a9', slot: "message" }, this._translations.enableEditing)))));
|
843
843
|
}
|
844
844
|
//--------------------------------------------------------------------------
|
845
845
|
//
|
@@ -167,7 +167,7 @@ const MapLayerPicker = class {
|
|
167
167
|
const id = "map-layer-picker";
|
168
168
|
let style = this.height > 0 ? { "height": `${this.height.toString()}px` } : {};
|
169
169
|
style = Object.assign(Object.assign({}, style), { "display": this.display });
|
170
|
-
return (h(Host, { key: '
|
170
|
+
return (h(Host, { key: 'a96e93924530d926c5e10dd2f7212f3f8c1cbe3c' }, h("div", { key: '4b96a73e43e86c31291e4ac60eb15976b01de6a2', class: "map-layer-picker-container", style: style }, h("div", { key: 'e75c61d8ce0853814dd3903b9e1952cc613b6fbb', class: "map-layer-picker", style: style }, !this._hasValidLayers ? this._getInvalidPlaceholder() :
|
171
171
|
!this._hasMultipleLayers && this.showSingleLayerAsLabel ? this._getSingleLayerPlaceholder() :
|
172
172
|
this.type === "combobox" ? this._getCombobox(id) :
|
173
173
|
this.type === "select" ? this._getSelect(id) : this._getDropdown(id)))));
|
@@ -347,10 +347,15 @@ const CreateFeature = class {
|
|
347
347
|
this.drawComplete = createEvent(this, "drawComplete", 7);
|
348
348
|
this.editingAttachment = createEvent(this, "editingAttachment", 7);
|
349
349
|
this.progressStatus = createEvent(this, "progressStatus", 7);
|
350
|
+
/**
|
351
|
+
* boolean: Flag to maintain form submission using submit button
|
352
|
+
*/
|
353
|
+
this._isSubmitBtnClicked = false;
|
350
354
|
this.mapView = undefined;
|
351
355
|
this.selectedLayerId = undefined;
|
352
356
|
this.customizeSubmit = false;
|
353
357
|
this.searchConfiguration = undefined;
|
358
|
+
this._editorLoading = false;
|
354
359
|
this.showSearchWidget = undefined;
|
355
360
|
}
|
356
361
|
//--------------------------------------------------------------------------
|
@@ -359,13 +364,25 @@ const CreateFeature = class {
|
|
359
364
|
//
|
360
365
|
//--------------------------------------------------------------------------
|
361
366
|
/**
|
362
|
-
|
363
|
-
|
367
|
+
* Called each time the mapView prop is changed.
|
368
|
+
*/
|
364
369
|
async mapViewWatchHandler() {
|
365
370
|
await this.mapView.when(async () => {
|
366
371
|
await this.init();
|
367
372
|
});
|
368
373
|
}
|
374
|
+
/**
|
375
|
+
* When _editorLoading is true the container node will be hidden while starting the create workflow
|
376
|
+
*/
|
377
|
+
async _editorLoadingWatchHandler(v) {
|
378
|
+
var _a, _b;
|
379
|
+
if (v) {
|
380
|
+
(_a = this._container) === null || _a === void 0 ? void 0 : _a.classList.add("display-none");
|
381
|
+
await this.startCreate();
|
382
|
+
(_b = this._container) === null || _b === void 0 ? void 0 : _b.classList.remove("display-none");
|
383
|
+
this._editorLoading = false;
|
384
|
+
}
|
385
|
+
}
|
369
386
|
//--------------------------------------------------------------------------
|
370
387
|
//
|
371
388
|
// Methods (public)
|
@@ -386,6 +403,7 @@ const CreateFeature = class {
|
|
386
403
|
*/
|
387
404
|
async submit() {
|
388
405
|
if (this._editor) {
|
406
|
+
this._isSubmitBtnClicked = true;
|
389
407
|
this._editor.viewModel.featureFormViewModel.submit();
|
390
408
|
}
|
391
409
|
}
|
@@ -412,7 +430,9 @@ const CreateFeature = class {
|
|
412
430
|
*/
|
413
431
|
render() {
|
414
432
|
const showSearchWidget = this.showSearchWidget ? '' : 'display-none';
|
415
|
-
|
433
|
+
const loaderClass = this._editorLoading ? "" : "display-none";
|
434
|
+
const featureFormClass = this._editorLoading ? "display-none" : "";
|
435
|
+
return (h(Fragment, { key: '2e790defdd5592fed729853888ee06143c95c84d' }, h("calcite-loader", { key: 'a0f1de0064ea80305d4aaf83f78939c0236c955a', class: loaderClass, label: "", scale: "s" }), h("div", { key: '1af391d6d7fd0dffa2e8e4b43905f8081a5f9820', class: featureFormClass, id: "feature-form" }), h("div", { key: '88d12115c3c2e0d34a5d6fd8895fb60cec6e9b5d', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref" })));
|
416
436
|
}
|
417
437
|
//--------------------------------------------------------------------------
|
418
438
|
//
|
@@ -448,11 +468,13 @@ const CreateFeature = class {
|
|
448
468
|
* @protected
|
449
469
|
*/
|
450
470
|
async createEditorWidget() {
|
471
|
+
var _a;
|
451
472
|
if (this._editor) {
|
452
473
|
this._editor.destroy();
|
453
474
|
}
|
454
475
|
const layerInfos = [];
|
455
|
-
|
476
|
+
this._container = document.createElement("div");
|
477
|
+
(_a = this._container) === null || _a === void 0 ? void 0 : _a.classList.add("display-none");
|
456
478
|
const allMapLayers = await getAllLayers(this.mapView);
|
457
479
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
458
480
|
allMapLayers.forEach(async (eachLayer) => {
|
@@ -471,9 +493,9 @@ const CreateFeature = class {
|
|
471
493
|
visibleElements: {
|
472
494
|
snappingControls: false
|
473
495
|
},
|
474
|
-
container
|
496
|
+
container: this._container
|
475
497
|
});
|
476
|
-
this.el.appendChild(
|
498
|
+
this.el.appendChild(this._container);
|
477
499
|
//Add handle to watch if attachments are added/edited
|
478
500
|
const attachmentHandle = this.reactiveUtils.watch(() => this._editor.viewModel.state, (state) => {
|
479
501
|
if (state === 'adding-attachment' || state === 'editing-attachment') {
|
@@ -492,13 +514,14 @@ const CreateFeature = class {
|
|
492
514
|
const handle = this.reactiveUtils.watch(() => this._editor.viewModel.featureTemplatesViewModel.state, (state) => {
|
493
515
|
if (state === 'ready') {
|
494
516
|
this.progressStatus.emit(0.5);
|
495
|
-
|
517
|
+
this._editorLoading = true;
|
496
518
|
}
|
497
519
|
});
|
498
520
|
this._editor.viewModel.addHandles(handle);
|
499
521
|
//Add handle to watch editor viewmodel state and then show the search widget
|
500
522
|
const formHandle = this.reactiveUtils.watch(() => this._editor.viewModel.state, (state) => {
|
501
523
|
if (state === 'creating-features') {
|
524
|
+
this._editorLoading = true;
|
502
525
|
this.showSearchWidget = true;
|
503
526
|
}
|
504
527
|
});
|
@@ -509,36 +532,39 @@ const CreateFeature = class {
|
|
509
532
|
* @protected
|
510
533
|
*/
|
511
534
|
async startCreate() {
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
this.
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
535
|
+
return new Promise((resolve, reject) => {
|
536
|
+
var _a;
|
537
|
+
if ((_a = this._editor.viewModel.featureTemplatesViewModel.items) === null || _a === void 0 ? void 0 : _a.length) {
|
538
|
+
const items = this._editor.viewModel.featureTemplatesViewModel.items[0].get("items");
|
539
|
+
//once the feature template is selected handle the event for formSubmit and sketch complete
|
540
|
+
//also, hide the headers and footer in the editor as we will be showing our own submit and cancel button
|
541
|
+
this._editor.viewModel.featureTemplatesViewModel.on('select', () => {
|
542
|
+
this.progressStatus.emit(0.75);
|
543
|
+
setTimeout(() => {
|
544
|
+
//on form submit
|
545
|
+
this._editor.viewModel.featureFormViewModel.on('submit', this.submitted.bind(this));
|
546
|
+
//on sketch complete emit the event
|
547
|
+
this._editor.viewModel.sketchViewModel.on("create", (evt) => {
|
548
|
+
if (evt.state === "complete") {
|
549
|
+
this.showSearchWidget = false;
|
550
|
+
this.progressStatus.emit(1);
|
551
|
+
this.drawComplete.emit();
|
552
|
+
}
|
553
|
+
});
|
554
|
+
this.hideEditorsElements().then(() => {
|
555
|
+
resolve({});
|
556
|
+
}, e => reject(e));
|
557
|
+
}, 700);
|
558
|
+
});
|
559
|
+
//if only one feature template then directly start geometry creation for that
|
560
|
+
//else allow feature template selection to user
|
561
|
+
if (items.length === 1) {
|
562
|
+
this._editor.viewModel.featureTemplatesViewModel.select(items[0]);
|
563
|
+
}
|
564
|
+
//hides the header and footer elements in editor widget
|
565
|
+
void this.hideEditorsElements();
|
538
566
|
}
|
539
|
-
|
540
|
-
this.hideEditorsElements();
|
541
|
-
}
|
567
|
+
});
|
542
568
|
}
|
543
569
|
/**
|
544
570
|
* Display search widget to search location
|
@@ -573,7 +599,7 @@ const CreateFeature = class {
|
|
573
599
|
if (this._editor.viewModel.sketchViewModel.createGraphic && pointGeometry) {
|
574
600
|
this._editor.viewModel.sketchViewModel.createGraphic.set('geometry', pointGeometry);
|
575
601
|
this._editor.viewModel.sketchViewModel.complete();
|
576
|
-
this.hideEditorsElements();
|
602
|
+
void this.hideEditorsElements();
|
577
603
|
}
|
578
604
|
}, 100);
|
579
605
|
}
|
@@ -632,22 +658,21 @@ const CreateFeature = class {
|
|
632
658
|
* Hides the elements of editor widget
|
633
659
|
* @protected
|
634
660
|
*/
|
635
|
-
hideEditorsElements() {
|
661
|
+
async hideEditorsElements() {
|
662
|
+
var _a;
|
636
663
|
if (!this.customizeSubmit) {
|
637
664
|
return;
|
638
665
|
}
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
});
|
650
|
-
}, 700);
|
666
|
+
await this.timeout(700);
|
667
|
+
//hides the header and footer on the featureForm
|
668
|
+
(_a = this.el.querySelector('.esri-editor').querySelectorAll('calcite-flow-item')) === null || _a === void 0 ? void 0 : _a.forEach((flowItem) => {
|
669
|
+
var _a, _b, _c, _d, _e;
|
670
|
+
const article = (_c = (_b = (_a = flowItem.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('calcite-panel')) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('article');
|
671
|
+
//hide the header
|
672
|
+
(_d = article === null || article === void 0 ? void 0 : article.querySelector('header')) === null || _d === void 0 ? void 0 : _d.setAttribute('style', 'display: none');
|
673
|
+
//hide the footer
|
674
|
+
(_e = article === null || article === void 0 ? void 0 : article.querySelector('footer')) === null || _e === void 0 ? void 0 : _e.setAttribute('style', 'display: none');
|
675
|
+
});
|
651
676
|
}
|
652
677
|
/**
|
653
678
|
* On creation of feature emit the event that the feature is created
|
@@ -658,11 +683,13 @@ const CreateFeature = class {
|
|
658
683
|
var _a;
|
659
684
|
//return if any attribute is invalid , focus will be shifted to the invalid attribute in feature form
|
660
685
|
if (evt.invalid.length) {
|
686
|
+
this._isSubmitBtnClicked = false;
|
661
687
|
return;
|
662
688
|
}
|
663
689
|
//Submit only when valid attributes
|
664
690
|
//emit success or fail based on the result
|
665
|
-
if (evt.valid.length) {
|
691
|
+
if (evt.valid.length && this._isSubmitBtnClicked) {
|
692
|
+
this._isSubmitBtnClicked = false;
|
666
693
|
try {
|
667
694
|
await this._editor.activeWorkflow.commit();
|
668
695
|
//throw errors if any failures
|
@@ -681,9 +708,18 @@ const CreateFeature = class {
|
|
681
708
|
this.success.emit();
|
682
709
|
}
|
683
710
|
}
|
711
|
+
/**
|
712
|
+
* call setTimeout in Promise wrapper
|
713
|
+
* @param delay The time, in milliseconds that the timer should wait before the promise is resolved
|
714
|
+
* @protected
|
715
|
+
*/
|
716
|
+
timeout(delay) {
|
717
|
+
return new Promise(resolve => setTimeout(resolve, delay));
|
718
|
+
}
|
684
719
|
get el() { return getElement(this); }
|
685
720
|
static get watchers() { return {
|
686
|
-
"mapView": ["mapViewWatchHandler"]
|
721
|
+
"mapView": ["mapViewWatchHandler"],
|
722
|
+
"_editorLoading": ["_editorLoadingWatchHandler"]
|
687
723
|
}; }
|
688
724
|
};
|
689
725
|
CreateFeature.style = CreateFeatureStyle0;
|
@@ -697,6 +733,10 @@ const CreateRelatedFeature = class {
|
|
697
733
|
this.success = createEvent(this, "success", 7);
|
698
734
|
this.fail = createEvent(this, "fail", 7);
|
699
735
|
this.isActionPending = createEvent(this, "isActionPending", 7);
|
736
|
+
/**
|
737
|
+
* boolean: Flag to maintain form submission using submit button
|
738
|
+
*/
|
739
|
+
this._isSubmitBtnClicked = false;
|
700
740
|
this.mapView = undefined;
|
701
741
|
this.table = undefined;
|
702
742
|
this.selectedFeature = undefined;
|
@@ -733,6 +773,7 @@ const CreateRelatedFeature = class {
|
|
733
773
|
*/
|
734
774
|
async submit() {
|
735
775
|
if (this._editor) {
|
776
|
+
this._isSubmitBtnClicked = true;
|
736
777
|
this._editor.viewModel.featureFormViewModel.submit();
|
737
778
|
}
|
738
779
|
}
|
@@ -770,7 +811,7 @@ const CreateRelatedFeature = class {
|
|
770
811
|
this.reactiveUtils = reactiveUtils;
|
771
812
|
}
|
772
813
|
render() {
|
773
|
-
return (h(Host, { key: '
|
814
|
+
return (h(Host, { key: 'c8516898db79b35b7fba909810afdc56b0602ebd' }));
|
774
815
|
}
|
775
816
|
/**
|
776
817
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -900,11 +941,13 @@ const CreateRelatedFeature = class {
|
|
900
941
|
var _a;
|
901
942
|
//return if any attribute is invalid , focus will be shifted to the invalid attribute in feature form
|
902
943
|
if (evt.invalid.length) {
|
944
|
+
this._isSubmitBtnClicked = false;
|
903
945
|
return;
|
904
946
|
}
|
905
947
|
//Submit only when valid attributes
|
906
948
|
//emit success or fail based on the result
|
907
|
-
if (evt.valid.length) {
|
949
|
+
if (evt.valid.length && this._isSubmitBtnClicked) {
|
950
|
+
this._isSubmitBtnClicked = false;
|
908
951
|
try {
|
909
952
|
await this._editor.activeWorkflow.commit();
|
910
953
|
//throw errors if any failures
|
@@ -930,7 +973,7 @@ const CreateRelatedFeature = class {
|
|
930
973
|
};
|
931
974
|
CreateRelatedFeature.style = CreateRelatedFeatureStyle0;
|
932
975
|
|
933
|
-
const featureDetailsCss = ":host{display:block}.buttons-container{align-items:center;display:flex;padding:
|
976
|
+
const featureDetailsCss = ":host{display:block}.buttons-container{align-items:center;display:flex;padding:4px;color:var(--calcite-color-text-1) !important;background-color:var(--calcite-color-foreground-1) !important;border-block-start:1px solid var(--calcite-color-border-3);border-block-end:1px solid var(--calcite-color-border-3)}.comment-btn{display:flex;gap:10px;font-size:var(--calcite-font-size--1);align-items:center;padding:7px 0.75rem}";
|
934
977
|
const FeatureDetailsStyle0 = featureDetailsCss;
|
935
978
|
|
936
979
|
const FeatureDetails = class {
|
@@ -955,6 +998,7 @@ const FeatureDetails = class {
|
|
955
998
|
this._isLikeBtnClicked = false;
|
956
999
|
this._isDislikeBtnClicked = false;
|
957
1000
|
this._relatedFeaturesOIDs = undefined;
|
1001
|
+
this._updating = false;
|
958
1002
|
}
|
959
1003
|
//--------------------------------------------------------------------------
|
960
1004
|
//
|
@@ -1026,12 +1070,12 @@ const FeatureDetails = class {
|
|
1026
1070
|
var _a, _b, _c, _d, _e;
|
1027
1071
|
//When related features found show comments list of only those features else comments list will be empty
|
1028
1072
|
const commentsListWhereClause = ((_a = this._relatedFeaturesOIDs) === null || _a === void 0 ? void 0 : _a.length) > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
|
1029
|
-
return (h("calcite-panel", { key: '
|
1030
|
-
h("div", { key: '
|
1031
|
-
h("div", { key: '
|
1032
|
-
h("calcite-button", { key: '
|
1033
|
-
h("calcite-button", { key: '
|
1034
|
-
h("feature-list", { key: '
|
1073
|
+
return (h("calcite-panel", { key: 'e42bbf7e4070b03c43aec1bf47c442b65cd35731', "full-height": true }, h("info-card", { key: 'f44099e2f8f87edbc656700e65daeb1bf934d41c', allowEditing: false, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, onSelectionChanged: (e) => { this.featureSelectionChange.emit(e.detail); }, paginationEnabled: false, position: "relative", ref: el => this._infoCard = el }), (this._likeFieldAvailable || this._dislikeFieldAvailable || this._commentsAvailable) &&
|
1074
|
+
h("div", { key: 'aa65adf8d8b6a059d5e9d0e74a1896eb20c84eaf', class: "buttons-container" }, this._commentsAvailable &&
|
1075
|
+
h("div", { key: '09dd5da4932a9a0526b413592d25469087eaf4c9', class: "comment-btn" }, h("span", { key: '48f7080ace69de3589aa4f3b199eb25e53f61110' }, this._relatedFeaturesOIDs.length), h("calcite-icon", { key: 'f524b4d66a0a6427dda6a7a93e9dc362fe7337fc', icon: "speech-bubble", scale: 's' })), this._likeFieldAvailable &&
|
1076
|
+
h("calcite-button", { key: '278a685b13f7ae2a37cb649a0933006104fa7b9f', appearance: "transparent", iconEnd: "thumbs-up", kind: this._isLikeBtnClicked ? "brand" : "neutral", loading: this._updating, onClick: this.onLikeButtonClick.bind(this), scale: 'm' }, (_c = (_b = this._likeCount) !== null && _b !== void 0 ? _b : this._selectedGraphic.attributes[this._likeField]) !== null && _c !== void 0 ? _c : 0), this._dislikeFieldAvailable &&
|
1077
|
+
h("calcite-button", { key: '7010b6ef352be7c587d7ca49fe3b8411aeb163c6', appearance: "transparent", iconEnd: "thumbs-down", kind: this._isDislikeBtnClicked ? "brand" : "neutral", loading: this._updating, onClick: this.onDislikeButtonClick.bind(this), scale: 'm' }, (_e = (_d = this._disLikeCount) !== null && _d !== void 0 ? _d : this._selectedGraphic.attributes[this._dislikeField]) !== null && _e !== void 0 ? _e : 0)), this.relatedTableId && this._commentsAvailable &&
|
1078
|
+
h("feature-list", { key: '526614c384fa627057a18528c1bd4aaf2b9c70d8', class: "height-full", mapView: this.mapView, onFeatureSelect: (e) => { this.commentSelect.emit(e.detail); }, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showErrorWhenNoFeatures: false, showInitialLoading: false, textSize: "small", whereClause: commentsListWhereClause })));
|
1035
1079
|
}
|
1036
1080
|
/**
|
1037
1081
|
* Load esri javascript api modules
|
@@ -1188,7 +1232,6 @@ const FeatureDetails = class {
|
|
1188
1232
|
* @protected
|
1189
1233
|
*/
|
1190
1234
|
onLikeButtonClick() {
|
1191
|
-
this.loadingStatus.emit(true);
|
1192
1235
|
if (this._isDislikeBtnClicked && this.reportingOptions[this._selectedGraphic.layer.id].dislike) {
|
1193
1236
|
this.onDislikeButtonClick();
|
1194
1237
|
}
|
@@ -1206,7 +1249,6 @@ const FeatureDetails = class {
|
|
1206
1249
|
* @protected
|
1207
1250
|
*/
|
1208
1251
|
onDislikeButtonClick() {
|
1209
|
-
this.loadingStatus.emit(true);
|
1210
1252
|
if (this._isLikeBtnClicked && this.reportingOptions[this._selectedGraphic.layer.id].like) {
|
1211
1253
|
this.onLikeButtonClick();
|
1212
1254
|
}
|
@@ -1228,6 +1270,7 @@ const FeatureDetails = class {
|
|
1228
1270
|
async updateFeaturesLikeDislikeField(fieldName, buttonClicked) {
|
1229
1271
|
const attributesToUpdate = {};
|
1230
1272
|
const selectedLayer = this._selectedGraphic.layer;
|
1273
|
+
this._updating = true;
|
1231
1274
|
//Increment the value if button is clicked or else decrement it
|
1232
1275
|
const selectFeatureAttr = this._selectedGraphic;
|
1233
1276
|
if (buttonClicked) {
|
@@ -1251,9 +1294,9 @@ const FeatureDetails = class {
|
|
1251
1294
|
}
|
1252
1295
|
//store the like dislike value for the current selected graphic in local storage
|
1253
1296
|
this.setInLocalStorage();
|
1254
|
-
this.
|
1297
|
+
this._updating = false;
|
1255
1298
|
}, (err) => {
|
1256
|
-
this.
|
1299
|
+
this._updating = false;
|
1257
1300
|
console.log(err);
|
1258
1301
|
});
|
1259
1302
|
}
|
@@ -1926,7 +1926,7 @@ const JsonEditor = class {
|
|
1926
1926
|
* Renders the component.
|
1927
1927
|
*/
|
1928
1928
|
render() {
|
1929
|
-
return (h(Host, { key: '
|
1929
|
+
return (h(Host, { key: '160ba6c2961d67add84b4f23b4aacd2213d064b2' }, h("div", { key: 'bf0a77eed1d206376244526db6a261cce163ca69', id: `${this.instanceid}-editor-container`, class: "editor-container padding-right" }, h("div", { key: '65a0f2f69d4b7f9694a6617755c638d9ad19e168', class: "editor-controls" }, h("div", { key: '3fccc399a3e2a45fe55a374c869a7a7c7533eafc', class: "editor-buttons" }, h("calcite-icon", { key: '5007e48c8ecf9d5a037e062bbb3b5ee3710b18eb', id: `${this.instanceid}-errorFlag`, icon: "exclamation-mark-triangle", title: this._translations.errorFlag, scale: "s", class: "edit-error-flag" }), h("calcite-button", { key: '37f8abf8027e0743e373de473421d06884f61d0b', id: `${this.instanceid}-undo`, color: "blue", appearance: "solid", title: this._translations.undo, onClick: () => this._undo(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '31c88e27793f4e07ccc20df6d6c88fa0d6661977', icon: "undo", scale: "s" })), h("calcite-button", { key: '56a5945e706a5c66044678f768d567286893c7b1', id: `${this.instanceid}-redo`, color: "blue", appearance: "solid", title: this._translations.redo, onClick: () => this._redo(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: 'b2a2d56e6818ee09be15114fcab357732f9f0c99', icon: "redo", scale: "s" })), h("calcite-button", { key: '63acf48f78d1f9cdcd86c5862e399be2217a16c1', id: `${this.instanceid}-diff`, color: "blue", appearance: "solid", title: this._translations.diff, onClick: () => this._toggleEditor(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '677f9c42bbb449fb51325a9dd4b60affd8a73cd7', icon: "compare", scale: "s" })), h("calcite-button", { key: '7cf8fac59ad4096ed541bfd1e6454cec70890c72', id: `${this.instanceid}-search`, appearance: "outline", color: "blue", title: this._translations.search, onClick: () => this._search(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '1e2e4290e7b7254a533a99d85ea2745050b22e55', icon: "search", scale: "s" })), h("calcite-button", { key: 'ec656bcb0a64a6ff6a42760710f8067eae18b9a5', id: `${this.instanceid}-reset`, color: "blue", appearance: "solid", disabled: true, title: this._translations.cancelEdits, onClick: () => this._reset(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '0210b400f5934c68c45fe61f4bf11d3efca97333', icon: "reset", scale: "s" })))), h("div", { key: 'd14efe742fe79b18a436bf522e33924c2a7e72d5', class: "edit-parent" }, h("div", { key: 'e550bbc5968b71701220a44cba17afa9f5f61c48', id: `${this.instanceid}-container`, class: "json-edit-container" }), h("div", { key: '9778b7229d2f3ec994c8a8d707a7f7b394697823', id: `${this.instanceid}-diff-container`, class: "json-edit-container display-none" })))));
|
1930
1930
|
}
|
1931
1931
|
//--------------------------------------------------------------------------
|
1932
1932
|
//
|
@@ -2278,7 +2278,7 @@ const SolutionItemDetails = class {
|
|
2278
2278
|
* Renders the component.
|
2279
2279
|
*/
|
2280
2280
|
render() {
|
2281
|
-
return (h(Host, { key: '
|
2281
|
+
return (h(Host, { key: 'd4443b28db9314e9c6976d97af02e7af14d2a5ff' }, h("div", { key: 'bd2969f299df5fab6bab10a6cd6dbe7c7213aba4', class: "parent-container" }, h("div", { key: 'd7226027bddc89eb4ff89899ee45728534331a5d', class: "inputBottomSeparation" }, h("calcite-input", { key: '9fcd5e9c9d5fe7ac652fff4fa06801fec240380f', id: "item-title", value: this.itemDetails.title })), h("div", { key: '9542faf04236ec293eff1f1abf0667ee4d26ab45', class: "inputBottomSeparation" }, h("input", { key: '9a431fef50c9be4f084b33003c6be4cab65a7da0', accept: ".jpg,.gif,.png,image/jpg,image/gif,image/png", class: "display-none", onChange: (event) => (this._updateThumbnail(event)), ref: (el) => (this.browseForThumbnail = el), type: "file" }), h("button", { key: '9ed82a0e807acd0344bd52bcef653728419d3fc1', class: "font-size--3 btn-link inline-block trailer-quarter", onClick: () => this._getThumbnail() }, h("svg", { key: '230d6a270cd61f4785b7f39e951e996a7b37a1ca', class: "icon-inline icon-inline--on-left", height: "16", viewBox: "0 0 16 16", width: "16" }, h("path", { key: '96a6c77691e152072aa0de03f63d8ec82f1ca051', d: "M14.792 2.666l-1.414-1.413a.965.965 0 0 0-1.385-.03l-1.444 1.444-8.763 8.72L.03 15.481a.371.371 0 0 0 .488.488l4.096-1.756 8.763-8.72-.001-.001.002.002 1.443-1.444a.965.965 0 0 0-.03-1.385zM1.569 14.431l.554-1.293.74.739zm2.338-.924l-1.414-1.414 7.963-7.92 1.414 1.415zm8.67-8.626l-1.413-1.414 1.29-1.29a.306.306 0 0 1 .433 0l.981.98a.306.306 0 0 1 0 .433z" })), this._translations.editThumbnail), h("div", { key: 'de04396607c0a61eb1e13bb56581aae9e939b286', class: "flex" }, h("div", { key: '3df8a6cde94bc275b85db55375aaa351453c46fb', class: "img-container", ref: (el) => (this.thumbnailContainer = el) }, h("img", { key: 'a5084eff2ebee0514c5cac6acf4e1b8dcaaf47d5', class: "scale-down", height: "133", id: "item-thumbnail", ref: (el) => (this.thumbnail = el), width: "200" })), h("div", { key: '73199d7582082575282f36ecb6afed3ee6bd900e', class: "snippet-count-container" }, h("calcite-input", { key: '7aa7c61d42be36c237c6bd9b72e4ec24ef6dc07d', id: "item-snippet", maxLength: 250, type: "textarea", value: this.itemDetails.snippet }), h("label", { key: '9ae2f293b2cb64a475a0969b7e00951a1b55e251', class: "font-size--3", id: "item-snippet-count", ref: (el) => (this.itemSnippetCount = el) })))), h("calcite-label", { key: '98cf6dd0f1f53e15c857baeb4f3a580586935762' }, this._translations.description, h("label", { key: '2f54c0fd6d75e4b08e74cf5b30d9794d0375a267', id: "item-description-label" }, h("calcite-input", { key: '91cf40b10f1bed0cd4bc83a988d9a4151ddec2e6', id: "item-description", type: "textarea", value: this.itemDetails.description }))), h("calcite-label", { key: '4261ff6e21385fb681cb6a52dbaa8e3d75973d8b' }, this._translations.tags, h("label", { key: 'cde48f34fd18fe530dea6be06c8fb5e602048266', id: "item-tags-label" }, h("calcite-input", { key: 'e11931c90df113bd512bab39be092257ffd92e42', id: "item-tags", value: (this.itemDetails.tags && Array.isArray(this.itemDetails.tags) ? this.itemDetails.tags : [this.itemDetails.tags]).join(",") }))), this.itemType !== "Group" ? h("calcite-label", null, this._translations.credits, h("label", { id: "item-credits-label" }, h("calcite-input", { id: "item-credits", value: this.itemDetails.accessInformation }))) : null, this.itemType !== "Group" ? h("calcite-label", null, h("label", { id: "item-terms-label" }, this._translations.termsOfUse, h("calcite-input", { id: "item-terms", type: "textarea", value: this.itemDetails.licenseInfo }))) : null)));
|
2282
2282
|
}
|
2283
2283
|
componentDidRender() {
|
2284
2284
|
this._loadThumb();
|
@@ -2443,7 +2443,7 @@ const SolutionItemSharing = class {
|
|
2443
2443
|
* Renders the component.
|
2444
2444
|
*/
|
2445
2445
|
render() {
|
2446
|
-
return (h(Host, { key: '
|
2446
|
+
return (h(Host, { key: '7042ab9382712488f9184b305e417dd93379422f' }, h("div", { key: '00baf7fac31f03b249592eb8603a74d6f93f2615', class: "container-border" }, h("calcite-label", { key: '5328280b6ee86819366800e43eda0c44b55ca277' }, this._translations.groupInfo), this._renderItems(this.sharing))));
|
2447
2447
|
}
|
2448
2448
|
//--------------------------------------------------------------------------
|
2449
2449
|
//
|
@@ -2562,7 +2562,7 @@ const SolutionOrganizationVariables = class {
|
|
2562
2562
|
* Renders the component.
|
2563
2563
|
*/
|
2564
2564
|
render() {
|
2565
|
-
return (h(Host, { key: '
|
2565
|
+
return (h(Host, { key: 'a4456905e1abde8eca22dfb6f3da81959d509b75' }, h("div", { key: '8fc37e2a59237ed0cca05b096f901a82da696151' }, h("h4", { key: '7bdd9e95f37297c51778a866542517048622e5ca', class: "org-var-header" }, this._translations.orgVariables)), h("div", { key: '10bfcebd83ddc363f04149a03298b0c5247fd265', class: "container-border" }, h("calcite-tree", { key: '1d168ebbceaf566fb8f4ddea85acba39c08bbd53', id: "variable-label" }, this._renderHierarchy(this._organizationVariables)))));
|
2566
2566
|
}
|
2567
2567
|
//--------------------------------------------------------------------------
|
2568
2568
|
//
|
@@ -2650,7 +2650,7 @@ const SolutionResourceItem = class {
|
|
2650
2650
|
*/
|
2651
2651
|
render() {
|
2652
2652
|
const hasValidResources = this._hasValidResources();
|
2653
|
-
return (h(Host, { key: '
|
2653
|
+
return (h(Host, { key: 'c36fddfce9c4c97b281281ec11dfa017d496141e' }, h("div", { key: 'e1166173669689e9acee92cc7e53747ebcec0c09', class: "resource-item" }, h("div", { key: '86c8e1d498d7b84e9587cdcf4a3bb971fc1ecaad', class: "margin-bottom-1" }, h("calcite-button", { key: 'f382275e75efeb5beadef582ddd343a283f014e2', appearance: "solid", class: "resource-button", color: "blue", onClick: () => this._addNewResource() }, this._translations.addResource), h("calcite-button", { key: 'c487e618472b047f8db71e8989f849c844682080', appearance: "solid", color: "blue", disabled: !hasValidResources, onClick: () => this._downloadAll() }, this._translations.downloadAll)), h("div", { key: '08733ba234cba9b5ea19455256fa961d23ae933b', class: "resources-container", style: { display: hasValidResources ? "inherit" : "none" } }, this._renderResourceList()))));
|
2654
2654
|
}
|
2655
2655
|
//--------------------------------------------------------------------------
|
2656
2656
|
//
|
@@ -2932,7 +2932,7 @@ const SolutionTemplateData = class {
|
|
2932
2932
|
* Renders the component.
|
2933
2933
|
*/
|
2934
2934
|
render() {
|
2935
|
-
return (h(Host, { key: '
|
2935
|
+
return (h(Host, { key: 'f6c478a45be7ba02a79446dca5a12ecb7cfaf817' }, h("div", { key: 'd268f063606f2d0a0dfbe76f0ea907074ac91c60', class: "solution-data-container" }, h("calcite-shell", { key: '170f35aa82ad4e4fbd7e111b558417712396a44d', class: "light var-container", dir: "ltr" }, h("calcite-panel", { key: 'ada2da8d5240d9904cd9021c9573eee5bd8fe6a4', class: "json-editor" }, h("div", { key: '51001e6bcf73ed23d6c76f5d9c17a66b5cbd1d05', class: "solution-data-child-container calcite-match-height" }, h("json-editor", { key: '4390b6ff57b3d6341a8c984e8393badf4122df2a', class: "solution-data-editor-container", instanceid: this.itemId + "|" + this.instanceid, value: this.value }))), h("calcite-shell-panel", { key: '866f4349e9ca6f5e8120479997248c2962c18b90', "height-scale": "l", position: "end", slot: "contextual-panel", "width-scale": "xs" }, h("div", { key: 'adb11719b67d10a9a4da50d79ac23eadc68544a7', class: this.varsOpen ? "solution-data-child-container" : "solution-data-child-container-collapsed" }, h("calcite-button", { key: 'c6a7365e101045ad0f30700e6ba296ff62f0942d', appearance: "transparent", class: "collapse-btn", "icon-start": this.varsOpen ? "chevrons-right" : "chevrons-left", id: "collapse-vars", onClick: () => this._toggleVars(), scale: "s", title: this.varsOpen ? this._translations.collapse : this._translations.expand }), h("div", { key: '76b05d456a9cafd25af16e3848e453ccfda5f1bc', class: this.varsOpen ? "org-vars" : "org-vars display-none", id: "orgVars" }, h("solution-organization-variables", { key: '4b2df6867414d5a6e4e9423b2133196dfd85b3bd', value: this.organizationVariables })), h("div", { key: 'eb5201a82e27a52e0a4f9c38cdc9db3f0c1173d8', class: this.varsOpen ? "sol-vars" : "sol-vars display-none", id: "solVars" }, h("solution-variables", { key: '00dda00409364b66e092e9ec304524c35f7d0704', value: this.solutionVariables }))))))));
|
2936
2936
|
}
|
2937
2937
|
//--------------------------------------------------------------------------
|
2938
2938
|
//
|
@@ -3005,7 +3005,7 @@ const SolutionVariables = class {
|
|
3005
3005
|
* Renders the component.
|
3006
3006
|
*/
|
3007
3007
|
render() {
|
3008
|
-
return (h(Host, { key: '
|
3008
|
+
return (h(Host, { key: '6673253cf19a8d760dc1444feef39a74258d01ed' }, h("div", { key: '44e5a11c8f31558baf8458cc883e579f2f23ff47' }, h("h4", { key: 'f8b7a19e4a9eb4860015cfdb6c55c2b94d66a222', class: "org-var-header" }, this._translations.solVariables)), h("div", { key: 'ffb70400c5fd22a944328672e7eaefa5918fce5c', class: "container-border" }, h("calcite-tree", { key: 'de81612c2a603f17b1bcb58f0b750401db0d4f20', id: "variable-label" }, this._renderHierarchy(this._solutionVariables)))));
|
3009
3009
|
}
|
3010
3010
|
//--------------------------------------------------------------------------
|
3011
3011
|
//
|
@@ -396,7 +396,7 @@ const LayerTable = class {
|
|
396
396
|
const selected = this.selectedIds.length.toString();
|
397
397
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
398
398
|
this._validateActiveActions();
|
399
|
-
return (h(Host, { key: '
|
399
|
+
return (h(Host, { key: 'c0451b25b6253fc017f59f471ced6347a618bdcf' }, h("calcite-shell", { key: 'b71245a1b347aae2e06ccccd750875d9c0571b1b' }, this._getTableControlRow("header"), h("div", { key: 'a4c9e51f2cfa9e90bd1b67e8d542e93896321037', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: 'e50e3a4165c02c56f99897fa29f079b2ef1e02ff', class: "height-full width-full" }, h("calcite-loader", { key: 'ad263eb3ac8558d6cd0777f993f663ddd0f7fbe6', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '2bcbdf8197b4bcc5102d408538dab17acd803ae9', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
400
400
|
.replace("{{total}}", total)
|
401
401
|
.replace("{{selected}}", selected))) : undefined)), this._filterModal()));
|
402
402
|
}
|
@@ -1707,7 +1707,7 @@ const MapCard = class {
|
|
1707
1707
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
1708
1708
|
const mapPickerClass = ((_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.length) > 1 ? "" : "display-none";
|
1709
1709
|
const mapHeightClass = ((_b = this.mapInfos) === null || _b === void 0 ? void 0 : _b.length) > 1 ? "map-height" : "height-full";
|
1710
|
-
return (h(Host, { key: '
|
1710
|
+
return (h(Host, { key: '4f5c0cd408f92856ceb2ba281a02856064ef6a5a' }, h("map-picker", { key: 'f69742384dc5ba13bbf257592cc8c35de77590f0', class: mapPickerClass, mapInfos: this.mapInfos, ref: (el) => this._mapPicker = el }), h("div", { key: '3ddddf3f674d49ae59fe627af1c67ec59718c9a3', class: `${mapHeightClass} ${mapClass}`, ref: (el) => (this._mapDiv = el) }), h("map-tools", { key: '6cb9518e74af0594ab6b657f0caec3598c250cb2', basemapConfig: this.basemapConfig, class: `box-shadow ${themeClass}`, enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, enableSingleExpand: this.enableSingleExpand, homeZoomToolsSize: this.homeZoomToolsSize, mapView: this.mapView, mapWidgetsSize: this.mapWidgetsSize, position: this.mapWidgetsPosition, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration, stackTools: this.stackTools, toolOrder: this.toolOrder })));
|
1711
1711
|
}
|
1712
1712
|
//--------------------------------------------------------------------------
|
1713
1713
|
//
|
@@ -195,7 +195,7 @@ const CrowdsourceManager = class {
|
|
195
195
|
render() {
|
196
196
|
// only avoid border when we have a header color that is not white
|
197
197
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
198
|
-
return (h(Host, { key: '
|
198
|
+
return (h(Host, { key: '9624c9a65dfde0984d1abdc8ed78f709d58874f3' }, h("calcite-shell", { key: '0b54737e19b7ab1b17a1841b7b83267515a5de51', class: "position-relative" }, h("calcite-panel", { key: 'aea71b81bd854548f921920cb6dc259d8441a2b2', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
|
199
199
|
}
|
200
200
|
/**
|
201
201
|
* Called after each render
|