@esri/solutions-components 0.10.39 → 0.10.41
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-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
|
@@ -1765,11 +1765,25 @@ const JsonEditor = class {
|
|
|
1765
1765
|
this.hasChanges = false;
|
|
1766
1766
|
this.hasErrors = false;
|
|
1767
1767
|
this.instanceid = "";
|
|
1768
|
+
this.locale = undefined;
|
|
1768
1769
|
this.value = "";
|
|
1769
1770
|
}
|
|
1770
1771
|
get el() { return getElement(this); }
|
|
1771
1772
|
//--------------------------------------------------------------------------
|
|
1772
1773
|
//
|
|
1774
|
+
// Watch handlers
|
|
1775
|
+
//
|
|
1776
|
+
//--------------------------------------------------------------------------
|
|
1777
|
+
/**
|
|
1778
|
+
* Fetch translations when the locale is updated
|
|
1779
|
+
*/
|
|
1780
|
+
async localeWatchHandler() {
|
|
1781
|
+
// to support url param and language switcher
|
|
1782
|
+
this.el.lang = this.locale;
|
|
1783
|
+
await this._getTranslations();
|
|
1784
|
+
}
|
|
1785
|
+
//--------------------------------------------------------------------------
|
|
1786
|
+
//
|
|
1773
1787
|
// Lifecycle
|
|
1774
1788
|
//
|
|
1775
1789
|
//--------------------------------------------------------------------------
|
|
@@ -1836,7 +1850,7 @@ const JsonEditor = class {
|
|
|
1836
1850
|
* Renders the component.
|
|
1837
1851
|
*/
|
|
1838
1852
|
render() {
|
|
1839
|
-
return (h(Host, { key: '
|
|
1853
|
+
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" })))));
|
|
1840
1854
|
}
|
|
1841
1855
|
//--------------------------------------------------------------------------
|
|
1842
1856
|
//
|
|
@@ -2150,6 +2164,9 @@ const JsonEditor = class {
|
|
|
2150
2164
|
}
|
|
2151
2165
|
}
|
|
2152
2166
|
static get assetsDirs() { return ["assets"]; }
|
|
2167
|
+
static get watchers() { return {
|
|
2168
|
+
"locale": ["localeWatchHandler"]
|
|
2169
|
+
}; }
|
|
2153
2170
|
};
|
|
2154
2171
|
JsonEditor.style = JsonEditorStyle0;
|
|
2155
2172
|
|
|
@@ -2160,6 +2177,7 @@ const SolutionItemDetails = class {
|
|
|
2160
2177
|
constructor(hostRef) {
|
|
2161
2178
|
registerInstance(this, hostRef);
|
|
2162
2179
|
this.itemId = "";
|
|
2180
|
+
this.locale = undefined;
|
|
2163
2181
|
this.itemDetails = {
|
|
2164
2182
|
accessInformation: "",
|
|
2165
2183
|
description: "",
|
|
@@ -2176,6 +2194,19 @@ const SolutionItemDetails = class {
|
|
|
2176
2194
|
get el() { return getElement(this); }
|
|
2177
2195
|
//--------------------------------------------------------------------------
|
|
2178
2196
|
//
|
|
2197
|
+
// Watch handlers
|
|
2198
|
+
//
|
|
2199
|
+
//--------------------------------------------------------------------------
|
|
2200
|
+
/**
|
|
2201
|
+
* Fetch translations when the locale is updated
|
|
2202
|
+
*/
|
|
2203
|
+
async localeWatchHandler() {
|
|
2204
|
+
// to support url param and language switcher
|
|
2205
|
+
this.el.lang = this.locale;
|
|
2206
|
+
await this._getTranslations();
|
|
2207
|
+
}
|
|
2208
|
+
//--------------------------------------------------------------------------
|
|
2209
|
+
//
|
|
2179
2210
|
// Lifecycle
|
|
2180
2211
|
//
|
|
2181
2212
|
//--------------------------------------------------------------------------
|
|
@@ -2197,7 +2228,7 @@ const SolutionItemDetails = class {
|
|
|
2197
2228
|
* Renders the component.
|
|
2198
2229
|
*/
|
|
2199
2230
|
render() {
|
|
2200
|
-
return (h(Host, { key: '
|
|
2231
|
+
return (h(Host, { key: '9a0ddf363cb5e8abc5cbfd45ec0958befd81415d' }, h("div", { key: '0efb572f551fe4962ea9114bd32dc2004d47e00a', class: "parent-container" }, h("div", { key: '57ba57b956322c3339ea9265640def266717493b', class: "inputBottomSeparation" }, h("calcite-input", { key: 'e359cea6b2e94823970bbf8beb93e117963fa730', id: "item-title", value: this.itemDetails.title })), h("div", { key: 'c7b490a6f1f64ec2b10e8796ad3826d88e25280c', class: "inputBottomSeparation" }, h("input", { key: '776e1efb6ee1e29e75727f984165fa77bc36515d', accept: ".jpg,.gif,.png,image/jpg,image/gif,image/png", class: "display-none", onChange: (event) => (this._updateThumbnail(event)), ref: (el) => (this.browseForThumbnail = el), type: "file" }), h("button", { key: '12ece37e4d8ae802cb4fc2dbd3e1843496c674cb', class: "font-size--3 btn-link inline-block trailer-quarter", onClick: () => this._getThumbnail() }, h("svg", { key: '5301bac0dd37771122384b968aca05eb9a714a12', class: "icon-inline icon-inline--on-left", height: "16", viewBox: "0 0 16 16", width: "16" }, h("path", { key: 'a73dbc1d758fa28afe87dfc36efb5085f115b09c', d: "M14.792 2.666l-1.414-1.413a.965.965 0 0 0-1.385-.03l-1.444 1.444-8.763 8.72L.03 15.481a.371.371 0 0 0 .488.488l4.096-1.756 8.763-8.72-.001-.001.002.002 1.443-1.444a.965.965 0 0 0-.03-1.385zM1.569 14.431l.554-1.293.74.739zm2.338-.924l-1.414-1.414 7.963-7.92 1.414 1.415zm8.67-8.626l-1.413-1.414 1.29-1.29a.306.306 0 0 1 .433 0l.981.98a.306.306 0 0 1 0 .433z" })), this._translations.editThumbnail), h("div", { key: 'c07d1d3b4f38672855b2a4f3cfd66b91d85ad050', class: "flex" }, h("div", { key: '7de852550f467b8bb0bd8fa87c72552747d7397b', class: "img-container", ref: (el) => (this.thumbnailContainer = el) }, h("img", { key: '7111cafeabac088b5ff729eed71746966ea66ae2', class: "scale-down", height: "133", id: "item-thumbnail", ref: (el) => (this.thumbnail = el), width: "200" })), h("div", { key: '4b0be864e8c38b9a8185ba301582a742cbf8188a', class: "snippet-count-container" }, h("calcite-input", { key: '9e307dc8a67f77dc61e0deeaf3aa528007921b1b', id: "item-snippet", maxLength: 250, type: "textarea", value: this.itemDetails.snippet }), h("label", { key: '83c0d63adc182afcb83f45bcbcec778552768b65', class: "font-size--3", id: "item-snippet-count", ref: (el) => (this.itemSnippetCount = el) })))), h("calcite-label", { key: '1e17c1ae545adb010e216ac566e9cba5eec1fc1a' }, this._translations.description, h("label", { key: 'c0e125cd881b013af6da14de78635f9922163e39', id: "item-description-label" }, h("calcite-input", { key: '1cf2cb27f67edfee86fc9a36ae296f81ef6c4429', id: "item-description", type: "textarea", value: this.itemDetails.description }))), h("calcite-label", { key: '1f61dee7f09260a0277af8a8e3d620e229ce4225' }, this._translations.tags, h("label", { key: '73820279fa0134328f24741857e028c89b5caebc', id: "item-tags-label" }, h("calcite-input", { key: '88dc8f7cd156dfa5f52ae8412241c2f0bfca357c', id: "item-tags", value: (this.itemDetails.tags && Array.isArray(this.itemDetails.tags) ? this.itemDetails.tags : [this.itemDetails.tags]).join(",") }))), this.itemType !== "Group" ? h("calcite-label", null, this._translations.credits, h("label", { id: "item-credits-label" }, h("calcite-input", { id: "item-credits", value: this.itemDetails.accessInformation }))) : null, this.itemType !== "Group" ? h("calcite-label", null, h("label", { id: "item-terms-label" }, this._translations.termsOfUse, h("calcite-input", { id: "item-terms", type: "textarea", value: this.itemDetails.licenseInfo }))) : null)));
|
|
2201
2232
|
}
|
|
2202
2233
|
componentDidRender() {
|
|
2203
2234
|
this._loadThumb();
|
|
@@ -2342,6 +2373,9 @@ const SolutionItemDetails = class {
|
|
|
2342
2373
|
const translations = await getLocaleComponentStrings(this.el);
|
|
2343
2374
|
this._translations = translations[0];
|
|
2344
2375
|
}
|
|
2376
|
+
static get watchers() { return {
|
|
2377
|
+
"locale": ["localeWatchHandler"]
|
|
2378
|
+
}; }
|
|
2345
2379
|
};
|
|
2346
2380
|
SolutionItemDetails.style = SolutionItemDetailsStyle0;
|
|
2347
2381
|
|
|
@@ -2352,14 +2386,28 @@ const SolutionItemSharing = class {
|
|
|
2352
2386
|
constructor(hostRef) {
|
|
2353
2387
|
registerInstance(this, hostRef);
|
|
2354
2388
|
this.groupId = "";
|
|
2389
|
+
this.locale = undefined;
|
|
2355
2390
|
this._translations = undefined;
|
|
2356
2391
|
this.sharing = [];
|
|
2357
2392
|
}
|
|
2358
2393
|
get el() { return getElement(this); }
|
|
2394
|
+
//--------------------------------------------------------------------------
|
|
2395
|
+
//
|
|
2396
|
+
// Watch handlers
|
|
2397
|
+
//
|
|
2398
|
+
//--------------------------------------------------------------------------
|
|
2359
2399
|
itemIdWatchHandler() {
|
|
2360
2400
|
const itemEdit = state.getItemInfo(this.groupId);
|
|
2361
2401
|
this.sharing = itemEdit.groupDetails;
|
|
2362
2402
|
}
|
|
2403
|
+
/**
|
|
2404
|
+
* Fetch translations when the locale is updated
|
|
2405
|
+
*/
|
|
2406
|
+
async localeWatchHandler() {
|
|
2407
|
+
// to support url param and language switcher
|
|
2408
|
+
this.el.lang = this.locale;
|
|
2409
|
+
await this._getTranslations();
|
|
2410
|
+
}
|
|
2363
2411
|
//--------------------------------------------------------------------------
|
|
2364
2412
|
//
|
|
2365
2413
|
// Lifecycle
|
|
@@ -2375,7 +2423,7 @@ const SolutionItemSharing = class {
|
|
|
2375
2423
|
* Renders the component.
|
|
2376
2424
|
*/
|
|
2377
2425
|
render() {
|
|
2378
|
-
return (h(Host, { key: '
|
|
2426
|
+
return (h(Host, { key: '1c7dbee68fbf0eabf736fb783f173ade2f408122' }, h("div", { key: '3c3d88ab122d4a8bc69363224a2754c4a4b092ba', class: "container-border" }, h("calcite-label", { key: '137bb704b258a3cd1e5e5b7a18c53aca331d7f91' }, this._translations.groupInfo), this._renderItems(this.sharing))));
|
|
2379
2427
|
}
|
|
2380
2428
|
//--------------------------------------------------------------------------
|
|
2381
2429
|
//
|
|
@@ -2459,7 +2507,8 @@ const SolutionItemSharing = class {
|
|
|
2459
2507
|
this._translations = translations[0];
|
|
2460
2508
|
}
|
|
2461
2509
|
static get watchers() { return {
|
|
2462
|
-
"groupId": ["itemIdWatchHandler"]
|
|
2510
|
+
"groupId": ["itemIdWatchHandler"],
|
|
2511
|
+
"locale": ["localeWatchHandler"]
|
|
2463
2512
|
}; }
|
|
2464
2513
|
};
|
|
2465
2514
|
SolutionItemSharing.style = SolutionItemSharingStyle0;
|
|
@@ -2471,11 +2520,25 @@ const SolutionOrganizationVariables = class {
|
|
|
2471
2520
|
constructor(hostRef) {
|
|
2472
2521
|
registerInstance(this, hostRef);
|
|
2473
2522
|
this.organizationVariableSelected = createEvent(this, "organizationVariableSelected", 7);
|
|
2523
|
+
this.locale = undefined;
|
|
2474
2524
|
this.value = "";
|
|
2475
2525
|
this._organizationVariables = [];
|
|
2476
2526
|
this._translations = undefined;
|
|
2477
2527
|
}
|
|
2478
2528
|
get el() { return getElement(this); }
|
|
2529
|
+
//--------------------------------------------------------------------------
|
|
2530
|
+
//
|
|
2531
|
+
// Watch handlers
|
|
2532
|
+
//
|
|
2533
|
+
//--------------------------------------------------------------------------
|
|
2534
|
+
/**
|
|
2535
|
+
* Fetch translations when the locale is updated
|
|
2536
|
+
*/
|
|
2537
|
+
async localeWatchHandler() {
|
|
2538
|
+
// to support url param and language switcher
|
|
2539
|
+
this.el.lang = this.locale;
|
|
2540
|
+
await this._getTranslations();
|
|
2541
|
+
}
|
|
2479
2542
|
valueWatchHandler() {
|
|
2480
2543
|
this._organizationVariables = JSON.parse(this.value);
|
|
2481
2544
|
}
|
|
@@ -2494,7 +2557,7 @@ const SolutionOrganizationVariables = class {
|
|
|
2494
2557
|
* Renders the component.
|
|
2495
2558
|
*/
|
|
2496
2559
|
render() {
|
|
2497
|
-
return (h(Host, { key: '
|
|
2560
|
+
return (h(Host, { key: '3f72a5c1b8fb6bcdab858ee061eadb38cb9965d9' }, h("div", { key: '118c7cafc8330c44e72a59a76fd81ca0f39696e1' }, h("h4", { key: '86934bdf3cbf162a732a53579e324c5fff8beead', class: "org-var-header" }, this._translations.orgVariables)), h("div", { key: 'ed5c1df397286a7d1c8e61b5ce04623fa13d74cc', class: "container-border" }, h("calcite-tree", { key: '47f4f9bf5a81ded9a37a33a94fac6a230263e917', id: "variable-label" }, this._renderHierarchy(this._organizationVariables)))));
|
|
2498
2561
|
}
|
|
2499
2562
|
//--------------------------------------------------------------------------
|
|
2500
2563
|
//
|
|
@@ -2550,6 +2613,7 @@ const SolutionOrganizationVariables = class {
|
|
|
2550
2613
|
this._translations = translations[0];
|
|
2551
2614
|
}
|
|
2552
2615
|
static get watchers() { return {
|
|
2616
|
+
"locale": ["localeWatchHandler"],
|
|
2553
2617
|
"value": ["valueWatchHandler"]
|
|
2554
2618
|
}; }
|
|
2555
2619
|
};
|
|
@@ -2563,11 +2627,17 @@ const SolutionResourceItem = class {
|
|
|
2563
2627
|
registerInstance(this, hostRef);
|
|
2564
2628
|
this.authentication = undefined;
|
|
2565
2629
|
this.itemId = "";
|
|
2630
|
+
this.locale = undefined;
|
|
2566
2631
|
this.resourceFilePaths = [];
|
|
2567
2632
|
this.resources = [];
|
|
2568
2633
|
this._translations = undefined;
|
|
2569
2634
|
}
|
|
2570
2635
|
get el() { return getElement(this); }
|
|
2636
|
+
//--------------------------------------------------------------------------
|
|
2637
|
+
//
|
|
2638
|
+
// Watch handlers
|
|
2639
|
+
//
|
|
2640
|
+
//--------------------------------------------------------------------------
|
|
2571
2641
|
itemIdWatchHandler() {
|
|
2572
2642
|
const item = state.getItemInfo(this.itemId);
|
|
2573
2643
|
this.resourceFilePaths = item.resourceFilePaths;
|
|
@@ -2576,6 +2646,14 @@ const SolutionResourceItem = class {
|
|
|
2576
2646
|
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
|
2577
2647
|
(path) => path.substring(path.lastIndexOf("/") + 1));
|
|
2578
2648
|
}
|
|
2649
|
+
/**
|
|
2650
|
+
* Fetch translations when the locale is updated
|
|
2651
|
+
*/
|
|
2652
|
+
async localeWatchHandler() {
|
|
2653
|
+
// to support url param and language switcher
|
|
2654
|
+
this.el.lang = this.locale;
|
|
2655
|
+
await this._getTranslations();
|
|
2656
|
+
}
|
|
2579
2657
|
//--------------------------------------------------------------------------
|
|
2580
2658
|
//
|
|
2581
2659
|
// Lifecycle
|
|
@@ -2592,7 +2670,7 @@ const SolutionResourceItem = class {
|
|
|
2592
2670
|
*/
|
|
2593
2671
|
render() {
|
|
2594
2672
|
const hasValidResources = this._hasValidResources();
|
|
2595
|
-
return (h(Host, { key: '
|
|
2673
|
+
return (h(Host, { key: '13f2759a882d2eca48bf9dda58e74caade76142b' }, h("div", { key: '498ced2e29b8af9138a8aa9d77ec78e07e3c64de', class: "resource-item" }, h("div", { key: 'd76a967373a990906a67d88ea6466030c41401ff', class: "margin-bottom-1" }, h("calcite-button", { key: '96cd2ee08adadef9e1b29db12c38d4748b0689c0', appearance: "solid", class: "resource-button", color: "blue", onClick: () => this._addNewResource() }, this._translations.addResource), h("calcite-button", { key: '49326139cad065995512d3e3568c7d8e7f5cef4f', appearance: "solid", color: "blue", disabled: !hasValidResources, onClick: () => this._downloadAll() }, this._translations.downloadAll)), h("div", { key: '9c056d9ab7242ea10cbcf57eaabce4bd9777541e', class: "resources-container", style: { display: hasValidResources ? "inherit" : "none" } }, this._renderResourceList()))));
|
|
2596
2674
|
}
|
|
2597
2675
|
_removedResources = {};
|
|
2598
2676
|
//--------------------------------------------------------------------------
|
|
@@ -2814,7 +2892,8 @@ const SolutionResourceItem = class {
|
|
|
2814
2892
|
this._translations = translations[0];
|
|
2815
2893
|
}
|
|
2816
2894
|
static get watchers() { return {
|
|
2817
|
-
"itemId": ["itemIdWatchHandler"]
|
|
2895
|
+
"itemId": ["itemIdWatchHandler"],
|
|
2896
|
+
"locale": ["localeWatchHandler"]
|
|
2818
2897
|
}; }
|
|
2819
2898
|
};
|
|
2820
2899
|
SolutionResourceItem.style = SolutionResourceItemStyle0;
|
|
@@ -2832,6 +2911,19 @@ const SolutionTemplateData = class {
|
|
|
2832
2911
|
}
|
|
2833
2912
|
//--------------------------------------------------------------------------
|
|
2834
2913
|
//
|
|
2914
|
+
// Watch handlers
|
|
2915
|
+
//
|
|
2916
|
+
//--------------------------------------------------------------------------
|
|
2917
|
+
/**
|
|
2918
|
+
* Fetch translations when the locale is updated
|
|
2919
|
+
*/
|
|
2920
|
+
async localeWatchHandler() {
|
|
2921
|
+
// to support url param and language switcher
|
|
2922
|
+
this.el.lang = this.locale;
|
|
2923
|
+
await this._getTranslations();
|
|
2924
|
+
}
|
|
2925
|
+
//--------------------------------------------------------------------------
|
|
2926
|
+
//
|
|
2835
2927
|
// Lifecycle
|
|
2836
2928
|
//
|
|
2837
2929
|
//--------------------------------------------------------------------------
|
|
@@ -2839,6 +2931,7 @@ const SolutionTemplateData = class {
|
|
|
2839
2931
|
registerInstance(this, hostRef);
|
|
2840
2932
|
this.instanceid = "";
|
|
2841
2933
|
this.itemId = "";
|
|
2934
|
+
this.locale = undefined;
|
|
2842
2935
|
this.organizationVariables = "";
|
|
2843
2936
|
this.solutionVariables = "";
|
|
2844
2937
|
this.varsOpen = true;
|
|
@@ -2874,7 +2967,7 @@ const SolutionTemplateData = class {
|
|
|
2874
2967
|
* Renders the component.
|
|
2875
2968
|
*/
|
|
2876
2969
|
render() {
|
|
2877
|
-
return (h(Host, { key: '
|
|
2970
|
+
return (h(Host, { key: '3f853006c19509c8cf484d4420b3f687aaad5161' }, h("div", { key: 'f524e1ee3c8dc972779be0909372c11c26092dd0', class: "solution-data-container" }, h("calcite-shell", { key: '56797702bc53b08051360975dc529c884eb7d294', class: "light var-container", dir: "ltr" }, h("calcite-panel", { key: '6208ac7b63ab8b69bc29ad88abdb9bcdeaaa707a', class: "json-editor" }, h("div", { key: '66e99550359b5665b4dd04f794d8108e4ee34284', class: "solution-data-child-container calcite-match-height" }, h("json-editor", { key: '7a7f5afa5d424fb6099b7167f274ce211e791a56', class: "solution-data-editor-container", instanceid: this.itemId + "|" + this.instanceid, locale: this.locale, value: this.value }))), h("calcite-shell-panel", { key: '7cc8bac91bfc5be96018d005cc87be457278ed6d', "height-scale": "l", position: "end", slot: "contextual-panel", "width-scale": "xs" }, h("div", { key: '4ce0c251d30d5735781394f5c213523867205886', class: this.varsOpen ? "solution-data-child-container" : "solution-data-child-container-collapsed" }, h("calcite-button", { key: '814c8996b854102b022f7ac482498dd6aac36ec8', appearance: "transparent", class: "collapse-btn", "icon-start": this.varsOpen ? "chevrons-right" : "chevrons-left", id: "collapse-vars", onClick: () => this._toggleVars(), scale: "s", title: this.varsOpen ? this._translations.collapse : this._translations.expand }), h("div", { key: '6b872cfc1c60870fb6262808f5d9f61cc35f0f44', class: this.varsOpen ? "org-vars" : "org-vars display-none", id: "orgVars" }, h("solution-organization-variables", { key: 'e8e9ee594b6dcb5ddaabd05c322fb33d568ac7b5', locale: this.locale, value: this.organizationVariables })), h("div", { key: '109d17a77a54a13818af6aa2a9beb92526100ea7', class: this.varsOpen ? "sol-vars" : "sol-vars display-none", id: "solVars" }, h("solution-variables", { key: '46902ed69897ed01334def99817fedafbda2e8d5', locale: this.locale, value: this.solutionVariables }))))))));
|
|
2878
2971
|
}
|
|
2879
2972
|
_initializing = false;
|
|
2880
2973
|
//--------------------------------------------------------------------------
|
|
@@ -2913,7 +3006,8 @@ const SolutionTemplateData = class {
|
|
|
2913
3006
|
this._translations = translations[0];
|
|
2914
3007
|
}
|
|
2915
3008
|
static get watchers() { return {
|
|
2916
|
-
"itemId": ["itemIdWatchHandler"]
|
|
3009
|
+
"itemId": ["itemIdWatchHandler"],
|
|
3010
|
+
"locale": ["localeWatchHandler"]
|
|
2917
3011
|
}; }
|
|
2918
3012
|
};
|
|
2919
3013
|
SolutionTemplateData.style = SolutionTemplateDataStyle0;
|
|
@@ -2926,10 +3020,24 @@ const SolutionVariables = class {
|
|
|
2926
3020
|
registerInstance(this, hostRef);
|
|
2927
3021
|
this.solutionVariableSelected = createEvent(this, "solutionVariableSelected", 7);
|
|
2928
3022
|
this.value = "";
|
|
3023
|
+
this.locale = undefined;
|
|
2929
3024
|
this._solutionVariables = [];
|
|
2930
3025
|
this._translations = undefined;
|
|
2931
3026
|
}
|
|
2932
3027
|
get el() { return getElement(this); }
|
|
3028
|
+
//--------------------------------------------------------------------------
|
|
3029
|
+
//
|
|
3030
|
+
// Watch handlers
|
|
3031
|
+
//
|
|
3032
|
+
//--------------------------------------------------------------------------
|
|
3033
|
+
/**
|
|
3034
|
+
* Fetch translations when the locale is updated
|
|
3035
|
+
*/
|
|
3036
|
+
async localeWatchHandler() {
|
|
3037
|
+
// to support url param and language switcher
|
|
3038
|
+
this.el.lang = this.locale;
|
|
3039
|
+
await this._getTranslations();
|
|
3040
|
+
}
|
|
2933
3041
|
valueWatchHandler() {
|
|
2934
3042
|
this._solutionVariables = JSON.parse(this.value);
|
|
2935
3043
|
}
|
|
@@ -2948,7 +3056,7 @@ const SolutionVariables = class {
|
|
|
2948
3056
|
* Renders the component.
|
|
2949
3057
|
*/
|
|
2950
3058
|
render() {
|
|
2951
|
-
return (h(Host, { key: '
|
|
3059
|
+
return (h(Host, { key: 'a90cdfc9a32279cb07938fc57f9dd7e38d822f6d' }, h("div", { key: '6826e3dd84034368f419ff759962a721a275dc9c' }, h("h4", { key: '5ebdf456e8c4dc006b036dc182fa75218aac0e01', class: "org-var-header" }, this._translations.solVariables)), h("div", { key: '06fc04c1e61dc1897989e3cc11df7b173f1fdb2a', class: "container-border" }, h("calcite-tree", { key: '15500194129af7440ec05dc495b060fc18f22324', id: "variable-label" }, this._renderHierarchy(this._solutionVariables)))));
|
|
2952
3060
|
}
|
|
2953
3061
|
//--------------------------------------------------------------------------
|
|
2954
3062
|
//
|
|
@@ -3015,6 +3123,7 @@ const SolutionVariables = class {
|
|
|
3015
3123
|
this._translations = translations[0];
|
|
3016
3124
|
}
|
|
3017
3125
|
static get watchers() { return {
|
|
3126
|
+
"locale": ["localeWatchHandler"],
|
|
3018
3127
|
"value": ["valueWatchHandler"]
|
|
3019
3128
|
}; }
|
|
3020
3129
|
};
|
|
@@ -215,6 +215,7 @@ const DeleteButton = class {
|
|
|
215
215
|
this.icon = undefined;
|
|
216
216
|
this.ids = [];
|
|
217
217
|
this.layer = undefined;
|
|
218
|
+
this.locale = undefined;
|
|
218
219
|
this._confirmDelete = false;
|
|
219
220
|
this._deleteEndabled = false;
|
|
220
221
|
this._supportsDelete = undefined;
|
|
@@ -243,6 +244,14 @@ const DeleteButton = class {
|
|
|
243
244
|
async layerWatchHandler() {
|
|
244
245
|
this._setDeleteEnabled();
|
|
245
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* Fetch translations when the locale is updated
|
|
249
|
+
*/
|
|
250
|
+
async localeWatchHandler() {
|
|
251
|
+
// to support url param and language switcher
|
|
252
|
+
this.el.lang = this.locale;
|
|
253
|
+
await this._getTranslations();
|
|
254
|
+
}
|
|
246
255
|
//--------------------------------------------------------------------------
|
|
247
256
|
//
|
|
248
257
|
// Methods (public)
|
|
@@ -274,7 +283,7 @@ const DeleteButton = class {
|
|
|
274
283
|
* Renders the component.
|
|
275
284
|
*/
|
|
276
285
|
render() {
|
|
277
|
-
return (h(Host, { key: '
|
|
286
|
+
return (h(Host, { key: '1816da3d5cd7903b4e699dffa4ac4836dca722bb' }, this.buttonType === "button" ? (h("calcite-button", { appearance: "outline", disabled: !this._deleteEndabled, id: "solutions-delete", kind: "danger", onClick: () => this._delete(), width: "full" }, this._translations.deleteCount.replace("{{n}}", this.ids.length.toString()))) : (h("calcite-action", { appearance: "solid", compact: true, disabled: !this._deleteEndabled, id: this.icon, onClick: () => this._delete(), scale: "s", text: this._translations.delete }, h("calcite-button", { appearance: "transparent", iconStart: this.icon, kind: "danger" }, this._translations.delete))), this._deleteMessage(), h("calcite-tooltip", { key: '26fc4d4b4ea02b7a6c5e3f87abe2c5b8f96a3654', placement: "bottom", "reference-element": this.buttonType === "button" ? "solutions-delete" : this.icon }, h("span", { key: 'c2f7b101bb3a99274fe7f364ad29365c212d856e' }, this._translations.delete))));
|
|
278
287
|
}
|
|
279
288
|
/**
|
|
280
289
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
|
@@ -308,7 +317,7 @@ const DeleteButton = class {
|
|
|
308
317
|
* @returns node to confirm or deny the delete operation
|
|
309
318
|
*/
|
|
310
319
|
_deleteMessage() {
|
|
311
|
-
return this.deleteDialog ? this.deleteDialog : (h("delete-dialog", { id: "solution-delete-dialog", ids: this.ids, layer: this.layer, onDeleteDialogClose: () => this._confirmDelete = false, open: this._confirmDelete }));
|
|
320
|
+
return this.deleteDialog ? this.deleteDialog : (h("delete-dialog", { id: "solution-delete-dialog", ids: this.ids, layer: this.layer, locale: this.locale, onDeleteDialogClose: () => this._confirmDelete = false, open: this._confirmDelete }));
|
|
312
321
|
}
|
|
313
322
|
/**
|
|
314
323
|
* Fetches the component's translations
|
|
@@ -322,7 +331,8 @@ const DeleteButton = class {
|
|
|
322
331
|
}
|
|
323
332
|
static get watchers() { return {
|
|
324
333
|
"ids": ["idsWatchHandler"],
|
|
325
|
-
"layer": ["layerWatchHandler"]
|
|
334
|
+
"layer": ["layerWatchHandler"],
|
|
335
|
+
"locale": ["localeWatchHandler"]
|
|
326
336
|
}; }
|
|
327
337
|
};
|
|
328
338
|
DeleteButton.style = DeleteButtonStyle0;
|
|
@@ -337,6 +347,7 @@ const DeleteDialog = class {
|
|
|
337
347
|
this.deleteDialogClose = createEvent(this, "deleteDialogClose", 7);
|
|
338
348
|
this.ids = [];
|
|
339
349
|
this.layer = undefined;
|
|
350
|
+
this.locale = undefined;
|
|
340
351
|
this.open = false;
|
|
341
352
|
this._isDeleting = false;
|
|
342
353
|
this._translations = undefined;
|
|
@@ -352,6 +363,14 @@ const DeleteDialog = class {
|
|
|
352
363
|
// Watch handlers
|
|
353
364
|
//
|
|
354
365
|
//--------------------------------------------------------------------------
|
|
366
|
+
/**
|
|
367
|
+
* Fetch translations when the locale is updated
|
|
368
|
+
*/
|
|
369
|
+
async localeWatchHandler() {
|
|
370
|
+
// to support url param and language switcher
|
|
371
|
+
this.el.lang = this.locale;
|
|
372
|
+
await this._getTranslations();
|
|
373
|
+
}
|
|
355
374
|
//--------------------------------------------------------------------------
|
|
356
375
|
//
|
|
357
376
|
// Methods (public)
|
|
@@ -389,7 +408,7 @@ const DeleteDialog = class {
|
|
|
389
408
|
render() {
|
|
390
409
|
const confirmMessage = this.ids.length === 1 ? this._translations?.confirmSingle :
|
|
391
410
|
this._translations?.confirmMultiple;
|
|
392
|
-
return (h(Host, { key: '
|
|
411
|
+
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))));
|
|
393
412
|
}
|
|
394
413
|
//--------------------------------------------------------------------------
|
|
395
414
|
//
|
|
@@ -428,6 +447,9 @@ const DeleteDialog = class {
|
|
|
428
447
|
const messages = await getLocaleComponentStrings(this.el);
|
|
429
448
|
this._translations = messages[0];
|
|
430
449
|
}
|
|
450
|
+
static get watchers() { return {
|
|
451
|
+
"locale": ["localeWatchHandler"]
|
|
452
|
+
}; }
|
|
431
453
|
};
|
|
432
454
|
DeleteDialog.style = DeleteDialogStyle0;
|
|
433
455
|
|
|
@@ -27,6 +27,7 @@ const CardManager = class {
|
|
|
27
27
|
this.enableEditGeometry = false;
|
|
28
28
|
this.isMobile = undefined;
|
|
29
29
|
this.layer = undefined;
|
|
30
|
+
this.locale = undefined;
|
|
30
31
|
this.mapView = undefined;
|
|
31
32
|
this.zoomAndScrollToSelected = undefined;
|
|
32
33
|
this.selectedFeaturesIds = undefined;
|
|
@@ -57,6 +58,14 @@ const CardManager = class {
|
|
|
57
58
|
// Watch handlers
|
|
58
59
|
//
|
|
59
60
|
//--------------------------------------------------------------------------
|
|
61
|
+
/**
|
|
62
|
+
* Fetch translations when the locale is updated
|
|
63
|
+
*/
|
|
64
|
+
async localeWatchHandler() {
|
|
65
|
+
// to support url param and language switcher
|
|
66
|
+
this.el.lang = this.locale;
|
|
67
|
+
await this._getTranslations();
|
|
68
|
+
}
|
|
60
69
|
//--------------------------------------------------------------------------
|
|
61
70
|
//
|
|
62
71
|
// Methods (public)
|
|
@@ -126,14 +135,14 @@ const CardManager = class {
|
|
|
126
135
|
const heading = isTable ? this._translations.createRecord : this._translations.createFeature;
|
|
127
136
|
const guideMsg = this.customInfoText ? this.customInfoText : this.selectingFeatureFromMap ? this._translations.selectFeaturesFromMapToStart : this._translations.selectFeaturesToStart;
|
|
128
137
|
const showCreateFeatureOrRecordBtn = this.enableCreateFeatures && this.layer?.capabilities?.operations?.supportsAdd;
|
|
129
|
-
return (h(Host, { key: '
|
|
138
|
+
return (h(Host, { key: '1dc448368b85b83ccc2f76f59cff83559d1d1285' }, h("div", { key: '7c058f7a4ca2db84f0ad35efba90a1485e5c7989', class: "overflow-auto height-full" }, h("calcite-shell", { key: '1388666d3d11efee37efc1524011594237cccc35', class: "position-relative " + featuresClass }, h("div", { key: '3f93c4de344e49eec16e447bc1ca44cb280f84cc', class: "position-static z-index-500" }, h("info-card", { key: 'c5b8cafef2595b8ae85725d583caebf9754ce1fb', enableEditGeometry: this.enableEditGeometry, graphics: this._graphics, isLoading: this._cardLoading, isMobile: this.isMobile, locale: this.locale, mapView: this.mapView }))), h("calcite-shell", { key: 'bfa2f41e657f390335545f46ab744d4d980c3926', class: "position-relative " + messageClass }, h("calcite-flow-item", { key: 'bf19ce4b69b52c5652629f38859e03a0a99f8374' }, h("calcite-panel", { key: '1ea46998a73ad636ad2a956e72181a0570edd5d0' }, h("div", { key: 'd853f429c30daa5abcfe6576b7242fa48251ae53', class: "padding-1" }, h("calcite-notice", { key: 'dffa52ec3fa7a22494b6dadd7b1c6d512e25c192', icon: this.selectingFeatureFromMap ? "map" : "table", iconFlipRtl: true, open: true }, h("div", { key: '728b56c9281dfe09d1604882635a53803c5f4253', slot: "message" }, guideMsg))), !this.isMobile && showCreateFeatureOrRecordBtn && h("calcite-button", { key: '260042d84c529d5508630bca7bdb39db1c2408cb', disabled: !this.layer, onClick: () => this._createFeatureBtnClicked(), slot: "footer", width: "full" }, isTable ? this._translations.createRecord : this._translations.createFeature)))), h("calcite-shell", { key: 'c30cbc2dc6e70319440bf9ed7c3d7f7ede38c3a1', class: "position-relative " + createFeatureClass }, h("calcite-flow-item", { key: '901c5a407a8418c34ee72c4dd4b16443c3766819' }, h("calcite-panel", { key: 'a6faf502cd08060a42582cbd95d7354b1e192a43', heading: heading }, h("calcite-action", { key: '23e9c295f7476f935055c30227774e173315194d', class: "back-button hydrated", icon: "chevron-left", onClick: this._backFromCreateFeature.bind(this), scale: "s", slot: "header-actions-start", text: "" }), this.getEditorComponent(), this._showSubmitBtn && h("calcite-button", { key: '3ee5c310e5fad8aa5d6abd8ae1347c46d3ada1be', appearance: "solid", class: "footer-top-button footer-button", onClick: () => void this._createFeature.submit(), slot: "footer", width: "full" }, this._translations.create)))))));
|
|
130
139
|
}
|
|
131
140
|
/**
|
|
132
141
|
* Returns the editor component for adding feature
|
|
133
142
|
* @returns Node
|
|
134
143
|
*/
|
|
135
144
|
getEditorComponent() {
|
|
136
|
-
return (h("div", null, this._showCreateFeatureComponent && h("create-feature", { customizeSubmit: true, mapView: this.mapView, onDrawComplete: () => { this._showSubmitBtn = true; }, onEditingAttachment: (evt) => { this._showSubmitBtn = !evt.detail; }, onProgressStatus: () => {
|
|
145
|
+
return (h("div", null, this._showCreateFeatureComponent && h("create-feature", { customizeSubmit: true, locale: this.locale, mapView: this.mapView, onDrawComplete: () => { this._showSubmitBtn = true; }, onEditingAttachment: (evt) => { this._showSubmitBtn = !evt.detail; }, onProgressStatus: () => {
|
|
137
146
|
setTimeout(() => {
|
|
138
147
|
this._isFeatureCreated = false;
|
|
139
148
|
}, 2000);
|
|
@@ -198,6 +207,9 @@ const CardManager = class {
|
|
|
198
207
|
const messages = await getLocaleComponentStrings(this.el);
|
|
199
208
|
this._translations = messages[0];
|
|
200
209
|
}
|
|
210
|
+
static get watchers() { return {
|
|
211
|
+
"locale": ["localeWatchHandler"]
|
|
212
|
+
}; }
|
|
201
213
|
};
|
|
202
214
|
CardManager.style = CardManagerStyle0;
|
|
203
215
|
|
|
@@ -219,6 +231,7 @@ const LayerTable = class {
|
|
|
219
231
|
this.enableInlineEdit = undefined;
|
|
220
232
|
this.enableShare = undefined;
|
|
221
233
|
this.isMobile = undefined;
|
|
234
|
+
this.locale = undefined;
|
|
222
235
|
this.mapHidden = undefined;
|
|
223
236
|
this.mapInfo = undefined;
|
|
224
237
|
this.mapView = undefined;
|
|
@@ -474,6 +487,14 @@ const LayerTable = class {
|
|
|
474
487
|
}
|
|
475
488
|
});
|
|
476
489
|
}
|
|
490
|
+
/**
|
|
491
|
+
* Fetch translations when the locale is updated
|
|
492
|
+
*/
|
|
493
|
+
async localeWatchHandler() {
|
|
494
|
+
// to support url param and language switcher
|
|
495
|
+
this.el.lang = this.locale;
|
|
496
|
+
await this._getTranslations();
|
|
497
|
+
}
|
|
477
498
|
/**
|
|
478
499
|
* Reset the toolInfos when mapHidden prop changes so we can show/hide any map dependant tool(s)
|
|
479
500
|
*/
|
|
@@ -706,10 +727,10 @@ const LayerTable = class {
|
|
|
706
727
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
|
707
728
|
const showSearch = this._canShowFullTextSearch();
|
|
708
729
|
this._validateActiveActions();
|
|
709
|
-
return (h(Host, { key: '
|
|
710
|
-
h("div", { key: '
|
|
730
|
+
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 &&
|
|
731
|
+
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
|
|
711
732
|
.replace("{{total}}", total)
|
|
712
|
-
.replace("{{selected}}", selected))) : undefined), this.createFilterModal && this._filterModal(), h("delete-dialog", { key: '
|
|
733
|
+
.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 })));
|
|
713
734
|
}
|
|
714
735
|
_deleteDialog;
|
|
715
736
|
/**
|
|
@@ -885,7 +906,7 @@ const LayerTable = class {
|
|
|
885
906
|
_getActionBar() {
|
|
886
907
|
const containerClass = this.isMobile ? "width-full" : "";
|
|
887
908
|
const mobileClass = this.isMobile ? "border-top" : "";
|
|
888
|
-
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));
|
|
909
|
+
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));
|
|
889
910
|
}
|
|
890
911
|
/**
|
|
891
912
|
* Get the actions that are used for various interactions with the table
|
|
@@ -1364,7 +1385,7 @@ const LayerTable = class {
|
|
|
1364
1385
|
*/
|
|
1365
1386
|
_getDangerAction(icon, label, func, disabled) {
|
|
1366
1387
|
const _disabled = this._layer === undefined ? true : disabled;
|
|
1367
|
-
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)));
|
|
1388
|
+
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)));
|
|
1368
1389
|
}
|
|
1369
1390
|
/**
|
|
1370
1391
|
* Return all currently selected IDs from the table
|
|
@@ -2078,6 +2099,7 @@ const LayerTable = class {
|
|
|
2078
2099
|
"enableInlineEdit": ["enableInlineEditWatchHandler"],
|
|
2079
2100
|
"enableShare": ["enableShareWatchHandler"],
|
|
2080
2101
|
"_controlsThatFit": ["_controlsThatFitWatchHandler"],
|
|
2102
|
+
"locale": ["localeWatchHandler"],
|
|
2081
2103
|
"mapHidden": ["mapHiddenWatchHandler"],
|
|
2082
2104
|
"isMobile": ["isMobileWatchHandler"],
|
|
2083
2105
|
"mapInfo": ["mapInfoWatchHandler"],
|
|
@@ -2154,6 +2176,7 @@ const MapCard = class {
|
|
|
2154
2176
|
this.homeZoomIndex = 3;
|
|
2155
2177
|
this.homeZoomPosition = "top-left";
|
|
2156
2178
|
this.homeZoomToolsSize = "m";
|
|
2179
|
+
this.locale = undefined;
|
|
2157
2180
|
this.mapInfos = [];
|
|
2158
2181
|
this.mapWidgetsIndex = 0;
|
|
2159
2182
|
this.mapWidgetsPosition = "top-right";
|
|
@@ -2303,6 +2326,14 @@ const MapCard = class {
|
|
|
2303
2326
|
this._updateToolbar();
|
|
2304
2327
|
}
|
|
2305
2328
|
}
|
|
2329
|
+
/**
|
|
2330
|
+
* Fetch translations when the locale is updated
|
|
2331
|
+
*/
|
|
2332
|
+
async localeWatchHandler() {
|
|
2333
|
+
// to support url param and language switcher
|
|
2334
|
+
this.el.lang = this.locale;
|
|
2335
|
+
await this._getTranslations();
|
|
2336
|
+
}
|
|
2306
2337
|
/**
|
|
2307
2338
|
* watch for changes in map view and get the first layer
|
|
2308
2339
|
*/
|
|
@@ -2435,7 +2466,7 @@ const MapCard = class {
|
|
|
2435
2466
|
const mapHeightClass = this.mapInfos?.length > 1 || this.isMapLayout ? "map-height" : "height-full";
|
|
2436
2467
|
const progressClass = this.isMapLayout ? "" : "display-none";
|
|
2437
2468
|
this._validateActiveActions();
|
|
2438
|
-
return (h(Host, { key: '
|
|
2469
|
+
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 })));
|
|
2439
2470
|
}
|
|
2440
2471
|
/**
|
|
2441
2472
|
* Called each time after the component is loaded
|
|
@@ -2662,7 +2693,7 @@ const MapCard = class {
|
|
|
2662
2693
|
const containerClass = this.isMapLayout ? "display-flex" : "display-block";
|
|
2663
2694
|
const mobileClass = this.isMobile ? "border-top" : "";
|
|
2664
2695
|
const headerElements = this.isMapLayout ? "" : "display-none";
|
|
2665
|
-
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));
|
|
2696
|
+
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));
|
|
2666
2697
|
}
|
|
2667
2698
|
/**
|
|
2668
2699
|
* Get a list of toolInfos that should display in the dropdown
|
|
@@ -3000,6 +3031,7 @@ const MapCard = class {
|
|
|
3000
3031
|
"appLayout": ["appLayoutWatchHandler"],
|
|
3001
3032
|
"enableHome": ["enableHomeWatchHandler"],
|
|
3002
3033
|
"enableShare": ["enableShareWatchHandler"],
|
|
3034
|
+
"locale": ["localeWatchHandler"],
|
|
3003
3035
|
"mapView": ["mapViewWatchHandler"],
|
|
3004
3036
|
"selectedLayer": ["selectedLayerWatchHandler"],
|
|
3005
3037
|
"selectedFeaturesIds": ["selectedFeaturesIdsWatchHandler"],
|