@esri/solutions-components 0.10.18 → 0.10.20
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/ExpandToggle-54ca6b91.js +115 -0
- package/dist/cjs/FloatingArrow-28f6bb91.js +48 -0
- package/dist/cjs/Heading-63b5c82c.js +25 -0
- package/dist/cjs/Validation-9bab9a69.js +20 -0
- package/dist/cjs/app-globals-d2085e28.js +67 -0
- package/dist/cjs/ar-ce94723b.js +106 -0
- package/dist/cjs/array-708fd433.js +17 -0
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +15 -7
- package/dist/cjs/bg-8ab5661c.js +84 -0
- package/dist/cjs/browser-2893460e.js +35 -0
- package/dist/cjs/bs-f15b7a3d.js +53 -0
- package/dist/cjs/buffer-tools_3.cjs.entry.js +5 -5
- package/dist/cjs/ca-321e7e4f.js +73 -0
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +9 -9
- package/dist/cjs/calcite-accordion.cjs.entry.js +3 -3
- package/dist/cjs/calcite-action-bar.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action-group.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js +15 -15
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action_2.cjs.entry.js +20 -20
- package/dist/cjs/calcite-alert_5.cjs.entry.js +55 -27
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block-section.cjs.entry.js +10 -10
- package/dist/cjs/calcite-block_5.cjs.entry.js +27 -27
- package/dist/cjs/calcite-button.cjs.entry.js +14 -14
- package/dist/cjs/calcite-card-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-card.cjs.entry.js +11 -11
- package/dist/cjs/calcite-carousel-item.cjs.entry.js +2 -2
- package/dist/cjs/calcite-carousel.cjs.entry.js +12 -12
- package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -11
- package/dist/cjs/calcite-chip-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-chip_2.cjs.entry.js +15 -15
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-color-picker.cjs.entry.js +12 -12
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +21 -21
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-dialog.cjs.entry.js +15 -15
- package/dist/cjs/calcite-dropdown_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
- package/dist/cjs/calcite-filter_5.cjs.entry.js +18 -18
- package/dist/cjs/calcite-flow_4.cjs.entry.js +49 -17
- package/dist/cjs/calcite-graph_2.cjs.entry.js +15 -15
- package/dist/cjs/calcite-icon_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-number.cjs.entry.js +16 -16
- package/dist/cjs/calcite-input-text.cjs.entry.js +16 -16
- package/dist/cjs/calcite-input-time-picker-d63d914b.js +1861 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +20 -20
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +23 -17
- package/dist/cjs/calcite-input_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +6 -6
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-menu-item.cjs.entry.js +10 -10
- package/dist/cjs/calcite-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
- package/dist/cjs/calcite-modal_3.cjs.entry.js +19 -19
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +4 -4
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +3 -3
- package/dist/cjs/calcite-navigation.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +14 -14
- package/dist/cjs/calcite-option_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-pagination.cjs.entry.js +12 -12
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +15 -15
- package/dist/cjs/calcite-pick-list.cjs.entry.js +13 -13
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -11
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -14
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-sheet.cjs.entry.js +10 -10
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +7 -7
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +40 -39
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +8 -8
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +11 -11
- package/dist/cjs/calcite-stepper.cjs.entry.js +10 -10
- package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-table-row.cjs.entry.js +8 -8
- package/dist/cjs/calcite-table.cjs.entry.js +10 -10
- package/dist/cjs/calcite-text-area.cjs.entry.js +16 -16
- package/dist/cjs/calcite-tile-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile-select.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
- package/dist/cjs/calcite-time-picker.cjs.entry.js +13 -13
- package/dist/cjs/calcite-tip-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +12 -12
- package/dist/cjs/calcite-tip.cjs.entry.js +13 -13
- package/dist/cjs/calcite-tooltip.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tree_3.cjs.entry.js +11 -11
- package/dist/cjs/card-manager_3.cjs.entry.js +8 -7
- package/dist/cjs/common-eee0c33f.js +38 -0
- package/dist/cjs/component-7f2bd646.js +33 -0
- package/dist/cjs/conditionalSlot-2d2541f4.js +54 -0
- package/dist/cjs/config-7c16c710.js +40 -0
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +71 -32
- package/dist/cjs/cs-66742e3a.js +149 -0
- package/dist/cjs/da-933e7031.js +69 -0
- package/dist/cjs/date-e01a99aa.js +264 -0
- package/dist/cjs/de-87706bda.js +93 -0
- package/dist/cjs/de-at-752f7be1.js +92 -0
- package/dist/cjs/de-ch-41dc3fef.js +92 -0
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/dom-3d3a8f25.js +1215 -0
- package/dist/cjs/downloadUtils-470f6a27.js +3164 -0
- package/dist/cjs/el-23b7e02b.js +68 -0
- package/dist/cjs/en-au-4f9fe083.js +68 -0
- package/dist/cjs/en-ca-afba9508.js +67 -0
- package/dist/cjs/en-gb-78a49c6a.js +71 -0
- package/dist/cjs/es-ea5faae0.js +68 -0
- package/dist/cjs/es-mx-47a5667a.js +67 -0
- package/dist/cjs/et-72505ea1.js +94 -0
- 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 +25 -12
- package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/fi-7b4ac88c.js +117 -0
- package/dist/cjs/filter-a9429bde.js +778 -0
- package/dist/cjs/floating-ui-9ff03df8.js +2373 -0
- package/dist/cjs/focusTrapComponent-86ebd41d.js +1018 -0
- package/dist/cjs/form-8132060d.js +381 -0
- package/dist/cjs/fr-8077e2e8.js +70 -0
- package/dist/cjs/fr-ch-04f427a0.js +68 -0
- package/dist/cjs/guid-42cda8c9.js +26 -0
- package/dist/cjs/he-93b37a58.js +107 -0
- package/dist/cjs/hi-cb320ba3.js +67 -0
- package/dist/cjs/hr-15e455d9.js +82 -0
- package/dist/cjs/hu-10c42dd5.js +90 -0
- package/dist/cjs/id-813844ef.js +68 -0
- package/dist/cjs/index.es-6387d8fb.js +11318 -0
- package/dist/cjs/input-3efc5a5e.js +60 -0
- package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-splash.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +9 -9
- package/dist/cjs/interactive-3b85d8df.js +167 -0
- package/dist/cjs/it-090375c5.js +68 -0
- package/dist/cjs/it-ch-6cc91215.js +68 -0
- package/dist/cjs/ja-e6697420.js +74 -0
- package/dist/cjs/key-82084ef6.js +19 -0
- package/dist/cjs/ko-522250be.js +74 -0
- package/dist/cjs/label-e7d3c371.js +186 -0
- package/dist/cjs/layout-manager.cjs.entry.js +1 -1
- package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/loadable-0e357195.js +98 -0
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/locale-351282c5.js +605 -0
- package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/logger-309df5d9.js +61 -0
- package/dist/cjs/lt-c2f9fd21.js +99 -0
- package/dist/cjs/lv-a1930986.js +68 -0
- package/dist/cjs/map-select-tools_3.cjs.entry.js +7 -6
- package/dist/cjs/math-14740338.js +60 -0
- package/dist/cjs/mk-deb11706.js +68 -0
- package/dist/cjs/nb-3859b631.js +69 -0
- package/dist/cjs/nl-6c2c838d.js +69 -0
- package/dist/cjs/observers-5f9f67ee.js +58 -0
- package/dist/cjs/openCloseComponent-b66f10f5.js +65 -0
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/pl-fcb7899e.js +116 -0
- package/dist/cjs/popupUtils-c38f840d.js +121 -0
- package/dist/cjs/pt-416d2cf8.js +69 -0
- package/dist/cjs/pt-br-bae3d576.js +67 -0
- package/dist/cjs/public-notification.cjs.entry.js +6 -5
- package/dist/cjs/purify-0805e9f8.js +1562 -0
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/resources-4446499e.js +39 -0
- package/dist/cjs/resources-4c3e1c50.js +68 -0
- package/dist/cjs/resources-6f65a67f.js +29 -0
- package/dist/cjs/resources-87ed79dd.js +23 -0
- package/dist/cjs/resources-9b04cd8c.js +23 -0
- package/dist/cjs/resources-a1ca0958.js +27 -0
- package/dist/cjs/resources-c5f09989.js +68 -0
- package/dist/cjs/resources-dbc687b5.js +26 -0
- package/dist/cjs/resources-f11e9bd6.js +39 -0
- package/dist/cjs/resources-f8785f51.js +21 -0
- package/dist/cjs/restHelpersGet-5c2245a3.js +991 -0
- package/dist/cjs/ro-bda94f37.js +68 -0
- package/dist/cjs/ru-7258ce51.js +128 -0
- package/dist/cjs/share-item.cjs.entry.js +1 -1
- package/dist/cjs/shared-list-render-d4b7311f.js +361 -0
- package/dist/cjs/sk-3a398547.js +150 -0
- package/dist/cjs/sl-bfb5a728.js +170 -0
- package/dist/cjs/solution-configuration.cjs.entry.js +31 -30
- package/dist/cjs/solution-contents_3.cjs.entry.js +8 -7
- package/dist/cjs/solution-resource-40e70253.js +145 -0
- package/dist/cjs/solution-store-2cd6a8c3.js +1354 -0
- package/dist/cjs/solutions-components.cjs.js +5 -5
- package/dist/cjs/sortableComponent-8684e273.js +2748 -0
- package/dist/cjs/spatial-ref.cjs.entry.js +4 -3
- package/dist/cjs/sr-58554054.js +103 -0
- package/dist/cjs/store-manager.cjs.entry.js +5 -4
- package/dist/cjs/sv-335a4402.js +73 -0
- package/dist/cjs/t9n-e41672d2.js +108 -0
- package/dist/cjs/templates-0b7f886f.js +408 -0
- package/dist/cjs/th-14ebad2e.js +67 -0
- package/dist/cjs/time-9a5e2f2d.js +301 -0
- package/dist/cjs/tr-36bcc20f.js +68 -0
- package/dist/cjs/uk-dcff92bd.js +106 -0
- package/dist/cjs/utils-29c97686.js +2304 -0
- package/dist/cjs/utils-edb4e372.js +78 -0
- package/dist/cjs/vi-284fec96.js +72 -0
- package/dist/cjs/zh-cn-1f4ab46b.js +96 -0
- package/dist/cjs/zh-hk-39cf1fdd.js +94 -0
- package/dist/cjs/zh-tw-e0b3117d.js +94 -0
- package/dist/collection/assets/t9n/card-manager/resources_ar.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_bg.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_bs.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_ca.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_cs.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_da.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_de.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_el.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_es.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_et.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_fi.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_fr.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_he.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_hr.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_hu.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_id.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_it.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_ja.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_ko.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_lt.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_lv.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_nb.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_nl.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_pl.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_pt-BR.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_pt-PT.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_ro.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_ru.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_sk.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_sl.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_sr.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_sv.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_th.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_tr.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_uk.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_vi.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_zh-CN.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_zh-HK.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_zh-TW.json +4 -1
- package/dist/collection/assets/t9n/create-feature/resources.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_en.json +5 -0
- package/dist/collection/assets/t9n/create-related-feature/resources.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_en.json +3 -0
- package/dist/collection/assets/t9n/crowdsource-reporter/resources.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_en.json +0 -1
- package/dist/collection/assets/t9n/layer-table/resources_ar.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_bg.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_bs.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_ca.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_cs.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_da.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_de.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_el.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_es.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_et.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_fi.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_fr.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_he.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_hr.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_hu.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_id.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_it.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_ja.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_ko.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_lt.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_lv.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_nb.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_nl.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_pl.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_pt-BR.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_pt-PT.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_ro.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_ru.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_sk.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_sl.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_sr.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_sv.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_th.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_tr.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_uk.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_vi.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_zh-CN.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_zh-HK.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_zh-TW.json +2 -1
- package/dist/collection/components/basemap-gallery/basemap-gallery.js +11 -1
- package/dist/collection/components/create-feature/create-feature.css +6 -1
- package/dist/collection/components/create-feature/create-feature.js +50 -3
- package/dist/collection/components/create-related-feature/create-related-feature.css +10 -0
- package/dist/collection/components/create-related-feature/create-related-feature.js +35 -3
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +1 -1
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +72 -31
- package/dist/collection/components/deduct-calculator/deduct-calculator.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.css +0 -8
- package/dist/collection/components/feature-details/feature-details.js +58 -10
- package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
- package/dist/collection/components/feature-list/feature-list.js +29 -10
- 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.js +3 -3
- 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.js +1 -1
- 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 +1 -1
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.js +1 -1
- 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 +2 -2
- 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-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/collection/demos/crowdsource-reporter.html +24 -25
- package/dist/collection/utils/pdfUtils.js +1 -1
- package/dist/collection/utils/pdfUtils.ts +1 -1
- package/dist/components/ExpandToggle.js +2 -2
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/Validation.js +1 -1
- package/dist/components/action-bar.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action-pad.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/alert.js +2 -2
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +2 -2
- package/dist/components/basemap-gallery2.js +10 -1
- package/dist/components/block.js +1 -1
- package/dist/components/browser.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-carousel-item.js +1 -1
- package/dist/components/calcite-carousel.js +1 -1
- package/dist/components/calcite-dialog.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input-time-zone.js +11 -4
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-menu-item.js +1 -1
- package/dist/components/calcite-meter.js +1 -1
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-sheet.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +2 -2
- package/dist/components/calcite-table-row.js +1 -1
- package/dist/components/calcite-table.js +1 -1
- package/dist/components/calcite-text-area.js +1 -1
- package/dist/components/calcite-tile-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item-group.js +1 -1
- package/dist/components/combobox-item.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/common.js +1 -0
- package/dist/components/component.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/config.js +1 -1
- package/dist/components/create-feature2.js +47 -5
- package/dist/components/create-related-feature2.js +32 -5
- package/dist/components/crowdsource-manager.js +1 -1
- package/dist/components/crowdsource-reporter.js +73 -33
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker.js +2 -2
- package/dist/components/date.js +1 -1
- package/dist/components/deduct-calculator2.js +1 -1
- package/dist/components/delete-button2.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/downloadUtils.js +28 -27
- package/dist/components/dropdown.js +1 -1
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/feature-comments.js +1 -1
- package/dist/components/feature-details2.js +31 -11
- package/dist/components/feature-form-flow-item.js +1 -1
- package/dist/components/feature-list2.js +20 -8
- package/dist/components/features-flow-item.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/flow-item.js +1 -1
- package/dist/components/flow.js +1 -1
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +2 -2
- package/dist/components/index.js +2 -2
- package/dist/components/index2.js +2117 -162
- package/dist/components/index3.js +162 -2117
- package/dist/components/info-card2.js +2 -2
- package/dist/components/input-date-picker.js +2 -2
- package/dist/components/input-message.js +1 -1
- package/dist/components/input-number.js +1 -1
- package/dist/components/input-text.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/input2.js +1 -1
- package/dist/components/instant-apps-header2.js +1 -1
- package/dist/components/instant-apps-splash.js +1 -1
- package/dist/components/instant-apps-time-filter.js +10 -10
- package/dist/components/interactive.js +1 -1
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/layer-table2.js +3 -3
- package/dist/components/layout-manager.js +1 -1
- package/dist/components/list-flow-item.js +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale2.js +2 -2
- package/dist/components/location-flow-item.js +1 -1
- package/dist/components/logger.js +1 -1
- package/dist/components/map-card2.js +1 -1
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +1 -1
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +1 -1
- 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/math.js +1 -1
- package/dist/components/modal.js +1 -1
- package/dist/components/navigation-user.js +1 -1
- package/dist/components/notice.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/pagination.js +2 -2
- package/dist/components/panel.js +2 -2
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +2 -2
- package/dist/components/public-notification.js +2 -2
- package/dist/components/publicNotificationStore.js +1 -1
- package/dist/components/purify.js +275 -429
- package/dist/components/radio-button.js +1 -1
- package/dist/components/refine-results-flow-item.js +1 -1
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/resources4.js +1 -1
- package/dist/components/resources5.js +1 -1
- package/dist/components/resources6.js +1 -1
- package/dist/components/restHelpersGet.js +16 -0
- package/dist/components/scrim.js +1 -1
- package/dist/components/segmented-control-item.js +1 -1
- package/dist/components/segmented-control.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/share-item.js +1 -1
- package/dist/components/shared-list-render.js +2 -2
- package/dist/components/shell-panel.js +1 -1
- package/dist/components/shell.js +2 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/solution-configuration.js +27 -26
- package/dist/components/solution-contents2.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 +2 -1
- package/dist/components/solution-resource.js +1 -1699
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-store.js +2 -1
- package/dist/components/solution-template-data2.js +1 -1
- package/dist/components/solution-variables2.js +1 -1
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/spatial-ref.js +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/store.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/table-cell.js +1 -1
- package/dist/components/table-header.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/templates.js +1 -0
- package/dist/components/time-picker.js +2 -2
- package/dist/components/tooltip.js +3 -3
- package/dist/components/tree-item.js +1 -1
- package/dist/components/tree.js +1 -1
- package/dist/components/utils.js +2 -2
- package/dist/components/utils2.js +2 -2
- package/dist/components/utils3.js +1 -1
- package/dist/components/utils4.js +1 -1
- package/dist/components/value-list-item.js +1 -1
- package/dist/components/value-list.js +2 -2
- package/dist/esm/ExpandToggle-b5147279.js +108 -0
- package/dist/esm/FloatingArrow-9a505e89.js +46 -0
- package/dist/esm/Heading-cae0b34c.js +22 -0
- package/dist/esm/Validation-bd0a53ec.js +18 -0
- package/dist/esm/app-globals-530c75ff.js +65 -0
- package/dist/esm/ar-e0e64e78.js +104 -0
- package/dist/esm/array-ddb2593b.js +15 -0
- package/dist/esm/basemap-gallery_7.entry.js +15 -7
- package/dist/esm/bg-d2d8dbe0.js +82 -0
- package/dist/esm/browser-a791205e.js +32 -0
- package/dist/esm/bs-d883901d.js +51 -0
- package/dist/esm/buffer-tools_3.entry.js +5 -5
- package/dist/esm/ca-064729ad.js +71 -0
- package/dist/esm/calcite-accordion-item.entry.js +9 -9
- package/dist/esm/calcite-accordion.entry.js +3 -3
- package/dist/esm/calcite-action-bar.entry.js +14 -14
- package/dist/esm/calcite-action-group.entry.js +12 -12
- package/dist/esm/calcite-action-menu_2.entry.js +15 -15
- package/dist/esm/calcite-action-pad_2.entry.js +14 -14
- package/dist/esm/calcite-action_2.entry.js +20 -20
- package/dist/esm/calcite-alert_5.entry.js +55 -27
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block-section.entry.js +10 -10
- package/dist/esm/calcite-block_5.entry.js +27 -27
- package/dist/esm/calcite-button.entry.js +14 -14
- package/dist/esm/calcite-card-group.entry.js +6 -6
- package/dist/esm/calcite-card.entry.js +11 -11
- package/dist/esm/calcite-carousel-item.entry.js +2 -2
- package/dist/esm/calcite-carousel.entry.js +12 -12
- package/dist/esm/calcite-checkbox.entry.js +11 -11
- package/dist/esm/calcite-chip-group.entry.js +6 -6
- package/dist/esm/calcite-chip_2.entry.js +15 -15
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +8 -8
- package/dist/esm/calcite-color-picker.entry.js +12 -12
- package/dist/esm/calcite-combobox-item-group.entry.js +6 -6
- package/dist/esm/calcite-combobox_3.entry.js +21 -21
- package/dist/esm/calcite-date-picker-day_3.entry.js +13 -13
- package/dist/esm/calcite-dialog.entry.js +15 -15
- package/dist/esm/calcite-dropdown_2.entry.js +13 -13
- package/dist/esm/calcite-fab.entry.js +7 -7
- package/dist/esm/calcite-filter_5.entry.js +18 -18
- package/dist/esm/calcite-flow_4.entry.js +50 -18
- package/dist/esm/calcite-graph_2.entry.js +15 -15
- package/dist/esm/calcite-icon_2.entry.js +10 -10
- package/dist/esm/calcite-inline-editable.entry.js +13 -13
- package/dist/esm/calcite-input-number.entry.js +16 -16
- package/dist/esm/calcite-input-text.entry.js +16 -16
- package/dist/esm/calcite-input-time-picker-66e7a9f3.js +1858 -0
- package/dist/esm/calcite-input-time-picker.entry.js +20 -20
- package/dist/esm/calcite-input-time-zone.entry.js +23 -17
- package/dist/esm/calcite-input_2.entry.js +16 -16
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +6 -6
- package/dist/esm/calcite-list-item-group.entry.js +4 -4
- package/dist/esm/calcite-menu-item.entry.js +10 -10
- package/dist/esm/calcite-menu.entry.js +9 -9
- package/dist/esm/calcite-meter.entry.js +10 -10
- package/dist/esm/calcite-modal_3.entry.js +19 -19
- package/dist/esm/calcite-navigation-logo.entry.js +4 -4
- package/dist/esm/calcite-navigation-user.entry.js +3 -3
- package/dist/esm/calcite-navigation.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +14 -14
- package/dist/esm/calcite-option_2.entry.js +12 -12
- package/dist/esm/calcite-pagination.entry.js +12 -12
- package/dist/esm/calcite-pick-list-group.entry.js +10 -10
- package/dist/esm/calcite-pick-list-item.entry.js +15 -15
- package/dist/esm/calcite-pick-list.entry.js +13 -13
- package/dist/esm/calcite-radio-button-group.entry.js +8 -8
- package/dist/esm/calcite-radio-button.entry.js +11 -11
- package/dist/esm/calcite-rating.entry.js +14 -14
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +13 -13
- package/dist/esm/calcite-sheet.entry.js +10 -10
- package/dist/esm/calcite-shell-center-row.entry.js +7 -7
- package/dist/esm/calcite-shell-panel_14.entry.js +40 -39
- package/dist/esm/calcite-sortable-list.entry.js +8 -8
- package/dist/esm/calcite-split-button.entry.js +4 -4
- package/dist/esm/calcite-stepper-item.entry.js +11 -11
- package/dist/esm/calcite-stepper.entry.js +10 -10
- package/dist/esm/calcite-switch.entry.js +11 -11
- package/dist/esm/calcite-table-cell_2.entry.js +13 -13
- package/dist/esm/calcite-table-row.entry.js +8 -8
- package/dist/esm/calcite-table.entry.js +10 -10
- package/dist/esm/calcite-text-area.entry.js +16 -16
- package/dist/esm/calcite-tile-group.entry.js +7 -7
- package/dist/esm/calcite-tile-select-group.entry.js +4 -4
- package/dist/esm/calcite-tile-select.entry.js +7 -7
- package/dist/esm/calcite-tile.entry.js +7 -7
- package/dist/esm/calcite-time-picker.entry.js +13 -13
- package/dist/esm/calcite-tip-group.entry.js +2 -2
- package/dist/esm/calcite-tip-manager.entry.js +12 -12
- package/dist/esm/calcite-tip.entry.js +13 -13
- package/dist/esm/calcite-tooltip.entry.js +10 -10
- package/dist/esm/calcite-tree_3.entry.js +11 -11
- package/dist/esm/card-manager_3.entry.js +8 -7
- package/dist/esm/common-c3bbba83.js +36 -0
- package/dist/esm/component-d35983a4.js +30 -0
- package/dist/esm/conditionalSlot-0cbc7172.js +51 -0
- package/dist/esm/config-8d1c3431.js +36 -0
- package/dist/esm/crowdsource-manager.entry.js +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +71 -32
- package/dist/esm/cs-3751e560.js +147 -0
- package/dist/esm/da-227f8ad5.js +67 -0
- package/dist/esm/date-87a67cb4.js +248 -0
- package/dist/esm/de-a5d2b25b.js +91 -0
- package/dist/esm/de-at-66232b80.js +90 -0
- package/dist/esm/de-ch-1264ed4c.js +90 -0
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/dom-63d2d41c.js +1180 -0
- package/dist/esm/downloadUtils-d1f791c5.js +3157 -0
- package/dist/esm/el-f5bf7ca3.js +66 -0
- package/dist/esm/en-au-2ac8f62e.js +66 -0
- package/dist/esm/en-ca-a1602b49.js +65 -0
- package/dist/esm/en-gb-28354b2e.js +69 -0
- package/dist/esm/es-feb7aad2.js +66 -0
- package/dist/esm/es-mx-5d64f899.js +65 -0
- package/dist/esm/et-173d2f49.js +92 -0
- 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 +25 -12
- package/dist/esm/features-flow-item.entry.js +1 -1
- package/dist/esm/fi-ff9bb719.js +115 -0
- package/dist/esm/filter-6ee02739.js +775 -0
- package/dist/esm/floating-ui-c7ae81d9.js +2365 -0
- package/dist/esm/focusTrapComponent-833b1234.js +1013 -0
- package/dist/esm/form-08e1bcb7.js +372 -0
- package/dist/esm/fr-ch-491f1abe.js +66 -0
- package/dist/esm/fr-e3af6835.js +68 -0
- package/dist/esm/guid-42656051.js +24 -0
- package/dist/esm/he-47aa8dde.js +105 -0
- package/dist/esm/hi-1700df3e.js +65 -0
- package/dist/esm/hr-68b828f5.js +80 -0
- package/dist/esm/hu-df6a8f29.js +88 -0
- package/dist/esm/id-8091582d.js +66 -0
- package/dist/esm/index.es-decad494.js +11231 -0
- package/dist/esm/input-7f3fc18b.js +58 -0
- package/dist/esm/instant-apps-header.entry.js +1 -1
- package/dist/esm/instant-apps-splash.entry.js +1 -1
- package/dist/esm/instant-apps-time-filter.entry.js +9 -9
- package/dist/esm/interactive-b2a41b8b.js +162 -0
- package/dist/esm/it-1f5e149d.js +66 -0
- package/dist/esm/it-ch-bf7fcac6.js +66 -0
- package/dist/esm/ja-a5117166.js +72 -0
- package/dist/esm/key-d6dfb50e.js +16 -0
- package/dist/esm/ko-9d7a9e79.js +72 -0
- package/dist/esm/label-4c4e06d6.js +179 -0
- package/dist/esm/layout-manager.entry.js +1 -1
- package/dist/esm/list-flow-item.entry.js +1 -1
- package/dist/esm/loadable-1a9b14b8.js +93 -0
- package/dist/esm/loader.js +5 -5
- package/dist/esm/locale-4441c976.js +591 -0
- package/dist/esm/location-flow-item.entry.js +1 -1
- package/dist/esm/logger-3188b9c3.js +59 -0
- package/dist/esm/lt-2e1c53de.js +97 -0
- package/dist/esm/lv-ca1ba866.js +66 -0
- package/dist/esm/map-select-tools_3.entry.js +7 -6
- package/dist/esm/math-9afe1f6d.js +54 -0
- package/dist/esm/mk-421d0d41.js +66 -0
- package/dist/esm/nb-5b103e32.js +67 -0
- package/dist/esm/nl-eac33461.js +67 -0
- package/dist/esm/observers-6cac5525.js +56 -0
- package/dist/esm/openCloseComponent-c8c8645b.js +63 -0
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/pl-03531ccb.js +114 -0
- package/dist/esm/popupUtils-4e0a103f.js +119 -0
- package/dist/esm/pt-b5d8bffc.js +67 -0
- package/dist/esm/pt-br-dee45728.js +65 -0
- package/dist/esm/public-notification.entry.js +6 -5
- package/dist/esm/purify-cb56797a.js +1560 -0
- package/dist/esm/refine-results-flow-item.entry.js +1 -1
- package/dist/esm/resources-119ae117.js +23 -0
- package/dist/esm/resources-244d70ca.js +22 -0
- package/dist/esm/resources-3f56d4e7.js +19 -0
- package/dist/esm/resources-57625076.js +63 -0
- package/dist/esm/resources-5b213c89.js +35 -0
- package/dist/esm/resources-61eab899.js +20 -0
- package/dist/esm/resources-745dec87.js +34 -0
- package/dist/esm/resources-9494c015.js +21 -0
- package/dist/esm/resources-d6566b8a.js +62 -0
- package/dist/esm/resources-d7e0fbbf.js +24 -0
- package/dist/esm/restHelpersGet-48113381.js +976 -0
- package/dist/esm/ro-df6cb584.js +66 -0
- package/dist/esm/ru-e7c02faa.js +126 -0
- package/dist/esm/share-item.entry.js +1 -1
- package/dist/esm/shared-list-render-cadae2eb.js +339 -0
- package/dist/esm/sk-cae387d2.js +148 -0
- package/dist/esm/sl-2892ad87.js +168 -0
- package/dist/esm/solution-configuration.entry.js +31 -30
- package/dist/esm/solution-contents_3.entry.js +8 -7
- package/dist/esm/solution-resource-f5809979.js +142 -0
- package/dist/esm/solution-store-ca4d55de.js +1352 -0
- package/dist/esm/solutions-components.js +5 -5
- package/dist/esm/sortableComponent-52b99f0f.js +2745 -0
- package/dist/esm/spatial-ref.entry.js +4 -3
- package/dist/esm/sr-11e6839f.js +101 -0
- package/dist/esm/store-manager.entry.js +5 -4
- package/dist/esm/sv-fd5c6ca5.js +71 -0
- package/dist/esm/t9n-b7ea1a61.js +103 -0
- package/dist/esm/templates-0b442208.js +402 -0
- package/dist/esm/th-170cf6b1.js +65 -0
- package/dist/esm/time-a7f1020b.js +286 -0
- package/dist/esm/tr-1d6ca382.js +66 -0
- package/dist/esm/uk-35eec84e.js +104 -0
- package/dist/esm/utils-62514064.js +65 -0
- package/dist/esm/utils-d2524a35.js +2274 -0
- package/dist/esm/vi-2713ee26.js +70 -0
- package/dist/esm/zh-cn-ed066014.js +94 -0
- package/dist/esm/zh-hk-a118dced.js +92 -0
- package/dist/esm/zh-tw-c9bbf220.js +92 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion/accordion.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion-item/accordion-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action/action.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-bar/action-bar.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-group/action-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-menu/action-menu.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-pad/action-pad.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/alert/alert.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/avatar/avatar.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block/block.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block-section/block-section.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/button/button.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card/card.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card-group/card-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel/carousel.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel-item/carousel-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/checkbox/checkbox.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip/chip.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip-group/chip-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker/color-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-swatch/color-picker-swatch.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox/combobox.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item/combobox-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item-group/combobox-item-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker/date-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-day/date-picker-day.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month/date-picker-month.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month-header/date-picker-month-header.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dialog/dialog.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown/dropdown.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-group/dropdown-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-item/dropdown-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/fab/fab.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/filter/filter.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow/flow.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow-item/flow-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/graph/graph.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/handle/handle.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/icon/icon.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/inline-editable/inline-editable.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input/input.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-date-picker/input-date-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-message/input-message.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-number/input-number.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-text/input-text.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-picker/input-time-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-zone/input-time-zone.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/label/label.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/link/link.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list/list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item/list-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item-group/list-item-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/loader/loader.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu/menu.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu-item/menu-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/meter/meter.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/modal/modal.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation/navigation.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-logo/navigation-logo.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-user/navigation-user.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/notice/notice.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option/option.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option-group/option-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pagination/pagination.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/panel/panel.css +6 -22
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list/pick-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-group/pick-list-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-item/pick-list-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/popover/popover.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/progress/progress.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button/radio-button.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button-group/radio-button-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/rating/rating.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/scrim/scrim.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control/segmented-control.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control-item/segmented-control-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/select/select.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sheet/sheet.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell/shell.css +6 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-center-row/shell-center-row.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-panel/shell-panel.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/slider/slider.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sortable-list/sortable-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/split-button/split-button.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stack/stack.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper/stepper.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper-item/stepper-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/switch/switch.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab/tab.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-nav/tab-nav.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-title/tab-title.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table/table.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-cell/table-cell.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-header/table-header.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-row/table-row.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tabs/tabs.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/text-area/text-area.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile/tile.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-group/tile-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select/tile-select.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select-group/tile-select-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/time-picker/time-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip/tip.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-group/tip-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-manager/tip-manager.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tooltip/tooltip.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree/tree.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree-item/tree-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list/value-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list-item/value-list-item.css +5 -5
- package/dist/solutions-components/assets/t9n/card-manager/resources_ar.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_bg.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_bs.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_ca.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_cs.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_da.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_de.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_el.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_es.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_et.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_fi.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_fr.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_he.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_hr.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_hu.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_id.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_it.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_ja.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_ko.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_lt.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_lv.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_nb.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_nl.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_pl.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_pt-BR.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_pt-PT.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_ro.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_ru.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_sk.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_sl.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_sr.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_sv.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_th.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_tr.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_uk.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_vi.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_zh-CN.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_zh-HK.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_zh-TW.json +4 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_en.json +5 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_en.json +3 -0
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_en.json +0 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ar.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_bg.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_bs.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ca.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_cs.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_da.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_de.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_el.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_es.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_et.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_fi.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_fr.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_he.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_hr.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_hu.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_id.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_it.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ja.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ko.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_lt.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_lv.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_nb.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_nl.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_pl.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_pt-BR.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_pt-PT.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ro.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ru.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_sk.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_sl.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_sr.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_sv.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_th.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_tr.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_uk.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_vi.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_zh-CN.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_zh-HK.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_zh-TW.json +2 -1
- package/dist/solutions-components/demos/crowdsource-reporter.html +24 -25
- package/dist/solutions-components/p-01dae909.js +6 -0
- package/dist/solutions-components/p-02ea30d1.entry.js +11 -0
- package/dist/solutions-components/p-040b6e44.entry.js +6 -0
- package/dist/solutions-components/p-04294b8e.js +6 -0
- package/dist/solutions-components/p-062e5705.entry.js +6 -0
- package/dist/solutions-components/p-062f4457.js +6 -0
- package/dist/solutions-components/p-07d30a6b.entry.js +11 -0
- package/dist/solutions-components/p-08d1cc1f.js +11 -0
- package/dist/solutions-components/p-0a165419.js +18 -0
- package/dist/solutions-components/p-0b6e5486.js +6 -0
- package/dist/solutions-components/p-0d6b3f44.js +6 -0
- package/dist/solutions-components/p-0dc73313.js +6 -0
- package/dist/solutions-components/p-0e851a4b.js +6 -0
- package/dist/solutions-components/p-0ef9d36b.js +11 -0
- package/dist/solutions-components/p-1017609e.js +11 -0
- package/dist/solutions-components/p-1490c752.js +61 -0
- package/dist/solutions-components/p-14f027b5.js +11 -0
- package/dist/solutions-components/p-150394be.js +11 -0
- package/dist/solutions-components/p-16a3f7ca.entry.js +6 -0
- package/dist/solutions-components/p-16b24981.entry.js +11 -0
- package/dist/solutions-components/p-19b466d0.js +6 -0
- package/dist/solutions-components/p-1a06bf01.js +6 -0
- package/dist/solutions-components/p-1b0fe5b1.entry.js +6 -0
- package/dist/solutions-components/p-1b229454.js +11 -0
- package/dist/solutions-components/p-1c249530.js +11 -0
- package/dist/solutions-components/p-1ce2608d.js +12 -0
- package/dist/solutions-components/p-1ef6a1c2.entry.js +6 -0
- package/dist/solutions-components/p-2007eaa4.entry.js +6 -0
- package/dist/solutions-components/p-222e0445.entry.js +11 -0
- package/dist/solutions-components/p-2230d4cc.js +11 -0
- package/dist/solutions-components/p-2264e8d5.entry.js +11 -0
- package/dist/solutions-components/p-23ce9afa.entry.js +11 -0
- package/dist/solutions-components/p-23dd68de.entry.js +17 -0
- package/dist/solutions-components/p-245c35ce.js +6 -0
- package/dist/solutions-components/p-24a813a4.entry.js +6 -0
- package/dist/solutions-components/p-25b5ffea.js +6 -0
- package/dist/solutions-components/p-267ef1b8.entry.js +11 -0
- package/dist/solutions-components/p-270ead49.js +16 -0
- package/dist/solutions-components/p-27d462c0.js +11 -0
- package/dist/solutions-components/p-2868a42b.js +11 -0
- package/dist/solutions-components/p-29a09798.js +17 -0
- package/dist/solutions-components/p-2aa44a02.entry.js +11 -0
- package/dist/solutions-components/p-2d17790c.js +6 -0
- package/dist/solutions-components/p-2e06ec97.js +6 -0
- package/dist/solutions-components/p-304cef31.js +16 -0
- package/dist/solutions-components/p-33db098c.js +6 -0
- package/dist/solutions-components/p-347d9ce0.js +6 -0
- package/dist/solutions-components/p-36e59391.js +143 -0
- package/dist/solutions-components/p-3792492a.js +11 -0
- package/dist/solutions-components/p-38a87c63.js +11 -0
- package/dist/solutions-components/p-3a47fde6.entry.js +11 -0
- package/dist/solutions-components/p-3c1ecf85.entry.js +29 -0
- package/dist/solutions-components/p-3c89bfe5.entry.js +6 -0
- package/dist/solutions-components/p-3e828614.js +11 -0
- package/dist/solutions-components/p-40175313.entry.js +11 -0
- package/dist/solutions-components/p-40f5df15.entry.js +11 -0
- package/dist/solutions-components/p-42cd083f.entry.js +20 -0
- package/dist/solutions-components/p-47a0be20.js +11 -0
- package/dist/solutions-components/p-4920ee12.js +11 -0
- package/dist/solutions-components/p-49bbe45e.js +6 -0
- package/dist/solutions-components/p-4b9b7778.js +11 -0
- package/dist/solutions-components/p-4c179300.entry.js +11 -0
- package/dist/solutions-components/p-4c88578a.entry.js +6 -0
- package/dist/solutions-components/p-4e7aa926.js +6 -0
- package/dist/solutions-components/p-4fe5e9c3.entry.js +22 -0
- package/dist/solutions-components/p-508b2b7b.js +6 -0
- package/dist/solutions-components/p-52f19286.entry.js +11 -0
- package/dist/solutions-components/p-53b5a39e.js +6 -0
- package/dist/solutions-components/p-5440c8dd.js +6 -0
- package/dist/solutions-components/p-54a9017c.entry.js +11 -0
- package/dist/solutions-components/p-54b7e680.js +6 -0
- package/dist/solutions-components/p-550da58b.js +6 -0
- package/dist/solutions-components/p-5612aa0c.entry.js +6 -0
- package/dist/solutions-components/p-57025491.entry.js +6 -0
- package/dist/solutions-components/p-5a3cab12.entry.js +17 -0
- package/dist/solutions-components/p-5de67b86.js +11 -0
- package/dist/solutions-components/p-5e71e72a.js +21 -0
- package/dist/solutions-components/p-5f705984.js +6 -0
- package/dist/solutions-components/p-5f7c1e49.js +6 -0
- package/dist/solutions-components/p-6147cfb4.entry.js +6 -0
- package/dist/solutions-components/p-6319ca20.js +6 -0
- package/dist/solutions-components/p-64a34d92.js +11 -0
- package/dist/solutions-components/p-64bf4d2e.entry.js +11 -0
- package/dist/solutions-components/p-66afdfdd.entry.js +17 -0
- package/dist/solutions-components/p-66b01781.js +11 -0
- package/dist/solutions-components/p-67c34d05.entry.js +16 -0
- package/dist/solutions-components/p-691cb5f4.js +21 -0
- package/dist/solutions-components/p-6b0fa1eb.entry.js +17 -0
- package/dist/solutions-components/p-6c080ac7.entry.js +11 -0
- package/dist/solutions-components/p-707ee1d1.entry.js +11 -0
- package/dist/solutions-components/p-712873f0.js +6 -0
- package/dist/solutions-components/p-732bb88c.entry.js +6 -0
- package/dist/solutions-components/p-744d9575.js +11 -0
- package/dist/solutions-components/p-74fbad1c.js +489 -0
- package/dist/solutions-components/p-7586e1de.entry.js +6 -0
- package/dist/solutions-components/p-770a0e12.js +6 -0
- package/dist/solutions-components/p-793f1b14.entry.js +11 -0
- package/dist/solutions-components/p-798b9928.entry.js +11 -0
- package/dist/solutions-components/p-79f5a8be.js +11 -0
- package/dist/solutions-components/p-79f78acc.entry.js +11 -0
- package/dist/solutions-components/p-7ae41cd8.js +6 -0
- package/dist/solutions-components/p-7b2ef872.entry.js +11 -0
- package/dist/solutions-components/p-7c854814.js +11 -0
- package/dist/solutions-components/p-7fce703f.entry.js +12 -0
- package/dist/solutions-components/p-80f49acc.js +6 -0
- package/dist/solutions-components/p-8537518d.entry.js +11 -0
- package/dist/solutions-components/p-8614d1a0.entry.js +11 -0
- package/dist/solutions-components/p-87f928a5.entry.js +17 -0
- package/dist/solutions-components/p-8bb2c169.js +11 -0
- package/dist/solutions-components/p-8bce991a.js +11 -0
- package/dist/solutions-components/p-8bfa18b7.js +11 -0
- package/dist/solutions-components/p-8c6a301f.entry.js +47 -0
- package/dist/solutions-components/p-8da5aeea.entry.js +11 -0
- package/dist/solutions-components/p-8fb06a85.entry.js +11 -0
- package/dist/solutions-components/p-919e9de7.entry.js +11 -0
- package/dist/solutions-components/p-91b7a7dc.entry.js +11 -0
- package/dist/solutions-components/p-924ec704.js +6 -0
- package/dist/solutions-components/p-9277a339.entry.js +22 -0
- package/dist/solutions-components/p-92ba99ff.js +6 -0
- package/dist/solutions-components/p-936037e4.js +6 -0
- package/dist/solutions-components/p-9384cc65.entry.js +11 -0
- package/dist/solutions-components/p-94ae78d6.js +6 -0
- package/dist/solutions-components/p-9524e5e4.js +6 -0
- package/dist/solutions-components/p-9560a1fd.entry.js +6 -0
- package/dist/solutions-components/p-95c3b305.entry.js +12 -0
- package/dist/solutions-components/p-986ff43b.entry.js +17 -0
- package/dist/solutions-components/p-990d8b4b.js +6 -0
- package/dist/solutions-components/p-996daf05.entry.js +6 -0
- package/dist/solutions-components/p-9bb44f57.js +65 -0
- package/dist/solutions-components/p-9bc84681.js +6 -0
- package/dist/solutions-components/p-9c5f4347.js +6 -0
- package/dist/solutions-components/p-9db30b19.entry.js +6 -0
- package/dist/solutions-components/p-9fa7a7ad.entry.js +6 -0
- package/dist/solutions-components/p-9fed495d.entry.js +17 -0
- package/dist/solutions-components/p-a37d1b17.entry.js +6 -0
- package/dist/solutions-components/p-a471ceb6.js +11 -0
- package/dist/solutions-components/p-a4e35c2d.entry.js +6 -0
- package/dist/solutions-components/p-a5e64f6b.entry.js +6 -0
- package/dist/solutions-components/p-a79f4c52.entry.js +12 -0
- package/dist/solutions-components/p-a8b42e35.entry.js +6 -0
- package/dist/solutions-components/p-aa341d46.entry.js +11 -0
- package/dist/solutions-components/p-aa68a36e.entry.js +11 -0
- package/dist/solutions-components/p-aa85b136.entry.js +6 -0
- package/dist/solutions-components/p-aaa56cbf.js +11 -0
- package/dist/solutions-components/p-ac11cf8f.entry.js +11 -0
- package/dist/solutions-components/p-aef41a6d.entry.js +11 -0
- package/dist/solutions-components/p-b3e8da19.entry.js +11 -0
- package/dist/solutions-components/p-b5575639.js +11 -0
- package/dist/solutions-components/p-b5b66530.js +11 -0
- package/dist/solutions-components/p-b75c4db2.entry.js +6 -0
- package/dist/solutions-components/p-b76ed1c7.entry.js +11 -0
- package/dist/solutions-components/p-b8b78283.entry.js +29 -0
- package/dist/solutions-components/p-b8ce880d.js +6 -0
- package/dist/solutions-components/p-b8f33145.js +6 -0
- package/dist/solutions-components/p-b96233e3.entry.js +6 -0
- package/dist/solutions-components/p-bae65813.entry.js +6 -0
- package/dist/solutions-components/p-bb0f549a.js +6 -0
- package/dist/solutions-components/p-bc6cf10f.entry.js +11 -0
- package/dist/solutions-components/p-bde2619f.entry.js +6 -0
- package/dist/solutions-components/p-c0d25be5.entry.js +21 -0
- package/dist/solutions-components/p-c151da98.entry.js +11 -0
- package/dist/solutions-components/p-c163b67f.js +6 -0
- package/dist/solutions-components/p-c1fa5dae.entry.js +11 -0
- package/dist/solutions-components/p-c25e8c35.js +17 -0
- package/dist/solutions-components/p-c40b0ec5.js +16 -0
- package/dist/solutions-components/p-c4953b5e.entry.js +11 -0
- package/dist/solutions-components/p-c5facecd.entry.js +6 -0
- package/dist/solutions-components/p-c6255e3c.entry.js +6 -0
- package/dist/solutions-components/p-c7eaade6.entry.js +11 -0
- package/dist/solutions-components/p-ca6055a3.js +6 -0
- package/dist/solutions-components/p-cadbe907.entry.js +11 -0
- package/dist/solutions-components/p-cb07016a.entry.js +11 -0
- package/dist/solutions-components/p-cd6eee11.js +6 -0
- package/dist/solutions-components/p-cf9e6515.entry.js +11 -0
- package/dist/solutions-components/p-d0d020a5.js +37 -0
- package/dist/solutions-components/p-d1cc620f.entry.js +11 -0
- package/dist/solutions-components/p-d36878db.js +11 -0
- package/dist/solutions-components/p-d47abf9b.entry.js +16 -0
- package/dist/solutions-components/p-d75ef009.entry.js +11 -0
- package/dist/solutions-components/p-d784f756.entry.js +23 -0
- package/dist/solutions-components/p-d9e930c8.js +11 -0
- package/dist/solutions-components/p-da80cfbc.entry.js +11 -0
- package/dist/solutions-components/p-de3ee7a6.entry.js +17 -0
- package/dist/solutions-components/p-de8121a4.js +6 -0
- package/dist/solutions-components/p-dfeb6a2e.entry.js +11 -0
- package/dist/solutions-components/p-e0ee0556.entry.js +11 -0
- package/dist/solutions-components/p-e378184f.entry.js +6 -0
- package/dist/solutions-components/p-e3fe81ae.js +7 -0
- package/dist/solutions-components/p-e4ef6f49.js +6 -0
- package/dist/solutions-components/p-e74bc7b3.js +6 -0
- package/dist/solutions-components/p-e9d3365f.js +22 -0
- package/dist/solutions-components/p-eb2859d6.js +6 -0
- package/dist/solutions-components/p-ee9b7fab.js +6 -0
- package/dist/solutions-components/p-ef67c743.js +11 -0
- package/dist/solutions-components/p-f3166d51.entry.js +6 -0
- package/dist/solutions-components/p-f550ebc1.entry.js +6 -0
- package/dist/solutions-components/p-f6c3501c.js +16 -0
- package/dist/solutions-components/p-f6f2018a.js +11 -0
- package/dist/solutions-components/p-f7bc99fb.entry.js +17 -0
- package/dist/solutions-components/p-f88c3477.entry.js +6 -0
- package/dist/solutions-components/p-f8d23498.js +11 -0
- package/dist/solutions-components/p-fa56b7c2.js +11 -0
- package/dist/solutions-components/p-fa68f43a.entry.js +6 -0
- package/dist/solutions-components/p-fb3e0eae.js +6 -0
- package/dist/solutions-components/p-fcd33b4f.js +6 -0
- package/dist/solutions-components/p-fd79adec.entry.js +6 -0
- package/dist/solutions-components/p-fedbf657.entry.js +11 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/pdfUtils.ts +1 -1
- package/dist/types/components/basemap-gallery/basemap-gallery.d.ts +1 -0
- package/dist/types/components/create-feature/create-feature.d.ts +20 -0
- package/dist/types/components/create-related-feature/create-related-feature.d.ts +16 -0
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +19 -3
- package/dist/types/components/feature-details/feature-details.d.ts +8 -0
- package/dist/types/components/feature-list/feature-list.d.ts +3 -1
- package/dist/types/components/layer-table/layer-table.d.ts +1 -1
- package/dist/types/components.d.ts +28 -1
- package/dist/types/preact.d.ts +3 -1
- package/package.json +8 -7
- package/dist/cjs/ExpandToggle-63855ea7.js +0 -115
- package/dist/cjs/FloatingArrow-4afc0a27.js +0 -48
- package/dist/cjs/Heading-f01dc40c.js +0 -25
- package/dist/cjs/Validation-c52e0b30.js +0 -20
- package/dist/cjs/app-globals-587d5fc5.js +0 -67
- package/dist/cjs/ar-406e323c.js +0 -106
- package/dist/cjs/array-7ee883b3.js +0 -17
- package/dist/cjs/bg-56abe1a2.js +0 -84
- package/dist/cjs/browser-e9eb8b2e.js +0 -35
- package/dist/cjs/bs-43ed4dcb.js +0 -53
- package/dist/cjs/ca-ad58f302.js +0 -73
- package/dist/cjs/calcite-input-time-picker-83bcd60f.js +0 -1861
- package/dist/cjs/common-4d4cf291.js +0 -37
- package/dist/cjs/component-ab59efe0.js +0 -33
- package/dist/cjs/conditionalSlot-e7b1e80b.js +0 -54
- package/dist/cjs/config-90915d7e.js +0 -40
- package/dist/cjs/cs-eef992e9.js +0 -149
- package/dist/cjs/da-4957191f.js +0 -69
- package/dist/cjs/date-09eabd7c.js +0 -264
- package/dist/cjs/de-64947d33.js +0 -93
- package/dist/cjs/de-at-976bd625.js +0 -92
- package/dist/cjs/de-ch-9c2f85be.js +0 -92
- package/dist/cjs/dom-5fd0c11a.js +0 -1215
- package/dist/cjs/downloadUtils-b1bc6031.js +0 -3163
- package/dist/cjs/el-17064e96.js +0 -68
- package/dist/cjs/en-au-bf34aa99.js +0 -68
- package/dist/cjs/en-ca-20b7aeab.js +0 -67
- package/dist/cjs/en-gb-72ebc333.js +0 -71
- package/dist/cjs/es-996df974.js +0 -68
- package/dist/cjs/es-mx-cf34d408.js +0 -67
- package/dist/cjs/et-fe1aba97.js +0 -94
- package/dist/cjs/fi-154d8730.js +0 -117
- package/dist/cjs/filter-1906ce7b.js +0 -778
- package/dist/cjs/floating-ui-b477f602.js +0 -2373
- package/dist/cjs/focusTrapComponent-01de8e72.js +0 -1018
- package/dist/cjs/form-fba99326.js +0 -381
- package/dist/cjs/fr-21a56733.js +0 -70
- package/dist/cjs/fr-ch-66f7a5c9.js +0 -68
- package/dist/cjs/guid-81a8c49f.js +0 -26
- package/dist/cjs/he-249d58b9.js +0 -107
- package/dist/cjs/hi-7015dbc4.js +0 -67
- package/dist/cjs/hr-e57553fd.js +0 -82
- package/dist/cjs/hu-e0a32fbd.js +0 -90
- package/dist/cjs/id-6eeb6f33.js +0 -68
- package/dist/cjs/index.es-5ad1b7be.js +0 -11317
- package/dist/cjs/input-cb7565cc.js +0 -60
- package/dist/cjs/interactive-d349d0f0.js +0 -167
- package/dist/cjs/it-21b9179c.js +0 -68
- package/dist/cjs/it-ch-ed862b1c.js +0 -68
- package/dist/cjs/ja-a5d93dac.js +0 -74
- package/dist/cjs/key-a0f7c4f3.js +0 -19
- package/dist/cjs/ko-1913cf25.js +0 -74
- package/dist/cjs/label-dc906a73.js +0 -186
- package/dist/cjs/loadable-d9a2a731.js +0 -98
- package/dist/cjs/locale-4d172288.js +0 -605
- package/dist/cjs/logger-dc99f85b.js +0 -61
- package/dist/cjs/lt-aeec2286.js +0 -99
- package/dist/cjs/lv-9055202a.js +0 -68
- package/dist/cjs/math-8d9588b6.js +0 -60
- package/dist/cjs/mk-98948b48.js +0 -68
- package/dist/cjs/nb-d88ea8dc.js +0 -69
- package/dist/cjs/nl-a8df29cd.js +0 -69
- package/dist/cjs/observers-b83abbfc.js +0 -58
- package/dist/cjs/openCloseComponent-a2a2a773.js +0 -65
- package/dist/cjs/pl-0c9cc2cf.js +0 -116
- package/dist/cjs/popupUtils-948e8990.js +0 -121
- package/dist/cjs/pt-5d70043e.js +0 -69
- package/dist/cjs/pt-br-fed6323a.js +0 -67
- package/dist/cjs/purify-17c0fc4a.js +0 -1716
- package/dist/cjs/resources-03698411.js +0 -39
- package/dist/cjs/resources-085b5a9c.js +0 -23
- package/dist/cjs/resources-08ceff44.js +0 -21
- package/dist/cjs/resources-32b7c652.js +0 -23
- package/dist/cjs/resources-3e7e7fb7.js +0 -26
- package/dist/cjs/resources-44438f5c.js +0 -68
- package/dist/cjs/resources-b4193681.js +0 -27
- package/dist/cjs/resources-bcc3f2b2.js +0 -68
- package/dist/cjs/resources-e3a7e2f5.js +0 -29
- package/dist/cjs/resources-e5bab826.js +0 -39
- package/dist/cjs/restHelpersGet-88ba0e25.js +0 -975
- package/dist/cjs/ro-021065c9.js +0 -68
- package/dist/cjs/ru-9ec3c8de.js +0 -128
- package/dist/cjs/shared-list-render-79567fc0.js +0 -361
- package/dist/cjs/sk-09cbe5ba.js +0 -150
- package/dist/cjs/sl-3a4381a4.js +0 -170
- package/dist/cjs/solution-resource-16c7510c.js +0 -1843
- package/dist/cjs/solution-store-1218246d.js +0 -1353
- package/dist/cjs/sortableComponent-abdb9e28.js +0 -2748
- package/dist/cjs/sr-c18bc63a.js +0 -103
- package/dist/cjs/sv-e721be29.js +0 -73
- package/dist/cjs/t9n-c8d7a2ec.js +0 -108
- package/dist/cjs/templates-2f44c01b.js +0 -407
- package/dist/cjs/th-baa740bc.js +0 -67
- package/dist/cjs/time-087f0346.js +0 -301
- package/dist/cjs/tr-c0b17a53.js +0 -68
- package/dist/cjs/uk-68a75a5a.js +0 -106
- package/dist/cjs/utils-8f400dfd.js +0 -78
- package/dist/cjs/utils-9a063f23.js +0 -2304
- package/dist/cjs/vi-bf3bf360.js +0 -72
- package/dist/cjs/zh-cn-f36908e8.js +0 -96
- package/dist/cjs/zh-hk-79863fdd.js +0 -94
- package/dist/cjs/zh-tw-eb1f3b17.js +0 -94
- package/dist/esm/ExpandToggle-f909e195.js +0 -108
- package/dist/esm/FloatingArrow-4dbed45e.js +0 -46
- package/dist/esm/Heading-19e46a14.js +0 -22
- package/dist/esm/Validation-0b8675a8.js +0 -18
- package/dist/esm/app-globals-0fc0d343.js +0 -65
- package/dist/esm/ar-2b7701c9.js +0 -104
- package/dist/esm/array-0d5d845c.js +0 -15
- package/dist/esm/bg-cfd918d6.js +0 -82
- package/dist/esm/browser-d0009bfe.js +0 -32
- package/dist/esm/bs-6e26541f.js +0 -51
- package/dist/esm/ca-3edf7b06.js +0 -71
- package/dist/esm/calcite-input-time-picker-c5ee10a4.js +0 -1858
- package/dist/esm/common-3b99e350.js +0 -35
- package/dist/esm/component-0f26d27a.js +0 -30
- package/dist/esm/conditionalSlot-56fa9723.js +0 -51
- package/dist/esm/config-e0237f7c.js +0 -36
- package/dist/esm/cs-93a3355b.js +0 -147
- package/dist/esm/da-f4d05bf2.js +0 -67
- package/dist/esm/date-dd3d9d2f.js +0 -248
- package/dist/esm/de-04f477b6.js +0 -91
- package/dist/esm/de-at-1b4e56b9.js +0 -90
- package/dist/esm/de-ch-59c96703.js +0 -90
- package/dist/esm/dom-9e8610a2.js +0 -1180
- package/dist/esm/downloadUtils-ee2d6a99.js +0 -3156
- package/dist/esm/el-134dd039.js +0 -66
- package/dist/esm/en-au-ec33ef70.js +0 -66
- package/dist/esm/en-ca-ab1fbea4.js +0 -65
- package/dist/esm/en-gb-ceb65f79.js +0 -69
- package/dist/esm/es-e023cfc8.js +0 -66
- package/dist/esm/es-mx-e0a5ee8c.js +0 -65
- package/dist/esm/et-572b1e56.js +0 -92
- package/dist/esm/fi-f13fae4c.js +0 -115
- package/dist/esm/filter-3c649b00.js +0 -775
- package/dist/esm/floating-ui-9d9558a6.js +0 -2365
- package/dist/esm/focusTrapComponent-a9be9a5f.js +0 -1013
- package/dist/esm/form-a992bc7e.js +0 -372
- package/dist/esm/fr-ch-a1f8ebbf.js +0 -66
- package/dist/esm/fr-e9b456c3.js +0 -68
- package/dist/esm/guid-52aae62c.js +0 -24
- package/dist/esm/he-dfaa7ea1.js +0 -105
- package/dist/esm/hi-efa0d8e7.js +0 -65
- package/dist/esm/hr-7c04c969.js +0 -80
- package/dist/esm/hu-fc6efaba.js +0 -88
- package/dist/esm/id-2d884294.js +0 -66
- package/dist/esm/index.es-6d52a4cf.js +0 -11230
- package/dist/esm/input-b18c3393.js +0 -58
- package/dist/esm/interactive-353bf495.js +0 -162
- package/dist/esm/it-913dabbb.js +0 -66
- package/dist/esm/it-ch-d4c2b23e.js +0 -66
- package/dist/esm/ja-b6c332b1.js +0 -72
- package/dist/esm/key-a9ffa61d.js +0 -16
- package/dist/esm/ko-b220c903.js +0 -72
- package/dist/esm/label-026b99b7.js +0 -179
- package/dist/esm/loadable-4841127f.js +0 -93
- package/dist/esm/locale-8a2aae09.js +0 -591
- package/dist/esm/logger-29d1dc0e.js +0 -59
- package/dist/esm/lt-e97a19a7.js +0 -97
- package/dist/esm/lv-c4e1d066.js +0 -66
- package/dist/esm/math-dd484f87.js +0 -54
- package/dist/esm/mk-fec9b21d.js +0 -66
- package/dist/esm/nb-28189f31.js +0 -67
- package/dist/esm/nl-194a064e.js +0 -67
- package/dist/esm/observers-3af27a40.js +0 -56
- package/dist/esm/openCloseComponent-00e6186d.js +0 -63
- package/dist/esm/pl-c0a7eacf.js +0 -114
- package/dist/esm/popupUtils-75294be5.js +0 -119
- package/dist/esm/pt-48180eaa.js +0 -67
- package/dist/esm/pt-br-e378640f.js +0 -65
- package/dist/esm/purify-72515357.js +0 -1714
- package/dist/esm/resources-0b9430f0.js +0 -21
- package/dist/esm/resources-2117aee0.js +0 -63
- package/dist/esm/resources-29504413.js +0 -34
- package/dist/esm/resources-37d6b520.js +0 -35
- package/dist/esm/resources-75518fcf.js +0 -23
- package/dist/esm/resources-8e7f2865.js +0 -22
- package/dist/esm/resources-8fe9ef4a.js +0 -20
- package/dist/esm/resources-966e32ad.js +0 -62
- package/dist/esm/resources-a1cc283e.js +0 -24
- package/dist/esm/resources-f4406546.js +0 -19
- package/dist/esm/restHelpersGet-788d7f7b.js +0 -960
- package/dist/esm/ro-a116f43c.js +0 -66
- package/dist/esm/ru-53b48473.js +0 -126
- package/dist/esm/shared-list-render-7df95a79.js +0 -339
- package/dist/esm/sk-6e16e781.js +0 -148
- package/dist/esm/sl-0b5a108a.js +0 -168
- package/dist/esm/solution-resource-966f8511.js +0 -1840
- package/dist/esm/solution-store-61fd39ea.js +0 -1351
- package/dist/esm/sortableComponent-fc3d2fcf.js +0 -2745
- package/dist/esm/sr-c91ad375.js +0 -101
- package/dist/esm/sv-99a8436f.js +0 -71
- package/dist/esm/t9n-d5539b3a.js +0 -103
- package/dist/esm/templates-9330d7b8.js +0 -401
- package/dist/esm/th-f448c101.js +0 -65
- package/dist/esm/time-8f4af53a.js +0 -286
- package/dist/esm/tr-1c4d126e.js +0 -66
- package/dist/esm/uk-afcd7307.js +0 -104
- package/dist/esm/utils-057404c5.js +0 -2274
- package/dist/esm/utils-6391b35c.js +0 -65
- package/dist/esm/vi-13e0626d.js +0 -70
- package/dist/esm/zh-cn-80512388.js +0 -94
- package/dist/esm/zh-hk-220c6f50.js +0 -92
- package/dist/esm/zh-tw-f9a73c0d.js +0 -92
- package/dist/solutions-components/p-0129abe8.entry.js +0 -11
- package/dist/solutions-components/p-0238f68c.js +0 -6
- package/dist/solutions-components/p-034291c9.entry.js +0 -11
- package/dist/solutions-components/p-042c0134.entry.js +0 -11
- package/dist/solutions-components/p-052d1165.js +0 -11
- package/dist/solutions-components/p-0558fbc7.js +0 -143
- package/dist/solutions-components/p-06c581b3.js +0 -6
- package/dist/solutions-components/p-071a80fb.js +0 -11
- package/dist/solutions-components/p-0ac3d6fb.js +0 -6
- package/dist/solutions-components/p-0afbf455.js +0 -11
- package/dist/solutions-components/p-0b0d30a9.entry.js +0 -11
- package/dist/solutions-components/p-0c8cf779.js +0 -6
- package/dist/solutions-components/p-0cdda3a9.js +0 -6
- package/dist/solutions-components/p-10a4512a.entry.js +0 -6
- package/dist/solutions-components/p-11149179.js +0 -6
- package/dist/solutions-components/p-111ff298.entry.js +0 -29
- package/dist/solutions-components/p-131ca2b1.js +0 -11
- package/dist/solutions-components/p-13ac2814.js +0 -6
- package/dist/solutions-components/p-14ac7f32.js +0 -17
- package/dist/solutions-components/p-15105f4c.js +0 -6
- package/dist/solutions-components/p-15cbdc2c.entry.js +0 -6
- package/dist/solutions-components/p-16af273f.entry.js +0 -6
- package/dist/solutions-components/p-17f35552.entry.js +0 -6
- package/dist/solutions-components/p-1803e66b.entry.js +0 -21
- package/dist/solutions-components/p-18103eee.entry.js +0 -11
- package/dist/solutions-components/p-190de825.js +0 -6
- package/dist/solutions-components/p-19879c48.entry.js +0 -6
- package/dist/solutions-components/p-1b147794.js +0 -11
- package/dist/solutions-components/p-1c45b737.entry.js +0 -6
- package/dist/solutions-components/p-1fcd444d.entry.js +0 -6
- package/dist/solutions-components/p-23c70a46.entry.js +0 -17
- package/dist/solutions-components/p-2483d087.entry.js +0 -11
- package/dist/solutions-components/p-26ccfcc6.entry.js +0 -6
- package/dist/solutions-components/p-27bc7520.js +0 -6
- package/dist/solutions-components/p-27eca753.js +0 -6
- package/dist/solutions-components/p-2866ef30.js +0 -11
- package/dist/solutions-components/p-288599db.entry.js +0 -16
- package/dist/solutions-components/p-28b4de12.js +0 -6
- package/dist/solutions-components/p-29a24832.entry.js +0 -6
- package/dist/solutions-components/p-2c7a600b.js +0 -6
- package/dist/solutions-components/p-2cff27c5.js +0 -22
- package/dist/solutions-components/p-2df01fbd.js +0 -6
- package/dist/solutions-components/p-30448906.entry.js +0 -6
- package/dist/solutions-components/p-32539121.js +0 -16
- package/dist/solutions-components/p-32b1bb0a.entry.js +0 -11
- package/dist/solutions-components/p-33601437.js +0 -6
- package/dist/solutions-components/p-351b4ea6.js +0 -61
- package/dist/solutions-components/p-363c89e1.js +0 -6
- package/dist/solutions-components/p-3795ce25.js +0 -18
- package/dist/solutions-components/p-3832f6b0.js +0 -11
- package/dist/solutions-components/p-38346d75.js +0 -6
- package/dist/solutions-components/p-39bc5b60.js +0 -6
- package/dist/solutions-components/p-3a4f0ef6.js +0 -6
- package/dist/solutions-components/p-3a839252.entry.js +0 -6
- package/dist/solutions-components/p-3ab1d999.js +0 -6
- package/dist/solutions-components/p-3ae3fb2d.entry.js +0 -6
- package/dist/solutions-components/p-3edf491f.js +0 -11
- package/dist/solutions-components/p-3f23fa58.js +0 -6
- package/dist/solutions-components/p-4115fcd2.entry.js +0 -6
- package/dist/solutions-components/p-416c0818.js +0 -11
- package/dist/solutions-components/p-42903dc4.entry.js +0 -11
- package/dist/solutions-components/p-432d7aac.entry.js +0 -11
- package/dist/solutions-components/p-443bb48a.js +0 -6
- package/dist/solutions-components/p-44b455ac.js +0 -21
- package/dist/solutions-components/p-461d72a9.entry.js +0 -11
- package/dist/solutions-components/p-4a5f4c12.js +0 -6
- package/dist/solutions-components/p-4a8da1a3.entry.js +0 -6
- package/dist/solutions-components/p-4dd4e1f5.js +0 -11
- package/dist/solutions-components/p-4e44d681.entry.js +0 -6
- package/dist/solutions-components/p-4ebde78c.entry.js +0 -6
- package/dist/solutions-components/p-517bc39b.entry.js +0 -6
- package/dist/solutions-components/p-51b004f6.js +0 -11
- package/dist/solutions-components/p-51eb6427.entry.js +0 -11
- package/dist/solutions-components/p-51f2cd4b.entry.js +0 -6
- package/dist/solutions-components/p-53e0faf4.js +0 -12
- package/dist/solutions-components/p-54713c54.js +0 -11
- package/dist/solutions-components/p-5501cb25.entry.js +0 -17
- package/dist/solutions-components/p-57729067.entry.js +0 -11
- package/dist/solutions-components/p-58d0a9e8.js +0 -11
- package/dist/solutions-components/p-5ae7ca10.js +0 -6
- package/dist/solutions-components/p-5cd51ba9.js +0 -6
- package/dist/solutions-components/p-5e901f4d.js +0 -6
- package/dist/solutions-components/p-5ea0c09b.js +0 -6
- package/dist/solutions-components/p-5fcdc5af.entry.js +0 -12
- package/dist/solutions-components/p-632a3328.js +0 -6
- package/dist/solutions-components/p-64e8c883.js +0 -11
- package/dist/solutions-components/p-659678f1.js +0 -43
- package/dist/solutions-components/p-667f4b68.js +0 -6
- package/dist/solutions-components/p-6b2ea220.entry.js +0 -11
- package/dist/solutions-components/p-6c44ba5f.js +0 -16
- package/dist/solutions-components/p-6d369f32.entry.js +0 -22
- package/dist/solutions-components/p-6d4f59df.js +0 -6
- package/dist/solutions-components/p-6def4549.js +0 -11
- package/dist/solutions-components/p-6df7b770.js +0 -11
- package/dist/solutions-components/p-6eaba85e.js +0 -11
- package/dist/solutions-components/p-6eba7557.entry.js +0 -11
- package/dist/solutions-components/p-6ef00d3c.js +0 -6
- package/dist/solutions-components/p-6f98db75.entry.js +0 -11
- package/dist/solutions-components/p-7090b8bc.entry.js +0 -11
- package/dist/solutions-components/p-72b4bf7a.entry.js +0 -23
- package/dist/solutions-components/p-74bd8ced.entry.js +0 -11
- package/dist/solutions-components/p-76c08334.js +0 -16
- package/dist/solutions-components/p-792a8e91.entry.js +0 -17
- package/dist/solutions-components/p-7b0448b1.js +0 -6
- package/dist/solutions-components/p-7c19f274.js +0 -6
- package/dist/solutions-components/p-7c583516.js +0 -50
- package/dist/solutions-components/p-7fa53f88.entry.js +0 -6
- package/dist/solutions-components/p-81012aaa.entry.js +0 -6
- package/dist/solutions-components/p-8145011e.entry.js +0 -11
- package/dist/solutions-components/p-8343f841.entry.js +0 -17
- package/dist/solutions-components/p-85002390.js +0 -11
- package/dist/solutions-components/p-860452b5.entry.js +0 -11
- package/dist/solutions-components/p-8704c6df.entry.js +0 -11
- package/dist/solutions-components/p-871b9b39.entry.js +0 -6
- package/dist/solutions-components/p-873a5fd1.entry.js +0 -29
- package/dist/solutions-components/p-8817162f.js +0 -17
- package/dist/solutions-components/p-88934d2b.js +0 -11
- package/dist/solutions-components/p-88e391ab.entry.js +0 -6
- package/dist/solutions-components/p-89bd8016.entry.js +0 -22
- package/dist/solutions-components/p-8ad16e95.js +0 -16
- package/dist/solutions-components/p-8b54465a.js +0 -11
- package/dist/solutions-components/p-8e85d818.js +0 -6
- package/dist/solutions-components/p-8feb21be.entry.js +0 -17
- package/dist/solutions-components/p-9099acb6.js +0 -6
- package/dist/solutions-components/p-93c9be09.entry.js +0 -17
- package/dist/solutions-components/p-941ec574.entry.js +0 -6
- package/dist/solutions-components/p-949a8cb7.entry.js +0 -11
- package/dist/solutions-components/p-952a4ed2.js +0 -6
- package/dist/solutions-components/p-960baebc.entry.js +0 -6
- package/dist/solutions-components/p-96a7e73d.js +0 -11
- package/dist/solutions-components/p-9905a2cd.js +0 -6
- package/dist/solutions-components/p-9a4f0ae3.entry.js +0 -11
- package/dist/solutions-components/p-9ab5fbed.entry.js +0 -17
- package/dist/solutions-components/p-9bfb0a88.entry.js +0 -17
- package/dist/solutions-components/p-9edd6de9.entry.js +0 -16
- package/dist/solutions-components/p-9f943f1a.js +0 -6
- package/dist/solutions-components/p-a2613102.entry.js +0 -11
- package/dist/solutions-components/p-a2c467d7.js +0 -6
- package/dist/solutions-components/p-a6aba7d4.entry.js +0 -6
- package/dist/solutions-components/p-a704be29.js +0 -6
- package/dist/solutions-components/p-a7ca67b9.js +0 -11
- package/dist/solutions-components/p-a8638d44.entry.js +0 -11
- package/dist/solutions-components/p-abafd987.entry.js +0 -47
- package/dist/solutions-components/p-abd443e4.entry.js +0 -11
- package/dist/solutions-components/p-abd99f2b.entry.js +0 -11
- package/dist/solutions-components/p-ac40d2a6.entry.js +0 -11
- package/dist/solutions-components/p-ade4a0c0.entry.js +0 -6
- package/dist/solutions-components/p-ae53daf0.js +0 -11
- package/dist/solutions-components/p-b134cc53.entry.js +0 -11
- package/dist/solutions-components/p-b1a053c7.entry.js +0 -6
- package/dist/solutions-components/p-b1b88bb9.entry.js +0 -11
- package/dist/solutions-components/p-b24985b0.entry.js +0 -11
- package/dist/solutions-components/p-b4f15b86.entry.js +0 -11
- package/dist/solutions-components/p-b51111e1.js +0 -11
- package/dist/solutions-components/p-b6ac459a.entry.js +0 -11
- package/dist/solutions-components/p-b715fe7e.entry.js +0 -11
- package/dist/solutions-components/p-bd989e41.js +0 -11
- package/dist/solutions-components/p-c58a3ade.entry.js +0 -11
- package/dist/solutions-components/p-c6296ee6.js +0 -11
- package/dist/solutions-components/p-c62bd2a0.entry.js +0 -17
- package/dist/solutions-components/p-c6fe3b6c.js +0 -6
- package/dist/solutions-components/p-c897ea6a.entry.js +0 -11
- package/dist/solutions-components/p-c9193d36.entry.js +0 -6
- package/dist/solutions-components/p-caa665a4.js +0 -11
- package/dist/solutions-components/p-cb860e39.js +0 -11
- package/dist/solutions-components/p-cc5e8fec.entry.js +0 -11
- package/dist/solutions-components/p-ccc3f0c4.entry.js +0 -6
- package/dist/solutions-components/p-cde4f891.entry.js +0 -11
- package/dist/solutions-components/p-cefb0487.js +0 -489
- package/dist/solutions-components/p-d29843c1.js +0 -6
- package/dist/solutions-components/p-d34db378.entry.js +0 -21
- package/dist/solutions-components/p-d3b61974.entry.js +0 -11
- package/dist/solutions-components/p-d7f00451.entry.js +0 -11
- package/dist/solutions-components/p-d81f19b5.js +0 -6
- package/dist/solutions-components/p-d9110df1.entry.js +0 -11
- package/dist/solutions-components/p-e060bbf4.entry.js +0 -6
- package/dist/solutions-components/p-e191b864.entry.js +0 -11
- package/dist/solutions-components/p-e2263afa.entry.js +0 -11
- package/dist/solutions-components/p-e2d9c1e4.entry.js +0 -12
- package/dist/solutions-components/p-e46f6b68.js +0 -11
- package/dist/solutions-components/p-e683e142.js +0 -6
- package/dist/solutions-components/p-e6ac93e5.entry.js +0 -11
- package/dist/solutions-components/p-e7ce7ab5.entry.js +0 -11
- package/dist/solutions-components/p-e85ca9f5.entry.js +0 -11
- package/dist/solutions-components/p-e9488a2a.js +0 -6
- package/dist/solutions-components/p-eacb5b05.js +0 -11
- package/dist/solutions-components/p-ed000576.js +0 -6
- package/dist/solutions-components/p-eec49294.entry.js +0 -11
- package/dist/solutions-components/p-f067a46c.js +0 -21
- package/dist/solutions-components/p-f123e913.entry.js +0 -6
- package/dist/solutions-components/p-f2139e1f.js +0 -11
- package/dist/solutions-components/p-f2e30760.entry.js +0 -11
- package/dist/solutions-components/p-f3cd6339.entry.js +0 -11
- package/dist/solutions-components/p-f42cdeb6.entry.js +0 -6
- package/dist/solutions-components/p-f44c8764.js +0 -6
- package/dist/solutions-components/p-f6a94b55.js +0 -11
- package/dist/solutions-components/p-f6c2f78c.js +0 -6
- package/dist/solutions-components/p-f97b2291.js +0 -6
- package/dist/solutions-components/p-fbd8a250.entry.js +0 -12
- package/dist/solutions-components/p-fc62c04b.entry.js +0 -6
- package/dist/solutions-components/p-fc68aaf4.js +0 -6
- package/dist/solutions-components/p-fc8d6dcf.js +0 -11
- package/dist/solutions-components/p-fc9301a3.entry.js +0 -6
- package/dist/solutions-components/p-fde2ea30.entry.js +0 -6
- package/dist/solutions-components/p-fe82bd8a.js +0 -11
- package/dist/solutions-components/p-ff87b9de.js +0 -7
- package/dist/solutions-components/p-ffbe2075.js +0 -11
- /package/dist/cjs/{index-5f864f65.js → index-f052f656.js} +0 -0
- /package/dist/esm/{index-dc62418d.js → index-e14fade9.js} +0 -0
- /package/dist/solutions-components/{p-36c1c370.js → p-7530a02f.js} +0 -0
@@ -1,1353 +0,0 @@
|
|
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
|
-
'use strict';
|
7
|
-
|
8
|
-
const index = require('./index-da709a10.js');
|
9
|
-
const interfaces = require('./interfaces-09c4c40e.js');
|
10
|
-
const solutionResource = require('./solution-resource-16c7510c.js');
|
11
|
-
const restHelpersGet = require('./restHelpersGet-88ba0e25.js');
|
12
|
-
|
13
|
-
/*! *****************************************************************************
|
14
|
-
Copyright (c) Microsoft Corporation.
|
15
|
-
|
16
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
17
|
-
purpose with or without fee is hereby granted.
|
18
|
-
|
19
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
20
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
21
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
22
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
23
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
24
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
25
|
-
PERFORMANCE OF THIS SOFTWARE.
|
26
|
-
***************************************************************************** */
|
27
|
-
|
28
|
-
var __assign = function() {
|
29
|
-
__assign = Object.assign || function __assign(t) {
|
30
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
31
|
-
s = arguments[i];
|
32
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
33
|
-
}
|
34
|
-
return t;
|
35
|
-
};
|
36
|
-
return __assign.apply(this, arguments);
|
37
|
-
};
|
38
|
-
|
39
|
-
/* Copyright (c) 2017 Environmental Systems Research Institute, Inc.
|
40
|
-
* Apache-2.0 */
|
41
|
-
/**
|
42
|
-
* Helper that returns the appropriate portal url for a given request. `requestOptions.portal` is given
|
43
|
-
* precedence over `authentication.portal`. If neither `portal` nor `authentication` is present,
|
44
|
-
* `www.arcgis.com/sharing/rest` is returned.
|
45
|
-
*
|
46
|
-
* @param requestOptions - Request options that may have authentication manager
|
47
|
-
* @returns Portal url to be used in API requests
|
48
|
-
*/
|
49
|
-
function getPortalUrl(requestOptions) {
|
50
|
-
if (requestOptions === void 0) { requestOptions = {}; }
|
51
|
-
// use portal in options if specified
|
52
|
-
if (requestOptions.portal) {
|
53
|
-
return restHelpersGet.cleanUrl(requestOptions.portal);
|
54
|
-
}
|
55
|
-
// if auth was passed, use that portal
|
56
|
-
if (requestOptions.authentication) {
|
57
|
-
// the portal url is already scrubbed in the auth package
|
58
|
-
return requestOptions.authentication.portal;
|
59
|
-
}
|
60
|
-
// default to arcgis.com
|
61
|
-
return "https://www.arcgis.com/sharing/rest";
|
62
|
-
}
|
63
|
-
|
64
|
-
/* Copyright (c) 2017-2018 Environmental Systems Research Institute, Inc.
|
65
|
-
* Apache-2.0 */
|
66
|
-
/**
|
67
|
-
* Serialize an item and its data into a json format accepted by the Portal API for create and update operations
|
68
|
-
*
|
69
|
-
* @param item Item to be serialized
|
70
|
-
* @returns a formatted json object to be sent to Portal
|
71
|
-
*/
|
72
|
-
function serializeItem(item) {
|
73
|
-
// create a clone so we're not messing with the original
|
74
|
-
var clone = JSON.parse(JSON.stringify(item));
|
75
|
-
// binary data needs POSTed as a `file`
|
76
|
-
// JSON object literals should be passed as `text`.
|
77
|
-
if (clone.data) {
|
78
|
-
(typeof Blob !== "undefined" && item.data instanceof Blob) ||
|
79
|
-
// Node.js doesn't implement Blob
|
80
|
-
item.data.constructor.name === "ReadStream"
|
81
|
-
? (clone.file = item.data)
|
82
|
-
: (clone.text = item.data);
|
83
|
-
delete clone.data;
|
84
|
-
}
|
85
|
-
return clone;
|
86
|
-
}
|
87
|
-
/**
|
88
|
-
* `requestOptions.owner` is given priority, `requestOptions.item.owner` will be checked next. If neither are present, `authentication.getUserName()` will be used instead.
|
89
|
-
*/
|
90
|
-
function determineOwner(requestOptions) {
|
91
|
-
if (requestOptions.owner) {
|
92
|
-
return Promise.resolve(requestOptions.owner);
|
93
|
-
}
|
94
|
-
else if (requestOptions.item && requestOptions.item.owner) {
|
95
|
-
return Promise.resolve(requestOptions.item.owner);
|
96
|
-
}
|
97
|
-
else if (requestOptions.authentication &&
|
98
|
-
requestOptions.authentication.getUsername) {
|
99
|
-
return requestOptions.authentication.getUsername();
|
100
|
-
}
|
101
|
-
else {
|
102
|
-
return Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."));
|
103
|
-
}
|
104
|
-
}
|
105
|
-
/**
|
106
|
-
* checks if the extent is a valid BBox (2 element array of coordinate pair arrays)
|
107
|
-
* @param extent
|
108
|
-
* @returns
|
109
|
-
*/
|
110
|
-
function isBBox(extent) {
|
111
|
-
return (Array.isArray(extent) &&
|
112
|
-
Array.isArray(extent[0]) &&
|
113
|
-
Array.isArray(extent[1]));
|
114
|
-
}
|
115
|
-
/**
|
116
|
-
* Given a Bbox, convert it to a string. Some api endpoints expect a string
|
117
|
-
*
|
118
|
-
* @param {BBox} extent
|
119
|
-
* @return {*} {string}
|
120
|
-
*/
|
121
|
-
function bboxToString(extent) {
|
122
|
-
return extent.join(",");
|
123
|
-
}
|
124
|
-
|
125
|
-
/* Copyright (c) 2018 Environmental Systems Research Institute, Inc.
|
126
|
-
* Apache-2.0 */
|
127
|
-
/**
|
128
|
-
* ```js
|
129
|
-
* import { updateItem } from "@esri/arcgis-rest-portal";
|
130
|
-
* //
|
131
|
-
* updateItem({
|
132
|
-
* item: {
|
133
|
-
* id: "3ef",
|
134
|
-
* description: "A three hour tour"
|
135
|
-
* },
|
136
|
-
* authentication
|
137
|
-
* })
|
138
|
-
* .then(response)
|
139
|
-
* ```
|
140
|
-
* Update an Item. See the [REST Documentation](https://developers.arcgis.com/rest/users-groups-and-items/update-item.htm) for more information.
|
141
|
-
*
|
142
|
-
* @param requestOptions - Options for the request.
|
143
|
-
* @returns A Promise that updates an item.
|
144
|
-
*/
|
145
|
-
function updateItem$1(requestOptions) {
|
146
|
-
return determineOwner(requestOptions).then(function (owner) {
|
147
|
-
var url = requestOptions.folderId
|
148
|
-
? getPortalUrl(requestOptions) + "/content/users/" + owner + "/" + requestOptions.folderId + "/items/" + requestOptions.item.id + "/update"
|
149
|
-
: getPortalUrl(requestOptions) + "/content/users/" + owner + "/items/" + requestOptions.item.id + "/update";
|
150
|
-
// serialize the item into something Portal will accept
|
151
|
-
requestOptions.params = __assign(__assign({}, requestOptions.params), serializeItem(requestOptions.item));
|
152
|
-
// convert extent, if present, into a string from bbox
|
153
|
-
// processParams was previously doing this sort of work,
|
154
|
-
// however now we need to let array of arrays through
|
155
|
-
// Thus for extents we need to move this logic here
|
156
|
-
if (requestOptions.params.extent && isBBox(requestOptions.params.extent)) {
|
157
|
-
requestOptions.params.extent = bboxToString(requestOptions.params.extent);
|
158
|
-
}
|
159
|
-
/* istanbul ignore if */
|
160
|
-
if (requestOptions.params.file &&
|
161
|
-
requestOptions.params.file.constructor &&
|
162
|
-
requestOptions.params.file.constructor.name === 'ReadStream') {
|
163
|
-
// dataSize is not an official parameter for the ArcGIS REST API but is needed
|
164
|
-
// to encode the ReadStream with an appropriate length. This is to overcome
|
165
|
-
// the form-data library bug:
|
166
|
-
// https://github.com/form-data/form-data/issues/508
|
167
|
-
requestOptions.params.dataSize = requestOptions.dataSize;
|
168
|
-
}
|
169
|
-
return restHelpersGet.request(url, requestOptions);
|
170
|
-
});
|
171
|
-
}
|
172
|
-
/**
|
173
|
-
* ```js
|
174
|
-
* import { updateItemResource } from "@esri/arcgis-rest-portal";
|
175
|
-
* //
|
176
|
-
* updateItemResource({
|
177
|
-
* id: '3ef',
|
178
|
-
* resource: file,
|
179
|
-
* name: 'bigkahuna.jpg',
|
180
|
-
* authentication
|
181
|
-
* })
|
182
|
-
* .then(response)
|
183
|
-
* ```
|
184
|
-
* Update a resource associated with an item. See the [REST Documentation](https://developers.arcgis.com/rest/users-groups-and-items/update-resources.htm) for more information.
|
185
|
-
*
|
186
|
-
* @param requestOptions - Options for the request
|
187
|
-
* @returns A Promise that updates an item resource.
|
188
|
-
*/
|
189
|
-
function updateItemResource(requestOptions) {
|
190
|
-
return determineOwner(requestOptions).then(function (owner) {
|
191
|
-
var url = getPortalUrl(requestOptions) + "/content/users/" + owner + "/items/" + requestOptions.id + "/updateResources";
|
192
|
-
// mix in user supplied params
|
193
|
-
requestOptions.params = __assign({ file: requestOptions.resource, fileName: requestOptions.name, resourcesPrefix: requestOptions.prefix, text: requestOptions.content }, requestOptions.params);
|
194
|
-
// only override the access specified previously if 'private' is passed explicitly
|
195
|
-
if (typeof requestOptions.private !== "undefined") {
|
196
|
-
requestOptions.params.access = requestOptions.private
|
197
|
-
? "private"
|
198
|
-
: "inherit";
|
199
|
-
}
|
200
|
-
return restHelpersGet.request(url, requestOptions);
|
201
|
-
});
|
202
|
-
}
|
203
|
-
|
204
|
-
/* Copyright (c) 2018 Environmental Systems Research Institute, Inc.
|
205
|
-
* Apache-2.0 */
|
206
|
-
/**
|
207
|
-
* ```js
|
208
|
-
* import { addItemResource } from "@esri/arcgis-rest-portal";
|
209
|
-
* //
|
210
|
-
* // Add a file resource
|
211
|
-
* addItemResource({
|
212
|
-
* id: '3ef',
|
213
|
-
* resource: file,
|
214
|
-
* name: 'bigkahuna.jpg',
|
215
|
-
* authentication
|
216
|
-
* })
|
217
|
-
* .then(response)
|
218
|
-
* //
|
219
|
-
* // Add a text resource
|
220
|
-
* addItemResource({
|
221
|
-
* id: '4fg',
|
222
|
-
* content: "Text content",
|
223
|
-
* name: 'bigkahuna.txt',
|
224
|
-
* authentication
|
225
|
-
* })
|
226
|
-
* .then(response)
|
227
|
-
* ```
|
228
|
-
* Add a resource associated with an item. See the [REST Documentation](https://developers.arcgis.com/rest/users-groups-and-items/add-resources.htm) for more information.
|
229
|
-
*
|
230
|
-
* @param requestOptions - Options for the request
|
231
|
-
* @returns A Promise to add item resources.
|
232
|
-
*/
|
233
|
-
function addItemResource(requestOptions) {
|
234
|
-
return determineOwner(requestOptions).then(function (owner) {
|
235
|
-
var url = getPortalUrl(requestOptions) + "/content/users/" + owner + "/items/" + requestOptions.id + "/addResources";
|
236
|
-
requestOptions.params = __assign({ file: requestOptions.resource, fileName: requestOptions.name, resourcesPrefix: requestOptions.prefix, text: requestOptions.content, access: requestOptions.private ? "private" : "inherit" }, requestOptions.params);
|
237
|
-
return restHelpersGet.request(url, requestOptions);
|
238
|
-
});
|
239
|
-
}
|
240
|
-
|
241
|
-
/* Copyright (c) 2018 Environmental Systems Research Institute, Inc.
|
242
|
-
* Apache-2.0 */
|
243
|
-
/**
|
244
|
-
* Remove a resource associated with an item
|
245
|
-
*
|
246
|
-
* @param requestOptions - Options for the request
|
247
|
-
* @returns A Promise that deletes an item resource.
|
248
|
-
*/
|
249
|
-
function removeItemResource(requestOptions) {
|
250
|
-
return determineOwner(requestOptions).then(function (owner) {
|
251
|
-
var url = getPortalUrl(requestOptions) + "/content/users/" + owner + "/items/" + requestOptions.id + "/removeResources";
|
252
|
-
// mix in user supplied params
|
253
|
-
requestOptions.params = __assign(__assign({}, requestOptions.params), { resource: requestOptions.resource });
|
254
|
-
// only override the deleteAll param specified previously if it is passed explicitly
|
255
|
-
if (typeof requestOptions.deleteAll !== "undefined") {
|
256
|
-
requestOptions.params.deleteAll = requestOptions.deleteAll;
|
257
|
-
}
|
258
|
-
return restHelpersGet.request(url, requestOptions);
|
259
|
-
});
|
260
|
-
}
|
261
|
-
|
262
|
-
/* Copyright (c) 2018-2019 Environmental Systems Research Institute, Inc.
|
263
|
-
* Apache-2.0 */
|
264
|
-
/**
|
265
|
-
* Returns an array with arrays of the given size.
|
266
|
-
*
|
267
|
-
* @param arr Array to split
|
268
|
-
* @param size Size of every group
|
269
|
-
*/
|
270
|
-
function chunkArray(arr, size) {
|
271
|
-
const results = [];
|
272
|
-
let index = 0;
|
273
|
-
while (index < arr.length) {
|
274
|
-
results.push(arr.slice(index, index + size));
|
275
|
-
index += size;
|
276
|
-
}
|
277
|
-
return results;
|
278
|
-
}
|
279
|
-
|
280
|
-
/** @license
|
281
|
-
* Copyright 2018 Esri
|
282
|
-
*
|
283
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
284
|
-
* you may not use this file except in compliance with the License.
|
285
|
-
* You may obtain a copy of the License at
|
286
|
-
*
|
287
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
288
|
-
*
|
289
|
-
* Unless required by applicable law or agreed to in writing, software
|
290
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
291
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
292
|
-
* See the License for the specific language governing permissions and
|
293
|
-
* limitations under the License.
|
294
|
-
*/
|
295
|
-
/**
|
296
|
-
* Updates an item.
|
297
|
-
*
|
298
|
-
* @param itemInfo The base info of an item; note that this content will be serialized, which doesn't work
|
299
|
-
* for binary content
|
300
|
-
* @param authentication Credentials for request
|
301
|
-
* @param folderId Item's folder
|
302
|
-
* @param additionalParams Updates that are put under the `params` property, which is not serialized
|
303
|
-
* @return
|
304
|
-
*/
|
305
|
-
function updateItem(itemInfo, authentication, folderId, additionalParams) {
|
306
|
-
return new Promise((resolve, reject) => {
|
307
|
-
const updateOptions = {
|
308
|
-
item: itemInfo,
|
309
|
-
folderId: folderId,
|
310
|
-
authentication: authentication,
|
311
|
-
params: {
|
312
|
-
...(additionalParams ?? {}),
|
313
|
-
},
|
314
|
-
};
|
315
|
-
updateItem$1(updateOptions).then((response) => (response.success ? resolve(response) : reject(response)), (err) => reject(err));
|
316
|
-
});
|
317
|
-
}
|
318
|
-
|
319
|
-
/** @license
|
320
|
-
* Copyright 2021 Esri
|
321
|
-
*
|
322
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
323
|
-
* you may not use this file except in compliance with the License.
|
324
|
-
* You may obtain a copy of the License at
|
325
|
-
*
|
326
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
327
|
-
*
|
328
|
-
* Unless required by applicable law or agreed to in writing, software
|
329
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
330
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
331
|
-
* See the License for the specific language governing permissions and
|
332
|
-
* limitations under the License.
|
333
|
-
*/
|
334
|
-
// ------------------------------------------------------------------------------------------------------------------ //
|
335
|
-
/**
|
336
|
-
* Generates IAssociatedFileCopyResults object.
|
337
|
-
*
|
338
|
-
* @param fileInfo Info about item that was to be copied
|
339
|
-
* @param fetchedFromSource Status of fetching item from source
|
340
|
-
* @param copiedToDestination Status of copying item to destination
|
341
|
-
* @returns IAssociatedFileCopyResults object
|
342
|
-
*/
|
343
|
-
function createCopyResults(fileInfo, fetchedFromSource, copiedToDestination) {
|
344
|
-
return {
|
345
|
-
...fileInfo,
|
346
|
-
fetchedFromSource,
|
347
|
-
copiedToDestination,
|
348
|
-
};
|
349
|
-
}
|
350
|
-
|
351
|
-
/** @license
|
352
|
-
* Copyright 2020 Esri
|
353
|
-
*
|
354
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
355
|
-
* you may not use this file except in compliance with the License.
|
356
|
-
* You may obtain a copy of the License at
|
357
|
-
*
|
358
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
359
|
-
*
|
360
|
-
* Unless required by applicable law or agreed to in writing, software
|
361
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
362
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
363
|
-
* See the License for the specific language governing permissions and
|
364
|
-
* limitations under the License.
|
365
|
-
*/
|
366
|
-
/**
|
367
|
-
* Extracts an item's resource folder and filename from the filename used to store a copy in a storage item.
|
368
|
-
*
|
369
|
-
* @param storageResourceFilename Filename used to store the resource, metadata, or thumbnail of an item
|
370
|
-
* @param storageVersion Version of the Solution template
|
371
|
-
* @returns Folder and filename for storing information in an item, as well as the type (resource, metadata,
|
372
|
-
* or thumbnail) of the information; the folder property is only meaningful for the resource type
|
373
|
-
* @see generateResourceStorageFilename
|
374
|
-
* @see generateMetadataStorageFilename
|
375
|
-
* @see generateThumbnailStorageFilename
|
376
|
-
* @see convertItemResourceToStorageResource
|
377
|
-
*/
|
378
|
-
function convertStorageResourceToItemResource(storageResourceFilename, storageVersion = 0) {
|
379
|
-
const nameParts = storageResourceFilename.split("/");
|
380
|
-
let filename = nameParts.pop();
|
381
|
-
let folder = "";
|
382
|
-
const firstPrefixPart = nameParts.shift(); // undefined if there's no folder
|
383
|
-
// Handle special "folders"
|
384
|
-
let type = solutionResource.EFileType.Resource;
|
385
|
-
if (firstPrefixPart) {
|
386
|
-
if (firstPrefixPart.endsWith("_info_thumbnail")) {
|
387
|
-
type = solutionResource.EFileType.Thumbnail;
|
388
|
-
}
|
389
|
-
else if (firstPrefixPart.endsWith("_info_metadata")) {
|
390
|
-
type = solutionResource.EFileType.Metadata;
|
391
|
-
filename = "metadata.xml";
|
392
|
-
}
|
393
|
-
else if (firstPrefixPart.endsWith("_info_data")) {
|
394
|
-
type = solutionResource.EFileType.Data;
|
395
|
-
}
|
396
|
-
else if (firstPrefixPart.endsWith("_info_dataz")) {
|
397
|
-
filename = filename.replace(/\.zip$/, "");
|
398
|
-
type = solutionResource.EFileType.Data;
|
399
|
-
// Otherwise, strip off item id
|
400
|
-
}
|
401
|
-
else if (storageVersion < 1) {
|
402
|
-
// Version 0
|
403
|
-
const folderStart = firstPrefixPart.indexOf("_");
|
404
|
-
if (folderStart > 0) {
|
405
|
-
folder = firstPrefixPart.substr(folderStart + 1);
|
406
|
-
}
|
407
|
-
}
|
408
|
-
else {
|
409
|
-
// Version ≥ 1
|
410
|
-
folder = nameParts.join("/"); // folder is optional, in which case this will be ""
|
411
|
-
}
|
412
|
-
}
|
413
|
-
return { type, folder, filename };
|
414
|
-
}
|
415
|
-
|
416
|
-
/** @license
|
417
|
-
* Copyright 2021 Esri
|
418
|
-
*
|
419
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
420
|
-
* you may not use this file except in compliance with the License.
|
421
|
-
* You may obtain a copy of the License at
|
422
|
-
*
|
423
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
424
|
-
*
|
425
|
-
* Unless required by applicable law or agreed to in writing, software
|
426
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
427
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
428
|
-
* See the License for the specific language governing permissions and
|
429
|
-
* limitations under the License.
|
430
|
-
*/
|
431
|
-
// ------------------------------------------------------------------------------------------------------------------ //
|
432
|
-
/**
|
433
|
-
* Copies a resource into a zipfile.
|
434
|
-
*
|
435
|
-
* @param file Information about the source and destination of the file such as its URL, folder, filename
|
436
|
-
* @param zipInfo Information about a zipfile such as its name and its zip object
|
437
|
-
* @returns The result of the copy
|
438
|
-
*/
|
439
|
-
function copyResourceIntoZip(file, zipInfo) {
|
440
|
-
// Add it to the zip
|
441
|
-
if (file.folder) {
|
442
|
-
zipInfo.zip.folder(file.folder).file(file.filename, file.file, { binary: true });
|
443
|
-
}
|
444
|
-
else {
|
445
|
-
zipInfo.zip.file(file.filename, file.file, { binary: true });
|
446
|
-
}
|
447
|
-
zipInfo.filelist.push(file);
|
448
|
-
return createCopyResults(file, true);
|
449
|
-
}
|
450
|
-
|
451
|
-
/** @license
|
452
|
-
* Copyright 2021 Esri
|
453
|
-
*
|
454
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
455
|
-
* you may not use this file except in compliance with the License.
|
456
|
-
* You may obtain a copy of the License at
|
457
|
-
*
|
458
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
459
|
-
*
|
460
|
-
* Unless required by applicable law or agreed to in writing, software
|
461
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
462
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
463
|
-
* See the License for the specific language governing permissions and
|
464
|
-
* limitations under the License.
|
465
|
-
*/
|
466
|
-
// ------------------------------------------------------------------------------------------------------------------ //
|
467
|
-
/**
|
468
|
-
* Copies a zipfile into an AGO item.
|
469
|
-
*
|
470
|
-
* @param zipInfo Information about a zipfile such as its name and its zip object
|
471
|
-
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
472
|
-
* @param destinationAuthentication Credentials for the request to the storage
|
473
|
-
* @returns A promise which resolves to the result of the copy
|
474
|
-
*/
|
475
|
-
function copyZipIntoItem(zipInfo, destinationItemId, destinationAuthentication) {
|
476
|
-
return new Promise((resolve) => {
|
477
|
-
zipInfo.zip
|
478
|
-
.generateAsync({ type: "blob" })
|
479
|
-
.then((content) => {
|
480
|
-
return restHelpersGet.blobToFile(content, zipInfo.filename, "application/zip");
|
481
|
-
})
|
482
|
-
.then((zipfile) => {
|
483
|
-
const addResourceOptions = {
|
484
|
-
id: destinationItemId,
|
485
|
-
resource: zipfile,
|
486
|
-
authentication: destinationAuthentication,
|
487
|
-
params: {
|
488
|
-
archive: true,
|
489
|
-
},
|
490
|
-
};
|
491
|
-
return addItemResource(addResourceOptions);
|
492
|
-
})
|
493
|
-
.then(() => resolve(createCopyResults(zipInfo, true, true)), () => resolve(createCopyResults(zipInfo, true, false)));
|
494
|
-
});
|
495
|
-
}
|
496
|
-
|
497
|
-
/** @license
|
498
|
-
* Copyright 2021 Esri
|
499
|
-
*
|
500
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
501
|
-
* you may not use this file except in compliance with the License.
|
502
|
-
* You may obtain a copy of the License at
|
503
|
-
*
|
504
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
505
|
-
*
|
506
|
-
* Unless required by applicable law or agreed to in writing, software
|
507
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
508
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
509
|
-
* See the License for the specific language governing permissions and
|
510
|
-
* limitations under the License.
|
511
|
-
*/
|
512
|
-
// ------------------------------------------------------------------------------------------------------------------ //
|
513
|
-
/**
|
514
|
-
* Copies the files for storing the resources, metadata, and thumbnail of an item or group to a storage item
|
515
|
-
* with a specified path by collecting files into zip files.
|
516
|
-
*
|
517
|
-
* @param files List of item files' URLs and folder/filenames for storing the files
|
518
|
-
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
519
|
-
* @param destinationAuthentication Credentials for the request to the storage
|
520
|
-
* @param filesPerZip Number of files to include per zip file; AGO limits zips to 50 files
|
521
|
-
* @returns A promise which resolves to a list of the result of the copies
|
522
|
-
*/
|
523
|
-
function copyFilesAsResources(files, destinationItemId, destinationAuthentication, filesPerZip = 40) {
|
524
|
-
return new Promise((resolve) => {
|
525
|
-
let awaitAllItems = [];
|
526
|
-
const zipInfos = [];
|
527
|
-
if (files.length > 0) {
|
528
|
-
// Bundle the resources into chunked zip updates because AGO tends to have problems with
|
529
|
-
// many updates in a row to the same item: it claims success despite randomly failing.
|
530
|
-
// Note that AGO imposes a limit of 50 files per zip, so we break the list of resource
|
531
|
-
// file info into chunks below this threshold and start a zip for each
|
532
|
-
// https://developers.arcgis.com/rest/users-groups-and-items/add-resources.htm
|
533
|
-
const chunkedResourceFiles = chunkArray(files, filesPerZip);
|
534
|
-
chunkedResourceFiles.forEach((chunk, index) => {
|
535
|
-
// Create a zip for this chunk
|
536
|
-
const zipInfo = {
|
537
|
-
filename: `resources${index}.zip`,
|
538
|
-
zip: new solutionResource.JSZip(),
|
539
|
-
filelist: [],
|
540
|
-
};
|
541
|
-
awaitAllItems = awaitAllItems.concat(chunk.map((file) => copyResourceIntoZip(file, zipInfo)));
|
542
|
-
zipInfos.push(zipInfo);
|
543
|
-
});
|
544
|
-
}
|
545
|
-
if (awaitAllItems.length > 0) {
|
546
|
-
// Wait until the Resource zip file(s) are prepared
|
547
|
-
void Promise.all(awaitAllItems).then((results) => {
|
548
|
-
// We have three types of results:
|
549
|
-
// | fetchedFromSource | copiedToDestination | interpretation | |
|
550
|
-
// +-------------------+---------------------+------------------------------------------------+
|
551
|
-
// | false | * | could not fetch file from source |
|
552
|
-
// | true | true | file has been fetched and sent to AGO |
|
553
|
-
// | true | undefined | file has been fetched and will be sent via zip |
|
554
|
-
// Filter out copiedToDestination===undefined; we'll get their status when we send their zip
|
555
|
-
results = results.filter((result) => !(result.fetchedFromSource && typeof result.copiedToDestination === "undefined"));
|
556
|
-
// Now send the resources to AGO
|
557
|
-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
558
|
-
_copyAssociatedFileZips(zipInfos, destinationItemId, destinationAuthentication).then((zipResults) => {
|
559
|
-
resolve(results.concat(zipResults));
|
560
|
-
});
|
561
|
-
});
|
562
|
-
}
|
563
|
-
else {
|
564
|
-
// No data, metadata, or resources to send; we're done
|
565
|
-
resolve([]);
|
566
|
-
}
|
567
|
-
});
|
568
|
-
}
|
569
|
-
/**
|
570
|
-
* Copies one or more zipfiles to a storage item.
|
571
|
-
*
|
572
|
-
* @param zipInfos List of zip files containing files to store
|
573
|
-
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
574
|
-
* @param destinationAuthentication Credentials for the request to the storage
|
575
|
-
* @returns A promise which resolves to a list of the result of the copies
|
576
|
-
* @private
|
577
|
-
*/
|
578
|
-
function _copyAssociatedFileZips(zipInfos, destinationItemId, destinationAuthentication) {
|
579
|
-
return new Promise((resolve) => {
|
580
|
-
const results = [];
|
581
|
-
// Filter out empty zips, which can happen when none of the files in the chunk going into a zip
|
582
|
-
// can be fetched; e.g., the only file is metadata.xml, and the source item doesn't have metadata
|
583
|
-
const nonEmptyZipInfos = zipInfos.filter((zipInfo) => Object.keys(zipInfo.zip.files).length > 0);
|
584
|
-
if (nonEmptyZipInfos.length > 0) {
|
585
|
-
// Send the zip(s) to AGO
|
586
|
-
void _sendZipsSeriallyToItem(nonEmptyZipInfos, destinationItemId, destinationAuthentication).then((zipResults) => {
|
587
|
-
resolve(zipResults);
|
588
|
-
});
|
589
|
-
}
|
590
|
-
else {
|
591
|
-
// No resources to send; we're done
|
592
|
-
resolve(results);
|
593
|
-
}
|
594
|
-
});
|
595
|
-
}
|
596
|
-
/**
|
597
|
-
* Copies one or more zipfiles to a storage item in a serial fashion, waiting a bit between sends.
|
598
|
-
*
|
599
|
-
* @param zipInfos List of zip files containing files to store
|
600
|
-
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
601
|
-
* @param destinationAuthentication Credentials for the request to the storage
|
602
|
-
* @returns A promise which resolves to a list of the result of the copies
|
603
|
-
*/
|
604
|
-
function _sendZipsSeriallyToItem(zipInfos, destinationItemId, destinationAuthentication) {
|
605
|
-
return new Promise((resolve) => {
|
606
|
-
let allResults = [];
|
607
|
-
// Remove zip from bottom of list
|
608
|
-
const zipInfoToSend = zipInfos.pop();
|
609
|
-
// Send predecessors in list
|
610
|
-
let sendOthersPromise = Promise.resolve([]);
|
611
|
-
if (zipInfos.length > 0) {
|
612
|
-
sendOthersPromise = _sendZipsSeriallyToItem(zipInfos, destinationItemId, destinationAuthentication);
|
613
|
-
}
|
614
|
-
void sendOthersPromise
|
615
|
-
.then((response) => {
|
616
|
-
allResults = response;
|
617
|
-
// Stall a little to give AGO time to catch up
|
618
|
-
return new Promise((resolveSleep) => {
|
619
|
-
setTimeout(() => resolveSleep(), 1000);
|
620
|
-
});
|
621
|
-
})
|
622
|
-
.then(() => {
|
623
|
-
// Now send the zip removed from bottom of the input list
|
624
|
-
return copyZipIntoItem(zipInfoToSend, destinationItemId, destinationAuthentication);
|
625
|
-
})
|
626
|
-
.then((zipResult) => {
|
627
|
-
// Save the result of copying this zip as a status for each of the files that it contains
|
628
|
-
zipResult.filelist.forEach((fileInfo) => {
|
629
|
-
allResults.push(createCopyResults(fileInfo, true, zipResult.copiedToDestination));
|
630
|
-
});
|
631
|
-
resolve(allResults);
|
632
|
-
});
|
633
|
-
});
|
634
|
-
}
|
635
|
-
|
636
|
-
/** @license
|
637
|
-
* Copyright 2018 Esri
|
638
|
-
*
|
639
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
640
|
-
* you may not use this file except in compliance with the License.
|
641
|
-
* You may obtain a copy of the License at
|
642
|
-
*
|
643
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
644
|
-
*
|
645
|
-
* Unless required by applicable law or agreed to in writing, software
|
646
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
647
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
648
|
-
* See the License for the specific language governing permissions and
|
649
|
-
* limitations under the License.
|
650
|
-
*/
|
651
|
-
/**
|
652
|
-
* Copies the files for storing the resources, metadata, and thumbnail of an item or group to a storage item
|
653
|
-
* with a specified path.
|
654
|
-
*
|
655
|
-
* @param files List of item files and paths for storing the files
|
656
|
-
* @param storageItemId Id of item to receive copy of resource/metadata
|
657
|
-
* @param storageAuthentication Credentials for the request to the storage
|
658
|
-
* @returns A promise which resolves to a list of the filenames under which the resource/metadata are stored
|
659
|
-
*/
|
660
|
-
function copyFilesToStorageItem(files, storageItemId, storageAuthentication) {
|
661
|
-
return new Promise((resolve) => {
|
662
|
-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
663
|
-
void copyFilesAsResources(files, storageItemId, storageAuthentication).then((results) => {
|
664
|
-
resolve(results
|
665
|
-
// Filter out failures
|
666
|
-
.filter((result) => result.fetchedFromSource && result.copiedToDestination)
|
667
|
-
// Return folder and filename in storage item's resources
|
668
|
-
.map((result) => result.folder + "/" + result.filename));
|
669
|
-
});
|
670
|
-
});
|
671
|
-
}
|
672
|
-
/**
|
673
|
-
* Generates the URL for reading an item's resource given the filename of the resource.
|
674
|
-
*
|
675
|
-
* @param sourcePortalSharingUrl Server/sharing
|
676
|
-
* @param itemId Id of item
|
677
|
-
* @param sourceResourceFilename Either filename or folder/filename to resource
|
678
|
-
* @returns URL string
|
679
|
-
*/
|
680
|
-
function generateSourceResourceUrl(sourcePortalSharingUrl, itemId, sourceResourceFilename) {
|
681
|
-
return (restHelpersGet.checkUrlPathTermination(sourcePortalSharingUrl) + "content/items/" + itemId + "/resources/" + sourceResourceFilename);
|
682
|
-
}
|
683
|
-
/**
|
684
|
-
* Generates a list of full URLs and folder/filename combinations used to store the resources, metadata,
|
685
|
-
* and thumbnail of an item.
|
686
|
-
*
|
687
|
-
* @param portalSharingUrl Server/sharing
|
688
|
-
* @param storageItemId Id of storage item
|
689
|
-
* @param resourceFilenames List of resource filenames for an item, e.g., ["file1", "myFolder/file2"]
|
690
|
-
* @param storageVersion Version of the Solution template
|
691
|
-
* @returns List of item files' URLs and folder/filenames for storing the files
|
692
|
-
*/
|
693
|
-
function generateStorageFilePaths(portalSharingUrl, storageItemId, resourceFilenames = [], storageVersion = 0) {
|
694
|
-
return resourceFilenames.map((resourceFilename) => {
|
695
|
-
return {
|
696
|
-
url: generateSourceResourceUrl(portalSharingUrl, storageItemId, resourceFilename),
|
697
|
-
...convertStorageResourceToItemResource(resourceFilename, storageVersion),
|
698
|
-
};
|
699
|
-
});
|
700
|
-
}
|
701
|
-
function isSupportedFileType(filename) {
|
702
|
-
// Supported file formats are: .json, .xml, .txt, .png, .pbf, .zip, .jpeg, .jpg, .gif, .bmp, .gz, .svg,
|
703
|
-
// .svgz, .geodatabase (https://developers.arcgis.com/rest/users-groups-and-items/add-resources.htm)
|
704
|
-
const filenameExtension = filename.match(/\.([a-z]+)$/i);
|
705
|
-
const supportedExtensions = "|.json|.xml|.txt|.png|.pbf|.zip|.jpeg|.jpg|.gif|.bmp|.gz|.svg|.svgz|.geodatabase|";
|
706
|
-
return !!filenameExtension && supportedExtensions.indexOf("|" + filenameExtension[0] + "|") >= 0;
|
707
|
-
}
|
708
|
-
/**
|
709
|
-
* Gets the thumbnail of an item or group.
|
710
|
-
*
|
711
|
-
* @param authentication Credentials for the request to the storage
|
712
|
-
* @param filePaths List of item files' URLs and folder/filenames for storing the files
|
713
|
-
* @returns A promise which resolves to a boolean indicating if the copies were successful
|
714
|
-
*/
|
715
|
-
function getThumbnailFromStorageItem(authentication, filePaths) {
|
716
|
-
let thumbnailUrl;
|
717
|
-
let thumbnailFilename;
|
718
|
-
filePaths.forEach((path) => {
|
719
|
-
if (path.type === solutionResource.EFileType.Thumbnail) {
|
720
|
-
thumbnailUrl = path.url;
|
721
|
-
thumbnailFilename = path.filename;
|
722
|
-
}
|
723
|
-
});
|
724
|
-
if (!thumbnailUrl) {
|
725
|
-
return Promise.resolve(null);
|
726
|
-
}
|
727
|
-
return restHelpersGet.getThumbnailFile(thumbnailUrl, thumbnailFilename, authentication);
|
728
|
-
}
|
729
|
-
/**
|
730
|
-
* Removes the item's resource that matches the filename with new content
|
731
|
-
*
|
732
|
-
* @param itemId Id of the item to remove
|
733
|
-
* @param filename Name of the resource file to remove
|
734
|
-
* @param authentication Credentials for the request to the storage
|
735
|
-
* @returns A promise which resolves with a success true/false response
|
736
|
-
*/
|
737
|
-
function removeItemResourceFile(itemId, filename, authentication) {
|
738
|
-
return removeItemResource({
|
739
|
-
id: itemId,
|
740
|
-
resource: filename,
|
741
|
-
authentication: authentication,
|
742
|
-
});
|
743
|
-
}
|
744
|
-
/**
|
745
|
-
* Updates the item's resource that matches the filename with new content
|
746
|
-
*
|
747
|
-
* @param itemId Id of the item to update
|
748
|
-
* @param filename Name of the resource file to update; prefix optional (e.g., a/b/file.txt)
|
749
|
-
* @param resource The new content to update the resource with
|
750
|
-
* @param authentication Credentials for the request to the storage
|
751
|
-
* @returns A promise which resolves with a success true/false response
|
752
|
-
*/
|
753
|
-
function updateItemResourceFile(itemId, filename, resource, authentication) {
|
754
|
-
// Prefix has to be specified separately
|
755
|
-
const prefixedFilenameParts = filename.split("/");
|
756
|
-
const prefix = prefixedFilenameParts.length > 1
|
757
|
-
? prefixedFilenameParts.slice(0, prefixedFilenameParts.length - 1).join("/")
|
758
|
-
: undefined;
|
759
|
-
const suffix = prefixedFilenameParts[prefixedFilenameParts.length - 1];
|
760
|
-
return updateItemResource({
|
761
|
-
id: itemId,
|
762
|
-
prefix: prefix,
|
763
|
-
name: suffix,
|
764
|
-
resource,
|
765
|
-
authentication: authentication,
|
766
|
-
});
|
767
|
-
}
|
768
|
-
|
769
|
-
/** @license
|
770
|
-
* Copyright 2022 Esri
|
771
|
-
*
|
772
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
773
|
-
* you may not use this file except in compliance with the License.
|
774
|
-
* You may obtain a copy of the License at
|
775
|
-
*
|
776
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
777
|
-
*
|
778
|
-
* Unless required by applicable law or agreed to in writing, software
|
779
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
780
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
781
|
-
* See the License for the specific language governing permissions and
|
782
|
-
* limitations under the License.
|
783
|
-
*/
|
784
|
-
const EmptySolutionStore = {
|
785
|
-
solutionItemId: "",
|
786
|
-
defaultWkid: undefined,
|
787
|
-
solutionData: { metadata: {}, templates: [] },
|
788
|
-
templateEdits: {},
|
789
|
-
featureServices: [],
|
790
|
-
spatialReferenceInfo: {
|
791
|
-
enabled: false,
|
792
|
-
services: {}
|
793
|
-
}
|
794
|
-
};
|
795
|
-
class SolutionStore {
|
796
|
-
static _instance;
|
797
|
-
_store;
|
798
|
-
_hasChanges = false;
|
799
|
-
_authentication;
|
800
|
-
/**
|
801
|
-
* Creates singleton instance when accessed; default export from module.
|
802
|
-
*
|
803
|
-
* @returns Static instance of the class
|
804
|
-
*/
|
805
|
-
static get Store() {
|
806
|
-
return this._instance || (this._instance = new this());
|
807
|
-
}
|
808
|
-
/**
|
809
|
-
* Creates an empty store.
|
810
|
-
*
|
811
|
-
* @protected
|
812
|
-
*/
|
813
|
-
constructor() {
|
814
|
-
this._store = index.createStore({
|
815
|
-
...EmptySolutionStore
|
816
|
-
});
|
817
|
-
}
|
818
|
-
/**
|
819
|
-
* Returns the stored information of an item.
|
820
|
-
*
|
821
|
-
* @param itemId Id of item to fetch
|
822
|
-
*
|
823
|
-
* @returns Item information or `undefined` if not found
|
824
|
-
*/
|
825
|
-
getItemInfo(itemId) {
|
826
|
-
const templates = this._store.get("solutionData").templates;
|
827
|
-
let template;
|
828
|
-
templates.some((t) => {
|
829
|
-
if (itemId == t.itemId) {
|
830
|
-
template = t;
|
831
|
-
return true;
|
832
|
-
}
|
833
|
-
return false;
|
834
|
-
});
|
835
|
-
return template;
|
836
|
-
}
|
837
|
-
/**
|
838
|
-
* Returns a top-level store property: solutionItemId, defaultWkid, etc.
|
839
|
-
*
|
840
|
-
* @param propName Name of property
|
841
|
-
*
|
842
|
-
* @returns Value of property
|
843
|
-
*/
|
844
|
-
getStoreInfo(propName) {
|
845
|
-
return this._store.get(propName);
|
846
|
-
}
|
847
|
-
/**
|
848
|
-
* Loads a Solution into the store from AGO.
|
849
|
-
*
|
850
|
-
* @param solutionItemId Id of the solution represented in the store
|
851
|
-
* @param authentication Credentials for fetching information to be loaded into the store
|
852
|
-
*
|
853
|
-
* @returns Promise that resolves when task is done
|
854
|
-
*/
|
855
|
-
async loadSolution(solutionItemId, authentication) {
|
856
|
-
this._authentication = authentication;
|
857
|
-
const solutionData = await restHelpersGet.getItemDataAsJson(solutionItemId, authentication);
|
858
|
-
if (solutionData) {
|
859
|
-
const defaultWkid = restHelpersGet.getPropWithDefault(solutionData, "params.wkid.default", "");
|
860
|
-
await this._prepareSolutionItemsForEditing(solutionItemId, solutionData.templates, authentication);
|
861
|
-
const featureServices = this._getFeatureServices(solutionData.templates);
|
862
|
-
const spatialReferenceInfo = this._getSpatialReferenceInfo(featureServices, defaultWkid);
|
863
|
-
this._store.set("solutionItemId", solutionItemId);
|
864
|
-
this._store.set("defaultWkid", defaultWkid);
|
865
|
-
this._store.set("solutionData", solutionData);
|
866
|
-
this._store.set("featureServices", featureServices);
|
867
|
-
this._store.set("spatialReferenceInfo", spatialReferenceInfo);
|
868
|
-
}
|
869
|
-
this._flagStoreHasChanges(false);
|
870
|
-
}
|
871
|
-
/**
|
872
|
-
* Queues the replacement of the thumbnail associated with a template item in the store.
|
873
|
-
*
|
874
|
-
* @param itemEdit Details of the template to modify, containing the new thumbnail in the `thumbnail`
|
875
|
-
* property
|
876
|
-
*/
|
877
|
-
replaceItemThumbnail(itemEdit) {
|
878
|
-
// Flag the current thumbnail and any replacements for removal
|
879
|
-
itemEdit.resourceFilePaths.forEach((path) => {
|
880
|
-
if (path.type === solutionResource.EFileType.Thumbnail) {
|
881
|
-
if (path.updateType === interfaces.EUpdateType.None) {
|
882
|
-
// Existing thumbnail not yet flagged for removal
|
883
|
-
path.updateType = interfaces.EUpdateType.Remove;
|
884
|
-
}
|
885
|
-
else if (path.updateType === interfaces.EUpdateType.Add || path.updateType === interfaces.EUpdateType.Update) {
|
886
|
-
// An earlier replacement
|
887
|
-
path.updateType = interfaces.EUpdateType.Obsolete;
|
888
|
-
}
|
889
|
-
}
|
890
|
-
});
|
891
|
-
// Remove any replacements already queued
|
892
|
-
itemEdit.resourceFilePaths =
|
893
|
-
itemEdit.resourceFilePaths.filter((path) => path.updateType != interfaces.EUpdateType.Obsolete);
|
894
|
-
// Add the new thumbnail to the store item
|
895
|
-
itemEdit.resourceFilePaths.push({
|
896
|
-
blob: itemEdit.thumbnail,
|
897
|
-
filename: itemEdit.thumbnail.name,
|
898
|
-
type: solutionResource.EFileType.Thumbnail,
|
899
|
-
updateType: interfaces.EUpdateType.Add
|
900
|
-
});
|
901
|
-
// Update the store
|
902
|
-
this.setItemInfo(itemEdit);
|
903
|
-
}
|
904
|
-
/**
|
905
|
-
* Writes a Solution into AGO from the store. Must use `loadSolution` to continue with solution.
|
906
|
-
*
|
907
|
-
* @returns Promise that resolves when task is done
|
908
|
-
*/
|
909
|
-
async saveSolution() {
|
910
|
-
// Update the templates in the original solution item data
|
911
|
-
const solutionItemId = this._store.get("solutionItemId");
|
912
|
-
const solutionData = this._store.get("solutionData");
|
913
|
-
const spatialReferenceInfo = this._store.get("spatialReferenceInfo");
|
914
|
-
const featureServices = this._store.get("featureServices");
|
915
|
-
await this._prepareSolutionItemsForStorage(solutionItemId, solutionData.templates, this._authentication);
|
916
|
-
// Update the templates in the solution item data
|
917
|
-
this._updateFSSpatialReferenceInfoInTemplates(featureServices, solutionData.templates);
|
918
|
-
// Update the solution-level information about the spatial reference parameter
|
919
|
-
if (spatialReferenceInfo.enabled) {
|
920
|
-
const solutionSpatialReferenceData = {
|
921
|
-
"label": "Spatial Reference",
|
922
|
-
"valueType": "spatialReference",
|
923
|
-
"attributes": {
|
924
|
-
"required": true
|
925
|
-
}
|
926
|
-
};
|
927
|
-
if (spatialReferenceInfo.default) {
|
928
|
-
solutionSpatialReferenceData.default = spatialReferenceInfo.default;
|
929
|
-
}
|
930
|
-
restHelpersGet.setCreateProp(solutionData, "params.wkid", solutionSpatialReferenceData);
|
931
|
-
}
|
932
|
-
else {
|
933
|
-
restHelpersGet.setCreateProp(solutionData, "params.wkid", {});
|
934
|
-
}
|
935
|
-
const itemInfo = {
|
936
|
-
id: solutionItemId,
|
937
|
-
text: solutionData
|
938
|
-
};
|
939
|
-
await updateItem(itemInfo, this._authentication);
|
940
|
-
}
|
941
|
-
/**
|
942
|
-
* Stores information for item.
|
943
|
-
*
|
944
|
-
* @param itemEdit Item information
|
945
|
-
*/
|
946
|
-
setItemInfo(itemEdit) {
|
947
|
-
const solutionData = this._store.get("solutionData");
|
948
|
-
const templates = solutionData.templates;
|
949
|
-
templates.some((t) => {
|
950
|
-
if (itemEdit.itemId == t.itemId) {
|
951
|
-
t = itemEdit;
|
952
|
-
this._store.set("solutionData", solutionData);
|
953
|
-
this._flagStoreHasChanges(true);
|
954
|
-
return true;
|
955
|
-
}
|
956
|
-
return false;
|
957
|
-
});
|
958
|
-
}
|
959
|
-
/**
|
960
|
-
* Sets a top-level store property: solutionItemId, defaultWkid, etc.
|
961
|
-
*
|
962
|
-
* @param propName Name of property
|
963
|
-
* @param value Value of property
|
964
|
-
*/
|
965
|
-
setStoreInfo(propName, value) {
|
966
|
-
this._store.set(propName, value);
|
967
|
-
this._flagStoreHasChanges(true);
|
968
|
-
}
|
969
|
-
//------------------------------------------------------------------------------------------------------------------//
|
970
|
-
/** Provides access to protected methods for unit testing.
|
971
|
-
*
|
972
|
-
* @param methodName Name of protected method to run
|
973
|
-
* @param arg1 First argument to forward to method, e.g., for "_prepareSolutionItemsForEditing", `solutionItemId`
|
974
|
-
* @param arg2 Second argument to forward to method, e.g., for "_prepareSolutionItemsForEditing", `templates`
|
975
|
-
* @param arg3 Third argument to forward to method, e.g., for "_prepareSolutionItemsForEditing", `authentication`
|
976
|
-
*
|
977
|
-
* @returns
|
978
|
-
*/
|
979
|
-
_testAccess(methodName, arg1, arg2, arg3) {
|
980
|
-
switch (methodName) {
|
981
|
-
case "_emptyTheStore":
|
982
|
-
this._emptyTheStore();
|
983
|
-
break;
|
984
|
-
case "_getFeatureServices":
|
985
|
-
return this._getFeatureServices(arg1);
|
986
|
-
case "_getItemsSharedWithThisGroup":
|
987
|
-
return this._getItemsSharedWithThisGroup(arg1, arg2);
|
988
|
-
case "_getResourceFilePaths":
|
989
|
-
return this._getResourceFilePaths(arg1, arg2, arg3);
|
990
|
-
case "_getResourceStorageName":
|
991
|
-
return this._getResourceStorageName(arg1, arg2);
|
992
|
-
case "_getSpatialReferenceInfo":
|
993
|
-
return this._getSpatialReferenceInfo(arg1, arg2);
|
994
|
-
case "_prepareSolutionItemsForEditing":
|
995
|
-
return this._prepareSolutionItemsForEditing(arg1, arg2, arg3);
|
996
|
-
case "_prepareSolutionItemsForStorage":
|
997
|
-
return this._prepareSolutionItemsForStorage(arg1, arg2, arg3);
|
998
|
-
case "_splitFilename":
|
999
|
-
return this._splitFilename(arg1);
|
1000
|
-
case "_updateFSSpatialReferenceInfoInTemplates":
|
1001
|
-
return this._updateFSSpatialReferenceInfoInTemplates(arg1, arg2);
|
1002
|
-
}
|
1003
|
-
return null;
|
1004
|
-
}
|
1005
|
-
/**
|
1006
|
-
* Returns the store to the empty state.
|
1007
|
-
*
|
1008
|
-
* @protected
|
1009
|
-
*/
|
1010
|
-
_emptyTheStore() {
|
1011
|
-
this._store.set("solutionItemId", EmptySolutionStore.solutionItemId);
|
1012
|
-
this._store.set("defaultWkid", EmptySolutionStore.defaultWkid);
|
1013
|
-
this._store.set("solutionData", EmptySolutionStore.solutionData);
|
1014
|
-
this._store.set("templateEdits", EmptySolutionStore.templateEdits);
|
1015
|
-
this._store.set("featureServices", EmptySolutionStore.featureServices);
|
1016
|
-
this._store.set("spatialReferenceInfo", EmptySolutionStore.spatialReferenceInfo);
|
1017
|
-
}
|
1018
|
-
/**
|
1019
|
-
* Sets the store's flag indicating if it has changes and dispatches an event when
|
1020
|
-
* the flag value changes.
|
1021
|
-
*
|
1022
|
-
* @param flagHasChanges Current state of change in the store; if it doesn't match the value saved in this
|
1023
|
-
* object, an event is dispatched with the new value and the saved value is updated
|
1024
|
-
*
|
1025
|
-
* @protected
|
1026
|
-
*/
|
1027
|
-
_flagStoreHasChanges(flagHasChanges) {
|
1028
|
-
// Event for notifying if the store has changes or not
|
1029
|
-
window.dispatchEvent(new CustomEvent("solutionStoreHasChanges", {
|
1030
|
-
detail: flagHasChanges,
|
1031
|
-
bubbles: true,
|
1032
|
-
cancelable: false,
|
1033
|
-
composed: true
|
1034
|
-
}));
|
1035
|
-
this._hasChanges = flagHasChanges;
|
1036
|
-
}
|
1037
|
-
/**
|
1038
|
-
* Gets a list of Feature Services that are not views.
|
1039
|
-
*
|
1040
|
-
* @param templates A list of item templates from the solution
|
1041
|
-
*
|
1042
|
-
* @returns a list of feature services
|
1043
|
-
*
|
1044
|
-
* @protected
|
1045
|
-
*/
|
1046
|
-
_getCustomizableFeatureServices(templates) {
|
1047
|
-
return templates.reduce((prev, cur) => {
|
1048
|
-
if (cur.type === "Feature Service" && cur.item.typeKeywords.indexOf("View Service") < 0) {
|
1049
|
-
prev.push(cur);
|
1050
|
-
}
|
1051
|
-
return prev;
|
1052
|
-
}, []);
|
1053
|
-
}
|
1054
|
-
/**
|
1055
|
-
* Gets a list of Feature Services that are not views along with an enabled property that indicates
|
1056
|
-
* if the service currently uses a spatial reference variable.
|
1057
|
-
*
|
1058
|
-
* @param templates A list of item templates from the solution
|
1059
|
-
*
|
1060
|
-
* @returns a list of feature service names and an enabled property to indicate
|
1061
|
-
* if they currently use a spatial reference variable.
|
1062
|
-
*
|
1063
|
-
* @protected
|
1064
|
-
*/
|
1065
|
-
_getFeatureServices(templates) {
|
1066
|
-
const customizableFeatureServices = this._getCustomizableFeatureServices(templates);
|
1067
|
-
return customizableFeatureServices.map((fs) => {
|
1068
|
-
const name = fs.item.title || fs.item.name;
|
1069
|
-
const wkid = restHelpersGet.getProp(fs, "properties.service.spatialReference.wkid");
|
1070
|
-
return {
|
1071
|
-
id: fs.itemId,
|
1072
|
-
name,
|
1073
|
-
enabled: wkid.toString().startsWith(interfaces.CSpatialRefCustomizingPrefix),
|
1074
|
-
wkid
|
1075
|
-
};
|
1076
|
-
});
|
1077
|
-
}
|
1078
|
-
/**
|
1079
|
-
* Capture the key item details for a given group template
|
1080
|
-
*
|
1081
|
-
* @param template one of the templates from the current solution
|
1082
|
-
* @param templates full list of templates
|
1083
|
-
*
|
1084
|
-
* @returns a list of IItemShare objects
|
1085
|
-
*
|
1086
|
-
* @protected
|
1087
|
-
*/
|
1088
|
-
_getItemsSharedWithThisGroup(template, templates) {
|
1089
|
-
return templates.reduce((prev, cur) => {
|
1090
|
-
if (cur.itemId !== template.itemId && cur.type !== "Group") {
|
1091
|
-
prev.push({
|
1092
|
-
id: cur.itemId,
|
1093
|
-
title: cur.item.name || cur.item.title,
|
1094
|
-
isShared: (cur.groups || []).indexOf(template.itemId) > -1,
|
1095
|
-
shareItem: (cur.groups || []).indexOf(template.itemId) > -1,
|
1096
|
-
type: cur.type,
|
1097
|
-
typeKeywords: cur.item.typeKeywords
|
1098
|
-
});
|
1099
|
-
}
|
1100
|
-
return prev;
|
1101
|
-
}, []);
|
1102
|
-
}
|
1103
|
-
/**
|
1104
|
-
* Generate storage file paths from the solution template
|
1105
|
-
*
|
1106
|
-
* @param solutionId the id of the current solution
|
1107
|
-
* @param template the current template from the solution
|
1108
|
-
* @param portal Portal where file is to be found
|
1109
|
-
*
|
1110
|
-
* @returns a list of resource file infos
|
1111
|
-
*
|
1112
|
-
* @protected
|
1113
|
-
*/
|
1114
|
-
_getResourceFilePaths(solutionId, template, portal) {
|
1115
|
-
const resourceFilePaths = generateStorageFilePaths(portal, solutionId, template.resources, solutionResource.SolutionTemplateFormatVersion);
|
1116
|
-
return resourceFilePaths.map((fp) => {
|
1117
|
-
fp.updateType = interfaces.EUpdateType.None;
|
1118
|
-
return fp;
|
1119
|
-
});
|
1120
|
-
}
|
1121
|
-
/**
|
1122
|
-
* Generates a resource name from a storage file path.
|
1123
|
-
*
|
1124
|
-
* @param templateItemId The id of the template item whose resource this is; used as a prefix in the resource name
|
1125
|
-
* @param resourcePath Resource file infos
|
1126
|
-
*
|
1127
|
-
* @returns The resource name to use when attaching a resource to the item.
|
1128
|
-
*
|
1129
|
-
* @protected
|
1130
|
-
*/
|
1131
|
-
_getResourceStorageName(templateItemId, resourcePath) {
|
1132
|
-
/* Converts
|
1133
|
-
{
|
1134
|
-
"url": "https://myorg.maps.arcgis.com/sharing/rest/content/items/ca924c6db7d247b9a31fa30532fb5913/resources/79036430a6274e17ae915d0278b8569c_info_metadata/metadata.xml",
|
1135
|
-
"type": 2,
|
1136
|
-
"folder": "",
|
1137
|
-
"filename": "metadata.xml",
|
1138
|
-
"updateType": 3
|
1139
|
-
}
|
1140
|
-
to
|
1141
|
-
ca924c6db7d247b9a31fa30532fb5913_info_metadata/metadata.xml
|
1142
|
-
*/
|
1143
|
-
let prefix = templateItemId;
|
1144
|
-
switch (resourcePath.type) {
|
1145
|
-
case solutionResource.EFileType.Data:
|
1146
|
-
prefix = `${prefix}_info_data`;
|
1147
|
-
break;
|
1148
|
-
case solutionResource.EFileType.Info:
|
1149
|
-
prefix = `${prefix}_info`;
|
1150
|
-
break;
|
1151
|
-
case solutionResource.EFileType.Metadata:
|
1152
|
-
prefix = `${prefix}_info_metadata`;
|
1153
|
-
break;
|
1154
|
-
case solutionResource.EFileType.Resource:
|
1155
|
-
break;
|
1156
|
-
case solutionResource.EFileType.Thumbnail:
|
1157
|
-
prefix = `${prefix}_info_thumbnail`;
|
1158
|
-
break;
|
1159
|
-
}
|
1160
|
-
let filenameToUse = resourcePath.filename;
|
1161
|
-
if (resourcePath.type == solutionResource.EFileType.Data && filenameToUse && !isSupportedFileType(filenameToUse)) {
|
1162
|
-
filenameToUse = filenameToUse + ".zip";
|
1163
|
-
prefix += "z";
|
1164
|
-
}
|
1165
|
-
const filename = resourcePath.folder ? resourcePath.folder + "/" + filenameToUse : filenameToUse;
|
1166
|
-
return prefix + "/" + filename;
|
1167
|
-
}
|
1168
|
-
/**
|
1169
|
-
* Extracts basic spatial reference information that is used to determine if a custom spatial reference parameter will
|
1170
|
-
* be exposed while deploying this solution and if so what feature services will support it and what will the default wkid be
|
1171
|
-
*
|
1172
|
-
* @param services a list of objects with service name and enabled property (indicates if they currently use a spatial reference var)
|
1173
|
-
* @param defaultWkid the default wkid
|
1174
|
-
*
|
1175
|
-
* @returns an object that stores if a custom spatial reference parameter is enabled/disabled,
|
1176
|
-
* a list of services and if they are enabled/disabled, and the default wkid
|
1177
|
-
*
|
1178
|
-
* @protected
|
1179
|
-
*/
|
1180
|
-
_getSpatialReferenceInfo(services, defaultWkid) {
|
1181
|
-
const defaultServices = {};
|
1182
|
-
services.forEach(service => {
|
1183
|
-
defaultServices[service.name] = service.enabled;
|
1184
|
-
});
|
1185
|
-
const spatialReferenceInfo = {
|
1186
|
-
enabled: false,
|
1187
|
-
services: defaultServices
|
1188
|
-
};
|
1189
|
-
if (defaultWkid) {
|
1190
|
-
spatialReferenceInfo.default = defaultWkid;
|
1191
|
-
}
|
1192
|
-
return spatialReferenceInfo;
|
1193
|
-
}
|
1194
|
-
/**
|
1195
|
-
* Create and store template items for the editor.
|
1196
|
-
*
|
1197
|
-
* @param solutionItemId Id of the solution represented in the store
|
1198
|
-
* @param templates A list of item templates from the solution
|
1199
|
-
* @param authentication Credentials for fetching information to be loaded into the store
|
1200
|
-
*
|
1201
|
-
* @returns a promise that resolves when the templates are ready
|
1202
|
-
*
|
1203
|
-
* @protected
|
1204
|
-
*/
|
1205
|
-
async _prepareSolutionItemsForEditing(solutionItemId, templates, authentication) {
|
1206
|
-
const thumbnailPromises = [];
|
1207
|
-
// Augment the template with paths to resources and group information, if relevant
|
1208
|
-
templates.forEach((t) => {
|
1209
|
-
t.resourceFilePaths = this._getResourceFilePaths(solutionItemId, t, authentication.portal);
|
1210
|
-
thumbnailPromises.push(t.resourceFilePaths.length > 0 ?
|
1211
|
-
getThumbnailFromStorageItem(authentication, t.resourceFilePaths) :
|
1212
|
-
Promise.resolve());
|
1213
|
-
t.groupDetails = t.type === "Group" ? this._getItemsSharedWithThisGroup(t, templates) : [];
|
1214
|
-
});
|
1215
|
-
// Augment the template with its thumbnail file
|
1216
|
-
const thumbnails = await Promise.all(thumbnailPromises);
|
1217
|
-
templates.forEach((t, i) => {
|
1218
|
-
t.thumbnail = thumbnails[i] ? thumbnails[i] : undefined;
|
1219
|
-
});
|
1220
|
-
return Promise.resolve();
|
1221
|
-
}
|
1222
|
-
/**
|
1223
|
-
* Prepares template items for sending to AGO by updating the resources held by the solution item.
|
1224
|
-
*
|
1225
|
-
* @param solutionItemId Id of the solution represented in the store
|
1226
|
-
* @param templates A list of item templates from the solution
|
1227
|
-
* @param authentication Credentials for fetching information to be loaded into the store
|
1228
|
-
*
|
1229
|
-
* @returns a promise that resolves when the templates are ready
|
1230
|
-
*
|
1231
|
-
* @protected
|
1232
|
-
*/
|
1233
|
-
async _prepareSolutionItemsForStorage(solutionItemId, templates, authentication) {
|
1234
|
-
const resourceAdds = [];
|
1235
|
-
// Update the resources and remove the augmentation from a template
|
1236
|
-
const pendingTasks = [];
|
1237
|
-
templates.forEach((t) => {
|
1238
|
-
// Run through the resourceFilePaths for the item seeking modifications to be made to the solution item's
|
1239
|
-
// collection of resources; queue them for batching
|
1240
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
1241
|
-
t.resourceFilePaths.forEach(async (path) => {
|
1242
|
-
const storageName = this._getResourceStorageName(t.itemId, path);
|
1243
|
-
switch (path.updateType) {
|
1244
|
-
case interfaces.EUpdateType.Add:
|
1245
|
-
const { prefix, suffix } = this._splitFilename(storageName);
|
1246
|
-
t.resources.push(storageName);
|
1247
|
-
resourceAdds.push({
|
1248
|
-
itemId: t.itemId,
|
1249
|
-
file: path.blob,
|
1250
|
-
folder: prefix,
|
1251
|
-
filename: suffix
|
1252
|
-
});
|
1253
|
-
break;
|
1254
|
-
case interfaces.EUpdateType.Update:
|
1255
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
1256
|
-
pendingTasks.push(new Promise(async (resolve) => {
|
1257
|
-
try {
|
1258
|
-
await updateItemResourceFile(solutionItemId, storageName, path.blob, authentication);
|
1259
|
-
}
|
1260
|
-
catch (err) {
|
1261
|
-
console.log("Unable to update " + storageName + " for item " + t.itemId + ": " + JSON.stringify(err));
|
1262
|
-
}
|
1263
|
-
resolve();
|
1264
|
-
}));
|
1265
|
-
break;
|
1266
|
-
case interfaces.EUpdateType.Remove:
|
1267
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
1268
|
-
pendingTasks.push(new Promise(async (resolve) => {
|
1269
|
-
try {
|
1270
|
-
await removeItemResourceFile(solutionItemId, storageName, authentication);
|
1271
|
-
t.resources = t.resources.filter((path) => path !== storageName);
|
1272
|
-
}
|
1273
|
-
catch (err) {
|
1274
|
-
console.log("Unable to remove " + storageName + " for item " + t.itemId + ": " + JSON.stringify(err));
|
1275
|
-
}
|
1276
|
-
resolve();
|
1277
|
-
}));
|
1278
|
-
break;
|
1279
|
-
}
|
1280
|
-
return Promise.resolve();
|
1281
|
-
});
|
1282
|
-
delete t.resourceFilePaths;
|
1283
|
-
delete t.thumbnail;
|
1284
|
-
delete t.groupDetails;
|
1285
|
-
});
|
1286
|
-
// Update the resources
|
1287
|
-
return Promise.all(pendingTasks)
|
1288
|
-
.then(async () => {
|
1289
|
-
if (resourceAdds.length > 0) {
|
1290
|
-
await copyFilesToStorageItem(resourceAdds, solutionItemId, authentication);
|
1291
|
-
}
|
1292
|
-
return Promise.resolve();
|
1293
|
-
});
|
1294
|
-
}
|
1295
|
-
/**
|
1296
|
-
* Stores basic spatial reference information that is used to determine if a custom spatial reference parameter will
|
1297
|
-
* be exposed while deploying this solution and if so what feature services will support it and what will the default wkid be
|
1298
|
-
*
|
1299
|
-
* @param featureServices The configuration settings for a custom spatial reference by feature service
|
1300
|
-
* @param templates The templates in the current solution, which will be updated in place if
|
1301
|
-
* `spatialReferenceInfo.enabled` is true
|
1302
|
-
*
|
1303
|
-
* @protected
|
1304
|
-
*/
|
1305
|
-
_updateFSSpatialReferenceInfoInTemplates(featureServices, templates) {
|
1306
|
-
const customizableFeatureServices = this._getCustomizableFeatureServices(templates);
|
1307
|
-
// Enable or disable this feature in each service
|
1308
|
-
customizableFeatureServices.forEach((fsTemplate) => {
|
1309
|
-
const fsEnablement = featureServices.find((fs) => fs.id === fsTemplate.itemId);
|
1310
|
-
if (fsEnablement) {
|
1311
|
-
const spatialReference = restHelpersGet.getPropWithDefault(fsTemplate, "properties.service.spatialReference", {});
|
1312
|
-
spatialReference.wkid = fsEnablement.wkid;
|
1313
|
-
if (fsEnablement.enabled && spatialReference.latestWkid) {
|
1314
|
-
delete spatialReference.latestWkid;
|
1315
|
-
}
|
1316
|
-
restHelpersGet.setProp(fsTemplate, "properties.service.spatialReference", spatialReference);
|
1317
|
-
}
|
1318
|
-
});
|
1319
|
-
// Copy the updates back into the templates
|
1320
|
-
templates.forEach((t) => {
|
1321
|
-
const customizedTemplate = customizableFeatureServices.find((fs) => fs.itemId === t.itemId);
|
1322
|
-
if (customizedTemplate) {
|
1323
|
-
t.properties.service.spatialReference = {
|
1324
|
-
...customizedTemplate.properties.service.spatialReference
|
1325
|
-
};
|
1326
|
-
const nWkid = Number.parseInt(t.properties.service.spatialReference.wkid);
|
1327
|
-
if (!isNaN(nWkid)) {
|
1328
|
-
t.properties.service.spatialReference.wkid = nWkid;
|
1329
|
-
}
|
1330
|
-
}
|
1331
|
-
});
|
1332
|
-
}
|
1333
|
-
/**
|
1334
|
-
* Splits a pathed filename into a last term and a prefix; e.g., "a/b/c" returns "c" with a prefix of "a/b".
|
1335
|
-
*
|
1336
|
-
* @param filename Filename with optional path
|
1337
|
-
*
|
1338
|
-
* @returns An object consisting of a `prefix` (undefined if `filename` does not contain a path) and a `suffix`--the
|
1339
|
-
* filename at the end of a path
|
1340
|
-
*
|
1341
|
-
* @protected
|
1342
|
-
*/
|
1343
|
-
_splitFilename(filename) {
|
1344
|
-
const filenameParts = filename.split("/");
|
1345
|
-
return {
|
1346
|
-
prefix: filenameParts.length > 1 ? filenameParts.slice(0, filenameParts.length - 1).join("/") : undefined,
|
1347
|
-
suffix: filenameParts[filenameParts.length - 1]
|
1348
|
-
};
|
1349
|
-
}
|
1350
|
-
}
|
1351
|
-
const state = SolutionStore.Store;
|
1352
|
-
|
1353
|
-
exports.state = state;
|