@esri/solutions-components 0.10.25 → 0.10.26
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 +9 -9
- package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-alert_5.cjs.entry.js +20 -21
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +15 -3
- package/dist/cjs/calcite-flow_4.cjs.entry.js +6 -6
- package/dist/cjs/calcite-modal_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +7 -7
- package/dist/cjs/card-manager_3.cjs.entry.js +473 -53
- package/dist/cjs/crowdsource-manager.cjs.entry.js +55 -21
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
- package/dist/cjs/feature-comments.cjs.entry.js +1 -1
- package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/feature-list.cjs.entry.js +3 -3
- package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/layout-manager.cjs.entry.js +1 -1
- package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +1 -1
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/share-item.cjs.entry.js +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
- package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
- package/dist/cjs/solution-item-accordion.cjs.entry.js +1 -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 +1 -1
- package/dist/collection/assets/t9n/card-manager/resources.json +1 -0
- package/dist/collection/assets/t9n/card-manager/resources_en.json +2 -1
- package/dist/collection/assets/t9n/create-feature/resources_ar.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_bg.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_bs.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_ca.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_cs.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_da.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_de.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_el.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_es.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_et.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_fi.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_fr.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_he.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_hr.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_hu.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_id.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_it.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_ja.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_ko.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_lt.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_lv.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_nb.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_nl.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_pl.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_pt-BR.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_pt-PT.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_ro.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_ru.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_sk.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_sl.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_sr.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_sv.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_th.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_tr.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_uk.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_vi.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_zh-CN.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_zh-HK.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_zh-TW.json +5 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_ar.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_bg.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_bs.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_ca.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_cs.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_da.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_de.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_el.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_es.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_et.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_fi.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_fr.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_he.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_hr.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_hu.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_id.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_it.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_ja.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_ko.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_lt.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_lv.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_nb.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_nl.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_pl.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_pt-BR.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_pt-PT.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_ro.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_ru.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_sk.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_sl.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_sr.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_sv.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_th.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_tr.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_uk.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_vi.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_zh-CN.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_zh-HK.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_zh-TW.json +3 -0
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_ar.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_bg.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_bs.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_ca.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_cs.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_da.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_de.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_el.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_es.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_et.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_fi.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_fr.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_he.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_hr.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_hu.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_id.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_it.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_ja.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_ko.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_lt.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_lv.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_nb.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_nl.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_pl.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_pt-BR.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_pt-PT.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_ro.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_ru.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_sk.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_sl.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_sr.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_sv.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_th.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_tr.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_uk.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_vi.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-CN.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-HK.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-TW.json +0 -1
- package/dist/collection/assets/t9n/delete-button/resources_ar.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_bg.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_bs.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_ca.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_cs.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_da.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_de.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_el.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_es.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_et.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_fi.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_fr.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_he.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_hr.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_hu.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_id.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_it.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_ja.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_ko.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_lt.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_lv.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_nb.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_nl.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_pl.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_pt-BR.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_pt-PT.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_ro.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_ru.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_sk.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_sl.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_sr.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_sv.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_th.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_tr.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_uk.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_vi.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_zh-CN.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_zh-HK.json +6 -6
- package/dist/collection/assets/t9n/delete-button/resources_zh-TW.json +6 -6
- package/dist/collection/assets/t9n/edit-card/resources_ar.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_bg.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_bs.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_ca.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_cs.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_da.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_de.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_el.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_es.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_et.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_fi.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_fr.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_he.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_hr.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_hu.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_id.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_it.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_ja.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_ko.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_lt.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_lv.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_nb.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_nl.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_pl.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_pt-BR.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_pt-PT.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_ro.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_ru.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_sk.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_sl.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_sr.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_sv.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_th.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_tr.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_uk.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_vi.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_zh-CN.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_zh-HK.json +1 -1
- package/dist/collection/assets/t9n/edit-card/resources_zh-TW.json +1 -1
- package/dist/collection/assets/t9n/info-card/resources_ar.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_bg.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_bs.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_ca.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_cs.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_da.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_de.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_el.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_es.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_et.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_fi.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_fr.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_he.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_hr.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_hu.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_id.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_it.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_ja.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_ko.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_lt.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_lv.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_nb.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_nl.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_pl.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_pt-BR.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_pt-PT.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_ro.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_ru.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_sk.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_sl.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_sr.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_sv.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_th.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_tr.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_uk.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_vi.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_zh-CN.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_zh-HK.json +8 -8
- package/dist/collection/assets/t9n/info-card/resources_zh-TW.json +8 -8
- package/dist/collection/assets/t9n/layer-table/resources.json +1 -0
- package/dist/collection/assets/t9n/layer-table/resources_en.json +1 -0
- package/dist/collection/assets/t9n/map-card/resources.json +2 -1
- package/dist/collection/assets/t9n/map-card/resources_en.json +2 -1
- package/dist/collection/components/card-manager/card-manager.js +22 -3
- package/dist/collection/components/create-feature/create-feature.js +36 -19
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +8 -4
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +64 -21
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +1 -1
- package/dist/collection/components/delete-button/delete-button.js +1 -1
- package/dist/collection/components/edit-card/edit-card.js +1 -1
- package/dist/collection/components/feature-comments/feature-comments.js +1 -1
- package/dist/collection/components/feature-details/feature-details.js +6 -6
- package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
- package/dist/collection/components/feature-list/feature-list.js +3 -3
- package/dist/collection/components/features-flow-item/features-flow-item.js +1 -1
- package/dist/collection/components/floor-filter/floor-filter.js +1 -1
- package/dist/collection/components/info-card/info-card.js +2 -2
- package/dist/collection/components/json-editor/json-editor.js +1 -1
- package/dist/collection/components/layer-table/layer-table.css +4 -0
- package/dist/collection/components/layer-table/layer-table.js +49 -22
- package/dist/collection/components/layout-manager/layout-manager.js +1 -1
- package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
- package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
- package/dist/collection/components/map-card/map-card.css +10 -2
- package/dist/collection/components/map-card/map-card.js +471 -30
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +55 -5
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.css +7 -3
- package/dist/collection/components/map-picker/map-picker.js +3 -3
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
- package/dist/collection/components/map-tools/map-tools.js +1 -1
- package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
- package/dist/collection/components/pdf-download/pdf-download.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +1 -1
- package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/components/share-item/share-item.js +1 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
- package/dist/collection/components/solution-contents/solution-contents.js +1 -1
- package/dist/collection/components/solution-item/solution-item.js +1 -1
- package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -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 +1 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
- package/dist/collection/components/solution-variables/solution-variables.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
- package/dist/components/card-manager2.js +6 -3
- package/dist/components/create-feature2.js +19 -19
- package/dist/components/crowdsource-manager.js +60 -23
- package/dist/components/crowdsource-reporter.js +1 -1
- package/dist/components/delete-button2.js +19 -13
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/feature-comments.js +1 -1
- package/dist/components/feature-details2.js +6 -6
- package/dist/components/feature-form-flow-item.js +1 -1
- package/dist/components/feature-list2.js +3 -3
- package/dist/components/features-flow-item.js +1 -1
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/info-card2.js +2 -2
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/layer-table2.js +44 -23
- package/dist/components/layout-manager.js +1 -1
- package/dist/components/list-flow-item.js +1 -1
- package/dist/components/location-flow-item.js +1 -1
- package/dist/components/map-card2.js +436 -33
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +19 -5
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +4 -4
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/map-tools2.js +1 -1
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/public-notification.js +1 -1
- package/dist/components/refine-results-flow-item.js +1 -1
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/share-item.js +1 -1
- package/dist/components/solution-configuration.js +3 -3
- package/dist/components/solution-contents2.js +1 -1
- package/dist/components/solution-item-accordion.js +1 -1
- package/dist/components/solution-item-details2.js +1 -1
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +1 -1
- package/dist/components/solution-item2.js +1 -1
- package/dist/components/solution-organization-variables2.js +1 -1
- package/dist/components/solution-resource-item2.js +1 -1
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-template-data2.js +1 -1
- package/dist/components/solution-variables2.js +1 -1
- package/dist/components/spatial-ref.js +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +9 -9
- package/dist/esm/buffer-tools_3.entry.js +1 -1
- package/dist/esm/calcite-alert_5.entry.js +20 -21
- package/dist/esm/calcite-combobox_3.entry.js +16 -4
- package/dist/esm/calcite-flow_4.entry.js +6 -6
- package/dist/esm/calcite-modal_3.entry.js +1 -1
- package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
- package/dist/esm/card-manager_3.entry.js +474 -54
- package/dist/esm/crowdsource-manager.entry.js +55 -21
- package/dist/esm/crowdsource-reporter.entry.js +1 -1
- package/dist/esm/feature-comments.entry.js +1 -1
- package/dist/esm/feature-form-flow-item.entry.js +1 -1
- package/dist/esm/feature-list.entry.js +3 -3
- package/dist/esm/features-flow-item.entry.js +1 -1
- package/dist/esm/layout-manager.entry.js +1 -1
- package/dist/esm/list-flow-item.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/location-flow-item.entry.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +3 -3
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/public-notification.entry.js +1 -1
- package/dist/esm/refine-results-flow-item.entry.js +1 -1
- package/dist/esm/share-item.entry.js +1 -1
- package/dist/esm/solution-configuration.entry.js +3 -3
- package/dist/esm/solution-contents_3.entry.js +3 -3
- package/dist/esm/solution-item-accordion.entry.js +1 -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 +1 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources.json +1 -0
- package/dist/solutions-components/assets/t9n/card-manager/resources_en.json +2 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_ar.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_bg.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_bs.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_ca.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_cs.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_da.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_de.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_el.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_es.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_et.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_fi.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_fr.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_he.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_hr.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_hu.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_id.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_it.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_ja.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_ko.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_lt.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_lv.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_nb.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_nl.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_pl.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_pt-BR.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_pt-PT.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_ro.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_ru.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_sk.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_sl.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_sr.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_sv.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_th.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_tr.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_uk.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_vi.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_zh-CN.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_zh-HK.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_zh-TW.json +5 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_ar.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_bg.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_bs.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_ca.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_cs.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_da.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_de.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_el.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_es.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_et.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_fi.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_fr.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_he.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_hr.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_hu.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_id.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_it.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_ja.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_ko.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_lt.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_lv.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_nb.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_nl.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_pl.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_pt-BR.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_pt-PT.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_ro.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_ru.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_sk.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_sl.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_sr.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_sv.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_th.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_tr.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_uk.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_vi.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_zh-CN.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_zh-HK.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_zh-TW.json +3 -0
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ar.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_bg.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_bs.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ca.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_cs.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_da.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_de.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_el.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_es.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_et.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_fi.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_fr.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_he.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_hr.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_hu.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_id.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_it.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ja.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ko.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_lt.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_lv.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_nb.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_nl.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pl.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pt-BR.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pt-PT.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ro.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ru.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sk.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sl.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sr.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sv.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_th.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_tr.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_uk.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_vi.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-CN.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-HK.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-TW.json +0 -1
- package/dist/solutions-components/assets/t9n/delete-button/resources_ar.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_bg.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_bs.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_ca.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_cs.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_da.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_de.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_el.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_es.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_et.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_fi.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_fr.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_he.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_hr.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_hu.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_id.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_it.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_ja.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_ko.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_lt.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_lv.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_nb.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_nl.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_pl.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_pt-BR.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_pt-PT.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_ro.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_ru.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_sk.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_sl.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_sr.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_sv.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_th.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_tr.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_uk.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_vi.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_zh-CN.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_zh-HK.json +6 -6
- package/dist/solutions-components/assets/t9n/delete-button/resources_zh-TW.json +6 -6
- package/dist/solutions-components/assets/t9n/edit-card/resources_ar.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_bg.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_bs.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_ca.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_cs.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_da.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_de.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_el.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_es.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_et.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_fi.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_fr.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_he.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_hr.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_hu.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_id.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_it.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_ja.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_ko.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_lt.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_lv.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_nb.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_nl.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_pl.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_pt-BR.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_pt-PT.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_ro.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_ru.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_sk.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_sl.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_sr.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_sv.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_th.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_tr.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_uk.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_vi.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_zh-CN.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_zh-HK.json +1 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_zh-TW.json +1 -1
- package/dist/solutions-components/assets/t9n/info-card/resources_ar.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_bg.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_bs.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_ca.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_cs.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_da.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_de.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_el.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_es.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_et.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_fi.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_fr.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_he.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_hr.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_hu.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_id.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_it.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_ja.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_ko.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_lt.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_lv.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_nb.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_nl.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_pl.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_pt-BR.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_pt-PT.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_ro.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_ru.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_sk.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_sl.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_sr.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_sv.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_th.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_tr.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_uk.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_vi.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_zh-CN.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_zh-HK.json +8 -8
- package/dist/solutions-components/assets/t9n/info-card/resources_zh-TW.json +8 -8
- package/dist/solutions-components/assets/t9n/layer-table/resources.json +1 -0
- package/dist/solutions-components/assets/t9n/layer-table/resources_en.json +1 -0
- package/dist/solutions-components/assets/t9n/map-card/resources.json +2 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_en.json +2 -1
- package/dist/solutions-components/{p-af3e49d8.entry.js → p-0a311862.entry.js} +1 -1
- package/dist/solutions-components/{p-f88c3477.entry.js → p-100bf9eb.entry.js} +1 -1
- package/dist/solutions-components/{p-ac7868a6.entry.js → p-2cc624c3.entry.js} +1 -1
- package/dist/solutions-components/p-31524836.entry.js +6 -0
- package/dist/solutions-components/p-3305a61f.entry.js +6 -0
- package/dist/solutions-components/{p-030e5077.entry.js → p-3e3b7172.entry.js} +1 -1
- package/dist/solutions-components/p-52dad11d.entry.js +6 -0
- package/dist/solutions-components/{p-5d58d70c.entry.js → p-565bc712.entry.js} +1 -1
- package/dist/solutions-components/{p-1b0fe5b1.entry.js → p-77052872.entry.js} +1 -1
- package/dist/solutions-components/{p-1c5f17cb.entry.js → p-776995b1.entry.js} +1 -1
- package/dist/solutions-components/{p-e8aa44e2.entry.js → p-81512d73.entry.js} +1 -1
- package/dist/solutions-components/{p-9384cc65.entry.js → p-8267d344.entry.js} +1 -1
- package/dist/solutions-components/{p-16a3f7ca.entry.js → p-8be24ce9.entry.js} +1 -1
- package/dist/solutions-components/p-8d0f6824.entry.js +6 -0
- package/dist/solutions-components/p-9850998d.entry.js +6 -0
- package/dist/solutions-components/{p-5a997dc9.entry.js → p-a095dadb.entry.js} +3 -3
- package/dist/solutions-components/{p-42cd083f.entry.js → p-a0a77f45.entry.js} +2 -2
- package/dist/solutions-components/p-abd68931.entry.js +6 -0
- package/dist/solutions-components/p-ad1c27ef.entry.js +6 -0
- package/dist/solutions-components/{p-39e9ae5c.entry.js → p-c13774d5.entry.js} +1 -1
- package/dist/solutions-components/{p-57025491.entry.js → p-c346ca43.entry.js} +1 -1
- package/dist/solutions-components/{p-18307307.entry.js → p-c976ac3b.entry.js} +1 -1
- package/dist/solutions-components/{p-5cef36d6.entry.js → p-d9b8b4e2.entry.js} +1 -1
- package/dist/solutions-components/p-e0f10596.entry.js +6 -0
- package/dist/solutions-components/{p-3e9a487b.entry.js → p-f359c162.entry.js} +2 -2
- package/dist/solutions-components/p-f3e3a4d5.entry.js +6 -0
- package/dist/solutions-components/p-f6eeac1b.entry.js +17 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/card-manager/card-manager.d.ts +5 -1
- package/dist/types/components/create-feature/create-feature.d.ts +8 -6
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +20 -0
- package/dist/types/components/layer-table/layer-table.d.ts +10 -2
- package/dist/types/components/map-card/map-card.d.ts +180 -14
- package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +9 -1
- package/dist/types/components.d.ts +43 -6
- package/dist/types/preact.d.ts +2 -1
- package/package.json +1 -1
- package/dist/solutions-components/p-062e5705.entry.js +0 -6
- package/dist/solutions-components/p-374d0fdc.entry.js +0 -6
- package/dist/solutions-components/p-3c89bfe5.entry.js +0 -6
- package/dist/solutions-components/p-671fd156.entry.js +0 -6
- package/dist/solutions-components/p-6b1d1546.entry.js +0 -17
- package/dist/solutions-components/p-a8b42e35.entry.js +0 -6
- package/dist/solutions-components/p-aa85b136.entry.js +0 -6
- package/dist/solutions-components/p-b75c4db2.entry.js +0 -6
- package/dist/solutions-components/p-f3166d51.entry.js +0 -6
- package/dist/solutions-components/p-f6dc7347.entry.js +0 -6
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{g as t,r as e,h as i,H as n}from"./p-6eb37ed2.js";import{g as r,a as s,b as o}from"./p-e9d3365f.js";import{s as a}from"./p-36e59391.js";import"./p-d0d020a5.js";import"./p-7530a02f.js";import{g as h}from"./p-2058b5d9.js";import{r as c,N as u,c as l,e as
|
6
|
+
import{g as t,r as e,h as i,H as n}from"./p-6eb37ed2.js";import{g as r,a as s,b as o}from"./p-e9d3365f.js";import{s as a}from"./p-36e59391.js";import"./p-d0d020a5.js";import"./p-7530a02f.js";import{g as h}from"./p-2058b5d9.js";import{r as c,N as u,c as l,e as d,A as f}from"./p-9bb44f57.js";import"./p-80cb7c73.js";import"./p-720a12c0.js";import"./p-d4056c1c.js";import"./p-0a24ad5f.js";
|
7
7
|
/*! *****************************************************************************
|
8
8
|
Copyright (c) Microsoft Corporation.
|
9
9
|
|
@@ -17,4 +17,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
17
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
18
18
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
19
19
|
PERFORMANCE OF THIS SOFTWARE.
|
20
|
-
***************************************************************************** */var p=function(){return p=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},p.apply(this,arguments)};function w(t,e){var i=e;return i.rawResponse=!1,c(t,i).then((function(t){var e={token:t.access_token,username:t.username,expires:new Date(Date.now()+(1e3*t.expires_in-1e3)),ssl:!0===t.ssl};return t.refresh_token&&(e.refreshToken=t.refresh_token),e}))}function m(t,e){var i=e;return i.params.referer="undefined"!=typeof window&&window.location&&window.location.host?window.location.host:u,c(t,i)}var g=/^https?:\/\/(\S+)\.arcgis\.com.+/;function v(t){return g.test(t)}function b(t){if(!g.test(t))return null;var e=t.match(g)[1].split(".").pop();return e.includes("dev")?"dev":e.includes("qa")?"qa":"production"}var k=function(){function t(t){if(this.clientId=t.clientId,this._refreshToken=t.refreshToken,this._refreshTokenExpires=t.refreshTokenExpires,this.username=t.username,this.password=t.password,this._token=t.token,this._tokenExpires=t.tokenExpires,this.portal=t.portal?l(t.portal):"https://www.arcgis.com/sharing/rest",this.ssl=t.ssl,this.provider=t.provider||"arcgis",this.tokenDuration=t.tokenDuration||20160,this.redirectUri=t.redirectUri,this.refreshTokenTTL=t.refreshTokenTTL||20160,this.server=t.server,this.federatedServers={},this.trustedDomains=[],t.server){var e=this.getServerRootUrl(t.server);this.federatedServers[e]={token:t.token,expires:t.tokenExpires}}this._pendingTokenRequests={}}return Object.defineProperty(t.prototype,"token",{get:function(){return this._token},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tokenExpires",{get:function(){return this._tokenExpires},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refreshToken",{get:function(){return this._refreshToken},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refreshTokenExpires",{get:function(){return this._refreshTokenExpires},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trustedServers",{get:function(){return console.log("DEPRECATED: use federatedServers instead"),this.federatedServers},enumerable:!1,configurable:!0}),t.beginOAuth2=function(e,i){void 0===i&&(i=window),e.duration&&console.log("DEPRECATED: 'duration' is deprecated - use 'expiration' instead");var n,r=p({portal:"https://www.arcgis.com/sharing/rest",provider:"arcgis",expiration:20160,popup:!0,popupWindowFeatures:"height=400,width=600,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes",state:e.clientId,locale:""},e),s=r.portal,o=r.provider,a=r.clientId,h=r.expiration,c=r.redirectUri,u=r.popup,l=r.popupWindowFeatures,w=r.state,m=r.locale,g=r.params;if(n="arcgis"===o?s+"/oauth2/authorize?client_id="+a+"&response_type=token&expiration="+(e.duration||h)+"&redirect_uri="+encodeURIComponent(c)+"&state="+w+"&locale="+m:s+"/oauth2/social/authorize?client_id="+a+"&socialLoginProviderName="+o+"&autoAccountCreateForSocial=true&response_type=token&expiration="+(e.duration||h)+"&redirect_uri="+encodeURIComponent(c)+"&state="+w+"&locale="+m,g&&(n=n+"&"+f(g)),u){var v,b=((v={promise:null,resolve:null,reject:null}).promise=new Promise((function(t,e){v.resolve=t,v.reject=e})),v);return i["__ESRI_REST_AUTH_HANDLER_"+a]=function(e,i){if(e){var n=JSON.parse(e);b.reject(new d(n.errorMessage,n.error))}else if(i){var r=JSON.parse(i);b.resolve(new t({clientId:a,portal:s,ssl:r.ssl,token:r.token,tokenExpires:new Date(r.expires),username:r.username}))}},i.open(n,"oauth-window",l),b.promise}i.location.href=n},t.completeOAuth2=function(e,i){void 0===i&&(i=window);var n=p({portal:"https://www.arcgis.com/sharing/rest",popup:!0},e),r=n.portal,s=n.clientId,o=n.popup;function a(e,n){try{var a=void 0,h="__ESRI_REST_AUTH_HANDLER_"+s;if(o&&(i.opener?i.opener.parent&&i.opener.parent[h]?a=i.opener.parent[h]:i.opener&&i.opener[h]&&(a=i.opener[h]):i!==i.parent&&i.parent&&i.parent[h]&&(a=i.parent[h]),a))return a(e?JSON.stringify(e):void 0,JSON.stringify(n)),void i.close()}catch(t){throw new d('Unable to complete authentication. It\'s possible you specified popup based oAuth2 but no handler from "beginOAuth2()" present. This generally happens because the "popup" option differs between "beginOAuth2()" and "completeOAuth2()".')}if(e)throw new d(e.errorMessage,e.error);return new t({clientId:s,portal:r,ssl:n.ssl,token:n.token,tokenExpires:n.expires,username:n.username})}var h=i.location.hash.replace(/^#/,"").split("&").reduce((function(t,e){var i=function(t){var e=t.split("="),i=e[1];return{key:decodeURIComponent(e[0]),value:decodeURIComponent(i)}}(e);return t[i.key]=i.value,t}),{});if(!h.access_token){var c=void 0,u="Unknown error";return h.error&&(c=h.error,u=h.error_description),a({error:c,errorMessage:u})}return a(void 0,{token:h.access_token,expires:new Date(Date.now()+1e3*parseInt(h.expires_in,10)-6e4),ssl:"true"===h.ssl,username:h.username})},t.fromParent=function(e,i){var n;return!i&&window&&(i=window),new Promise((function(r,s){i.addEventListener("message",n=function(e){if(e.source===i.parent&&e.data)try{return r(t.parentMessageHandler(e))}catch(t){return s(t)}},!1),i.parent.postMessage({type:"arcgis:auth:requestCredential"},e)})).then((function(t){return i.removeEventListener("message",n,!1),t}))},t.authorize=function(t,e){t.duration&&console.log("DEPRECATED: 'duration' is deprecated - use 'expiration' instead");var i=p({portal:"https://arcgis.com/sharing/rest",expiration:20160},t);e.writeHead(301,{Location:i.portal+"/oauth2/authorize?client_id="+i.clientId+"&expiration="+(t.duration||i.expiration)+"&response_type=code&redirect_uri="+encodeURIComponent(i.redirectUri)}),e.end()},t.exchangeAuthorizationCode=function(e,i){var n=p({portal:"https://www.arcgis.com/sharing/rest",refreshTokenTTL:20160},e),r=n.portal,s=n.clientId,o=n.redirectUri,a=n.refreshTokenTTL;return w(r+"/oauth2/token",{params:{grant_type:"authorization_code",client_id:s,redirect_uri:o,code:i}}).then((function(e){return new t({clientId:s,portal:r,ssl:e.ssl,redirectUri:o,refreshToken:e.refreshToken,refreshTokenTTL:a,refreshTokenExpires:new Date(Date.now()+60*(a-1)*1e3),token:e.token,tokenExpires:e.expires,username:e.username})}))},t.deserialize=function(e){var i=JSON.parse(e);return new t({clientId:i.clientId,refreshToken:i.refreshToken,refreshTokenExpires:new Date(i.refreshTokenExpires),username:i.username,password:i.password,token:i.token,tokenExpires:new Date(i.tokenExpires),portal:i.portal,ssl:i.ssl,tokenDuration:i.tokenDuration,redirectUri:i.redirectUri,refreshTokenTTL:i.refreshTokenTTL})},t.fromCredential=function(e){var i=void 0===e.ssl||e.ssl,n=e.expires||Date.now()+72e5;return new t({portal:e.server.includes("sharing/rest")?e.server:e.server+"/sharing/rest",ssl:i,token:e.token,username:e.userId,tokenExpires:new Date(n)})},t.parentMessageHandler=function(e){if("arcgis:auth:credential"===e.data.type)return t.fromCredential(e.data.credential);if("arcgis:auth:error"===e.data.type){var i=new Error(e.data.error.message);throw i.name=e.data.error.name,i}throw new Error("Unknown message type.")},t.prototype.toCredential=function(){return{expires:this.tokenExpires.getTime(),server:this.portal,ssl:this.ssl,token:this.token,userId:this.username}},t.prototype.getUser=function(t){var e=this;if(this._pendingUserRequest)return this._pendingUserRequest;if(this._user)return Promise.resolve(this._user);var i=this.portal+"/community/self",n=p(p({httpMethod:"GET",authentication:this},t),{rawResponse:!1});return this._pendingUserRequest=c(i,n).then((function(t){return e._user=t,e._pendingUserRequest=null,t})),this._pendingUserRequest},t.prototype.getPortal=function(t){var e=this;if(this._pendingPortalRequest)return this._pendingPortalRequest;if(this._portalInfo)return Promise.resolve(this._portalInfo);var i=this.portal+"/portals/self",n=p(p({httpMethod:"GET",authentication:this},t),{rawResponse:!1});return this._pendingPortalRequest=c(i,n).then((function(t){return e._portalInfo=t,e._pendingPortalRequest=null,t})),this._pendingPortalRequest},t.prototype.getUsername=function(){return this.username?Promise.resolve(this.username):this._user?Promise.resolve(this._user.username):this.getUser().then((function(t){return t.username}))},t.prototype.getToken=function(t,e){return n=t,r=v(i=this.portal),s=v(n),o=b(i),a=b(n),r&&s&&o===a||new RegExp(this.portal,"i").test(t)?this.getFreshToken(e):this.getTokenForServer(t,e);var i,n,r,s,o,a},t.prototype.validateAppAccess=function(t){return this.getToken(this.portal).then((function(e){return function(t,e,i){return void 0===i&&(i="https://www.arcgis.com/sharing/rest"),c(i+"/oauth2/validateAppAccess",{method:"POST",params:{f:"json",client_id:e,token:t}})}(e,t)}))},t.prototype.toJSON=function(){return{clientId:this.clientId,refreshToken:this.refreshToken,refreshTokenExpires:this.refreshTokenExpires,username:this.username,password:this.password,token:this.token,tokenExpires:this.tokenExpires,portal:this.portal,ssl:this.ssl,tokenDuration:this.tokenDuration,redirectUri:this.redirectUri,refreshTokenTTL:this.refreshTokenTTL}},t.prototype.serialize=function(){return JSON.stringify(this)},t.prototype.enablePostMessageAuth=function(t,e){!e&&window&&(e=window),this._hostHandler=this.createPostMessageHandler(t),e.addEventListener("message",this._hostHandler,!1)},t.prototype.disablePostMessageAuth=function(t){!t&&window&&(t=window),t.removeEventListener("message",this._hostHandler,!1)},t.prototype.refreshSession=function(t){return this._user=null,this.username&&this.password?this.refreshWithUsernameAndPassword(t):this.clientId&&this.refreshToken?this.refreshWithRefreshToken():Promise.reject(new d("Unable to refresh token."))},t.prototype.getServerRootUrl=function(t){var e=l(t).split(/\/rest(\/admin)?\/services(?:\/|#|\?|$)/)[0].match(/(https?:\/\/)(.+)/),i=e[1],n=e[2].split("/"),r=n[0],s=n.slice(1);return""+i+r.toLowerCase()+"/"+s.join("/")},t.prototype.getDomainCredentials=function(t){return this.trustedDomains&&this.trustedDomains.length&&this.trustedDomains.some((function(e){return t.startsWith(e)}))?"include":"same-origin"},t.prototype.createPostMessageHandler=function(t){var e=this;return function(i){var n=t.indexOf(i.origin)>-1,r="arcgis:auth:requestCredential"===i.data.type,s=e.tokenExpires.getTime()>Date.now();if(n&&r){var o={};if(s){var a=e.toCredential();a.server=a.server.replace("/sharing/rest",""),o={type:"arcgis:auth:credential",credential:a}}else o={type:"arcgis:auth:error",error:{name:"tokenExpiredError",message:"Session token was expired, and not returned to the child application"}};i.source.postMessage(o,i.origin)}}},t.prototype.getTokenForServer=function(t,e){var i=this,n=this.getServerRootUrl(t),r=this.federatedServers[n];return r&&r.expires&&r.expires.getTime()>Date.now()?Promise.resolve(r.token):(this._pendingTokenRequests[n]||(this._pendingTokenRequests[n]=this.fetchAuthorizedDomains().then((function(){return c(n+"/rest/info",{credentials:i.getDomainCredentials(t)}).then((function(r){if(r.owningSystemUrl){if(s=r.owningSystemUrl,o=l(function(t){if(!g.test(t))return t;switch(b(t)){case"dev":return"https://devext.arcgis.com/sharing/rest";case"qa":return"https://qaext.arcgis.com/sharing/rest";default:return"https://www.arcgis.com/sharing/rest"}}(i.portal)).replace(/https?:\/\//,""),a=l(s).replace(/https?:\/\//,""),new RegExp(a,"i").test(o))return c(r.owningSystemUrl+"/sharing/rest/info",e);throw new d(t+" is not federated with "+i.portal+".","NOT_FEDERATED")}var s,o,a;if(r.authInfo&&void 0!==i.federatedServers[n])return Promise.resolve({authInfo:r.authInfo});throw new d(t+" is not federated with any portal and is not explicitly trusted.","NOT_FEDERATED")})).then((function(t){return t.authInfo.tokenServicesUrl})).then((function(e){return i.token&&i.tokenExpires.getTime()>Date.now()?m(e,{params:{token:i.token,serverUrl:t,expiration:i.tokenDuration,client:"referer"}}):m(e,{params:{username:i.username,password:i.password,expiration:i.tokenDuration,client:"referer"}}).then((function(t){return i._token=t.token,i._tokenExpires=new Date(t.expires),t}))})).then((function(t){return i.federatedServers[n]={expires:new Date(t.expires),token:t.token},delete i._pendingTokenRequests[n],t.token}))}))),this._pendingTokenRequests[n])},t.prototype.getFreshToken=function(t){var e=this;return this.token&&!this.tokenExpires||this.token&&this.tokenExpires&&this.tokenExpires.getTime()>Date.now()?Promise.resolve(this.token):(this._pendingTokenRequests[this.portal]||(this._pendingTokenRequests[this.portal]=this.refreshSession(t).then((function(t){return e._pendingTokenRequests[e.portal]=null,t.token}))),this._pendingTokenRequests[this.portal])},t.prototype.refreshWithUsernameAndPassword=function(t){var e=this,i=p({params:{username:this.username,password:this.password,expiration:this.tokenDuration}},t);return m(this.portal+"/generateToken",i).then((function(t){return e._token=t.token,e._tokenExpires=new Date(t.expires),e}))},t.prototype.refreshWithRefreshToken=function(t){var e=this;if(this.refreshToken&&this.refreshTokenExpires&&this.refreshTokenExpires.getTime()<Date.now())return this.refreshRefreshToken(t);var i=p({params:{client_id:this.clientId,refresh_token:this.refreshToken,grant_type:"refresh_token"}},t);return w(this.portal+"/oauth2/token",i).then((function(t){return e._token=t.token,e._tokenExpires=t.expires,e}))},t.prototype.refreshRefreshToken=function(t){var e=this,i=p({params:{client_id:this.clientId,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,grant_type:"exchange_refresh_token"}},t);return w(this.portal+"/oauth2/token",i).then((function(t){return e._token=t.token,e._tokenExpires=t.expires,e._refreshToken=t.refreshToken,e._refreshTokenExpires=new Date(Date.now()+60*(e.refreshTokenTTL-1)*1e3),e}))},t.prototype.fetchAuthorizedDomains=function(){var t=this;return this.server||!this.portal?Promise.resolve(this):this.getPortal().then((function(e){return e.authorizedCrossOriginDomains&&e.authorizedCrossOriginDomains.length&&(t.trustedDomains=e.authorizedCrossOriginDomains.filter((function(t){return!t.startsWith("http://")})).map((function(t){return t.startsWith("https://")?t:"https://"+t}))),t}))},t}();const y=class{get el(){return t(this)}async serializedAuthenticationWatchHandler(){this.authentication=this.serializedAuthentication?k.deserialize(this.serializedAuthentication):new k({})}async valueWatchHandler(){await this._loadSolution(this.solutionItemId)}constructor(t){e(this,t),this.authentication=new k({}),this.serializedAuthentication="",this.solutionItemId="",this.showLoading=!1,this._currentEditItemId="",this._organizationVariables="",this._solutionContentsComponent=void 0,this._solutionIsLoaded=!1,this._solutionVariables="",this._templateHierarchy=[],this._translations=void 0,this._treeOpen=!0,this.serializedAuthentication&&(this.authentication=k.deserialize(this.serializedAuthentication)),this._loadSolution(this.solutionItemId),window.addEventListener("solutionStoreHasChanges",(t=>{this._updateSaveability(this._solutionStoreHasChanges=t.detail,this._solutionEditorHasChanges,this._solutionEditorHasErrors)})),window.addEventListener("solutionEditorHasChanges",(t=>{this._updateSaveability(this._solutionStoreHasChanges,this._solutionEditorHasChanges=t.detail,this._solutionEditorHasErrors)})),window.addEventListener("solutionEditorHasErrors",(t=>{this._updateSaveability(this._solutionStoreHasChanges,this._solutionEditorHasChanges,this._solutionEditorHasErrors=t.detail)}))}async componentWillLoad(){return this._getTranslations()}render(){const t=a.getStoreInfo("spatialReferenceInfo"),e=a.getStoreInfo("featureServices").length>0,o=a.getStoreInfo("solutionData");return this._solutionVariables=JSON.stringify(r(o.templates,this._translations)),this._organizationVariables=JSON.stringify(s(this._translations)),i(n,{key:"123945bd615832395c715d069c553338945c3445"},this._solutionIsLoaded?null:i("calcite-loader",{label:""}),i("div",{key:"b70e7008ad0f2fde0a284c2e1e7d13fafc4d3184",class:"configuration-container"},i("div",{key:"566193f4c5df2ad19206b3d458d0c298adca7e3b",class:"configuration"},i("calcite-tabs",{key:"34e2642b46dba26d67730feb2b5382ea02556b42",class:"config-tabs"},i("calcite-tab-nav",{key:"144f120e92e3f45e35ddc53a5bef7aef786eca5c",slot:"tab-nav"},i("calcite-tab-title",{key:"32c5c21f04e68b83fb8add008f9aa409c2c18fc6"},this._translations.definitionTab),e?i("calcite-tab-title",null,this._translations.spatialReferenceTab):null),i("calcite-tab",{key:"44392d41f2a367c3ab3b605ecc952d2873cdbade",class:"config-tab",selected:!0},i("div",{key:"50a37338ee55b0d04e0cfcf18e02180bdfb2a2da",class:"config-solution"},i("div",{key:"30a6e2d0cc31f7fbe0d1521e906e8f6ec5274f2e",class:this._treeOpen?"config-inventory":"config-inventory-hide"},i("solution-contents",{id:"configInventory",key:`${this.solutionItemId}-contents`,ref:t=>this._solutionContentsComponent=t})),i("calcite-button",{key:"a5e869d60079a9f68b024628ea7148886e79108e",appearance:"transparent",class:"collapse-btn","icon-start":this._treeOpen?"chevrons-left":"chevrons-right",id:"collapse-vars",onClick:()=>this._toggleTree(),scale:"s",title:this._treeOpen?this._translations.collapse:this._translations.expand}),i("div",{key:"23eea28391e9fa3e382b67554fa842c828f504f2",class:"config-item"},i("solution-item",{authentication:this.authentication,"item-id":this._currentEditItemId,key:`${this.solutionItemId}-item`,"organization-variables":this._organizationVariables,"solution-item-id":this.solutionItemId,"solution-variables":this._solutionVariables})))),e?i("calcite-tab",{class:"config-tab"},i("div",{class:"config-solution"},i("solution-spatial-ref",{enableDefault:!!t.default,enabled:t?.enabled,featureServices:a.getStoreInfo("featureServices").map((t=>t.name)),id:"configure-solution-spatial-ref",key:`${this.solutionItemId}-spatial-ref`}))):null))))}_solutionStoreHasChanges=!1;_solutionEditorHasChanges=!1;_solutionEditorHasErrors=!1;_canSave=!1;_solutionItemSelected(t){this._currentEditItemId=t.detail}async getSpatialReferenceInfo(){return Promise.resolve(a.getStoreInfo("spatialReferenceInfo"))}async saveSolution(){this._solutionIsLoaded=!1,await a.saveSolution(),this._solutionIsLoaded=!0,this.solutionItemId=null}async unloadSolution(){this.solutionItemId=null}_initProps(){const t=a.getStoreInfo("solutionData");let e;this._templateHierarchy=[...o(t.templates)],this._solutionContentsComponent&&(this._solutionContentsComponent.templateHierarchy=this._templateHierarchy),this._templateHierarchy.length>0&&(e=a.getItemInfo(this._templateHierarchy[0].id)),this._currentEditItemId=e?e.itemId:""}async _loadSolution(t){return t?(this._solutionIsLoaded=!1,await a.loadSolution(t,this.authentication),this._initProps(),this._solutionIsLoaded=!0):this._reset(),Promise.resolve()}_reset(){this._currentEditItemId="",this._organizationVariables="",this._solutionVariables="",this._templateHierarchy=[]}_toggleTree(){this._treeOpen=!this._treeOpen}_updateSaveability(t,e,i){const n=(t||e)&&!i;this._canSave!==n&&window.dispatchEvent(new CustomEvent("solutionCanSave",{detail:n,bubbles:!0,cancelable:!1,composed:!0})),this._canSave=n}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{serializedAuthentication:["serializedAuthenticationWatchHandler"],solutionItemId:["valueWatchHandler"]}}};y.style=".configuration-container{position:relative;height:100%;width:100%}.configuration{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:flex;padding:0.5rem;border:1px #808080 solid}.config-tabs{width:100%}.config-tab{width:100%}.config-solution{position:absolute;top:3.5rem;right:-1px;bottom:-1px;left:-1px;display:flex;padding:0.5rem}.config-inventory{display:inline;max-width:-moz-min-content;max-width:min-content;flex-grow:0;overflow-y:auto}.config-inventory-hide{display:none;max-width:-moz-min-content;max-width:min-content;flex-grow:0;overflow-y:auto}.config-item{position:relative;display:inline;flex-grow:1;overflow-y:auto;margin-inline-start:0.5rem}solution-contents{position:relative;height:100%}solution-item{position:relative;height:100%}solution-spatial-ref{position:relative;height:100%;width:100%;overflow-y:auto}";export{y as solution_configuration}
|
20
|
+
***************************************************************************** */var p=function(){return p=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},p.apply(this,arguments)};function w(t,e){var i=e;return i.rawResponse=!1,c(t,i).then((function(t){var e={token:t.access_token,username:t.username,expires:new Date(Date.now()+(1e3*t.expires_in-1e3)),ssl:!0===t.ssl};return t.refresh_token&&(e.refreshToken=t.refresh_token),e}))}function m(t,e){var i=e;return i.params.referer="undefined"!=typeof window&&window.location&&window.location.host?window.location.host:u,c(t,i)}var g=/^https?:\/\/(\S+)\.arcgis\.com.+/;function v(t){return g.test(t)}function b(t){if(!g.test(t))return null;var e=t.match(g)[1].split(".").pop();return e.includes("dev")?"dev":e.includes("qa")?"qa":"production"}var k=function(){function t(t){if(this.clientId=t.clientId,this._refreshToken=t.refreshToken,this._refreshTokenExpires=t.refreshTokenExpires,this.username=t.username,this.password=t.password,this._token=t.token,this._tokenExpires=t.tokenExpires,this.portal=t.portal?l(t.portal):"https://www.arcgis.com/sharing/rest",this.ssl=t.ssl,this.provider=t.provider||"arcgis",this.tokenDuration=t.tokenDuration||20160,this.redirectUri=t.redirectUri,this.refreshTokenTTL=t.refreshTokenTTL||20160,this.server=t.server,this.federatedServers={},this.trustedDomains=[],t.server){var e=this.getServerRootUrl(t.server);this.federatedServers[e]={token:t.token,expires:t.tokenExpires}}this._pendingTokenRequests={}}return Object.defineProperty(t.prototype,"token",{get:function(){return this._token},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tokenExpires",{get:function(){return this._tokenExpires},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refreshToken",{get:function(){return this._refreshToken},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refreshTokenExpires",{get:function(){return this._refreshTokenExpires},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trustedServers",{get:function(){return console.log("DEPRECATED: use federatedServers instead"),this.federatedServers},enumerable:!1,configurable:!0}),t.beginOAuth2=function(e,i){void 0===i&&(i=window),e.duration&&console.log("DEPRECATED: 'duration' is deprecated - use 'expiration' instead");var n,r=p({portal:"https://www.arcgis.com/sharing/rest",provider:"arcgis",expiration:20160,popup:!0,popupWindowFeatures:"height=400,width=600,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes",state:e.clientId,locale:""},e),s=r.portal,o=r.provider,a=r.clientId,h=r.expiration,c=r.redirectUri,u=r.popup,l=r.popupWindowFeatures,w=r.state,m=r.locale,g=r.params;if(n="arcgis"===o?s+"/oauth2/authorize?client_id="+a+"&response_type=token&expiration="+(e.duration||h)+"&redirect_uri="+encodeURIComponent(c)+"&state="+w+"&locale="+m:s+"/oauth2/social/authorize?client_id="+a+"&socialLoginProviderName="+o+"&autoAccountCreateForSocial=true&response_type=token&expiration="+(e.duration||h)+"&redirect_uri="+encodeURIComponent(c)+"&state="+w+"&locale="+m,g&&(n=n+"&"+d(g)),u){var v,b=((v={promise:null,resolve:null,reject:null}).promise=new Promise((function(t,e){v.resolve=t,v.reject=e})),v);return i["__ESRI_REST_AUTH_HANDLER_"+a]=function(e,i){if(e){var n=JSON.parse(e);b.reject(new f(n.errorMessage,n.error))}else if(i){var r=JSON.parse(i);b.resolve(new t({clientId:a,portal:s,ssl:r.ssl,token:r.token,tokenExpires:new Date(r.expires),username:r.username}))}},i.open(n,"oauth-window",l),b.promise}i.location.href=n},t.completeOAuth2=function(e,i){void 0===i&&(i=window);var n=p({portal:"https://www.arcgis.com/sharing/rest",popup:!0},e),r=n.portal,s=n.clientId,o=n.popup;function a(e,n){try{var a=void 0,h="__ESRI_REST_AUTH_HANDLER_"+s;if(o&&(i.opener?i.opener.parent&&i.opener.parent[h]?a=i.opener.parent[h]:i.opener&&i.opener[h]&&(a=i.opener[h]):i!==i.parent&&i.parent&&i.parent[h]&&(a=i.parent[h]),a))return a(e?JSON.stringify(e):void 0,JSON.stringify(n)),void i.close()}catch(t){throw new f('Unable to complete authentication. It\'s possible you specified popup based oAuth2 but no handler from "beginOAuth2()" present. This generally happens because the "popup" option differs between "beginOAuth2()" and "completeOAuth2()".')}if(e)throw new f(e.errorMessage,e.error);return new t({clientId:s,portal:r,ssl:n.ssl,token:n.token,tokenExpires:n.expires,username:n.username})}var h=i.location.hash.replace(/^#/,"").split("&").reduce((function(t,e){var i=function(t){var e=t.split("="),i=e[1];return{key:decodeURIComponent(e[0]),value:decodeURIComponent(i)}}(e);return t[i.key]=i.value,t}),{});if(!h.access_token){var c=void 0,u="Unknown error";return h.error&&(c=h.error,u=h.error_description),a({error:c,errorMessage:u})}return a(void 0,{token:h.access_token,expires:new Date(Date.now()+1e3*parseInt(h.expires_in,10)-6e4),ssl:"true"===h.ssl,username:h.username})},t.fromParent=function(e,i){var n;return!i&&window&&(i=window),new Promise((function(r,s){i.addEventListener("message",n=function(e){if(e.source===i.parent&&e.data)try{return r(t.parentMessageHandler(e))}catch(t){return s(t)}},!1),i.parent.postMessage({type:"arcgis:auth:requestCredential"},e)})).then((function(t){return i.removeEventListener("message",n,!1),t}))},t.authorize=function(t,e){t.duration&&console.log("DEPRECATED: 'duration' is deprecated - use 'expiration' instead");var i=p({portal:"https://arcgis.com/sharing/rest",expiration:20160},t);e.writeHead(301,{Location:i.portal+"/oauth2/authorize?client_id="+i.clientId+"&expiration="+(t.duration||i.expiration)+"&response_type=code&redirect_uri="+encodeURIComponent(i.redirectUri)}),e.end()},t.exchangeAuthorizationCode=function(e,i){var n=p({portal:"https://www.arcgis.com/sharing/rest",refreshTokenTTL:20160},e),r=n.portal,s=n.clientId,o=n.redirectUri,a=n.refreshTokenTTL;return w(r+"/oauth2/token",{params:{grant_type:"authorization_code",client_id:s,redirect_uri:o,code:i}}).then((function(e){return new t({clientId:s,portal:r,ssl:e.ssl,redirectUri:o,refreshToken:e.refreshToken,refreshTokenTTL:a,refreshTokenExpires:new Date(Date.now()+60*(a-1)*1e3),token:e.token,tokenExpires:e.expires,username:e.username})}))},t.deserialize=function(e){var i=JSON.parse(e);return new t({clientId:i.clientId,refreshToken:i.refreshToken,refreshTokenExpires:new Date(i.refreshTokenExpires),username:i.username,password:i.password,token:i.token,tokenExpires:new Date(i.tokenExpires),portal:i.portal,ssl:i.ssl,tokenDuration:i.tokenDuration,redirectUri:i.redirectUri,refreshTokenTTL:i.refreshTokenTTL})},t.fromCredential=function(e){var i=void 0===e.ssl||e.ssl,n=e.expires||Date.now()+72e5;return new t({portal:e.server.includes("sharing/rest")?e.server:e.server+"/sharing/rest",ssl:i,token:e.token,username:e.userId,tokenExpires:new Date(n)})},t.parentMessageHandler=function(e){if("arcgis:auth:credential"===e.data.type)return t.fromCredential(e.data.credential);if("arcgis:auth:error"===e.data.type){var i=new Error(e.data.error.message);throw i.name=e.data.error.name,i}throw new Error("Unknown message type.")},t.prototype.toCredential=function(){return{expires:this.tokenExpires.getTime(),server:this.portal,ssl:this.ssl,token:this.token,userId:this.username}},t.prototype.getUser=function(t){var e=this;if(this._pendingUserRequest)return this._pendingUserRequest;if(this._user)return Promise.resolve(this._user);var i=this.portal+"/community/self",n=p(p({httpMethod:"GET",authentication:this},t),{rawResponse:!1});return this._pendingUserRequest=c(i,n).then((function(t){return e._user=t,e._pendingUserRequest=null,t})),this._pendingUserRequest},t.prototype.getPortal=function(t){var e=this;if(this._pendingPortalRequest)return this._pendingPortalRequest;if(this._portalInfo)return Promise.resolve(this._portalInfo);var i=this.portal+"/portals/self",n=p(p({httpMethod:"GET",authentication:this},t),{rawResponse:!1});return this._pendingPortalRequest=c(i,n).then((function(t){return e._portalInfo=t,e._pendingPortalRequest=null,t})),this._pendingPortalRequest},t.prototype.getUsername=function(){return this.username?Promise.resolve(this.username):this._user?Promise.resolve(this._user.username):this.getUser().then((function(t){return t.username}))},t.prototype.getToken=function(t,e){return n=t,r=v(i=this.portal),s=v(n),o=b(i),a=b(n),r&&s&&o===a||new RegExp(this.portal,"i").test(t)?this.getFreshToken(e):this.getTokenForServer(t,e);var i,n,r,s,o,a},t.prototype.validateAppAccess=function(t){return this.getToken(this.portal).then((function(e){return function(t,e,i){return void 0===i&&(i="https://www.arcgis.com/sharing/rest"),c(i+"/oauth2/validateAppAccess",{method:"POST",params:{f:"json",client_id:e,token:t}})}(e,t)}))},t.prototype.toJSON=function(){return{clientId:this.clientId,refreshToken:this.refreshToken,refreshTokenExpires:this.refreshTokenExpires,username:this.username,password:this.password,token:this.token,tokenExpires:this.tokenExpires,portal:this.portal,ssl:this.ssl,tokenDuration:this.tokenDuration,redirectUri:this.redirectUri,refreshTokenTTL:this.refreshTokenTTL}},t.prototype.serialize=function(){return JSON.stringify(this)},t.prototype.enablePostMessageAuth=function(t,e){!e&&window&&(e=window),this._hostHandler=this.createPostMessageHandler(t),e.addEventListener("message",this._hostHandler,!1)},t.prototype.disablePostMessageAuth=function(t){!t&&window&&(t=window),t.removeEventListener("message",this._hostHandler,!1)},t.prototype.refreshSession=function(t){return this._user=null,this.username&&this.password?this.refreshWithUsernameAndPassword(t):this.clientId&&this.refreshToken?this.refreshWithRefreshToken():Promise.reject(new f("Unable to refresh token."))},t.prototype.getServerRootUrl=function(t){var e=l(t).split(/\/rest(\/admin)?\/services(?:\/|#|\?|$)/)[0].match(/(https?:\/\/)(.+)/),i=e[1],n=e[2].split("/"),r=n[0],s=n.slice(1);return""+i+r.toLowerCase()+"/"+s.join("/")},t.prototype.getDomainCredentials=function(t){return this.trustedDomains&&this.trustedDomains.length&&this.trustedDomains.some((function(e){return t.startsWith(e)}))?"include":"same-origin"},t.prototype.createPostMessageHandler=function(t){var e=this;return function(i){var n=t.indexOf(i.origin)>-1,r="arcgis:auth:requestCredential"===i.data.type,s=e.tokenExpires.getTime()>Date.now();if(n&&r){var o={};if(s){var a=e.toCredential();a.server=a.server.replace("/sharing/rest",""),o={type:"arcgis:auth:credential",credential:a}}else o={type:"arcgis:auth:error",error:{name:"tokenExpiredError",message:"Session token was expired, and not returned to the child application"}};i.source.postMessage(o,i.origin)}}},t.prototype.getTokenForServer=function(t,e){var i=this,n=this.getServerRootUrl(t),r=this.federatedServers[n];return r&&r.expires&&r.expires.getTime()>Date.now()?Promise.resolve(r.token):(this._pendingTokenRequests[n]||(this._pendingTokenRequests[n]=this.fetchAuthorizedDomains().then((function(){return c(n+"/rest/info",{credentials:i.getDomainCredentials(t)}).then((function(r){if(r.owningSystemUrl){if(s=r.owningSystemUrl,o=l(function(t){if(!g.test(t))return t;switch(b(t)){case"dev":return"https://devext.arcgis.com/sharing/rest";case"qa":return"https://qaext.arcgis.com/sharing/rest";default:return"https://www.arcgis.com/sharing/rest"}}(i.portal)).replace(/https?:\/\//,""),a=l(s).replace(/https?:\/\//,""),new RegExp(a,"i").test(o))return c(r.owningSystemUrl+"/sharing/rest/info",e);throw new f(t+" is not federated with "+i.portal+".","NOT_FEDERATED")}var s,o,a;if(r.authInfo&&void 0!==i.federatedServers[n])return Promise.resolve({authInfo:r.authInfo});throw new f(t+" is not federated with any portal and is not explicitly trusted.","NOT_FEDERATED")})).then((function(t){return t.authInfo.tokenServicesUrl})).then((function(e){return i.token&&i.tokenExpires.getTime()>Date.now()?m(e,{params:{token:i.token,serverUrl:t,expiration:i.tokenDuration,client:"referer"}}):m(e,{params:{username:i.username,password:i.password,expiration:i.tokenDuration,client:"referer"}}).then((function(t){return i._token=t.token,i._tokenExpires=new Date(t.expires),t}))})).then((function(t){return i.federatedServers[n]={expires:new Date(t.expires),token:t.token},delete i._pendingTokenRequests[n],t.token}))}))),this._pendingTokenRequests[n])},t.prototype.getFreshToken=function(t){var e=this;return this.token&&!this.tokenExpires||this.token&&this.tokenExpires&&this.tokenExpires.getTime()>Date.now()?Promise.resolve(this.token):(this._pendingTokenRequests[this.portal]||(this._pendingTokenRequests[this.portal]=this.refreshSession(t).then((function(t){return e._pendingTokenRequests[e.portal]=null,t.token}))),this._pendingTokenRequests[this.portal])},t.prototype.refreshWithUsernameAndPassword=function(t){var e=this,i=p({params:{username:this.username,password:this.password,expiration:this.tokenDuration}},t);return m(this.portal+"/generateToken",i).then((function(t){return e._token=t.token,e._tokenExpires=new Date(t.expires),e}))},t.prototype.refreshWithRefreshToken=function(t){var e=this;if(this.refreshToken&&this.refreshTokenExpires&&this.refreshTokenExpires.getTime()<Date.now())return this.refreshRefreshToken(t);var i=p({params:{client_id:this.clientId,refresh_token:this.refreshToken,grant_type:"refresh_token"}},t);return w(this.portal+"/oauth2/token",i).then((function(t){return e._token=t.token,e._tokenExpires=t.expires,e}))},t.prototype.refreshRefreshToken=function(t){var e=this,i=p({params:{client_id:this.clientId,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,grant_type:"exchange_refresh_token"}},t);return w(this.portal+"/oauth2/token",i).then((function(t){return e._token=t.token,e._tokenExpires=t.expires,e._refreshToken=t.refreshToken,e._refreshTokenExpires=new Date(Date.now()+60*(e.refreshTokenTTL-1)*1e3),e}))},t.prototype.fetchAuthorizedDomains=function(){var t=this;return this.server||!this.portal?Promise.resolve(this):this.getPortal().then((function(e){return e.authorizedCrossOriginDomains&&e.authorizedCrossOriginDomains.length&&(t.trustedDomains=e.authorizedCrossOriginDomains.filter((function(t){return!t.startsWith("http://")})).map((function(t){return t.startsWith("https://")?t:"https://"+t}))),t}))},t}();const y=class{get el(){return t(this)}async serializedAuthenticationWatchHandler(){this.authentication=this.serializedAuthentication?k.deserialize(this.serializedAuthentication):new k({})}async valueWatchHandler(){await this._loadSolution(this.solutionItemId)}constructor(t){e(this,t),this.authentication=new k({}),this.serializedAuthentication="",this.solutionItemId="",this.showLoading=!1,this._currentEditItemId="",this._organizationVariables="",this._solutionContentsComponent=void 0,this._solutionIsLoaded=!1,this._solutionVariables="",this._templateHierarchy=[],this._translations=void 0,this._treeOpen=!0,this.serializedAuthentication&&(this.authentication=k.deserialize(this.serializedAuthentication)),this._loadSolution(this.solutionItemId),window.addEventListener("solutionStoreHasChanges",(t=>{this._updateSaveability(this._solutionStoreHasChanges=t.detail,this._solutionEditorHasChanges,this._solutionEditorHasErrors)})),window.addEventListener("solutionEditorHasChanges",(t=>{this._updateSaveability(this._solutionStoreHasChanges,this._solutionEditorHasChanges=t.detail,this._solutionEditorHasErrors)})),window.addEventListener("solutionEditorHasErrors",(t=>{this._updateSaveability(this._solutionStoreHasChanges,this._solutionEditorHasChanges,this._solutionEditorHasErrors=t.detail)}))}async componentWillLoad(){return this._getTranslations()}render(){const t=a.getStoreInfo("spatialReferenceInfo"),e=a.getStoreInfo("featureServices").length>0,o=a.getStoreInfo("solutionData");return this._solutionVariables=JSON.stringify(r(o.templates,this._translations)),this._organizationVariables=JSON.stringify(s(this._translations)),i(n,{key:"3cd0a819e0e9857e8fbe83dfc6b7eda19bfc2a25"},this._solutionIsLoaded?null:i("calcite-loader",{label:""}),i("div",{key:"95af40b9cc0dd1e34d4511767d6d14c2f64951fb",class:"configuration-container"},i("div",{key:"34c498b31759d90dafe8408b203de9a2e27f786e",class:"configuration"},i("calcite-tabs",{key:"2cc1e9b5e7091cd648dad834a212c739189cc42b",class:"config-tabs"},i("calcite-tab-nav",{key:"fec327dbda929ad4bda7b1af7331284729500d58",slot:"tab-nav"},i("calcite-tab-title",{key:"77baa00b1da96cf9742f041ed2e69cddfe315edc"},this._translations.definitionTab),e?i("calcite-tab-title",null,this._translations.spatialReferenceTab):null),i("calcite-tab",{key:"9dc437eca3891c4dd538578a9ef66800b68c8c24",class:"config-tab",selected:!0},i("div",{key:"a1ae99605854b3b03a3abfead510763696b97709",class:"config-solution"},i("div",{key:"01c7e8cc20c2f033b9ff1fa51730e43caa357046",class:this._treeOpen?"config-inventory":"config-inventory-hide"},i("solution-contents",{id:"configInventory",key:`${this.solutionItemId}-contents`,ref:t=>this._solutionContentsComponent=t})),i("calcite-button",{key:"249525fcdd1d06bba4ae069dea6a1b1c7488bea3",appearance:"transparent",class:"collapse-btn","icon-start":this._treeOpen?"chevrons-left":"chevrons-right",id:"collapse-vars",onClick:()=>this._toggleTree(),scale:"s",title:this._treeOpen?this._translations.collapse:this._translations.expand}),i("div",{key:"6d8d9766015e80a5961bd1f169ea49eec6bab57a",class:"config-item"},i("solution-item",{authentication:this.authentication,"item-id":this._currentEditItemId,key:`${this.solutionItemId}-item`,"organization-variables":this._organizationVariables,"solution-item-id":this.solutionItemId,"solution-variables":this._solutionVariables})))),e?i("calcite-tab",{class:"config-tab"},i("div",{class:"config-solution"},i("solution-spatial-ref",{enableDefault:!!t.default,enabled:t?.enabled,featureServices:a.getStoreInfo("featureServices").map((t=>t.name)),id:"configure-solution-spatial-ref",key:`${this.solutionItemId}-spatial-ref`}))):null))))}_solutionStoreHasChanges=!1;_solutionEditorHasChanges=!1;_solutionEditorHasErrors=!1;_canSave=!1;_solutionItemSelected(t){this._currentEditItemId=t.detail}async getSpatialReferenceInfo(){return Promise.resolve(a.getStoreInfo("spatialReferenceInfo"))}async saveSolution(){this._solutionIsLoaded=!1,await a.saveSolution(),this._solutionIsLoaded=!0,this.solutionItemId=null}async unloadSolution(){this.solutionItemId=null}_initProps(){const t=a.getStoreInfo("solutionData");let e;this._templateHierarchy=[...o(t.templates)],this._solutionContentsComponent&&(this._solutionContentsComponent.templateHierarchy=this._templateHierarchy),this._templateHierarchy.length>0&&(e=a.getItemInfo(this._templateHierarchy[0].id)),this._currentEditItemId=e?e.itemId:""}async _loadSolution(t){return t?(this._solutionIsLoaded=!1,await a.loadSolution(t,this.authentication),this._initProps(),this._solutionIsLoaded=!0):this._reset(),Promise.resolve()}_reset(){this._currentEditItemId="",this._organizationVariables="",this._solutionVariables="",this._templateHierarchy=[]}_toggleTree(){this._treeOpen=!this._treeOpen}_updateSaveability(t,e,i){const n=(t||e)&&!i;this._canSave!==n&&window.dispatchEvent(new CustomEvent("solutionCanSave",{detail:n,bubbles:!0,cancelable:!1,composed:!0})),this._canSave=n}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{serializedAuthentication:["serializedAuthenticationWatchHandler"],solutionItemId:["valueWatchHandler"]}}};y.style=".configuration-container{position:relative;height:100%;width:100%}.configuration{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:flex;padding:0.5rem;border:1px #808080 solid}.config-tabs{width:100%}.config-tab{width:100%}.config-solution{position:absolute;top:3.5rem;right:-1px;bottom:-1px;left:-1px;display:flex;padding:0.5rem}.config-inventory{display:inline;max-width:-moz-min-content;max-width:min-content;flex-grow:0;overflow-y:auto}.config-inventory-hide{display:none;max-width:-moz-min-content;max-width:min-content;flex-grow:0;overflow-y:auto}.config-item{position:relative;display:inline;flex-grow:1;overflow-y:auto;margin-inline-start:0.5rem}solution-contents{position:relative;height:100%}solution-item{position:relative;height:100%}solution-spatial-ref{position:relative;height:100%;width:100%;overflow-y:auto}";export{y as solution_configuration}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,g as i,h as s,H as e,c as a}from"./p-6eb37ed2.js";import{l as h,g as n}from"./p-2058b5d9.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const o=class{constructor(i){t(this,i),this.mapView=void 0,this.basemapConfig=void 0,this.basemapWidget=void 0}get el(){return i(this)}BasemapGallery;PortalBasemapsSource;_basemapElement;async basemapConfigWatchHandler(){if(this.basemapWidget?.source){const t=this.basemapWidget?.source;t.query=this.basemapConfig?.basemapGroupId?`id:${this.basemapConfig.basemapGroupId}`:null,await t.refresh()}}async mapViewWatchHandler(){await this.mapView.when((()=>{this._initBaseMapGallery(this.mapView)}))}async componentWillLoad(){return this._initModules()}render(){return s(e,{key:"1f8be0f65a784ffaac49b8a5a15ebd6fb72d6643"},s("div",{key:"2c1bde6c0624b476f6c34302ea843da195f535cb",ref:t=>{this._basemapElement=t}}))}async componentDidLoad(){this.mapView&&await this.mapViewWatchHandler()}async _initModules(){const[t,i]=await h(["esri/widgets/BasemapGallery","esri/widgets/BasemapGallery/support/PortalBasemapsSource"]);this.BasemapGallery=t,this.PortalBasemapsSource=i}async _initBaseMapGallery(t){if(this.BasemapGallery){this.basemapWidget&&this.basemapWidget.destroy();const i=new this.PortalBasemapsSource({query:this.basemapConfig?.basemapGroupId?`id:${this.basemapConfig.basemapGroupId}`:null,filterFunction:this.basemapConfig?t=>!this.basemapConfig.basemapIdsToFilter.includes(t.portalItem.id):()=>!0});await i.refresh(),this.basemapWidget=new this.BasemapGallery({container:this._basemapElement,view:t,source:i})}}static get watchers(){return{basemapConfig:["basemapConfigWatchHandler"],mapView:["mapViewWatchHandler"]}}};o.style=":host{display:block}";const c=class{constructor(i){t(this,i),this.facilityChanged=a(this,"facilityChanged",7),this.levelChanged=a(this,"levelChanged",7),this.siteChanged=a(this,"siteChanged",7),this.enabled=void 0,this.floorFilterWidget=void 0,this.mapView=void 0}get el(){return i(this)}FloorFilter;_floorFilterElement;reactiveUtils;_facilityHandle;_levelHandle;_siteHandle;async mapViewWatchHandler(){await this._initFloorFilter(this.mapView)}async enabledWatchHandler(){this.enabled?await this._initFloorFilter(this.mapView):this.enabled||this._destroyWidget()}facilityChanged;levelChanged;siteChanged;async componentWillLoad(){return this._initModules()}render(){return s(e,{key:"51da7a656e7f56ecc8cc4093d3dab856f77b5c7a"},s("div",{key:"d2fda7047f09a673216484f5c202f039fca20108",ref:t=>{this._floorFilterElement=t}}))}async componentDidLoad(){this.mapView&&!this.floorFilterWidget&&await this._initFloorFilter(this.mapView)}async _initModules(){const[t,i]=await h(["esri/widgets/FloorFilter","esri/core/reactiveUtils"]);this.FloorFilter=t,this.reactiveUtils=i}_destroyWidget(){this.floorFilterWidget&&(this.floorFilterWidget.destroy(),this.floorFilterWidget=void 0),this._floorFilterElement&&this._floorFilterElement.remove()}_initContainer(){this._destroyWidget(),this._floorFilterElement=document.createElement("div")}async _initFloorFilter(t){const i=t?.map;await i.when((()=>{t&&this.enabled&&this.FloorFilter&&i?.floorInfo&&(this._initContainer(),this.floorFilterWidget=new this.FloorFilter({container:this._floorFilterElement,view:t}),this._facilityHandle?.remove(),this._facilityHandle=this.reactiveUtils.watch((()=>this.floorFilterWidget.facility),(t=>{this.facilityChanged.emit(t)})),this._levelHandle?.remove(),this._levelHandle=this.reactiveUtils.watch((()=>this.floorFilterWidget.level),(t=>{this.levelChanged.emit(t)})),this._siteHandle?.remove(),this._siteHandle=this.reactiveUtils.watch((()=>this.floorFilterWidget.site),(t=>{this.siteChanged.emit(t)})))}))}static get watchers(){return{mapView:["mapViewWatchHandler"],enabled:["enabledWatchHandler"]}}};c.style=":host{display:block}";const r=class{constructor(i){t(this,i),this.fullscreenStateChange=a(this,"fullscreenStateChange",7),this.mapView=void 0,this.fullscreenWidget=void 0}Fullscreen;_fullscreenElement;_fullscreenStateChangeHandle;reactiveUtils;async mapViewWatchHandler(){await this.mapView.when((async()=>{await this._initFullscreenWidget()}))}fullscreenStateChange;async componentWillLoad(){await this._initModules()}render(){return s(e,{key:"8d5feed87c1795cb487ff3eda1da7573a65d3c89"},s("div",{key:"4a74da3dc79280fdff87c7c723bb9c729897b1ab",class:"fullscreen-widget",ref:t=>{this._fullscreenElement=t}}))}async componentDidUpdate(){await this._initFullscreenWidget()}async componentDidLoad(){await this._initFullscreenWidget()}async _initModules(){const[t,i]=await h(["esri/widgets/Fullscreen","esri/core/reactiveUtils"]);this.Fullscreen=t,this.reactiveUtils=i}async _initFullscreenWidget(){this.mapView&&this._fullscreenElement&&!this.fullscreenWidget?(this.fullscreenWidget=new this.Fullscreen({view:this.mapView}),await this.fullscreenWidget.when((()=>{this._fullscreenStateChangeHandle&&this._fullscreenStateChangeHandle.remove(),this._fullscreenStateChangeHandle=this.reactiveUtils.watch((()=>this.fullscreenWidget.viewModel.state),(t=>this.fullscreenStateChange.emit(t)))}))):this.fullscreenWidget&&(this.fullscreenWidget.view=this.mapView)}static get watchers(){return{mapView:["mapViewWatchHandler"]}}};r.style=":host{display:block}";const l=class{constructor(i){t(this,i),this.mapView=void 0,this.legendWidget=void 0}get el(){return i(this)}Legend;_legendElement;async mapViewWatchHandler(){await this.mapView.when((()=>{this._initLegend(this.mapView)}))}async componentWillLoad(){return this._initModules()}render(){return s(e,{key:"3720974e2a6d1a9e569750e4c3ea5bf18e49a9c7"},s("div",{key:"1bc154d7366aeabe2b983b110629e2f1257e0af6",ref:t=>{this._legendElement=t}}))}async componentDidLoad(){this.mapView&&await this.mapViewWatchHandler()}async _initModules(){const[t]=await h(["esri/widgets/Legend"]);this.Legend=t}_initLegend(t){t&&this.Legend&&(this.legendWidget?this.legendWidget.view=t:this.legendWidget=new this.Legend({container:this._legendElement,view:t}))}static get watchers(){return{mapView:["mapViewWatchHandler"]}}};l.style=":host{display:block}";const d=class{constructor(i){t(this,i),this.mapInfoChange=a(this,"mapInfoChange",7),this.mapInfos=[],this.isMapLayout=void 0,this._mapListExpanded=!1,this._translations=void 0,this._webMapInfo=void 0}get el(){return i(this)}_list;_loadedId="";_webMapInfoWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&(this._loadedId=t?.id,this.mapInfoChange.emit(t))}async mapInfosWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._webMapSelected(t[0])}async setMapByID(t){const i=this.mapInfos?.filter((i=>i.id===t));t&&i?.length>0&&this._webMapSelected(i[0])}async close(){this._mapListExpanded&&(this._mapListExpanded=!1)}async toggle(t){this._mapListExpanded=t}mapInfoChange;async componentWillLoad(){await this._getTranslations()}render(){return s(e,{key:"e3d565698c09b0c622d1c93d181f1bf4b343f353"},this._getToolbar(),this._getMapNameList(this._mapListExpanded))}async componentDidLoad(){const t=this.mapInfos&&this.mapInfos.length>0?this.mapInfos[0]:void 0;t&&this._webMapSelected(t)}_getMapPicker(){const t="map-picker-expand-toggle";return s("div",{class:"width-full"},s("calcite-button",{alignment:"icon-end-space-between",appearance:"transparent",class:"width-full height-full",iconEnd:this._mapListExpanded?"chevron-up":"chevron-down",iconStart:"map",id:t,kind:"neutral",onClick:()=>this._chooseMap(),width:"full"},this._webMapInfo?.name),s("calcite-tooltip",{placement:"bottom","reference-element":t},s("span",null,this._translations.switchMap)))}_getToolbar(){return s("div",{class:"display-flex border-right"},s("calcite-action-bar",{class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:"header"},this._getMapPicker()))}_getMapNameList(t){return s("div",{class:t?"map-list border-bottom-1 adjusted-height "+(this.isMapLayout?"width-26":"width-full"):"display-none"},s("calcite-list",{id:"mapList",ref:t=>this._list=t,selectionAppearance:"border",selectionMode:"single"},this.mapInfos.map((t=>s("calcite-list-item",{label:t.name,onClick:()=>this._webMapSelected(t),selected:t.id===this._loadedId,value:t.id})))))}_webMapSelected(t){this._mapListExpanded=!1,this._webMapInfo=t}_chooseMap(){this._mapListExpanded=!this._mapListExpanded}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{_webMapInfo:["_webMapInfoWatchHandler"],mapInfos:["mapInfosWatchHandler"]}}};d.style=":host{display:block;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100%}.width-26{width:26% !important}.height-full{height:100%}.display-flex{display:flex}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.border-right{border-right:1px solid var(--calcite-color-border-3)}.action-bar-size{height:51px;width:100%}.map-list{position:absolute;display:flex;flex-direction:column;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-color-background);z-index:1000;width:100%;height:-moz-fit-content;height:fit-content}.display-none{display:none}.align-center{align-items:center}.adjusted-height{height:calc(100% - 52px);overflow-y:auto}";const p=class{constructor(i){t(this,i),this.mapView=void 0,this.popupEnabled=!1,this.resultGraphicEnabled=!1,this.searchConfiguration=void 0,this.searchTerm=void 0,this.searchWidget=void 0}FeatureLayer;Search;_searchElement;_searchResult;async watchSearchConfigurationHandler(){this._initSearchWidget()}async mapViewWatchHandler(){await this.mapView.when((()=>{this._initSearchWidget()}))}async componentWillLoad(){await this._initModules()}async componentDidLoad(){return this._initSearchWidget()}render(){return s(e,{key:"13fa47ea3d71e8a58c6001fc6b43e68a1a112d76"},s("div",{key:"0ab0e540eba87e62cc3c6cf1a6c8eb45349fb216",class:"search-widget",ref:t=>{this._searchElement=t}}))}async _initModules(){const[t,i]=await h(["esri/widgets/Search","esri/layers/FeatureLayer"]);this.Search=t,this.FeatureLayer=i}_initSearchWidget(){if(this.mapView&&this._searchElement&&!this.searchWidget){let t={view:this.mapView,container:this._searchElement,searchTerm:this.searchTerm};this.searchConfiguration&&(t={...this._getSearchConfig(this.searchConfiguration,this.mapView)}),this.searchWidget=new this.Search(t),this.searchWidget.popupEnabled=this.popupEnabled,this.searchWidget.resultGraphicEnabled=this.resultGraphicEnabled}else this.searchWidget&&(this.searchWidget.view=this.mapView)}_getSearchConfig(t,i){const s=t.sources;return s?.length>0?(t.includeDefaultSources=!1,s.forEach((t=>{if(t.hasOwnProperty("layer")){const s=t,e=s.layer?.id,a=e?i.map.findLayerById(e):null,h=s?.layer?.url;a?s.layer=a:h&&(s.layer=new this.FeatureLayer(h))}})),s?.forEach((t=>{if(t.hasOwnProperty("locator")){const i=t;"ArcGIS World Geocoding Service"===i?.name&&(i.outFields=i.outFields||["Addr_type","Match_addr","StAddr","City"],i.singleLineFieldName="SingleLine"),i.url=i.url,delete i.url}}))):t={...t,includeDefaultSources:!0},t}static get watchers(){return{searchConfiguration:["watchSearchConfigurationHandler"],mapView:["mapViewWatchHandler"]}}};p.style=":host{display:block}.search-widget{width:100% !important;border:1px solid var(--calcite-color-border-input)}";const m=class{constructor(i){t(this,i),this.basemapConfig=void 0,this.enableLegend=void 0,this.enableFloorFilter=void 0,this.enableFullscreen=void 0,this.enableSearch=void 0,this.enableBasemap=void 0,this.enableHome=void 0,this.enableSingleExpand=void 0,this.homeZoomToolsSize="m",this.layout="vertical",this.mapView=void 0,this.mapWidgetsSize="m",this.position="top-right",this.searchConfiguration=void 0,this.stackTools=!0,this.toolOrder=void 0,this._hasFloorInfo=!1,this._translations=void 0,this._showTools=!0,this._showBasemapWidget=!1,this._showFloorFilter=!1,this._showFullscreen=!1,this._showLegendWidget=!1,this._showSearchWidget=!1}get el(){return i(this)}Expand;_basemapElement;_floorFilterElement;_fullscreenElement;_legendElement;_searchElement;_widgets=[];async mapViewWatchHandler(){await this.mapView.when((()=>{this._hasFloorInfo=this.mapView?.map?.floorInfo}))}async _showBasemapWidgetWatchHandler(t){t?this.mapView.ui.add(this._basemapElement.basemapWidget,{position:this.position,index:1}):this.mapView.ui.remove(this._basemapElement.basemapWidget)}async _showFloorFilterWatchHandler(t){const i=this._floorFilterElement.floorFilterWidget;t?this.mapView.ui.add(i,{position:this.position,index:1}):this.mapView.ui.remove(i)}async _showFullscreenWatchHandler(t){const i=this._fullscreenElement.fullscreenWidget;t?"ready"===i.viewModel.state&&i.viewModel.enter():"active"===i.viewModel.state&&i.viewModel.exit()}async _showLegendWidgetWatchHandler(t){t?this.mapView.ui.add(this._legendElement.legendWidget,{position:this.position,index:1}):this.mapView.ui.remove(this._legendElement.legendWidget)}async _showSearchWidgetWatchHandler(t){t?this.mapView.ui.add(this._searchElement.searchWidget,{position:this.position,index:1}):this.mapView.ui.remove(this._searchElement.searchWidget)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){this._setZoomToolsSize();const t=this._showTools?"":"display-none",i=this._showSearchWidget?"":"display-none",a=this._showBasemapWidget?"":"display-none",h=this._showLegendWidget?"":"display-none",n=this._showFloorFilter?"":"display-none",o=this._showFullscreen?"":"display-none",c=this.enableSingleExpand?"margin-top-1-2":"",r=this.toolOrder?this.toolOrder:["legend","search","fullscreen","floorfilter"],l=this.stackTools?"box-shadow":"";return s(e,{key:"891dd57541d4b63b7097ac8f165883ba3a65d9ca"},s("div",{key:"79c5d899f42a1f079370520c1e136a69dd1984b8",class:this.enableBasemap||this.enableFullscreen||this.enableLegend||this.enableSearch?"":"display-none"},this.enableSingleExpand?s("div",{class:"box-shadow"},this._getActionGroup(this._showTools?"chevrons-up":"chevrons-down",!1,this._showTools?this._translations.collapse:this._translations.expand,(()=>this._toggleTools()))):void 0,s("div",{key:"f2f5aea46dcd64cd0338d8d9935a92f7369cc5e4",class:`${c} ${l} ${t}`},this._getMapWidgets(r))),s("basemap-gallery",{key:"5dabad54ad69b2d69c369364dbe53cdbfe31efb7",basemapConfig:this.basemapConfig,class:a,mapView:this.mapView,ref:t=>{this._basemapElement=t}}),s("map-search",{key:"aa72d13ed8ed0c465feaf1ff89d0bbbf2d28b717",class:i,mapView:this.mapView,ref:t=>{this._searchElement=t},resultGraphicEnabled:!0,searchConfiguration:this.searchConfiguration}),s("map-legend",{key:"0ede61191230164bc8090b5bbf6c3a88d1454310",class:h,mapView:this.mapView,ref:t=>{this._legendElement=t}}),s("map-fullscreen",{key:"2db79144d5aeb6787ac4cf4a32d17ef821ca8cce",class:o,mapView:this.mapView,onFullscreenStateChange:t=>this._fullscreenStateChange(t.detail),ref:t=>{this._fullscreenElement=t}}),s("floor-filter",{key:"a43bf746faf681eca8e20d9022a1d14dace08e64",class:n,enabled:this.enableFloorFilter,mapView:this.mapView,ref:t=>{this._floorFilterElement=t}}))}async _initModules(){const[t]=await h(["esri/widgets/Expand"]);this.Expand=t}_setZoomToolsSize(){const t=document.getElementsByClassName("esri-zoom")[0]?.children[0],i=document.getElementsByClassName("esri-zoom")[0]?.children[1];if(t&&i){const s="s"===this.homeZoomToolsSize?"32px":"m"===this.homeZoomToolsSize?"40px":"48px";t.style.width=s,t.style.height=s,i.style.width=s,i.style.height=s}}_getMapWidgets(t){const i=this._showFullscreen?"full-screen-exit":"full-screen",s=this._showFullscreen?this._translations.exitFullscreen:this._translations.enterFullscreen;return t.map((t=>{switch(t){case"legend":return this.enableLegend&&this.enableSingleExpand?this._getActionGroup("legend",!1,this._translations.legend,(()=>this._showLegend())):this.enableLegend?this._getWidget(t,this._legendElement?.legendWidget,!0):void 0;case"search":return this.enableSearch&&this.enableSingleExpand?this._getActionGroup("magnifying-glass",!1,this._translations.search,(()=>this._search())):this.enableSearch?this._getWidget(t,this._searchElement?.searchWidget,!0):void 0;case"fullscreen":return this.enableFullscreen&&this.enableSingleExpand?this._getActionGroup(i,!1,s,(()=>this._expand())):this.enableFullscreen?this._getWidget(t,this._fullscreenElement?.fullscreenWidget,!1):void 0;case"basemap":return this.enableBasemap&&this.enableSingleExpand?this._getActionGroup("basemap",!1,this._translations.basemap,(()=>this._toggleBasemapPicker())):this.enableBasemap?this._getWidget(t,this._basemapElement?.basemapWidget,!0):void 0;case"floorfilter":return this.enableFloorFilter&&this._hasFloorInfo&&this.enableSingleExpand?this._getActionGroup("urban-model",!1,this._translations.floorFilter,(()=>this._toggleFloorFilter())):this.enableFloorFilter&&this._hasFloorInfo?this._getWidget(t,this._floorFilterElement?.floorFilterWidget,!0):void 0}}))}_fullscreenStateChange(t){"ready"===t&&this._showFullscreen?this._showFullscreen=!1:"active"!==t||this._showFullscreen||(this._showFullscreen=!0)}_getActionGroup(t,i,e,a){return s("div",null,s("calcite-action",{alignment:"center",class:`${"s"===this.mapWidgetsSize?"square-32":"m"===this.mapWidgetsSize?"square-40":"square-48"} ${this.stackTools?"":"margin-bottom-1-2"} border-bottom ${this.stackTools?"":"box-shadow"}`,compact:!1,disabled:i,icon:t,id:t,onClick:a,scale:"s",text:""},s("calcite-icon",{icon:"cheveron-up",scale:"s",slot:"icon"})),s("calcite-tooltip",{label:"",placement:"trailing","reference-element":t},s("span",null,e)))}_getWidget(t,i,s){if(this._widgets.indexOf(t)<0&&this.mapView&&i){const e=this.toolOrder.indexOf(t),a=new this.Expand({view:this.mapView,content:i});this.mapView.ui.add(s?a:i,{position:this.position,index:e>-1?e+(this.enableHome?2:1):1}),this._widgets.push(t)}}_showLegend(){this._showLegendWidget=!this._showLegendWidget,this._showTools=!1}_search(){this._showSearchWidget=!this._showSearchWidget,this._showTools=!1}_toggleBasemapPicker(){this._showBasemapWidget=!this._showBasemapWidget,this._showTools=!1}_toggleFloorFilter(){this._showFloorFilter=!this._showFloorFilter,this._showTools=!1}_expand(){this._showFullscreen=!this._showFullscreen}_toggleTools(){this._showTools||(this._showBasemapWidget=!1,this._showSearchWidget=!1,this._showLegendWidget=!1,this._showFloorFilter=!1),this._showTools=!this._showTools}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{mapView:["mapViewWatchHandler"],_showBasemapWidget:["_showBasemapWidgetWatchHandler"],_showFloorFilter:["_showFloorFilterWatchHandler"],_showFullscreen:["_showFullscreenWatchHandler"],_showLegendWidget:["_showLegendWidgetWatchHandler"],_showSearchWidget:["_showSearchWidgetWatchHandler"]}}};m.style=":host{display:block}.display-none{display:none}.margin-top-1-2{margin-top:0.5rem}.square-32{width:32px;height:32px}.square-40{width:40px;height:40px}.square-48{width:48px;height:48px}.width-40{width:40px}.square-40-41{width:40px;height:41px}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.box-shadow{box-shadow:0 1px 2px rgba(0, 0, 0, 0.3)}.margin-bottom-1-2{margin-bottom:0.5rem}";export{o as basemap_gallery,c as floor_filter,r as map_fullscreen,l as map_legend,d as map_picker,p as map_search,m as map_tools}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as e,g as r,h as s,H as t}from"./p-6eb37ed2.js";const a=class{constructor(r){e(this,r)}get el(){return r(this)}render(){return s(t,{key:"69a6d88e4a58724a61b964ab9e4cc44df1879be4"},s("slot",{key:"57bb8fc9d5fc942af7a47d4735b358510e406818"}))}};a.style=":host{display:block}";export{a as feature_form_flow_item}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,g as e,h as i,H as s}from"./p-6eb37ed2.js";import{g as a}from"./p-2058b5d9.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const r=class{constructor(e){t(this,e),this.templateInfos=[],this._sortedTemplateInfos=[],this._translations=void 0}get el(){return e(this)}_sortOrder=["Hub Site Application","Hub Page","Web Experience","Instant App","Web Mapping Application","Dashboard","StoryMap","Form","QuickCapture Project","Workflow","Big Data Analytic","Real Time Analytic","Feed","Tool","Notebook","Data Pipeline","Project Package","Desktop Application Template","TypeNotFound","Web Map","Web Scene","Feature Layer (hosted, view)","Feature Layer (hosted)","Tile Layer","CSV","Microsoft Excel","Microsoft Word","Report Template","Rule Package","Group"];_types=[];async templateInfosWatchHandler(){this._types=[],this._sortedTemplateInfos=this._sortTemplates()}async componentWillLoad(){await this._getTranslations()}async componentWillRender(){0===this._sortedTemplateInfos.length&&this.templateInfos?.length>0&&(this._sortedTemplateInfos=this._sortTemplates())}render(){return i(s,{key:"
|
6
|
+
import{r as t,g as e,h as i,H as s}from"./p-6eb37ed2.js";import{g as a}from"./p-2058b5d9.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const r=class{constructor(e){t(this,e),this.templateInfos=[],this._sortedTemplateInfos=[],this._translations=void 0}get el(){return e(this)}_sortOrder=["Hub Site Application","Hub Page","Web Experience","Instant App","Web Mapping Application","Dashboard","StoryMap","Form","QuickCapture Project","Workflow","Big Data Analytic","Real Time Analytic","Feed","Tool","Notebook","Data Pipeline","Project Package","Desktop Application Template","TypeNotFound","Web Map","Web Scene","Feature Layer (hosted, view)","Feature Layer (hosted)","Tile Layer","CSV","Microsoft Excel","Microsoft Word","Report Template","Rule Package","Group"];_types=[];async templateInfosWatchHandler(){this._types=[],this._sortedTemplateInfos=this._sortTemplates()}async componentWillLoad(){await this._getTranslations()}async componentWillRender(){0===this._sortedTemplateInfos.length&&this.templateInfos?.length>0&&(this._sortedTemplateInfos=this._sortTemplates())}render(){return i(s,{key:"6fcdd61177775d0757ad91c57f579638f35ed01a"},this._getAccordion())}_getAccordion(){return i("calcite-accordion",null,this._sortedTemplateInfos.reduce(((t,e)=>(this._types.indexOf(e.type)<0&&(this._types.push(e.type),t.push(this._getAccordionItem(e))),t)),[]))}_getAccordionItem(t){const e=this._sortedTemplateInfos.filter((e=>e.type===t.type));return i("calcite-accordion-item",{description:`${t.type} (${e.length})`},i("solution-item-icon",{class:"padding-start-1",slot:"actions-start",type:t.type,typeKeywords:t.typeKeywords}),this._getList(e))}_getList(t){return i("calcite-list",{class:"padding-start-1"},t.map((t=>this._getListItem(t))))}_getListItem(t){return i("calcite-list-item",{description:t.description,label:t.title,value:t.id})}_sortTemplates(){return this.templateInfos.sort(((t,e)=>{const i=this._updateType(t),s=this._updateType(e);return this._sortOrder.indexOf(i)-this._sortOrder.indexOf(s)}))}_updateType(t){let e=t.type;return"Feature Service"===t.type&&(e=t.typeKeywords.indexOf("View Service")>-1?"Feature Layer (hosted, view)":"Feature Layer (hosted)"),"Web Mapping Application"===t.type&&(e=t.typeKeywords.indexOf("configurableApp")>-1?"Instant App":e),t.type="Geoprocessing Service"===t.type?"Tool":"Vector Tile Service"===t.type?"Tile Layer":e,this._sortOrder.indexOf(e)<0&&(e="TypeNotFound"),e}async _getTranslations(){const t=await a(this.el);this._translations=t[0]}static get watchers(){return{templateInfos:["templateInfosWatchHandler"]}}};r.style=":host{display:block}.padding-start-1{padding-inline-start:1rem}";export{r as solution_item_accordion}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as e,g as a,h as i,H as t}from"./p-6eb37ed2.js";import{c as l}from"./p-747d4b59.js";const s=class{constructor(a){e(this,a),this.showAddDeduct=!1}get el(){return a(this)}_deductValuesElement;render(){const e=this.showAddDeduct?"position-relative":"display-none";return i(t,{key:"
|
6
|
+
import{r as e,g as a,h as i,H as t}from"./p-6eb37ed2.js";import{c as l}from"./p-747d4b59.js";const s=class{constructor(a){e(this,a),this.showAddDeduct=!1}get el(){return a(this)}_deductValuesElement;render(){const e=this.showAddDeduct?"position-relative":"display-none";return i(t,{key:"2c3ae9b46d4efee38023bccf8e3066de49285841"},i("div",{key:"ee3395e8e439eacff32796797ba00adcd4937d02",class:this.showAddDeduct?"display-none":"display-grid"},i("div",{key:"3aeb3bacdc0b5ac84bdd1456280ade3b24e50c0b",class:"label-display"},i("calcite-label",{key:"e2ac4d880fe7ba5a032f009be2f2b06883eca37f",class:"label-display"},"Enter comma delimited deduct values",this._getDeductValuesInput())),i("div",{key:"f6eb94b1736ab4d4ca7b1bfc3db22a980245c611"},this._getCalculateButton())),i("div",{key:"ef64cde093175d04c85c0f5efb706892a9c0e2ec",class:e},i("div",{key:"492a4d4889112feb3cec6ddae56cfe7d701464b6",class:"position-right"},i("calcite-action",{key:"311a3b065c600fdb040243fd17afbf8bae9c0045",appearance:"transparent",class:"float-end",icon:"x",onClick:()=>this._toggleShowAddDeduct(),scale:"s",text:""})),i("deduct-calculator",{key:"538566a403bcc4b599d0fc56b4d6a1b87a012ce9",class:"display-grid padding-top-1",onDeductValueComplete:e=>this._addDeductValue(e)})))}_getDeductValuesInput(){return i("div",{class:"display-flex"},i("calcite-input",{class:"main-input",ref:e=>{this._deductValuesElement=e}}),i("calcite-action",{appearance:"transparent",icon:"plus-circle",onClick:()=>this._toggleShowAddDeduct(),scale:"s",text:""}))}_getCalculateButton(){return i("calcite-button",{onClick:()=>this._calculatePCI(this._deductValuesElement.value)},"Calculate PCI")}_toggleShowAddDeduct(){this.showAddDeduct=!this.showAddDeduct}_addDeductValue(e){this._toggleShowAddDeduct(),this._deductValuesElement.value+=Math.abs(parseFloat(this._deductValuesElement.value))>0?`,${e.detail}`:e.detail}_calculatePCI(e){const a=l(e,!0),i=a<=10?"Failed":a<=25?"Serious":a<=40?"Very Poor":a<=55?"Poor":a<=70?"Fair":a<=85?"Satisfactory":"Good";console.log(`PCI: ${a}`),console.log(`Rating: ${i}`),alert("See debug console for results")}};s.style=":host{display:block;--calcite-label-margin-bottom:0}.label-display{display:block;padding-bottom:1rem}.display-flex{display:flex}.display-grid{display:grid}.display-table{display:table}.display-inline-table{display:inline-table}.display-none{display:none}.display-inherit{display:inherit}.padding-top-1{padding-top:1rem}.main-input{width:300px;padding-inline-end:1rem}.float-end{float:inline-end}.position-relative{position:relative}.position-right{position:absolute;right:0px}";export{s as pci_calculator}
|
@@ -44,4 +44,4 @@ function Kt(t,e,i){const{items:a,messages:o}=i,s=a.length,n=P(i,t)+1;return func
|
|
44
44
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
45
45
|
* v2.12.2
|
46
46
|
*/
|
47
|
-
const Qt="actions-end",Zt="actions-start";bt.deprecated("component",{name:"value-list-item",removalVersion:3,suggested:"list-item"});const te=class{constructor(i){t(this,i),this.calciteListItemChange=e(this,"calciteListItemChange",6),this.calciteListItemRemove=e(this,"calciteListItemRemove",7),this.calciteValueListItemDragHandleBlur=e(this,"calciteValueListItemDragHandleBlur",6),this.pickListItem=null,this.guid=`calcite-value-list-item-${H()}`,this.getPickListRef=t=>this.pickListItem=t,this.handleKeyDown=t=>{" "===t.key&&(this.handleActivated=!this.handleActivated)},this.handleBlur=()=>{this.handleActivated=!1,this.calciteValueListItemDragHandleBlur.emit({item:this.el,handle:this.handleEl})},this.handleSelectChange=t=>{this.selected=t.detail.selected},this.description=void 0,this.disabled=!1,this.deselectDisabled=!1,this.nonInteractive=!1,this.handleActivated=!1,this.icon=null,this.iconFlipRtl=!1,this.label=void 0,this.metadata=void 0,this.removable=!1,this.selected=!1,this.value=void 0}connectedCallback(){c(this),A(this)}disconnectedCallback(){r(this),E(this)}componentWillLoad(){N(this)}componentDidLoad(){B(this)}componentDidRender(){M(this)}async toggleSelected(t){this.pickListItem.toggleSelected(t)}async setFocus(){return await O(this),this.pickListItem?.setFocus()}calciteListItemChangeHandler(t){t.detail.item=this.el}renderActionsEnd(){const{el:t}=this;return y(t,Qt)?i("slot",{name:Qt,slot:ut.actionsEnd}):null}renderActionsStart(){const{el:t}=this;return y(t,Zt)?i("slot",{name:Zt,slot:ut.actionsStart}):null}renderHandle(){const{icon:t,iconFlipRtl:e}=this;if(t===ft.grip)return i("span",{class:{[pt.handle]:!0,[pt.handleActivated]:this.handleActivated},"data-js-handle":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:t=>this.handleEl=t,role:"button",tabindex:"0"},i("calcite-icon",{flipRtl:e,icon:"drag",scale:"s"}))}render(){return i(s,{key:"5800bb42bb126d69868f664845be9d912cc16a1e",id:this.el.id||this.guid},i(F,{key:"3fd26470647b3ec37edaf80d83d8b74b4a0dbcb0",disabled:this.disabled},this.renderHandle(),i("calcite-pick-list-item",{key:"772821bab106c95accaa215e05164371760f2ac0",description:this.description,deselectDisabled:this.deselectDisabled,disabled:this.disabled,label:this.label,metadata:this.metadata,nonInteractive:this.nonInteractive,onCalciteListItemChange:this.handleSelectChange,ref:this.getPickListRef,removable:this.removable,selected:this.selected,value:this.value},this.renderActionsStart(),this.renderActionsEnd())))}get el(){return o(this)}};te.style=":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{margin-block-end:1px;box-sizing:border-box;display:flex;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2);--tw-shadow:0 1px 0 var(--calcite-color-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition:background-color var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing)}:host *{box-sizing:border-box}calcite-pick-list-item{position:relative;margin:0px;flex-grow:1;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([active]),:host([selected]){--tw-shadow:0 0 0 1px var(--calcite-color-brand);--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.handle{display:flex;cursor:move;align-items:center;justify-content:center;border-style:none;background-color:transparent;padding-block:0px;padding-inline:0.25rem;color:var(--calcite-color-border-input);outline-color:transparent}.handle:hover{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}.handle:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.handle--activated{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}.handle calcite-icon{color:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}";const ee=class{constructor(e){t(this,e),this.hasChanges=!1,this.hasErrors=!1,this.instanceid="",this.value=""}get el(){return o(this)}componentDidLoad(){const t=document.getElementById(`${this.instanceid}-container`);if(t){this._editor=monaco.editor.create(t,{value:this.value,language:"json",theme:"vs",minimap:{enabled:!1},automaticLayout:!0,scrollBeyondLastLine:!1}),this._currentModel=this._editor.getModel(),this._contentChanged=this._currentModel.onDidChangeContent(this._onEditorChange.bind(this));const e=monaco.editor.setModelMarkers,i=this;monaco.editor.setModelMarkers=function(t,a,o){t.id===i._currentModel.id&&(i._flagEditorHasErrors(o.length>0),i.hasErrors||(i._flagEditorHasChanges(i._currentModel?.canUndo()),i._currentModel?.canUndo()&&i._flagEditorContentChanged()),document.getElementById(`${i.instanceid}-errorFlag`).style.visibility=i.hasErrors?"visible":"hidden"),e.call(monaco.editor,t,a,o)},this._diffEditor=monaco.editor.createDiffEditor(document.getElementById(`${this.instanceid}-diff-container`),{automaticLayout:!0}),this._setDiffModel(),this._loaded=!0,this._toggleUndoRedo()}}async componentWillLoad(){this._initValueObserver(),await this._getTranslations()}render(){return i(s,{key:"f7bd89c09a1da47faac69a2046e17f116d81f900"},i("div",{key:"ecb97ba7d6be7490e5e62eb32c821acc3e4d647f",id:`${this.instanceid}-editor-container`,class:"editor-container padding-right"},i("div",{key:"8e41d06868b3d6814b71d06899a860444cf22f5f",class:"editor-controls"},i("div",{key:"72e466cd4960538d2b12da8d7b19ff52587af282",class:"editor-buttons"},i("calcite-icon",{key:"ec927121edd4ad9873f39c4382bec58ec70f4fe0",id:`${this.instanceid}-errorFlag`,icon:"exclamation-mark-triangle",title:this._translations.errorFlag,scale:"s",class:"edit-error-flag"}),i("calcite-button",{key:"e58f934f12ffb97b658b79bd6f43b488bfe48be1",id:`${this.instanceid}-undo`,color:"blue",appearance:"solid",title:this._translations.undo,onClick:()=>this._undo(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"39843757e60fe92ba3379fe72cf9696c082f83f7",icon:"undo",scale:"s"})),i("calcite-button",{key:"d0b6147354e31152615f148fba1e9780d7d60d60",id:`${this.instanceid}-redo`,color:"blue",appearance:"solid",title:this._translations.redo,onClick:()=>this._redo(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"484b599a9c38c7e87a822c3b87934648ea47f440",icon:"redo",scale:"s"})),i("calcite-button",{key:"5d984fe49873a751c0a5da22de35261566e2c648",id:`${this.instanceid}-diff`,color:"blue",appearance:"solid",title:this._translations.diff,onClick:()=>this._toggleEditor(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"c6089f49f33196f3edd7ef009b1367b7978e0469",icon:"compare",scale:"s"})),i("calcite-button",{key:"e8d4923b89329a19eb4b0426c9a8645327be7558",id:`${this.instanceid}-search`,appearance:"outline",color:"blue",title:this._translations.search,onClick:()=>this._search(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"0033b33183f88b5122dda9afa5f7095072c7beaf",icon:"search",scale:"s"})),i("calcite-button",{key:"fdb722e4e9046eb31ca62352a841097bd60f9989",id:`${this.instanceid}-reset`,color:"blue",appearance:"solid",disabled:!0,title:this._translations.cancelEdits,onClick:()=>this._reset(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"c1f8cda4d8fb79b66e1a8b91286e8952bd6afaaa",icon:"reset",scale:"s"})))),i("div",{key:"2111d6a3f15a3df17cdc33ae49de36f51d9db37b",class:"edit-parent"},i("div",{key:"9a7b4cbf25dff972a44ec6332ac010adb511251d",id:`${this.instanceid}-container`,class:"json-edit-container"}),i("div",{key:"9ccd5646f1df550e5ff2c35bb5a9bf3e181117fa",id:`${this.instanceid}-diff-container`,class:"json-edit-container display-none"}))))}_cancelEditsBtnHandler;_contentChanged;_currentModel;_diffEditor;_editor;_loaded=!1;_searchBtnHandler;_translations;_useDiffEditor=!1;_valueObserver;async getEditorContents(){return new Promise(((t,e)=>{try{t(this._currentModel.getValue())}catch(t){e(t)}}))}async prepareForDeletion(){this._searchBtnHandler?.removeEventListener("click",this._search),this._cancelEditsBtnHandler?.removeEventListener("click",this._reset),this._valueObserver?.disconnect(),this._contentChanged?.dispose(),this._editor?.dispose()}async replaceCurrentSelection(t){const e=this._editor.getSelection();this._editor.executeEdits("",[{range:e,text:t}])}async reset(){return new Promise(((t,e)=>{try{this._reset(),t({success:!0})}catch(t){e(t)}}))}_disableButton(t){document.getElementById(t)?.setAttribute("disabled","")}_enableButton(t){document.getElementById(t)?.removeAttribute("disabled")}_flagEditorContentChanged(){window.dispatchEvent(new CustomEvent("solutionEditorContentChanged",{detail:{id:this.instanceid,contents:this._currentModel.getValue()},bubbles:!0,cancelable:!1,composed:!0}))}_flagEditorHasChanges(t){this.hasChanges!==t&&(window.dispatchEvent(new CustomEvent("solutionEditorHasChanges",{detail:t,bubbles:!0,cancelable:!1,composed:!0})),this.hasChanges=t)}_flagEditorHasErrors(t){this.hasErrors!==t&&(window.dispatchEvent(new CustomEvent("solutionEditorHasErrors",{detail:t,bubbles:!0,cancelable:!1,composed:!0})),this.hasErrors=t)}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}_initValueObserver(){this._valueObserver=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"value"===t.attributeName&&t.target[t.attributeName]!==t.oldValue&&this._loaded&&this._currentModel.setValue(this.value)}))})),this._valueObserver.observe(this.el,{attributes:!0,attributeOldValue:!0})}_onEditorChange(){this._toggleUndoRedo()}_redo(){this._currentModel?.canRedo()&&(this._currentModel.redo(),this._toggleUndoRedo())}_reset(){this._currentModel.setValue(this.value),this._toggleUndoRedo()}_search(){this._editor.trigger("toggleFind","actions.find")}_setDiffModel(){this._diffEditor&&this._diffEditor.setModel({original:monaco.editor.createModel(this.value,"json"),modified:this._editor.getModel()})}_toggleEditor(){this._useDiffEditor=!this._useDiffEditor;let t=document.getElementById(`${this.instanceid}-diff-container`),e=document.getElementById(`${this.instanceid}-container`);this._useDiffEditor?(this._setDiffModel(),t.classList.remove("display-none"),e.classList.add("display-none")):(t.classList.add("display-none"),e.classList.remove("display-none"))}_toggleUndoRedo(){this._currentModel?.canUndo()?this._enableButton(`${this.instanceid}-undo`):this._disableButton(`${this.instanceid}-undo`),this._currentModel?.canRedo()?this._enableButton(`${this.instanceid}-redo`):this._disableButton(`${this.instanceid}-redo`),this._currentModel?.canUndo()||this._currentModel?.canRedo()?this._enableButton(`${this.instanceid}-reset`):this._disableButton(`${this.instanceid}-reset`)}_undo(){this._currentModel?.canUndo()&&(this._currentModel.undo(),this._toggleUndoRedo())}static get assetsDirs(){return["assets"]}};ee.style=":host{display:block}.editor-container{position:relative;height:100%}.editor-controls{height:2.75rem;padding-right:0.5rem;background-color:#F4F4F4}.editor-buttons{float:right}html[dir=rtl] .editor-buttons{float:left}.edit-error-flag{padding-top:0.5rem;color:red;visibility:hidden}.edit-button{padding-inline-start:0.5rem}.editor-text{width:100%;overflow-y:auto;background-color:#FFFFFF}.edit-width{width:100%}.edit-parent{box-sizing:border-box;width:100%;height:calc(100% - 46px)}.json-edit-container{height:100%;width:100%;border:1px #808080 solid}.padding-right{padding-inline-end:0.125rem}.btn{margin-bottom:1rem;display:flex;align-content:center;height:25px;width:120px}.select-ctrl{margin-bottom:1rem}.all-edits{margin-top:4rem}.floating-title{font-size:2rem;z-index:100;position:absolute;left:0.5rem;pointer-events:none}.floating-title-button{pointer-events:auto}.json-editor-position1{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:100%;overflow:hidden;padding:0px;max-height:100% !important}.json-editor-position2a{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:50%;overflow:hidden;padding:0px;max-height:100% !important}.json-editor-position2b{position:absolute;right:0px;top:0px;margin:0px;height:100%;width:50%;overflow:hidden;padding:0px;max-height:100% !important}";const ie=class{constructor(e){t(this,e),this.itemId="",this.itemDetails={accessInformation:"",description:"",licenseInfo:"",snippet:"",tags:[],title:""},this.itemEdit=void 0,this._translations=void 0,this.thumbnail=void 0,this.thumbnailContainer=void 0}get el(){return o(this)}async componentWillLoad(){return this._getTranslations()}async componentWillRender(){return this.itemEdit=vt.getItemInfo(this.itemId),this.itemEdit&&(this.itemDetails=this.itemEdit.item,this.itemType=this.itemDetails.type),Promise.resolve()}render(){return i(s,{key:"84bfa00fcedb54a43856c92e8446305d15d1a54a"},i("div",{key:"bceaddf6dcc35e5a22cad12e661c17f716fd165e",class:"parent-container"},i("div",{key:"17834a249ffbbbd3ee54617fa2f2224816dd59b1",class:"inputBottomSeparation"},i("calcite-input",{key:"372ceefe695e7c54a4ad35cf5b496202037fd57c",id:"item-title",value:this.itemDetails.title})),i("div",{key:"fc356bd1e3bb965b7555dcea9fccfce44ca96a31",class:"inputBottomSeparation"},i("input",{key:"11dc51158e385025d139372682b33d2093956a50",accept:".jpg,.gif,.png,image/jpg,image/gif,image/png",class:"display-none",onChange:t=>this._updateThumbnail(t),ref:t=>this.browseForThumbnail=t,type:"file"}),i("button",{key:"abc5c96ec20adb16026fd6a7c3eb41871512d360",class:"font-size--3 btn-link inline-block trailer-quarter",onClick:()=>this._getThumbnail()},i("svg",{key:"35ce23e7fe17e7f45110e028ddb0c31e033f6f34",class:"icon-inline icon-inline--on-left",height:"16",viewBox:"0 0 16 16",width:"16"},i("path",{key:"0bab7e61e1261db38a1a62dd085f63de5993a640",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),i("div",{key:"4dff94a716f70a350168ae123f0afb41f360fb3b",class:"flex"},i("div",{key:"bda8e51d80a72f221eb02ea915609b1e2175a56f",class:"img-container",ref:t=>this.thumbnailContainer=t},i("img",{key:"3b606e141fae758b24d6114d7433cfdec9570ba9",class:"scale-down",height:"133",id:"item-thumbnail",ref:t=>this.thumbnail=t,width:"200"})),i("div",{key:"3f5c6fd680a45c754e2b798566776363e94bf307",class:"snippet-count-container"},i("calcite-input",{key:"3d35c224c6d8b34483712e392aeca8a87e0d0810",id:"item-snippet",maxLength:250,type:"textarea",value:this.itemDetails.snippet}),i("label",{key:"1aecd6515a83c523c991d5ccd9516ff14384a13a",class:"font-size--3",id:"item-snippet-count",ref:t=>this.itemSnippetCount=t})))),i("calcite-label",{key:"3052a4847edc5afd336a763e8e6933694aad9d6d"},this._translations.description,i("label",{key:"595de020ea7e1e5b61296f7c9b17f1a02a0741e0",id:"item-description-label"},i("calcite-input",{key:"135cb36c76f6462aa470f9b7680ebefa6be60018",id:"item-description",type:"textarea",value:this.itemDetails.description}))),i("calcite-label",{key:"8f51b5f1d2607e040b6a94920d2f581b3595838f"},this._translations.tags,i("label",{key:"21b84a7bcb9d5b8b56e7b6ccee0b49e940e1faf3",id:"item-tags-label"},i("calcite-input",{key:"8f3b14471019c703944e531abca80b01751b04e1",id:"item-tags",value:(this.itemDetails.tags&&Array.isArray(this.itemDetails.tags)?this.itemDetails.tags:[this.itemDetails.tags]).join(",")}))),"Group"!==this.itemType?i("calcite-label",null,this._translations.credits,i("label",{id:"item-credits-label"},i("calcite-input",{id:"item-credits",value:this.itemDetails.accessInformation}))):null,"Group"!==this.itemType?i("calcite-label",null,i("label",{id:"item-terms-label"},this._translations.termsOfUse,i("calcite-input",{id:"item-terms",type:"textarea",value:this.itemDetails.licenseInfo}))):null))}componentDidRender(){this._loadThumb()}browseForThumbnail;itemType;itemSnippetCount;inputReceivedHandler(t){switch(t.target.id){case"item-title":this.itemDetails.title=t.target.value,this._updateStore();break;case"item-snippet":t.target.value.length>250&&(t.target.value=t.target.value.substring(0,250)),this.itemDetails.snippet=t.target.value,this._updateLengthLabel(this.itemDetails.snippet),this._updateStore();break;case"item-description":this.itemDetails.description=t.target.value,this._updateStore();break;case"item-tags":this.itemDetails.tags=t.target.value,this._updateStore();break;case"item-credits":this.itemDetails.accessInformation=t.target.value,this._updateStore();break;case"item-terms":this.itemDetails.licenseInfo=t.target.value,this._updateStore()}}_getThumbnail(){this.browseForThumbnail.click()}_loadThumb(){this.thumbnail&&this.itemEdit?.thumbnail?(this.thumbnail.src=URL.createObjectURL(this.itemEdit.thumbnail),this.thumbnailContainer.classList.remove("empty-box"),this.thumbnail.classList.remove("display-none")):(this.thumbnailContainer.classList.add("empty-box"),this.thumbnail.classList.add("display-none"))}_updateLengthLabel(t){this.itemSnippetCount.innerText=this._translations.snippetCountPattern.replace("{{n}}",t.length.toString())}_updateStore(){this.itemEdit=vt.getItemInfo(this.itemId),this.itemEdit.item=this.itemDetails,vt.setItemInfo(this.itemEdit)}_updateThumbnail(t){const e=t.target.files;e&&e[0]&&this.thumbnail&&(this.thumbnail.src=URL.createObjectURL(e[0]),this.itemEdit=vt.getItemInfo(this.itemId),this.itemEdit.thumbnail=e[0],vt.replaceItemThumbnail(this.itemEdit))}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}};ie.style=".inputBottomSeparation{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem}.icon-inline--on-left,.icon-inline--on-right{display:inline;vertical-align:middle;margin-inline-end:0.375rem;fill:#0079c1}.scale-down{-o-object-fit:scale-down;object-fit:scale-down}.img-container{display:inline;margin-inline-end:1rem;max-width:363px}.summary-count-container{display:inline;flex-grow:1;margin-inline-start:0.75rem}.snippet-count-container{width:calc(100vw - 363px)}.parent-container{max-width:100%;padding:1rem}label{position:relative;margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem;display:block;min-width:-moz-min-content;min-width:min-content}";const ae=class{constructor(e){t(this,e),this.groupId="",this._translations=void 0,this.sharing=[]}get el(){return o(this)}itemIdWatchHandler(){const t=vt.getItemInfo(this.groupId);this.sharing=t.groupDetails}async componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"6a9facacd8961a53dd4e49082def5573732d49bf"},i("div",{key:"6eaf512253573a4db25ec64ebe1439228df4845d",class:"container-border"},i("calcite-label",{key:"db5680d010759bdb28b774293b8ae1522c9d8052"},this._translations.groupInfo),this._renderItems(this.sharing)))}async getShareInfo(){return this.sharing}_renderItems(t){return t&&t.length>0?t.map((t=>i("calcite-label",{layout:"inline"},i("calcite-switch",{checked:t.shareItem,id:t.id,name:"setting",onCalciteSwitchChange:t=>this._updateItem(t),scale:"m",value:"enabled"}),i("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),i("span",{class:"icon-text",title:t.title},t.title)))):null}_updateItem(t){const e=t.target.id;this.sharing=this.sharing.map((i=>{if(i.id===e){i.shareItem=t.target.checked;const a=vt.getItemInfo(e);if(i.shareItem)a.groups?a.groups.indexOf(this.groupId)<0&&a.groups.push(this.groupId):a.groups=[this.groupId];else if(a.groups){const t=a.groups.indexOf(this.groupId);t>-1&&a.groups.splice(t,1)}vt.setItemInfo(a)}return i}))}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{groupId:["itemIdWatchHandler"]}}};ae.style=":host{display:block}.container-border{padding:1rem}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const oe=class{constructor(i){t(this,i),this.organizationVariableSelected=e(this,"organizationVariableSelected",7),this.value="",this._organizationVariables=[],this._translations=void 0}get el(){return o(this)}valueWatchHandler(){this._organizationVariables=JSON.parse(this.value)}async componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"99ef09d7f851a57d42c7f7ad5cd6e303b9508d17"},i("div",{key:"7217187249febdbbf3899d96cdbb2a45474343b7"},i("h4",{key:"d5d01648936de6726d7422f81f58ad998574ea87",class:"org-var-header"},this._translations.orgVariables)),i("div",{key:"22d6f7fb4b0d8f570dbcf9dcac08dce7e2f6383e",class:"container-border"},i("calcite-tree",{key:"5f21f4fc4b378da1b144dbeb1e19df2f43bcee61",id:"variable-label"},this._renderHierarchy(this._organizationVariables))))}organizationVariableSelected;_renderHierarchy(t){return t.map((t=>i("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)))}_treeItemSelected(t,e){this.organizationVariableSelected.emit({itemId:t,value:e})}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{value:["valueWatchHandler"]}}};oe.style=":host{display:block}.container-border{overflow-y:auto}.org-var-header{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1rem}";const se=class{constructor(e){t(this,e),this.authentication=void 0,this.itemId="",this.resourceFilePaths=[],this.resources=[],this._translations=void 0}get el(){return o(this)}itemIdWatchHandler(){const t=vt.getItemInfo(this.itemId);this.resourceFilePaths=t.resourceFilePaths,this.resources=t.resources.map((t=>t.substring(t.lastIndexOf("/")+1)))}componentWillLoad(){return this._getTranslations()}render(){const t=this._hasValidResources();return i(s,{key:"eb76345d460620ea6229c1ac94eaf5dec9943c1e"},i("div",{key:"8dfb91c0ca0d4201940e29bcb809002da1cd9d76",class:"resource-item"},i("div",{key:"a6ec9664d267c25eada0432e6825369fdc82676f",class:"margin-bottom-1"},i("calcite-button",{key:"d84827e9dbe4ad68544430c007b28c5e9929e076",appearance:"solid",class:"resource-button",color:"blue",onClick:()=>this._addNewResource()},this._translations.addResource),i("calcite-button",{key:"d88b2928ca6994054f899823701327ece50a937b",appearance:"solid",color:"blue",disabled:!t,onClick:()=>this._downloadAll()},this._translations.downloadAll)),i("div",{key:"445c0c3e2deb3b546f4c84186a148e8888477d13",class:"resources-container",style:{display:t?"inherit":"none"}},this._renderResourceList())))}_removedResources={};_renderResourceList(){return i("calcite-value-list",{multiple:!0},this.resourceFilePaths.reduce(((t,e)=>(e.type!==wt.Thumbnail&&t.push(this._renderResource(e)),t)),[]))}_renderResource(t){const e=t.updateType===gt.Remove;return i("calcite-value-list-item",{class:e?"disabled":"",label:t.folder?t.folder+"/"+t.filename:t.filename,nonInteractive:!0,value:t.url},i("calcite-action-group",{"expand-disabled":"true",layout:"horizontal",slot:"actions-end"},i("calcite-action",{disabled:e,icon:"download",label:this._translations.download,onClick:()=>this._download(t.url,t.filename),scale:"m",text:this._translations.download,title:this._translations.download}),i("calcite-action",{disabled:e,icon:"upload-to",label:this._translations.update,onClick:()=>this._upload(t),scale:"m",text:this._translations.update,title:this._translations.update}),i("calcite-action",{disabled:e,icon:"trash",label:this._translations.delete,onClick:()=>this._delete(t),scale:"m",text:this._translations.delete,title:this._translations.delete}),e?i("calcite-action",{icon:"reset",label:this._translations.reset,onClick:()=>this._reset(t.filename),scale:"m",text:this._translations.reset,title:this._translations.reset}):i("div",{class:"display-none"})))}_delete(t){t.updateType=gt.Remove,this.resourceFilePaths=[...this.resourceFilePaths],this._updateStore()}_reset(t){this.resourceFilePaths=this.resources.some((e=>e===t))?this.resourceFilePaths.map((e=>(e.filename===t&&(e.updateType=gt.None),e))):this.resourceFilePaths.map((e=>(e.filename===t&&(e.updateType=gt.Add),e))),this._updateStore()}_downloadAll(){this.resourceFilePaths.forEach((t=>{this._download(t.url,t.filename)}))}_download(t,e){t.startsWith("blob")?this.downloadFile(t,e):this.fetchAndDownload(`${t}?token=${this.authentication.token}`,e)}downloadFile(t,e){const i=document.createElement("a");i.href=t,i.download=e,i.target="_blank",i.click()}_hasValidResources(){return this.resourceFilePaths.some((t=>t.url.indexOf("_info_thumbnail")<0))}async fetchAndDownload(t,e){const i=await fetch(t),a=await i.blob(),o=URL.createObjectURL(a);this.downloadFile(o,e)}_upload(t){const e=document.createElement("input");e.classList.add("display-none"),e.onchange=this._updateResource.bind(this,t),e.type="file",e.click()}_addNewResource(){const t=document.createElement("input");t.classList.add("display-none"),t.onchange=this._add.bind(this),t.type="file",t.click()}_updateResource(t,e){const i=e.target.files;i&&i[0]&&(t.blob=i[0],t.updateType=gt.Update,this._updateStore())}_add(t){const e=t.target.files;if(e&&e[0]){const t=URL.createObjectURL(e[0]),i=e[0].name;this.resourceFilePaths.some((e=>e.filename===i&&e.url===t))||(this.resourceFilePaths=[...this.resourceFilePaths,{url:t,type:wt.Data,folder:void 0,filename:i,blob:e[0],updateType:gt.Add}],this._updateStore())}}_updateStore(){const t=vt.getItemInfo(this.itemId);t.resourceFilePaths=this.resourceFilePaths,vt.setItemInfo(t)}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};se.style=":host{display:block}.resource-item{padding:1rem}.resource-button{margin-inline-end:1rem}.resource-progress{padding-top:1rem}.resources-container{border:1px #808080 solid}.margin-bottom-1{margin-bottom:1rem}";const ne=class{get el(){return o(this)}itemIdWatchHandler(){this._initializing=!0,this.value=JSON.stringify("data"===this.instanceid?vt.getItemInfo(this.itemId).data:vt.getItemInfo(this.itemId).properties,null,2)}constructor(e){t(this,e),this.instanceid="",this.itemId="",this.organizationVariables="",this.solutionVariables="",this.varsOpen=!0,this._translations=void 0,this.value="",window.addEventListener("solutionEditorContentChanged",(t=>{if(this.itemId){const{id:e,contents:i}=t.detail,[a,o]=e.split("|");if(a==this.itemId&&o===this.instanceid){if(!this._initializing&&i.length>0){const t=vt.getItemInfo(a);"data"===o?t.data=JSON.parse(i):t.properties=JSON.parse(i),vt.setItemInfo(t)}this._initializing=!1}}}))}componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"78d31b01a7b3aac5e3b63ec59fa0225e662c3532"},i("div",{key:"84ad00f60d5ad98fc14fad50b2db93844e54a842",class:"solution-data-container"},i("calcite-shell",{key:"0e56c32e9ba92e9e536ce16f30db4e59d1c71094",class:"light var-container",dir:"ltr"},i("calcite-panel",{key:"ab251fe749493d11b61359f3f018fa87917d83c6",class:"json-editor"},i("div",{key:"94be603b8c03bccbcc31293839d633ffa0ca5b15",class:"solution-data-child-container calcite-match-height"},i("json-editor",{key:"76a5a31ae0dc54d59a300e0d6cc6b543e994d322",class:"solution-data-editor-container",instanceid:this.itemId+"|"+this.instanceid,value:this.value}))),i("calcite-shell-panel",{key:"5405b6aa574c721965bbdd4aabf90981f82c7da7","height-scale":"l",position:"end",slot:"contextual-panel","width-scale":"xs"},i("div",{key:"e7b57aa1f91e479a7538b5bb60fff9ff096bc9c9",class:this.varsOpen?"solution-data-child-container":"solution-data-child-container-collapsed"},i("calcite-button",{key:"ddd017fee5c66d79cd2c6239b847aacef9e04070",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}),i("div",{key:"a45aec86952e3172c76153b01a54076d97050de9",class:this.varsOpen?"org-vars":"org-vars display-none",id:"orgVars"},i("solution-organization-variables",{key:"e138b7ec4c256c916ef52cef6d17f0d9a839d506",value:this.organizationVariables})),i("div",{key:"9444585d82bc85f2cf535ecc8921b2d3f67b398d",class:this.varsOpen?"sol-vars":"sol-vars display-none",id:"solVars"},i("solution-variables",{key:"030de51ff885c3ddf549fc4898c31ec23bb0d303",value:this.solutionVariables})))))))}_initializing=!1;_toggleVars(){this.varsOpen=!this.varsOpen}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};ne.style=":host{display:flexbox}.solution-data-container{position:absolute;height:-moz-available;height:calc(100% - 48px);height:-webkit-fill-available;height:stretch;width:-moz-available;width:100%;width:-webkit-fill-available;width:stretch}.solution-data-child-container{display:flex;height:100%;width:100%;flex-direction:column;overflow-y:auto}.solution-data-editor-container{height:100%}.solution-data-child-container-collapsed{display:flex;height:100%;flex-direction:column;overflow:auto;width:50px}.inputBottomSeparation{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem}.json-editor{margin:1rem;width:auto;width:-webkit-fill-available -moz-available}.collapse-btn{padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:0px}.org-vars{padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:0px}.sol-vars{padding-top:0px;padding-bottom:0px;padding-left:1rem;padding-right:1rem;min-height:45%}.padding-1{padding:1rem}.light{background-color:#F4F4F4}";const le=class{constructor(i){t(this,i),this.solutionVariableSelected=e(this,"solutionVariableSelected",7),this.value="",this._solutionVariables=[],this._translations=void 0}get el(){return o(this)}valueWatchHandler(){this._solutionVariables=JSON.parse(this.value)}componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"5d3ed27bced41fb6bf6c393ddde152fb0056d25b"},i("div",{key:"cb05d3c237719abd539b21b38968a41364c1880e"},i("h4",{key:"367eb15af209dfed31b43f705fb6de05e25bb374",class:"org-var-header"},this._translations.solVariables)),i("div",{key:"10142202269a9f2eaa82c0b50a1980d9f3051208",class:"container-border"},i("calcite-tree",{key:"d89353a7fe357851a697df036ae7795154254759",id:"variable-label"},this._renderHierarchy(this._solutionVariables))))}solutionVariableSelected;_renderHierarchy(t){return t.map((t=>t.dependencies&&t.dependencies.length>0?i("calcite-tree-item",{onClick:t=>this._toggleExpand(t)},i("solution-item-icon",{type:t.type}),i("span",{class:"icon-text",title:t.title},t.title),i("calcite-tree",{slot:"children"},this._renderHierarchy(t.dependencies))):i("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)))}_treeItemSelected(t,e){this.solutionVariableSelected.emit({itemId:t,value:e})}_toggleExpand(t){const e=t?.target?.closest("calcite-tree-item");e&&(e.expanded=!e.expanded)}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{value:["valueWatchHandler"]}}};le.style=":host{display:block}.container-border{overflow-y:hidden}.org-var-header{margin-top:1rem;margin-bottom:1rem;margin-left:0px;margin-right:0px}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";export{_t as calcite_shell_panel,Tt as calcite_tab,Ft as calcite_tab_nav,qt as calcite_tab_title,Gt as calcite_tabs,Yt as calcite_value_list,te as calcite_value_list_item,ee as json_editor,ie as solution_item_details,ae as solution_item_sharing,oe as solution_organization_variables,se as solution_resource_item,ne as solution_template_data,le as solution_variables}
|
47
|
+
const Qt="actions-end",Zt="actions-start";bt.deprecated("component",{name:"value-list-item",removalVersion:3,suggested:"list-item"});const te=class{constructor(i){t(this,i),this.calciteListItemChange=e(this,"calciteListItemChange",6),this.calciteListItemRemove=e(this,"calciteListItemRemove",7),this.calciteValueListItemDragHandleBlur=e(this,"calciteValueListItemDragHandleBlur",6),this.pickListItem=null,this.guid=`calcite-value-list-item-${H()}`,this.getPickListRef=t=>this.pickListItem=t,this.handleKeyDown=t=>{" "===t.key&&(this.handleActivated=!this.handleActivated)},this.handleBlur=()=>{this.handleActivated=!1,this.calciteValueListItemDragHandleBlur.emit({item:this.el,handle:this.handleEl})},this.handleSelectChange=t=>{this.selected=t.detail.selected},this.description=void 0,this.disabled=!1,this.deselectDisabled=!1,this.nonInteractive=!1,this.handleActivated=!1,this.icon=null,this.iconFlipRtl=!1,this.label=void 0,this.metadata=void 0,this.removable=!1,this.selected=!1,this.value=void 0}connectedCallback(){c(this),A(this)}disconnectedCallback(){r(this),E(this)}componentWillLoad(){N(this)}componentDidLoad(){B(this)}componentDidRender(){M(this)}async toggleSelected(t){this.pickListItem.toggleSelected(t)}async setFocus(){return await O(this),this.pickListItem?.setFocus()}calciteListItemChangeHandler(t){t.detail.item=this.el}renderActionsEnd(){const{el:t}=this;return y(t,Qt)?i("slot",{name:Qt,slot:ut.actionsEnd}):null}renderActionsStart(){const{el:t}=this;return y(t,Zt)?i("slot",{name:Zt,slot:ut.actionsStart}):null}renderHandle(){const{icon:t,iconFlipRtl:e}=this;if(t===ft.grip)return i("span",{class:{[pt.handle]:!0,[pt.handleActivated]:this.handleActivated},"data-js-handle":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:t=>this.handleEl=t,role:"button",tabindex:"0"},i("calcite-icon",{flipRtl:e,icon:"drag",scale:"s"}))}render(){return i(s,{key:"5800bb42bb126d69868f664845be9d912cc16a1e",id:this.el.id||this.guid},i(F,{key:"3fd26470647b3ec37edaf80d83d8b74b4a0dbcb0",disabled:this.disabled},this.renderHandle(),i("calcite-pick-list-item",{key:"772821bab106c95accaa215e05164371760f2ac0",description:this.description,deselectDisabled:this.deselectDisabled,disabled:this.disabled,label:this.label,metadata:this.metadata,nonInteractive:this.nonInteractive,onCalciteListItemChange:this.handleSelectChange,ref:this.getPickListRef,removable:this.removable,selected:this.selected,value:this.value},this.renderActionsStart(),this.renderActionsEnd())))}get el(){return o(this)}};te.style=":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{margin-block-end:1px;box-sizing:border-box;display:flex;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2);--tw-shadow:0 1px 0 var(--calcite-color-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition:background-color var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing)}:host *{box-sizing:border-box}calcite-pick-list-item{position:relative;margin:0px;flex-grow:1;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([active]),:host([selected]){--tw-shadow:0 0 0 1px var(--calcite-color-brand);--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.handle{display:flex;cursor:move;align-items:center;justify-content:center;border-style:none;background-color:transparent;padding-block:0px;padding-inline:0.25rem;color:var(--calcite-color-border-input);outline-color:transparent}.handle:hover{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}.handle:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.handle--activated{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}.handle calcite-icon{color:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}";const ee=class{constructor(e){t(this,e),this.hasChanges=!1,this.hasErrors=!1,this.instanceid="",this.value=""}get el(){return o(this)}componentDidLoad(){const t=document.getElementById(`${this.instanceid}-container`);if(t){this._editor=monaco.editor.create(t,{value:this.value,language:"json",theme:"vs",minimap:{enabled:!1},automaticLayout:!0,scrollBeyondLastLine:!1}),this._currentModel=this._editor.getModel(),this._contentChanged=this._currentModel.onDidChangeContent(this._onEditorChange.bind(this));const e=monaco.editor.setModelMarkers,i=this;monaco.editor.setModelMarkers=function(t,a,o){t.id===i._currentModel.id&&(i._flagEditorHasErrors(o.length>0),i.hasErrors||(i._flagEditorHasChanges(i._currentModel?.canUndo()),i._currentModel?.canUndo()&&i._flagEditorContentChanged()),document.getElementById(`${i.instanceid}-errorFlag`).style.visibility=i.hasErrors?"visible":"hidden"),e.call(monaco.editor,t,a,o)},this._diffEditor=monaco.editor.createDiffEditor(document.getElementById(`${this.instanceid}-diff-container`),{automaticLayout:!0}),this._setDiffModel(),this._loaded=!0,this._toggleUndoRedo()}}async componentWillLoad(){this._initValueObserver(),await this._getTranslations()}render(){return i(s,{key:"2932135e373b0e5cf5bc5347c7b7960a60e81df1"},i("div",{key:"98579089177f92e2a3600dd64d738e4ec8ff8ae2",id:`${this.instanceid}-editor-container`,class:"editor-container padding-right"},i("div",{key:"971de116ef81850ecc2fcbff9d9f30e36c5928cf",class:"editor-controls"},i("div",{key:"75e505043095753dc414dad671c6eec4e27a47c1",class:"editor-buttons"},i("calcite-icon",{key:"af8645c74758aff0f310089a5c97a504a52a2026",id:`${this.instanceid}-errorFlag`,icon:"exclamation-mark-triangle",title:this._translations.errorFlag,scale:"s",class:"edit-error-flag"}),i("calcite-button",{key:"6d736a2f3aa9c3e0efd5c1919253fc02e3dec0a2",id:`${this.instanceid}-undo`,color:"blue",appearance:"solid",title:this._translations.undo,onClick:()=>this._undo(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"20fdf41124e256f139c7be3bd6f0e42823706cec",icon:"undo",scale:"s"})),i("calcite-button",{key:"7ca8a3bf590e33d6596af51e0b1f25019e9f806a",id:`${this.instanceid}-redo`,color:"blue",appearance:"solid",title:this._translations.redo,onClick:()=>this._redo(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"3e248322dd1381da5ec609e92953d8ea94ebad29",icon:"redo",scale:"s"})),i("calcite-button",{key:"2e147af3b73714e40347f432d3d440d0e9bd2ae9",id:`${this.instanceid}-diff`,color:"blue",appearance:"solid",title:this._translations.diff,onClick:()=>this._toggleEditor(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"dc3fea2e4743511af20347412c6093163f0b674c",icon:"compare",scale:"s"})),i("calcite-button",{key:"f983c7535f4a36a693b186a716ad6750e33f679a",id:`${this.instanceid}-search`,appearance:"outline",color:"blue",title:this._translations.search,onClick:()=>this._search(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"315076f61831b8294e0c9b2c2e5fb174d9163bce",icon:"search",scale:"s"})),i("calcite-button",{key:"a9223c5ad5eeed5a932ce106d3f3db90008933b9",id:`${this.instanceid}-reset`,color:"blue",appearance:"solid",disabled:!0,title:this._translations.cancelEdits,onClick:()=>this._reset(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"0cd3c9c634da8fe710890b533bc046c536af0bb2",icon:"reset",scale:"s"})))),i("div",{key:"73fc19136eb3aa3148c859ba617cd9904ee92f98",class:"edit-parent"},i("div",{key:"57435dbeeef39ddaeb97256512acca6360e1a7ec",id:`${this.instanceid}-container`,class:"json-edit-container"}),i("div",{key:"152e58aeb94ae22d6d11e4332496cb2e637ebbca",id:`${this.instanceid}-diff-container`,class:"json-edit-container display-none"}))))}_cancelEditsBtnHandler;_contentChanged;_currentModel;_diffEditor;_editor;_loaded=!1;_searchBtnHandler;_translations;_useDiffEditor=!1;_valueObserver;async getEditorContents(){return new Promise(((t,e)=>{try{t(this._currentModel.getValue())}catch(t){e(t)}}))}async prepareForDeletion(){this._searchBtnHandler?.removeEventListener("click",this._search),this._cancelEditsBtnHandler?.removeEventListener("click",this._reset),this._valueObserver?.disconnect(),this._contentChanged?.dispose(),this._editor?.dispose()}async replaceCurrentSelection(t){const e=this._editor.getSelection();this._editor.executeEdits("",[{range:e,text:t}])}async reset(){return new Promise(((t,e)=>{try{this._reset(),t({success:!0})}catch(t){e(t)}}))}_disableButton(t){document.getElementById(t)?.setAttribute("disabled","")}_enableButton(t){document.getElementById(t)?.removeAttribute("disabled")}_flagEditorContentChanged(){window.dispatchEvent(new CustomEvent("solutionEditorContentChanged",{detail:{id:this.instanceid,contents:this._currentModel.getValue()},bubbles:!0,cancelable:!1,composed:!0}))}_flagEditorHasChanges(t){this.hasChanges!==t&&(window.dispatchEvent(new CustomEvent("solutionEditorHasChanges",{detail:t,bubbles:!0,cancelable:!1,composed:!0})),this.hasChanges=t)}_flagEditorHasErrors(t){this.hasErrors!==t&&(window.dispatchEvent(new CustomEvent("solutionEditorHasErrors",{detail:t,bubbles:!0,cancelable:!1,composed:!0})),this.hasErrors=t)}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}_initValueObserver(){this._valueObserver=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"value"===t.attributeName&&t.target[t.attributeName]!==t.oldValue&&this._loaded&&this._currentModel.setValue(this.value)}))})),this._valueObserver.observe(this.el,{attributes:!0,attributeOldValue:!0})}_onEditorChange(){this._toggleUndoRedo()}_redo(){this._currentModel?.canRedo()&&(this._currentModel.redo(),this._toggleUndoRedo())}_reset(){this._currentModel.setValue(this.value),this._toggleUndoRedo()}_search(){this._editor.trigger("toggleFind","actions.find")}_setDiffModel(){this._diffEditor&&this._diffEditor.setModel({original:monaco.editor.createModel(this.value,"json"),modified:this._editor.getModel()})}_toggleEditor(){this._useDiffEditor=!this._useDiffEditor;let t=document.getElementById(`${this.instanceid}-diff-container`),e=document.getElementById(`${this.instanceid}-container`);this._useDiffEditor?(this._setDiffModel(),t.classList.remove("display-none"),e.classList.add("display-none")):(t.classList.add("display-none"),e.classList.remove("display-none"))}_toggleUndoRedo(){this._currentModel?.canUndo()?this._enableButton(`${this.instanceid}-undo`):this._disableButton(`${this.instanceid}-undo`),this._currentModel?.canRedo()?this._enableButton(`${this.instanceid}-redo`):this._disableButton(`${this.instanceid}-redo`),this._currentModel?.canUndo()||this._currentModel?.canRedo()?this._enableButton(`${this.instanceid}-reset`):this._disableButton(`${this.instanceid}-reset`)}_undo(){this._currentModel?.canUndo()&&(this._currentModel.undo(),this._toggleUndoRedo())}static get assetsDirs(){return["assets"]}};ee.style=":host{display:block}.editor-container{position:relative;height:100%}.editor-controls{height:2.75rem;padding-right:0.5rem;background-color:#F4F4F4}.editor-buttons{float:right}html[dir=rtl] .editor-buttons{float:left}.edit-error-flag{padding-top:0.5rem;color:red;visibility:hidden}.edit-button{padding-inline-start:0.5rem}.editor-text{width:100%;overflow-y:auto;background-color:#FFFFFF}.edit-width{width:100%}.edit-parent{box-sizing:border-box;width:100%;height:calc(100% - 46px)}.json-edit-container{height:100%;width:100%;border:1px #808080 solid}.padding-right{padding-inline-end:0.125rem}.btn{margin-bottom:1rem;display:flex;align-content:center;height:25px;width:120px}.select-ctrl{margin-bottom:1rem}.all-edits{margin-top:4rem}.floating-title{font-size:2rem;z-index:100;position:absolute;left:0.5rem;pointer-events:none}.floating-title-button{pointer-events:auto}.json-editor-position1{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:100%;overflow:hidden;padding:0px;max-height:100% !important}.json-editor-position2a{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:50%;overflow:hidden;padding:0px;max-height:100% !important}.json-editor-position2b{position:absolute;right:0px;top:0px;margin:0px;height:100%;width:50%;overflow:hidden;padding:0px;max-height:100% !important}";const ie=class{constructor(e){t(this,e),this.itemId="",this.itemDetails={accessInformation:"",description:"",licenseInfo:"",snippet:"",tags:[],title:""},this.itemEdit=void 0,this._translations=void 0,this.thumbnail=void 0,this.thumbnailContainer=void 0}get el(){return o(this)}async componentWillLoad(){return this._getTranslations()}async componentWillRender(){return this.itemEdit=vt.getItemInfo(this.itemId),this.itemEdit&&(this.itemDetails=this.itemEdit.item,this.itemType=this.itemDetails.type),Promise.resolve()}render(){return i(s,{key:"658d13bff98393b9c3f36d7ebce990551d80d9c7"},i("div",{key:"285e6ac2a525212ca5dc381812995cce1561d51c",class:"parent-container"},i("div",{key:"9209a77477f51f45a83aff4feeb409932b6c36cf",class:"inputBottomSeparation"},i("calcite-input",{key:"ca8669910c7b718c6c5e1e0cfa2f96c8760ad22e",id:"item-title",value:this.itemDetails.title})),i("div",{key:"0816438c6db5c93b81890f5a2a7816f676bb096f",class:"inputBottomSeparation"},i("input",{key:"149c8b1f9b34dfe2a0723a86b9ca4653f98d3d4f",accept:".jpg,.gif,.png,image/jpg,image/gif,image/png",class:"display-none",onChange:t=>this._updateThumbnail(t),ref:t=>this.browseForThumbnail=t,type:"file"}),i("button",{key:"c8b8d3d08a72d563349d5e6eebf1cacc6329834e",class:"font-size--3 btn-link inline-block trailer-quarter",onClick:()=>this._getThumbnail()},i("svg",{key:"9d699466d0e963c3c60be848792351dc9817e400",class:"icon-inline icon-inline--on-left",height:"16",viewBox:"0 0 16 16",width:"16"},i("path",{key:"8c74ec6c185dc730f1283a5899c378ae552831e1",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),i("div",{key:"4426295925509550d83c5974a8b691d4696b4b63",class:"flex"},i("div",{key:"abc4a93cb9d7f3d7e0e9a8e4f0e573a2761ba263",class:"img-container",ref:t=>this.thumbnailContainer=t},i("img",{key:"ff37875b0f7234038b45d4dc110d1db8610f76d8",class:"scale-down",height:"133",id:"item-thumbnail",ref:t=>this.thumbnail=t,width:"200"})),i("div",{key:"377149593a7b4e4d9914fefa85627de993d965df",class:"snippet-count-container"},i("calcite-input",{key:"b23923938627db11be6bb9c63e1710ab54f65539",id:"item-snippet",maxLength:250,type:"textarea",value:this.itemDetails.snippet}),i("label",{key:"66d01cc032dc370c11be61e1a852c5df63b97f2a",class:"font-size--3",id:"item-snippet-count",ref:t=>this.itemSnippetCount=t})))),i("calcite-label",{key:"c462d3a178e90da7da9ed649fc1e2e1d6e18ca28"},this._translations.description,i("label",{key:"ffdef106ec07bbac32e3ee81b3174611db8c4e07",id:"item-description-label"},i("calcite-input",{key:"72b4ac51c4f98ace79de4d1521debdc55ed796e9",id:"item-description",type:"textarea",value:this.itemDetails.description}))),i("calcite-label",{key:"aac5e579f54edb668fa445702282b754dcf2ed6c"},this._translations.tags,i("label",{key:"ed4581c14f2d3f1c8a2e1845550fcdeb26204a23",id:"item-tags-label"},i("calcite-input",{key:"d9c846a82898fa15db4c775e28eb5080ef7ed4d0",id:"item-tags",value:(this.itemDetails.tags&&Array.isArray(this.itemDetails.tags)?this.itemDetails.tags:[this.itemDetails.tags]).join(",")}))),"Group"!==this.itemType?i("calcite-label",null,this._translations.credits,i("label",{id:"item-credits-label"},i("calcite-input",{id:"item-credits",value:this.itemDetails.accessInformation}))):null,"Group"!==this.itemType?i("calcite-label",null,i("label",{id:"item-terms-label"},this._translations.termsOfUse,i("calcite-input",{id:"item-terms",type:"textarea",value:this.itemDetails.licenseInfo}))):null))}componentDidRender(){this._loadThumb()}browseForThumbnail;itemType;itemSnippetCount;inputReceivedHandler(t){switch(t.target.id){case"item-title":this.itemDetails.title=t.target.value,this._updateStore();break;case"item-snippet":t.target.value.length>250&&(t.target.value=t.target.value.substring(0,250)),this.itemDetails.snippet=t.target.value,this._updateLengthLabel(this.itemDetails.snippet),this._updateStore();break;case"item-description":this.itemDetails.description=t.target.value,this._updateStore();break;case"item-tags":this.itemDetails.tags=t.target.value,this._updateStore();break;case"item-credits":this.itemDetails.accessInformation=t.target.value,this._updateStore();break;case"item-terms":this.itemDetails.licenseInfo=t.target.value,this._updateStore()}}_getThumbnail(){this.browseForThumbnail.click()}_loadThumb(){this.thumbnail&&this.itemEdit?.thumbnail?(this.thumbnail.src=URL.createObjectURL(this.itemEdit.thumbnail),this.thumbnailContainer.classList.remove("empty-box"),this.thumbnail.classList.remove("display-none")):(this.thumbnailContainer.classList.add("empty-box"),this.thumbnail.classList.add("display-none"))}_updateLengthLabel(t){this.itemSnippetCount.innerText=this._translations.snippetCountPattern.replace("{{n}}",t.length.toString())}_updateStore(){this.itemEdit=vt.getItemInfo(this.itemId),this.itemEdit.item=this.itemDetails,vt.setItemInfo(this.itemEdit)}_updateThumbnail(t){const e=t.target.files;e&&e[0]&&this.thumbnail&&(this.thumbnail.src=URL.createObjectURL(e[0]),this.itemEdit=vt.getItemInfo(this.itemId),this.itemEdit.thumbnail=e[0],vt.replaceItemThumbnail(this.itemEdit))}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}};ie.style=".inputBottomSeparation{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem}.icon-inline--on-left,.icon-inline--on-right{display:inline;vertical-align:middle;margin-inline-end:0.375rem;fill:#0079c1}.scale-down{-o-object-fit:scale-down;object-fit:scale-down}.img-container{display:inline;margin-inline-end:1rem;max-width:363px}.summary-count-container{display:inline;flex-grow:1;margin-inline-start:0.75rem}.snippet-count-container{width:calc(100vw - 363px)}.parent-container{max-width:100%;padding:1rem}label{position:relative;margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem;display:block;min-width:-moz-min-content;min-width:min-content}";const ae=class{constructor(e){t(this,e),this.groupId="",this._translations=void 0,this.sharing=[]}get el(){return o(this)}itemIdWatchHandler(){const t=vt.getItemInfo(this.groupId);this.sharing=t.groupDetails}async componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"b79c768f4ba29331fd70ffc8dd55ae0fa77b0aa8"},i("div",{key:"9b0a681fc53110cebda0246eb19157631dc8bac8",class:"container-border"},i("calcite-label",{key:"68f56772d51805babdec5b51a9845ec4d54a6bb8"},this._translations.groupInfo),this._renderItems(this.sharing)))}async getShareInfo(){return this.sharing}_renderItems(t){return t&&t.length>0?t.map((t=>i("calcite-label",{layout:"inline"},i("calcite-switch",{checked:t.shareItem,id:t.id,name:"setting",onCalciteSwitchChange:t=>this._updateItem(t),scale:"m",value:"enabled"}),i("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),i("span",{class:"icon-text",title:t.title},t.title)))):null}_updateItem(t){const e=t.target.id;this.sharing=this.sharing.map((i=>{if(i.id===e){i.shareItem=t.target.checked;const a=vt.getItemInfo(e);if(i.shareItem)a.groups?a.groups.indexOf(this.groupId)<0&&a.groups.push(this.groupId):a.groups=[this.groupId];else if(a.groups){const t=a.groups.indexOf(this.groupId);t>-1&&a.groups.splice(t,1)}vt.setItemInfo(a)}return i}))}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{groupId:["itemIdWatchHandler"]}}};ae.style=":host{display:block}.container-border{padding:1rem}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const oe=class{constructor(i){t(this,i),this.organizationVariableSelected=e(this,"organizationVariableSelected",7),this.value="",this._organizationVariables=[],this._translations=void 0}get el(){return o(this)}valueWatchHandler(){this._organizationVariables=JSON.parse(this.value)}async componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"f576bc6c4e1ef9c2c0879896f3b364584c9f4597"},i("div",{key:"22d459e61c3ead17b9ef3ce5a2c6baeddc79c80e"},i("h4",{key:"8e65f908893fbeda320f3910de3e48776a13816a",class:"org-var-header"},this._translations.orgVariables)),i("div",{key:"02c6a5f124a4b729dca668afe1693e0d510b11c5",class:"container-border"},i("calcite-tree",{key:"8b3fc867daa01b80908f9099923099211f807953",id:"variable-label"},this._renderHierarchy(this._organizationVariables))))}organizationVariableSelected;_renderHierarchy(t){return t.map((t=>i("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)))}_treeItemSelected(t,e){this.organizationVariableSelected.emit({itemId:t,value:e})}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{value:["valueWatchHandler"]}}};oe.style=":host{display:block}.container-border{overflow-y:auto}.org-var-header{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1rem}";const se=class{constructor(e){t(this,e),this.authentication=void 0,this.itemId="",this.resourceFilePaths=[],this.resources=[],this._translations=void 0}get el(){return o(this)}itemIdWatchHandler(){const t=vt.getItemInfo(this.itemId);this.resourceFilePaths=t.resourceFilePaths,this.resources=t.resources.map((t=>t.substring(t.lastIndexOf("/")+1)))}componentWillLoad(){return this._getTranslations()}render(){const t=this._hasValidResources();return i(s,{key:"5047514bc715a5a67ecacf629d303d81482c0b5e"},i("div",{key:"22a903832d45858fbec839fce90527671a457257",class:"resource-item"},i("div",{key:"fea759db7edf7ca84d353060ee6b59aa101bc61b",class:"margin-bottom-1"},i("calcite-button",{key:"c76c2d60a856896255554324ba0239ecde2d49eb",appearance:"solid",class:"resource-button",color:"blue",onClick:()=>this._addNewResource()},this._translations.addResource),i("calcite-button",{key:"4feb64a2b7cc3490c1e0f90ee6dd36a842a8ae0d",appearance:"solid",color:"blue",disabled:!t,onClick:()=>this._downloadAll()},this._translations.downloadAll)),i("div",{key:"76c64955841cdc671e1df9b3552fe62e67bfc7f5",class:"resources-container",style:{display:t?"inherit":"none"}},this._renderResourceList())))}_removedResources={};_renderResourceList(){return i("calcite-value-list",{multiple:!0},this.resourceFilePaths.reduce(((t,e)=>(e.type!==wt.Thumbnail&&t.push(this._renderResource(e)),t)),[]))}_renderResource(t){const e=t.updateType===gt.Remove;return i("calcite-value-list-item",{class:e?"disabled":"",label:t.folder?t.folder+"/"+t.filename:t.filename,nonInteractive:!0,value:t.url},i("calcite-action-group",{"expand-disabled":"true",layout:"horizontal",slot:"actions-end"},i("calcite-action",{disabled:e,icon:"download",label:this._translations.download,onClick:()=>this._download(t.url,t.filename),scale:"m",text:this._translations.download,title:this._translations.download}),i("calcite-action",{disabled:e,icon:"upload-to",label:this._translations.update,onClick:()=>this._upload(t),scale:"m",text:this._translations.update,title:this._translations.update}),i("calcite-action",{disabled:e,icon:"trash",label:this._translations.delete,onClick:()=>this._delete(t),scale:"m",text:this._translations.delete,title:this._translations.delete}),e?i("calcite-action",{icon:"reset",label:this._translations.reset,onClick:()=>this._reset(t.filename),scale:"m",text:this._translations.reset,title:this._translations.reset}):i("div",{class:"display-none"})))}_delete(t){t.updateType=gt.Remove,this.resourceFilePaths=[...this.resourceFilePaths],this._updateStore()}_reset(t){this.resourceFilePaths=this.resources.some((e=>e===t))?this.resourceFilePaths.map((e=>(e.filename===t&&(e.updateType=gt.None),e))):this.resourceFilePaths.map((e=>(e.filename===t&&(e.updateType=gt.Add),e))),this._updateStore()}_downloadAll(){this.resourceFilePaths.forEach((t=>{this._download(t.url,t.filename)}))}_download(t,e){t.startsWith("blob")?this.downloadFile(t,e):this.fetchAndDownload(`${t}?token=${this.authentication.token}`,e)}downloadFile(t,e){const i=document.createElement("a");i.href=t,i.download=e,i.target="_blank",i.click()}_hasValidResources(){return this.resourceFilePaths.some((t=>t.url.indexOf("_info_thumbnail")<0))}async fetchAndDownload(t,e){const i=await fetch(t),a=await i.blob(),o=URL.createObjectURL(a);this.downloadFile(o,e)}_upload(t){const e=document.createElement("input");e.classList.add("display-none"),e.onchange=this._updateResource.bind(this,t),e.type="file",e.click()}_addNewResource(){const t=document.createElement("input");t.classList.add("display-none"),t.onchange=this._add.bind(this),t.type="file",t.click()}_updateResource(t,e){const i=e.target.files;i&&i[0]&&(t.blob=i[0],t.updateType=gt.Update,this._updateStore())}_add(t){const e=t.target.files;if(e&&e[0]){const t=URL.createObjectURL(e[0]),i=e[0].name;this.resourceFilePaths.some((e=>e.filename===i&&e.url===t))||(this.resourceFilePaths=[...this.resourceFilePaths,{url:t,type:wt.Data,folder:void 0,filename:i,blob:e[0],updateType:gt.Add}],this._updateStore())}}_updateStore(){const t=vt.getItemInfo(this.itemId);t.resourceFilePaths=this.resourceFilePaths,vt.setItemInfo(t)}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};se.style=":host{display:block}.resource-item{padding:1rem}.resource-button{margin-inline-end:1rem}.resource-progress{padding-top:1rem}.resources-container{border:1px #808080 solid}.margin-bottom-1{margin-bottom:1rem}";const ne=class{get el(){return o(this)}itemIdWatchHandler(){this._initializing=!0,this.value=JSON.stringify("data"===this.instanceid?vt.getItemInfo(this.itemId).data:vt.getItemInfo(this.itemId).properties,null,2)}constructor(e){t(this,e),this.instanceid="",this.itemId="",this.organizationVariables="",this.solutionVariables="",this.varsOpen=!0,this._translations=void 0,this.value="",window.addEventListener("solutionEditorContentChanged",(t=>{if(this.itemId){const{id:e,contents:i}=t.detail,[a,o]=e.split("|");if(a==this.itemId&&o===this.instanceid){if(!this._initializing&&i.length>0){const t=vt.getItemInfo(a);"data"===o?t.data=JSON.parse(i):t.properties=JSON.parse(i),vt.setItemInfo(t)}this._initializing=!1}}}))}componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"0f8453b6c096fbac6e90f3e8f7efff3041201ca0"},i("div",{key:"e0638b863e6d445c3baf608bd3e52904a78bf670",class:"solution-data-container"},i("calcite-shell",{key:"fa3b1e80f768e489133c700f4e729ad2ebde88ef",class:"light var-container",dir:"ltr"},i("calcite-panel",{key:"6fe1596637fce085f18d3a98362088320a72d248",class:"json-editor"},i("div",{key:"edcb77ca9a7dcc6c6c4018fd4571c690cd82f7b1",class:"solution-data-child-container calcite-match-height"},i("json-editor",{key:"ea3a8b5d1b7ad20a60456daf107af678a68027a1",class:"solution-data-editor-container",instanceid:this.itemId+"|"+this.instanceid,value:this.value}))),i("calcite-shell-panel",{key:"34b4c47647738d5a07eac01b4162d7a599c2cc16","height-scale":"l",position:"end",slot:"contextual-panel","width-scale":"xs"},i("div",{key:"e1609bd8e25b2af8989e4018ac4facaffe830897",class:this.varsOpen?"solution-data-child-container":"solution-data-child-container-collapsed"},i("calcite-button",{key:"87576dba22c378c609710215954d6ea8e016c06c",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}),i("div",{key:"279c775502f8cdbb5c01971b7c763cf5bd88de28",class:this.varsOpen?"org-vars":"org-vars display-none",id:"orgVars"},i("solution-organization-variables",{key:"cd357642cb12ec25fe90ca011c90b80f37889d80",value:this.organizationVariables})),i("div",{key:"1adf2eb87308f4b85bc1fec11c80682b5e9dc131",class:this.varsOpen?"sol-vars":"sol-vars display-none",id:"solVars"},i("solution-variables",{key:"a836a844cbcf6e9bbbae9e9d2eadead6570ce8f2",value:this.solutionVariables})))))))}_initializing=!1;_toggleVars(){this.varsOpen=!this.varsOpen}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};ne.style=":host{display:flexbox}.solution-data-container{position:absolute;height:-moz-available;height:calc(100% - 48px);height:-webkit-fill-available;height:stretch;width:-moz-available;width:100%;width:-webkit-fill-available;width:stretch}.solution-data-child-container{display:flex;height:100%;width:100%;flex-direction:column;overflow-y:auto}.solution-data-editor-container{height:100%}.solution-data-child-container-collapsed{display:flex;height:100%;flex-direction:column;overflow:auto;width:50px}.inputBottomSeparation{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem}.json-editor{margin:1rem;width:auto;width:-webkit-fill-available -moz-available}.collapse-btn{padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:0px}.org-vars{padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:0px}.sol-vars{padding-top:0px;padding-bottom:0px;padding-left:1rem;padding-right:1rem;min-height:45%}.padding-1{padding:1rem}.light{background-color:#F4F4F4}";const le=class{constructor(i){t(this,i),this.solutionVariableSelected=e(this,"solutionVariableSelected",7),this.value="",this._solutionVariables=[],this._translations=void 0}get el(){return o(this)}valueWatchHandler(){this._solutionVariables=JSON.parse(this.value)}componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"bb418465a19b2fa0a8f5e216ba853d7427a78fdf"},i("div",{key:"f628616eb2ef38cd657052666e53dfe72cb3f221"},i("h4",{key:"97348278cfa8ecd968deb135c1fc9fe44971e7d2",class:"org-var-header"},this._translations.solVariables)),i("div",{key:"91d5822a5358f95d37654d8a9eda66c3fe8f3318",class:"container-border"},i("calcite-tree",{key:"7982f1e945f1d939ae52867764a438d67ed6a154",id:"variable-label"},this._renderHierarchy(this._solutionVariables))))}solutionVariableSelected;_renderHierarchy(t){return t.map((t=>t.dependencies&&t.dependencies.length>0?i("calcite-tree-item",{onClick:t=>this._toggleExpand(t)},i("solution-item-icon",{type:t.type}),i("span",{class:"icon-text",title:t.title},t.title),i("calcite-tree",{slot:"children"},this._renderHierarchy(t.dependencies))):i("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)))}_treeItemSelected(t,e){this.solutionVariableSelected.emit({itemId:t,value:e})}_toggleExpand(t){const e=t?.target?.closest("calcite-tree-item");e&&(e.expanded=!e.expanded)}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{value:["valueWatchHandler"]}}};le.style=":host{display:block}.container-border{overflow-y:hidden}.org-var-header{margin-top:1rem;margin-bottom:1rem;margin-left:0px;margin-right:0px}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";export{_t as calcite_shell_panel,Tt as calcite_tab,Ft as calcite_tab_nav,qt as calcite_tab_title,Gt as calcite_tabs,Yt as calcite_value_list,te as calcite_value_list_item,ee as json_editor,ie as solution_item_details,ae as solution_item_sharing,oe as solution_organization_variables,se as solution_resource_item,ne as solution_template_data,le as solution_variables}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as e,c as t,g as i,h as a,H as s}from"./p-6eb37ed2.js";import{s as c}from"./p-36e59391.js";import{g as l}from"./p-2058b5d9.js";import{n}from"./p-5e71e72a.js";import{C as r,g as o}from"./p-80cb7c73.js";import"./p-720a12c0.js";import"./p-d0d020a5.js";import"./p-d4056c1c.js";import"./p-7530a02f.js";import"./p-9bb44f57.js";import"./p-0a24ad5f.js";const h=class{constructor(i){e(this,i),this.solutionItemSelected=t(this,"solutionItemSelected",7),this.selectedItemId=void 0,this.templateHierarchy=[]}get el(){return i(this)}valueWatchHandler(e,t){e&&e!==t&&Array.isArray(e)&&e.length>0&&this._treeItemSelected(e[0].id)}componentWillLoad(){this.valueWatchHandler(this.templateHierarchy,[])}render(){return a(s,{key:"
|
6
|
+
import{r as e,c as t,g as i,h as a,H as s}from"./p-6eb37ed2.js";import{s as c}from"./p-36e59391.js";import{g as l}from"./p-2058b5d9.js";import{n}from"./p-5e71e72a.js";import{C as r,g as o}from"./p-80cb7c73.js";import"./p-720a12c0.js";import"./p-d0d020a5.js";import"./p-d4056c1c.js";import"./p-7530a02f.js";import"./p-9bb44f57.js";import"./p-0a24ad5f.js";const h=class{constructor(i){e(this,i),this.solutionItemSelected=t(this,"solutionItemSelected",7),this.selectedItemId=void 0,this.templateHierarchy=[]}get el(){return i(this)}valueWatchHandler(e,t){e&&e!==t&&Array.isArray(e)&&e.length>0&&this._treeItemSelected(e[0].id)}componentWillLoad(){this.valueWatchHandler(this.templateHierarchy,[])}render(){return a(s,{key:"4d54202857a91624ad35b9e1c3f75f63d8c5a8da"},a("calcite-tree",{key:"4c9401d3d8791c5f082e05942d0f9e70ccb8f20e"},this.renderHierarchy(this.templateHierarchy)))}renderHierarchy(e){return e.map((e=>{const t=this.selectedItemId&&this.selectedItemId===e.id;return e.dependencies&&e.dependencies.length>0?a("calcite-tree-item",{onClick:t=>this._treeItemSelected(e.id,t),selected:t},a("solution-item-icon",{type:e.type,typeKeywords:e.typeKeywords}),a("span",{class:"icon-text",title:e.title},e.title),a("calcite-tree",{slot:"children"},this.renderHierarchy(e.dependencies))):a("calcite-tree-item",{onClick:t=>this._treeItemSelected(e.id,t),selected:t},a("solution-item-icon",{type:e.type,typeKeywords:e.typeKeywords}),a("span",{class:"icon-text",title:e.title},e.title))}))}solutionItemSelected;_treeItemSelected(e,t){const i=t?.target?.closest("calcite-tree-item");i&&(i.expanded=!i?.expanded),this.selectedItemId=e,this.solutionItemSelected.emit(e)}static get assetsDirs(){return["item-type-icons"]}static get watchers(){return{templateHierarchy:["valueWatchHandler"]}}};h.style=".icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const d=class{constructor(t){e(this,t),this.authentication=void 0,this.itemId="",this.solutionVariables="",this.organizationVariables="",this.itemType=void 0,this._translations=void 0}get el(){return i(this)}itemIdWatchHandler(){const e=c.getItemInfo(this.itemId);this.itemType=e.type}async componentWillLoad(){return this._getTranslations()}render(){return a(s,{key:"859f90c3755a9fca4752d9ef49118e5dd537da89"},a("div",{key:"9cf45be1e7cdebc8445ecd086c3392458fef7653",class:"configuration-container"},a("div",{key:"64753e8039ef3378ca9b41bb2e6208ac374a2cf2",class:"configuration"},this._showGroupTabs("Group"===this.itemType),this._showItemTabs("Group"!==this.itemType))))}_showGroupTabs(e){return a("calcite-tabs",{class:"config-tabs",style:{display:e?"inherit":"none"}},a("calcite-tab-nav",{slot:"tab-nav"},a("calcite-tab-title",null,this._translations.groupDetailsTab),a("calcite-tab-title",null,this._translations.sharingTab)),a("calcite-tab",{class:"config-tab",id:"group-tab",selected:!0},a("solution-item-details",{"item-id":this.itemId})),a("calcite-tab",{class:"config-tab",id:"share-tab"},a("solution-item-sharing",{"group-id":this.itemId})))}_showItemTabs(e){return a("calcite-tabs",{class:"config-tabs",style:{display:e?"inherit":"none"}},a("calcite-tab-nav",{slot:"tab-nav"},a("calcite-tab-title",null,this._translations.itemDetailsTab),a("calcite-tab-title",null,this._translations.dataTab),a("calcite-tab-title",null,this._translations.propertiesTab),a("calcite-tab-title",null,this._translations.resourcesTab)),a("calcite-tab",{class:"config-tab",selected:!0},a("solution-item-details",{"item-id":this.itemId})),a("calcite-tab",{class:"config-tab",id:"data-tab"},a("solution-template-data",{instanceid:"data","item-id":this.itemId,"organization-variables":this.organizationVariables,"solution-variables":this.solutionVariables})),a("calcite-tab",{class:"config-tab",id:"props-tab"},a("solution-template-data",{instanceid:"properties","item-id":this.itemId,"organization-variables":this.organizationVariables,"solution-variables":this.solutionVariables})),a("calcite-tab",{class:"config-tab",id:"resources-tab"},a("solution-resource-item",{authentication:this.authentication,class:"solutions-resource-container","item-id":this.itemId})))}async _getTranslations(){const e=await l(this.el);this._translations=e[0]}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};d.style=".configuration-container{position:relative;height:100%;width:100%}.configuration{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:flex;padding:0.5rem;border:1px #808080 solid}.config-tabs{width:100%}.config-tab{width:100%;overflow-y:auto;height:inherit}";const b="3857",f=class{constructor(i){e(this,i),this.featureServiceSpatialReferenceChange=t(this,"featureServiceSpatialReferenceChange",7),this.enableDefaultSpatialReferenceChange=t(this,"enableDefaultSpatialReferenceChange",7),this.enabledSpatialReferenceChange=t(this,"enabledSpatialReferenceChange",7),this.enabled=!1,this.enableDefault=!1,this.featureServices=[],this._translations=void 0}get el(){return i(this)}enabledChanged(){this._handleSpatialRefParamChange()}enableDefaultChanged(){this._handleDefaultSpatialRefParamChange()}componentWillLoad(){return this._updateUIFromStore(),this._getTranslations()}render(){return this._updateUIFromStore(),a(s,{key:"6fe5caeb551c70db11066a785e5fdfc9c7054367"},a("label",{key:"243b8365253ffe65e78041a7baf72ba56311a7a6",class:"switch-label"},a("calcite-switch",{key:"63e7b111bb0373b1cca852573a25184acc1bdd98",checked:this.enabled,class:"spatial-ref-switch",onCalciteSwitchChange:e=>this.enabled=e.target.checked,scale:"m"}),this._translations.enableSpatialReference),a("br",{key:"5cafc5b9c37946be7ac0453a9815f55e3dbfbfbb"}),a("div",{key:"353597031dcef6f1ab9b4aeb1593167be6ea69e2",class:"spatial-ref-component",id:"spatialRefDefn"},this._renderFeatureServicesList(this.featureServices)),a("label",{key:"0bce6624d4658301d4e1d7b3e7b85da4deb0b328",class:"switch-label spatial-ref-component"},a("calcite-switch",{key:"9376c1fe7b563f155ee3006b3663ce0a526c2715",checked:this.enableDefault,class:"spatial-ref-switch",disabled:!this.enabled,onCalciteSwitchChange:e=>this.enableDefault=e.target.checked,scale:"m"}),this._translations.enableDefaultSpatialReference))}featureServiceSpatialReferenceChange;enableDefaultSpatialReferenceChange;enabledSpatialReferenceChange;solutionStoreHasChanges(){this.featureServices=c.getStoreInfo("featureServices")}async _testAccess(e,t,i,a){switch(e){case"_parameterizeWkid":return Promise.resolve(this._parameterizeWkid(t));case"_unparameterizeWkid":return Promise.resolve(this._unparameterizeWkid(t))}return Promise.resolve(null)}_clearFeatureServiceDefaults(e){n(this.el.getElementsByClassName("spatial-ref-item-switch")).forEach((e=>e.checked=!1)),e.forEach((e=>this._updateEnabledServices({detail:{switched:!1}},e)))}_handleDefaultSpatialRefParamChange(){this._updateStore(),this.enableDefaultSpatialReferenceChange.emit({defaultWkid:this.enableDefault?b:""})}_handleSpatialRefParamChange(){this.enabled||(this.enableDefault=!1,this._clearFeatureServiceDefaults(this.featureServices)),this._updateStore(),this.enabledSpatialReferenceChange.emit({enabled:this.enabled})}_parameterizeWkid(e){return e?e.toString().startsWith(r)?e:`${r}${e}${o}`:e}_renderFeatureServicesList(e){const t=c.getStoreInfo("spatialReferenceInfo"),i=e.filter((e=>Object.keys(t.services).some((t=>t===e.id))));return i.length>0?a("div",null,a("label",{class:"spatial-ref-item-title"},this._translations.featureServicesHeading),a("ul",{class:"spatial-ref-services-list"},i.map((e=>a("li",{class:"spatial-ref-services-list-item"},a("label",{class:"switch-label"},a("calcite-switch",{checked:t.services[e.id],class:"spatial-ref-item-switch",disabled:!this.enabled,onCalciteSwitchChange:t=>this._updateEnabledServices(t,e),scale:"m"}),e.name)))))):null}_updateEnabledServices(e,t){const i=c.getStoreInfo("spatialReferenceInfo");i.services[t.id]=void 0!==e.detail?.switched?e.detail.switched:void 0===e.target?.checked||e.target.checked,c.setStoreInfo("spatialReferenceInfo",i),this._updateStore(),this.featureServiceSpatialReferenceChange.emit(t)}_unparameterizeWkid(e){return e&&e.toString().startsWith(r)?e.substring(r.length,e.length-o.length):e}_updateFeatureServices(e){e.enabled||Object.keys(e.services).forEach((t=>{e.services[t]=!1})),this.featureServices.forEach((t=>{t.enabled=e.services[t.id],t.wkid=t.enabled?this._parameterizeWkid(t.wkid):this._unparameterizeWkid(t.wkid)})),c.setStoreInfo("featureServices",this.featureServices)}_updateStore(){const e=c.getStoreInfo("spatialReferenceInfo");e.enabled=this.enabled,this.enabled&&this.enableDefault?e.default=b:e.hasOwnProperty("default")&&delete e.default,c.setStoreInfo("spatialReferenceInfo",e),this._updateFeatureServices(e)}_updateUIFromStore(){const e=c.getStoreInfo("spatialReferenceInfo");this.enabled=e.enabled,this.enableDefault=!!e.default,this.featureServices=c.getStoreInfo("featureServices")}async _getTranslations(){const e=await l(this.el);this._translations=e[0]}static get watchers(){return{enabled:["enabledChanged"],enableDefault:["enableDefaultChanged"]}}};f.style=".spatial-ref-switch{margin-inline-end:0.5rem}.spatial-ref-component{margin-top:0.625rem;margin-inline-start:2.5rem}#spatialRefDefn .sc-calcite-label-h label.sc-calcite-label{margin:0px;background-color:#CBC3E3}.spatial-ref-item-title{margin-bottom:0.5rem;font-size:0.875rem;line-height:1.25rem}.spatial-ref-item-switch{margin-inline-end:0.5rem}.switch-label{font-size:0.875rem;line-height:1.25rem}.spatial-ref-services-list{margin-block-start:0.5em;margin-block-end:0.5em;list-style-type:none;padding-inline-start:2em}.spatial-ref-services-list-item{margin-top:0.25rem}";export{h as solution_contents,d as solution_item,f as solution_spatial_ref}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as e,g as a,h as s,H as t}from"./p-6eb37ed2.js";const o=class{constructor(a){e(this,a)}get el(){return a(this)}render(){return s(t,{key:"af917a1b598dbf7b9a47d6f8781e352dbf7a5b9b"},s("slot",{key:"d38030d3d64ca1da2bbea5edafcf496ec665c0c4"}))}};o.style=":host{display:block}";export{o as location_flow_item}
|