@esri/solutions-components 0.10.39 → 0.10.40
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 +26 -6
- package/dist/cjs/buffer-tools_3.cjs.entry.js +23 -3
- package/dist/cjs/calcite-alert_5.cjs.entry.js +40 -5
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +11 -1
- package/dist/cjs/calcite-flow_4.cjs.entry.js +33 -10
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +119 -10
- package/dist/cjs/calcite-shell_3.cjs.entry.js +26 -4
- package/dist/cjs/card-manager_3.cjs.entry.js +41 -9
- package/dist/cjs/consent-manager.cjs.entry.js +12 -0
- package/dist/cjs/crowdsource-manager.cjs.entry.js +12 -13
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +19 -9
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/feature-list.cjs.entry.js +13 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +38 -6
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +11 -2
- package/dist/cjs/share-item.cjs.entry.js +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +20 -5
- package/dist/cjs/solution-contents_3.cjs.entry.js +37 -7
- package/dist/cjs/solution-item-accordion.cjs.entry.js +11 -1
- package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +16 -1
- package/dist/collection/collection-manifest.json +0 -7
- package/dist/collection/components/buffer-tools/buffer-tools.js +30 -1
- package/dist/collection/components/card-manager/card-manager.js +34 -2
- package/dist/collection/components/consent-manager/consent-manager.js +32 -0
- package/dist/collection/components/create-feature/create-feature.js +31 -2
- package/dist/collection/components/create-related-feature/create-related-feature.js +30 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +20 -22
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +38 -9
- package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
- package/dist/collection/components/delete-button/delete-button.js +31 -2
- package/dist/collection/components/delete-dialog/delete-dialog.js +33 -1
- package/dist/collection/components/edit-card/edit-card.js +30 -1
- package/dist/collection/components/feature-details/feature-details.js +24 -6
- package/dist/collection/components/feature-list/feature-list.js +32 -3
- package/dist/collection/components/floor-filter/floor-filter.js +1 -1
- package/dist/collection/components/info-card/info-card.js +36 -2
- package/dist/collection/components/json-editor/json-editor.js +38 -1
- package/dist/collection/components/layer-list/layer-list.js +35 -3
- package/dist/collection/components/layer-table/layer-table.js +34 -5
- package/dist/collection/components/map-card/map-card.js +31 -2
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +30 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +30 -1
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.js +30 -1
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +15 -4
- package/dist/collection/components/map-tools/map-tools.js +30 -1
- package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
- package/dist/collection/components/pdf-download/pdf-download.js +33 -1
- package/dist/collection/components/public-notification/public-notification.js +13 -2
- package/dist/collection/components/refine-selection/refine-selection.js +15 -1
- package/dist/collection/components/share-item/share-item.js +1 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js +38 -4
- package/dist/collection/components/solution-contents/solution-contents.js +1 -1
- package/dist/collection/components/solution-item/solution-item.js +37 -3
- package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +30 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +38 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +35 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +35 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +35 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +35 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +35 -1
- package/dist/collection/components/solution-variables/solution-variables.js +35 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +35 -1
- package/dist/collection/demos/crowdsource-manager.html +0 -1
- package/dist/collection/demos/crowdsource-reporter.html +2 -2
- package/dist/components/buffer-tools2.js +15 -3
- package/dist/components/card-manager2.js +18 -3
- package/dist/components/consent-manager.js +15 -0
- package/dist/components/create-feature2.js +14 -2
- package/dist/components/create-related-feature2.js +13 -1
- package/dist/components/crowdsource-manager.js +14 -15
- package/dist/components/crowdsource-reporter.js +21 -9
- package/dist/components/deduct-calculator2.js +1 -1
- package/dist/components/delete-button2.js +16 -4
- package/dist/components/delete-dialog2.js +16 -1
- package/dist/components/edit-card2.js +13 -1
- package/dist/components/feature-details2.js +8 -6
- package/dist/components/feature-list2.js +15 -3
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/info-card2.js +19 -2
- package/dist/components/json-editor2.js +21 -1
- package/dist/components/layer-list2.js +18 -3
- package/dist/components/layer-table2.js +17 -5
- package/dist/components/map-card2.js +14 -2
- package/dist/components/map-draw-tools2.js +13 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +13 -1
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +13 -1
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +14 -4
- package/dist/components/map-tools2.js +13 -1
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +16 -1
- package/dist/components/public-notification.js +12 -2
- package/dist/components/refine-selection2.js +14 -1
- package/dist/components/share-item.js +1 -1
- package/dist/components/solution-configuration.js +23 -6
- package/dist/components/solution-contents2.js +1 -1
- package/dist/components/solution-item-accordion.js +13 -1
- package/dist/components/solution-item-details2.js +22 -2
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +20 -3
- package/dist/components/solution-item2.js +22 -5
- package/dist/components/solution-organization-variables2.js +18 -1
- package/dist/components/solution-resource-item2.js +20 -3
- package/dist/components/solution-spatial-ref2.js +20 -3
- package/dist/components/solution-template-data2.js +20 -3
- package/dist/components/solution-variables2.js +18 -1
- package/dist/components/spatial-ref.js +18 -1
- package/dist/esm/basemap-gallery_7.entry.js +26 -6
- package/dist/esm/buffer-tools_3.entry.js +23 -3
- package/dist/esm/calcite-alert_5.entry.js +40 -5
- package/dist/esm/calcite-combobox_3.entry.js +11 -1
- package/dist/esm/calcite-flow_4.entry.js +33 -10
- package/dist/esm/calcite-shell-panel_14.entry.js +119 -10
- package/dist/esm/calcite-shell_3.entry.js +26 -4
- package/dist/esm/card-manager_3.entry.js +41 -9
- package/dist/esm/consent-manager.entry.js +12 -0
- package/dist/esm/crowdsource-manager.entry.js +12 -13
- package/dist/esm/crowdsource-reporter.entry.js +19 -9
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/feature-list.entry.js +13 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +38 -6
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/public-notification.entry.js +11 -2
- package/dist/esm/share-item.entry.js +1 -1
- package/dist/esm/solution-configuration.entry.js +20 -5
- package/dist/esm/solution-contents_3.entry.js +37 -7
- package/dist/esm/solution-item-accordion.entry.js +11 -1
- package/dist/esm/solution-item-icon.entry.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +16 -1
- package/dist/solutions-components/demos/crowdsource-manager.html +0 -1
- package/dist/solutions-components/demos/crowdsource-reporter.html +2 -2
- package/dist/solutions-components/p-0a2e5861.entry.js +6 -0
- package/dist/solutions-components/{p-739ce6f3.entry.js → p-2f784608.entry.js} +1 -1
- package/dist/solutions-components/{p-1c2d0e90.entry.js → p-3e44cfab.entry.js} +1 -1
- package/dist/solutions-components/{p-841816a1.entry.js → p-41314f33.entry.js} +7 -7
- package/dist/solutions-components/{p-18089a0b.entry.js → p-471d5c7f.entry.js} +2 -2
- package/dist/solutions-components/p-5001cc41.entry.js +6 -0
- package/dist/solutions-components/p-561c0e02.entry.js +6 -0
- package/dist/solutions-components/p-56beff4c.entry.js +6 -0
- package/dist/solutions-components/p-592f2000.entry.js +6 -0
- package/dist/solutions-components/p-5cbf3eed.entry.js +6 -0
- package/dist/solutions-components/p-62d8796c.entry.js +17 -0
- package/dist/solutions-components/p-6d1922cc.entry.js +6 -0
- package/dist/solutions-components/p-80e81af7.entry.js +6 -0
- package/dist/solutions-components/{p-82ddf716.entry.js → p-8e2f4995.entry.js} +1 -1
- package/dist/solutions-components/{p-6502d0f8.entry.js → p-b7fbaeb7.entry.js} +1 -1
- package/dist/solutions-components/p-cced387c.entry.js +6 -0
- package/dist/solutions-components/{p-a5d79c86.entry.js → p-ce53e33d.entry.js} +2 -2
- package/dist/solutions-components/{p-59ccd27c.entry.js → p-d51c07d2.entry.js} +1 -1
- package/dist/solutions-components/p-d75cf651.entry.js +11 -0
- package/dist/solutions-components/p-d7afbe8d.entry.js +11 -0
- package/dist/solutions-components/p-e1e21798.entry.js +12 -0
- package/dist/solutions-components/p-e9026f9a.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/buffer-tools/buffer-tools.d.ts +8 -0
- package/dist/types/components/card-manager/card-manager.d.ts +8 -0
- package/dist/types/components/consent-manager/consent-manager.d.ts +8 -0
- package/dist/types/components/create-feature/create-feature.d.ts +8 -0
- package/dist/types/components/create-related-feature/create-related-feature.d.ts +8 -0
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -4
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +8 -0
- package/dist/types/components/deduct-calculator/deduct-calculator.d.ts +1 -1
- package/dist/types/components/delete-button/delete-button.d.ts +9 -1
- package/dist/types/components/delete-dialog/delete-dialog.d.ts +8 -0
- package/dist/types/components/edit-card/edit-card.d.ts +8 -0
- package/dist/types/components/feature-details/feature-details.d.ts +4 -0
- package/dist/types/components/feature-list/feature-list.d.ts +8 -0
- package/dist/types/components/info-card/info-card.d.ts +8 -0
- package/dist/types/components/json-editor/json-editor.d.ts +8 -0
- package/dist/types/components/layer-list/layer-list.d.ts +8 -0
- package/dist/types/components/layer-table/layer-table.d.ts +9 -1
- package/dist/types/components/map-card/map-card.d.ts +8 -0
- package/dist/types/components/map-draw-tools/map-draw-tools.d.ts +8 -0
- package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +8 -0
- package/dist/types/components/map-picker/map-picker.d.ts +8 -0
- package/dist/types/components/map-select-tools/map-select-tools.d.ts +4 -0
- package/dist/types/components/map-tools/map-tools.d.ts +8 -0
- package/dist/types/components/pdf-download/pdf-download.d.ts +8 -0
- package/dist/types/components/public-notification/public-notification.d.ts +4 -0
- package/dist/types/components/refine-selection/refine-selection.d.ts +4 -0
- package/dist/types/components/solution-configuration/solution-configuration.d.ts +8 -0
- package/dist/types/components/solution-item/solution-item.d.ts +8 -0
- package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +8 -0
- package/dist/types/components/solution-item-details/solution-item-details.d.ts +8 -0
- package/dist/types/components/solution-item-sharing/solution-item-sharing.d.ts +8 -0
- package/dist/types/components/solution-organization-variables/solution-organization-variables.d.ts +8 -0
- package/dist/types/components/solution-resource-item/solution-resource-item.d.ts +8 -0
- package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +8 -0
- package/dist/types/components/solution-template-data/solution-template-data.d.ts +8 -0
- package/dist/types/components/solution-variables/solution-variables.d.ts +8 -0
- package/dist/types/components/spatial-ref/spatial-ref.d.ts +8 -0
- package/dist/types/components.d.ts +266 -120
- package/dist/types/preact.d.ts +0 -16
- package/package.json +5 -5
- package/dist/cjs/feature-comments.cjs.entry.js +0 -61
- package/dist/cjs/feature-form-flow-item.cjs.entry.js +0 -61
- package/dist/cjs/features-flow-item.cjs.entry.js +0 -61
- package/dist/cjs/layout-manager.cjs.entry.js +0 -114
- package/dist/cjs/list-flow-item.cjs.entry.js +0 -61
- package/dist/cjs/location-flow-item.cjs.entry.js +0 -61
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +0 -61
- package/dist/collection/assets/t9n/feature-comments/resources.json +0 -3
- package/dist/collection/assets/t9n/feature-comments/resources_en.json +0 -3
- package/dist/collection/assets/t9n/feature-form-flow-item/resources.json +0 -3
- package/dist/collection/assets/t9n/feature-form-flow-item/resources_en.json +0 -3
- package/dist/collection/assets/t9n/layout-manager/resources.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_ar.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_bg.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_bs.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_ca.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_cs.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_da.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_de.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_el.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_en.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_es.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_et.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_fi.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_fr.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_he.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_hr.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_hu.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_id.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_it.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_ja.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_ko.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_lt.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_lv.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_nb.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_nl.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_pl.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_pt-BR.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_pt-PT.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_ro.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_ru.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_sk.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_sl.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_sr.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_sv.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_th.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_tr.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_uk.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_vi.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_zh-CN.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_zh-HK.json +0 -7
- package/dist/collection/assets/t9n/layout-manager/resources_zh-TW.json +0 -7
- package/dist/collection/assets/t9n/list-flow-item/resources.json +0 -3
- package/dist/collection/assets/t9n/list-flow-item/resources_en.json +0 -3
- package/dist/collection/assets/t9n/location-flow-item/resources.json +0 -3
- package/dist/collection/assets/t9n/location-flow-item/resources_en.json +0 -3
- package/dist/collection/components/feature-comments/feature-comments.css +0 -19
- package/dist/collection/components/feature-comments/feature-comments.js +0 -80
- package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.css +0 -19
- package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +0 -80
- package/dist/collection/components/features-flow-item/features-flow-item.css +0 -19
- package/dist/collection/components/features-flow-item/features-flow-item.js +0 -80
- package/dist/collection/components/layout-manager/layout-manager.css +0 -73
- package/dist/collection/components/layout-manager/layout-manager.js +0 -161
- package/dist/collection/components/list-flow-item/list-flow-item.css +0 -19
- package/dist/collection/components/list-flow-item/list-flow-item.js +0 -80
- package/dist/collection/components/location-flow-item/location-flow-item.css +0 -19
- package/dist/collection/components/location-flow-item/location-flow-item.js +0 -80
- package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.css +0 -19
- package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +0 -80
- package/dist/components/feature-comments.d.ts +0 -11
- package/dist/components/feature-comments.js +0 -76
- package/dist/components/feature-form-flow-item.d.ts +0 -11
- package/dist/components/feature-form-flow-item.js +0 -76
- package/dist/components/features-flow-item.d.ts +0 -11
- package/dist/components/features-flow-item.js +0 -76
- package/dist/components/layout-manager.d.ts +0 -11
- package/dist/components/layout-manager.js +0 -159
- package/dist/components/list-flow-item.d.ts +0 -11
- package/dist/components/list-flow-item.js +0 -76
- package/dist/components/location-flow-item.d.ts +0 -11
- package/dist/components/location-flow-item.js +0 -76
- package/dist/components/refine-results-flow-item.d.ts +0 -11
- package/dist/components/refine-results-flow-item.js +0 -76
- package/dist/esm/feature-comments.entry.js +0 -57
- package/dist/esm/feature-form-flow-item.entry.js +0 -57
- package/dist/esm/features-flow-item.entry.js +0 -57
- package/dist/esm/layout-manager.entry.js +0 -110
- package/dist/esm/list-flow-item.entry.js +0 -57
- package/dist/esm/location-flow-item.entry.js +0 -57
- package/dist/esm/refine-results-flow-item.entry.js +0 -57
- package/dist/solutions-components/assets/t9n/feature-comments/resources.json +0 -3
- package/dist/solutions-components/assets/t9n/feature-comments/resources_en.json +0 -3
- package/dist/solutions-components/assets/t9n/feature-form-flow-item/resources.json +0 -3
- package/dist/solutions-components/assets/t9n/feature-form-flow-item/resources_en.json +0 -3
- package/dist/solutions-components/assets/t9n/layout-manager/resources.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_ar.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_bg.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_bs.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_ca.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_cs.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_da.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_de.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_el.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_en.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_es.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_et.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_fi.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_fr.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_he.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_hr.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_hu.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_id.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_it.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_ja.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_ko.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_lt.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_lv.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_nb.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_nl.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_pl.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_pt-BR.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_pt-PT.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_ro.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_ru.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_sk.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_sl.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_sr.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_sv.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_th.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_tr.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_uk.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_vi.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_zh-CN.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_zh-HK.json +0 -7
- package/dist/solutions-components/assets/t9n/layout-manager/resources_zh-TW.json +0 -7
- package/dist/solutions-components/assets/t9n/list-flow-item/resources.json +0 -3
- package/dist/solutions-components/assets/t9n/list-flow-item/resources_en.json +0 -3
- package/dist/solutions-components/assets/t9n/location-flow-item/resources.json +0 -3
- package/dist/solutions-components/assets/t9n/location-flow-item/resources_en.json +0 -3
- package/dist/solutions-components/p-04ab956c.entry.js +0 -6
- package/dist/solutions-components/p-06364211.entry.js +0 -6
- package/dist/solutions-components/p-1700f63a.entry.js +0 -6
- package/dist/solutions-components/p-1f07e21a.entry.js +0 -6
- package/dist/solutions-components/p-46416e11.entry.js +0 -6
- package/dist/solutions-components/p-70c0050c.entry.js +0 -6
- package/dist/solutions-components/p-720de4db.entry.js +0 -6
- package/dist/solutions-components/p-74bcef23.entry.js +0 -11
- package/dist/solutions-components/p-76154700.entry.js +0 -6
- package/dist/solutions-components/p-938bc915.entry.js +0 -6
- package/dist/solutions-components/p-9c4fef09.entry.js +0 -17
- package/dist/solutions-components/p-9d56f4b5.entry.js +0 -6
- package/dist/solutions-components/p-9da8a590.entry.js +0 -6
- package/dist/solutions-components/p-aac0c89c.entry.js +0 -6
- package/dist/solutions-components/p-be4c7ffd.entry.js +0 -6
- package/dist/solutions-components/p-d2612c30.entry.js +0 -6
- package/dist/solutions-components/p-df7de4b7.entry.js +0 -12
- package/dist/solutions-components/p-e345f9c4.entry.js +0 -6
- package/dist/solutions-components/p-eadff42b.entry.js +0 -11
- package/dist/solutions-components/p-fa1c368c.entry.js +0 -6
- package/dist/solutions-components/p-ff3858c6.entry.js +0 -6
- package/dist/types/components/feature-comments/feature-comments.d.ts +0 -19
- package/dist/types/components/feature-form-flow-item/feature-form-flow-item.d.ts +0 -19
- package/dist/types/components/features-flow-item/features-flow-item.d.ts +0 -19
- package/dist/types/components/layout-manager/layout-manager.d.ts +0 -69
- package/dist/types/components/list-flow-item/list-flow-item.d.ts +0 -19
- package/dist/types/components/location-flow-item/location-flow-item.d.ts +0 -19
- package/dist/types/components/refine-results-flow-item/refine-results-flow-item.d.ts +0 -19
|
@@ -23,6 +23,7 @@ const DeleteDialog = /*@__PURE__*/ proxyCustomElement(class DeleteDialog extends
|
|
|
23
23
|
this.deleteDialogClose = createEvent(this, "deleteDialogClose", 7);
|
|
24
24
|
this.ids = [];
|
|
25
25
|
this.layer = undefined;
|
|
26
|
+
this.locale = undefined;
|
|
26
27
|
this.open = false;
|
|
27
28
|
this._isDeleting = false;
|
|
28
29
|
this._translations = undefined;
|
|
@@ -38,6 +39,14 @@ const DeleteDialog = /*@__PURE__*/ proxyCustomElement(class DeleteDialog extends
|
|
|
38
39
|
// Watch handlers
|
|
39
40
|
//
|
|
40
41
|
//--------------------------------------------------------------------------
|
|
42
|
+
/**
|
|
43
|
+
* Fetch translations when the locale is updated
|
|
44
|
+
*/
|
|
45
|
+
async localeWatchHandler() {
|
|
46
|
+
// to support url param and language switcher
|
|
47
|
+
this.el.lang = this.locale;
|
|
48
|
+
await this._getTranslations();
|
|
49
|
+
}
|
|
41
50
|
//--------------------------------------------------------------------------
|
|
42
51
|
//
|
|
43
52
|
// Methods (public)
|
|
@@ -75,7 +84,7 @@ const DeleteDialog = /*@__PURE__*/ proxyCustomElement(class DeleteDialog extends
|
|
|
75
84
|
render() {
|
|
76
85
|
const confirmMessage = this.ids.length === 1 ? this._translations?.confirmSingle :
|
|
77
86
|
this._translations?.confirmMultiple;
|
|
78
|
-
return (h(Host, { key: '
|
|
87
|
+
return (h(Host, { key: 'eafca7d4325c65ff21fbfeaa24ea14e95bc25a34' }, h("calcite-modal", { key: '745e52d7b23318492914662cc769a1206baefd28', "aria-labelledby": "modal-title", class: "delete-modal", kind: "danger", onCalciteModalClose: () => this._close(), open: this.open, widthScale: "s" }, h("div", { key: '363614f6eaf30c30c6c2ccde3875dfff5cd94088', class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations?.deleteFeature), h("div", { key: 'b3b6f74495894589b7fd8be54265c4a69ffaa62e', slot: "content" }, confirmMessage), h("calcite-button", { key: 'd325fcf12624bac39f56ec690f7e4e9660789891', appearance: "outline", kind: "danger", onClick: () => this._close(), slot: "secondary", width: "full" }, this._translations?.cancel), h("calcite-button", { key: '73a10546ad92065c949bfacca3eb3d508685030e', kind: "danger", loading: this._isDeleting, onClick: () => void this._deleteFeatures(), slot: "primary", width: "full" }, this._translations?.delete))));
|
|
79
88
|
}
|
|
80
89
|
//--------------------------------------------------------------------------
|
|
81
90
|
//
|
|
@@ -114,13 +123,19 @@ const DeleteDialog = /*@__PURE__*/ proxyCustomElement(class DeleteDialog extends
|
|
|
114
123
|
const messages = await getLocaleComponentStrings(this.el);
|
|
115
124
|
this._translations = messages[0];
|
|
116
125
|
}
|
|
126
|
+
static get watchers() { return {
|
|
127
|
+
"locale": ["localeWatchHandler"]
|
|
128
|
+
}; }
|
|
117
129
|
static get style() { return DeleteDialogStyle0; }
|
|
118
130
|
}, [1, "delete-dialog", {
|
|
119
131
|
"ids": [16],
|
|
120
132
|
"layer": [16],
|
|
133
|
+
"locale": [1],
|
|
121
134
|
"open": [4],
|
|
122
135
|
"_isDeleting": [32],
|
|
123
136
|
"_translations": [32]
|
|
137
|
+
}, undefined, {
|
|
138
|
+
"locale": ["localeWatchHandler"]
|
|
124
139
|
}]);
|
|
125
140
|
function defineCustomElement() {
|
|
126
141
|
if (typeof customElements === "undefined") {
|
|
@@ -23,6 +23,7 @@ const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLEle
|
|
|
23
23
|
this.refreshGraphics = createEvent(this, "refreshGraphics", 7);
|
|
24
24
|
this.enableEditGeometry = false;
|
|
25
25
|
this.graphics = undefined;
|
|
26
|
+
this.locale = undefined;
|
|
26
27
|
this.mapView = undefined;
|
|
27
28
|
this.open = false;
|
|
28
29
|
this.graphicIndex = 0;
|
|
@@ -106,6 +107,14 @@ const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLEle
|
|
|
106
107
|
await this._closeEdit(true);
|
|
107
108
|
}
|
|
108
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* Fetch translations when the locale is updated
|
|
112
|
+
*/
|
|
113
|
+
async localeWatchHandler() {
|
|
114
|
+
// to support url param and language switcher
|
|
115
|
+
this.el.lang = this.locale;
|
|
116
|
+
await this._getTranslations();
|
|
117
|
+
}
|
|
109
118
|
async openWatchHandler(v) {
|
|
110
119
|
if (v && this.graphics?.length > 0 && this.graphicIndex > -1) {
|
|
111
120
|
this._editorLoading = true;
|
|
@@ -190,7 +199,7 @@ const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLEle
|
|
|
190
199
|
!this.graphics[0].layer.editingEnabled : true;
|
|
191
200
|
const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
|
|
192
201
|
const loadingClass = this._editorLoading ? "" : "display-none";
|
|
193
|
-
return (h(Host, { key: '
|
|
202
|
+
return (h(Host, { key: '15ae3de9c8ab0a66a0185ffaafc27f03e19c77b7' }, h("div", { key: 'bbaa7dbc405259b64dfceca89e45abf6372c76c3', class: "position-absolute" }, editDisabled ? (h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, h("div", { key: 'eb8b08fa0b08cf93581fb8e76d59bd8b5446770f', class: "position-absolute" }, h("div", { key: '03e525373c09fbcd4dad213738d97b99f1549975', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), h("calcite-loader", { key: '1cc46d8f6499a90736e05c2eed9bff71aff35d12', class: loadingClass, label: "", scale: "s" })))));
|
|
194
203
|
}
|
|
195
204
|
//--------------------------------------------------------------------------
|
|
196
205
|
//
|
|
@@ -296,12 +305,14 @@ const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLEle
|
|
|
296
305
|
}
|
|
297
306
|
static get watchers() { return {
|
|
298
307
|
"graphics": ["graphicsWatchHandler"],
|
|
308
|
+
"locale": ["localeWatchHandler"],
|
|
299
309
|
"open": ["openWatchHandler"]
|
|
300
310
|
}; }
|
|
301
311
|
static get style() { return EditCardStyle0; }
|
|
302
312
|
}, [0, "edit-card", {
|
|
303
313
|
"enableEditGeometry": [4, "enable-edit-geometry"],
|
|
304
314
|
"graphics": [1040],
|
|
315
|
+
"locale": [1],
|
|
305
316
|
"mapView": [16],
|
|
306
317
|
"open": [1028],
|
|
307
318
|
"graphicIndex": [2, "graphic-index"],
|
|
@@ -309,6 +320,7 @@ const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLEle
|
|
|
309
320
|
"_translations": [32]
|
|
310
321
|
}, [[8, "featureSelectionChange", "featureSelectionChange"]], {
|
|
311
322
|
"graphics": ["graphicsWatchHandler"],
|
|
323
|
+
"locale": ["localeWatchHandler"],
|
|
312
324
|
"open": ["openWatchHandler"]
|
|
313
325
|
}]);
|
|
314
326
|
function defineCustomElement() {
|
|
@@ -51,6 +51,7 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
|
|
|
51
51
|
this.graphics = undefined;
|
|
52
52
|
this.reportingOptions = undefined;
|
|
53
53
|
this.layerItemsHash = undefined;
|
|
54
|
+
this.locale = undefined;
|
|
54
55
|
this.showUserImageInCommentsList = false;
|
|
55
56
|
this._likeFieldAvailable = false;
|
|
56
57
|
this._likeCount = 0;
|
|
@@ -199,12 +200,12 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
|
|
|
199
200
|
render() {
|
|
200
201
|
//When related features found show comments list of only those features else comments list will be empty
|
|
201
202
|
const commentsListWhereClause = this._relatedFeaturesOIDs?.length > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
|
|
202
|
-
return (h("calcite-panel", { key: '
|
|
203
|
-
h("div", { key: '
|
|
204
|
-
h("calcite-button", { key: '
|
|
205
|
-
h("calcite-button", { key: '
|
|
206
|
-
h("calcite-button", { key: '
|
|
207
|
-
h("feature-list", { key: '
|
|
203
|
+
return (h("calcite-panel", { key: 'be7bebe9da698d963a2602fcacb95ac7206ac1e9', "full-height": true }, h("info-card", { key: '1e069f52d59d42f3e2b88463ea7c536c65a0a6b5', allowEditing: false, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, locale: this.locale, mapView: this.mapView, onSelectionChanged: (e) => { this.featureSelectionChange.emit(e.detail); }, paginationEnabled: false, position: "relative", ref: el => this._infoCard = el }), (this._likeFieldAvailable || this._dislikeFieldAvailable || this._commentsAvailable) &&
|
|
204
|
+
h("div", { key: 'd53f5a1726e4c6299ffd04e266d84005181645f6', class: "buttons-container" }, this._commentsAvailable &&
|
|
205
|
+
h("calcite-button", { key: '4c2616cc9e0107258f5313b66ae96fa31fe582c5', appearance: "transparent", iconEnd: "speech-bubble", kind: "neutral", onClick: () => { this.addComment.emit(); }, scale: 'm' }, this._relatedFeaturesOIDs.length), this._likeFieldAvailable &&
|
|
206
|
+
h("calcite-button", { key: '7c87aa085df04a8b58625097c2ce70e5853b82f9', appearance: "transparent", iconEnd: "thumbs-up", kind: this._isLikeBtnClicked ? "brand" : "neutral", loading: this._updating, onClick: this.onLikeButtonClick.bind(this), scale: 'm' }, this._likeCount ?? this._selectedGraphic.attributes[this._likeField] ?? 0), this._dislikeFieldAvailable &&
|
|
207
|
+
h("calcite-button", { key: '59eb48b91fc2a394cafdcbeeebf5baafae9a8c9b', appearance: "transparent", iconEnd: "thumbs-down", kind: this._isDislikeBtnClicked ? "brand" : "neutral", loading: this._updating, onClick: this.onDislikeButtonClick.bind(this), scale: 'm' }, this._disLikeCount ?? this._selectedGraphic.attributes[this._dislikeField] ?? 0)), this.relatedTableId && this._commentsAvailable &&
|
|
208
|
+
h("feature-list", { key: 'f34ee203202944666c40e14bdfdc59265414fbe1', class: "height-full", locale: this.locale, mapView: this.mapView, onFeatureSelect: (e) => { this.commentSelect.emit(e.detail); }, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showErrorWhenNoFeatures: false, showInitialLoading: false, showUserImageInList: this.showUserImageInCommentsList, textSize: "small", whereClause: commentsListWhereClause })));
|
|
208
209
|
}
|
|
209
210
|
/**
|
|
210
211
|
* Load esri javascript api modules
|
|
@@ -482,6 +483,7 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
|
|
|
482
483
|
"graphics": [16],
|
|
483
484
|
"reportingOptions": [16],
|
|
484
485
|
"layerItemsHash": [16],
|
|
486
|
+
"locale": [1],
|
|
485
487
|
"showUserImageInCommentsList": [4, "show-user-image-in-comments-list"],
|
|
486
488
|
"_likeFieldAvailable": [32],
|
|
487
489
|
"_likeCount": [32],
|
|
@@ -41,6 +41,7 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
|
41
41
|
this.pageSize = 100;
|
|
42
42
|
this.highlightOnMap = false;
|
|
43
43
|
this.highlightOnHover = false;
|
|
44
|
+
this.locale = undefined;
|
|
44
45
|
this.sortingInfo = undefined;
|
|
45
46
|
this.whereClause = undefined;
|
|
46
47
|
this.textSize = "large";
|
|
@@ -113,6 +114,14 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
|
113
114
|
// Watch handlers
|
|
114
115
|
//
|
|
115
116
|
//--------------------------------------------------------------------------
|
|
117
|
+
/**
|
|
118
|
+
* Fetch translations when the locale is updated
|
|
119
|
+
*/
|
|
120
|
+
async localeWatchHandler() {
|
|
121
|
+
// to support url param and language switcher
|
|
122
|
+
this.el.lang = this.locale;
|
|
123
|
+
await this._getTranslations();
|
|
124
|
+
}
|
|
116
125
|
/**
|
|
117
126
|
* Watch for selectedLayerId change and update layer instance and features list for new layerId
|
|
118
127
|
*/
|
|
@@ -192,9 +201,9 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
|
192
201
|
* Renders the component.
|
|
193
202
|
*/
|
|
194
203
|
render() {
|
|
195
|
-
return (h("calcite-panel", { key: '
|
|
196
|
-
h("calcite-notice", { key: '
|
|
197
|
-
h("div", { key: '
|
|
204
|
+
return (h("calcite-panel", { key: '6b6214a3dba7df7c2035203750d547945407ecde', "full-height": true, "full-width": true }, this._isLoading && h("calcite-loader", { key: '1b05d96de0b4d396b13f448311db76315e28b81b', label: "", scale: "m" }), this.showErrorWhenNoFeatures && this._featureItems.length === 0 && !this._isLoading &&
|
|
205
|
+
h("calcite-notice", { key: 'abe755f0bc5c7ff064249159c3154c9ca1c27594', class: "error-msg", icon: "feature-details", kind: "info", open: true }, h("div", { key: '5a8ead1d47151cf088ae9e359052cf35129b09d3', slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), h("calcite-list", { key: 'feb2f2fff276ad49d38ed35dbca41d1878f5e7a3', "selection-appearance": "border", "selection-mode": "none" }, !this._isLoading && this._featureItems.length > 0 && this._featureItems), this._featuresCount > this.pageSize &&
|
|
206
|
+
h("div", { key: 'e396ddcc3d43ae025d9bdb2cd021a2031606211d', class: "width-full", slot: "footer" }, h("calcite-pagination", { key: '0c3c5bddc7ad418ab15136f0267a429cc0f4ef21', class: "pagination", "full-width": true, onCalcitePaginationChange: this.pageChanged.bind(this), "page-size": this.pageSize, ref: el => this._pagination = el, "start-item": "1", "total-items": this._featuresCount }))));
|
|
198
207
|
}
|
|
199
208
|
//--------------------------------------------------------------------------
|
|
200
209
|
//
|
|
@@ -502,6 +511,7 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
|
502
511
|
this._translations = messages[0];
|
|
503
512
|
}
|
|
504
513
|
static get watchers() { return {
|
|
514
|
+
"locale": ["localeWatchHandler"],
|
|
505
515
|
"selectedLayerId": ["selectedLayerWatchHandler"],
|
|
506
516
|
"sortingInfo": ["sortingInfoWatchHandler"],
|
|
507
517
|
"whereClause": ["whereClauseHandler"]
|
|
@@ -514,6 +524,7 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
|
514
524
|
"pageSize": [2, "page-size"],
|
|
515
525
|
"highlightOnMap": [4, "highlight-on-map"],
|
|
516
526
|
"highlightOnHover": [4, "highlight-on-hover"],
|
|
527
|
+
"locale": [1],
|
|
517
528
|
"sortingInfo": [16],
|
|
518
529
|
"whereClause": [1, "where-clause"],
|
|
519
530
|
"textSize": [1, "text-size"],
|
|
@@ -529,6 +540,7 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
|
529
540
|
"_translations": [32],
|
|
530
541
|
"refresh": [64]
|
|
531
542
|
}, undefined, {
|
|
543
|
+
"locale": ["localeWatchHandler"],
|
|
532
544
|
"selectedLayerId": ["selectedLayerWatchHandler"],
|
|
533
545
|
"sortingInfo": ["sortingInfoWatchHandler"],
|
|
534
546
|
"whereClause": ["whereClauseHandler"]
|
|
@@ -117,7 +117,7 @@ const FloorFilter = /*@__PURE__*/ proxyCustomElement(class FloorFilter extends H
|
|
|
117
117
|
* Renders the component.
|
|
118
118
|
*/
|
|
119
119
|
render() {
|
|
120
|
-
return (h(Host, { key: '
|
|
120
|
+
return (h(Host, { key: '51da7a656e7f56ecc8cc4093d3dab856f77b5c7a' }, h("div", { key: 'd2fda7047f09a673216484f5c202f039fca20108', ref: (el) => { this._floorFilterElement = el; } })));
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
123
|
* StencilJS: Called once just after the component is first loaded.
|
|
@@ -41,6 +41,7 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
|
|
|
41
41
|
this.mapView = undefined;
|
|
42
42
|
this.allowEditing = true;
|
|
43
43
|
this.highlightEnabled = true;
|
|
44
|
+
this.locale = undefined;
|
|
44
45
|
this.paginationEnabled = true;
|
|
45
46
|
this.position = 'absolute';
|
|
46
47
|
this._alertOpen = false;
|
|
@@ -105,6 +106,19 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
|
|
|
105
106
|
async isMobileWatchHandler() {
|
|
106
107
|
await this._initFeaturesWidget();
|
|
107
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* Fetch translations when the locale is updated
|
|
111
|
+
*/
|
|
112
|
+
async localeWatchHandler() {
|
|
113
|
+
// to support url param and language switcher
|
|
114
|
+
this.el.lang = this.locale;
|
|
115
|
+
await this._getTranslations();
|
|
116
|
+
if (this._features) {
|
|
117
|
+
const graphics = [...this.graphics];
|
|
118
|
+
this.graphics = [];
|
|
119
|
+
this.graphics = graphics;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
108
122
|
/**
|
|
109
123
|
* Watch for changes to the mapView and re-init the Feature widget
|
|
110
124
|
*/
|
|
@@ -237,8 +251,8 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
|
|
|
237
251
|
const id = this._features?.selectedFeature?.getObjectId();
|
|
238
252
|
const ids = parseInt(id?.toString(), 10) > -1 ? [id] : [];
|
|
239
253
|
const deleteEnabled = this._layer?.editingEnabled && this._layer?.capabilities?.operations?.supportsDelete;
|
|
240
|
-
return (h(Host, { key: '
|
|
241
|
-
h("div", { key: '
|
|
254
|
+
return (h(Host, { key: '54e47d0ec2be9149c3e667c9e940842804d96964' }, h("calcite-shell", { key: '14bb280d394ceaa74463979886ab09cdf393b26e', style: { position: this.position } }, this._getHeader(), h("calcite-loader", { key: '3226709e73de16c795c348513183b26b88b7a726', class: loadingClass, label: this._translations.fetchingData }), h("div", { key: 'ba4b0c34620c60e849bdf0ada785b9976156dd1c', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), h("div", { key: '440a4d3c0530f97031df2e2ab9511ef6035fb5da', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
|
|
255
|
+
h("div", { key: '172b2e2cc10bdfb104057376ceba5d7f5f19ad61', class: "display-flex top-border padding-1-2" }, h("calcite-button", { key: '242daf0ec6c3fe4fcc11be4bbc19f810836714ec', appearance: "solid", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), this.isMobile && deleteEnabled ? (h("delete-button", { class: "padding-inline-start-1 width-100", id: "solutions-delete", ids: ids, layer: this._layer, locale: this.locale, onEditsComplete: () => this._closePopup() })) : undefined, h("calcite-tooltip", { key: '760f8fcd1bcff2060e0a98e84a222107e55fef22', placement: "bottom", "reference-element": "solutions-edit" }, h("span", { key: '30656b92e9bdbf3a9548586d91fc23bce2da9db3' }, this._translations.edit)), this.isMobile ? (h("calcite-tooltip", { placement: "bottom", "reference-element": "solutions-delete" }, h("span", null, this._translations.delete))) : undefined), this.paginationEnabled && !nextBackDisabled && h("div", { key: '161902561c9686d74a511338dfc02efce0095af7', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, h("div", { key: 'afd1459e3f69f60d96103854fe3dae71f18fc41e' }, h("calcite-button", { key: '59063d7fa2cf886afca66857cb1f74e42789e59f', appearance: 'transparent', disabled: nextBackDisabled, iconFlipRtl: "both", iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), h("calcite-tooltip", { key: '412e00bc323494bb1e3a7dbeef59ab9bcd6ff8e0', placement: "top", "reference-element": "solutions-back" }, h("span", { key: '7c1512be35f16b4441c2a364e1b7a87e3c7caf97' }, this._translations.back))), h("calcite-action", { key: 'd4790efec0d13e6726ffe9d438683db6887d00b8', class: 'pagination-action', iconFlipRtl: true, onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, h("span", { key: '98663d5c3b2f445db4e38cba98b8149c53cbc474', class: "pagination-count" }, this._count)), h("div", { key: '6ca88610950cf2852e2dc67588c77fd464ece3c5' }, h("calcite-button", { key: '577739ef819676dfd9cdee560a8cd22edcd9c6b7', appearance: "transparent", disabled: nextBackDisabled, iconFlipRtl: "both", iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), h("calcite-tooltip", { key: '73a4f907d1a2f46a980c451572f1ba1e1b0b0596', placement: "top", "reference-element": "solutions-next" }, h("span", { key: 'd5f67497df866592b30d6c328f9f45716eb16153' }, this._translations.next))))), h("edit-card", { key: 'c8094993be5203f464cea4f632c14dbefa263a73', class: editClass, enableEditGeometry: this.enableEditGeometry, graphicIndex: this._features?.selectedFeatureIndex, graphics: this.graphics, locale: this.locale, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { key: '0b9fd2109d7c6b51b91088ecbec50956a2d8d3d8', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { key: 'c8b7b452430d6fedda5288fd58efae5526adeda7', slot: "title" }, this._translations.editDisabled), h("div", { key: 'b2dc954d43bb08908723f70796df5c77108d92d8', slot: "message" }, this._translations.enableEditing)))));
|
|
242
256
|
}
|
|
243
257
|
//--------------------------------------------------------------------------
|
|
244
258
|
//
|
|
@@ -407,6 +421,7 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
|
|
|
407
421
|
static get watchers() { return {
|
|
408
422
|
"graphics": ["graphicsWatchHandler"],
|
|
409
423
|
"isMobile": ["isMobileWatchHandler"],
|
|
424
|
+
"locale": ["localeWatchHandler"],
|
|
410
425
|
"mapView": ["mapViewWatchHandler"]
|
|
411
426
|
}; }
|
|
412
427
|
static get style() { return InfoCardStyle0; }
|
|
@@ -418,6 +433,7 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
|
|
|
418
433
|
"mapView": [16],
|
|
419
434
|
"allowEditing": [4, "allow-editing"],
|
|
420
435
|
"highlightEnabled": [4, "highlight-enabled"],
|
|
436
|
+
"locale": [1],
|
|
421
437
|
"paginationEnabled": [4, "pagination-enabled"],
|
|
422
438
|
"position": [1],
|
|
423
439
|
"_alertOpen": [32],
|
|
@@ -435,6 +451,7 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
|
|
|
435
451
|
}, [[8, "closeEdit", "closeEdit"], [8, "layerSelectionChange", "layerSelectionChange"], [8, "refreshGraphics", "refreshGraphics"]], {
|
|
436
452
|
"graphics": ["graphicsWatchHandler"],
|
|
437
453
|
"isMobile": ["isMobileWatchHandler"],
|
|
454
|
+
"locale": ["localeWatchHandler"],
|
|
438
455
|
"mapView": ["mapViewWatchHandler"]
|
|
439
456
|
}]);
|
|
440
457
|
function defineCustomElement() {
|
|
@@ -19,11 +19,25 @@ const JsonEditor = /*@__PURE__*/ proxyCustomElement(class JsonEditor extends HTM
|
|
|
19
19
|
this.hasChanges = false;
|
|
20
20
|
this.hasErrors = false;
|
|
21
21
|
this.instanceid = "";
|
|
22
|
+
this.locale = undefined;
|
|
22
23
|
this.value = "";
|
|
23
24
|
}
|
|
24
25
|
get el() { return this; }
|
|
25
26
|
//--------------------------------------------------------------------------
|
|
26
27
|
//
|
|
28
|
+
// Watch handlers
|
|
29
|
+
//
|
|
30
|
+
//--------------------------------------------------------------------------
|
|
31
|
+
/**
|
|
32
|
+
* Fetch translations when the locale is updated
|
|
33
|
+
*/
|
|
34
|
+
async localeWatchHandler() {
|
|
35
|
+
// to support url param and language switcher
|
|
36
|
+
this.el.lang = this.locale;
|
|
37
|
+
await this._getTranslations();
|
|
38
|
+
}
|
|
39
|
+
//--------------------------------------------------------------------------
|
|
40
|
+
//
|
|
27
41
|
// Lifecycle
|
|
28
42
|
//
|
|
29
43
|
//--------------------------------------------------------------------------
|
|
@@ -90,7 +104,7 @@ const JsonEditor = /*@__PURE__*/ proxyCustomElement(class JsonEditor extends HTM
|
|
|
90
104
|
* Renders the component.
|
|
91
105
|
*/
|
|
92
106
|
render() {
|
|
93
|
-
return (h(Host, { key: '
|
|
107
|
+
return (h(Host, { key: 'ba7c8a397da913d86f5d294cdfbb5ec1b84d89de' }, h("div", { key: 'bc5c6d1ee443b2096cc44d0b66850d4ebe8462da', id: `${this.instanceid}-editor-container`, class: "editor-container padding-right" }, h("div", { key: 'dbaf682cba354ce7eef21b03a71832fd39911332', class: "editor-controls" }, h("div", { key: 'e454e1dd36aa620abf2ffb7877bebb9adc70ff15', class: "editor-buttons" }, h("calcite-icon", { key: '1de67e151c6e65b004a431d89dc785ca286a8e11', id: `${this.instanceid}-errorFlag`, icon: "exclamation-mark-triangle", title: this._translations.errorFlag, scale: "s", class: "edit-error-flag" }), h("calcite-button", { key: '33de20955d29287a3ec981e7650562a036343e3a', id: `${this.instanceid}-undo`, color: "blue", appearance: "solid", title: this._translations.undo, onClick: () => this._undo(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '9bed02f1e8a367ad2ed764747f044a4ce27de52b', icon: "undo", scale: "s" })), h("calcite-button", { key: '07562443286c4eeec28577a7cff0401e8cea0ba8', id: `${this.instanceid}-redo`, color: "blue", appearance: "solid", title: this._translations.redo, onClick: () => this._redo(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '5f24902a66eae644d0d358a4826a98d45e905493', icon: "redo", scale: "s" })), h("calcite-button", { key: '02f4f3f8ab93e5f1146176ec3699e2a6d25ecbeb', id: `${this.instanceid}-diff`, color: "blue", appearance: "solid", title: this._translations.diff, onClick: () => this._toggleEditor(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '0bcd20d28e9ec34f1736a2888d78bfcd9cb82a4d', icon: "compare", scale: "s" })), h("calcite-button", { key: 'cf3a7672ebd3ebef00123096ec304456b8f102fc', id: `${this.instanceid}-search`, appearance: "outline", color: "blue", title: this._translations.search, onClick: () => this._search(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '36aac5e89ebf593d8d1981d7b8f6267fbbadfd24', icon: "search", scale: "s" })), h("calcite-button", { key: 'cc981ff7580acfa3a3395c4ce7a96b3022bbbb4b', id: `${this.instanceid}-reset`, color: "blue", appearance: "solid", disabled: true, title: this._translations.cancelEdits, onClick: () => this._reset(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '3c4fc1da749f4b4f64d814fcd58dc035634f6b1b', icon: "reset", scale: "s" })))), h("div", { key: '6c33ec4851d804dac7fd9762e3c8c7e416a27cf4', class: "edit-parent" }, h("div", { key: 'a6e9721127bbd43f9974af65e0899489370e1868', id: `${this.instanceid}-container`, class: "json-edit-container" }), h("div", { key: 'c1d1ea305c0e451c24beddb8ac3f8e85a3fca088', id: `${this.instanceid}-diff-container`, class: "json-edit-container display-none" })))));
|
|
94
108
|
}
|
|
95
109
|
//--------------------------------------------------------------------------
|
|
96
110
|
//
|
|
@@ -404,16 +418,22 @@ const JsonEditor = /*@__PURE__*/ proxyCustomElement(class JsonEditor extends HTM
|
|
|
404
418
|
}
|
|
405
419
|
}
|
|
406
420
|
static get assetsDirs() { return ["assets"]; }
|
|
421
|
+
static get watchers() { return {
|
|
422
|
+
"locale": ["localeWatchHandler"]
|
|
423
|
+
}; }
|
|
407
424
|
static get style() { return JsonEditorStyle0; }
|
|
408
425
|
}, [0, "json-editor", {
|
|
409
426
|
"hasChanges": [1540, "has-changes"],
|
|
410
427
|
"hasErrors": [1540, "has-errors"],
|
|
411
428
|
"instanceid": [1544],
|
|
429
|
+
"locale": [1],
|
|
412
430
|
"value": [1544],
|
|
413
431
|
"getEditorContents": [64],
|
|
414
432
|
"prepareForDeletion": [64],
|
|
415
433
|
"replaceCurrentSelection": [64],
|
|
416
434
|
"reset": [64]
|
|
435
|
+
}, undefined, {
|
|
436
|
+
"locale": ["localeWatchHandler"]
|
|
417
437
|
}]);
|
|
418
438
|
function defineCustomElement() {
|
|
419
439
|
if (typeof customElements === "undefined") {
|
|
@@ -30,6 +30,7 @@ const LayerList = /*@__PURE__*/ proxyCustomElement(class LayerList extends HTMLE
|
|
|
30
30
|
this.layersListLoaded = createEvent(this, "layersListLoaded", 7);
|
|
31
31
|
this.mapView = undefined;
|
|
32
32
|
this.layers = undefined;
|
|
33
|
+
this.locale = undefined;
|
|
33
34
|
this.showFeatureCount = true;
|
|
34
35
|
this.showNextIcon = false;
|
|
35
36
|
this.applyLayerViewFilter = false;
|
|
@@ -53,6 +54,14 @@ const LayerList = /*@__PURE__*/ proxyCustomElement(class LayerList extends HTMLE
|
|
|
53
54
|
// Watch handlers
|
|
54
55
|
//
|
|
55
56
|
//--------------------------------------------------------------------------
|
|
57
|
+
/**
|
|
58
|
+
* Fetch translations when the locale is updated
|
|
59
|
+
*/
|
|
60
|
+
async localeWatchHandler() {
|
|
61
|
+
// to support url param and language switcher
|
|
62
|
+
this.el.lang = this.locale;
|
|
63
|
+
await this._getTranslations();
|
|
64
|
+
}
|
|
56
65
|
//--------------------------------------------------------------------------
|
|
57
66
|
//
|
|
58
67
|
// Methods (public)
|
|
@@ -101,9 +110,9 @@ const LayerList = /*@__PURE__*/ proxyCustomElement(class LayerList extends HTMLE
|
|
|
101
110
|
* Renders the component.
|
|
102
111
|
*/
|
|
103
112
|
render() {
|
|
104
|
-
return (h(Fragment, { key: '
|
|
105
|
-
h("calcite-notice", { key: '
|
|
106
|
-
h("calcite-list", { key: '
|
|
113
|
+
return (h(Fragment, { key: 'a151c8fd65c50aacb23dcd0c858e52c0c7cd7e5e' }, this._isLoading && h("calcite-loader", { key: '544a134bccc29048ca80b996844cc944bcd97a24', label: "", scale: "m" }), !this._isLoading && this.mapView && this._noLayersToDisplay &&
|
|
114
|
+
h("calcite-notice", { key: '7557f91c8c3349c120c043ea59458b4c834dce2e', class: "error-msg", icon: "layers-reference", kind: "danger", open: true }, h("div", { key: 'ea8b20f8c7da5053641cfad56e3395ae3c6286f5', slot: "title" }, this._translations.error), h("div", { key: '38aaed7b456aba0b1dd70183be03e9133834dfb4', slot: "message" }, this._translations.noLayerToDisplayErrorMsg)), !this._isLoading && this.mapView &&
|
|
115
|
+
h("calcite-list", { key: '817de422b8387cafb7f9a17515cf9b3c13998522', "selection-appearance": "border", "selection-mode": "none" }, this.renderLayerList())));
|
|
107
116
|
}
|
|
108
117
|
//--------------------------------------------------------------------------
|
|
109
118
|
//
|
|
@@ -229,10 +238,14 @@ const LayerList = /*@__PURE__*/ proxyCustomElement(class LayerList extends HTMLE
|
|
|
229
238
|
const messages = await getLocaleComponentStrings(this.el);
|
|
230
239
|
this._translations = messages[0];
|
|
231
240
|
}
|
|
241
|
+
static get watchers() { return {
|
|
242
|
+
"locale": ["localeWatchHandler"]
|
|
243
|
+
}; }
|
|
232
244
|
static get style() { return LayerListStyle0; }
|
|
233
245
|
}, [0, "layer-list", {
|
|
234
246
|
"mapView": [16],
|
|
235
247
|
"layers": [16],
|
|
248
|
+
"locale": [1],
|
|
236
249
|
"showFeatureCount": [4, "show-feature-count"],
|
|
237
250
|
"showNextIcon": [4, "show-next-icon"],
|
|
238
251
|
"applyLayerViewFilter": [4, "apply-layer-view-filter"],
|
|
@@ -241,6 +254,8 @@ const LayerList = /*@__PURE__*/ proxyCustomElement(class LayerList extends HTMLE
|
|
|
241
254
|
"_isLoading": [32],
|
|
242
255
|
"_translations": [32],
|
|
243
256
|
"refresh": [64]
|
|
257
|
+
}, undefined, {
|
|
258
|
+
"locale": ["localeWatchHandler"]
|
|
244
259
|
}]);
|
|
245
260
|
function defineCustomElement() {
|
|
246
261
|
if (typeof customElements === "undefined") {
|
|
@@ -70,6 +70,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
70
70
|
this.enableInlineEdit = undefined;
|
|
71
71
|
this.enableShare = undefined;
|
|
72
72
|
this.isMobile = undefined;
|
|
73
|
+
this.locale = undefined;
|
|
73
74
|
this.mapHidden = undefined;
|
|
74
75
|
this.mapInfo = undefined;
|
|
75
76
|
this.mapView = undefined;
|
|
@@ -325,6 +326,14 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
325
326
|
}
|
|
326
327
|
});
|
|
327
328
|
}
|
|
329
|
+
/**
|
|
330
|
+
* Fetch translations when the locale is updated
|
|
331
|
+
*/
|
|
332
|
+
async localeWatchHandler() {
|
|
333
|
+
// to support url param and language switcher
|
|
334
|
+
this.el.lang = this.locale;
|
|
335
|
+
await this._getTranslations();
|
|
336
|
+
}
|
|
328
337
|
/**
|
|
329
338
|
* Reset the toolInfos when mapHidden prop changes so we can show/hide any map dependant tool(s)
|
|
330
339
|
*/
|
|
@@ -557,10 +566,10 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
557
566
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
|
558
567
|
const showSearch = this._canShowFullTextSearch();
|
|
559
568
|
this._validateActiveActions();
|
|
560
|
-
return (h(Host, { key: '
|
|
561
|
-
h("div", { key: '
|
|
569
|
+
return (h(Host, { key: '5cbb5ba55c63eaf278666aac034a01d971d9f12a' }, h("calcite-shell", { key: '8a27d87fc002b72fe478d25885b2ab04261362ca' }, this._getTableControlRow("header"), h("div", { key: '250c356a30389b8cb95628953f3bb3ec5c88361d', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: '9d5dbb084031bdface1dbc3a1dbc2fa33eb163b5', class: "height-full width-full" }, showSearch &&
|
|
570
|
+
h("div", { key: '2d45ae4255a1d0e3cf14aa0f6a01915a38626bc7', class: "search-container" }, h("calcite-input", { key: 'c73546fef30db70d01cf8978a5daf9ea4193ddc2', class: "search", clearable: true, icon: "search", onCalciteInputChange: (evt) => void this._searchTextChanged(evt), placeholder: this._searchPlaceHolder, title: this._searchPlaceHolder, type: "search" })), h("calcite-loader", { key: '61621afb1e5fa67e25b878320c8497200b8265cd', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '0ef4fe0e4099ec60f4c38e2c421920c9a8fe3c4f', class: tableNodeClass, ref: this.onTableNodeCreate }))), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
|
562
571
|
.replace("{{total}}", total)
|
|
563
|
-
.replace("{{selected}}", selected))) : undefined), this.createFilterModal && this._filterModal(), h("delete-dialog", { key: '
|
|
572
|
+
.replace("{{selected}}", selected))) : undefined), this.createFilterModal && this._filterModal(), h("delete-dialog", { key: 'e2564b1d08476f762577247ffb41a00e5c41514c', id: "deleteDialogId", ids: this._getIds(), layer: this._layer, locale: this.locale, onDeleteDialogClose: () => this._deleteDialogOpen = false, open: this._deleteDialogOpen, ref: (el) => this._deleteDialog = el })));
|
|
564
573
|
}
|
|
565
574
|
_deleteDialog;
|
|
566
575
|
/**
|
|
@@ -736,7 +745,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
736
745
|
_getActionBar() {
|
|
737
746
|
const containerClass = this.isMobile ? "width-full" : "";
|
|
738
747
|
const mobileClass = this.isMobile ? "border-top" : "";
|
|
739
|
-
return (h("calcite-action-bar", { class: containerClass, expandDisabled: true, expanded: true, id: this._getId("bar"), layout: "horizontal" }, h("div", { class: `border-end ${containerClass} ${mobileClass}`, id: "solutions-map-layer-picker-container" }, h("map-layer-picker", { appearance: "transparent", defaultLayerId: this.defaultLayerId, display: "inline-flex", height: 50, isMobile: this.isMobile, mapView: this.mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, placeholderIcon: "layers", scale: "l", selectedIds: this._layer ? [this._layer?.id] : [], showSingleLayerAsLabel: true, showTables: true, type: "dropdown" })), !this.isMobile ? this._getActions() : undefined));
|
|
748
|
+
return (h("calcite-action-bar", { class: containerClass, expandDisabled: true, expanded: true, id: this._getId("bar"), layout: "horizontal" }, h("div", { class: `border-end ${containerClass} ${mobileClass}`, id: "solutions-map-layer-picker-container" }, h("map-layer-picker", { appearance: "transparent", defaultLayerId: this.defaultLayerId, display: "inline-flex", height: 50, isMobile: this.isMobile, locale: this.locale, mapView: this.mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, placeholderIcon: "layers", scale: "l", selectedIds: this._layer ? [this._layer?.id] : [], showSingleLayerAsLabel: true, showTables: true, type: "dropdown" })), !this.isMobile ? this._getActions() : undefined));
|
|
740
749
|
}
|
|
741
750
|
/**
|
|
742
751
|
* Get the actions that are used for various interactions with the table
|
|
@@ -1215,7 +1224,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
1215
1224
|
*/
|
|
1216
1225
|
_getDangerAction(icon, label, func, disabled) {
|
|
1217
1226
|
const _disabled = this._layer === undefined ? true : disabled;
|
|
1218
|
-
return (h("div", { class: "display-flex", id: this._getId(icon) }, icon === "trash" ? (h("delete-button", { buttonType: "action", class: "display-flex", disabled: _disabled, icon: icon, id: "solutions-delete", ids: this._getIds(), layer: this._layer })) : (h("calcite-action", { appearance: "solid", disabled: _disabled, id: icon, onClick: func, text: label }, h("calcite-button", { appearance: "transparent", iconStart: icon, kind: "danger" }, label))), this._getToolTip("bottom", icon, label)));
|
|
1227
|
+
return (h("div", { class: "display-flex", id: this._getId(icon) }, icon === "trash" ? (h("delete-button", { buttonType: "action", class: "display-flex", disabled: _disabled, icon: icon, id: "solutions-delete", ids: this._getIds(), layer: this._layer, locale: this.locale })) : (h("calcite-action", { appearance: "solid", disabled: _disabled, id: icon, onClick: func, text: label }, h("calcite-button", { appearance: "transparent", iconStart: icon, kind: "danger" }, label))), this._getToolTip("bottom", icon, label)));
|
|
1219
1228
|
}
|
|
1220
1229
|
/**
|
|
1221
1230
|
* Return all currently selected IDs from the table
|
|
@@ -1929,6 +1938,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
1929
1938
|
"enableInlineEdit": ["enableInlineEditWatchHandler"],
|
|
1930
1939
|
"enableShare": ["enableShareWatchHandler"],
|
|
1931
1940
|
"_controlsThatFit": ["_controlsThatFitWatchHandler"],
|
|
1941
|
+
"locale": ["localeWatchHandler"],
|
|
1932
1942
|
"mapHidden": ["mapHiddenWatchHandler"],
|
|
1933
1943
|
"isMobile": ["isMobileWatchHandler"],
|
|
1934
1944
|
"mapInfo": ["mapInfoWatchHandler"],
|
|
@@ -1948,6 +1958,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
1948
1958
|
"enableInlineEdit": [4, "enable-inline-edit"],
|
|
1949
1959
|
"enableShare": [4, "enable-share"],
|
|
1950
1960
|
"isMobile": [4, "is-mobile"],
|
|
1961
|
+
"locale": [1],
|
|
1951
1962
|
"mapHidden": [4, "map-hidden"],
|
|
1952
1963
|
"mapInfo": [16],
|
|
1953
1964
|
"mapView": [16],
|
|
@@ -1987,6 +1998,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
1987
1998
|
"enableInlineEdit": ["enableInlineEditWatchHandler"],
|
|
1988
1999
|
"enableShare": ["enableShareWatchHandler"],
|
|
1989
2000
|
"_controlsThatFit": ["_controlsThatFitWatchHandler"],
|
|
2001
|
+
"locale": ["localeWatchHandler"],
|
|
1990
2002
|
"mapHidden": ["mapHiddenWatchHandler"],
|
|
1991
2003
|
"isMobile": ["isMobileWatchHandler"],
|
|
1992
2004
|
"mapInfo": ["mapInfoWatchHandler"],
|
|
@@ -111,6 +111,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
|
|
|
111
111
|
this.homeZoomIndex = 3;
|
|
112
112
|
this.homeZoomPosition = "top-left";
|
|
113
113
|
this.homeZoomToolsSize = "m";
|
|
114
|
+
this.locale = undefined;
|
|
114
115
|
this.mapInfos = [];
|
|
115
116
|
this.mapWidgetsIndex = 0;
|
|
116
117
|
this.mapWidgetsPosition = "top-right";
|
|
@@ -260,6 +261,14 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
|
|
|
260
261
|
this._updateToolbar();
|
|
261
262
|
}
|
|
262
263
|
}
|
|
264
|
+
/**
|
|
265
|
+
* Fetch translations when the locale is updated
|
|
266
|
+
*/
|
|
267
|
+
async localeWatchHandler() {
|
|
268
|
+
// to support url param and language switcher
|
|
269
|
+
this.el.lang = this.locale;
|
|
270
|
+
await this._getTranslations();
|
|
271
|
+
}
|
|
263
272
|
/**
|
|
264
273
|
* watch for changes in map view and get the first layer
|
|
265
274
|
*/
|
|
@@ -392,7 +401,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
|
|
|
392
401
|
const mapHeightClass = this.mapInfos?.length > 1 || this.isMapLayout ? "map-height" : "height-full";
|
|
393
402
|
const progressClass = this.isMapLayout ? "" : "display-none";
|
|
394
403
|
this._validateActiveActions();
|
|
395
|
-
return (h(Host, { key: '
|
|
404
|
+
return (h(Host, { key: '0b617eeb40229e49a32f5e4a557bfa0f88588fae' }, h("div", { key: 'd93aa32cd31279e468e4570af231a3f3788b9897', class: `${mapContainerClass} width-full`, ref: (el) => this._toolbar = el }, this._getActionBar(), !this.isMobile && this.isMapLayout && this._getDropdown("more-table-options"), this.enableShare && !this.isMobile && this.isMapLayout ? this._getShare("share") : undefined), h("calcite-progress", { key: '0ac01b19752ded5ddf0b06723b30fa669b2f6933', class: progressClass, value: 0 }), h("div", { key: '256bc38d71e3de4ab7ba7328ce12c32fa9ef0d2b', class: `${mapHeightClass} ${mapClass}`, ref: (el) => (this._mapDiv = el) }), h("map-tools", { key: 'e86f179871e8b315ff8d6ecb87545d9af8222590', basemapConfig: this.basemapConfig, class: `box-shadow ${themeClass}`, enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, enableSingleExpand: this.enableSingleExpand, homeZoomToolsSize: this.homeZoomToolsSize, locale: this.locale, mapView: this.mapView, mapWidgetsSize: this.mapWidgetsSize, position: this.mapWidgetsPosition, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration, stackTools: this.stackTools, toolOrder: this.toolOrder })));
|
|
396
405
|
}
|
|
397
406
|
/**
|
|
398
407
|
* Called each time after the component is loaded
|
|
@@ -619,7 +628,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
|
|
|
619
628
|
const containerClass = this.isMapLayout ? "display-flex" : "display-block";
|
|
620
629
|
const mobileClass = this.isMobile ? "border-top" : "";
|
|
621
630
|
const headerElements = this.isMapLayout ? "" : "display-none";
|
|
622
|
-
return (h("calcite-action-bar", { class: containerClass, expandDisabled: true, expanded: true, id: this._getId("bar"), layout: "horizontal" }, h("map-picker", { class: mapPickerClass, isMapLayout: this.isMapLayout, mapInfos: this.mapInfos, ref: (el) => this._mapPicker = el }), h("div", { class: `mapView-header display-flex ${headerElements}` }, h("div", { class: `border-end ${containerClass} ${mobileClass}`, id: "solutions-map-layer-picker-container" }, this.mapView && h("map-layer-picker", { appearance: "transparent", defaultLayerId: this.defaultLayerId, display: "inline-flex", height: 50, isMobile: this.isMobile, mapView: this.mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, placeholderIcon: "layers", ref: (el) => this._mapLayerPicker = el, scale: "l", selectedIds: this.selectedLayer ? [this.selectedLayer.id] : [], showSingleLayerAsLabel: true, showTables: true, showTablesDisabled: true, type: "dropdown" }))), !this.isMobile && this.isMapLayout ? this._getActions() : undefined));
|
|
631
|
+
return (h("calcite-action-bar", { class: containerClass, expandDisabled: true, expanded: true, id: this._getId("bar"), layout: "horizontal" }, h("map-picker", { class: mapPickerClass, isMapLayout: this.isMapLayout, locale: this.locale, mapInfos: this.mapInfos, ref: (el) => this._mapPicker = el }), h("div", { class: `mapView-header display-flex ${headerElements}` }, h("div", { class: `border-end ${containerClass} ${mobileClass}`, id: "solutions-map-layer-picker-container" }, this.mapView && h("map-layer-picker", { appearance: "transparent", defaultLayerId: this.defaultLayerId, display: "inline-flex", height: 50, isMobile: this.isMobile, locale: this.locale, mapView: this.mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, placeholderIcon: "layers", ref: (el) => this._mapLayerPicker = el, scale: "l", selectedIds: this.selectedLayer ? [this.selectedLayer.id] : [], showSingleLayerAsLabel: true, showTables: true, showTablesDisabled: true, type: "dropdown" }))), !this.isMobile && this.isMapLayout ? this._getActions() : undefined));
|
|
623
632
|
}
|
|
624
633
|
/**
|
|
625
634
|
* Get a list of toolInfos that should display in the dropdown
|
|
@@ -957,6 +966,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
|
|
|
957
966
|
"appLayout": ["appLayoutWatchHandler"],
|
|
958
967
|
"enableHome": ["enableHomeWatchHandler"],
|
|
959
968
|
"enableShare": ["enableShareWatchHandler"],
|
|
969
|
+
"locale": ["localeWatchHandler"],
|
|
960
970
|
"mapView": ["mapViewWatchHandler"],
|
|
961
971
|
"selectedLayer": ["selectedLayerWatchHandler"],
|
|
962
972
|
"selectedFeaturesIds": ["selectedFeaturesIdsWatchHandler"],
|
|
@@ -981,6 +991,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
|
|
|
981
991
|
"homeZoomIndex": [2, "home-zoom-index"],
|
|
982
992
|
"homeZoomPosition": [1, "home-zoom-position"],
|
|
983
993
|
"homeZoomToolsSize": [1, "home-zoom-tools-size"],
|
|
994
|
+
"locale": [1],
|
|
984
995
|
"mapInfos": [16],
|
|
985
996
|
"mapWidgetsIndex": [2, "map-widgets-index"],
|
|
986
997
|
"mapWidgetsPosition": [1, "map-widgets-position"],
|
|
@@ -1011,6 +1022,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
|
|
|
1011
1022
|
"appLayout": ["appLayoutWatchHandler"],
|
|
1012
1023
|
"enableHome": ["enableHomeWatchHandler"],
|
|
1013
1024
|
"enableShare": ["enableShareWatchHandler"],
|
|
1025
|
+
"locale": ["localeWatchHandler"],
|
|
1014
1026
|
"mapView": ["mapViewWatchHandler"],
|
|
1015
1027
|
"selectedLayer": ["selectedLayerWatchHandler"],
|
|
1016
1028
|
"selectedFeaturesIds": ["selectedFeaturesIdsWatchHandler"],
|