@esri/solutions-components 0.10.34 → 0.10.35
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_5.cjs.entry.js +7 -5
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-flow_4.cjs.entry.js +18 -16
- package/dist/cjs/{calcite-modal_3.cjs.entry.js → calcite-modal.cjs.entry.js} +27 -368
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +7 -7
- package/dist/cjs/calcite-shell_3.cjs.entry.js +440 -0
- package/dist/cjs/card-manager_3.cjs.entry.js +20 -9
- package/dist/cjs/crowdsource-manager.cjs.entry.js +3 -2
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +24 -21
- 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-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/assets/t9n/delete-dialog/resources.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_ar.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_bg.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_bs.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_ca.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_cs.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_da.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_de.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_el.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_en.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_es.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_et.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_fi.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_fr.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_he.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_hr.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_hu.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_id.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_it.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_ja.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_ko.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_lt.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_lv.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_nb.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_nl.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_pl.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_pt-BR.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_pt-PT.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_ro.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_ru.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_sk.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_sl.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_sr.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_sv.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_th.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_tr.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_uk.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_vi.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_zh-CN.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_zh-HK.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_zh-TW.json +8 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/create-feature/create-feature.css +2 -1
- package/dist/collection/components/create-feature/create-feature.js +3 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +4 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +2 -1
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +24 -21
- package/dist/collection/components/delete-button/delete-button.js +20 -27
- package/dist/collection/components/delete-dialog/delete-dialog.css +23 -0
- package/dist/collection/components/delete-dialog/delete-dialog.js +239 -0
- 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.js +13 -11
- package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
- package/dist/collection/components/feature-list/feature-list.js +4 -4
- 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-list/layer-list.js +5 -5
- package/dist/collection/components/layer-table/layer-table.css +6 -0
- package/dist/collection/components/layer-table/layer-table.js +19 -7
- 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-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/components/card-manager2.js +40 -34
- package/dist/components/create-feature2.js +4 -2
- package/dist/components/crowdsource-manager.js +101 -94
- package/dist/components/crowdsource-reporter.js +110 -101
- package/dist/components/delete-button2.js +24 -41
- package/dist/components/delete-dialog.d.ts +11 -0
- package/dist/components/delete-dialog.js +11 -0
- package/dist/components/delete-dialog2.js +165 -0
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/feature-comments.js +1 -1
- package/dist/components/feature-details2.js +67 -59
- 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 +38 -32
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/layer-list2.js +5 -5
- package/dist/components/layer-table2.js +100 -82
- 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-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 +6 -6
- package/dist/esm/buffer-tools_3.entry.js +1 -1
- package/dist/esm/calcite-alert_5.entry.js +7 -5
- package/dist/esm/calcite-combobox_3.entry.js +1 -1
- package/dist/esm/calcite-flow_4.entry.js +18 -16
- package/dist/esm/{calcite-modal_3.entry.js → calcite-modal.entry.js} +30 -369
- package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
- package/dist/esm/calcite-shell_3.entry.js +434 -0
- package/dist/esm/card-manager_3.entry.js +20 -9
- package/dist/esm/crowdsource-manager.entry.js +3 -2
- package/dist/esm/crowdsource-reporter.entry.js +24 -21
- 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-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/assets/t9n/delete-dialog/resources.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_ar.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_bg.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_bs.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_ca.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_cs.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_da.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_de.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_el.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_en.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_es.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_et.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_fi.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_fr.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_he.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_hr.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_hu.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_id.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_it.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_ja.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_ko.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_lt.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_lv.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_nb.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_nl.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_pl.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_pt-BR.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_pt-PT.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_ro.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_ru.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_sk.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_sl.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_sr.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_sv.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_th.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_tr.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_uk.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_vi.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-CN.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-HK.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-TW.json +8 -0
- package/dist/solutions-components/{p-6c3261d7.entry.js → p-06364211.entry.js} +1 -1
- package/dist/solutions-components/{p-d119872d.entry.js → p-18089a0b.entry.js} +1 -1
- package/dist/solutions-components/p-1f07e21a.entry.js +6 -0
- package/dist/solutions-components/p-2a6ecaa9.entry.js +11 -0
- package/dist/solutions-components/p-46416e11.entry.js +6 -0
- package/dist/solutions-components/{p-a8525233.entry.js → p-588adf13.entry.js} +1 -1
- package/dist/solutions-components/{p-5fc0e134.entry.js → p-59ccd27c.entry.js} +1 -1
- package/dist/solutions-components/p-5eb9a413.entry.js +6 -0
- package/dist/solutions-components/{p-42f75c8f.entry.js → p-6502d0f8.entry.js} +1 -1
- package/dist/solutions-components/p-70c0050c.entry.js +6 -0
- package/dist/solutions-components/p-74bcef23.entry.js +11 -0
- package/dist/solutions-components/{p-4cb12506.entry.js → p-76154700.entry.js} +1 -1
- package/dist/solutions-components/p-82ddf716.entry.js +6 -0
- package/dist/solutions-components/{p-d08ece15.entry.js → p-841816a1.entry.js} +1 -1
- package/dist/solutions-components/{p-4f5913f3.entry.js → p-89046451.entry.js} +1 -1
- package/dist/solutions-components/p-938bc915.entry.js +6 -0
- package/dist/solutions-components/{p-fa7672c7.entry.js → p-9d56f4b5.entry.js} +1 -1
- package/dist/solutions-components/p-9da8a590.entry.js +6 -0
- package/dist/solutions-components/{p-5fdb8f83.entry.js → p-a5d79c86.entry.js} +1 -1
- package/dist/solutions-components/{p-dd0bd439.entry.js → p-b4c49411.entry.js} +2 -2
- package/dist/solutions-components/p-b86b2664.entry.js +6 -0
- package/dist/solutions-components/{p-ddc1218d.entry.js → p-be4c7ffd.entry.js} +1 -1
- package/dist/solutions-components/{p-ffa9a117.entry.js → p-cb3199f9.entry.js} +1 -1
- package/dist/solutions-components/{p-a07322cc.entry.js → p-df7de4b7.entry.js} +1 -1
- package/dist/solutions-components/{p-1f072e2c.entry.js → p-eadff42b.entry.js} +1 -1
- package/dist/solutions-components/{p-8a411917.entry.js → p-ecf642c2.entry.js} +1 -1
- package/dist/solutions-components/{p-06db1bfd.entry.js → p-efb4cb43.entry.js} +1 -1
- package/dist/solutions-components/{p-e4a42efa.entry.js → p-fa1c368c.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +6 -1
- package/dist/types/components/delete-button/delete-button.d.ts +4 -12
- package/dist/types/components/delete-dialog/delete-dialog.d.ts +75 -0
- package/dist/types/components/layer-table/layer-table.d.ts +12 -0
- package/dist/types/components.d.ts +69 -0
- package/dist/types/preact.d.ts +5 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-51e2500f.entry.js +0 -6
- package/dist/solutions-components/p-52280e10.entry.js +0 -17
- package/dist/solutions-components/p-67ca4a64.entry.js +0 -6
- package/dist/solutions-components/p-7e6a8c06.entry.js +0 -6
- package/dist/solutions-components/p-8d2d66d0.entry.js +0 -6
- package/dist/solutions-components/p-8e6081e0.entry.js +0 -6
- package/dist/solutions-components/p-b9b77b87.entry.js +0 -6
- package/dist/solutions-components/p-cf878a34.entry.js +0 -6
- package/dist/solutions-components/p-edd88d2d.entry.js +0 -6
@@ -22,6 +22,7 @@ import { Host, h } from "@stencil/core";
|
|
22
22
|
import { getLocaleComponentStrings } from "../../utils/locale";
|
23
23
|
export class DeleteButton {
|
24
24
|
constructor() {
|
25
|
+
this.deleteDialog = undefined;
|
25
26
|
this.buttonType = "button";
|
26
27
|
this.disabled = false;
|
27
28
|
this.icon = undefined;
|
@@ -29,7 +30,6 @@ export class DeleteButton {
|
|
29
30
|
this.layer = undefined;
|
30
31
|
this._confirmDelete = false;
|
31
32
|
this._deleteEndabled = false;
|
32
|
-
this._isDeleting = false;
|
33
33
|
this._supportsDelete = undefined;
|
34
34
|
this._translations = undefined;
|
35
35
|
}
|
@@ -92,7 +92,7 @@ export class DeleteButton {
|
|
92
92
|
* Renders the component.
|
93
93
|
*/
|
94
94
|
render() {
|
95
|
-
return (h(Host, { key: '
|
95
|
+
return (h(Host, { key: '4ced17b35479900aaa01ebbd298eeae57194e358' }, 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: '04f82e726cf9142c403ee43cb8151027bb7b617f', placement: "bottom", "reference-element": this.buttonType === "button" ? "solutions-delete" : this.icon }, h("span", { key: 'f7852b2476dae4b18e82495c64a819b3db98696d' }, this._translations.delete))));
|
96
96
|
}
|
97
97
|
/**
|
98
98
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -126,30 +126,7 @@ export class DeleteButton {
|
|
126
126
|
* @returns node to confirm or deny the delete operation
|
127
127
|
*/
|
128
128
|
_deleteMessage() {
|
129
|
-
|
130
|
-
this._translations.confirmMultiple;
|
131
|
-
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)));
|
132
|
-
}
|
133
|
-
/**
|
134
|
-
* Delete the currently selected features
|
135
|
-
*/
|
136
|
-
async _deleteFeatures() {
|
137
|
-
this._isDeleting = true;
|
138
|
-
const deleteFeatures = this.ids.map((objectId) => {
|
139
|
-
return { objectId };
|
140
|
-
});
|
141
|
-
await this.layer.applyEdits({
|
142
|
-
deleteFeatures
|
143
|
-
});
|
144
|
-
this._isDeleting = false;
|
145
|
-
this._deleteClosed();
|
146
|
-
this.editsComplete.emit("delete");
|
147
|
-
}
|
148
|
-
/**
|
149
|
-
* Set the alertOpen member to false when the alert is closed
|
150
|
-
*/
|
151
|
-
_deleteClosed() {
|
152
|
-
this._confirmDelete = false;
|
129
|
+
return this.deleteDialog ? this.deleteDialog : (h("delete-dialog", { id: "solution-delete-dialog", ids: this.ids, layer: this.layer, onDeleteDialogClose: () => this._confirmDelete = false, open: this._confirmDelete }));
|
153
130
|
}
|
154
131
|
/**
|
155
132
|
* Fetches the component's translations
|
@@ -175,6 +152,23 @@ export class DeleteButton {
|
|
175
152
|
}
|
176
153
|
static get properties() {
|
177
154
|
return {
|
155
|
+
"deleteDialog": {
|
156
|
+
"type": "any",
|
157
|
+
"mutable": false,
|
158
|
+
"complexType": {
|
159
|
+
"original": "any",
|
160
|
+
"resolved": "any",
|
161
|
+
"references": {}
|
162
|
+
},
|
163
|
+
"required": false,
|
164
|
+
"optional": false,
|
165
|
+
"docs": {
|
166
|
+
"tags": [],
|
167
|
+
"text": "calcite-modal: Use this prop when using the button within a parent like a dropdown that would constrain the modal and that is not desired"
|
168
|
+
},
|
169
|
+
"attribute": "delete-dialog",
|
170
|
+
"reflect": false
|
171
|
+
},
|
178
172
|
"buttonType": {
|
179
173
|
"type": "string",
|
180
174
|
"mutable": false,
|
@@ -276,7 +270,6 @@ export class DeleteButton {
|
|
276
270
|
return {
|
277
271
|
"_confirmDelete": {},
|
278
272
|
"_deleteEndabled": {},
|
279
|
-
"_isDeleting": {},
|
280
273
|
"_supportsDelete": {},
|
281
274
|
"_translations": {}
|
282
275
|
};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/** @license
|
2
|
+
* Copyright 2024 Esri
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
:host {
|
18
|
+
display: block;
|
19
|
+
}
|
20
|
+
|
21
|
+
.delete-modal {
|
22
|
+
position: fixed;
|
23
|
+
}
|
@@ -0,0 +1,239 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
/** @license
|
7
|
+
* Copyright 2024 Esri
|
8
|
+
*
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
10
|
+
* you may not use this file except in compliance with the License.
|
11
|
+
* You may obtain a copy of the License at
|
12
|
+
*
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
14
|
+
*
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
18
|
+
* See the License for the specific language governing permissions and
|
19
|
+
* limitations under the License.
|
20
|
+
*/
|
21
|
+
import { Host, h } from "@stencil/core";
|
22
|
+
import { getLocaleComponentStrings } from "../../utils/locale";
|
23
|
+
export class DeleteDialog {
|
24
|
+
constructor() {
|
25
|
+
this.ids = [];
|
26
|
+
this.layer = undefined;
|
27
|
+
this.open = false;
|
28
|
+
this._isDeleting = false;
|
29
|
+
this._translations = undefined;
|
30
|
+
}
|
31
|
+
//--------------------------------------------------------------------------
|
32
|
+
//
|
33
|
+
// Host element access
|
34
|
+
//
|
35
|
+
//--------------------------------------------------------------------------
|
36
|
+
el;
|
37
|
+
//--------------------------------------------------------------------------
|
38
|
+
//
|
39
|
+
// Properties (protected)
|
40
|
+
//
|
41
|
+
//--------------------------------------------------------------------------
|
42
|
+
//--------------------------------------------------------------------------
|
43
|
+
//
|
44
|
+
// Watch handlers
|
45
|
+
//
|
46
|
+
//--------------------------------------------------------------------------
|
47
|
+
//--------------------------------------------------------------------------
|
48
|
+
//
|
49
|
+
// Methods (public)
|
50
|
+
//
|
51
|
+
//--------------------------------------------------------------------------
|
52
|
+
//--------------------------------------------------------------------------
|
53
|
+
//
|
54
|
+
// Events (public)
|
55
|
+
//
|
56
|
+
//--------------------------------------------------------------------------
|
57
|
+
/**
|
58
|
+
* Emitted on demand when features have been deleted
|
59
|
+
*/
|
60
|
+
editsComplete;
|
61
|
+
/**
|
62
|
+
* Emitted on demand when features have been deleted
|
63
|
+
*/
|
64
|
+
deleteDialogClose;
|
65
|
+
//--------------------------------------------------------------------------
|
66
|
+
//
|
67
|
+
// Functions (lifecycle)
|
68
|
+
//
|
69
|
+
//--------------------------------------------------------------------------
|
70
|
+
/**
|
71
|
+
* StencilJS: Called once just after the component is first connected to the DOM.
|
72
|
+
*
|
73
|
+
* @returns Promise when complete
|
74
|
+
*/
|
75
|
+
async componentWillLoad() {
|
76
|
+
await this._getTranslations();
|
77
|
+
}
|
78
|
+
/**
|
79
|
+
* Renders the component.
|
80
|
+
*/
|
81
|
+
render() {
|
82
|
+
const confirmMessage = this.ids.length === 1 ? this._translations?.confirmSingle :
|
83
|
+
this._translations?.confirmMultiple;
|
84
|
+
return (h(Host, { key: '64cd1440f80a9609f90056b919fa807e975eff70' }, h("calcite-modal", { key: '022302455960cbcf894dc2f0079d88be6fb59367', "aria-labelledby": "modal-title", class: "delete-modal", kind: "danger", onCalciteModalClose: () => this._close(), open: this.open, widthScale: "s" }, h("div", { key: '7484caedbdd759efbe972182ddd41a6ebaa2bd64', class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations?.deleteFeature), h("div", { key: 'e31136a6eed46dd0cbc4d919deb732a623097fbf', slot: "content" }, confirmMessage), h("calcite-button", { key: '7de42845a99777bcec59221fb6ab863e72ca2654', appearance: "outline", kind: "danger", onClick: () => this._close(), slot: "secondary", width: "full" }, this._translations?.cancel), h("calcite-button", { key: '67921ff64fc5c4439e66833fd8502f7e95671b5d', kind: "danger", loading: this._isDeleting, onClick: () => void this._deleteFeatures(), slot: "primary", width: "full" }, this._translations?.delete))));
|
85
|
+
}
|
86
|
+
//--------------------------------------------------------------------------
|
87
|
+
//
|
88
|
+
// Functions (protected)
|
89
|
+
//
|
90
|
+
//--------------------------------------------------------------------------
|
91
|
+
/**
|
92
|
+
* Delete the currently selected features
|
93
|
+
*/
|
94
|
+
async _deleteFeatures() {
|
95
|
+
this._isDeleting = true;
|
96
|
+
const deleteFeatures = this.ids.map((objectId) => {
|
97
|
+
return { objectId };
|
98
|
+
});
|
99
|
+
await this.layer.applyEdits({
|
100
|
+
deleteFeatures
|
101
|
+
});
|
102
|
+
this._isDeleting = false;
|
103
|
+
this._close();
|
104
|
+
this.editsComplete.emit("delete");
|
105
|
+
}
|
106
|
+
/**
|
107
|
+
* Set the alertOpen member to false when the alert is closed
|
108
|
+
*/
|
109
|
+
_close() {
|
110
|
+
this.open = false;
|
111
|
+
this.deleteDialogClose.emit();
|
112
|
+
}
|
113
|
+
/**
|
114
|
+
* Fetches the component's translations
|
115
|
+
*
|
116
|
+
* @returns Promise when complete
|
117
|
+
* @protected
|
118
|
+
*/
|
119
|
+
async _getTranslations() {
|
120
|
+
const messages = await getLocaleComponentStrings(this.el);
|
121
|
+
this._translations = messages[0];
|
122
|
+
}
|
123
|
+
static get is() { return "delete-dialog"; }
|
124
|
+
static get encapsulation() { return "shadow"; }
|
125
|
+
static get originalStyleUrls() {
|
126
|
+
return {
|
127
|
+
"$": ["delete-dialog.css"]
|
128
|
+
};
|
129
|
+
}
|
130
|
+
static get styleUrls() {
|
131
|
+
return {
|
132
|
+
"$": ["delete-dialog.css"]
|
133
|
+
};
|
134
|
+
}
|
135
|
+
static get properties() {
|
136
|
+
return {
|
137
|
+
"ids": {
|
138
|
+
"type": "unknown",
|
139
|
+
"mutable": false,
|
140
|
+
"complexType": {
|
141
|
+
"original": "any[]",
|
142
|
+
"resolved": "any[]",
|
143
|
+
"references": {}
|
144
|
+
},
|
145
|
+
"required": false,
|
146
|
+
"optional": false,
|
147
|
+
"docs": {
|
148
|
+
"tags": [],
|
149
|
+
"text": "number[]: The ids that would be deleted"
|
150
|
+
},
|
151
|
+
"defaultValue": "[]"
|
152
|
+
},
|
153
|
+
"layer": {
|
154
|
+
"type": "unknown",
|
155
|
+
"mutable": false,
|
156
|
+
"complexType": {
|
157
|
+
"original": "__esri.FeatureLayer",
|
158
|
+
"resolved": "FeatureLayer",
|
159
|
+
"references": {
|
160
|
+
"___esri": {
|
161
|
+
"location": "global",
|
162
|
+
"id": "global::___esri"
|
163
|
+
}
|
164
|
+
}
|
165
|
+
},
|
166
|
+
"required": false,
|
167
|
+
"optional": false,
|
168
|
+
"docs": {
|
169
|
+
"tags": [],
|
170
|
+
"text": "esri/views/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html"
|
171
|
+
}
|
172
|
+
},
|
173
|
+
"open": {
|
174
|
+
"type": "boolean",
|
175
|
+
"mutable": false,
|
176
|
+
"complexType": {
|
177
|
+
"original": "boolean",
|
178
|
+
"resolved": "boolean",
|
179
|
+
"references": {}
|
180
|
+
},
|
181
|
+
"required": false,
|
182
|
+
"optional": false,
|
183
|
+
"docs": {
|
184
|
+
"tags": [],
|
185
|
+
"text": "boolean: When true the delete dialog will be displayed"
|
186
|
+
},
|
187
|
+
"attribute": "open",
|
188
|
+
"reflect": false,
|
189
|
+
"defaultValue": "false"
|
190
|
+
}
|
191
|
+
};
|
192
|
+
}
|
193
|
+
static get states() {
|
194
|
+
return {
|
195
|
+
"_isDeleting": {},
|
196
|
+
"_translations": {}
|
197
|
+
};
|
198
|
+
}
|
199
|
+
static get events() {
|
200
|
+
return [{
|
201
|
+
"method": "editsComplete",
|
202
|
+
"name": "editsComplete",
|
203
|
+
"bubbles": true,
|
204
|
+
"cancelable": true,
|
205
|
+
"composed": true,
|
206
|
+
"docs": {
|
207
|
+
"tags": [],
|
208
|
+
"text": "Emitted on demand when features have been deleted"
|
209
|
+
},
|
210
|
+
"complexType": {
|
211
|
+
"original": "EditType",
|
212
|
+
"resolved": "\"add\" | \"delete\" | \"update\"",
|
213
|
+
"references": {
|
214
|
+
"EditType": {
|
215
|
+
"location": "import",
|
216
|
+
"path": "../../utils/interfaces",
|
217
|
+
"id": "src/utils/interfaces.ts::EditType"
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}
|
221
|
+
}, {
|
222
|
+
"method": "deleteDialogClose",
|
223
|
+
"name": "deleteDialogClose",
|
224
|
+
"bubbles": true,
|
225
|
+
"cancelable": true,
|
226
|
+
"composed": true,
|
227
|
+
"docs": {
|
228
|
+
"tags": [],
|
229
|
+
"text": "Emitted on demand when features have been deleted"
|
230
|
+
},
|
231
|
+
"complexType": {
|
232
|
+
"original": "void",
|
233
|
+
"resolved": "void",
|
234
|
+
"references": {}
|
235
|
+
}
|
236
|
+
}];
|
237
|
+
}
|
238
|
+
static get elementRef() { return "el"; }
|
239
|
+
}
|
@@ -198,7 +198,7 @@ export class EditCard {
|
|
198
198
|
!this.graphics[0].layer.editingEnabled : true;
|
199
199
|
const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
|
200
200
|
const loadingClass = this._editorLoading ? "" : "display-none";
|
201
|
-
return (h(Host, { key: '
|
201
|
+
return (h(Host, { key: 'ff6d1819cfd084e9f11a1c87d89c49d13035b289' }, h("div", { key: '797882acbcc26283719be4c08936e93b93931bcd', 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: '34ce92da0b7c452f0fbae98d9f557543da59f5b8', class: "position-absolute" }, h("div", { key: '81af3854249e193d0d508c022cb4075be63f052d', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), h("calcite-loader", { key: 'd7aa82424f87c47039a8a8f8c61240da7a5ca971', class: loadingClass, label: "", scale: "s" })))));
|
202
202
|
}
|
203
203
|
//--------------------------------------------------------------------------
|
204
204
|
//
|
@@ -62,7 +62,7 @@ export class FeatureComments {
|
|
62
62
|
//
|
63
63
|
//--------------------------------------------------------------------------
|
64
64
|
render() {
|
65
|
-
return (h(Host, { key: '
|
65
|
+
return (h(Host, { key: 'b58aca4fb9f05091f7b4c9a622755afed968a539' }, h("slot", { key: '806ab314b95a05252b5d558722b3dcb68e9b5b44' })));
|
66
66
|
}
|
67
67
|
static get is() { return "feature-comments"; }
|
68
68
|
static get encapsulation() { return "shadow"; }
|
@@ -180,12 +180,12 @@ export class FeatureDetails {
|
|
180
180
|
render() {
|
181
181
|
//When related features found show comments list of only those features else comments list will be empty
|
182
182
|
const commentsListWhereClause = this._relatedFeaturesOIDs?.length > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
|
183
|
-
return (h("calcite-panel", { key: '
|
184
|
-
h("div", { key: '
|
185
|
-
h("calcite-button", { key: '
|
186
|
-
h("calcite-button", { key: '
|
187
|
-
h("calcite-button", { key: '
|
188
|
-
h("feature-list", { key: '
|
183
|
+
return (h("calcite-panel", { key: 'e09b693348a5d446f6ea3c774af3c2fd14e66daf', "full-height": true }, h("info-card", { key: '4483a15e4e0bdd62c2c21bc4622d3bbddf3cd113', 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) &&
|
184
|
+
h("div", { key: 'ac24bb5fd56a7561e78d90c3a1b10027cfab6b2b', class: "buttons-container" }, this._commentsAvailable &&
|
185
|
+
h("calcite-button", { key: '676c5da52465f295212668f8db9b353e219070f2', appearance: "transparent", iconEnd: "speech-bubble", kind: "neutral", onClick: () => { this.addComment.emit(); }, scale: 'm' }, this._relatedFeaturesOIDs.length), this._likeFieldAvailable &&
|
186
|
+
h("calcite-button", { key: 'b3fe54ea2fcf5361e6ec0a91bd52775d24408d77', appearance: "transparent", iconEnd: "thumbs-up", kind: this._isLikeBtnClicked ? "brand" : "neutral", loading: this._updating, onClick: this.onLikeButtonClick.bind(this), scale: 'm' }, this._likeCount ?? this._selectedGraphic.attributes[this._likeField] ?? 0), this._dislikeFieldAvailable &&
|
187
|
+
h("calcite-button", { key: 'd83c9b9fdd287e07670ca9a5aeafd1a4cc38c0f8', appearance: "transparent", iconEnd: "thumbs-down", kind: this._isDislikeBtnClicked ? "brand" : "neutral", loading: this._updating, onClick: this.onDislikeButtonClick.bind(this), scale: 'm' }, this._disLikeCount ?? this._selectedGraphic.attributes[this._dislikeField] ?? 0)), this.relatedTableId && this._commentsAvailable &&
|
188
|
+
h("feature-list", { key: '9d72181a778e08b632d802689a66fa21924cd5b3', 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, showUserImageInList: this.showUserImageInCommentsList, textSize: "small", whereClause: commentsListWhereClause })));
|
189
189
|
}
|
190
190
|
/**
|
191
191
|
* Load esri javascript api modules
|
@@ -208,11 +208,13 @@ export class FeatureDetails {
|
|
208
208
|
* @protected
|
209
209
|
*/
|
210
210
|
async getCompleteGraphic(graphic) {
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
211
|
+
if (graphic) {
|
212
|
+
const layer = graphic.layer;
|
213
|
+
const query = layer.createQuery();
|
214
|
+
query.objectIds = [graphic.getObjectId()];
|
215
|
+
const completeGraphic = await layer.queryFeatures(query);
|
216
|
+
this._selectedGraphic = completeGraphic.features[0];
|
217
|
+
}
|
216
218
|
}
|
217
219
|
/**
|
218
220
|
* Process the comments functionality.
|
@@ -62,7 +62,7 @@ export class FeatureFormFlowItem {
|
|
62
62
|
//
|
63
63
|
//--------------------------------------------------------------------------
|
64
64
|
render() {
|
65
|
-
return (h(Host, { key: '
|
65
|
+
return (h(Host, { key: 'ada36a5353ae5c21f81ab8ffea24fab3312acc85' }, h("slot", { key: '424cb194632c9ea0ade6cf848e01a414c05abc42' })));
|
66
66
|
}
|
67
67
|
static get is() { return "feature-form-flow-item"; }
|
68
68
|
static get encapsulation() { return "shadow"; }
|
@@ -187,9 +187,9 @@ export class FeatureList {
|
|
187
187
|
* Renders the component.
|
188
188
|
*/
|
189
189
|
render() {
|
190
|
-
return (h("calcite-panel", { key: '
|
191
|
-
h("calcite-notice", { key: '
|
192
|
-
h("div", { key: '
|
190
|
+
return (h("calcite-panel", { key: '59289a87561105e3edcbd52bac96b974b1387a16', "full-height": true, "full-width": true }, this._isLoading && h("calcite-loader", { key: '59629285e49227209761d2f16bdd62a90750538f', label: "", scale: "m" }), this.showErrorWhenNoFeatures && this._featureItems.length === 0 && !this._isLoading &&
|
191
|
+
h("calcite-notice", { key: 'bc6c2e6e0fdf959374caf79f2027784e2fdaca15', class: "error-msg", icon: "feature-details", kind: "info", open: true }, h("div", { key: '052207ce0b0e2d8030ac7a4a7985c718371a9667', slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), h("calcite-list", { key: '3f17ea85f2265717aa13c9c71f19c259470c9fcc', "selection-appearance": "border", "selection-mode": "none" }, !this._isLoading && this._featureItems.length > 0 && this._featureItems), this._featuresCount > this.pageSize &&
|
192
|
+
h("div", { key: 'ce3179bcdc7af254488dea909034c58db17ec565', class: "width-full", slot: "footer" }, h("calcite-pagination", { key: 'd6a4b8c7a940918388b3b9891a666c4a142edae7', class: "pagination", "full-width": true, onCalcitePaginationChange: this.pageChanged.bind(this), "page-size": this.pageSize, ref: el => this._pagination = el, "start-item": "1", "total-items": this._featuresCount }))));
|
193
193
|
}
|
194
194
|
//--------------------------------------------------------------------------
|
195
195
|
//
|
@@ -424,7 +424,7 @@ export class FeatureList {
|
|
424
424
|
const popupTitlePaddingClass = this.showUserImageInList || this.showFeatureSymbol ? 'feature-list-popup-title-padding-reduced' : 'feature-list-popup-title-padding';
|
425
425
|
return (h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, onMouseLeave: () => { void this.clearHighlights(); }, onMouseOver: () => { void this.onFeatureHover(selectedFeature); }, value: oId }, this.showUserImageInList &&
|
426
426
|
h("calcite-avatar", { class: 'profile-img', "full-name": userInfo?.fullName, scale: "m", slot: "content-start", thumbnail: userInfo?.userProfileUrl, userId: userInfo?.id, username: userInfo?.fullName ? userInfo.username : undefined }), this.showFeatureSymbol &&
|
427
|
-
h("div", { class: 'feature-symbol', ref: (el) => el && el.
|
427
|
+
h("div", { class: 'feature-symbol', ref: (el) => el && el.replaceChildren(featureSymbol), slot: "content-start" }), h("div", { class: `${popupTitleClass} ${popupTitlePaddingClass}`, slot: "content-start" }, popupTitle), this._likeFieldAvailable &&
|
428
428
|
h("div", { class: "like-container", id: oId.concat("like"), slot: "content-end" }, h("span", null, this._abbreviatedLikeCount), h("calcite-icon", { icon: "thumbs-up", scale: 's' }), h("calcite-tooltip", { overlayPositioning: "fixed", placement: "top", "reference-element": oId.concat("like") }, formattedLikeCount)), h("calcite-icon", { flipRtl: true, icon: "chevron-right", scale: "s", slot: "content-end" })));
|
429
429
|
}
|
430
430
|
/**
|
@@ -62,7 +62,7 @@ export class FeaturesFlowItem {
|
|
62
62
|
//
|
63
63
|
//--------------------------------------------------------------------------
|
64
64
|
render() {
|
65
|
-
return (h(Host, { key: '
|
65
|
+
return (h(Host, { key: 'b775a26ab493f17e0e93ba5713b407566d37683d' }, h("slot", { key: '05f063062f8cced80ae18d36e7ef08abe6b15839' })));
|
66
66
|
}
|
67
67
|
static get is() { return "features-flow-item"; }
|
68
68
|
static get encapsulation() { return "shadow"; }
|
@@ -127,7 +127,7 @@ export class FloorFilter {
|
|
127
127
|
* Renders the component.
|
128
128
|
*/
|
129
129
|
render() {
|
130
|
-
return (h(Host, { key: '
|
130
|
+
return (h(Host, { key: '7890927db517fe8e1133fce3e0fe977a441f2abf' }, h("div", { key: '34ad695eb04dd20a0b9893817a33df5020de7da1', ref: (el) => { this._floorFilterElement = el; } })));
|
131
131
|
}
|
132
132
|
/**
|
133
133
|
* StencilJS: Called once just after the component is first loaded.
|
@@ -232,8 +232,8 @@ export class InfoCard {
|
|
232
232
|
const id = this._features?.selectedFeature?.getObjectId();
|
233
233
|
const ids = parseInt(id?.toString(), 10) > -1 ? [id] : [];
|
234
234
|
const deleteEnabled = this._layer?.editingEnabled && this._layer?.capabilities?.operations?.supportsDelete;
|
235
|
-
return (h(Host, { key: '
|
236
|
-
h("div", { key: '
|
235
|
+
return (h(Host, { key: 'e200fd8d903d1c3295247a45f352ae62394501d5' }, h("calcite-shell", { key: '0b467ed0b480944660ef2194b302070d56cb70e4', style: { position: this.position } }, this._getHeader(), h("calcite-loader", { key: 'cf6172f533f67274b04ac61af75f44ffe62cbc9e', class: loadingClass, label: this._translations.fetchingData }), h("div", { key: '06f3e0c61e14fe73c0fadd58c3cf2c7c03efff6d', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), h("div", { key: '0f964afa075abbd27db827f90d189b9bc2a7c9d4', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
|
236
|
+
h("div", { key: 'd518934d172425ecb46e6b28ea683427d8982382', class: "display-flex top-border padding-1-2" }, h("calcite-button", { key: '4d4f3583b6448e33e3d3ad1aba8c9178f71d75b8', 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: '5358ba4079f1906d23b6df5b1facb84eec9692d3', placement: "bottom", "reference-element": "solutions-edit" }, h("span", { key: '8466cfb97ce12e46a06ed665afe974377911e101' }, 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: '61c551cc2b0c0a2981daa9bf67c7e13318508ca6', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, h("div", { key: '379dc6697743caedf8fdbea16423b83e9e823a5b' }, h("calcite-button", { key: '616a52367d2f56db0104ce279951a81fcf60a376', appearance: 'transparent', disabled: nextBackDisabled, iconFlipRtl: "both", iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), h("calcite-tooltip", { key: 'f7f83e145c25591de025650fd358ca6200c4b6c5', placement: "top", "reference-element": "solutions-back" }, h("span", { key: '8afbde57b91ee8597de237db87efda7eabc10d69' }, this._translations.back))), h("calcite-action", { key: '23344d4abac515d089b8770d63181a989971aa33', class: 'pagination-action', iconFlipRtl: true, onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, h("span", { key: 'a4c784c5a2c7dfeb9442a58f86961a3242f55055', class: "pagination-count" }, this._count)), h("div", { key: '75e33452a93e9a77f30505957e87b8758ab8d2dd' }, h("calcite-button", { key: '0283a96c401e1929588e28d6ec014eb28b93d1f1', appearance: "transparent", disabled: nextBackDisabled, iconFlipRtl: "both", iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), h("calcite-tooltip", { key: '658a26b1bca471b96799cb81ee941f0556619dc9', placement: "top", "reference-element": "solutions-next" }, h("span", { key: '9892d4ee61a1b5656711bb0a188282d9b46bd3f9' }, this._translations.next))))), h("edit-card", { key: '541268c24631ab526bf1b65313d39f3ca606cb6d', class: editClass, enableEditGeometry: this.enableEditGeometry, graphicIndex: this._features?.selectedFeatureIndex, graphics: this.graphics, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { key: '1cdff00f5d7e72b5db220750d290593a1baf68c4', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { key: 'bb250c5906f0e998a794b5c02c22f9643fab16a9', slot: "title" }, this._translations.editDisabled), h("div", { key: 'd330d1ce74473fc76630d2607ab3ca2584aabbd7', slot: "message" }, this._translations.enableEditing)))));
|
237
237
|
}
|
238
238
|
//--------------------------------------------------------------------------
|
239
239
|
//
|
@@ -135,7 +135,7 @@ export class JsonEditor {
|
|
135
135
|
* Renders the component.
|
136
136
|
*/
|
137
137
|
render() {
|
138
|
-
return (h(Host, { key: '
|
138
|
+
return (h(Host, { key: '0c7531c8c816eb9be80d357b19b568ccdb22c407' }, h("div", { key: '866f82b68c2a750edfc80d801e4ea95a3f655100', id: `${this.instanceid}-editor-container`, class: "editor-container padding-right" }, h("div", { key: '5b9f15641f6a26daeb3847d8ef75c76b8be44fc5', class: "editor-controls" }, h("div", { key: 'd1e91eaa242ccd23d5dc1386b6a58d2fafeb4083', class: "editor-buttons" }, h("calcite-icon", { key: 'd9364f7dfdbc22a414b4711c8a22e145b533998e', id: `${this.instanceid}-errorFlag`, icon: "exclamation-mark-triangle", title: this._translations.errorFlag, scale: "s", class: "edit-error-flag" }), h("calcite-button", { key: '29750fc7cedf1f9caf556df3ff84dc45d6b922b9', id: `${this.instanceid}-undo`, color: "blue", appearance: "solid", title: this._translations.undo, onClick: () => this._undo(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: 'c95008b3fccb8bc33f01eb1bd204c84141850981', icon: "undo", scale: "s" })), h("calcite-button", { key: '49ac9ee70c58954f6dee34524f4c7ab6fa0d7a49', id: `${this.instanceid}-redo`, color: "blue", appearance: "solid", title: this._translations.redo, onClick: () => this._redo(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '2170c36d0fd236c989222991353324d50afa8ac0', icon: "redo", scale: "s" })), h("calcite-button", { key: 'c6e1a0f84fac6fb02d2590cc7b32aefffbc06d25', id: `${this.instanceid}-diff`, color: "blue", appearance: "solid", title: this._translations.diff, onClick: () => this._toggleEditor(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '88443cfd2a8888447acc75588ecff7938ade5273', icon: "compare", scale: "s" })), h("calcite-button", { key: '42dcd8f63600d4ddb77eaedd529321999cf537b3', id: `${this.instanceid}-search`, appearance: "outline", color: "blue", title: this._translations.search, onClick: () => this._search(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '31e8ced3f14f1475c62133fbd7730e34b2bc4028', icon: "search", scale: "s" })), h("calcite-button", { key: '769b268d7476f3fe1a8623e9432cfae56602db0c', 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: '4a8ead1dbf8fefe8b4106a0f6f9c42fb5b875cd2', icon: "reset", scale: "s" })))), h("div", { key: '98f29030a0fa0ecbce0d165840a30edd655ba249', class: "edit-parent" }, h("div", { key: '1441e32a184bc24f2a0a25fcb855c41b40bd0cec', id: `${this.instanceid}-container`, class: "json-edit-container" }), h("div", { key: 'f0cf0a3bd11d3f8102c4cc8695ac1743bac36bbb', id: `${this.instanceid}-diff-container`, class: "json-edit-container display-none" })))));
|
139
139
|
}
|
140
140
|
//--------------------------------------------------------------------------
|
141
141
|
//
|
@@ -91,22 +91,20 @@ export class LayerList {
|
|
91
91
|
*/
|
92
92
|
async componentWillLoad() {
|
93
93
|
await this._getTranslations();
|
94
|
-
this._isLoading = true;
|
95
94
|
}
|
96
95
|
/**
|
97
96
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
98
97
|
*/
|
99
98
|
async componentDidLoad() {
|
100
99
|
await this.setLayers();
|
101
|
-
this._isLoading = false;
|
102
100
|
}
|
103
101
|
/**
|
104
102
|
* Renders the component.
|
105
103
|
*/
|
106
104
|
render() {
|
107
|
-
return (h(Fragment, { key: '
|
108
|
-
h("calcite-notice", { key: '
|
109
|
-
h("calcite-list", { key: '
|
105
|
+
return (h(Fragment, { key: 'f8e0c21d4ff87d663a1e0f00f1d9ef1123091db9' }, this._isLoading && h("calcite-loader", { key: '42058be6b41126e58d33895bc237b174e55a16ed', label: "", scale: "m" }), !this._isLoading && this.mapView && this._noLayersToDisplay &&
|
106
|
+
h("calcite-notice", { key: '89d9073a156f07379699cc5b67bf9ba54654cc68', class: "error-msg", icon: "layers-reference", kind: "danger", open: true }, h("div", { key: '730b8dcca79bd45a7a6eecb5030626d1dcd01238', slot: "title" }, this._translations.error), h("div", { key: '656e8276ffab75734909348f49f11492de1d5a8b', slot: "message" }, this._translations.noLayerToDisplayErrorMsg)), !this._isLoading && this.mapView &&
|
107
|
+
h("calcite-list", { key: '1d2206d3163b6c5ed8511e32ab296f0025889824', "selection-appearance": "border", "selection-mode": "none" }, this.renderLayerList())));
|
110
108
|
}
|
111
109
|
//--------------------------------------------------------------------------
|
112
110
|
//
|
@@ -120,7 +118,9 @@ export class LayerList {
|
|
120
118
|
*/
|
121
119
|
async setLayers() {
|
122
120
|
if (this.mapView) {
|
121
|
+
this._isLoading = true;
|
123
122
|
await this.initLayerHash();
|
123
|
+
this._isLoading = false;
|
124
124
|
}
|
125
125
|
}
|
126
126
|
/**
|
@@ -148,4 +148,10 @@ html[dir="rtl"] .share-action {
|
|
148
148
|
--calcite-color-border-input: var(--calcite-color-border-3);
|
149
149
|
width: 60%;
|
150
150
|
padding: 10px;
|
151
|
+
}
|
152
|
+
|
153
|
+
.delete-red {
|
154
|
+
--calcite-icon-color: var(--calcite-color-status-danger);
|
155
|
+
--calcite-color-text-1: var(--calcite-color-status-danger);
|
156
|
+
--calcite-color-text-3: var(--calcite-color-status-danger);
|
151
157
|
}
|