@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
@@ -1221,6 +1221,7 @@ const MapLayerPicker = class {
|
|
1221
1221
|
this.enabledTableIds = [];
|
1222
1222
|
this.height = undefined;
|
1223
1223
|
this.isMobile = undefined;
|
1224
|
+
this.locale = undefined;
|
1224
1225
|
this.mapView = undefined;
|
1225
1226
|
this.onlyShowUpdatableLayers = undefined;
|
1226
1227
|
this.placeholderIcon = "";
|
@@ -1264,6 +1265,14 @@ const MapLayerPicker = class {
|
|
1264
1265
|
// Watch handlers
|
1265
1266
|
//
|
1266
1267
|
//--------------------------------------------------------------------------
|
1268
|
+
/**
|
1269
|
+
* Fetch translations when the locale is updated
|
1270
|
+
*/
|
1271
|
+
async localeWatchHandler() {
|
1272
|
+
// to support url param and language switcher
|
1273
|
+
this.el.lang = this.locale;
|
1274
|
+
await this._getTranslations();
|
1275
|
+
}
|
1267
1276
|
/**
|
1268
1277
|
* Called each time the mapView prop is changed.
|
1269
1278
|
*/
|
@@ -1345,7 +1354,7 @@ const MapLayerPicker = class {
|
|
1345
1354
|
const id = "map-layer-picker";
|
1346
1355
|
let style = this.height > 0 ? { "height": `${this.height.toString()}px` } : {};
|
1347
1356
|
style = { ...style, "display": this.display };
|
1348
|
-
return (index.h(index.Host, { key: '
|
1357
|
+
return (index.h(index.Host, { key: '33b19dbf87019ad071242aaa688e49f35e2c2808' }, index.h("div", { key: '85e781782fc529acae68b1137f8ec1a317b452a0', class: "map-layer-picker-container", style: style }, index.h("div", { key: 'c257b179b56939d998650c676e835c9976d9fb21', class: "map-layer-picker", style: style }, !this._hasValidLayers ? this._getInvalidPlaceholder() :
|
1349
1358
|
!this._hasMultipleLayers && this.showSingleLayerAsLabel ? this._getSingleLayerPlaceholder() :
|
1350
1359
|
this.type === "combobox" ? this._getCombobox(id) :
|
1351
1360
|
this.type === "select" ? this._getSelect(id) : this._getDropdown(id)))));
|
@@ -1596,6 +1605,7 @@ const MapLayerPicker = class {
|
|
1596
1605
|
this._translations = messages[0];
|
1597
1606
|
}
|
1598
1607
|
static get watchers() { return {
|
1608
|
+
"locale": ["localeWatchHandler"],
|
1599
1609
|
"mapView": ["mapViewWatchHandler"]
|
1600
1610
|
}; }
|
1601
1611
|
};
|
@@ -165,6 +165,7 @@ const CreateRelatedFeature = class {
|
|
165
165
|
this.fail = index.createEvent(this, "fail", 7);
|
166
166
|
this.isActionPending = index.createEvent(this, "isActionPending", 7);
|
167
167
|
this.formReady = index.createEvent(this, "formReady", 7);
|
168
|
+
this.locale = undefined;
|
168
169
|
this.mapView = undefined;
|
169
170
|
this.table = undefined;
|
170
171
|
this.selectedFeature = undefined;
|
@@ -210,6 +211,14 @@ const CreateRelatedFeature = class {
|
|
210
211
|
// Watch handlers
|
211
212
|
//
|
212
213
|
//--------------------------------------------------------------------------
|
214
|
+
/**
|
215
|
+
* Fetch translations when the locale is updated
|
216
|
+
*/
|
217
|
+
async localeWatchHandler() {
|
218
|
+
// to support url param and language switcher
|
219
|
+
this.el.lang = this.locale;
|
220
|
+
await this._getTranslations();
|
221
|
+
}
|
213
222
|
/**
|
214
223
|
* Called each time the mapView prop is changed.
|
215
224
|
*/
|
@@ -300,7 +309,7 @@ const CreateRelatedFeature = class {
|
|
300
309
|
}
|
301
310
|
render() {
|
302
311
|
const loaderClass = this._editorLoading ? "" : "display-none";
|
303
|
-
return (index.h(index.Fragment, { key: '
|
312
|
+
return (index.h(index.Fragment, { key: '48fffd1e9dd429d339d9a72e35f5c31561fc076f' }, this.showGuidingMsg && index.h("calcite-notice", { key: '9a6f700c135bb7593e4338981a30531e3d9fba8a', class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, index.h("div", { key: '7044e923a9fab833a7a6fe0bb97fa688d7e6eecc', slot: "message" }, this._translations.provideDetailsMsg)), index.h("calcite-loader", { key: '15599ae77e451d220689c13098a31c5788714306', class: loaderClass, label: "", scale: "s" })));
|
304
313
|
}
|
305
314
|
/**
|
306
315
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -487,6 +496,7 @@ const CreateRelatedFeature = class {
|
|
487
496
|
this._translations = messages[0];
|
488
497
|
}
|
489
498
|
static get watchers() { return {
|
499
|
+
"locale": ["localeWatchHandler"],
|
490
500
|
"mapView": ["mapViewWatchHandler"],
|
491
501
|
"_editorLoading": ["_editorLoadingWatchHandler"]
|
492
502
|
}; }
|
@@ -508,6 +518,7 @@ const FeatureDetails = class {
|
|
508
518
|
this.graphics = undefined;
|
509
519
|
this.reportingOptions = undefined;
|
510
520
|
this.layerItemsHash = undefined;
|
521
|
+
this.locale = undefined;
|
511
522
|
this.showUserImageInCommentsList = false;
|
512
523
|
this._likeFieldAvailable = false;
|
513
524
|
this._likeCount = 0;
|
@@ -656,12 +667,12 @@ const FeatureDetails = class {
|
|
656
667
|
render() {
|
657
668
|
//When related features found show comments list of only those features else comments list will be empty
|
658
669
|
const commentsListWhereClause = this._relatedFeaturesOIDs?.length > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
|
659
|
-
return (index.h("calcite-panel", { key: '
|
660
|
-
index.h("div", { key: '
|
661
|
-
index.h("calcite-button", { key: '
|
662
|
-
index.h("calcite-button", { key: '
|
663
|
-
index.h("calcite-button", { key: '
|
664
|
-
index.h("feature-list", { key: '
|
670
|
+
return (index.h("calcite-panel", { key: 'be7bebe9da698d963a2602fcacb95ac7206ac1e9', "full-height": true }, index.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) &&
|
671
|
+
index.h("div", { key: 'd53f5a1726e4c6299ffd04e266d84005181645f6', class: "buttons-container" }, this._commentsAvailable &&
|
672
|
+
index.h("calcite-button", { key: '4c2616cc9e0107258f5313b66ae96fa31fe582c5', appearance: "transparent", iconEnd: "speech-bubble", kind: "neutral", onClick: () => { this.addComment.emit(); }, scale: 'm' }, this._relatedFeaturesOIDs.length), this._likeFieldAvailable &&
|
673
|
+
index.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 &&
|
674
|
+
index.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 &&
|
675
|
+
index.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 })));
|
665
676
|
}
|
666
677
|
/**
|
667
678
|
* Load esri javascript api modules
|
@@ -946,6 +957,7 @@ const LayerList = class {
|
|
946
957
|
this.layersListLoaded = index.createEvent(this, "layersListLoaded", 7);
|
947
958
|
this.mapView = undefined;
|
948
959
|
this.layers = undefined;
|
960
|
+
this.locale = undefined;
|
949
961
|
this.showFeatureCount = true;
|
950
962
|
this.showNextIcon = false;
|
951
963
|
this.applyLayerViewFilter = false;
|
@@ -969,6 +981,14 @@ const LayerList = class {
|
|
969
981
|
// Watch handlers
|
970
982
|
//
|
971
983
|
//--------------------------------------------------------------------------
|
984
|
+
/**
|
985
|
+
* Fetch translations when the locale is updated
|
986
|
+
*/
|
987
|
+
async localeWatchHandler() {
|
988
|
+
// to support url param and language switcher
|
989
|
+
this.el.lang = this.locale;
|
990
|
+
await this._getTranslations();
|
991
|
+
}
|
972
992
|
//--------------------------------------------------------------------------
|
973
993
|
//
|
974
994
|
// Methods (public)
|
@@ -1017,9 +1037,9 @@ const LayerList = class {
|
|
1017
1037
|
* Renders the component.
|
1018
1038
|
*/
|
1019
1039
|
render() {
|
1020
|
-
return (index.h(index.Fragment, { key: '
|
1021
|
-
index.h("calcite-notice", { key: '
|
1022
|
-
index.h("calcite-list", { key: '
|
1040
|
+
return (index.h(index.Fragment, { key: 'a151c8fd65c50aacb23dcd0c858e52c0c7cd7e5e' }, this._isLoading && index.h("calcite-loader", { key: '544a134bccc29048ca80b996844cc944bcd97a24', label: "", scale: "m" }), !this._isLoading && this.mapView && this._noLayersToDisplay &&
|
1041
|
+
index.h("calcite-notice", { key: '7557f91c8c3349c120c043ea59458b4c834dce2e', class: "error-msg", icon: "layers-reference", kind: "danger", open: true }, index.h("div", { key: 'ea8b20f8c7da5053641cfad56e3395ae3c6286f5', slot: "title" }, this._translations.error), index.h("div", { key: '38aaed7b456aba0b1dd70183be03e9133834dfb4', slot: "message" }, this._translations.noLayerToDisplayErrorMsg)), !this._isLoading && this.mapView &&
|
1042
|
+
index.h("calcite-list", { key: '817de422b8387cafb7f9a17515cf9b3c13998522', "selection-appearance": "border", "selection-mode": "none" }, this.renderLayerList())));
|
1023
1043
|
}
|
1024
1044
|
//--------------------------------------------------------------------------
|
1025
1045
|
//
|
@@ -1145,6 +1165,9 @@ const LayerList = class {
|
|
1145
1165
|
const messages = await locale.getLocaleComponentStrings(this.el);
|
1146
1166
|
this._translations = messages[0];
|
1147
1167
|
}
|
1168
|
+
static get watchers() { return {
|
1169
|
+
"locale": ["localeWatchHandler"]
|
1170
|
+
}; }
|
1148
1171
|
};
|
1149
1172
|
LayerList.style = LayerListStyle0;
|
1150
1173
|
|
@@ -1769,11 +1769,25 @@ const JsonEditor = class {
|
|
1769
1769
|
this.hasChanges = false;
|
1770
1770
|
this.hasErrors = false;
|
1771
1771
|
this.instanceid = "";
|
1772
|
+
this.locale = undefined;
|
1772
1773
|
this.value = "";
|
1773
1774
|
}
|
1774
1775
|
get el() { return index.getElement(this); }
|
1775
1776
|
//--------------------------------------------------------------------------
|
1776
1777
|
//
|
1778
|
+
// Watch handlers
|
1779
|
+
//
|
1780
|
+
//--------------------------------------------------------------------------
|
1781
|
+
/**
|
1782
|
+
* Fetch translations when the locale is updated
|
1783
|
+
*/
|
1784
|
+
async localeWatchHandler() {
|
1785
|
+
// to support url param and language switcher
|
1786
|
+
this.el.lang = this.locale;
|
1787
|
+
await this._getTranslations();
|
1788
|
+
}
|
1789
|
+
//--------------------------------------------------------------------------
|
1790
|
+
//
|
1777
1791
|
// Lifecycle
|
1778
1792
|
//
|
1779
1793
|
//--------------------------------------------------------------------------
|
@@ -1840,7 +1854,7 @@ const JsonEditor = class {
|
|
1840
1854
|
* Renders the component.
|
1841
1855
|
*/
|
1842
1856
|
render() {
|
1843
|
-
return (index.h(index.Host, { key: '
|
1857
|
+
return (index.h(index.Host, { key: 'ba7c8a397da913d86f5d294cdfbb5ec1b84d89de' }, index.h("div", { key: 'bc5c6d1ee443b2096cc44d0b66850d4ebe8462da', id: `${this.instanceid}-editor-container`, class: "editor-container padding-right" }, index.h("div", { key: 'dbaf682cba354ce7eef21b03a71832fd39911332', class: "editor-controls" }, index.h("div", { key: 'e454e1dd36aa620abf2ffb7877bebb9adc70ff15', class: "editor-buttons" }, index.h("calcite-icon", { key: '1de67e151c6e65b004a431d89dc785ca286a8e11', id: `${this.instanceid}-errorFlag`, icon: "exclamation-mark-triangle", title: this._translations.errorFlag, scale: "s", class: "edit-error-flag" }), index.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" }, index.h("calcite-icon", { key: '9bed02f1e8a367ad2ed764747f044a4ce27de52b', icon: "undo", scale: "s" })), index.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" }, index.h("calcite-icon", { key: '5f24902a66eae644d0d358a4826a98d45e905493', icon: "redo", scale: "s" })), index.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" }, index.h("calcite-icon", { key: '0bcd20d28e9ec34f1736a2888d78bfcd9cb82a4d', icon: "compare", scale: "s" })), index.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" }, index.h("calcite-icon", { key: '36aac5e89ebf593d8d1981d7b8f6267fbbadfd24', icon: "search", scale: "s" })), index.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" }, index.h("calcite-icon", { key: '3c4fc1da749f4b4f64d814fcd58dc035634f6b1b', icon: "reset", scale: "s" })))), index.h("div", { key: '6c33ec4851d804dac7fd9762e3c8c7e416a27cf4', class: "edit-parent" }, index.h("div", { key: 'a6e9721127bbd43f9974af65e0899489370e1868', id: `${this.instanceid}-container`, class: "json-edit-container" }), index.h("div", { key: 'c1d1ea305c0e451c24beddb8ac3f8e85a3fca088', id: `${this.instanceid}-diff-container`, class: "json-edit-container display-none" })))));
|
1844
1858
|
}
|
1845
1859
|
//--------------------------------------------------------------------------
|
1846
1860
|
//
|
@@ -2154,6 +2168,9 @@ const JsonEditor = class {
|
|
2154
2168
|
}
|
2155
2169
|
}
|
2156
2170
|
static get assetsDirs() { return ["assets"]; }
|
2171
|
+
static get watchers() { return {
|
2172
|
+
"locale": ["localeWatchHandler"]
|
2173
|
+
}; }
|
2157
2174
|
};
|
2158
2175
|
JsonEditor.style = JsonEditorStyle0;
|
2159
2176
|
|
@@ -2164,6 +2181,7 @@ const SolutionItemDetails = class {
|
|
2164
2181
|
constructor(hostRef) {
|
2165
2182
|
index.registerInstance(this, hostRef);
|
2166
2183
|
this.itemId = "";
|
2184
|
+
this.locale = undefined;
|
2167
2185
|
this.itemDetails = {
|
2168
2186
|
accessInformation: "",
|
2169
2187
|
description: "",
|
@@ -2180,6 +2198,19 @@ const SolutionItemDetails = class {
|
|
2180
2198
|
get el() { return index.getElement(this); }
|
2181
2199
|
//--------------------------------------------------------------------------
|
2182
2200
|
//
|
2201
|
+
// Watch handlers
|
2202
|
+
//
|
2203
|
+
//--------------------------------------------------------------------------
|
2204
|
+
/**
|
2205
|
+
* Fetch translations when the locale is updated
|
2206
|
+
*/
|
2207
|
+
async localeWatchHandler() {
|
2208
|
+
// to support url param and language switcher
|
2209
|
+
this.el.lang = this.locale;
|
2210
|
+
await this._getTranslations();
|
2211
|
+
}
|
2212
|
+
//--------------------------------------------------------------------------
|
2213
|
+
//
|
2183
2214
|
// Lifecycle
|
2184
2215
|
//
|
2185
2216
|
//--------------------------------------------------------------------------
|
@@ -2201,7 +2232,7 @@ const SolutionItemDetails = class {
|
|
2201
2232
|
* Renders the component.
|
2202
2233
|
*/
|
2203
2234
|
render() {
|
2204
|
-
return (index.h(index.Host, { key: '
|
2235
|
+
return (index.h(index.Host, { key: '9a0ddf363cb5e8abc5cbfd45ec0958befd81415d' }, index.h("div", { key: '0efb572f551fe4962ea9114bd32dc2004d47e00a', class: "parent-container" }, index.h("div", { key: '57ba57b956322c3339ea9265640def266717493b', class: "inputBottomSeparation" }, index.h("calcite-input", { key: 'e359cea6b2e94823970bbf8beb93e117963fa730', id: "item-title", value: this.itemDetails.title })), index.h("div", { key: 'c7b490a6f1f64ec2b10e8796ad3826d88e25280c', class: "inputBottomSeparation" }, index.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" }), index.h("button", { key: '12ece37e4d8ae802cb4fc2dbd3e1843496c674cb', class: "font-size--3 btn-link inline-block trailer-quarter", onClick: () => this._getThumbnail() }, index.h("svg", { key: '5301bac0dd37771122384b968aca05eb9a714a12', class: "icon-inline icon-inline--on-left", height: "16", viewBox: "0 0 16 16", width: "16" }, index.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), index.h("div", { key: 'c07d1d3b4f38672855b2a4f3cfd66b91d85ad050', class: "flex" }, index.h("div", { key: '7de852550f467b8bb0bd8fa87c72552747d7397b', class: "img-container", ref: (el) => (this.thumbnailContainer = el) }, index.h("img", { key: '7111cafeabac088b5ff729eed71746966ea66ae2', class: "scale-down", height: "133", id: "item-thumbnail", ref: (el) => (this.thumbnail = el), width: "200" })), index.h("div", { key: '4b0be864e8c38b9a8185ba301582a742cbf8188a', class: "snippet-count-container" }, index.h("calcite-input", { key: '9e307dc8a67f77dc61e0deeaf3aa528007921b1b', id: "item-snippet", maxLength: 250, type: "textarea", value: this.itemDetails.snippet }), index.h("label", { key: '83c0d63adc182afcb83f45bcbcec778552768b65', class: "font-size--3", id: "item-snippet-count", ref: (el) => (this.itemSnippetCount = el) })))), index.h("calcite-label", { key: '1e17c1ae545adb010e216ac566e9cba5eec1fc1a' }, this._translations.description, index.h("label", { key: 'c0e125cd881b013af6da14de78635f9922163e39', id: "item-description-label" }, index.h("calcite-input", { key: '1cf2cb27f67edfee86fc9a36ae296f81ef6c4429', id: "item-description", type: "textarea", value: this.itemDetails.description }))), index.h("calcite-label", { key: '1f61dee7f09260a0277af8a8e3d620e229ce4225' }, this._translations.tags, index.h("label", { key: '73820279fa0134328f24741857e028c89b5caebc', id: "item-tags-label" }, index.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" ? index.h("calcite-label", null, this._translations.credits, index.h("label", { id: "item-credits-label" }, index.h("calcite-input", { id: "item-credits", value: this.itemDetails.accessInformation }))) : null, this.itemType !== "Group" ? index.h("calcite-label", null, index.h("label", { id: "item-terms-label" }, this._translations.termsOfUse, index.h("calcite-input", { id: "item-terms", type: "textarea", value: this.itemDetails.licenseInfo }))) : null)));
|
2205
2236
|
}
|
2206
2237
|
componentDidRender() {
|
2207
2238
|
this._loadThumb();
|
@@ -2346,6 +2377,9 @@ const SolutionItemDetails = class {
|
|
2346
2377
|
const translations = await locale$1.getLocaleComponentStrings(this.el);
|
2347
2378
|
this._translations = translations[0];
|
2348
2379
|
}
|
2380
|
+
static get watchers() { return {
|
2381
|
+
"locale": ["localeWatchHandler"]
|
2382
|
+
}; }
|
2349
2383
|
};
|
2350
2384
|
SolutionItemDetails.style = SolutionItemDetailsStyle0;
|
2351
2385
|
|
@@ -2356,14 +2390,28 @@ const SolutionItemSharing = class {
|
|
2356
2390
|
constructor(hostRef) {
|
2357
2391
|
index.registerInstance(this, hostRef);
|
2358
2392
|
this.groupId = "";
|
2393
|
+
this.locale = undefined;
|
2359
2394
|
this._translations = undefined;
|
2360
2395
|
this.sharing = [];
|
2361
2396
|
}
|
2362
2397
|
get el() { return index.getElement(this); }
|
2398
|
+
//--------------------------------------------------------------------------
|
2399
|
+
//
|
2400
|
+
// Watch handlers
|
2401
|
+
//
|
2402
|
+
//--------------------------------------------------------------------------
|
2363
2403
|
itemIdWatchHandler() {
|
2364
2404
|
const itemEdit = solutionStore.state.getItemInfo(this.groupId);
|
2365
2405
|
this.sharing = itemEdit.groupDetails;
|
2366
2406
|
}
|
2407
|
+
/**
|
2408
|
+
* Fetch translations when the locale is updated
|
2409
|
+
*/
|
2410
|
+
async localeWatchHandler() {
|
2411
|
+
// to support url param and language switcher
|
2412
|
+
this.el.lang = this.locale;
|
2413
|
+
await this._getTranslations();
|
2414
|
+
}
|
2367
2415
|
//--------------------------------------------------------------------------
|
2368
2416
|
//
|
2369
2417
|
// Lifecycle
|
@@ -2379,7 +2427,7 @@ const SolutionItemSharing = class {
|
|
2379
2427
|
* Renders the component.
|
2380
2428
|
*/
|
2381
2429
|
render() {
|
2382
|
-
return (index.h(index.Host, { key: '
|
2430
|
+
return (index.h(index.Host, { key: '1c7dbee68fbf0eabf736fb783f173ade2f408122' }, index.h("div", { key: '3c3d88ab122d4a8bc69363224a2754c4a4b092ba', class: "container-border" }, index.h("calcite-label", { key: '137bb704b258a3cd1e5e5b7a18c53aca331d7f91' }, this._translations.groupInfo), this._renderItems(this.sharing))));
|
2383
2431
|
}
|
2384
2432
|
//--------------------------------------------------------------------------
|
2385
2433
|
//
|
@@ -2463,7 +2511,8 @@ const SolutionItemSharing = class {
|
|
2463
2511
|
this._translations = translations[0];
|
2464
2512
|
}
|
2465
2513
|
static get watchers() { return {
|
2466
|
-
"groupId": ["itemIdWatchHandler"]
|
2514
|
+
"groupId": ["itemIdWatchHandler"],
|
2515
|
+
"locale": ["localeWatchHandler"]
|
2467
2516
|
}; }
|
2468
2517
|
};
|
2469
2518
|
SolutionItemSharing.style = SolutionItemSharingStyle0;
|
@@ -2475,11 +2524,25 @@ const SolutionOrganizationVariables = class {
|
|
2475
2524
|
constructor(hostRef) {
|
2476
2525
|
index.registerInstance(this, hostRef);
|
2477
2526
|
this.organizationVariableSelected = index.createEvent(this, "organizationVariableSelected", 7);
|
2527
|
+
this.locale = undefined;
|
2478
2528
|
this.value = "";
|
2479
2529
|
this._organizationVariables = [];
|
2480
2530
|
this._translations = undefined;
|
2481
2531
|
}
|
2482
2532
|
get el() { return index.getElement(this); }
|
2533
|
+
//--------------------------------------------------------------------------
|
2534
|
+
//
|
2535
|
+
// Watch handlers
|
2536
|
+
//
|
2537
|
+
//--------------------------------------------------------------------------
|
2538
|
+
/**
|
2539
|
+
* Fetch translations when the locale is updated
|
2540
|
+
*/
|
2541
|
+
async localeWatchHandler() {
|
2542
|
+
// to support url param and language switcher
|
2543
|
+
this.el.lang = this.locale;
|
2544
|
+
await this._getTranslations();
|
2545
|
+
}
|
2483
2546
|
valueWatchHandler() {
|
2484
2547
|
this._organizationVariables = JSON.parse(this.value);
|
2485
2548
|
}
|
@@ -2498,7 +2561,7 @@ const SolutionOrganizationVariables = class {
|
|
2498
2561
|
* Renders the component.
|
2499
2562
|
*/
|
2500
2563
|
render() {
|
2501
|
-
return (index.h(index.Host, { key: '
|
2564
|
+
return (index.h(index.Host, { key: '3f72a5c1b8fb6bcdab858ee061eadb38cb9965d9' }, index.h("div", { key: '118c7cafc8330c44e72a59a76fd81ca0f39696e1' }, index.h("h4", { key: '86934bdf3cbf162a732a53579e324c5fff8beead', class: "org-var-header" }, this._translations.orgVariables)), index.h("div", { key: 'ed5c1df397286a7d1c8e61b5ce04623fa13d74cc', class: "container-border" }, index.h("calcite-tree", { key: '47f4f9bf5a81ded9a37a33a94fac6a230263e917', id: "variable-label" }, this._renderHierarchy(this._organizationVariables)))));
|
2502
2565
|
}
|
2503
2566
|
//--------------------------------------------------------------------------
|
2504
2567
|
//
|
@@ -2554,6 +2617,7 @@ const SolutionOrganizationVariables = class {
|
|
2554
2617
|
this._translations = translations[0];
|
2555
2618
|
}
|
2556
2619
|
static get watchers() { return {
|
2620
|
+
"locale": ["localeWatchHandler"],
|
2557
2621
|
"value": ["valueWatchHandler"]
|
2558
2622
|
}; }
|
2559
2623
|
};
|
@@ -2567,11 +2631,17 @@ const SolutionResourceItem = class {
|
|
2567
2631
|
index.registerInstance(this, hostRef);
|
2568
2632
|
this.authentication = undefined;
|
2569
2633
|
this.itemId = "";
|
2634
|
+
this.locale = undefined;
|
2570
2635
|
this.resourceFilePaths = [];
|
2571
2636
|
this.resources = [];
|
2572
2637
|
this._translations = undefined;
|
2573
2638
|
}
|
2574
2639
|
get el() { return index.getElement(this); }
|
2640
|
+
//--------------------------------------------------------------------------
|
2641
|
+
//
|
2642
|
+
// Watch handlers
|
2643
|
+
//
|
2644
|
+
//--------------------------------------------------------------------------
|
2575
2645
|
itemIdWatchHandler() {
|
2576
2646
|
const item = solutionStore.state.getItemInfo(this.itemId);
|
2577
2647
|
this.resourceFilePaths = item.resourceFilePaths;
|
@@ -2580,6 +2650,14 @@ const SolutionResourceItem = class {
|
|
2580
2650
|
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
2581
2651
|
(path) => path.substring(path.lastIndexOf("/") + 1));
|
2582
2652
|
}
|
2653
|
+
/**
|
2654
|
+
* Fetch translations when the locale is updated
|
2655
|
+
*/
|
2656
|
+
async localeWatchHandler() {
|
2657
|
+
// to support url param and language switcher
|
2658
|
+
this.el.lang = this.locale;
|
2659
|
+
await this._getTranslations();
|
2660
|
+
}
|
2583
2661
|
//--------------------------------------------------------------------------
|
2584
2662
|
//
|
2585
2663
|
// Lifecycle
|
@@ -2596,7 +2674,7 @@ const SolutionResourceItem = class {
|
|
2596
2674
|
*/
|
2597
2675
|
render() {
|
2598
2676
|
const hasValidResources = this._hasValidResources();
|
2599
|
-
return (index.h(index.Host, { key: '
|
2677
|
+
return (index.h(index.Host, { key: '13f2759a882d2eca48bf9dda58e74caade76142b' }, index.h("div", { key: '498ced2e29b8af9138a8aa9d77ec78e07e3c64de', class: "resource-item" }, index.h("div", { key: 'd76a967373a990906a67d88ea6466030c41401ff', class: "margin-bottom-1" }, index.h("calcite-button", { key: '96cd2ee08adadef9e1b29db12c38d4748b0689c0', appearance: "solid", class: "resource-button", color: "blue", onClick: () => this._addNewResource() }, this._translations.addResource), index.h("calcite-button", { key: '49326139cad065995512d3e3568c7d8e7f5cef4f', appearance: "solid", color: "blue", disabled: !hasValidResources, onClick: () => this._downloadAll() }, this._translations.downloadAll)), index.h("div", { key: '9c056d9ab7242ea10cbcf57eaabce4bd9777541e', class: "resources-container", style: { display: hasValidResources ? "inherit" : "none" } }, this._renderResourceList()))));
|
2600
2678
|
}
|
2601
2679
|
_removedResources = {};
|
2602
2680
|
//--------------------------------------------------------------------------
|
@@ -2818,7 +2896,8 @@ const SolutionResourceItem = class {
|
|
2818
2896
|
this._translations = translations[0];
|
2819
2897
|
}
|
2820
2898
|
static get watchers() { return {
|
2821
|
-
"itemId": ["itemIdWatchHandler"]
|
2899
|
+
"itemId": ["itemIdWatchHandler"],
|
2900
|
+
"locale": ["localeWatchHandler"]
|
2822
2901
|
}; }
|
2823
2902
|
};
|
2824
2903
|
SolutionResourceItem.style = SolutionResourceItemStyle0;
|
@@ -2836,6 +2915,19 @@ const SolutionTemplateData = class {
|
|
2836
2915
|
}
|
2837
2916
|
//--------------------------------------------------------------------------
|
2838
2917
|
//
|
2918
|
+
// Watch handlers
|
2919
|
+
//
|
2920
|
+
//--------------------------------------------------------------------------
|
2921
|
+
/**
|
2922
|
+
* Fetch translations when the locale is updated
|
2923
|
+
*/
|
2924
|
+
async localeWatchHandler() {
|
2925
|
+
// to support url param and language switcher
|
2926
|
+
this.el.lang = this.locale;
|
2927
|
+
await this._getTranslations();
|
2928
|
+
}
|
2929
|
+
//--------------------------------------------------------------------------
|
2930
|
+
//
|
2839
2931
|
// Lifecycle
|
2840
2932
|
//
|
2841
2933
|
//--------------------------------------------------------------------------
|
@@ -2843,6 +2935,7 @@ const SolutionTemplateData = class {
|
|
2843
2935
|
index.registerInstance(this, hostRef);
|
2844
2936
|
this.instanceid = "";
|
2845
2937
|
this.itemId = "";
|
2938
|
+
this.locale = undefined;
|
2846
2939
|
this.organizationVariables = "";
|
2847
2940
|
this.solutionVariables = "";
|
2848
2941
|
this.varsOpen = true;
|
@@ -2878,7 +2971,7 @@ const SolutionTemplateData = class {
|
|
2878
2971
|
* Renders the component.
|
2879
2972
|
*/
|
2880
2973
|
render() {
|
2881
|
-
return (index.h(index.Host, { key: '
|
2974
|
+
return (index.h(index.Host, { key: '3f853006c19509c8cf484d4420b3f687aaad5161' }, index.h("div", { key: 'f524e1ee3c8dc972779be0909372c11c26092dd0', class: "solution-data-container" }, index.h("calcite-shell", { key: '56797702bc53b08051360975dc529c884eb7d294', class: "light var-container", dir: "ltr" }, index.h("calcite-panel", { key: '6208ac7b63ab8b69bc29ad88abdb9bcdeaaa707a', class: "json-editor" }, index.h("div", { key: '66e99550359b5665b4dd04f794d8108e4ee34284', class: "solution-data-child-container calcite-match-height" }, index.h("json-editor", { key: '7a7f5afa5d424fb6099b7167f274ce211e791a56', class: "solution-data-editor-container", instanceid: this.itemId + "|" + this.instanceid, locale: this.locale, value: this.value }))), index.h("calcite-shell-panel", { key: '7cc8bac91bfc5be96018d005cc87be457278ed6d', "height-scale": "l", position: "end", slot: "contextual-panel", "width-scale": "xs" }, index.h("div", { key: '4ce0c251d30d5735781394f5c213523867205886', class: this.varsOpen ? "solution-data-child-container" : "solution-data-child-container-collapsed" }, index.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 }), index.h("div", { key: '6b872cfc1c60870fb6262808f5d9f61cc35f0f44', class: this.varsOpen ? "org-vars" : "org-vars display-none", id: "orgVars" }, index.h("solution-organization-variables", { key: 'e8e9ee594b6dcb5ddaabd05c322fb33d568ac7b5', locale: this.locale, value: this.organizationVariables })), index.h("div", { key: '109d17a77a54a13818af6aa2a9beb92526100ea7', class: this.varsOpen ? "sol-vars" : "sol-vars display-none", id: "solVars" }, index.h("solution-variables", { key: '46902ed69897ed01334def99817fedafbda2e8d5', locale: this.locale, value: this.solutionVariables }))))))));
|
2882
2975
|
}
|
2883
2976
|
_initializing = false;
|
2884
2977
|
//--------------------------------------------------------------------------
|
@@ -2917,7 +3010,8 @@ const SolutionTemplateData = class {
|
|
2917
3010
|
this._translations = translations[0];
|
2918
3011
|
}
|
2919
3012
|
static get watchers() { return {
|
2920
|
-
"itemId": ["itemIdWatchHandler"]
|
3013
|
+
"itemId": ["itemIdWatchHandler"],
|
3014
|
+
"locale": ["localeWatchHandler"]
|
2921
3015
|
}; }
|
2922
3016
|
};
|
2923
3017
|
SolutionTemplateData.style = SolutionTemplateDataStyle0;
|
@@ -2930,10 +3024,24 @@ const SolutionVariables = class {
|
|
2930
3024
|
index.registerInstance(this, hostRef);
|
2931
3025
|
this.solutionVariableSelected = index.createEvent(this, "solutionVariableSelected", 7);
|
2932
3026
|
this.value = "";
|
3027
|
+
this.locale = undefined;
|
2933
3028
|
this._solutionVariables = [];
|
2934
3029
|
this._translations = undefined;
|
2935
3030
|
}
|
2936
3031
|
get el() { return index.getElement(this); }
|
3032
|
+
//--------------------------------------------------------------------------
|
3033
|
+
//
|
3034
|
+
// Watch handlers
|
3035
|
+
//
|
3036
|
+
//--------------------------------------------------------------------------
|
3037
|
+
/**
|
3038
|
+
* Fetch translations when the locale is updated
|
3039
|
+
*/
|
3040
|
+
async localeWatchHandler() {
|
3041
|
+
// to support url param and language switcher
|
3042
|
+
this.el.lang = this.locale;
|
3043
|
+
await this._getTranslations();
|
3044
|
+
}
|
2937
3045
|
valueWatchHandler() {
|
2938
3046
|
this._solutionVariables = JSON.parse(this.value);
|
2939
3047
|
}
|
@@ -2952,7 +3060,7 @@ const SolutionVariables = class {
|
|
2952
3060
|
* Renders the component.
|
2953
3061
|
*/
|
2954
3062
|
render() {
|
2955
|
-
return (index.h(index.Host, { key: '
|
3063
|
+
return (index.h(index.Host, { key: 'a90cdfc9a32279cb07938fc57f9dd7e38d822f6d' }, index.h("div", { key: '6826e3dd84034368f419ff759962a721a275dc9c' }, index.h("h4", { key: '5ebdf456e8c4dc006b036dc182fa75218aac0e01', class: "org-var-header" }, this._translations.solVariables)), index.h("div", { key: '06fc04c1e61dc1897989e3cc11df7b173f1fdb2a', class: "container-border" }, index.h("calcite-tree", { key: '15500194129af7440ec05dc495b060fc18f22324', id: "variable-label" }, this._renderHierarchy(this._solutionVariables)))));
|
2956
3064
|
}
|
2957
3065
|
//--------------------------------------------------------------------------
|
2958
3066
|
//
|
@@ -3019,6 +3127,7 @@ const SolutionVariables = class {
|
|
3019
3127
|
this._translations = translations[0];
|
3020
3128
|
}
|
3021
3129
|
static get watchers() { return {
|
3130
|
+
"locale": ["localeWatchHandler"],
|
3022
3131
|
"value": ["valueWatchHandler"]
|
3023
3132
|
}; }
|
3024
3133
|
};
|
@@ -219,6 +219,7 @@ const DeleteButton = class {
|
|
219
219
|
this.icon = undefined;
|
220
220
|
this.ids = [];
|
221
221
|
this.layer = undefined;
|
222
|
+
this.locale = undefined;
|
222
223
|
this._confirmDelete = false;
|
223
224
|
this._deleteEndabled = false;
|
224
225
|
this._supportsDelete = undefined;
|
@@ -247,6 +248,14 @@ const DeleteButton = class {
|
|
247
248
|
async layerWatchHandler() {
|
248
249
|
this._setDeleteEnabled();
|
249
250
|
}
|
251
|
+
/**
|
252
|
+
* Fetch translations when the locale is updated
|
253
|
+
*/
|
254
|
+
async localeWatchHandler() {
|
255
|
+
// to support url param and language switcher
|
256
|
+
this.el.lang = this.locale;
|
257
|
+
await this._getTranslations();
|
258
|
+
}
|
250
259
|
//--------------------------------------------------------------------------
|
251
260
|
//
|
252
261
|
// Methods (public)
|
@@ -278,7 +287,7 @@ const DeleteButton = class {
|
|
278
287
|
* Renders the component.
|
279
288
|
*/
|
280
289
|
render() {
|
281
|
-
return (index.h(index.Host, { key: '
|
290
|
+
return (index.h(index.Host, { key: '1816da3d5cd7903b4e699dffa4ac4836dca722bb' }, this.buttonType === "button" ? (index.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()))) : (index.h("calcite-action", { appearance: "solid", compact: true, disabled: !this._deleteEndabled, id: this.icon, onClick: () => this._delete(), scale: "s", text: this._translations.delete }, index.h("calcite-button", { appearance: "transparent", iconStart: this.icon, kind: "danger" }, this._translations.delete))), this._deleteMessage(), index.h("calcite-tooltip", { key: '26fc4d4b4ea02b7a6c5e3f87abe2c5b8f96a3654', placement: "bottom", "reference-element": this.buttonType === "button" ? "solutions-delete" : this.icon }, index.h("span", { key: 'c2f7b101bb3a99274fe7f364ad29365c212d856e' }, this._translations.delete))));
|
282
291
|
}
|
283
292
|
/**
|
284
293
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -312,7 +321,7 @@ const DeleteButton = class {
|
|
312
321
|
* @returns node to confirm or deny the delete operation
|
313
322
|
*/
|
314
323
|
_deleteMessage() {
|
315
|
-
return this.deleteDialog ? this.deleteDialog : (index.h("delete-dialog", { id: "solution-delete-dialog", ids: this.ids, layer: this.layer, onDeleteDialogClose: () => this._confirmDelete = false, open: this._confirmDelete }));
|
324
|
+
return this.deleteDialog ? this.deleteDialog : (index.h("delete-dialog", { id: "solution-delete-dialog", ids: this.ids, layer: this.layer, locale: this.locale, onDeleteDialogClose: () => this._confirmDelete = false, open: this._confirmDelete }));
|
316
325
|
}
|
317
326
|
/**
|
318
327
|
* Fetches the component's translations
|
@@ -326,7 +335,8 @@ const DeleteButton = class {
|
|
326
335
|
}
|
327
336
|
static get watchers() { return {
|
328
337
|
"ids": ["idsWatchHandler"],
|
329
|
-
"layer": ["layerWatchHandler"]
|
338
|
+
"layer": ["layerWatchHandler"],
|
339
|
+
"locale": ["localeWatchHandler"]
|
330
340
|
}; }
|
331
341
|
};
|
332
342
|
DeleteButton.style = DeleteButtonStyle0;
|
@@ -341,6 +351,7 @@ const DeleteDialog = class {
|
|
341
351
|
this.deleteDialogClose = index.createEvent(this, "deleteDialogClose", 7);
|
342
352
|
this.ids = [];
|
343
353
|
this.layer = undefined;
|
354
|
+
this.locale = undefined;
|
344
355
|
this.open = false;
|
345
356
|
this._isDeleting = false;
|
346
357
|
this._translations = undefined;
|
@@ -356,6 +367,14 @@ const DeleteDialog = class {
|
|
356
367
|
// Watch handlers
|
357
368
|
//
|
358
369
|
//--------------------------------------------------------------------------
|
370
|
+
/**
|
371
|
+
* Fetch translations when the locale is updated
|
372
|
+
*/
|
373
|
+
async localeWatchHandler() {
|
374
|
+
// to support url param and language switcher
|
375
|
+
this.el.lang = this.locale;
|
376
|
+
await this._getTranslations();
|
377
|
+
}
|
359
378
|
//--------------------------------------------------------------------------
|
360
379
|
//
|
361
380
|
// Methods (public)
|
@@ -393,7 +412,7 @@ const DeleteDialog = class {
|
|
393
412
|
render() {
|
394
413
|
const confirmMessage = this.ids.length === 1 ? this._translations?.confirmSingle :
|
395
414
|
this._translations?.confirmMultiple;
|
396
|
-
return (index.h(index.Host, { key: '
|
415
|
+
return (index.h(index.Host, { key: 'eafca7d4325c65ff21fbfeaa24ea14e95bc25a34' }, index.h("calcite-modal", { key: '745e52d7b23318492914662cc769a1206baefd28', "aria-labelledby": "modal-title", class: "delete-modal", kind: "danger", onCalciteModalClose: () => this._close(), open: this.open, widthScale: "s" }, index.h("div", { key: '363614f6eaf30c30c6c2ccde3875dfff5cd94088', class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations?.deleteFeature), index.h("div", { key: 'b3b6f74495894589b7fd8be54265c4a69ffaa62e', slot: "content" }, confirmMessage), index.h("calcite-button", { key: 'd325fcf12624bac39f56ec690f7e4e9660789891', appearance: "outline", kind: "danger", onClick: () => this._close(), slot: "secondary", width: "full" }, this._translations?.cancel), index.h("calcite-button", { key: '73a10546ad92065c949bfacca3eb3d508685030e', kind: "danger", loading: this._isDeleting, onClick: () => void this._deleteFeatures(), slot: "primary", width: "full" }, this._translations?.delete))));
|
397
416
|
}
|
398
417
|
//--------------------------------------------------------------------------
|
399
418
|
//
|
@@ -432,6 +451,9 @@ const DeleteDialog = class {
|
|
432
451
|
const messages = await locale.getLocaleComponentStrings(this.el);
|
433
452
|
this._translations = messages[0];
|
434
453
|
}
|
454
|
+
static get watchers() { return {
|
455
|
+
"locale": ["localeWatchHandler"]
|
456
|
+
}; }
|
435
457
|
};
|
436
458
|
DeleteDialog.style = DeleteDialogStyle0;
|
437
459
|
|