@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
|
@@ -25,6 +25,19 @@ import { queryFeaturesByGeometry } from "../../utils/queryUtils";
|
|
|
25
25
|
import state from "../../utils/publicNotificationStore";
|
|
26
26
|
import { getLocaleComponentStrings } from "../../utils/locale";
|
|
27
27
|
export class RefineSelection {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.addresseeLayer = undefined;
|
|
30
|
+
this.enabledLayerIds = [];
|
|
31
|
+
this.locale = undefined;
|
|
32
|
+
this.mapView = undefined;
|
|
33
|
+
this.selectionSets = [];
|
|
34
|
+
this.sketchLineSymbol = undefined;
|
|
35
|
+
this.sketchPointSymbol = undefined;
|
|
36
|
+
this.sketchPolygonSymbol = undefined;
|
|
37
|
+
this._translations = undefined;
|
|
38
|
+
this._selectionMode = ESelectionMode.ADD;
|
|
39
|
+
this._refineLayer = undefined;
|
|
40
|
+
}
|
|
28
41
|
//--------------------------------------------------------------------------
|
|
29
42
|
//
|
|
30
43
|
// Host element access
|
|
@@ -33,65 +46,6 @@ export class RefineSelection {
|
|
|
33
46
|
el;
|
|
34
47
|
//--------------------------------------------------------------------------
|
|
35
48
|
//
|
|
36
|
-
// Properties (public)
|
|
37
|
-
//
|
|
38
|
-
//--------------------------------------------------------------------------
|
|
39
|
-
/**
|
|
40
|
-
* esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html
|
|
41
|
-
*/
|
|
42
|
-
addresseeLayer;
|
|
43
|
-
/**
|
|
44
|
-
* string[]: Optional list of enabled layer ids
|
|
45
|
-
* If empty all layers will be available
|
|
46
|
-
*/
|
|
47
|
-
enabledLayerIds = [];
|
|
48
|
-
/**
|
|
49
|
-
* string: The current user locale.
|
|
50
|
-
*/
|
|
51
|
-
locale;
|
|
52
|
-
/**
|
|
53
|
-
* esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
|
|
54
|
-
*/
|
|
55
|
-
mapView;
|
|
56
|
-
/**
|
|
57
|
-
* utils/interfaces/ISelectionSet: An array of user defined selection sets
|
|
58
|
-
*/
|
|
59
|
-
selectionSets = [];
|
|
60
|
-
/**
|
|
61
|
-
* esri/symbols/SimpleLineSymbol | JSON representation : https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html
|
|
62
|
-
*
|
|
63
|
-
*/
|
|
64
|
-
sketchLineSymbol;
|
|
65
|
-
/**
|
|
66
|
-
* esri/symbols/SimpleMarkerSymbol | JSON representation: https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html
|
|
67
|
-
*
|
|
68
|
-
*/
|
|
69
|
-
sketchPointSymbol;
|
|
70
|
-
/**
|
|
71
|
-
* esri/symbols/SimpleFillSymbol | JSON representation: https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
sketchPolygonSymbol;
|
|
75
|
-
//--------------------------------------------------------------------------
|
|
76
|
-
//
|
|
77
|
-
// State (internal)
|
|
78
|
-
//
|
|
79
|
-
//--------------------------------------------------------------------------
|
|
80
|
-
/**
|
|
81
|
-
* Contains the translations for this component.
|
|
82
|
-
* All UI strings should be defined here.
|
|
83
|
-
*/
|
|
84
|
-
_translations;
|
|
85
|
-
/**
|
|
86
|
-
* The current selection mode ADD or REMOVE
|
|
87
|
-
*/
|
|
88
|
-
_selectionMode = ESelectionMode.ADD;
|
|
89
|
-
/**
|
|
90
|
-
* The current layer to refine
|
|
91
|
-
*/
|
|
92
|
-
_refineLayer;
|
|
93
|
-
//--------------------------------------------------------------------------
|
|
94
|
-
//
|
|
95
49
|
// Properties (protected)
|
|
96
50
|
//
|
|
97
51
|
//--------------------------------------------------------------------------
|
|
@@ -30,34 +30,12 @@ export class SolutionConfiguration {
|
|
|
30
30
|
//
|
|
31
31
|
//--------------------------------------------------------------------------
|
|
32
32
|
el;
|
|
33
|
-
//--------------------------------------------------------------------------
|
|
34
|
-
//
|
|
35
|
-
// Properties (public)
|
|
36
|
-
//
|
|
37
|
-
//--------------------------------------------------------------------------
|
|
38
|
-
/**
|
|
39
|
-
* Credentials for requests, which can be a serialized UserSession
|
|
40
|
-
*/
|
|
41
|
-
authentication = new UserSession({});
|
|
42
|
-
/**
|
|
43
|
-
* string: Locale to use for translation of stings in the UI
|
|
44
|
-
*/
|
|
45
|
-
locale;
|
|
46
|
-
serializedAuthentication = "";
|
|
47
33
|
async serializedAuthenticationWatchHandler() {
|
|
48
34
|
this.authentication = this.serializedAuthentication ? UserSession.deserialize(this.serializedAuthentication) : new UserSession({});
|
|
49
35
|
}
|
|
50
|
-
/**
|
|
51
|
-
* Contains the current solution item id
|
|
52
|
-
*/
|
|
53
|
-
solutionItemId = "";
|
|
54
36
|
async valueWatchHandler() {
|
|
55
37
|
await this._loadSolution(this.solutionItemId);
|
|
56
38
|
}
|
|
57
|
-
/**
|
|
58
|
-
* Used to show/hide loading indicator
|
|
59
|
-
*/
|
|
60
|
-
showLoading = false;
|
|
61
39
|
//--------------------------------------------------------------------------
|
|
62
40
|
//
|
|
63
41
|
// Watch handlers
|
|
@@ -77,6 +55,19 @@ export class SolutionConfiguration {
|
|
|
77
55
|
//
|
|
78
56
|
//--------------------------------------------------------------------------
|
|
79
57
|
constructor() {
|
|
58
|
+
this.authentication = new UserSession({});
|
|
59
|
+
this.locale = undefined;
|
|
60
|
+
this.serializedAuthentication = "";
|
|
61
|
+
this.solutionItemId = "";
|
|
62
|
+
this.showLoading = false;
|
|
63
|
+
this._currentEditItemId = "";
|
|
64
|
+
this._organizationVariables = "";
|
|
65
|
+
this._solutionContentsComponent = undefined;
|
|
66
|
+
this._solutionIsLoaded = false;
|
|
67
|
+
this._solutionVariables = "";
|
|
68
|
+
this._templateHierarchy = [];
|
|
69
|
+
this._translations = undefined;
|
|
70
|
+
this._treeOpen = true;
|
|
80
71
|
if (this.serializedAuthentication) {
|
|
81
72
|
this.authentication = UserSession.deserialize(this.serializedAuthentication);
|
|
82
73
|
}
|
|
@@ -116,32 +107,6 @@ export class SolutionConfiguration {
|
|
|
116
107
|
? h("calcite-tab", { class: "config-tab" }, h("div", { class: "config-solution" }, h("solution-spatial-ref", { enableDefault: !!spatialReferenceInfo.default, enabled: spatialReferenceInfo?.enabled, featureServices: state.getStoreInfo("featureServices").map(fs => fs.name), id: "configure-solution-spatial-ref", key: `${this.solutionItemId}-spatial-ref`, locale: this.locale })))
|
|
117
108
|
: null)))));
|
|
118
109
|
}
|
|
119
|
-
//--------------------------------------------------------------------------
|
|
120
|
-
//
|
|
121
|
-
// Properties (protected)
|
|
122
|
-
//
|
|
123
|
-
//--------------------------------------------------------------------------
|
|
124
|
-
/**
|
|
125
|
-
* Contains the current item we are working with
|
|
126
|
-
*/
|
|
127
|
-
_currentEditItemId = "";
|
|
128
|
-
_organizationVariables = "";
|
|
129
|
-
_solutionContentsComponent;
|
|
130
|
-
_solutionIsLoaded = false;
|
|
131
|
-
_solutionVariables = "";
|
|
132
|
-
/**
|
|
133
|
-
* Contains the hierarchy of template items for the current solution.
|
|
134
|
-
*/
|
|
135
|
-
_templateHierarchy = [];
|
|
136
|
-
/**
|
|
137
|
-
* Contains the _translations for this component.
|
|
138
|
-
* All UI strings should be defined here.
|
|
139
|
-
*/
|
|
140
|
-
_translations;
|
|
141
|
-
/**
|
|
142
|
-
* Used to show/hide the content tree
|
|
143
|
-
*/
|
|
144
|
-
_treeOpen = true;
|
|
145
110
|
_solutionStoreHasChanges = false;
|
|
146
111
|
_solutionEditorHasChanges = false;
|
|
147
112
|
_solutionEditorHasErrors = false;
|
|
@@ -20,25 +20,16 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { Host, h } from "@stencil/core";
|
|
22
22
|
export class SolutionContents {
|
|
23
|
+
constructor() {
|
|
24
|
+
this.selectedItemId = undefined;
|
|
25
|
+
this.templateHierarchy = [];
|
|
26
|
+
}
|
|
23
27
|
//--------------------------------------------------------------------------
|
|
24
28
|
//
|
|
25
29
|
// Host element access
|
|
26
30
|
//
|
|
27
31
|
//--------------------------------------------------------------------------
|
|
28
32
|
el;
|
|
29
|
-
//--------------------------------------------------------------------------
|
|
30
|
-
//
|
|
31
|
-
// Properties (public)
|
|
32
|
-
//
|
|
33
|
-
//--------------------------------------------------------------------------
|
|
34
|
-
/**
|
|
35
|
-
* Contains the current item that is selected.
|
|
36
|
-
*/
|
|
37
|
-
selectedItemId;
|
|
38
|
-
/**
|
|
39
|
-
* Contains the public value for this component.
|
|
40
|
-
*/
|
|
41
|
-
templateHierarchy = [];
|
|
42
33
|
valueWatchHandler(v, oldV) {
|
|
43
34
|
if (v && v !== oldV && Array.isArray(v) && v.length > 0) {
|
|
44
35
|
this._treeItemSelected(v[0].id);
|
|
@@ -22,41 +22,25 @@ import { h, Host } from "@stencil/core";
|
|
|
22
22
|
import state from "../../utils/solution-store";
|
|
23
23
|
import { getLocaleComponentStrings } from "../../utils/locale";
|
|
24
24
|
export class SolutionItem {
|
|
25
|
+
constructor() {
|
|
26
|
+
this.authentication = undefined;
|
|
27
|
+
this.itemId = "";
|
|
28
|
+
this.locale = undefined;
|
|
29
|
+
this.solutionVariables = "";
|
|
30
|
+
this.organizationVariables = "";
|
|
31
|
+
this.itemType = undefined;
|
|
32
|
+
this._translations = undefined;
|
|
33
|
+
}
|
|
25
34
|
//--------------------------------------------------------------------------
|
|
26
35
|
//
|
|
27
36
|
// Host element access
|
|
28
37
|
//
|
|
29
38
|
//--------------------------------------------------------------------------
|
|
30
39
|
el;
|
|
31
|
-
//--------------------------------------------------------------------------
|
|
32
|
-
//
|
|
33
|
-
// Properties (public)
|
|
34
|
-
//
|
|
35
|
-
//--------------------------------------------------------------------------
|
|
36
|
-
/**
|
|
37
|
-
* Credentials for requests
|
|
38
|
-
*/
|
|
39
|
-
authentication;
|
|
40
|
-
/**
|
|
41
|
-
* A template's itemId.
|
|
42
|
-
*/
|
|
43
|
-
itemId = "";
|
|
44
40
|
itemIdWatchHandler() {
|
|
45
41
|
const itemEdit = state.getItemInfo(this.itemId);
|
|
46
42
|
this.itemType = itemEdit.type;
|
|
47
43
|
}
|
|
48
|
-
/**
|
|
49
|
-
* string: Locale to use for translation of stings in the UI
|
|
50
|
-
*/
|
|
51
|
-
locale;
|
|
52
|
-
/**
|
|
53
|
-
* Contains the solution based variables
|
|
54
|
-
*/
|
|
55
|
-
solutionVariables = "";
|
|
56
|
-
/**
|
|
57
|
-
* Contains the organization based variables
|
|
58
|
-
*/
|
|
59
|
-
organizationVariables = "";
|
|
60
44
|
//--------------------------------------------------------------------------
|
|
61
45
|
//
|
|
62
46
|
// Watch handlers
|
|
@@ -89,17 +73,6 @@ export class SolutionItem {
|
|
|
89
73
|
}
|
|
90
74
|
//--------------------------------------------------------------------------
|
|
91
75
|
//
|
|
92
|
-
// Properties (protected)
|
|
93
|
-
//
|
|
94
|
-
//--------------------------------------------------------------------------
|
|
95
|
-
itemType;
|
|
96
|
-
/**
|
|
97
|
-
* Contains the translations for this component.
|
|
98
|
-
* All UI strings should be defined here.
|
|
99
|
-
*/
|
|
100
|
-
_translations;
|
|
101
|
-
//--------------------------------------------------------------------------
|
|
102
|
-
//
|
|
103
76
|
// Event Listeners
|
|
104
77
|
//
|
|
105
78
|
//--------------------------------------------------------------------------
|
|
@@ -21,6 +21,13 @@
|
|
|
21
21
|
import { Host, h } from "@stencil/core";
|
|
22
22
|
import { getLocaleComponentStrings } from "../../utils/locale";
|
|
23
23
|
export class SolutionItemAccordion {
|
|
24
|
+
constructor() {
|
|
25
|
+
this.locale = undefined;
|
|
26
|
+
this.listSelectionMode = "none";
|
|
27
|
+
this.templateInfos = [];
|
|
28
|
+
this._sortedTemplateInfos = [];
|
|
29
|
+
this._translations = undefined;
|
|
30
|
+
}
|
|
24
31
|
//--------------------------------------------------------------------------
|
|
25
32
|
//
|
|
26
33
|
// Host element access
|
|
@@ -29,41 +36,6 @@ export class SolutionItemAccordion {
|
|
|
29
36
|
el;
|
|
30
37
|
//--------------------------------------------------------------------------
|
|
31
38
|
//
|
|
32
|
-
// Properties (public)
|
|
33
|
-
//
|
|
34
|
-
//--------------------------------------------------------------------------
|
|
35
|
-
/**
|
|
36
|
-
* string: Locale to use for translation of stings in the UI
|
|
37
|
-
*/
|
|
38
|
-
locale;
|
|
39
|
-
/**
|
|
40
|
-
* Specifies the selection mode of the item-type lists used in the component, where:
|
|
41
|
-
* "multiple" allows any number of selections,
|
|
42
|
-
* "single" allows only one selection,
|
|
43
|
-
* "single-persist" allows one selection and prevents de-selection, and
|
|
44
|
-
* "none" does not allow any selections (default)
|
|
45
|
-
*/
|
|
46
|
-
listSelectionMode = "none";
|
|
47
|
-
/**
|
|
48
|
-
* ITemplateInfo[]: Collection of template infos
|
|
49
|
-
*/
|
|
50
|
-
templateInfos = [];
|
|
51
|
-
//--------------------------------------------------------------------------
|
|
52
|
-
//
|
|
53
|
-
// State (internal)
|
|
54
|
-
//
|
|
55
|
-
//--------------------------------------------------------------------------
|
|
56
|
-
/**
|
|
57
|
-
* ITemplateInfo[]: Collection of sorted template infos
|
|
58
|
-
*/
|
|
59
|
-
_sortedTemplateInfos = [];
|
|
60
|
-
/**
|
|
61
|
-
* Contains the translations for this component.
|
|
62
|
-
* All UI strings should be defined here.
|
|
63
|
-
*/
|
|
64
|
-
_translations;
|
|
65
|
-
//--------------------------------------------------------------------------
|
|
66
|
-
//
|
|
67
39
|
// Properties (protected)
|
|
68
40
|
//
|
|
69
41
|
//--------------------------------------------------------------------------
|
|
@@ -270,7 +242,7 @@ export class SolutionItemAccordion {
|
|
|
270
242
|
this._deselectOthers(templateInfo.id);
|
|
271
243
|
this.solutionItemSelect.emit({ itemId: templateInfo.id, selected: true });
|
|
272
244
|
}, onMouseEnter: () => this.solutionItemHover.emit({ itemId: templateInfo.id, entering: true }), onMouseLeave: () => this.solutionItemHover.emit({ itemId: templateInfo.id, entering: false }), value: templateInfo.id }, templateInfo.url
|
|
273
|
-
? h("calcite-action", { icon: "launch", onClick: () => window.open(templateInfo.url, "_blank"),
|
|
245
|
+
? h("div", { slot: "actions-end" }, h("calcite-action", { icon: "launch", id: templateInfo.id + "-launch", onClick: () => window.open(templateInfo.url, "_blank"), text: "" }), h("calcite-tooltip", { "overlay-positioning": "fixed", "reference-element": templateInfo.id + "-launch" }, h("span", null, this._translations?.openDetails)))
|
|
274
246
|
: null));
|
|
275
247
|
}
|
|
276
248
|
/**
|
|
@@ -22,6 +22,22 @@ import { h, Host } from "@stencil/core";
|
|
|
22
22
|
import state from "../../utils/solution-store";
|
|
23
23
|
import { getLocaleComponentStrings } from "../../utils/locale";
|
|
24
24
|
export class SolutionItemDetails {
|
|
25
|
+
constructor() {
|
|
26
|
+
this.itemId = "";
|
|
27
|
+
this.locale = undefined;
|
|
28
|
+
this.itemDetails = {
|
|
29
|
+
accessInformation: "",
|
|
30
|
+
description: "",
|
|
31
|
+
licenseInfo: "",
|
|
32
|
+
snippet: "",
|
|
33
|
+
tags: [],
|
|
34
|
+
title: ""
|
|
35
|
+
};
|
|
36
|
+
this.itemEdit = undefined;
|
|
37
|
+
this._translations = undefined;
|
|
38
|
+
this.thumbnail = undefined;
|
|
39
|
+
this.thumbnailContainer = undefined;
|
|
40
|
+
}
|
|
25
41
|
//--------------------------------------------------------------------------
|
|
26
42
|
//
|
|
27
43
|
// Host element access
|
|
@@ -30,19 +46,6 @@ export class SolutionItemDetails {
|
|
|
30
46
|
el;
|
|
31
47
|
//--------------------------------------------------------------------------
|
|
32
48
|
//
|
|
33
|
-
// Properties (public)
|
|
34
|
-
//
|
|
35
|
-
//--------------------------------------------------------------------------
|
|
36
|
-
/**
|
|
37
|
-
* A template's itemId.
|
|
38
|
-
*/
|
|
39
|
-
itemId = "";
|
|
40
|
-
/**
|
|
41
|
-
* string: Locale to use for translation of stings in the UI
|
|
42
|
-
*/
|
|
43
|
-
locale;
|
|
44
|
-
//--------------------------------------------------------------------------
|
|
45
|
-
//
|
|
46
49
|
// Watch handlers
|
|
47
50
|
//
|
|
48
51
|
//--------------------------------------------------------------------------
|
|
@@ -91,33 +94,11 @@ export class SolutionItemDetails {
|
|
|
91
94
|
* Handle to the element for browsing for a file.
|
|
92
95
|
*/
|
|
93
96
|
browseForThumbnail;
|
|
94
|
-
itemDetails = {
|
|
95
|
-
accessInformation: "",
|
|
96
|
-
description: "",
|
|
97
|
-
licenseInfo: "",
|
|
98
|
-
snippet: "",
|
|
99
|
-
tags: [],
|
|
100
|
-
title: ""
|
|
101
|
-
};
|
|
102
|
-
itemEdit;
|
|
103
97
|
itemType;
|
|
104
|
-
/**
|
|
105
|
-
* Contains the translations for this component.
|
|
106
|
-
* All UI strings should be defined here.
|
|
107
|
-
*/
|
|
108
|
-
_translations;
|
|
109
98
|
/**
|
|
110
99
|
* Handle to the snippet character-count feedback.
|
|
111
100
|
*/
|
|
112
101
|
itemSnippetCount;
|
|
113
|
-
/**
|
|
114
|
-
* Handle to the thumbnail image display.
|
|
115
|
-
*/
|
|
116
|
-
thumbnail;
|
|
117
|
-
/**
|
|
118
|
-
* Handle to the thumbnail image container.
|
|
119
|
-
*/
|
|
120
|
-
thumbnailContainer;
|
|
121
102
|
//--------------------------------------------------------------------------
|
|
122
103
|
//
|
|
123
104
|
// Event Listeners
|
|
@@ -20,6 +20,11 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { getAssetPath, h } from "@stencil/core";
|
|
22
22
|
export class SolutionItemIcon {
|
|
23
|
+
constructor() {
|
|
24
|
+
this.isPortal = false;
|
|
25
|
+
this.type = "";
|
|
26
|
+
this.typeKeywords = [];
|
|
27
|
+
}
|
|
23
28
|
//--------------------------------------------------------------------------
|
|
24
29
|
//
|
|
25
30
|
// Host element access
|
|
@@ -28,23 +33,6 @@ export class SolutionItemIcon {
|
|
|
28
33
|
el;
|
|
29
34
|
//--------------------------------------------------------------------------
|
|
30
35
|
//
|
|
31
|
-
// Properties (public)
|
|
32
|
-
//
|
|
33
|
-
//--------------------------------------------------------------------------
|
|
34
|
-
/**
|
|
35
|
-
* Indicate if this is portal
|
|
36
|
-
*/
|
|
37
|
-
isPortal = false;
|
|
38
|
-
/**
|
|
39
|
-
* The type for the item
|
|
40
|
-
*/
|
|
41
|
-
type = "";
|
|
42
|
-
/**
|
|
43
|
-
* The typeKeywords for the item
|
|
44
|
-
*/
|
|
45
|
-
typeKeywords = [];
|
|
46
|
-
//--------------------------------------------------------------------------
|
|
47
|
-
//
|
|
48
36
|
// Lifecycle
|
|
49
37
|
//
|
|
50
38
|
//--------------------------------------------------------------------------
|
|
@@ -22,6 +22,12 @@ import { h, Host } from "@stencil/core";
|
|
|
22
22
|
import state from "../../utils/solution-store";
|
|
23
23
|
import { getLocaleComponentStrings } from "../../utils/locale";
|
|
24
24
|
export class SolutionItemSharing {
|
|
25
|
+
constructor() {
|
|
26
|
+
this.groupId = "";
|
|
27
|
+
this.locale = undefined;
|
|
28
|
+
this._translations = undefined;
|
|
29
|
+
this.sharing = [];
|
|
30
|
+
}
|
|
25
31
|
//--------------------------------------------------------------------------
|
|
26
32
|
//
|
|
27
33
|
// Host element access
|
|
@@ -30,19 +36,6 @@ export class SolutionItemSharing {
|
|
|
30
36
|
el;
|
|
31
37
|
//--------------------------------------------------------------------------
|
|
32
38
|
//
|
|
33
|
-
// Properties (public)
|
|
34
|
-
//
|
|
35
|
-
//--------------------------------------------------------------------------
|
|
36
|
-
/**
|
|
37
|
-
* A template's groupId.
|
|
38
|
-
*/
|
|
39
|
-
groupId = "";
|
|
40
|
-
/**
|
|
41
|
-
* string: Locale to use for translation of stings in the UI
|
|
42
|
-
*/
|
|
43
|
-
locale;
|
|
44
|
-
//--------------------------------------------------------------------------
|
|
45
|
-
//
|
|
46
39
|
// Watch handlers
|
|
47
40
|
//
|
|
48
41
|
//--------------------------------------------------------------------------
|
|
@@ -77,20 +70,6 @@ export class SolutionItemSharing {
|
|
|
77
70
|
}
|
|
78
71
|
//--------------------------------------------------------------------------
|
|
79
72
|
//
|
|
80
|
-
// Properties (protected)
|
|
81
|
-
//
|
|
82
|
-
//--------------------------------------------------------------------------
|
|
83
|
-
/**
|
|
84
|
-
* Contains the translations for this component.
|
|
85
|
-
* All UI strings should be defined here.
|
|
86
|
-
*/
|
|
87
|
-
_translations;
|
|
88
|
-
/**
|
|
89
|
-
* Contains the public sharing for this component.
|
|
90
|
-
*/
|
|
91
|
-
sharing = [];
|
|
92
|
-
//--------------------------------------------------------------------------
|
|
93
|
-
//
|
|
94
73
|
// Event Listeners
|
|
95
74
|
//
|
|
96
75
|
//--------------------------------------------------------------------------
|
|
@@ -21,6 +21,12 @@
|
|
|
21
21
|
import { Host, h } from "@stencil/core";
|
|
22
22
|
import { getLocaleComponentStrings } from "../../utils/locale";
|
|
23
23
|
export class SolutionOrganizationVariables {
|
|
24
|
+
constructor() {
|
|
25
|
+
this.locale = undefined;
|
|
26
|
+
this.value = "";
|
|
27
|
+
this._organizationVariables = [];
|
|
28
|
+
this._translations = undefined;
|
|
29
|
+
}
|
|
24
30
|
//--------------------------------------------------------------------------
|
|
25
31
|
//
|
|
26
32
|
// Host element access
|
|
@@ -29,19 +35,6 @@ export class SolutionOrganizationVariables {
|
|
|
29
35
|
el;
|
|
30
36
|
//--------------------------------------------------------------------------
|
|
31
37
|
//
|
|
32
|
-
// Properties (public)
|
|
33
|
-
//
|
|
34
|
-
//--------------------------------------------------------------------------
|
|
35
|
-
/**
|
|
36
|
-
* string: Locale to use for translation of stings in the UI
|
|
37
|
-
*/
|
|
38
|
-
locale;
|
|
39
|
-
/**
|
|
40
|
-
* Contains the public value for this component.
|
|
41
|
-
*/
|
|
42
|
-
value = "";
|
|
43
|
-
//--------------------------------------------------------------------------
|
|
44
|
-
//
|
|
45
38
|
// Watch handlers
|
|
46
39
|
//
|
|
47
40
|
//--------------------------------------------------------------------------
|
|
@@ -75,17 +68,6 @@ export class SolutionOrganizationVariables {
|
|
|
75
68
|
}
|
|
76
69
|
//--------------------------------------------------------------------------
|
|
77
70
|
//
|
|
78
|
-
// Properties (protected)
|
|
79
|
-
//
|
|
80
|
-
//--------------------------------------------------------------------------
|
|
81
|
-
_organizationVariables = [];
|
|
82
|
-
/**
|
|
83
|
-
* Contains the translations for this component.
|
|
84
|
-
* All UI strings should be defined here.
|
|
85
|
-
*/
|
|
86
|
-
_translations;
|
|
87
|
-
//--------------------------------------------------------------------------
|
|
88
|
-
//
|
|
89
71
|
// Event Listeners
|
|
90
72
|
//
|
|
91
73
|
//--------------------------------------------------------------------------
|
|
@@ -24,6 +24,14 @@ import { EFileType } from "@esri/solution-common";
|
|
|
24
24
|
import state from "../../utils/solution-store";
|
|
25
25
|
import { getLocaleComponentStrings } from "../../utils/locale";
|
|
26
26
|
export class SolutionResourceItem {
|
|
27
|
+
constructor() {
|
|
28
|
+
this.authentication = undefined;
|
|
29
|
+
this.itemId = "";
|
|
30
|
+
this.locale = undefined;
|
|
31
|
+
this.resourceFilePaths = [];
|
|
32
|
+
this.resources = [];
|
|
33
|
+
this._translations = undefined;
|
|
34
|
+
}
|
|
27
35
|
//--------------------------------------------------------------------------
|
|
28
36
|
//
|
|
29
37
|
// Host element access
|
|
@@ -32,24 +40,6 @@ export class SolutionResourceItem {
|
|
|
32
40
|
el;
|
|
33
41
|
//--------------------------------------------------------------------------
|
|
34
42
|
//
|
|
35
|
-
// Properties (public)
|
|
36
|
-
//
|
|
37
|
-
//--------------------------------------------------------------------------
|
|
38
|
-
/**
|
|
39
|
-
* Credentials for requests
|
|
40
|
-
*/
|
|
41
|
-
authentication;
|
|
42
|
-
/**
|
|
43
|
-
* A template's itemId.
|
|
44
|
-
* This is used to get the correct model from a store in the json-editor
|
|
45
|
-
*/
|
|
46
|
-
itemId = "";
|
|
47
|
-
/**
|
|
48
|
-
* string: Locale to use for translation of stings in the UI
|
|
49
|
-
*/
|
|
50
|
-
locale;
|
|
51
|
-
//--------------------------------------------------------------------------
|
|
52
|
-
//
|
|
53
43
|
// Watch handlers
|
|
54
44
|
//
|
|
55
45
|
//--------------------------------------------------------------------------
|
|
@@ -87,24 +77,6 @@ export class SolutionResourceItem {
|
|
|
87
77
|
const hasValidResources = this._hasValidResources();
|
|
88
78
|
return (h(Host, { key: '13f2759a882d2eca48bf9dda58e74caade76142b' }, h("div", { key: '498ced2e29b8af9138a8aa9d77ec78e07e3c64de', class: "resource-item" }, h("div", { key: 'd76a967373a990906a67d88ea6466030c41401ff', class: "margin-bottom-1" }, h("calcite-button", { key: '96cd2ee08adadef9e1b29db12c38d4748b0689c0', appearance: "solid", class: "resource-button", color: "blue", onClick: () => this._addNewResource() }, this._translations.addResource), h("calcite-button", { key: '49326139cad065995512d3e3568c7d8e7f5cef4f', appearance: "solid", color: "blue", disabled: !hasValidResources, onClick: () => this._downloadAll() }, this._translations.downloadAll)), h("div", { key: '9c056d9ab7242ea10cbcf57eaabce4bd9777541e', class: "resources-container", style: { display: hasValidResources ? "inherit" : "none" } }, this._renderResourceList()))));
|
|
89
79
|
}
|
|
90
|
-
//--------------------------------------------------------------------------
|
|
91
|
-
//
|
|
92
|
-
// Properties (protected)
|
|
93
|
-
//
|
|
94
|
-
//--------------------------------------------------------------------------
|
|
95
|
-
/**
|
|
96
|
-
* The templates resourceFilePaths.
|
|
97
|
-
*/
|
|
98
|
-
resourceFilePaths = [];
|
|
99
|
-
/**
|
|
100
|
-
* The templates resources.
|
|
101
|
-
*/
|
|
102
|
-
resources = [];
|
|
103
|
-
/**
|
|
104
|
-
* Contains the translations for this component.
|
|
105
|
-
* All UI strings should be defined here.
|
|
106
|
-
*/
|
|
107
|
-
_translations;
|
|
108
80
|
_removedResources = {};
|
|
109
81
|
//--------------------------------------------------------------------------
|
|
110
82
|
//
|
|
@@ -28,39 +28,25 @@ import { CSpatialRefCustomizingPrefix, CSpatialRefCustomizingSuffix, } from "../
|
|
|
28
28
|
*/
|
|
29
29
|
const cDefaultWkid = "3857";
|
|
30
30
|
export class SolutionSpatialRef {
|
|
31
|
+
constructor() {
|
|
32
|
+
this.enabled = false;
|
|
33
|
+
this.enableDefault = false;
|
|
34
|
+
this.featureServices = [];
|
|
35
|
+
this.locale = undefined;
|
|
36
|
+
this._translations = undefined;
|
|
37
|
+
}
|
|
31
38
|
//--------------------------------------------------------------------------
|
|
32
39
|
//
|
|
33
40
|
// Host element access
|
|
34
41
|
//
|
|
35
42
|
//--------------------------------------------------------------------------
|
|
36
43
|
el;
|
|
37
|
-
//--------------------------------------------------------------------------
|
|
38
|
-
//
|
|
39
|
-
// Properties (public)
|
|
40
|
-
//
|
|
41
|
-
//--------------------------------------------------------------------------
|
|
42
|
-
/**
|
|
43
|
-
* When true, all but the main switch are disabled to prevent interaction.
|
|
44
|
-
*/
|
|
45
|
-
enabled = false;
|
|
46
44
|
enabledChanged() {
|
|
47
45
|
this._handleSpatialRefParamChange();
|
|
48
46
|
}
|
|
49
|
-
/**
|
|
50
|
-
* When true, a default value is used for feature services.
|
|
51
|
-
*/
|
|
52
|
-
enableDefault = false;
|
|
53
47
|
enableDefaultChanged() {
|
|
54
48
|
this._handleDefaultSpatialRefParamChange();
|
|
55
49
|
}
|
|
56
|
-
/**
|
|
57
|
-
* List of services the spatial reference should apply to
|
|
58
|
-
*/
|
|
59
|
-
featureServices = [];
|
|
60
|
-
/**
|
|
61
|
-
* string: Locale to use for translation of stings in the UI
|
|
62
|
-
*/
|
|
63
|
-
locale;
|
|
64
50
|
//--------------------------------------------------------------------------
|
|
65
51
|
//
|
|
66
52
|
// Watch handlers
|
|
@@ -92,16 +78,6 @@ export class SolutionSpatialRef {
|
|
|
92
78
|
}
|
|
93
79
|
//--------------------------------------------------------------------------
|
|
94
80
|
//
|
|
95
|
-
// Properties (protected)
|
|
96
|
-
//
|
|
97
|
-
//--------------------------------------------------------------------------
|
|
98
|
-
/**
|
|
99
|
-
* Contains the translations for this component.
|
|
100
|
-
* All UI strings should be defined here.
|
|
101
|
-
*/
|
|
102
|
-
_translations;
|
|
103
|
-
//--------------------------------------------------------------------------
|
|
104
|
-
//
|
|
105
81
|
// Event Listeners
|
|
106
82
|
//
|
|
107
83
|
//--------------------------------------------------------------------------
|