@esri/solutions-components 0.10.39 → 0.10.41
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +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-block_5.cjs.entry.js +75 -65
- 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/instant-apps-app-guide.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-export.cjs.entry.js +5 -1
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +6 -6
- 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/instant-apps-app-guide.js +1 -1
- package/dist/components/instant-apps-export.js +5 -1
- package/dist/components/instant-apps-filter-list2.js +75 -66
- package/dist/components/instant-apps-landing-page.js +1 -1
- package/dist/components/instant-apps-sign-in2.js +2 -2
- package/dist/components/instant-apps-time-filter.js +6 -6
- 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-block_5.entry.js +75 -65
- 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/instant-apps-app-guide.entry.js +1 -1
- package/dist/esm/instant-apps-export.entry.js +5 -1
- package/dist/esm/instant-apps-landing-page.entry.js +1 -1
- package/dist/esm/instant-apps-sign-in.entry.js +2 -2
- package/dist/esm/instant-apps-time-filter.entry.js +6 -6
- 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/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-app-guide/instant-apps-app-guide.css +1 -1
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-landing-page/instant-apps-landing-page.css +43 -26
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-sign-in/instant-apps-sign-in.css +6 -0
- 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-523dcf4b.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-8f8c7045.entry.js +6 -0
- package/dist/solutions-components/p-953afbb3.entry.js +29 -0
- package/dist/solutions-components/{p-bb8b1ee2.entry.js → p-a2cf9fdc.entry.js} +1 -1
- package/dist/solutions-components/p-a7f56b28.entry.js +6 -0
- 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-e4107150.entry.js +6 -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 +8 -8
- 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-5b3c0418.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-750b3277.entry.js +0 -6
- package/dist/solutions-components/p-76154700.entry.js +0 -6
- package/dist/solutions-components/p-8779ee41.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-ca3cbd29.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-e1391389.entry.js +0 -29
- 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
@@ -1514,6 +1514,7 @@ const InstantAppsFilterList = class {
|
|
1514
1514
|
registerInstance(this, hostRef);
|
1515
1515
|
this.filterListReset = createEvent(this, "filterListReset", 7);
|
1516
1516
|
this.filterUpdate = createEvent(this, "filterUpdate", 7);
|
1517
|
+
this.isLayerExpUpdated = false;
|
1517
1518
|
this.layerExpressions = undefined;
|
1518
1519
|
this.autoUpdateUrl = false;
|
1519
1520
|
this.closeBtn = false;
|
@@ -1534,7 +1535,6 @@ const InstantAppsFilterList = class {
|
|
1534
1535
|
this.messages = undefined;
|
1535
1536
|
this.baseClass = baseClassLight;
|
1536
1537
|
this.disabled = true;
|
1537
|
-
this.hasLayerExpression = false;
|
1538
1538
|
this.initDefExpressions = undefined;
|
1539
1539
|
this.initMapImageExpressions = undefined;
|
1540
1540
|
this.initPointCloudFilters = undefined;
|
@@ -1543,11 +1543,9 @@ const InstantAppsFilterList = class {
|
|
1543
1543
|
this.handleWhenView();
|
1544
1544
|
}
|
1545
1545
|
watchLayerExpressions() {
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1549
|
-
this.hasLayerExpression = true;
|
1550
|
-
}
|
1546
|
+
this.resetAllFilters();
|
1547
|
+
this.filterLayerExpressions = structuredClone(this.layerExpressions);
|
1548
|
+
this.handleLayerExpressionsUpdate();
|
1551
1549
|
}
|
1552
1550
|
getFilterInitState() {
|
1553
1551
|
return Promise.resolve({
|
@@ -1557,7 +1555,6 @@ const InstantAppsFilterList = class {
|
|
1557
1555
|
});
|
1558
1556
|
}
|
1559
1557
|
forceReset() {
|
1560
|
-
this.filterLayerExpressions = structuredClone(this.layerExpressions);
|
1561
1558
|
this.handleResetFilter();
|
1562
1559
|
return this.initExpressions();
|
1563
1560
|
}
|
@@ -1572,28 +1569,28 @@ const InstantAppsFilterList = class {
|
|
1572
1569
|
}
|
1573
1570
|
return this.initExpressions();
|
1574
1571
|
}
|
1572
|
+
connectedCallback() {
|
1573
|
+
var _a;
|
1574
|
+
if (this.layerExpressions == null && this.view == null)
|
1575
|
+
return;
|
1576
|
+
this.isLayerExpUpdated = true;
|
1577
|
+
this.filterLayerExpressions = structuredClone(this.layerExpressions);
|
1578
|
+
this.disabled = ((_a = this.filterLayerExpressions) === null || _a === void 0 ? void 0 : _a.length) ? undefined : true;
|
1579
|
+
this.handleLayerExpressionsUpdate();
|
1580
|
+
}
|
1575
1581
|
async componentWillLoad() {
|
1576
1582
|
var _a;
|
1577
1583
|
this.baseClass = getMode(this.el) === 'dark' ? baseClassDark : baseClassLight;
|
1578
1584
|
await this.initializeModules();
|
1579
1585
|
getMessages(this);
|
1580
|
-
|
1586
|
+
if (this.isLayerExpUpdated)
|
1587
|
+
return;
|
1588
|
+
this.isLayerExpUpdated = true;
|
1581
1589
|
this.filterLayerExpressions = this.layerExpressions != null ? structuredClone(this.layerExpressions) : [];
|
1582
1590
|
this.disabled = ((_a = this.filterLayerExpressions) === null || _a === void 0 ? void 0 : _a.length) ? undefined : true;
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1586
|
-
if (name === 'view' && newValue != null) {
|
1587
|
-
this.handleWhenView();
|
1588
|
-
}
|
1589
|
-
else if (name === 'layerExpressions') {
|
1590
|
-
if (this.hasLayerExpression) {
|
1591
|
-
this.resetAllFilters();
|
1592
|
-
}
|
1593
|
-
this.filterLayerExpressions = structuredClone(this.layerExpressions);
|
1594
|
-
this.handleLayerExpressionsUpdate();
|
1595
|
-
this.hasLayerExpression = true;
|
1596
|
-
}
|
1591
|
+
if (this.view == null)
|
1592
|
+
return;
|
1593
|
+
this.handleLayerExpressionsUpdate();
|
1597
1594
|
}
|
1598
1595
|
componentWillRender() {
|
1599
1596
|
var _a;
|
@@ -1601,21 +1598,21 @@ const InstantAppsFilterList = class {
|
|
1601
1598
|
}
|
1602
1599
|
disconnectedCallback() {
|
1603
1600
|
if (this.resetFiltersOnDisconnect) {
|
1601
|
+
this.isLayerExpUpdated = false;
|
1604
1602
|
this.filterLayerExpressions = structuredClone(this.layerExpressions);
|
1605
1603
|
this.resetAllFilters();
|
1606
1604
|
}
|
1607
1605
|
}
|
1608
1606
|
async initializeModules() {
|
1609
|
-
const [intl, geometryJsonUtils
|
1607
|
+
const [intl, geometryJsonUtils] = await loadModules(['esri/intl', 'esri/geometry/support/jsonUtils']);
|
1610
1608
|
this.geometryJsonUtils = geometryJsonUtils;
|
1611
|
-
this.reactiveUtils = reactiveUtils;
|
1612
1609
|
this.locale = intl.getLocale();
|
1613
1610
|
this.intl = intl;
|
1614
1611
|
}
|
1615
1612
|
render() {
|
1616
1613
|
const filterConfig = this.loading ? this.renderLoading() : this.initFilterConfig();
|
1617
|
-
const footer = this.renderFooter(
|
1618
|
-
return (h(Host, { key: '
|
1614
|
+
const footer = this.renderFooter();
|
1615
|
+
return (h(Host, { key: '055d2a02c5118e59462af8759c6bf2f39304fd75' }, h("calcite-panel", { key: '0335c9b28101257551902737ef373543aebee1f6', class: this.baseClass, ref: el => (this.panelEl = el) }, h("slot", { key: '4b471e66583b3f2fd733688d65ce8d3b2acbeb66', slot: "header-content", name: "filter-header-content" }), h("slot", { key: 'f5832075687a6812b902643fd057587b438b38cf', slot: "header-actions-end", name: "filter-header-actions-end" }), h("div", { key: "filter-container", class: CSS$1.filterContainer }, filterConfig, footer))));
|
1619
1616
|
}
|
1620
1617
|
renderLoading() {
|
1621
1618
|
return h("calcite-loader", { label: "Loading filters..." });
|
@@ -1684,10 +1681,11 @@ const InstantAppsFilterList = class {
|
|
1684
1681
|
const check = min != null && max != null;
|
1685
1682
|
return check ? (h("label", { class: CSS$1.filterUIItemContainer }, h("span", null, expression === null || expression === void 0 ? void 0 : expression.name), h("div", { class: CSS$1.dateInputContainer }, h("calcite-input-date-picker", { id: expression === null || expression === void 0 ? void 0 : expression.id.toString(), onCalciteInputDatePickerChange: this.handleDatePickerRangeChange.bind(this, expression, layerExpression), min: min, max: max, "overlay-positioning": "fixed", lang: (_c = this.locale) !== null && _c !== void 0 ? _c : 'en', layout: "vertical", value: value, range: true }), h("calcite-action", { onClick: this.handleResetDatePicker.bind(this, expression, layerExpression), icon: "reset", text: (_d = this.messages) === null || _d === void 0 ? void 0 : _d.resetDatePicker, scale: "s" })))) : null;
|
1686
1683
|
}
|
1687
|
-
renderFooter(
|
1684
|
+
renderFooter() {
|
1688
1685
|
var _a, _b, _c;
|
1689
1686
|
const closeText = this.closeBtnText != null ? this.closeBtnText : (_a = this.messages) === null || _a === void 0 ? void 0 : _a.close;
|
1690
|
-
|
1687
|
+
const btnWidth = this.closeBtn && this.resetBtn ? 'half' : 'full';
|
1688
|
+
return (h("div", { class: CSS$1.footer, slot: "footer" }, this.resetBtn ? (h("calcite-button", { appearance: "outline", width: btnWidth, disabled: this.disabled, onClick: this.handleResetFilter.bind(this) }, (_b = this.messages) === null || _b === void 0 ? void 0 : _b.resetFilter)) : undefined, this.closeBtn ? (h("calcite-button", { appearance: "solid", width: btnWidth, kind: "brand", onClick: (_c = this.closeBtnOnClick) === null || _c === void 0 ? void 0 : _c.bind(this) }, closeText)) : undefined));
|
1691
1689
|
}
|
1692
1690
|
renderZoomTo(layerExpression) {
|
1693
1691
|
var _a;
|
@@ -1718,23 +1716,21 @@ const InstantAppsFilterList = class {
|
|
1718
1716
|
}
|
1719
1717
|
async initExpressions() {
|
1720
1718
|
this.loading = true;
|
1721
|
-
if (this.filterLayerExpressions == null)
|
1719
|
+
if (this.filterLayerExpressions == null || this.view == null)
|
1722
1720
|
return;
|
1723
|
-
|
1721
|
+
await this.processExpressions();
|
1724
1722
|
this.loading = false;
|
1725
|
-
this.filterLayerExpressions = [...tmpLE];
|
1726
1723
|
}
|
1727
1724
|
async processExpressions() {
|
1728
1725
|
var _a;
|
1729
1726
|
if (!this.filterLayerExpressions)
|
1730
|
-
return
|
1727
|
+
return;
|
1731
1728
|
for (const layerExpression of this.filterLayerExpressions) {
|
1732
1729
|
for (const expression of layerExpression.expressions || []) {
|
1733
1730
|
expression.active = (_a = expression.active) !== null && _a !== void 0 ? _a : expression.definitionExpression != null;
|
1734
1731
|
await this.setInitExpression(layerExpression, expression);
|
1735
1732
|
}
|
1736
1733
|
}
|
1737
|
-
return this.filterLayerExpressions;
|
1738
1734
|
}
|
1739
1735
|
handleResetFilter() {
|
1740
1736
|
var _a;
|
@@ -1804,6 +1800,8 @@ const InstantAppsFilterList = class {
|
|
1804
1800
|
}
|
1805
1801
|
resetAllFilters() {
|
1806
1802
|
var _a, _b, _c, _d, _e;
|
1803
|
+
if (this.initDefExpressions == null)
|
1804
|
+
return;
|
1807
1805
|
const allLayersAndTables = (_c = (_b = (_a = this.view) === null || _a === void 0 ? void 0 : _a.map) === null || _b === void 0 ? void 0 : _b.allLayers) === null || _c === void 0 ? void 0 : _c.concat((_e = (_d = this.view) === null || _d === void 0 ? void 0 : _d.map) === null || _e === void 0 ? void 0 : _e.allTables);
|
1808
1806
|
allLayersAndTables === null || allLayersAndTables === void 0 ? void 0 : allLayersAndTables.forEach(layer => {
|
1809
1807
|
var _a, _b;
|
@@ -1905,18 +1903,19 @@ const InstantAppsFilterList = class {
|
|
1905
1903
|
}
|
1906
1904
|
return false;
|
1907
1905
|
}
|
1908
|
-
updateCodedValueExpression(expression, layerField) {
|
1906
|
+
async updateCodedValueExpression(layerExpression, expression, layerField) {
|
1909
1907
|
var _a, _b;
|
1910
1908
|
if (!(layerField === null || layerField === void 0 ? void 0 : layerField.domain) || ((_a = layerField === null || layerField === void 0 ? void 0 : layerField.domain) === null || _a === void 0 ? void 0 : _a.type) !== 'coded-value') {
|
1911
1909
|
return false;
|
1912
1910
|
}
|
1911
|
+
const layer = this.findFilterLayer(layerExpression);
|
1912
|
+
await this.getFeatureAttributes(layer, expression);
|
1913
1913
|
const domain = layerField.domain;
|
1914
1914
|
const codedValuesMap = domain.codedValues.reduce((acc, { code, name }) => {
|
1915
1915
|
acc[code] = name;
|
1916
1916
|
return acc;
|
1917
1917
|
}, {});
|
1918
1918
|
expression.codedValues = codedValuesMap;
|
1919
|
-
expression.fields = Object.keys(codedValuesMap);
|
1920
1919
|
if ((_b = expression.selectedFields) === null || _b === void 0 ? void 0 : _b.length) {
|
1921
1920
|
const selectedFieldsExpression = expression.selectedFields.map((field) => (typeof field === 'number' ? field : `'${handleSingleQuote(field)}'`)).join(',');
|
1922
1921
|
expression.definitionExpression = `${expression.field} IN (${selectedFieldsExpression})`;
|
@@ -1985,7 +1984,7 @@ const InstantAppsFilterList = class {
|
|
1985
1984
|
if (features === null || features === void 0 ? void 0 : features.length) {
|
1986
1985
|
expression.fields = [...new Set(features)];
|
1987
1986
|
if (expression.type === 'string') {
|
1988
|
-
expression.fields = expression.fields.sort();
|
1987
|
+
expression.fields = expression.fields.sort((a, b) => a.localeCompare(b));
|
1989
1988
|
}
|
1990
1989
|
else if (expression.type === 'number') {
|
1991
1990
|
expression.fields = expression.fields.sort((a, b) => a - b);
|
@@ -2014,8 +2013,15 @@ const InstantAppsFilterList = class {
|
|
2014
2013
|
expression.fields.push(...features);
|
2015
2014
|
}
|
2016
2015
|
});
|
2017
|
-
expression.
|
2018
|
-
|
2016
|
+
if (expression.type === 'string') {
|
2017
|
+
expression.fields = [...new Set(expression.fields)].sort((a, b) => a.localeCompare(b));
|
2018
|
+
}
|
2019
|
+
else if (expression.type === 'number') {
|
2020
|
+
expression.fields = [...new Set(expression.fields)].sort((a, b) => a - b);
|
2021
|
+
}
|
2022
|
+
else {
|
2023
|
+
expression.fields = [...new Set(expression.fields)].sort();
|
2024
|
+
}
|
2019
2025
|
});
|
2020
2026
|
}
|
2021
2027
|
async queryForFeatures(layer, query, field) {
|
@@ -2098,13 +2104,14 @@ const InstantAppsFilterList = class {
|
|
2098
2104
|
case 'number':
|
2099
2105
|
return await this.updateNumberExpression(layerExpression, expression);
|
2100
2106
|
case 'date':
|
2101
|
-
return this.updateDateExpressionBasedOnDisplayOption(layerExpression, expression);
|
2107
|
+
return await this.updateDateExpressionBasedOnDisplayOption(layerExpression, expression);
|
2102
2108
|
case 'coded-value':
|
2103
|
-
return this.updateCodedValueExpression(expression, layerField);
|
2109
|
+
return await this.updateCodedValueExpression(layerExpression, expression, layerField);
|
2104
2110
|
case 'range':
|
2105
|
-
return this.updateRangeExpressionBasedOnDisplayOption(layerExpression, expression, layerField);
|
2111
|
+
return await this.updateRangeExpressionBasedOnDisplayOption(layerExpression, expression, layerField);
|
2106
2112
|
case 'checkbox':
|
2107
2113
|
case null:
|
2114
|
+
case undefined:
|
2108
2115
|
return (_a = expression.active) !== null && _a !== void 0 ? _a : false;
|
2109
2116
|
default:
|
2110
2117
|
return false;
|
@@ -2304,31 +2311,9 @@ const InstantAppsFilterList = class {
|
|
2304
2311
|
this.handleLayerExpressionsUpdate();
|
2305
2312
|
}
|
2306
2313
|
async handleLayerExpressionsUpdate() {
|
2307
|
-
|
2308
|
-
return;
|
2309
|
-
const map = this.view.map;
|
2310
|
-
this.initDefExpressions = {};
|
2311
|
-
this.initPointCloudFilters = {};
|
2312
|
-
this.initMapImageExpressions = {};
|
2313
|
-
map.allLayers.concat(map.allTables).forEach(layer => {
|
2314
|
-
if (!supportedTypes.includes(layer.type))
|
2315
|
-
return;
|
2316
|
-
const fl = layer;
|
2317
|
-
if (fl.type === 'point-cloud') {
|
2318
|
-
this.initPointCloudFilters[fl.id] = fl.filters;
|
2319
|
-
}
|
2320
|
-
else if (fl.type === 'map-image') {
|
2321
|
-
this.initMapImageExpressions[fl.id] = fl.allSublayers.reduce((acc, sublayer) => {
|
2322
|
-
acc[sublayer.id] = sublayer.definitionExpression;
|
2323
|
-
return acc;
|
2324
|
-
}, {});
|
2325
|
-
}
|
2326
|
-
else {
|
2327
|
-
this.initDefExpressions[fl.id] = fl.definitionExpression;
|
2328
|
-
}
|
2329
|
-
});
|
2330
|
-
this.initExpressions();
|
2314
|
+
this.updateInitExpressions();
|
2331
2315
|
this.handleURLParams();
|
2316
|
+
this.initExpressions();
|
2332
2317
|
}
|
2333
2318
|
async handleZoomTo(layerExpression) {
|
2334
2319
|
const zoomId = (layerExpression === null || layerExpression === void 0 ? void 0 : layerExpression.sublayerId) ? `#zoom-to-${layerExpression.id}-${layerExpression.sublayerId}` : `#zoom-to-${layerExpression.id}`;
|
@@ -2499,6 +2484,31 @@ const InstantAppsFilterList = class {
|
|
2499
2484
|
query.geometry = geometry;
|
2500
2485
|
query.spatialRelationship = 'intersects';
|
2501
2486
|
}
|
2487
|
+
updateInitExpressions() {
|
2488
|
+
if (this.view == null)
|
2489
|
+
return;
|
2490
|
+
const map = this.view.map;
|
2491
|
+
this.initDefExpressions = {};
|
2492
|
+
this.initPointCloudFilters = {};
|
2493
|
+
this.initMapImageExpressions = {};
|
2494
|
+
map.allLayers.concat(map.allTables).forEach(layer => {
|
2495
|
+
if (!supportedTypes.includes(layer.type))
|
2496
|
+
return;
|
2497
|
+
const fl = layer;
|
2498
|
+
if (fl.type === 'point-cloud') {
|
2499
|
+
this.initPointCloudFilters[fl.id] = fl.filters;
|
2500
|
+
}
|
2501
|
+
else if (fl.type === 'map-image') {
|
2502
|
+
this.initMapImageExpressions[fl.id] = fl.allSublayers.reduce((acc, sublayer) => {
|
2503
|
+
acc[sublayer.id] = sublayer.definitionExpression;
|
2504
|
+
return acc;
|
2505
|
+
}, {});
|
2506
|
+
}
|
2507
|
+
else {
|
2508
|
+
this.initDefExpressions[fl.id] = fl.definitionExpression;
|
2509
|
+
}
|
2510
|
+
});
|
2511
|
+
}
|
2502
2512
|
get el() { return getElement(this); }
|
2503
2513
|
static get watchers() { return {
|
2504
2514
|
"view": ["watchViewHandler"],
|
@@ -1217,6 +1217,7 @@ const MapLayerPicker = class {
|
|
1217
1217
|
this.enabledTableIds = [];
|
1218
1218
|
this.height = undefined;
|
1219
1219
|
this.isMobile = undefined;
|
1220
|
+
this.locale = undefined;
|
1220
1221
|
this.mapView = undefined;
|
1221
1222
|
this.onlyShowUpdatableLayers = undefined;
|
1222
1223
|
this.placeholderIcon = "";
|
@@ -1260,6 +1261,14 @@ const MapLayerPicker = class {
|
|
1260
1261
|
// Watch handlers
|
1261
1262
|
//
|
1262
1263
|
//--------------------------------------------------------------------------
|
1264
|
+
/**
|
1265
|
+
* Fetch translations when the locale is updated
|
1266
|
+
*/
|
1267
|
+
async localeWatchHandler() {
|
1268
|
+
// to support url param and language switcher
|
1269
|
+
this.el.lang = this.locale;
|
1270
|
+
await this._getTranslations();
|
1271
|
+
}
|
1263
1272
|
/**
|
1264
1273
|
* Called each time the mapView prop is changed.
|
1265
1274
|
*/
|
@@ -1341,7 +1350,7 @@ const MapLayerPicker = class {
|
|
1341
1350
|
const id = "map-layer-picker";
|
1342
1351
|
let style = this.height > 0 ? { "height": `${this.height.toString()}px` } : {};
|
1343
1352
|
style = { ...style, "display": this.display };
|
1344
|
-
return (h(Host, { key: '
|
1353
|
+
return (h(Host, { key: '33b19dbf87019ad071242aaa688e49f35e2c2808' }, h("div", { key: '85e781782fc529acae68b1137f8ec1a317b452a0', class: "map-layer-picker-container", style: style }, h("div", { key: 'c257b179b56939d998650c676e835c9976d9fb21', class: "map-layer-picker", style: style }, !this._hasValidLayers ? this._getInvalidPlaceholder() :
|
1345
1354
|
!this._hasMultipleLayers && this.showSingleLayerAsLabel ? this._getSingleLayerPlaceholder() :
|
1346
1355
|
this.type === "combobox" ? this._getCombobox(id) :
|
1347
1356
|
this.type === "select" ? this._getSelect(id) : this._getDropdown(id)))));
|
@@ -1592,6 +1601,7 @@ const MapLayerPicker = class {
|
|
1592
1601
|
this._translations = messages[0];
|
1593
1602
|
}
|
1594
1603
|
static get watchers() { return {
|
1604
|
+
"locale": ["localeWatchHandler"],
|
1595
1605
|
"mapView": ["mapViewWatchHandler"]
|
1596
1606
|
}; }
|
1597
1607
|
};
|
@@ -161,6 +161,7 @@ const CreateRelatedFeature = class {
|
|
161
161
|
this.fail = createEvent(this, "fail", 7);
|
162
162
|
this.isActionPending = createEvent(this, "isActionPending", 7);
|
163
163
|
this.formReady = createEvent(this, "formReady", 7);
|
164
|
+
this.locale = undefined;
|
164
165
|
this.mapView = undefined;
|
165
166
|
this.table = undefined;
|
166
167
|
this.selectedFeature = undefined;
|
@@ -206,6 +207,14 @@ const CreateRelatedFeature = class {
|
|
206
207
|
// Watch handlers
|
207
208
|
//
|
208
209
|
//--------------------------------------------------------------------------
|
210
|
+
/**
|
211
|
+
* Fetch translations when the locale is updated
|
212
|
+
*/
|
213
|
+
async localeWatchHandler() {
|
214
|
+
// to support url param and language switcher
|
215
|
+
this.el.lang = this.locale;
|
216
|
+
await this._getTranslations();
|
217
|
+
}
|
209
218
|
/**
|
210
219
|
* Called each time the mapView prop is changed.
|
211
220
|
*/
|
@@ -296,7 +305,7 @@ const CreateRelatedFeature = class {
|
|
296
305
|
}
|
297
306
|
render() {
|
298
307
|
const loaderClass = this._editorLoading ? "" : "display-none";
|
299
|
-
return (h(Fragment, { key: '
|
308
|
+
return (h(Fragment, { key: '48fffd1e9dd429d339d9a72e35f5c31561fc076f' }, this.showGuidingMsg && h("calcite-notice", { key: '9a6f700c135bb7593e4338981a30531e3d9fba8a', class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, h("div", { key: '7044e923a9fab833a7a6fe0bb97fa688d7e6eecc', slot: "message" }, this._translations.provideDetailsMsg)), h("calcite-loader", { key: '15599ae77e451d220689c13098a31c5788714306', class: loaderClass, label: "", scale: "s" })));
|
300
309
|
}
|
301
310
|
/**
|
302
311
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -483,6 +492,7 @@ const CreateRelatedFeature = class {
|
|
483
492
|
this._translations = messages[0];
|
484
493
|
}
|
485
494
|
static get watchers() { return {
|
495
|
+
"locale": ["localeWatchHandler"],
|
486
496
|
"mapView": ["mapViewWatchHandler"],
|
487
497
|
"_editorLoading": ["_editorLoadingWatchHandler"]
|
488
498
|
}; }
|
@@ -504,6 +514,7 @@ const FeatureDetails = class {
|
|
504
514
|
this.graphics = undefined;
|
505
515
|
this.reportingOptions = undefined;
|
506
516
|
this.layerItemsHash = undefined;
|
517
|
+
this.locale = undefined;
|
507
518
|
this.showUserImageInCommentsList = false;
|
508
519
|
this._likeFieldAvailable = false;
|
509
520
|
this._likeCount = 0;
|
@@ -652,12 +663,12 @@ const FeatureDetails = class {
|
|
652
663
|
render() {
|
653
664
|
//When related features found show comments list of only those features else comments list will be empty
|
654
665
|
const commentsListWhereClause = this._relatedFeaturesOIDs?.length > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
|
655
|
-
return (h("calcite-panel", { key: '
|
656
|
-
h("div", { key: '
|
657
|
-
h("calcite-button", { key: '
|
658
|
-
h("calcite-button", { key: '
|
659
|
-
h("calcite-button", { key: '
|
660
|
-
h("feature-list", { key: '
|
666
|
+
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) &&
|
667
|
+
h("div", { key: 'd53f5a1726e4c6299ffd04e266d84005181645f6', class: "buttons-container" }, this._commentsAvailable &&
|
668
|
+
h("calcite-button", { key: '4c2616cc9e0107258f5313b66ae96fa31fe582c5', appearance: "transparent", iconEnd: "speech-bubble", kind: "neutral", onClick: () => { this.addComment.emit(); }, scale: 'm' }, this._relatedFeaturesOIDs.length), this._likeFieldAvailable &&
|
669
|
+
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 &&
|
670
|
+
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 &&
|
671
|
+
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 })));
|
661
672
|
}
|
662
673
|
/**
|
663
674
|
* Load esri javascript api modules
|
@@ -942,6 +953,7 @@ const LayerList = class {
|
|
942
953
|
this.layersListLoaded = createEvent(this, "layersListLoaded", 7);
|
943
954
|
this.mapView = undefined;
|
944
955
|
this.layers = undefined;
|
956
|
+
this.locale = undefined;
|
945
957
|
this.showFeatureCount = true;
|
946
958
|
this.showNextIcon = false;
|
947
959
|
this.applyLayerViewFilter = false;
|
@@ -965,6 +977,14 @@ const LayerList = class {
|
|
965
977
|
// Watch handlers
|
966
978
|
//
|
967
979
|
//--------------------------------------------------------------------------
|
980
|
+
/**
|
981
|
+
* Fetch translations when the locale is updated
|
982
|
+
*/
|
983
|
+
async localeWatchHandler() {
|
984
|
+
// to support url param and language switcher
|
985
|
+
this.el.lang = this.locale;
|
986
|
+
await this._getTranslations();
|
987
|
+
}
|
968
988
|
//--------------------------------------------------------------------------
|
969
989
|
//
|
970
990
|
// Methods (public)
|
@@ -1013,9 +1033,9 @@ const LayerList = class {
|
|
1013
1033
|
* Renders the component.
|
1014
1034
|
*/
|
1015
1035
|
render() {
|
1016
|
-
return (h(Fragment, { key: '
|
1017
|
-
h("calcite-notice", { key: '
|
1018
|
-
h("calcite-list", { key: '
|
1036
|
+
return (h(Fragment, { key: 'a151c8fd65c50aacb23dcd0c858e52c0c7cd7e5e' }, this._isLoading && h("calcite-loader", { key: '544a134bccc29048ca80b996844cc944bcd97a24', label: "", scale: "m" }), !this._isLoading && this.mapView && this._noLayersToDisplay &&
|
1037
|
+
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 &&
|
1038
|
+
h("calcite-list", { key: '817de422b8387cafb7f9a17515cf9b3c13998522', "selection-appearance": "border", "selection-mode": "none" }, this.renderLayerList())));
|
1019
1039
|
}
|
1020
1040
|
//--------------------------------------------------------------------------
|
1021
1041
|
//
|
@@ -1141,6 +1161,9 @@ const LayerList = class {
|
|
1141
1161
|
const messages = await getLocaleComponentStrings(this.el);
|
1142
1162
|
this._translations = messages[0];
|
1143
1163
|
}
|
1164
|
+
static get watchers() { return {
|
1165
|
+
"locale": ["localeWatchHandler"]
|
1166
|
+
}; }
|
1144
1167
|
};
|
1145
1168
|
LayerList.style = LayerListStyle0;
|
1146
1169
|
|