@esri/solutions-components 0.10.44 → 0.10.46
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 +5 -5
- package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/{calcite-alert_5.cjs.entry.js → calcite-alert_6.cjs.entry.js} +136 -0
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +6 -6
- package/dist/cjs/{calcite-shell_3.cjs.entry.js → calcite-shell.cjs.entry.js} +0 -256
- package/dist/cjs/card-manager_3.cjs.entry.js +13 -7
- package/dist/cjs/crowdsource-manager.cjs.entry.js +25 -4
- package/dist/cjs/delete-dialog.cjs.entry.js +131 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +19 -19
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +2 -2
- 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-accordion.cjs.entry.js +1 -1
- 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/crowdsource-manager/crowdsource-manager.css +4 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +31 -3
- package/dist/collection/components/layer-table/layer-table.js +32 -7
- 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 +54 -20
- 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 +2 -2
- 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-accordion/solution-item-accordion.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/collection/utils/interfaces.ts +4 -0
- package/dist/components/crowdsource-manager.js +27 -5
- package/dist/components/layer-table2.js +84 -91
- 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 +19 -19
- 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 +2 -2
- 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-accordion.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-ref.js +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +5 -5
- package/dist/esm/buffer-tools_3.entry.js +1 -1
- package/dist/esm/{calcite-alert_5.entry.js → calcite-alert_6.entry.js} +136 -1
- package/dist/esm/calcite-combobox_3.entry.js +1 -1
- package/dist/esm/calcite-shell-panel_14.entry.js +6 -6
- package/dist/esm/{calcite-shell_3.entry.js → calcite-shell.entry.js} +2 -256
- package/dist/esm/card-manager_3.entry.js +13 -7
- package/dist/esm/crowdsource-manager.entry.js +25 -4
- package/dist/esm/delete-dialog.entry.js +127 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +19 -19
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/public-notification.entry.js +2 -2
- 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-accordion.entry.js +1 -1
- 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-ce53e33d.entry.js → p-11c2426d.entry.js} +2 -2
- package/dist/solutions-components/p-1336a071.entry.js +6 -0
- package/dist/solutions-components/{p-5001cc41.entry.js → p-274aa753.entry.js} +1 -1
- package/dist/solutions-components/{p-e1e21798.entry.js → p-36b864ba.entry.js} +1 -1
- package/dist/solutions-components/p-41503b16.entry.js +6 -0
- package/dist/solutions-components/{p-561c0e02.entry.js → p-44dc3dec.entry.js} +1 -1
- package/dist/solutions-components/{p-471d5c7f.entry.js → p-45ab1117.entry.js} +2 -2
- package/dist/solutions-components/p-49ed272d.entry.js +11 -0
- package/dist/solutions-components/{p-b7fbaeb7.entry.js → p-6b5b52c1.entry.js} +1 -1
- package/dist/solutions-components/{p-62d8796c.entry.js → p-7475b8b4.entry.js} +2 -2
- package/dist/solutions-components/{p-80e81af7.entry.js → p-7bcfe068.entry.js} +1 -1
- package/dist/solutions-components/{p-41314f33.entry.js → p-96027923.entry.js} +1 -1
- package/dist/solutions-components/p-9c25ee2c.entry.js +6 -0
- package/dist/solutions-components/{p-8d4a4498.entry.js → p-b6d50640.entry.js} +1 -1
- package/dist/solutions-components/p-b8d1b57a.entry.js +6 -0
- package/dist/solutions-components/p-b95968fa.entry.js +6 -0
- package/dist/solutions-components/p-d2f8d8a8.entry.js +6 -0
- package/dist/solutions-components/{p-d51c07d2.entry.js → p-f57978f3.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +4 -0
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +19 -0
- package/dist/types/components/layer-table/layer-table.d.ts +5 -5
- package/dist/types/components/map-select-tools/map-select-tools.d.ts +8 -8
- package/dist/types/components.d.ts +23 -2
- package/dist/types/preact.d.ts +2 -1
- package/dist/types/utils/interfaces.d.ts +3 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-0a2e5861.entry.js +0 -6
- package/dist/solutions-components/p-56beff4c.entry.js +0 -6
- package/dist/solutions-components/p-8b92fe23.entry.js +0 -6
- package/dist/solutions-components/p-8e2f4995.entry.js +0 -6
- package/dist/solutions-components/p-d7afbe8d.entry.js +0 -11
- package/dist/solutions-components/p-f0509d41.entry.js +0 -6
@@ -61,7 +61,7 @@ const PciCalculator$1 = /*@__PURE__*/ proxyCustomElement(class PciCalculator ext
|
|
61
61
|
render() {
|
62
62
|
const pciClass = !this.showAddDeduct ? "display-grid" : "display-none";
|
63
63
|
const deductClass = this.showAddDeduct ? "position-relative" : "display-none";
|
64
|
-
return (h(Host, { key: '
|
64
|
+
return (h(Host, { key: '4f333fa9aecd33cf2b34d85802c79256073f940c' }, h("div", { key: '6946f22e384fac51a20e2efb7b4ddbf2de7517ed', class: pciClass }, h("div", { key: 'e30e88571eb1b89588798d51ba788e4b6dc7d269', class: "label-display" }, h("calcite-label", { key: '034582e553ac4191939095cec8d836bc567ea77e', class: "label-display" }, "Enter comma delimited deduct values", this._getDeductValuesInput())), h("div", { key: '7fc1ae8d901b0a1ce820e53e225b275f1d779eb6' }, this._getCalculateButton())), h("div", { key: 'b74849f5007f54d3019be5e18a85769186edfffa', class: deductClass }, h("div", { key: 'ae8bf9314b0ead0b3f9d220d81cc410c2a29dc6f', class: "position-right" }, h("calcite-action", { key: 'cac38dc7e539275a0baeb0511fb8a09e8f96fa7a', appearance: 'transparent', class: "float-end", icon: "x", onClick: () => this._toggleShowAddDeduct(), scale: "s", text: '' })), h("deduct-calculator", { key: '68bcd78e3ef4505e5b1e5f0ea76d15f9e00fc18d', class: "display-grid padding-top-1", onDeductValueComplete: (evt) => this._addDeductValue(evt) }))));
|
65
65
|
}
|
66
66
|
//--------------------------------------------------------------------------
|
67
67
|
//
|
@@ -300,7 +300,7 @@ const PdfDownload = /*@__PURE__*/ proxyCustomElement(class PdfDownload extends H
|
|
300
300
|
* Renders the component.
|
301
301
|
*/
|
302
302
|
render() {
|
303
|
-
return (h(Host, { key: '
|
303
|
+
return (h(Host, { key: 'b3912d0709a26b249bf1dcaf77ff61036392c611' }, h("calcite-select", { key: 'ad6170eb7c52519940e8e93a8e552d660a9203f2', disabled: this.disabled, label: "", ref: (el) => { this._labelInfoElement = el; } })));
|
304
304
|
}
|
305
305
|
componentDidLoad() {
|
306
306
|
// Render the options outside of Stencil's rendering so that it doesn't mangle RTL text with embedded LTR
|
@@ -302,7 +302,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class PublicNotifi
|
|
302
302
|
*/
|
303
303
|
render() {
|
304
304
|
const headerSlot = this._isMobile ? "footer" : "header";
|
305
|
-
return (h(Host, { key: '
|
305
|
+
return (h(Host, { key: '0d4380d143c98ca5a3d2ddf0cf4ab2396eb2fd2a' }, h("calcite-shell", { key: '2768c18a968d0c1ec655dfe59fa6e9d1386e9aa3' }, h("calcite-action-bar", { key: 'a9f5ad4a339e0a6b729c753dfb7841bbedba6624', class: "border-bottom-1 action-bar-size", "expand-disabled": true, layout: "horizontal", slot: headerSlot }, this._getActionGroup("list-check", EPageType.LIST, this._translations.myLists), this.showRefineSelection ? this._getActionGroup("test-data", EPageType.REFINE, this._translations.refineSelection) : null, this._getActionGroup("export", EPageType.EXPORT, this._translations.export)), this._getPage(this._pageType))));
|
306
306
|
}
|
307
307
|
/**
|
308
308
|
* StencilJS: Called once just after the component is first loaded.
|
@@ -639,7 +639,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class PublicNotifi
|
|
639
639
|
*/
|
640
640
|
_getSelectPage() {
|
641
641
|
const noticeText = this._translations.selectSearchTip;
|
642
|
-
return (h("calcite-panel", null, this._getLabel(this._translations.stepTwoFull, true), this._getNotice(noticeText, "padding-1", "word-wrap-anywhere"), h("div", null, h("map-select-tools", { bufferColor: this.bufferColor, bufferOutlineColor: this.bufferOutlineColor, class: "font-bold", customLabelEnabled: this.customLabelEnabled, defaultBufferDistance: this.defaultBufferDistance, defaultBufferUnit: this.defaultBufferUnit, enableLayerFeatures: this.enableLayerFeatures, enableLayerFeaturesOnLoad: this.enableLayerFeaturesOnLoad, enableSearchDistance: this.enableSearchDistance, enableSearchDistanceOnLoad: this.enableSearchDistanceOnLoad, enableSketchTools: this.enableSketchTools, enabledLayerIds: this.addresseeLayerIds, isUpdate: !!this._activeSelection, locale: this.locale, mapView: this.mapView, noResultText: this.noResultText, onSelectionSetChange: (evt) => this._updateForSelection(evt), ref: (el) => { this._selectTools = el; }, searchConfiguration: this._searchConfiguration, selectionLayerIds: this.selectionLayerIds, selectionSet: this._activeSelection, sketchLineSymbol: this.sketchLineSymbol, sketchPointSymbol: this.sketchPointSymbol, sketchPolygonSymbol: this.sketchPolygonSymbol })), this._getPageNavButtons(this._translations.done, this._numSelected === 0, () => { void this._saveSelection(); }, this._translations.cancel, false, () => { void this._home(); })));
|
642
|
+
return (h("calcite-panel", null, this._getLabel(this._translations.stepTwoFull, true), this._getNotice(noticeText, "padding-1", "word-wrap-anywhere"), h("div", null, h("map-select-tools", { bufferColor: this.bufferColor, bufferOutlineColor: this.bufferOutlineColor, class: "font-bold", customLabelEnabled: this.customLabelEnabled, defaultBufferDistance: this.defaultBufferDistance, defaultBufferUnit: this.defaultBufferUnit, enableLayerFeatures: this.enableLayerFeatures, enableLayerFeaturesOnLoad: this.enableLayerFeaturesOnLoad, enableSearchDistance: this.enableSearchDistance, enableSearchDistanceOnLoad: this.enableSearchDistanceOnLoad, enableSketchTools: this.enableSketchTools, enabledLayerIds: this.addresseeLayerIds, isUpdate: !!this._activeSelection, locale: this.locale, mapView: this.mapView, noResultText: this.noResultText, onSelectionSetChange: (evt) => this._updateForSelection(evt), ref: (el) => { this._selectTools = el; }, searchConfiguration: this._searchConfiguration, searchDistanceEnabled: this.enableSearchDistanceOnLoad, selectionLayerIds: this.selectionLayerIds, selectionSet: this._activeSelection, sketchLineSymbol: this.sketchLineSymbol, sketchPointSymbol: this.sketchPointSymbol, sketchPolygonSymbol: this.sketchPolygonSymbol, useLayerFeaturesEnabled: this.enableLayerFeaturesOnLoad })), this._getPageNavButtons(this._translations.done, this._numSelected === 0, () => { void this._saveSelection(); }, this._translations.cancel, false, () => { void this._home(); })));
|
643
643
|
}
|
644
644
|
/**
|
645
645
|
* Create the main download page that has the shared aspects of both PDF and CSV
|
@@ -143,7 +143,7 @@ const RefineSelection = /*@__PURE__*/ proxyCustomElement(class RefineSelection e
|
|
143
143
|
*/
|
144
144
|
render() {
|
145
145
|
const layerPickerClass = this._enabledLayerIds.length > 1 ? "display-block" : "display-none";
|
146
|
-
return (h(Host, { key: '
|
146
|
+
return (h(Host, { key: 'efa77aec940afdb80051b36300a492ac5764a413' }, h("div", { key: 'ac59062ad6b3bb15727d1d88ac99ba983c7a2ff9', class: layerPickerClass + " padding-top-sides-1" }, h("div", { key: '27599ce74e9f7d6133f6cbfa40db4acfa8c00eeb', class: "display-flex" }, h("calcite-label", { key: 'b8acd5160effc68b7ee03a85ba8d6d2a5966c3e8', class: "font-bold width-full label-margin-0" }, h("div", { key: 'b2185de868b979281984019dbea9cf58a8bdef59', class: "display-flex" }, this._translations.inputLayer, h("calcite-icon", { key: '3bd42d1897e3d4374c9affeb20a4af09866645b4', class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "refine-input-layer", scale: "s" })), h("map-layer-picker", { key: '3c7202cb44db02ff2650aa2075af55a51f180018', enabledLayerIds: this._enabledLayerIds, locale: this.locale, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, ref: (el) => { this._layerPicker = el; }, selectedIds: [this._refineLayer.layer.id], showTables: false })), h("calcite-popover", { key: 'd70f7e4ad2926d05b05a2e74a4f69ae1bffb8cea', closable: true, label: "", referenceElement: "refine-input-layer" }, h("span", { key: 'bd70416a30a863e8cf96ac34c0b90cb420955344', class: "tooltip-message" }, this._translations.inputLayerTip)))), h("div", { key: '084b833c369a39179d28d1bbe07710fad7d47933', class: "padding-1" }, h("div", { key: '42056204fd2d97c1d2ab5fa9300b5d8bd903bb8a', class: "padding-bottom-1" }, h("calcite-segmented-control", { key: '6baa72a792c4785338ccfb462c019fa945bf1002', class: "w-100", width: "full" }, h("calcite-segmented-control-item", { key: 'e31ce029fcd48521aac0d7cb09426fc6afb0d536', checked: this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(ESelectionMode.ADD), value: ESelectionMode.ADD }, h("span", { key: '63fa738b401c7d2e1d55ea63faa5d2fc9496feae', class: "font-weight-500" }, this._translations.add)), h("calcite-segmented-control-item", { key: '77510ca6a043780cf6bd4eb835b0f88a51d4b2f1', checked: !this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(ESelectionMode.REMOVE), value: ESelectionMode.REMOVE }, h("span", { key: '3ae3c0b4fd72d7f8cb72a8e013528f1f2539bed1', class: "font-weight-500" }, this._translations.remove)))), h("div", { key: '41a3bea7ebbc8f2e62d842804d8081aae112d703' }, h("map-draw-tools", { key: '1bd98c62b98e196c9ec907059c6728790aa872fc', active: true, drawMode: EDrawMode.REFINE, locale: this.locale, mapView: this.mapView, onDrawRedo: () => this._redo(), onDrawUndo: () => this._undo(), onSketchGraphicsChange: (evt) => this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, redoEnabled: this._refineSelectionSet?.redoStack.length > 0, ref: (el) => { this._drawTools = el; }, undoEnabled: this._refineSelectionSet?.undoStack.length > 0 })), h("br", { key: 'ccdeef335f78d4eca3ebacd0fafb468db8c9ee7f' }), (h("calcite-list", { key: 'd2831ba128c37412ee91d51bc73d58ae0d3f0979', class: "list-border" }, this._getRefineSelectionSetList())))));
|
147
147
|
}
|
148
148
|
//--------------------------------------------------------------------------
|
149
149
|
//
|
@@ -51,7 +51,7 @@ const ShareItem$1 = /*@__PURE__*/ proxyCustomElement(class ShareItem extends HTM
|
|
51
51
|
//
|
52
52
|
//--------------------------------------------------------------------------
|
53
53
|
render() {
|
54
|
-
return (h(Host, { key: '
|
54
|
+
return (h(Host, { key: 'fb0d98cfbbb4becfc168d715f6198a3923f58e03' }, h("slot", { key: '60b3c4db7192cc50fb57056c172abf8fb0e048fd' })));
|
55
55
|
}
|
56
56
|
static get style() { return ShareItemStyle0; }
|
57
57
|
}, [1, "share-item"]);
|
@@ -1206,11 +1206,11 @@ const SolutionConfiguration$1 = /*@__PURE__*/ proxyCustomElement(class SolutionC
|
|
1206
1206
|
const solutionData = state.getStoreInfo("solutionData");
|
1207
1207
|
this._solutionVariables = JSON.stringify(getSolutionVariables(solutionData.templates, this._translations));
|
1208
1208
|
this._organizationVariables = JSON.stringify(getOrganizationVariables(this._translations));
|
1209
|
-
return (h(Host, { key: '
|
1209
|
+
return (h(Host, { key: '809b0a719774c3b51ad151982f297b287691d0cc' }, !this._solutionIsLoaded
|
1210
1210
|
? h("calcite-loader", { label: '' })
|
1211
|
-
: null, h("div", { key: '
|
1211
|
+
: null, h("div", { key: '2544740bc686d7fe363bed2db65cdbe43bf4d5bd', class: "configuration-container" }, h("div", { key: '408a760b71313eb7e9eac8f6a678dc91e4638d6c', class: "configuration" }, h("calcite-tabs", { key: 'dd7305e5a4e9fa71a4ed3b1847fed522db9aab93', class: "config-tabs" }, h("calcite-tab-nav", { key: '86ed45d74d5ec71424c55647c3d2be6b26ecff64', slot: "tab-nav" }, h("calcite-tab-title", { key: '5c994072f82dad7c7a96dad36588590ee878bfe7' }, this._translations.definitionTab), hasServices ?
|
1212
1212
|
h("calcite-tab-title", null, this._translations.spatialReferenceTab) :
|
1213
|
-
null), h("calcite-tab", { key: '
|
1213
|
+
null), h("calcite-tab", { key: 'cbbcb55de04b43bd373adac942980c11532af4d5', class: "config-tab", selected: true }, h("div", { key: '23fa5d4811faeeb74af221d1c1ed10a49c9c6ef5', class: "config-solution" }, h("div", { key: 'b633743e464284e99dca1f80c93bf1ff5cb18870', class: this._treeOpen ? "config-inventory" : "config-inventory-hide" }, h("solution-contents", { id: "configInventory", key: `${this.solutionItemId}-contents`, ref: (el) => (this._solutionContentsComponent = el) })), h("calcite-button", { key: 'e415661d2902e809c6ce805e5e0ed26b6f4c29c0', appearance: "transparent", class: "collapse-btn", "icon-start": this._treeOpen ? "chevrons-left" : "chevrons-right", id: "collapse-vars", onClick: () => this._toggleTree(), scale: "s", title: this._treeOpen ? this._translations.collapse : this._translations.expand }), h("div", { key: 'a3968cb69c45376a0cbf2127e1c5126b4f34af54', class: "config-item" }, h("solution-item", { authentication: this.authentication, "item-id": this._currentEditItemId, key: `${this.solutionItemId}-item`, locale: this.locale, "organization-variables": this._organizationVariables, "solution-item-id": this.solutionItemId, "solution-variables": this._solutionVariables })))), hasServices
|
1214
1214
|
? h("calcite-tab", { class: "config-tab" }, h("div", { class: "config-solution" }, h("solution-spatial-ref", { enableDefault: !!spatialReferenceInfo.default, enabled: spatialReferenceInfo?.enabled, featureServices: state.getStoreInfo("featureServices").map(fs => fs.name), id: "configure-solution-spatial-ref", key: `${this.solutionItemId}-spatial-ref`, locale: this.locale })))
|
1215
1215
|
: null)))));
|
1216
1216
|
}
|
@@ -38,7 +38,7 @@ const SolutionContents = /*@__PURE__*/ proxyCustomElement(class SolutionContents
|
|
38
38
|
* Renders the component.
|
39
39
|
*/
|
40
40
|
render() {
|
41
|
-
return (h(Host, { key: '
|
41
|
+
return (h(Host, { key: 'd91cfec3e955e635a3196043c935733a7f4c726d' }, h("calcite-tree", { key: '6fcf281c5f61578b8d343893367ab1bd97315387' }, this.renderHierarchy(this.templateHierarchy))));
|
42
42
|
}
|
43
43
|
renderHierarchy(objs) {
|
44
44
|
return objs.map((obj) => {
|
@@ -131,7 +131,7 @@ const SolutionItemAccordion$1 = /*@__PURE__*/ proxyCustomElement(class SolutionI
|
|
131
131
|
* Renders the component.
|
132
132
|
*/
|
133
133
|
render() {
|
134
|
-
return (h(Host, { key: '
|
134
|
+
return (h(Host, { key: '3fd8de4658f18f1719282fabc3ca9299fa1a6952' }, this._getAccordion()));
|
135
135
|
}
|
136
136
|
//--------------------------------------------------------------------------
|
137
137
|
//
|
@@ -70,7 +70,7 @@ const SolutionItemDetails = /*@__PURE__*/ proxyCustomElement(class SolutionItemD
|
|
70
70
|
* Renders the component.
|
71
71
|
*/
|
72
72
|
render() {
|
73
|
-
return (h(Host, { key: '
|
73
|
+
return (h(Host, { key: '91b7ce062e477c856e3a512e5247ac9fb3299fc9' }, h("div", { key: 'fa10231c42260d1117b14653359f531e0688a46c', class: "parent-container" }, h("div", { key: 'c6a3c70442de79c97f730c5c9a351f033a75e0f5', class: "inputBottomSeparation" }, h("calcite-input", { key: '8b33b09b05bd3d81bde6e739288ef806083bfe9a', id: "item-title", value: this.itemDetails.title })), h("div", { key: '288c1856a396fd47b6df74d76da153a70832a548', class: "inputBottomSeparation" }, h("input", { key: '16bedd351e0be19f7ef8b0f9e30ac8d54bf19512', 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: 'e0f9adf5152b9b292e859667bacf4d154e563302', class: "font-size--3 btn-link inline-block trailer-quarter", onClick: () => this._getThumbnail() }, h("svg", { key: '99611f9c671193b9a833b76a6ed071bc8a61b18f', class: "icon-inline icon-inline--on-left", height: "16", viewBox: "0 0 16 16", width: "16" }, h("path", { key: 'c499a06b58b083384ad0ab7b053c266bdc6db252', 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: 'fa7b1a1c072901eb2abed7f9c756320e03b8d7de', class: "flex" }, h("div", { key: 'e5e982728dfcc569987db0f3bbd621fea819fc6c', class: "img-container", ref: (el) => (this.thumbnailContainer = el) }, h("img", { key: 'e09073dc5598c3dac5a020830b44e013dc884f2b', class: "scale-down", height: "133", id: "item-thumbnail", ref: (el) => (this.thumbnail = el), width: "200" })), h("div", { key: '3023ad5fba278e0a9982d51c63cf052ffb7a4dc4', class: "snippet-count-container" }, h("calcite-input", { key: '2b57abed7b2299b29e011363976290425457f194', id: "item-snippet", maxLength: 250, type: "textarea", value: this.itemDetails.snippet }), h("label", { key: 'b8af7f4e80bcc1722ba512f63941dc38dc8c3ae4', class: "font-size--3", id: "item-snippet-count", ref: (el) => (this.itemSnippetCount = el) })))), h("calcite-label", { key: 'd364ae177e5ac0b8356b63cd842f5ef8f4a10bb8' }, this._translations.description, h("label", { key: '88655b88d2f5fbf3a000492c780110fc3a4d0634', id: "item-description-label" }, h("calcite-input", { key: '5034fb4d2ccf7927bb200dadd0d543ca05bb4da2', id: "item-description", type: "textarea", value: this.itemDetails.description }))), h("calcite-label", { key: '00f30749424b6c07279e11ba171d4335af6b6443' }, this._translations.tags, h("label", { key: '64564edcf7c4a55102d06ffd1c937fd275cc0733', id: "item-tags-label" }, h("calcite-input", { key: 'bc46622ffde1e9064e726594fd70c43c91fe36d7', 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)));
|
74
74
|
}
|
75
75
|
componentDidRender() {
|
76
76
|
this._loadThumb();
|
@@ -26,7 +26,7 @@ const SolutionItemIcon = /*@__PURE__*/ proxyCustomElement(class SolutionItemIcon
|
|
26
26
|
* Renders the component.
|
27
27
|
*/
|
28
28
|
render() {
|
29
|
-
return h("div", { key: '
|
29
|
+
return h("div", { key: 'e14a2bed4b4c74b5959d7b12f73f9c8a1b374e6d', title: this.type }, h("img", { key: 'd7a7eccc3361946b2641e8499af21b199792a223', class: "item-type-icon item-type-icon-margin", height: "16", src: this._getIconUrl(this.type, this.typeKeywords), width: "16" }));
|
30
30
|
}
|
31
31
|
//--------------------------------------------------------------------------
|
32
32
|
//
|
@@ -56,7 +56,7 @@ const SolutionItemSharing = /*@__PURE__*/ proxyCustomElement(class SolutionItemS
|
|
56
56
|
* Renders the component.
|
57
57
|
*/
|
58
58
|
render() {
|
59
|
-
return (h(Host, { key: '
|
59
|
+
return (h(Host, { key: 'eca66b743e748d9f915c6d356ea84075ab21709a' }, h("div", { key: 'b0765e14cc9de5a81afa5d20bc41e7f78913a37e', class: "container-border" }, h("calcite-label", { key: '36cbf3b48a2641bcb2107e61609c2ec6c9f18991' }, this._translations.groupInfo), this._renderItems(this.sharing))));
|
60
60
|
}
|
61
61
|
//--------------------------------------------------------------------------
|
62
62
|
//
|
@@ -87,7 +87,7 @@ const SolutionItem = /*@__PURE__*/ proxyCustomElement(class SolutionItem extends
|
|
87
87
|
* Renders the component.
|
88
88
|
*/
|
89
89
|
render() {
|
90
|
-
return (h(Host, { key: '
|
90
|
+
return (h(Host, { key: '721f488604e2d9ad7a063d0776e11587baca4d3d' }, h("div", { key: '32b1a71eddf54a139b62cc68b5acdd5e5cc53e7a', class: "configuration-container" }, h("div", { key: '9064802d85a4f77faec0bbc6c17b303c7b9bdf16', class: "configuration" }, this._showGroupTabs(this.itemType === "Group"), this._showItemTabs(this.itemType !== "Group")))));
|
91
91
|
}
|
92
92
|
//--------------------------------------------------------------------------
|
93
93
|
//
|
@@ -55,7 +55,7 @@ const SolutionOrganizationVariables = /*@__PURE__*/ proxyCustomElement(class Sol
|
|
55
55
|
* Renders the component.
|
56
56
|
*/
|
57
57
|
render() {
|
58
|
-
return (h(Host, { key: '
|
58
|
+
return (h(Host, { key: '4d1a39b53287d445a1fc66cd5088a7bc60516ab6' }, h("div", { key: '7a40ad712fe1af01e92701d128f65b0590aa15bc' }, h("h4", { key: '7517fc56b5b0128ee102dc3f57e334501befe14f', class: "org-var-header" }, this._translations.orgVariables)), h("div", { key: 'd48cbc3ffb24ba54ded2b24c7c518ecf8114cd55', class: "container-border" }, h("calcite-tree", { key: '383124c0ae3d646dc9ee857109051e7a151dbe62', id: "variable-label" }, this._renderHierarchy(this._organizationVariables)))));
|
59
59
|
}
|
60
60
|
//--------------------------------------------------------------------------
|
61
61
|
//
|
@@ -73,7 +73,7 @@ const SolutionResourceItem = /*@__PURE__*/ proxyCustomElement(class SolutionReso
|
|
73
73
|
*/
|
74
74
|
render() {
|
75
75
|
const hasValidResources = this._hasValidResources();
|
76
|
-
return (h(Host, { key: '
|
76
|
+
return (h(Host, { key: '36017a54e5f8fafda593af2b727f1fbda80c7455' }, h("div", { key: 'eb9f53c9b4161c09e0b00d9a4d90a814d944819c', class: "resource-item" }, h("div", { key: '504dfa5fb623ed27a0829f60ebbf5de17b6d467f', class: "margin-bottom-1" }, h("calcite-button", { key: 'e578443e1ef409917c5946c77e660c04d273cb6c', appearance: "solid", class: "resource-button", color: "blue", onClick: () => this._addNewResource() }, this._translations.addResource), h("calcite-button", { key: 'e4c11326d7c5d96de1d0983eb0beb3cf726177c8', appearance: "solid", color: "blue", disabled: !hasValidResources, onClick: () => this._downloadAll() }, this._translations.downloadAll)), h("div", { key: '3617bf40ac8b01d70b523642757a624c977ea491', class: "resources-container", style: { display: hasValidResources ? "inherit" : "none" } }, this._renderResourceList()))));
|
77
77
|
}
|
78
78
|
_removedResources = {};
|
79
79
|
//--------------------------------------------------------------------------
|
@@ -64,7 +64,7 @@ const SolutionSpatialRef = /*@__PURE__*/ proxyCustomElement(class SolutionSpatia
|
|
64
64
|
}
|
65
65
|
render() {
|
66
66
|
this._updateUIFromStore();
|
67
|
-
return (h(Host, { key: '
|
67
|
+
return (h(Host, { key: '1badb0e90bbc64684ca6954c0d9122933ee894ce' }, h("label", { key: '3977294c964c895b537c709efe7b822d32a50239', class: "switch-label" }, h("calcite-switch", { key: '5e72cb2f635e584046cddcbd772a0fa5e729d6e8', checked: this.enabled, class: "spatial-ref-switch", onCalciteSwitchChange: (event) => this.enabled = event.target.checked, scale: "m" }), this._translations.enableSpatialReference), h("br", { key: 'c952c9e94b4e1bfd65a2c01b469bfc799bed669b' }), h("div", { key: 'd4c63008954968f5e78e9383b27419b95a18b6be', class: "spatial-ref-component", id: "spatialRefDefn" }, this._renderFeatureServicesList(this.featureServices)), h("label", { key: 'f49057d234fbc45d821b4da5971542f32ad845b7', class: "switch-label spatial-ref-component" }, h("calcite-switch", { key: '91754097e35a9218d6ce4412bc2d10ebc28e8518', checked: this.enableDefault, class: "spatial-ref-switch", disabled: !this.enabled, onCalciteSwitchChange: (event) => this.enableDefault = event.target.checked, scale: "m" }), this._translations.enableDefaultSpatialReference)));
|
68
68
|
}
|
69
69
|
//--------------------------------------------------------------------------
|
70
70
|
//
|
@@ -93,7 +93,7 @@ const SolutionTemplateData = /*@__PURE__*/ proxyCustomElement(class SolutionTemp
|
|
93
93
|
* Renders the component.
|
94
94
|
*/
|
95
95
|
render() {
|
96
|
-
return (h(Host, { key: '
|
96
|
+
return (h(Host, { key: 'db99cf57229d7d8b9fe6315e180d95de0b20fc8d' }, h("div", { key: '83473f420d1417c85ebb4119be9f359cab878c54', class: "solution-data-container" }, h("calcite-shell", { key: '013754ef962c2e5c112f6a8cc6c5d1b8e768078e', class: "light var-container", dir: "ltr" }, h("calcite-panel", { key: '11ab2a07fe4af542d8cefc1c131246deef43dd9a', class: "json-editor" }, h("div", { key: 'ba0460977eb0375acaf5b11ce951986a08ece39b', class: "solution-data-child-container calcite-match-height" }, h("json-editor", { key: '53251c1583aa7e8cf2a4e9a1f22e4c72430d3928', class: "solution-data-editor-container", instanceid: this.itemId + "|" + this.instanceid, locale: this.locale, value: this.value }))), h("calcite-shell-panel", { key: '30c47797a35ff7228c4318a5633aec57de05b8cf', "height-scale": "l", position: "end", slot: "contextual-panel", "width-scale": "xs" }, h("div", { key: '028b16654835744f0735b880ca85a3d174963414', class: this.varsOpen ? "solution-data-child-container" : "solution-data-child-container-collapsed" }, h("calcite-button", { key: 'bb5049611e778b970454544851a625ccef47d23a', 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: 'c2a30a7c27db181e0dfe0e201d9d3b2742247080', class: this.varsOpen ? "org-vars" : "org-vars display-none", id: "orgVars" }, h("solution-organization-variables", { key: '178c4301c8558c4fe7114c8f6cf5bc0df10883a0', locale: this.locale, value: this.organizationVariables })), h("div", { key: 'f85375bac946cff856b6915f340bf926498265ea', class: this.varsOpen ? "sol-vars" : "sol-vars display-none", id: "solVars" }, h("solution-variables", { key: '166d0752746994bc4aebd4e41660f8a2d2c678ea', locale: this.locale, value: this.solutionVariables }))))))));
|
97
97
|
}
|
98
98
|
_initializing = false;
|
99
99
|
//--------------------------------------------------------------------------
|
@@ -56,7 +56,7 @@ const SolutionVariables = /*@__PURE__*/ proxyCustomElement(class SolutionVariabl
|
|
56
56
|
* Renders the component.
|
57
57
|
*/
|
58
58
|
render() {
|
59
|
-
return (h(Host, { key: '
|
59
|
+
return (h(Host, { key: 'a9354a1d3b3d91b9b9522bec945726e106487b78' }, h("div", { key: 'd38d0151ba9f8421e3ec863ce90b234964cb7f21' }, h("h4", { key: '3d10129c3327e803e38b4fc21976764f9ac91693', class: "org-var-header" }, this._translations.solVariables)), h("div", { key: '8b79cef63c5b8f5f66b0e11a4b94021f6a025fc3', class: "container-border" }, h("calcite-tree", { key: '7f69edec6e35a65e45b461d69e92d0e163563bee', id: "variable-label" }, this._renderHierarchy(this._solutionVariables)))));
|
60
60
|
}
|
61
61
|
//--------------------------------------------------------------------------
|
62
62
|
//
|
@@ -21116,7 +21116,7 @@ const SpatialRef$1 = /*@__PURE__*/ proxyCustomElement(class SpatialRef extends H
|
|
21116
21116
|
* Renders the component.
|
21117
21117
|
*/
|
21118
21118
|
render() {
|
21119
|
-
return (h(Host, { key: '
|
21119
|
+
return (h(Host, { key: 'eb35e40b48e51b151b8c3d9a0ea818c27f01cfbb' }, h("div", { key: '98e5acd4ff7b5abd11479bccb9b250632b10451e' }, h("calcite-input", { key: '3573bce155e5c476bdcdd2eb2e855f75b924461f', disabled: this.disabled, id: "calcite-sr-search", onKeyUp: (evt) => this._searchInputKeyDown(evt), placeholder: this._translations.spatialReferencePlaceholder }), h("calcite-tree", { key: '016c8cb7439f8834467c5e960f8df64261ced9cb', id: "calcite-sr-tree", slot: "children" }, this._getTreeContent()))));
|
21120
21120
|
}
|
21121
21121
|
_lastHighlightedSref;
|
21122
21122
|
//--------------------------------------------------------------------------
|
@@ -424,7 +424,7 @@ const MapFullscreen = class {
|
|
424
424
|
* Renders the component.
|
425
425
|
*/
|
426
426
|
render() {
|
427
|
-
return (h(Host, { key: '
|
427
|
+
return (h(Host, { key: '7eec3dc5ab76a4ad8fdd24d8d18f8e6cf2820dde' }, h("div", { key: '2093cc2a6a3678209e61eea63ebde2f69ec00011', class: "fullscreen-widget", ref: (el) => { this._fullscreenElement = el; } })));
|
428
428
|
}
|
429
429
|
/**
|
430
430
|
* StencilJS: Called just after the component updates.
|
@@ -551,7 +551,7 @@ const MapLegend = class {
|
|
551
551
|
* StencilJS: Renders the component.
|
552
552
|
*/
|
553
553
|
render() {
|
554
|
-
return (h(Host, { key: '
|
554
|
+
return (h(Host, { key: '768d9d69042516c6d4edc55fcb0af23f90d33e6e' }, h("div", { key: 'e1147cf58240e7a6fcb9a00fce3649a380755e3d', ref: (el) => { this._legendElement = el; } })));
|
555
555
|
}
|
556
556
|
/**
|
557
557
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -711,7 +711,7 @@ const MapPicker = class {
|
|
711
711
|
* Renders the component.
|
712
712
|
*/
|
713
713
|
render() {
|
714
|
-
return (h(Host, { key: '
|
714
|
+
return (h(Host, { key: 'ecfbf2669de4ce8c916e47c7a731f0a3ad33b419' }, this._getToolbar(), this._getMapNameList(this._mapListExpanded)));
|
715
715
|
}
|
716
716
|
/**
|
717
717
|
* Called once after the component has loaded
|
@@ -896,7 +896,7 @@ const MapSearch = class {
|
|
896
896
|
* Renders the component.
|
897
897
|
*/
|
898
898
|
render() {
|
899
|
-
return (h(Host, { key: '
|
899
|
+
return (h(Host, { key: '36e0fb49fdedbe9e8789fba37f86a2f2d57b4e45' }, h("div", { key: '796ee258723e9277dc98323ba76def22bd7dca3a', class: "search-widget", ref: (el) => { this._searchElement = el; } })));
|
900
900
|
}
|
901
901
|
//--------------------------------------------------------------------------
|
902
902
|
//
|
@@ -1203,7 +1203,7 @@ const MapTools = class {
|
|
1203
1203
|
const toolMarginClass = this.enableSingleExpand ? "margin-top-1-2" : "";
|
1204
1204
|
const toolOrder = this.toolOrder ? this.toolOrder : ["legend", "search", "fullscreen", "floorfilter"];
|
1205
1205
|
const shadowClass = this.stackTools ? "box-shadow" : "";
|
1206
|
-
return (h(Host, { key: '
|
1206
|
+
return (h(Host, { key: '6a707a10b3cbe094548a863b13d0852969c46f94' }, h("div", { key: 'c1e349ba8577a87f967b31a7a042be30cb933d34', class: containerClass }, this.enableSingleExpand ? (h("div", { class: "box-shadow" }, this._getActionGroup(toggleIcon, false, expandTip, () => this._toggleTools()))) : undefined, h("div", { key: '7120793f9d707fb0d1914f5aeffb3293532ab891', class: `${toolMarginClass} ${shadowClass} ${toolsClass}` }, this._getMapWidgets(toolOrder))), h("basemap-gallery", { key: '11e280302f6b1f5287aa83c7eb33542f3a9d87ab', basemapConfig: this.basemapConfig, class: basemapClass, mapView: this.mapView, ref: (el) => { this._basemapElement = el; } }), h("map-search", { key: 'c3afd22dc8d652877f48a6def87e486546993d61', class: searchClass, mapView: this.mapView, ref: (el) => { this._searchElement = el; }, resultGraphicEnabled: true, searchConfiguration: this.searchConfiguration }), h("map-legend", { key: 'b8fad3cdbc3b96b4f3441316651ad78b4ed3de65', class: legendClass, mapView: this.mapView, ref: (el) => { this._legendElement = el; } }), h("map-fullscreen", { key: 'e34111225f1ec80fedfd548196e407786d28200b', class: fullscreenClass, mapView: this.mapView, onFullscreenStateChange: (evt) => this._fullscreenStateChange(evt.detail), ref: (el) => { this._fullscreenElement = el; } }), h("floor-filter", { key: '2db5c7e6182d77786b162692169263495b2752f5', class: floorFilterClass, enabled: this.enableFloorFilter, mapView: this.mapView, ref: (el) => { this._floorFilterElement = el; } })));
|
1207
1207
|
}
|
1208
1208
|
//--------------------------------------------------------------------------
|
1209
1209
|
//
|
@@ -530,7 +530,7 @@ const MapDrawTools = class {
|
|
530
530
|
"border" : "border esri-widget esri-sketch__panel";
|
531
531
|
const undoRedoClass = this.drawMode === EDrawMode.SKETCH ?
|
532
532
|
"display-none" : "esri-widget esri-sketch__panel border-left esri-sketch__section";
|
533
|
-
return (h(Host, { key: '
|
533
|
+
return (h(Host, { key: '253db0399bab5d5fc6f4232bb537ddeec81fec2c' }, h("div", { key: 'bbac53da8b8b1196cc3a7aedf5479cd4e33ab3ea', class: containerClass }, h("div", { key: '8d3dae2c2f82f7e4d7aae92d4a4c6050d2a96478', ref: (el) => { this._sketchElement = el; } }), h("div", { key: 'd635374374ebdff26157a1258ba84932d491e36a', class: undoRedoClass }, h("calcite-action", { key: 'fb437fec19fa7ffc57459e426ba988fd4d50c1e6', disabled: !this.undoEnabled, icon: "undo", onClick: () => this._undo(), scale: "s", text: this._translations.undo }), h("calcite-action", { key: 'fd3f4f3e8b722b95c0b7aad1fc6b909a97787b86', disabled: !this.redoEnabled, icon: "redo", onClick: () => this._redo(), scale: "s", text: this._translations.redo })))));
|
534
534
|
}
|
535
535
|
//--------------------------------------------------------------------------
|
536
536
|
//
|
@@ -1258,6 +1258,141 @@ const CreateFeature = class {
|
|
1258
1258
|
};
|
1259
1259
|
CreateFeature.style = CreateFeatureStyle0;
|
1260
1260
|
|
1261
|
+
const deleteButtonCss = ":host{display:block}.delete-modal{position:fixed}";
|
1262
|
+
const DeleteButtonStyle0 = deleteButtonCss;
|
1263
|
+
|
1264
|
+
const DeleteButton = class {
|
1265
|
+
constructor(hostRef) {
|
1266
|
+
registerInstance(this, hostRef);
|
1267
|
+
this.editsComplete = createEvent(this, "editsComplete", 7);
|
1268
|
+
this.deleteDialog = undefined;
|
1269
|
+
this.buttonType = "button";
|
1270
|
+
this.disabled = false;
|
1271
|
+
this.icon = undefined;
|
1272
|
+
this.ids = [];
|
1273
|
+
this.layer = undefined;
|
1274
|
+
this.locale = undefined;
|
1275
|
+
this._confirmDelete = false;
|
1276
|
+
this._deleteEndabled = false;
|
1277
|
+
this._supportsDelete = undefined;
|
1278
|
+
this._translations = undefined;
|
1279
|
+
}
|
1280
|
+
get el() { return getElement(this); }
|
1281
|
+
//--------------------------------------------------------------------------
|
1282
|
+
//
|
1283
|
+
// Properties (protected)
|
1284
|
+
//
|
1285
|
+
//--------------------------------------------------------------------------
|
1286
|
+
//--------------------------------------------------------------------------
|
1287
|
+
//
|
1288
|
+
// Watch handlers
|
1289
|
+
//
|
1290
|
+
//--------------------------------------------------------------------------
|
1291
|
+
/**
|
1292
|
+
* watch for changes in layer view and verify if it has editing enabled
|
1293
|
+
*/
|
1294
|
+
async idsWatchHandler() {
|
1295
|
+
this._setDeleteEnabled();
|
1296
|
+
}
|
1297
|
+
/**
|
1298
|
+
* watch for changes in layer view and verify if it has editing enabled
|
1299
|
+
*/
|
1300
|
+
async layerWatchHandler() {
|
1301
|
+
this._setDeleteEnabled();
|
1302
|
+
}
|
1303
|
+
/**
|
1304
|
+
* Fetch translations when the locale is updated
|
1305
|
+
*/
|
1306
|
+
async localeWatchHandler() {
|
1307
|
+
// to support url param and language switcher
|
1308
|
+
this.el.lang = this.locale;
|
1309
|
+
await this._getTranslations();
|
1310
|
+
}
|
1311
|
+
//--------------------------------------------------------------------------
|
1312
|
+
//
|
1313
|
+
// Methods (public)
|
1314
|
+
//
|
1315
|
+
//--------------------------------------------------------------------------
|
1316
|
+
//--------------------------------------------------------------------------
|
1317
|
+
//
|
1318
|
+
// Events (public)
|
1319
|
+
//
|
1320
|
+
//--------------------------------------------------------------------------
|
1321
|
+
/**
|
1322
|
+
* Emitted on demand when features have been deleted
|
1323
|
+
*/
|
1324
|
+
editsComplete;
|
1325
|
+
//--------------------------------------------------------------------------
|
1326
|
+
//
|
1327
|
+
// Functions (lifecycle)
|
1328
|
+
//
|
1329
|
+
//--------------------------------------------------------------------------
|
1330
|
+
/**
|
1331
|
+
* StencilJS: Called once just after the component is first connected to the DOM.
|
1332
|
+
*
|
1333
|
+
* @returns Promise when complete
|
1334
|
+
*/
|
1335
|
+
async componentWillLoad() {
|
1336
|
+
await this._getTranslations();
|
1337
|
+
}
|
1338
|
+
/**
|
1339
|
+
* Renders the component.
|
1340
|
+
*/
|
1341
|
+
render() {
|
1342
|
+
return (h(Host, { key: '1816da3d5cd7903b4e699dffa4ac4836dca722bb' }, 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(), h("calcite-tooltip", { key: '26fc4d4b4ea02b7a6c5e3f87abe2c5b8f96a3654', placement: "bottom", "reference-element": this.buttonType === "button" ? "solutions-delete" : this.icon }, h("span", { key: 'c2f7b101bb3a99274fe7f364ad29365c212d856e' }, this._translations.delete))));
|
1343
|
+
}
|
1344
|
+
/**
|
1345
|
+
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
1346
|
+
*/
|
1347
|
+
async componentDidLoad() {
|
1348
|
+
this._setDeleteEnabled();
|
1349
|
+
}
|
1350
|
+
//--------------------------------------------------------------------------
|
1351
|
+
//
|
1352
|
+
// Functions (protected)
|
1353
|
+
//
|
1354
|
+
//--------------------------------------------------------------------------
|
1355
|
+
/**
|
1356
|
+
* Verify if the layer supports delete and that we have 1 or more ids
|
1357
|
+
*/
|
1358
|
+
_setDeleteEnabled() {
|
1359
|
+
this._supportsDelete = this.layer?.editingEnabled && this.layer?.capabilities?.operations?.supportsDelete;
|
1360
|
+
this._deleteEndabled = !this.disabled || this._supportsDelete && this.ids.length > 0;
|
1361
|
+
}
|
1362
|
+
/**
|
1363
|
+
* Delete all selected records or shows an alert if the layer does not have editing enabled
|
1364
|
+
*
|
1365
|
+
* @returns a promise that will resolve when the operation is complete
|
1366
|
+
*/
|
1367
|
+
_delete() {
|
1368
|
+
this._confirmDelete = true;
|
1369
|
+
}
|
1370
|
+
/**
|
1371
|
+
* Show delete confirmation message
|
1372
|
+
*
|
1373
|
+
* @returns node to confirm or deny the delete operation
|
1374
|
+
*/
|
1375
|
+
_deleteMessage() {
|
1376
|
+
return this.deleteDialog ? this.deleteDialog : (h("delete-dialog", { id: "solution-delete-dialog", ids: this.ids, layer: this.layer, locale: this.locale, onDeleteDialogClose: () => this._confirmDelete = false, open: this._confirmDelete }));
|
1377
|
+
}
|
1378
|
+
/**
|
1379
|
+
* Fetches the component's translations
|
1380
|
+
*
|
1381
|
+
* @returns Promise when complete
|
1382
|
+
* @protected
|
1383
|
+
*/
|
1384
|
+
async _getTranslations() {
|
1385
|
+
const messages = await getLocaleComponentStrings(this.el);
|
1386
|
+
this._translations = messages[0];
|
1387
|
+
}
|
1388
|
+
static get watchers() { return {
|
1389
|
+
"ids": ["idsWatchHandler"],
|
1390
|
+
"layer": ["layerWatchHandler"],
|
1391
|
+
"locale": ["localeWatchHandler"]
|
1392
|
+
}; }
|
1393
|
+
};
|
1394
|
+
DeleteButton.style = DeleteButtonStyle0;
|
1395
|
+
|
1261
1396
|
const editCardCss = ":host{display:block}.padding-bottom-1{padding-bottom:1rem}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-500{font-weight:var(--calcite-font-weight-medium)}.font-italic{font-style:italic}#feature-form{padding-top:0px}.padding-sides-bottom-1{padding:0 1rem 1rem 1rem}.position-relative{position:relative}.esri-editor__prompt--danger{position:relative !important;width:100% !important;background-color:var(--calcite-color-foreground-1) !important}.esri-feature__content-node{background-color:var(--calcite-color-foreground-1) !important}.esri-editor__panel-toolbar{display:none !important}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.esri-editor__panel-content{padding-block:10px !important}";
|
1262
1397
|
const EditCardStyle0 = editCardCss;
|
1263
1398
|
|
@@ -1958,4 +2093,4 @@ const InfoCard = class {
|
|
1958
2093
|
};
|
1959
2094
|
InfoCard.style = InfoCardStyle0;
|
1960
2095
|
|
1961
|
-
export { Alert as calcite_alert, FlowItem as calcite_flow_item, CreateFeature as create_feature, EditCard as edit_card, InfoCard as info_card };
|
2096
|
+
export { Alert as calcite_alert, FlowItem as calcite_flow_item, CreateFeature as create_feature, DeleteButton as delete_button, EditCard as edit_card, InfoCard as info_card };
|
@@ -1350,7 +1350,7 @@ const MapLayerPicker = class {
|
|
1350
1350
|
const id = "map-layer-picker";
|
1351
1351
|
let style = this.height > 0 ? { "height": `${this.height.toString()}px` } : {};
|
1352
1352
|
style = { ...style, "display": this.display };
|
1353
|
-
return (h(Host, { key: '
|
1353
|
+
return (h(Host, { key: '47d80c20f364f6d4f1a247f7f84d25ca4ff5cd7b' }, h("div", { key: '16ecc0c3dad51b0707304e003861e419796f3fba', class: "map-layer-picker-container", style: style }, h("div", { key: '56a3d93b9f91afd753952a0e86fe9ee426c529f5', class: "map-layer-picker", style: style }, !this._hasValidLayers ? this._getInvalidPlaceholder() :
|
1354
1354
|
!this._hasMultipleLayers && this.showSingleLayerAsLabel ? this._getSingleLayerPlaceholder() :
|
1355
1355
|
this.type === "combobox" ? this._getCombobox(id) :
|
1356
1356
|
this.type === "select" ? this._getSelect(id) : this._getDropdown(id)))));
|
@@ -2228,7 +2228,7 @@ const SolutionItemDetails = class {
|
|
2228
2228
|
* Renders the component.
|
2229
2229
|
*/
|
2230
2230
|
render() {
|
2231
|
-
return (h(Host, { key: '
|
2231
|
+
return (h(Host, { key: '91b7ce062e477c856e3a512e5247ac9fb3299fc9' }, h("div", { key: 'fa10231c42260d1117b14653359f531e0688a46c', class: "parent-container" }, h("div", { key: 'c6a3c70442de79c97f730c5c9a351f033a75e0f5', class: "inputBottomSeparation" }, h("calcite-input", { key: '8b33b09b05bd3d81bde6e739288ef806083bfe9a', id: "item-title", value: this.itemDetails.title })), h("div", { key: '288c1856a396fd47b6df74d76da153a70832a548', class: "inputBottomSeparation" }, h("input", { key: '16bedd351e0be19f7ef8b0f9e30ac8d54bf19512', 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: 'e0f9adf5152b9b292e859667bacf4d154e563302', class: "font-size--3 btn-link inline-block trailer-quarter", onClick: () => this._getThumbnail() }, h("svg", { key: '99611f9c671193b9a833b76a6ed071bc8a61b18f', class: "icon-inline icon-inline--on-left", height: "16", viewBox: "0 0 16 16", width: "16" }, h("path", { key: 'c499a06b58b083384ad0ab7b053c266bdc6db252', 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: 'fa7b1a1c072901eb2abed7f9c756320e03b8d7de', class: "flex" }, h("div", { key: 'e5e982728dfcc569987db0f3bbd621fea819fc6c', class: "img-container", ref: (el) => (this.thumbnailContainer = el) }, h("img", { key: 'e09073dc5598c3dac5a020830b44e013dc884f2b', class: "scale-down", height: "133", id: "item-thumbnail", ref: (el) => (this.thumbnail = el), width: "200" })), h("div", { key: '3023ad5fba278e0a9982d51c63cf052ffb7a4dc4', class: "snippet-count-container" }, h("calcite-input", { key: '2b57abed7b2299b29e011363976290425457f194', id: "item-snippet", maxLength: 250, type: "textarea", value: this.itemDetails.snippet }), h("label", { key: 'b8af7f4e80bcc1722ba512f63941dc38dc8c3ae4', class: "font-size--3", id: "item-snippet-count", ref: (el) => (this.itemSnippetCount = el) })))), h("calcite-label", { key: 'd364ae177e5ac0b8356b63cd842f5ef8f4a10bb8' }, this._translations.description, h("label", { key: '88655b88d2f5fbf3a000492c780110fc3a4d0634', id: "item-description-label" }, h("calcite-input", { key: '5034fb4d2ccf7927bb200dadd0d543ca05bb4da2', id: "item-description", type: "textarea", value: this.itemDetails.description }))), h("calcite-label", { key: '00f30749424b6c07279e11ba171d4335af6b6443' }, this._translations.tags, h("label", { key: '64564edcf7c4a55102d06ffd1c937fd275cc0733', id: "item-tags-label" }, h("calcite-input", { key: 'bc46622ffde1e9064e726594fd70c43c91fe36d7', 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)));
|
2232
2232
|
}
|
2233
2233
|
componentDidRender() {
|
2234
2234
|
this._loadThumb();
|
@@ -2423,7 +2423,7 @@ const SolutionItemSharing = class {
|
|
2423
2423
|
* Renders the component.
|
2424
2424
|
*/
|
2425
2425
|
render() {
|
2426
|
-
return (h(Host, { key: '
|
2426
|
+
return (h(Host, { key: 'eca66b743e748d9f915c6d356ea84075ab21709a' }, h("div", { key: 'b0765e14cc9de5a81afa5d20bc41e7f78913a37e', class: "container-border" }, h("calcite-label", { key: '36cbf3b48a2641bcb2107e61609c2ec6c9f18991' }, this._translations.groupInfo), this._renderItems(this.sharing))));
|
2427
2427
|
}
|
2428
2428
|
//--------------------------------------------------------------------------
|
2429
2429
|
//
|
@@ -2557,7 +2557,7 @@ const SolutionOrganizationVariables = class {
|
|
2557
2557
|
* Renders the component.
|
2558
2558
|
*/
|
2559
2559
|
render() {
|
2560
|
-
return (h(Host, { key: '
|
2560
|
+
return (h(Host, { key: '4d1a39b53287d445a1fc66cd5088a7bc60516ab6' }, h("div", { key: '7a40ad712fe1af01e92701d128f65b0590aa15bc' }, h("h4", { key: '7517fc56b5b0128ee102dc3f57e334501befe14f', class: "org-var-header" }, this._translations.orgVariables)), h("div", { key: 'd48cbc3ffb24ba54ded2b24c7c518ecf8114cd55', class: "container-border" }, h("calcite-tree", { key: '383124c0ae3d646dc9ee857109051e7a151dbe62', id: "variable-label" }, this._renderHierarchy(this._organizationVariables)))));
|
2561
2561
|
}
|
2562
2562
|
//--------------------------------------------------------------------------
|
2563
2563
|
//
|
@@ -2670,7 +2670,7 @@ const SolutionResourceItem = class {
|
|
2670
2670
|
*/
|
2671
2671
|
render() {
|
2672
2672
|
const hasValidResources = this._hasValidResources();
|
2673
|
-
return (h(Host, { key: '
|
2673
|
+
return (h(Host, { key: '36017a54e5f8fafda593af2b727f1fbda80c7455' }, h("div", { key: 'eb9f53c9b4161c09e0b00d9a4d90a814d944819c', class: "resource-item" }, h("div", { key: '504dfa5fb623ed27a0829f60ebbf5de17b6d467f', class: "margin-bottom-1" }, h("calcite-button", { key: 'e578443e1ef409917c5946c77e660c04d273cb6c', appearance: "solid", class: "resource-button", color: "blue", onClick: () => this._addNewResource() }, this._translations.addResource), h("calcite-button", { key: 'e4c11326d7c5d96de1d0983eb0beb3cf726177c8', appearance: "solid", color: "blue", disabled: !hasValidResources, onClick: () => this._downloadAll() }, this._translations.downloadAll)), h("div", { key: '3617bf40ac8b01d70b523642757a624c977ea491', class: "resources-container", style: { display: hasValidResources ? "inherit" : "none" } }, this._renderResourceList()))));
|
2674
2674
|
}
|
2675
2675
|
_removedResources = {};
|
2676
2676
|
//--------------------------------------------------------------------------
|
@@ -2967,7 +2967,7 @@ const SolutionTemplateData = class {
|
|
2967
2967
|
* Renders the component.
|
2968
2968
|
*/
|
2969
2969
|
render() {
|
2970
|
-
return (h(Host, { key: '
|
2970
|
+
return (h(Host, { key: 'db99cf57229d7d8b9fe6315e180d95de0b20fc8d' }, h("div", { key: '83473f420d1417c85ebb4119be9f359cab878c54', class: "solution-data-container" }, h("calcite-shell", { key: '013754ef962c2e5c112f6a8cc6c5d1b8e768078e', class: "light var-container", dir: "ltr" }, h("calcite-panel", { key: '11ab2a07fe4af542d8cefc1c131246deef43dd9a', class: "json-editor" }, h("div", { key: 'ba0460977eb0375acaf5b11ce951986a08ece39b', class: "solution-data-child-container calcite-match-height" }, h("json-editor", { key: '53251c1583aa7e8cf2a4e9a1f22e4c72430d3928', class: "solution-data-editor-container", instanceid: this.itemId + "|" + this.instanceid, locale: this.locale, value: this.value }))), h("calcite-shell-panel", { key: '30c47797a35ff7228c4318a5633aec57de05b8cf', "height-scale": "l", position: "end", slot: "contextual-panel", "width-scale": "xs" }, h("div", { key: '028b16654835744f0735b880ca85a3d174963414', class: this.varsOpen ? "solution-data-child-container" : "solution-data-child-container-collapsed" }, h("calcite-button", { key: 'bb5049611e778b970454544851a625ccef47d23a', 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: 'c2a30a7c27db181e0dfe0e201d9d3b2742247080', class: this.varsOpen ? "org-vars" : "org-vars display-none", id: "orgVars" }, h("solution-organization-variables", { key: '178c4301c8558c4fe7114c8f6cf5bc0df10883a0', locale: this.locale, value: this.organizationVariables })), h("div", { key: 'f85375bac946cff856b6915f340bf926498265ea', class: this.varsOpen ? "sol-vars" : "sol-vars display-none", id: "solVars" }, h("solution-variables", { key: '166d0752746994bc4aebd4e41660f8a2d2c678ea', locale: this.locale, value: this.solutionVariables }))))))));
|
2971
2971
|
}
|
2972
2972
|
_initializing = false;
|
2973
2973
|
//--------------------------------------------------------------------------
|
@@ -3056,7 +3056,7 @@ const SolutionVariables = class {
|
|
3056
3056
|
* Renders the component.
|
3057
3057
|
*/
|
3058
3058
|
render() {
|
3059
|
-
return (h(Host, { key: '
|
3059
|
+
return (h(Host, { key: 'a9354a1d3b3d91b9b9522bec945726e106487b78' }, h("div", { key: 'd38d0151ba9f8421e3ec863ce90b234964cb7f21' }, h("h4", { key: '3d10129c3327e803e38b4fc21976764f9ac91693', class: "org-var-header" }, this._translations.solVariables)), h("div", { key: '8b79cef63c5b8f5f66b0e11a4b94021f6a025fc3', class: "container-border" }, h("calcite-tree", { key: '7f69edec6e35a65e45b461d69e92d0e163563bee', id: "variable-label" }, this._renderHierarchy(this._solutionVariables)))));
|
3060
3060
|
}
|
3061
3061
|
//--------------------------------------------------------------------------
|
3062
3062
|
//
|