@esri/solutions-components 0.11.18 → 0.11.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +49 -258
- package/dist/cjs/buffer-tools_2.cjs.entry.js +30 -123
- package/dist/cjs/card-manager_3.cjs.entry.js +98 -427
- package/dist/cjs/consent-manager.cjs.entry.js +12 -54
- package/dist/cjs/create-feature_4.cjs.entry.js +88 -287
- package/dist/cjs/create-related-feature_3.cjs.entry.js +36 -170
- package/dist/cjs/crowdsource-manager.cjs.entry.js +61 -253
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +56 -219
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/delete-dialog.cjs.entry.js +8 -37
- package/dist/cjs/{downloadUtils-9abff913.js → downloadUtils-fcae8eb1.js} +2 -2
- package/dist/cjs/feature-list.cjs.entry.js +27 -107
- package/dist/cjs/{helpers-a65cb83a.js → helpers-8d452256.js} +1 -1
- package/dist/cjs/{index-2c21082d.js → index-af14245a.js} +346 -428
- package/dist/cjs/{index-90ef3c01.js → index-ffd12cb0.js} +1 -1
- package/dist/cjs/instant-apps-app-guide.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-create.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-export.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-filter-list_2.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-measurement-tool.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-popover.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-splash.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +3 -3
- package/dist/cjs/json-editor_7.cjs.entry.js +49 -227
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{locale-c09e93fb.js → locale-1c60be9c.js} +1 -1
- package/dist/cjs/{locale-0a273172.js → locale-da41a06f.js} +1 -1
- package/dist/cjs/map-layer-picker.cjs.entry.js +27 -112
- package/dist/cjs/map-select-tools_3.cjs.entry.js +50 -229
- package/dist/cjs/pci-calculator.cjs.entry.js +2 -15
- package/dist/cjs/{popupUtils-fc7557da.js → popupUtils-87b006a6.js} +2 -2
- package/dist/cjs/public-notification.cjs.entry.js +44 -194
- package/dist/cjs/{publicNotificationStore-ee00411f.js → publicNotificationStore-beb782de.js} +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +17 -52
- package/dist/cjs/solution-contents_3.cjs.entry.js +18 -84
- package/dist/cjs/solution-item-accordion.cjs.entry.js +8 -38
- package/dist/cjs/solution-item-icon.cjs.entry.js +4 -18
- package/dist/cjs/{solution-store-6208ce28.js → solution-store-3cf25b71.js} +1 -1
- package/dist/cjs/solutions-components.cjs.js +3 -3
- package/dist/cjs/spatial-ref.cjs.entry.js +10 -45
- package/dist/cjs/store-manager.cjs.entry.js +6 -21
- package/dist/cjs/{utils-30344ce0.js → utils-3e512114.js} +2 -2
- package/dist/collection/assets/t9n/create-feature/resources.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_en.json +1 -1
- package/dist/collection/assets/t9n/solution-item-accordion/resources.json +1 -1
- package/dist/collection/assets/t9n/solution-item-accordion/resources_en.json +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/basemap-gallery/basemap-gallery.js +5 -19
- package/dist/collection/components/buffer-tools/buffer-tools.js +13 -52
- package/dist/collection/components/card-manager/card-manager.js +17 -71
- package/dist/collection/components/consent-manager/consent-manager.js +12 -52
- package/dist/collection/components/create-feature/create-feature.js +139 -171
- package/dist/collection/components/create-related-feature/create-related-feature.js +10 -44
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +61 -251
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +75 -217
- package/dist/collection/components/delete-button/delete-button.js +13 -55
- package/dist/collection/components/delete-dialog/delete-dialog.js +8 -35
- package/dist/collection/components/edit-card/edit-card.js +10 -43
- package/dist/collection/components/feature-details/feature-details.js +18 -74
- package/dist/collection/components/feature-list/feature-list.js +25 -103
- package/dist/collection/components/floor-filter/floor-filter.js +5 -19
- package/dist/collection/components/info-card/info-card.js +20 -85
- package/dist/collection/components/json-editor/json-editor.js +7 -28
- package/dist/collection/components/layer-list/layer-list.js +12 -50
- package/dist/collection/components/layer-table/layer-table.js +41 -171
- package/dist/collection/components/map-card/map-card.js +43 -182
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +17 -67
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +4 -18
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +25 -108
- package/dist/collection/components/map-legend/map-legend.js +4 -15
- package/dist/collection/components/map-picker/map-picker.js +8 -35
- package/dist/collection/components/map-search/map-search.js +8 -35
- package/dist/collection/components/map-select-tools/map-select-tools.js +32 -138
- package/dist/collection/components/map-tools/map-tools.js +27 -115
- package/dist/collection/components/pci-calculator/pci-calculator.js +3 -14
- package/dist/collection/components/pdf-download/pdf-download.js +6 -27
- package/dist/collection/components/public-notification/public-notification.js +41 -189
- package/dist/collection/components/refine-selection/refine-selection.js +13 -59
- package/dist/collection/components/solution-configuration/solution-configuration.js +13 -48
- package/dist/collection/components/solution-contents/solution-contents.js +4 -13
- package/dist/collection/components/solution-item/solution-item.js +9 -36
- package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +8 -36
- package/dist/collection/components/solution-item-details/solution-item-details.js +16 -35
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +5 -17
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +6 -27
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +6 -24
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +8 -36
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +7 -31
- package/dist/collection/components/solution-template-data/solution-template-data.js +8 -49
- package/dist/collection/components/solution-variables/solution-variables.js +6 -24
- package/dist/collection/components/spatial-ref/spatial-ref.js +8 -43
- package/dist/collection/components/store-manager/store-manager.js +5 -18
- package/dist/components/basemap-gallery2.js +3 -19
- package/dist/components/buffer-tools2.js +11 -52
- package/dist/components/card-manager2.js +15 -71
- package/dist/components/consent-manager.js +10 -52
- package/dist/components/create-feature2.js +55 -107
- package/dist/components/create-related-feature2.js +8 -44
- package/dist/components/crowdsource-manager.js +59 -251
- package/dist/components/crowdsource-reporter.js +55 -217
- package/dist/components/delete-button2.js +11 -55
- package/dist/components/delete-dialog2.js +6 -35
- package/dist/components/edit-card2.js +8 -43
- package/dist/components/feature-details2.js +16 -74
- package/dist/components/feature-list2.js +23 -103
- package/dist/components/floor-filter2.js +3 -19
- package/dist/components/info-card2.js +18 -85
- package/dist/components/json-editor2.js +5 -28
- package/dist/components/layer-list2.js +10 -50
- package/dist/components/layer-table2.js +39 -171
- package/dist/components/map-card2.js +41 -182
- package/dist/components/map-draw-tools2.js +15 -67
- package/dist/components/map-fullscreen2.js +2 -18
- package/dist/components/map-layer-picker2.js +23 -108
- package/dist/components/map-legend2.js +2 -15
- package/dist/components/map-picker2.js +6 -35
- package/dist/components/map-search2.js +6 -35
- package/dist/components/map-select-tools2.js +30 -138
- package/dist/components/map-tools2.js +25 -115
- package/dist/components/pci-calculator.js +1 -14
- package/dist/components/pdf-download2.js +4 -27
- package/dist/components/public-notification.js +39 -189
- package/dist/components/refine-selection2.js +11 -59
- package/dist/components/solution-configuration.js +13 -48
- package/dist/components/solution-contents2.js +2 -13
- package/dist/components/solution-item-accordion.js +6 -36
- package/dist/components/solution-item-details2.js +14 -35
- package/dist/components/solution-item-icon2.js +3 -17
- package/dist/components/solution-item-sharing2.js +4 -27
- package/dist/components/solution-item2.js +7 -36
- package/dist/components/solution-organization-variables2.js +4 -24
- package/dist/components/solution-resource-item2.js +6 -36
- package/dist/components/solution-spatial-ref2.js +5 -31
- package/dist/components/solution-template-data2.js +8 -49
- package/dist/components/solution-variables2.js +4 -24
- package/dist/components/spatial-ref.js +8 -43
- package/dist/components/store-manager.js +3 -18
- package/dist/esm/basemap-gallery_7.entry.js +49 -258
- package/dist/esm/buffer-tools_2.entry.js +30 -123
- package/dist/esm/card-manager_3.entry.js +98 -427
- package/dist/esm/consent-manager.entry.js +12 -54
- package/dist/esm/create-feature_4.entry.js +88 -287
- package/dist/esm/create-related-feature_3.entry.js +36 -170
- package/dist/esm/crowdsource-manager.entry.js +61 -253
- package/dist/esm/crowdsource-reporter.entry.js +56 -219
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/delete-dialog.entry.js +8 -37
- package/dist/esm/{downloadUtils-36d854d2.js → downloadUtils-078cd709.js} +2 -2
- package/dist/esm/feature-list.entry.js +27 -107
- package/dist/esm/{helpers-77bdd30e.js → helpers-15d5cd56.js} +1 -1
- package/dist/esm/{index-6de7c296.js → index-c247b62b.js} +1 -1
- package/dist/esm/{index-3702583a.js → index-df5db8e9.js} +346 -428
- package/dist/esm/instant-apps-app-guide.entry.js +2 -2
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +4 -4
- package/dist/esm/instant-apps-control-panel.entry.js +1 -1
- package/dist/esm/instant-apps-create.entry.js +2 -2
- package/dist/esm/instant-apps-export-views.entry.js +2 -2
- package/dist/esm/instant-apps-export.entry.js +2 -2
- package/dist/esm/instant-apps-filter-list_2.entry.js +2 -2
- package/dist/esm/instant-apps-header.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend.entry.js +4 -4
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +2 -2
- package/dist/esm/instant-apps-landing-page.entry.js +1 -1
- package/dist/esm/instant-apps-language-switcher.entry.js +4 -4
- package/dist/esm/instant-apps-language-translator.entry.js +4 -4
- package/dist/esm/instant-apps-measurement-tool.entry.js +1 -1
- package/dist/esm/instant-apps-measurement.entry.js +2 -2
- package/dist/esm/instant-apps-popover.entry.js +2 -2
- package/dist/esm/instant-apps-popovers.entry.js +1 -1
- package/dist/esm/instant-apps-scoreboard.entry.js +2 -2
- package/dist/esm/instant-apps-sign-in.entry.js +2 -2
- package/dist/esm/instant-apps-splash.entry.js +2 -2
- package/dist/esm/instant-apps-time-filter.entry.js +3 -3
- package/dist/esm/json-editor_7.entry.js +49 -227
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{locale-aa656a2c.js → locale-7874c756.js} +1 -1
- package/dist/esm/{locale-b0016f8e.js → locale-e02b0e14.js} +1 -1
- package/dist/esm/map-layer-picker.entry.js +27 -112
- package/dist/esm/map-select-tools_3.entry.js +50 -229
- package/dist/esm/pci-calculator.entry.js +2 -15
- package/dist/esm/{popupUtils-64d25cb0.js → popupUtils-6a965512.js} +2 -2
- package/dist/esm/public-notification.entry.js +44 -194
- package/dist/esm/{publicNotificationStore-70219049.js → publicNotificationStore-9ec5e22a.js} +1 -1
- package/dist/esm/solution-configuration.entry.js +17 -52
- package/dist/esm/solution-contents_3.entry.js +18 -84
- package/dist/esm/solution-item-accordion.entry.js +8 -38
- package/dist/esm/solution-item-icon.entry.js +4 -18
- package/dist/esm/{solution-store-2493275a.js → solution-store-4c39c654.js} +1 -1
- package/dist/esm/solutions-components.js +4 -4
- package/dist/esm/spatial-ref.entry.js +10 -45
- package/dist/esm/store-manager.entry.js +6 -21
- package/dist/esm/{utils-68015f9d.js → utils-6fe5b5fa.js} +2 -2
- package/dist/solutions-components/assets/t9n/create-feature/resources.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_en.json +1 -1
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources.json +1 -1
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_en.json +1 -1
- package/dist/solutions-components/p-00ec642f.entry.js +6 -0
- package/dist/solutions-components/p-02c4e6fc.entry.js +6 -0
- package/dist/solutions-components/{p-68d49e1a.entry.js → p-0326f1f4.entry.js} +2 -2
- package/dist/solutions-components/{p-8f7957a2.js → p-1e1dfef6.js} +1 -1
- package/dist/solutions-components/p-244316dd.entry.js +6 -0
- package/dist/solutions-components/p-2460cf10.entry.js +6 -0
- package/dist/solutions-components/{p-173d5fce.js → p-2884ca49.js} +1 -1
- package/dist/solutions-components/p-38814554.entry.js +6 -0
- package/dist/solutions-components/{p-ee863ffb.entry.js → p-3ce5c7fd.entry.js} +1 -1
- package/dist/solutions-components/{p-ee2cbba0.js → p-404cbf48.js} +1 -1
- package/dist/solutions-components/{p-2dcf8f00.entry.js → p-41a3b49a.entry.js} +1 -1
- package/dist/solutions-components/{p-579628d9.entry.js → p-443168f0.entry.js} +1 -1
- package/dist/solutions-components/{p-81ae30bd.entry.js → p-4ced7b11.entry.js} +1 -1
- package/dist/solutions-components/{p-eb97b5ad.entry.js → p-4d5dd39e.entry.js} +1 -1
- package/dist/solutions-components/{p-699a9557.entry.js → p-4e7514a3.entry.js} +1 -1
- package/dist/solutions-components/{p-fa09caf3.entry.js → p-4f7fb338.entry.js} +1 -1
- package/dist/solutions-components/{p-959cb673.entry.js → p-552fb1c0.entry.js} +1 -1
- package/dist/solutions-components/{p-f07a02e2.entry.js → p-5786b9da.entry.js} +1 -1
- package/dist/solutions-components/p-5a202f3f.entry.js +6 -0
- package/dist/solutions-components/p-5e4e0f84.entry.js +6 -0
- package/dist/solutions-components/{p-2b556610.entry.js → p-64a6162f.entry.js} +1 -1
- package/dist/solutions-components/{p-7f6cbe61.entry.js → p-65105504.entry.js} +1 -1
- package/dist/solutions-components/p-698656b8.entry.js +6 -0
- package/dist/solutions-components/p-7251848d.entry.js +6 -0
- package/dist/solutions-components/{p-1890b884.entry.js → p-72d04c7a.entry.js} +2 -2
- package/dist/solutions-components/p-832707fd.entry.js +6 -0
- package/dist/solutions-components/{p-e81e2d83.entry.js → p-837e0939.entry.js} +2 -2
- package/dist/solutions-components/{p-3d20e307.js → p-84bb6925.js} +1 -1
- package/dist/solutions-components/{p-e23b4193.js → p-8717729a.js} +1 -1
- package/dist/solutions-components/p-8859b622.entry.js +6 -0
- package/dist/solutions-components/{p-300ff31e.entry.js → p-8a010f9e.entry.js} +1 -1
- package/dist/solutions-components/{p-e85da876.entry.js → p-8dd677dd.entry.js} +1 -1
- package/dist/solutions-components/{p-ea64b72e.entry.js → p-9927342d.entry.js} +1 -1
- package/dist/solutions-components/{p-1dffcc22.entry.js → p-a277d08c.entry.js} +1 -1
- package/dist/solutions-components/p-a5eaf7fe.entry.js +6 -0
- package/dist/solutions-components/{p-b40b5be5.entry.js → p-aad84d69.entry.js} +1 -1
- package/dist/solutions-components/{p-b560498c.entry.js → p-b394f504.entry.js} +1 -1
- package/dist/solutions-components/p-b636a8b4.entry.js +6 -0
- package/dist/solutions-components/{p-1ddd7128.entry.js → p-ba4e219a.entry.js} +1 -1
- package/dist/solutions-components/{p-d0d21a1f.js → p-bf04c6f4.js} +2 -2
- package/dist/solutions-components/{p-335a630e.entry.js → p-c6c697e5.entry.js} +1 -1
- package/dist/solutions-components/{p-2c8360b4.entry.js → p-d324196d.entry.js} +1 -1
- package/dist/solutions-components/{p-8b218ba7.js → p-da1e098c.js} +1 -1
- package/dist/solutions-components/{p-6eab9d1f.js → p-db3391b9.js} +1 -1
- package/dist/solutions-components/p-de42e8b2.entry.js +6 -0
- package/dist/solutions-components/{p-70e8be5c.entry.js → p-e3e35c14.entry.js} +1 -1
- package/dist/solutions-components/{p-48942eb8.js → p-e6859850.js} +2 -2
- package/dist/solutions-components/p-e996c38f.js +7 -0
- package/dist/solutions-components/p-ea566af0.entry.js +6 -0
- package/dist/solutions-components/p-eb3c867f.entry.js +6 -0
- package/dist/solutions-components/p-ed1ecb5b.entry.js +6 -0
- package/dist/solutions-components/p-ee3bb943.entry.js +6 -0
- package/dist/solutions-components/{p-ff5db601.entry.js → p-f165921f.entry.js} +1 -1
- package/dist/solutions-components/{p-4bdd4009.entry.js → p-f75786a8.entry.js} +1 -1
- package/dist/solutions-components/{p-8107be38.entry.js → p-f956c598.entry.js} +1 -1
- package/dist/solutions-components/{p-6da8fe2d.entry.js → p-fa663804.entry.js} +1 -1
- package/dist/solutions-components/{p-afc3ac6d.entry.js → p-ff317687.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components_commit.txt +6 -6
- package/dist/types/components/create-feature/create-feature.d.ts +54 -50
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +4 -0
- package/dist/types/components.d.ts +16 -0
- package/package.json +2 -2
- package/dist/solutions-components/p-032d4411.entry.js +0 -6
- package/dist/solutions-components/p-055706e3.entry.js +0 -6
- package/dist/solutions-components/p-06970873.entry.js +0 -6
- package/dist/solutions-components/p-1b0588d2.js +0 -7
- package/dist/solutions-components/p-265f5dc4.entry.js +0 -6
- package/dist/solutions-components/p-3c43839b.entry.js +0 -6
- package/dist/solutions-components/p-4426901e.entry.js +0 -6
- package/dist/solutions-components/p-4ebc471b.entry.js +0 -6
- package/dist/solutions-components/p-6d62a4fa.entry.js +0 -6
- package/dist/solutions-components/p-70036eb6.entry.js +0 -6
- package/dist/solutions-components/p-72ae3bf0.entry.js +0 -6
- package/dist/solutions-components/p-777ed6b0.entry.js +0 -6
- package/dist/solutions-components/p-8b5c3c9f.entry.js +0 -6
- package/dist/solutions-components/p-9d953313.entry.js +0 -6
- package/dist/solutions-components/p-a44815ea.entry.js +0 -6
- package/dist/solutions-components/p-acd2699e.entry.js +0 -6
- package/dist/solutions-components/p-b1bd3028.entry.js +0 -6
- package/dist/solutions-components/p-e2270562.entry.js +0 -6
- package/dist/solutions-components/p-e90c0e26.entry.js +0 -6
@@ -24,6 +24,60 @@ import { loadModules } from "../../utils/loadModules";
|
|
24
24
|
import { getAllLayers, getAllTables, getFeatureLayerView, getLayerOrTable, getMapLayerHash, highlightFeatures } from "../../utils/mapViewUtils";
|
25
25
|
import { queryFeaturesByID } from "../../utils/queryUtils";
|
26
26
|
export class CrowdsourceReporter {
|
27
|
+
constructor() {
|
28
|
+
this.center = undefined;
|
29
|
+
this.commentButtonText = undefined;
|
30
|
+
this.commentSubmittedMessage = undefined;
|
31
|
+
this.defaultWebmap = "";
|
32
|
+
this.description = undefined;
|
33
|
+
this.enableAnonymousAccess = undefined;
|
34
|
+
this.enableAnonymousComments = undefined;
|
35
|
+
this.enableComments = undefined;
|
36
|
+
this.enableHome = true;
|
37
|
+
this.enableLogin = undefined;
|
38
|
+
this.enableNewReports = undefined;
|
39
|
+
this.enableSearch = true;
|
40
|
+
this.enableZoom = true;
|
41
|
+
this.isMobile = undefined;
|
42
|
+
this.layerExpressions = [];
|
43
|
+
this.layerId = undefined;
|
44
|
+
this.level = undefined;
|
45
|
+
this.locale = undefined;
|
46
|
+
this.loginTitle = undefined;
|
47
|
+
this.mapInfos = [];
|
48
|
+
this.mapView = undefined;
|
49
|
+
this.objectId = undefined;
|
50
|
+
this.reportButtonText = undefined;
|
51
|
+
this.reportingOptions = undefined;
|
52
|
+
this.reportsHeader = undefined;
|
53
|
+
this.reportSubmittedMessage = undefined;
|
54
|
+
this.searchConfiguration = undefined;
|
55
|
+
this.showComments = undefined;
|
56
|
+
this.showUserImageInCommentsList = false;
|
57
|
+
this.showFeatureSymbol = false;
|
58
|
+
this.showMyReportsOnly = false;
|
59
|
+
this.submitNewReportsMessage = undefined;
|
60
|
+
this.theme = "light";
|
61
|
+
this.zoomToScale = undefined;
|
62
|
+
this.floorLevel = undefined;
|
63
|
+
this.showFullCommentTitle = true;
|
64
|
+
this._featureCreationFailedErrorMsg = undefined;
|
65
|
+
this._filterActive = false;
|
66
|
+
this._flowItems = [];
|
67
|
+
this._hasValidLayers = false;
|
68
|
+
this._mapInfo = undefined;
|
69
|
+
this._reportSubmitted = false;
|
70
|
+
this._selectedLayerName = undefined;
|
71
|
+
this._showSubmitCancelButton = false;
|
72
|
+
this._showLoadingIndicator = false;
|
73
|
+
this._sidePanelCollapsed = false;
|
74
|
+
this._translations = undefined;
|
75
|
+
this._updatedProgressBarStatus = 25;
|
76
|
+
this._updatedSorting = undefined;
|
77
|
+
this._updatedSortOption = "sortNewest";
|
78
|
+
this._commentSubmitted = false;
|
79
|
+
this._addingCommentFailed = false;
|
80
|
+
}
|
27
81
|
//--------------------------------------------------------------------------
|
28
82
|
//
|
29
83
|
// Host element access
|
@@ -32,221 +86,6 @@ export class CrowdsourceReporter {
|
|
32
86
|
el;
|
33
87
|
//--------------------------------------------------------------------------
|
34
88
|
//
|
35
|
-
// Properties (public)
|
36
|
-
//
|
37
|
-
//--------------------------------------------------------------------------
|
38
|
-
/**
|
39
|
-
* string: Semicolon delimited numbers that will be used as the maps center point from URL params
|
40
|
-
*/
|
41
|
-
center;
|
42
|
-
/**
|
43
|
-
* string: User configurable text to display for the comment button
|
44
|
-
*/
|
45
|
-
commentButtonText;
|
46
|
-
/**
|
47
|
-
* string: User configurable nessage to display when a comment is submitted
|
48
|
-
*/
|
49
|
-
commentSubmittedMessage;
|
50
|
-
/**
|
51
|
-
* string: Item ID of the web map that should be selected by default
|
52
|
-
*/
|
53
|
-
defaultWebmap = "";
|
54
|
-
/**
|
55
|
-
* string: The text that will display under the title on the landing page
|
56
|
-
*/
|
57
|
-
description;
|
58
|
-
/**
|
59
|
-
* boolean: When true the anonymous users will be allowed to submit reports and comments
|
60
|
-
*/
|
61
|
-
enableAnonymousAccess;
|
62
|
-
/**
|
63
|
-
* boolean: When true the anonymous users will be allowed to submit comments
|
64
|
-
*/
|
65
|
-
enableAnonymousComments;
|
66
|
-
/**
|
67
|
-
* boolean: When true the user will be allowed to submit comments
|
68
|
-
*/
|
69
|
-
enableComments;
|
70
|
-
/**
|
71
|
-
* boolean: when true the home widget will be available
|
72
|
-
*/
|
73
|
-
enableHome = true;
|
74
|
-
/**
|
75
|
-
* boolean: When true the user will be provided a login page
|
76
|
-
*/
|
77
|
-
enableLogin;
|
78
|
-
/**
|
79
|
-
* boolean: When true the user will be allowed to submit new reports
|
80
|
-
*/
|
81
|
-
enableNewReports;
|
82
|
-
/**
|
83
|
-
* boolean: when true the search widget will be available
|
84
|
-
*/
|
85
|
-
enableSearch = true;
|
86
|
-
/**
|
87
|
-
* boolean: when true the zoom widget will be available
|
88
|
-
*/
|
89
|
-
enableZoom = true;
|
90
|
-
/**
|
91
|
-
* boolean: When true the application will be in mobile mode, controls the mobile or desktop view
|
92
|
-
*/
|
93
|
-
isMobile;
|
94
|
-
/**
|
95
|
-
* ILayerExpression[]: Array of layer expressions for layers (filter configuration)
|
96
|
-
*/
|
97
|
-
layerExpressions = [];
|
98
|
-
/**
|
99
|
-
* string: Layer id of the feature from URL params
|
100
|
-
*/
|
101
|
-
layerId;
|
102
|
-
/**
|
103
|
-
* string: Id of the zoom level from URL params
|
104
|
-
*/
|
105
|
-
level;
|
106
|
-
/**
|
107
|
-
* string: Locale to use for translation of stings in the UI
|
108
|
-
*/
|
109
|
-
locale;
|
110
|
-
/**
|
111
|
-
* string: The text that will display at the top of the landing page
|
112
|
-
*/
|
113
|
-
loginTitle;
|
114
|
-
/**
|
115
|
-
* IMapInfo[]: array of map infos (name and id)
|
116
|
-
*/
|
117
|
-
mapInfos = [];
|
118
|
-
/**
|
119
|
-
* esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
|
120
|
-
*/
|
121
|
-
mapView;
|
122
|
-
/**
|
123
|
-
* string: Object id of the feature from URL params
|
124
|
-
*/
|
125
|
-
objectId;
|
126
|
-
/**
|
127
|
-
* string: The word(s) to display in the reports submit button
|
128
|
-
*/
|
129
|
-
reportButtonText;
|
130
|
-
/**
|
131
|
-
* IReportingOptions: Key options for reporting
|
132
|
-
*/
|
133
|
-
reportingOptions;
|
134
|
-
/**
|
135
|
-
* string: The word(s) to display in the reports header
|
136
|
-
*/
|
137
|
-
reportsHeader;
|
138
|
-
/**
|
139
|
-
* string: The message to display when the report has been submitted
|
140
|
-
*/
|
141
|
-
reportSubmittedMessage;
|
142
|
-
/**
|
143
|
-
* ISearchConfiguration: Configuration details for the Search widget
|
144
|
-
*/
|
145
|
-
searchConfiguration;
|
146
|
-
/**
|
147
|
-
* boolean: When true the comments from all users will be visible
|
148
|
-
*/
|
149
|
-
showComments;
|
150
|
-
/**
|
151
|
-
* boolean: When true the profile image of the comment creator will be shown in the comments list
|
152
|
-
*/
|
153
|
-
showUserImageInCommentsList = false;
|
154
|
-
/**
|
155
|
-
* boolean: When true the feature symbology of the feature will shown in the features list
|
156
|
-
*/
|
157
|
-
showFeatureSymbol = false;
|
158
|
-
/**
|
159
|
-
* boolean: To show only those features which are created by the logged in user
|
160
|
-
*/
|
161
|
-
showMyReportsOnly = false;
|
162
|
-
/**
|
163
|
-
* theme: "light" | "dark" theme to be used
|
164
|
-
*/
|
165
|
-
theme = "light";
|
166
|
-
/**
|
167
|
-
* number: default scale to zoom to when zooming to a single point feature
|
168
|
-
*/
|
169
|
-
zoomToScale;
|
170
|
-
/**
|
171
|
-
* string: selected floor level
|
172
|
-
*/
|
173
|
-
floorLevel;
|
174
|
-
/**
|
175
|
-
* boolean: When false comment will shown in single line in the comments list
|
176
|
-
*/
|
177
|
-
showFullCommentTitle = true;
|
178
|
-
//--------------------------------------------------------------------------
|
179
|
-
//
|
180
|
-
// State (internal)
|
181
|
-
//
|
182
|
-
//--------------------------------------------------------------------------
|
183
|
-
/**
|
184
|
-
* string: Error message when feature creation fails
|
185
|
-
*/
|
186
|
-
_featureCreationFailedErrorMsg;
|
187
|
-
/**
|
188
|
-
* boolean: When true an indicator will be shown on the action
|
189
|
-
*/
|
190
|
-
_filterActive = false;
|
191
|
-
/**
|
192
|
-
* string[]: Reporter flow items list
|
193
|
-
*/
|
194
|
-
_flowItems = [];
|
195
|
-
/**
|
196
|
-
* boolean: Will be true when has valid reporting layers (This will be used to show the create report button on layer list)
|
197
|
-
*/
|
198
|
-
_hasValidLayers = false;
|
199
|
-
/**
|
200
|
-
* IMapInfo: The current map info stores configuration details
|
201
|
-
*/
|
202
|
-
_mapInfo;
|
203
|
-
/**
|
204
|
-
* boolean: When true show the success message in the panel
|
205
|
-
*/
|
206
|
-
_reportSubmitted = false;
|
207
|
-
/**
|
208
|
-
* string: The selected feature layer's name from the layer's list
|
209
|
-
*/
|
210
|
-
_selectedLayerName;
|
211
|
-
/**
|
212
|
-
* boolean: When true show the submit and cancel button
|
213
|
-
*/
|
214
|
-
_showSubmitCancelButton = false;
|
215
|
-
/**
|
216
|
-
* boolean: show loading indicator in the reporter component
|
217
|
-
*/
|
218
|
-
_showLoadingIndicator = false;
|
219
|
-
/**
|
220
|
-
* boolean: Controls the state for panel in mobile view
|
221
|
-
*/
|
222
|
-
_sidePanelCollapsed = false;
|
223
|
-
/**
|
224
|
-
* Contains the translations for this component.
|
225
|
-
* All UI strings should be defined here.
|
226
|
-
*/
|
227
|
-
_translations;
|
228
|
-
/**
|
229
|
-
* number: Show the updated progress bar status
|
230
|
-
*/
|
231
|
-
_updatedProgressBarStatus = 25;
|
232
|
-
/**
|
233
|
-
* ISortingInfo: Sort the feature list depending on the sort field and order
|
234
|
-
*/
|
235
|
-
_updatedSorting;
|
236
|
-
/**
|
237
|
-
* string: Selected sort option
|
238
|
-
*/
|
239
|
-
_updatedSortOption = "sortNewest";
|
240
|
-
/**
|
241
|
-
* boolean: When true show the success message in the panel
|
242
|
-
*/
|
243
|
-
_commentSubmitted = false;
|
244
|
-
/**
|
245
|
-
* string: Error message when feature creation fails
|
246
|
-
*/
|
247
|
-
_addingCommentFailed = false;
|
248
|
-
//--------------------------------------------------------------------------
|
249
|
-
//
|
250
89
|
// Properties (protected)
|
251
90
|
//
|
252
91
|
//--------------------------------------------------------------------------
|
@@ -541,7 +380,7 @@ export class CrowdsourceReporter {
|
|
541
380
|
*/
|
542
381
|
render() {
|
543
382
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
544
|
-
return (h(Host, { key: '
|
383
|
+
return (h(Host, { key: 'b97883be773d948b75e6df1be453cde018a0dba1' }, this._reportSubmitted && h("calcite-alert", { key: '5fd17c13a0d4dc3c7fed1bb253e9196b83c20e1d', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '5c7a00cb3eaaaeb3a0501324c10b407746ecca46', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: 'd83c690d60c2e6f12a5ec356c5ae67185edc6a1e', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: '9cbac1cf8698f1f918004764e4e43c25af766e4a', slot: "title" }, this._translations.error), h("div", { key: 'b4dbe07b4af7ab6c543596c6a3374b785fac4c7e', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && h("calcite-alert", { key: 'cde843955c6538ea857a0a187c995062efd777e7', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '86e3d820aa0d4362c07470bd60d8f0efd0614bc2', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && h("calcite-alert", { key: 'a0bdeec1bb3a33f3bfa938c0a1f4e631c6a76399', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, h("div", { key: 'b161d8e42a078d961ec4e42888d26f4314e9d5a4', slot: "title" }, this._translations.error), h("div", { key: 'cf3908f91448dfbb7cf6ec78b413eaa3327372be', slot: "message" }, this._translations.addingCommentFailedMsg)), h("div", { key: '42e2c8abaf43d6a587729229347efb2836827b98' }, h("calcite-shell", { key: '9e3174a699c37be8f20f4609f52c94ecb95d599f', "content-behind": true }, this._getReporter()))));
|
545
384
|
}
|
546
385
|
//--------------------------------------------------------------------------
|
547
386
|
//
|
@@ -695,7 +534,7 @@ export class CrowdsourceReporter {
|
|
695
534
|
* @protected
|
696
535
|
*/
|
697
536
|
getFeatureCreateFlowItem() {
|
698
|
-
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, onCalciteFlowItemBack: this.backFromCreateFeaturePanel.bind(this), selected: this._flowItems[this._flowItems.length - 1] === "feature-create" }, this._showSubmitCancelButton && h("div", { class: "width-full", slot: "footer" }, h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.onCreateFeatureSubmitButtonClick.bind(this), width: "full" }, this._translations.submit), h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromCreateFeaturePanel.bind(this), width: "full" }, this._translations.cancel)), h("calcite-panel", { "full-height": true, "full-width": true }, h("div", { class: "progress-bar" }, h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), h("create-feature", { customizeSubmit: true, enableSearch: true, floorLevel: this.floorLevel, formElements: this._formElements.find(elm => elm.id === this._selectedLayerId), isMobile: this.isMobile, locale: this.locale, mapView: this.mapView, onDrawComplete: this.onFormReady.bind(this), onEditingAttachment: this.showSubmitCancelButton.bind(this), onFail: this.createFeatureFailed.bind(this), onModeChanged: this.backFromCreateFeaturePanel.bind(this), onProgressStatus: this.updatedProgressStatus.bind(this), onSuccess: this.onReportSubmitted.bind(this), ref: el => this._createFeature = el, searchConfiguration: this.searchConfiguration, selectedLayerId: this._selectedLayerId }))));
|
537
|
+
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, onCalciteFlowItemBack: this.backFromCreateFeaturePanel.bind(this), selected: this._flowItems[this._flowItems.length - 1] === "feature-create" }, this._showSubmitCancelButton && h("div", { class: "width-full", slot: "footer" }, h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.onCreateFeatureSubmitButtonClick.bind(this), width: "full" }, this._translations.submit), h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromCreateFeaturePanel.bind(this), width: "full" }, this._translations.cancel)), h("calcite-panel", { "full-height": true, "full-width": true }, h("div", { class: "progress-bar" }, h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), h("create-feature", { customizeSubmit: true, enableSearch: true, floorLevel: this.floorLevel, formElements: this._formElements.find(elm => elm.id === this._selectedLayerId), isMobile: this.isMobile, locale: this.locale, mapView: this.mapView, onDrawComplete: this.onFormReady.bind(this), onEditingAttachment: this.showSubmitCancelButton.bind(this), onFail: this.createFeatureFailed.bind(this), onModeChanged: this.backFromCreateFeaturePanel.bind(this), onProgressStatus: this.updatedProgressStatus.bind(this), onSuccess: this.onReportSubmitted.bind(this), ref: el => this._createFeature = el, searchConfiguration: this.searchConfiguration, selectedLayerId: this._selectedLayerId, submitNewReportsMessage: this.submitNewReportsMessage }))));
|
699
538
|
}
|
700
539
|
/**
|
701
540
|
* Update the progress bar status when editor panel changes
|
@@ -2155,6 +1994,25 @@ export class CrowdsourceReporter {
|
|
2155
1994
|
"reflect": false,
|
2156
1995
|
"defaultValue": "false"
|
2157
1996
|
},
|
1997
|
+
"submitNewReportsMessage": {
|
1998
|
+
"type": "string",
|
1999
|
+
"mutable": false,
|
2000
|
+
"complexType": {
|
2001
|
+
"original": "string",
|
2002
|
+
"resolved": "string",
|
2003
|
+
"references": {}
|
2004
|
+
},
|
2005
|
+
"required": false,
|
2006
|
+
"optional": false,
|
2007
|
+
"docs": {
|
2008
|
+
"tags": [],
|
2009
|
+
"text": "string: Text to be displayed that will allow user to know they can submit new reports"
|
2010
|
+
},
|
2011
|
+
"getter": false,
|
2012
|
+
"setter": false,
|
2013
|
+
"attribute": "submit-new-reports-message",
|
2014
|
+
"reflect": false
|
2015
|
+
},
|
2158
2016
|
"theme": {
|
2159
2017
|
"type": "string",
|
2160
2018
|
"mutable": false,
|
@@ -21,6 +21,19 @@
|
|
21
21
|
import { Host, h } from "@stencil/core";
|
22
22
|
import { getLocaleComponentStrings } from "../../utils/locale";
|
23
23
|
export class DeleteButton {
|
24
|
+
constructor() {
|
25
|
+
this.deleteDialog = undefined;
|
26
|
+
this.buttonType = "button";
|
27
|
+
this.disabled = false;
|
28
|
+
this.icon = undefined;
|
29
|
+
this.ids = [];
|
30
|
+
this.layer = undefined;
|
31
|
+
this.locale = undefined;
|
32
|
+
this._confirmDelete = false;
|
33
|
+
this._deleteEndabled = false;
|
34
|
+
this._supportsDelete = undefined;
|
35
|
+
this._translations = undefined;
|
36
|
+
}
|
24
37
|
//--------------------------------------------------------------------------
|
25
38
|
//
|
26
39
|
// Host element access
|
@@ -29,61 +42,6 @@ export class DeleteButton {
|
|
29
42
|
el;
|
30
43
|
//--------------------------------------------------------------------------
|
31
44
|
//
|
32
|
-
// Properties (public)
|
33
|
-
//
|
34
|
-
//--------------------------------------------------------------------------
|
35
|
-
/**
|
36
|
-
* calcite-dialog: Use this prop when using the button within a parent like a dropdown that would constrain the dialog and that is not desired
|
37
|
-
*/
|
38
|
-
deleteDialog;
|
39
|
-
/**
|
40
|
-
* ButtonType (button | action): Support usage as action or button
|
41
|
-
*/
|
42
|
-
buttonType = "button";
|
43
|
-
/**
|
44
|
-
* boolean: This overrides internal enable/disable logic that is based on checks if the layer supports delete
|
45
|
-
*/
|
46
|
-
disabled = false;
|
47
|
-
/**
|
48
|
-
* string: The icon to display in the component
|
49
|
-
*/
|
50
|
-
icon;
|
51
|
-
/**
|
52
|
-
* number[]: The ids that would be deleted
|
53
|
-
*/
|
54
|
-
ids = [];
|
55
|
-
/**
|
56
|
-
* esri/views/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html
|
57
|
-
*/
|
58
|
-
layer;
|
59
|
-
/**
|
60
|
-
* string: Locale to use for translation of stings in the UI
|
61
|
-
*/
|
62
|
-
locale;
|
63
|
-
//--------------------------------------------------------------------------
|
64
|
-
//
|
65
|
-
// State (internal)
|
66
|
-
//
|
67
|
-
//--------------------------------------------------------------------------
|
68
|
-
/**
|
69
|
-
* boolean: When true the user will be asked to confirm the delete operation
|
70
|
-
*/
|
71
|
-
_confirmDelete = false;
|
72
|
-
/**
|
73
|
-
* boolean: When true the user can delete the current features
|
74
|
-
*/
|
75
|
-
_deleteEndabled = false;
|
76
|
-
/**
|
77
|
-
* boolean: When true the layer supports delete and a button will be returned
|
78
|
-
*/
|
79
|
-
_supportsDelete;
|
80
|
-
/**
|
81
|
-
* Contains the translations for this component.
|
82
|
-
* All UI strings should be defined here.
|
83
|
-
*/
|
84
|
-
_translations;
|
85
|
-
//--------------------------------------------------------------------------
|
86
|
-
//
|
87
45
|
// Properties (protected)
|
88
46
|
//
|
89
47
|
//--------------------------------------------------------------------------
|
@@ -21,6 +21,14 @@
|
|
21
21
|
import { Host, h } from "@stencil/core";
|
22
22
|
import { getLocaleComponentStrings } from "../../utils/locale";
|
23
23
|
export class DeleteDialog {
|
24
|
+
constructor() {
|
25
|
+
this.ids = [];
|
26
|
+
this.layer = undefined;
|
27
|
+
this.locale = undefined;
|
28
|
+
this.open = false;
|
29
|
+
this._isDeleting = false;
|
30
|
+
this._translations = undefined;
|
31
|
+
}
|
24
32
|
//--------------------------------------------------------------------------
|
25
33
|
//
|
26
34
|
// Host element access
|
@@ -29,41 +37,6 @@ export class DeleteDialog {
|
|
29
37
|
el;
|
30
38
|
//--------------------------------------------------------------------------
|
31
39
|
//
|
32
|
-
// Properties (public)
|
33
|
-
//
|
34
|
-
//--------------------------------------------------------------------------
|
35
|
-
/**
|
36
|
-
* number[]: The ids that would be deleted
|
37
|
-
*/
|
38
|
-
ids = [];
|
39
|
-
/**
|
40
|
-
* esri/views/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html
|
41
|
-
*/
|
42
|
-
layer;
|
43
|
-
/**
|
44
|
-
* string: Locale to use for translation of stings in the UI
|
45
|
-
*/
|
46
|
-
locale;
|
47
|
-
/**
|
48
|
-
* boolean: When true the delete dialog will be displayed
|
49
|
-
*/
|
50
|
-
open = false;
|
51
|
-
//--------------------------------------------------------------------------
|
52
|
-
//
|
53
|
-
// State (internal)
|
54
|
-
//
|
55
|
-
//--------------------------------------------------------------------------
|
56
|
-
/**
|
57
|
-
* boolean: When true a loading indicator will be shown in the delete button
|
58
|
-
*/
|
59
|
-
_isDeleting = false;
|
60
|
-
/**
|
61
|
-
* Contains the translations for this component.
|
62
|
-
* All UI strings should be defined here.
|
63
|
-
*/
|
64
|
-
_translations;
|
65
|
-
//--------------------------------------------------------------------------
|
66
|
-
//
|
67
40
|
// Properties (protected)
|
68
41
|
//
|
69
42
|
//--------------------------------------------------------------------------
|
@@ -23,6 +23,16 @@ import { loadModules } from "../../utils/loadModules";
|
|
23
23
|
import { getLocaleComponentStrings } from "../../utils/locale";
|
24
24
|
import { getAllLayers } from "../../utils/mapViewUtils";
|
25
25
|
export class EditCard {
|
26
|
+
constructor() {
|
27
|
+
this.enableEditGeometry = false;
|
28
|
+
this.graphics = undefined;
|
29
|
+
this.locale = undefined;
|
30
|
+
this.mapView = undefined;
|
31
|
+
this.open = false;
|
32
|
+
this.graphicIndex = 0;
|
33
|
+
this._editorLoading = false;
|
34
|
+
this._translations = undefined;
|
35
|
+
}
|
26
36
|
//--------------------------------------------------------------------------
|
27
37
|
//
|
28
38
|
// Host element access
|
@@ -31,49 +41,6 @@ export class EditCard {
|
|
31
41
|
el;
|
32
42
|
//--------------------------------------------------------------------------
|
33
43
|
//
|
34
|
-
// Properties (public)
|
35
|
-
//
|
36
|
-
//--------------------------------------------------------------------------
|
37
|
-
/**
|
38
|
-
* When true the geometry of the current feature will be editable
|
39
|
-
*/
|
40
|
-
enableEditGeometry = false;
|
41
|
-
/**
|
42
|
-
* esri/Graphic[]: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html
|
43
|
-
*/
|
44
|
-
graphics;
|
45
|
-
/**
|
46
|
-
* string: Locale to use for translation of stings in the UI
|
47
|
-
*/
|
48
|
-
locale;
|
49
|
-
/**
|
50
|
-
* esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
|
51
|
-
*/
|
52
|
-
mapView;
|
53
|
-
/**
|
54
|
-
* When true the component is displayed
|
55
|
-
*/
|
56
|
-
open = false;
|
57
|
-
/**
|
58
|
-
* The index of the current graphic
|
59
|
-
*/
|
60
|
-
graphicIndex = 0;
|
61
|
-
//--------------------------------------------------------------------------
|
62
|
-
//
|
63
|
-
// State (internal)
|
64
|
-
//
|
65
|
-
//--------------------------------------------------------------------------
|
66
|
-
/**
|
67
|
-
* boolean: When true a loading indicator will be shown while the editor loads
|
68
|
-
*/
|
69
|
-
_editorLoading = false;
|
70
|
-
/**
|
71
|
-
* Contains the translations for this component.
|
72
|
-
* All UI strings should be defined here.
|
73
|
-
*/
|
74
|
-
_translations;
|
75
|
-
//--------------------------------------------------------------------------
|
76
|
-
//
|
77
44
|
// Properties (protected)
|
78
45
|
//
|
79
46
|
//--------------------------------------------------------------------------
|
@@ -22,6 +22,24 @@ import { h } from "@stencil/core";
|
|
22
22
|
import { loadModules } from "../../utils/loadModules";
|
23
23
|
import { getAllTables } from "../../utils/mapViewUtils";
|
24
24
|
export class FeatureDetails {
|
25
|
+
constructor() {
|
26
|
+
this.mapView = undefined;
|
27
|
+
this.graphics = undefined;
|
28
|
+
this.reportingOptions = undefined;
|
29
|
+
this.layerItemsHash = undefined;
|
30
|
+
this.locale = undefined;
|
31
|
+
this.showUserImageInCommentsList = false;
|
32
|
+
this.showFullCommentTitle = true;
|
33
|
+
this._likeFieldAvailable = false;
|
34
|
+
this._likeCount = 0;
|
35
|
+
this._disLikeCount = 0;
|
36
|
+
this._dislikeFieldAvailable = false;
|
37
|
+
this._commentsAvailable = false;
|
38
|
+
this._isLikeBtnClicked = false;
|
39
|
+
this._isDislikeBtnClicked = false;
|
40
|
+
this._relatedFeaturesOIDs = undefined;
|
41
|
+
this._updating = false;
|
42
|
+
}
|
25
43
|
//--------------------------------------------------------------------------
|
26
44
|
//
|
27
45
|
// Host element access
|
@@ -30,80 +48,6 @@ export class FeatureDetails {
|
|
30
48
|
el;
|
31
49
|
//--------------------------------------------------------------------------
|
32
50
|
//
|
33
|
-
// Properties (public)
|
34
|
-
//
|
35
|
-
//--------------------------------------------------------------------------
|
36
|
-
/**
|
37
|
-
* esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
|
38
|
-
*/
|
39
|
-
mapView;
|
40
|
-
/**
|
41
|
-
* esri/Graphic: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html
|
42
|
-
*/
|
43
|
-
graphics;
|
44
|
-
/**
|
45
|
-
* IReportingOptions: Key options for reporting
|
46
|
-
*/
|
47
|
-
reportingOptions;
|
48
|
-
/**
|
49
|
-
* ILayerItemsHash: LayerDetailsHash for each layer in the map
|
50
|
-
*/
|
51
|
-
layerItemsHash;
|
52
|
-
/**
|
53
|
-
* string: Locale to use for translation of stings in the UI
|
54
|
-
*/
|
55
|
-
locale;
|
56
|
-
/**
|
57
|
-
* boolean: When true the profile image of the comment creator will be shown in the comments list
|
58
|
-
*/
|
59
|
-
showUserImageInCommentsList = false;
|
60
|
-
/**
|
61
|
-
* boolean: When false comment will shown in single line in the comments list
|
62
|
-
*/
|
63
|
-
showFullCommentTitle = true;
|
64
|
-
//--------------------------------------------------------------------------
|
65
|
-
//
|
66
|
-
// State (internal)
|
67
|
-
//
|
68
|
-
//--------------------------------------------------------------------------
|
69
|
-
/**
|
70
|
-
* boolean: When true configured like field is available in selected layer
|
71
|
-
*/
|
72
|
-
_likeFieldAvailable = false;
|
73
|
-
/**
|
74
|
-
* number: Increment the liked count for feature when like button is clicked
|
75
|
-
*/
|
76
|
-
_likeCount = 0;
|
77
|
-
/**
|
78
|
-
* number: Decrement the disliked count for feature when dislike button is clicked
|
79
|
-
*/
|
80
|
-
_disLikeCount = 0;
|
81
|
-
/**
|
82
|
-
* boolean: When true configured dislike field is available in selected layer
|
83
|
-
*/
|
84
|
-
_dislikeFieldAvailable = false;
|
85
|
-
/**
|
86
|
-
* boolean: When true comments are configured and its table is available in selected layer
|
87
|
-
*/
|
88
|
-
_commentsAvailable = false;
|
89
|
-
/**
|
90
|
-
* boolean: When true button will get brand color
|
91
|
-
*/
|
92
|
-
_isLikeBtnClicked = false;
|
93
|
-
/**
|
94
|
-
* boolean: When true button will get brand color
|
95
|
-
*/
|
96
|
-
_isDislikeBtnClicked = false;
|
97
|
-
/**
|
98
|
-
* string[]: objects ids of the related features (comments)
|
99
|
-
*/
|
100
|
-
_relatedFeaturesOIDs;
|
101
|
-
/**
|
102
|
-
* boolean: When performing any operations set this to true (This will be used to show loading on like/dislike buttons)
|
103
|
-
*/
|
104
|
-
_updating = false;
|
105
|
-
//--------------------------------------------------------------------------
|
106
|
-
//
|
107
51
|
// Properties (protected)
|
108
52
|
//
|
109
53
|
//--------------------------------------------------------------------------
|