@esri/solutions-components 0.10.9 → 0.10.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
- package/dist/cjs/buffer-tools_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-alert_4.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_5.cjs.entry.js +4 -4
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-flow_6.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +5 -5
- package/dist/cjs/card-manager_3.cjs.entry.js +5 -5
- package/dist/cjs/{common-61b41813.js → common-4d4cf291.js} +1 -1
- package/dist/cjs/consent-manager.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-manager.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +2 -2
- package/dist/cjs/{downloadUtils-b757205e.js → downloadUtils-60ee99e0.js} +4 -4
- package/dist/cjs/feature-list.cjs.entry.js +6 -6
- package/dist/cjs/{helpers-1deec961.js → helpers-6f7660d4.js} +1 -1
- package/dist/cjs/{index.es-6c8b7d64.js → index.es-38913dfa.js} +5 -5
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-create.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-export.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-header.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-popover.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-splash.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +4 -4
- package/dist/cjs/{languageSwitcher-dc2dd354.js → languageSwitcher-f0bb94fa.js} +1 -1
- package/dist/cjs/{languageUtil-a3e1eafd.js → languageUtil-f22ce913.js} +1 -1
- package/dist/cjs/layout-manager.cjs.entry.js +2 -2
- package/dist/cjs/{loadModules-8567855e.js → loadModules-36d49819.js} +1 -1
- package/dist/cjs/{locale-a1bcb6eb.js → locale-239118c6.js} +2 -2
- package/dist/cjs/{locale-4e7fe921.js → locale-2dc1252d.js} +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +5 -5
- package/dist/cjs/{popupUtils-2b5ec788.js → popupUtils-0cabaa1f.js} +2 -2
- package/dist/cjs/public-notification.cjs.entry.js +5 -5
- package/dist/cjs/{restHelpersGet-bf484fda.js → restHelpersGet-88ba0e25.js} +20 -24
- package/dist/cjs/solution-configuration.cjs.entry.js +6 -6
- package/dist/cjs/solution-contents_3.cjs.entry.js +6 -6
- package/dist/cjs/{solution-resource-57cf345b.js → solution-resource-16c7510c.js} +1 -1
- package/dist/cjs/{solution-store-71bb46fa.js → solution-store-747a28ab.js} +58 -65
- package/dist/cjs/spatial-ref.cjs.entry.js +4 -4
- package/dist/cjs/store-manager.cjs.entry.js +4 -4
- package/dist/cjs/{templates-e4b98319.js → templates-2f44c01b.js} +2 -2
- package/dist/cjs/{utils-b43fe04f.js → utils-e486aa01.js} +1 -1
- package/dist/components/restHelpersGet.js +19 -23
- package/dist/components/solution-resource.js +1 -1
- package/dist/components/solution-store.js +56 -63
- package/dist/esm/basemap-gallery_7.entry.js +2 -2
- package/dist/esm/buffer-tools_3.entry.js +2 -2
- package/dist/esm/calcite-action-pad_2.entry.js +2 -2
- package/dist/esm/calcite-alert_4.entry.js +6 -6
- package/dist/esm/calcite-block_5.entry.js +4 -4
- package/dist/esm/calcite-combobox_3.entry.js +2 -2
- package/dist/esm/calcite-flow_6.entry.js +2 -2
- package/dist/esm/calcite-shell-panel_14.entry.js +5 -5
- package/dist/esm/card-manager_3.entry.js +5 -5
- package/dist/esm/{common-1618d62f.js → common-3b99e350.js} +1 -1
- package/dist/esm/consent-manager.entry.js +2 -2
- package/dist/esm/crowdsource-manager.entry.js +2 -2
- package/dist/esm/crowdsource-reporter.entry.js +2 -2
- package/dist/esm/{downloadUtils-16c51b10.js → downloadUtils-51c2c502.js} +4 -4
- package/dist/esm/feature-list.entry.js +6 -6
- package/dist/esm/{helpers-2298687e.js → helpers-62213648.js} +1 -1
- package/dist/esm/{index.es-d950915a.js → index.es-afea294f.js} +5 -5
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +5 -5
- package/dist/esm/instant-apps-control-panel.entry.js +2 -2
- package/dist/esm/instant-apps-create.entry.js +4 -4
- package/dist/esm/instant-apps-export-views.entry.js +4 -4
- package/dist/esm/instant-apps-export.entry.js +4 -4
- package/dist/esm/instant-apps-header.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend.entry.js +5 -5
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +4 -4
- package/dist/esm/instant-apps-language-switcher.entry.js +6 -6
- package/dist/esm/instant-apps-language-translator.entry.js +6 -6
- package/dist/esm/instant-apps-measurement.entry.js +4 -4
- package/dist/esm/instant-apps-popover.entry.js +4 -4
- package/dist/esm/instant-apps-scoreboard.entry.js +4 -4
- package/dist/esm/instant-apps-sign-in.entry.js +4 -4
- package/dist/esm/instant-apps-splash.entry.js +4 -4
- package/dist/esm/instant-apps-time-filter.entry.js +4 -4
- package/dist/esm/{languageSwitcher-9db90f1e.js → languageSwitcher-b665499d.js} +1 -1
- package/dist/esm/{languageUtil-2b6e191a.js → languageUtil-a3e6adf6.js} +1 -1
- package/dist/esm/layout-manager.entry.js +2 -2
- package/dist/esm/{loadModules-03ba7abe.js → loadModules-9c062d08.js} +1 -1
- package/dist/esm/{locale-adb5ff0b.js → locale-35ebf4af.js} +2 -2
- package/dist/esm/{locale-7162b55a.js → locale-e758c2ee.js} +1 -1
- package/dist/esm/map-select-tools_3.entry.js +5 -5
- package/dist/esm/{popupUtils-44f11275.js → popupUtils-d4fe0b41.js} +2 -2
- package/dist/esm/public-notification.entry.js +5 -5
- package/dist/esm/{restHelpersGet-0a15c2f4.js → restHelpersGet-788d7f7b.js} +20 -24
- package/dist/esm/solution-configuration.entry.js +6 -6
- package/dist/esm/solution-contents_3.entry.js +6 -6
- package/dist/esm/{solution-resource-ab63a236.js → solution-resource-966f8511.js} +1 -1
- package/dist/esm/{solution-store-e2690620.js → solution-store-0586e891.js} +58 -65
- package/dist/esm/spatial-ref.entry.js +4 -4
- package/dist/esm/store-manager.entry.js +4 -4
- package/dist/esm/{templates-9556eb87.js → templates-9330d7b8.js} +2 -2
- package/dist/esm/{utils-178e7afe.js → utils-72a48b01.js} +1 -1
- package/dist/solutions-components/{p-618bafec.entry.js → p-0034f196.entry.js} +1 -1
- package/dist/solutions-components/{p-edd70ba3.entry.js → p-00786a30.entry.js} +1 -1
- package/dist/solutions-components/{p-00b26aac.js → p-01cc2423.js} +2 -2
- package/dist/solutions-components/{p-d7868dd4.js → p-09b47605.js} +1 -1
- package/dist/solutions-components/{p-7bfecd07.js → p-09d62c22.js} +1 -1
- package/dist/solutions-components/{p-0abc1354.entry.js → p-104fa4cf.entry.js} +1 -1
- package/dist/solutions-components/{p-38cfa3cd.entry.js → p-1176ec70.entry.js} +1 -1
- package/dist/solutions-components/{p-8a6fa619.entry.js → p-13f83a1a.entry.js} +1 -1
- package/dist/solutions-components/{p-4b3cc01f.js → p-2923d5ed.js} +2 -2
- package/dist/solutions-components/{p-4848b48f.entry.js → p-29962ae5.entry.js} +1 -1
- package/dist/solutions-components/{p-a8e6463b.js → p-2cff27c5.js} +2 -2
- package/dist/solutions-components/{p-5b818d29.entry.js → p-2d03b0d7.entry.js} +1 -1
- package/dist/solutions-components/{p-0f7b5d36.entry.js → p-2ed4f0cf.entry.js} +1 -1
- package/dist/solutions-components/{p-f12a94e6.entry.js → p-3058da8b.entry.js} +1 -1
- package/dist/solutions-components/{p-36b50b5b.entry.js → p-3581d7dc.entry.js} +1 -1
- package/dist/solutions-components/{p-dc17b638.entry.js → p-386429a4.entry.js} +1 -1
- package/dist/solutions-components/{p-69cfa9e6.entry.js → p-483fbfa7.entry.js} +1 -1
- package/dist/solutions-components/{p-78712b70.entry.js → p-4a0838c0.entry.js} +1 -1
- package/dist/solutions-components/{p-6de944af.entry.js → p-4b843bc0.entry.js} +1 -1
- package/dist/solutions-components/{p-abc9e858.entry.js → p-4c0b8e55.entry.js} +1 -1
- package/dist/solutions-components/{p-90d6755b.js → p-4d03fed9.js} +1 -1
- package/dist/solutions-components/{p-6b30ca36.entry.js → p-51cfb4a6.entry.js} +1 -1
- package/dist/solutions-components/{p-8e8b92b4.entry.js → p-614edd9f.entry.js} +1 -1
- package/dist/solutions-components/{p-3438cbc4.entry.js → p-65283b75.entry.js} +1 -1
- package/dist/solutions-components/{p-4cd4cb85.js → p-65581d83.js} +1 -1
- package/dist/solutions-components/{p-ef6567ae.entry.js → p-6f836c0a.entry.js} +1 -1
- package/dist/solutions-components/{p-badcaf04.js → p-7c583516.js} +1 -1
- package/dist/solutions-components/{p-5d201016.entry.js → p-8af893c6.entry.js} +1 -1
- package/dist/solutions-components/{p-7d514d7f.entry.js → p-8b611f1f.entry.js} +1 -1
- package/dist/solutions-components/{p-bebd4646.entry.js → p-91a87888.entry.js} +1 -1
- package/dist/solutions-components/{p-b850796d.entry.js → p-92744164.entry.js} +1 -1
- package/dist/solutions-components/{p-1867168b.entry.js → p-93c34427.entry.js} +1 -1
- package/dist/solutions-components/{p-445213cf.entry.js → p-9a370c05.entry.js} +1 -1
- package/dist/solutions-components/{p-c6473b38.entry.js → p-a2150807.entry.js} +1 -1
- package/dist/solutions-components/{p-a860f365.js → p-a7710355.js} +7 -8
- package/dist/solutions-components/{p-a22b8cc1.entry.js → p-a7b05a79.entry.js} +1 -1
- package/dist/solutions-components/{p-cc092b22.entry.js → p-ab2c4033.entry.js} +1 -1
- package/dist/solutions-components/{p-ac122d9e.js → p-af2c8aa9.js} +1 -1
- package/dist/solutions-components/{p-a091bc9a.js → p-afad4f05.js} +1 -1
- package/dist/solutions-components/{p-913413c3.entry.js → p-b981067f.entry.js} +1 -1
- package/dist/solutions-components/{p-24b3aedc.entry.js → p-beeccd19.entry.js} +1 -1
- package/dist/solutions-components/{p-2fc63144.js → p-c742acd9.js} +1 -1
- package/dist/solutions-components/{p-2e8a428a.entry.js → p-cc47ff22.entry.js} +1 -1
- package/dist/solutions-components/{p-8ea95c9f.entry.js → p-cdb01b99.entry.js} +1 -1
- package/dist/solutions-components/{p-425a1dab.entry.js → p-de30afd0.entry.js} +1 -1
- package/dist/solutions-components/{p-ce454f5a.entry.js → p-e6742158.entry.js} +1 -1
- package/dist/solutions-components/{p-20c465e9.entry.js → p-e936f80a.entry.js} +1 -1
- package/dist/solutions-components/{p-b19ca04e.entry.js → p-ed9b7fa1.entry.js} +1 -1
- package/dist/solutions-components/{p-86e6b5b3.entry.js → p-ef493a84.entry.js} +1 -1
- package/dist/solutions-components/{p-2fa78dd8.js → p-f067a46c.js} +1 -1
- package/dist/solutions-components/{p-1904654e.js → p-f2ac5d0e.js} +1 -1
- package/dist/solutions-components/{p-932f22b5.entry.js → p-f4828ba4.entry.js} +1 -1
- package/dist/solutions-components/{p-d8047d8f.entry.js → p-f7d822f7.entry.js} +1 -1
- package/dist/solutions-components/{p-8fb95f9a.entry.js → p-fee0a94a.entry.js} +3 -3
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components_commit.txt +7 -0
- package/package.json +6 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion/accordion.css +0 -77
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion-item/accordion-item.css +0 -263
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action/action.css +0 -341
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-bar/action-bar.css +0 -105
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-group/action-group.css +0 -113
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-menu/action-menu.css +0 -73
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-pad/action-pad.css +0 -113
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/alert/alert.css +0 -428
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/avatar/avatar.css +0 -81
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block/block.css +0 -337
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block-section/block-section.css +0 -156
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/button/button.css +0 -811
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card/card.css +0 -339
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card-group/card-group.css +0 -73
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel/carousel.css +0 -330
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel-item/carousel-item.css +0 -45
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/checkbox/checkbox.css +0 -179
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip/chip.css +0 -514
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip-group/chip-group.css +0 -78
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker/color-picker.css +0 -249
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +0 -66
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-swatch/color-picker-swatch.css +0 -74
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox/combobox.css +0 -450
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item/combobox-item.css +0 -248
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item-group/combobox-item-group.css +0 -101
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker/date-picker.css +0 -72
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-day/date-picker-day.css +0 -294
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month/date-picker-month.css +0 -96
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month-header/date-picker-month-header.css +0 -189
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dialog/dialog.css +0 -322
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown/dropdown.css +0 -140
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-group/dropdown-group.css +0 -84
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-item/dropdown-item.css +0 -199
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/fab/fab.css +0 -76
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/filter/filter.css +0 -140
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow/flow.css +0 -98
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow-item/flow-item.css +0 -94
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/graph/graph.css +0 -51
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/handle/handle.css +0 -102
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/icon/icon.css +0 -73
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/inline-editable/inline-editable.css +0 -93
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input/input.css +0 -650
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-date-picker/input-date-picker.css +0 -293
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-message/input-message.css +0 -92
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-number/input-number.css +0 -504
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-text/input-text.css +0 -417
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-picker/input-time-picker.css +0 -125
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-zone/input-time-zone.css +0 -71
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/label/label.css +0 -138
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/link/link.css +0 -152
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list/list.css +0 -106
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item/list-item.css +0 -347
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item-group/list-item-group.css +0 -79
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/loader/loader.css +0 -297
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu/menu.css +0 -50
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu-item/menu-item.css +0 -281
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/meter/meter.css +0 -187
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/modal/modal.css +0 -529
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation/navigation.css +0 -142
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-logo/navigation-logo.css +0 -137
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-user/navigation-user.css +0 -112
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/notice/notice.css +0 -289
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option/option.css +0 -36
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option-group/option-group.css +0 -36
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pagination/pagination.css +0 -151
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/panel/panel.css +0 -323
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list/pick-list.css +0 -96
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-group/pick-list-group.css +0 -83
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-item/pick-list-item.css +0 -183
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/popover/popover.css +0 -198
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/progress/progress.css +0 -110
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button/radio-button.css +0 -168
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button-group/radio-button-group.css +0 -96
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/rating/rating.css +0 -182
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/scrim/scrim.css +0 -76
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control/segmented-control.css +0 -120
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control-item/segmented-control-item.css +0 -179
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/select/select.css +0 -252
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sheet/sheet.css +0 -267
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell/shell.css +0 -194
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-center-row/shell-center-row.css +0 -124
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-panel/shell-panel.css +0 -394
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/slider/slider.css +0 -392
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sortable-list/sortable-list.css +0 -72
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/split-button/split-button.css +0 -192
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stack/stack.css +0 -116
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper/stepper.css +0 -150
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper-item/stepper-item.css +0 -475
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/switch/switch.css +0 -188
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab/tab.css +0 -105
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-nav/tab-nav.css +0 -158
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-title/tab-title.css +0 -422
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table/table.css +0 -135
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-cell/table-cell.css +0 -170
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-header/table-header.css +0 -154
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-row/table-row.css +0 -82
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tabs/tabs.css +0 -101
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/text-area/text-area.css +0 -300
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile/tile.css +0 -297
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-group/tile-group.css +0 -86
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select/tile-select.css +0 -239
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select-group/tile-select-group.css +0 -68
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/time-picker/time-picker.css +0 -144
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip/tip.css +0 -151
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-group/tip-group.css +0 -47
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-manager/tip-manager.css +0 -194
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tooltip/tooltip.css +0 -120
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree/tree.css +0 -41
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree-item/tree-item.css +0 -326
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list/value-list.css +0 -109
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list-item/value-list-item.css +0 -125
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-control-panel/instant-apps-control-panel.css +0 -3
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-create/instant-apps-create.css +0 -150
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-export/instant-apps-export.css +0 -92
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-export-views/instant-apps-export-views.css +0 -92
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-filter-list/instant-apps-filter-list.css +0 -108
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-header/instant-apps-header.css +0 -180
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-classic/instant-apps-interactive-legend-classic.css +0 -124
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-count/instant-apps-interactive-legend-count.css +0 -18
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-group-legend-element/instant-apps-interactive-legend-group-legend-element.css +0 -10
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-group-legend-element-caption/instant-apps-interactive-legend-group-legend-element-caption.css +0 -65
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-layer-element/instant-apps-interactive-legend-layer-element.css +0 -17
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-layer-element-caption/instant-apps-interactive-legend-layer-element-caption.css +0 -66
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-legend-element/instant-apps-interactive-legend-legend-element.css +0 -10
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-legend-element-caption/instant-apps-interactive-legend-legend-element-caption.css +0 -51
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-relationship/instant-apps-interactive-legend-relationship.css +0 -15
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend.css +0 -12
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-keyboard-shortcuts/instant-apps-keyboard-shortcuts.css +0 -33
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-landing-page/instant-apps-landing-page.css +0 -241
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-switcher/instant-apps-language-switcher.css +0 -13
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-ckeditor-wrapper/instant-apps-ckeditor-wrapper.css +0 -3
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator-item/instant-apps-language-translator-item.css +0 -90
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator-search/instant-apps-language-translator-search.css +0 -34
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator.css +0 -86
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-measurement/instant-apps-measurement-tool/instant-apps-measurement-tool.css +0 -6
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-measurement/instant-apps-measurement.css +0 -6
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-popover/instant-apps-popover.css +0 -58
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-popovers/instant-apps-popovers.css +0 -3
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-scoreboard/instant-apps-scoreboard.css +0 -200
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-sign-in/instant-apps-sign-in.css +0 -93
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-social-share/instant-apps-social-share.css +0 -286
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-splash/instant-apps-splash.css +0 -13
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-time-filter/instant-apps-time-filter.css +0 -42
- /package/dist/cjs/{esri-loader-08dc41bd.js → esri-loader-a56cbcbe.js} +0 -0
- /package/dist/esm/{esri-loader-c6842c6b.js → esri-loader-781d738a.js} +0 -0
- /package/dist/solutions-components/{p-9fe07c30.js → p-659678f1.js} +0 -0
- /package/dist/solutions-components/{p-0a24ad5f.js → p-6a68306c.js} +0 -0
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
const index = require('./index-a0cca96e.js');
|
|
9
9
|
const interfaces = require('./interfaces-09c4c40e.js');
|
|
10
|
-
const solutionResource = require('./solution-resource-
|
|
11
|
-
const restHelpersGet = require('./restHelpersGet-
|
|
10
|
+
const solutionResource = require('./solution-resource-16c7510c.js');
|
|
11
|
+
const restHelpersGet = require('./restHelpersGet-88ba0e25.js');
|
|
12
12
|
|
|
13
13
|
/*! *****************************************************************************
|
|
14
14
|
Copyright (c) Microsoft Corporation.
|
|
@@ -278,7 +278,7 @@ function chunkArray(arr, size) {
|
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
/** @license
|
|
281
|
-
* Copyright
|
|
281
|
+
* Copyright 2018 Esri
|
|
282
282
|
*
|
|
283
283
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
284
284
|
* you may not use this file except in compliance with the License.
|
|
@@ -292,25 +292,32 @@ function chunkArray(arr, size) {
|
|
|
292
292
|
* See the License for the specific language governing permissions and
|
|
293
293
|
* limitations under the License.
|
|
294
294
|
*/
|
|
295
|
-
// ------------------------------------------------------------------------------------------------------------------ //
|
|
296
295
|
/**
|
|
297
|
-
*
|
|
296
|
+
* Updates an item.
|
|
298
297
|
*
|
|
299
|
-
* @param
|
|
300
|
-
*
|
|
301
|
-
* @param
|
|
302
|
-
* @
|
|
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
|
|
303
304
|
*/
|
|
304
|
-
function
|
|
305
|
-
return {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
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
|
+
});
|
|
310
317
|
}
|
|
311
318
|
|
|
312
319
|
/** @license
|
|
313
|
-
* Copyright
|
|
320
|
+
* Copyright 2021 Esri
|
|
314
321
|
*
|
|
315
322
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
316
323
|
* you may not use this file except in compliance with the License.
|
|
@@ -324,28 +331,21 @@ function createCopyResults(fileInfo, fetchedFromSource, copiedToDestination) {
|
|
|
324
331
|
* See the License for the specific language governing permissions and
|
|
325
332
|
* limitations under the License.
|
|
326
333
|
*/
|
|
334
|
+
// ------------------------------------------------------------------------------------------------------------------ //
|
|
327
335
|
/**
|
|
328
|
-
*
|
|
336
|
+
* Generates IAssociatedFileCopyResults object.
|
|
329
337
|
*
|
|
330
|
-
* @param
|
|
331
|
-
*
|
|
332
|
-
* @param
|
|
333
|
-
* @
|
|
334
|
-
* @param additionalParams Updates that are put under the `params` property, which is not serialized
|
|
335
|
-
* @return
|
|
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
|
|
336
342
|
*/
|
|
337
|
-
function
|
|
338
|
-
return
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
params: {
|
|
344
|
-
...(additionalParams ?? {})
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
|
-
updateItem$1(updateOptions).then(response => (response.success ? resolve(response) : reject(response)), err => reject(err));
|
|
348
|
-
});
|
|
343
|
+
function createCopyResults(fileInfo, fetchedFromSource, copiedToDestination) {
|
|
344
|
+
return {
|
|
345
|
+
...fileInfo,
|
|
346
|
+
fetchedFromSource,
|
|
347
|
+
copiedToDestination,
|
|
348
|
+
};
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
/** @license
|
|
@@ -439,9 +439,7 @@ function convertStorageResourceToItemResource(storageResourceFilename, storageVe
|
|
|
439
439
|
function copyResourceIntoZip(file, zipInfo) {
|
|
440
440
|
// Add it to the zip
|
|
441
441
|
if (file.folder) {
|
|
442
|
-
zipInfo.zip
|
|
443
|
-
.folder(file.folder)
|
|
444
|
-
.file(file.filename, file.file, { binary: true });
|
|
442
|
+
zipInfo.zip.folder(file.folder).file(file.filename, file.file, { binary: true });
|
|
445
443
|
}
|
|
446
444
|
else {
|
|
447
445
|
zipInfo.zip.file(file.filename, file.file, { binary: true });
|
|
@@ -475,7 +473,7 @@ function copyResourceIntoZip(file, zipInfo) {
|
|
|
475
473
|
* @returns A promise which resolves to the result of the copy
|
|
476
474
|
*/
|
|
477
475
|
function copyZipIntoItem(zipInfo, destinationItemId, destinationAuthentication) {
|
|
478
|
-
return new Promise(resolve => {
|
|
476
|
+
return new Promise((resolve) => {
|
|
479
477
|
zipInfo.zip
|
|
480
478
|
.generateAsync({ type: "blob" })
|
|
481
479
|
.then((content) => {
|
|
@@ -487,13 +485,12 @@ function copyZipIntoItem(zipInfo, destinationItemId, destinationAuthentication)
|
|
|
487
485
|
resource: zipfile,
|
|
488
486
|
authentication: destinationAuthentication,
|
|
489
487
|
params: {
|
|
490
|
-
archive: true
|
|
491
|
-
}
|
|
488
|
+
archive: true,
|
|
489
|
+
},
|
|
492
490
|
};
|
|
493
491
|
return addItemResource(addResourceOptions);
|
|
494
492
|
})
|
|
495
|
-
.then(() => resolve(createCopyResults(zipInfo, true, true)), () => resolve(createCopyResults(zipInfo, true, false))
|
|
496
|
-
);
|
|
493
|
+
.then(() => resolve(createCopyResults(zipInfo, true, true)), () => resolve(createCopyResults(zipInfo, true, false)));
|
|
497
494
|
});
|
|
498
495
|
}
|
|
499
496
|
|
|
@@ -524,7 +521,7 @@ function copyZipIntoItem(zipInfo, destinationItemId, destinationAuthentication)
|
|
|
524
521
|
* @returns A promise which resolves to a list of the result of the copies
|
|
525
522
|
*/
|
|
526
523
|
function copyFilesAsResources(files, destinationItemId, destinationAuthentication, filesPerZip = 40) {
|
|
527
|
-
return new Promise(resolve => {
|
|
524
|
+
return new Promise((resolve) => {
|
|
528
525
|
let awaitAllItems = [];
|
|
529
526
|
const zipInfos = [];
|
|
530
527
|
if (files.length > 0) {
|
|
@@ -539,9 +536,9 @@ function copyFilesAsResources(files, destinationItemId, destinationAuthenticatio
|
|
|
539
536
|
const zipInfo = {
|
|
540
537
|
filename: `resources${index}.zip`,
|
|
541
538
|
zip: new solutionResource.JSZip(),
|
|
542
|
-
filelist: []
|
|
539
|
+
filelist: [],
|
|
543
540
|
};
|
|
544
|
-
awaitAllItems = awaitAllItems.concat(chunk.map(file => copyResourceIntoZip(file, zipInfo)));
|
|
541
|
+
awaitAllItems = awaitAllItems.concat(chunk.map((file) => copyResourceIntoZip(file, zipInfo)));
|
|
545
542
|
zipInfos.push(zipInfo);
|
|
546
543
|
});
|
|
547
544
|
}
|
|
@@ -555,8 +552,7 @@ function copyFilesAsResources(files, destinationItemId, destinationAuthenticatio
|
|
|
555
552
|
// | true | true | file has been fetched and sent to AGO |
|
|
556
553
|
// | true | undefined | file has been fetched and will be sent via zip |
|
|
557
554
|
// Filter out copiedToDestination===undefined; we'll get their status when we send their zip
|
|
558
|
-
results = results.filter((result) => !(result.fetchedFromSource &&
|
|
559
|
-
typeof result.copiedToDestination === "undefined"));
|
|
555
|
+
results = results.filter((result) => !(result.fetchedFromSource && typeof result.copiedToDestination === "undefined"));
|
|
560
556
|
// Now send the resources to AGO
|
|
561
557
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
562
558
|
_copyAssociatedFileZips(zipInfos, destinationItemId, destinationAuthentication).then((zipResults) => {
|
|
@@ -580,7 +576,7 @@ function copyFilesAsResources(files, destinationItemId, destinationAuthenticatio
|
|
|
580
576
|
* @private
|
|
581
577
|
*/
|
|
582
578
|
function _copyAssociatedFileZips(zipInfos, destinationItemId, destinationAuthentication) {
|
|
583
|
-
return new Promise(resolve => {
|
|
579
|
+
return new Promise((resolve) => {
|
|
584
580
|
const results = [];
|
|
585
581
|
// Filter out empty zips, which can happen when none of the files in the chunk going into a zip
|
|
586
582
|
// can be fetched; e.g., the only file is metadata.xml, and the source item doesn't have metadata
|
|
@@ -606,7 +602,7 @@ function _copyAssociatedFileZips(zipInfos, destinationItemId, destinationAuthent
|
|
|
606
602
|
* @returns A promise which resolves to a list of the result of the copies
|
|
607
603
|
*/
|
|
608
604
|
function _sendZipsSeriallyToItem(zipInfos, destinationItemId, destinationAuthentication) {
|
|
609
|
-
return new Promise(resolve => {
|
|
605
|
+
return new Promise((resolve) => {
|
|
610
606
|
let allResults = [];
|
|
611
607
|
// Remove zip from bottom of list
|
|
612
608
|
const zipInfoToSend = zipInfos.pop();
|
|
@@ -619,7 +615,7 @@ function _sendZipsSeriallyToItem(zipInfos, destinationItemId, destinationAuthent
|
|
|
619
615
|
.then((response) => {
|
|
620
616
|
allResults = response;
|
|
621
617
|
// Stall a little to give AGO time to catch up
|
|
622
|
-
return new Promise(resolveSleep => {
|
|
618
|
+
return new Promise((resolveSleep) => {
|
|
623
619
|
setTimeout(() => resolveSleep(), 1000);
|
|
624
620
|
});
|
|
625
621
|
})
|
|
@@ -662,7 +658,7 @@ function _sendZipsSeriallyToItem(zipInfos, destinationItemId, destinationAuthent
|
|
|
662
658
|
* @returns A promise which resolves to a list of the filenames under which the resource/metadata are stored
|
|
663
659
|
*/
|
|
664
660
|
function copyFilesToStorageItem(files, storageItemId, storageAuthentication) {
|
|
665
|
-
return new Promise(resolve => {
|
|
661
|
+
return new Promise((resolve) => {
|
|
666
662
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
667
663
|
void copyFilesAsResources(files, storageItemId, storageAuthentication).then((results) => {
|
|
668
664
|
resolve(results
|
|
@@ -682,11 +678,7 @@ function copyFilesToStorageItem(files, storageItemId, storageAuthentication) {
|
|
|
682
678
|
* @returns URL string
|
|
683
679
|
*/
|
|
684
680
|
function generateSourceResourceUrl(sourcePortalSharingUrl, itemId, sourceResourceFilename) {
|
|
685
|
-
return (restHelpersGet.checkUrlPathTermination(sourcePortalSharingUrl) +
|
|
686
|
-
"content/items/" +
|
|
687
|
-
itemId +
|
|
688
|
-
"/resources/" +
|
|
689
|
-
sourceResourceFilename);
|
|
681
|
+
return (restHelpersGet.checkUrlPathTermination(sourcePortalSharingUrl) + "content/items/" + itemId + "/resources/" + sourceResourceFilename);
|
|
690
682
|
}
|
|
691
683
|
/**
|
|
692
684
|
* Generates a list of full URLs and folder/filename combinations used to store the resources, metadata,
|
|
@@ -699,10 +691,10 @@ function generateSourceResourceUrl(sourcePortalSharingUrl, itemId, sourceResourc
|
|
|
699
691
|
* @returns List of item files' URLs and folder/filenames for storing the files
|
|
700
692
|
*/
|
|
701
693
|
function generateStorageFilePaths(portalSharingUrl, storageItemId, resourceFilenames = [], storageVersion = 0) {
|
|
702
|
-
return resourceFilenames.map(resourceFilename => {
|
|
694
|
+
return resourceFilenames.map((resourceFilename) => {
|
|
703
695
|
return {
|
|
704
696
|
url: generateSourceResourceUrl(portalSharingUrl, storageItemId, resourceFilename),
|
|
705
|
-
...convertStorageResourceToItemResource(resourceFilename, storageVersion)
|
|
697
|
+
...convertStorageResourceToItemResource(resourceFilename, storageVersion),
|
|
706
698
|
};
|
|
707
699
|
});
|
|
708
700
|
}
|
|
@@ -711,8 +703,7 @@ function isSupportedFileType(filename) {
|
|
|
711
703
|
// .svgz, .geodatabase (https://developers.arcgis.com/rest/users-groups-and-items/add-resources.htm)
|
|
712
704
|
const filenameExtension = filename.match(/\.([a-z]+)$/i);
|
|
713
705
|
const supportedExtensions = "|.json|.xml|.txt|.png|.pbf|.zip|.jpeg|.jpg|.gif|.bmp|.gz|.svg|.svgz|.geodatabase|";
|
|
714
|
-
return
|
|
715
|
-
supportedExtensions.indexOf("|" + filenameExtension[0] + "|") >= 0);
|
|
706
|
+
return !!filenameExtension && supportedExtensions.indexOf("|" + filenameExtension[0] + "|") >= 0;
|
|
716
707
|
}
|
|
717
708
|
/**
|
|
718
709
|
* Gets the thumbnail of an item or group.
|
|
@@ -724,7 +715,7 @@ function isSupportedFileType(filename) {
|
|
|
724
715
|
function getThumbnailFromStorageItem(authentication, filePaths) {
|
|
725
716
|
let thumbnailUrl;
|
|
726
717
|
let thumbnailFilename;
|
|
727
|
-
filePaths.forEach(path => {
|
|
718
|
+
filePaths.forEach((path) => {
|
|
728
719
|
if (path.type === solutionResource.EFileType.Thumbnail) {
|
|
729
720
|
thumbnailUrl = path.url;
|
|
730
721
|
thumbnailFilename = path.filename;
|
|
@@ -747,7 +738,7 @@ function removeItemResourceFile(itemId, filename, authentication) {
|
|
|
747
738
|
return removeItemResource({
|
|
748
739
|
id: itemId,
|
|
749
740
|
resource: filename,
|
|
750
|
-
authentication: authentication
|
|
741
|
+
authentication: authentication,
|
|
751
742
|
});
|
|
752
743
|
}
|
|
753
744
|
/**
|
|
@@ -762,14 +753,16 @@ function removeItemResourceFile(itemId, filename, authentication) {
|
|
|
762
753
|
function updateItemResourceFile(itemId, filename, resource, authentication) {
|
|
763
754
|
// Prefix has to be specified separately
|
|
764
755
|
const prefixedFilenameParts = filename.split("/");
|
|
765
|
-
const prefix = prefixedFilenameParts.length > 1
|
|
756
|
+
const prefix = prefixedFilenameParts.length > 1
|
|
757
|
+
? prefixedFilenameParts.slice(0, prefixedFilenameParts.length - 1).join("/")
|
|
758
|
+
: undefined;
|
|
766
759
|
const suffix = prefixedFilenameParts[prefixedFilenameParts.length - 1];
|
|
767
760
|
return updateItemResource({
|
|
768
761
|
id: itemId,
|
|
769
762
|
prefix: prefix,
|
|
770
763
|
name: suffix,
|
|
771
764
|
resource,
|
|
772
|
-
authentication: authentication
|
|
765
|
+
authentication: authentication,
|
|
773
766
|
});
|
|
774
767
|
}
|
|
775
768
|
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
10
|
const index = require('./index-696e53e6.js');
|
|
11
|
-
const locale = require('./locale-
|
|
12
|
-
const common = require('./common-
|
|
13
|
-
require('./esri-loader-
|
|
11
|
+
const locale = require('./locale-2dc1252d.js');
|
|
12
|
+
const common = require('./common-4d4cf291.js');
|
|
13
|
+
require('./esri-loader-a56cbcbe.js');
|
|
14
14
|
require('./_commonjsHelpers-baf43783.js');
|
|
15
|
-
require('./solution-resource-
|
|
15
|
+
require('./solution-resource-16c7510c.js');
|
|
16
16
|
require('./interfaces-09c4c40e.js');
|
|
17
17
|
|
|
18
18
|
/** @license
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
10
|
const index = require('./index-696e53e6.js');
|
|
11
|
-
const solutionStore = require('./solution-store-
|
|
12
|
-
const templates = require('./templates-
|
|
11
|
+
const solutionStore = require('./solution-store-747a28ab.js');
|
|
12
|
+
const templates = require('./templates-2f44c01b.js');
|
|
13
13
|
require('./index-a0cca96e.js');
|
|
14
14
|
require('./interfaces-09c4c40e.js');
|
|
15
|
-
require('./solution-resource-
|
|
15
|
+
require('./solution-resource-16c7510c.js');
|
|
16
16
|
require('./_commonjsHelpers-baf43783.js');
|
|
17
|
-
require('./restHelpersGet-
|
|
17
|
+
require('./restHelpersGet-88ba0e25.js');
|
|
18
18
|
|
|
19
19
|
const StoreManager = class {
|
|
20
20
|
constructor(hostRef) {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
const interfaces = require('./interfaces-09c4c40e.js');
|
|
9
|
-
require('./solution-resource-
|
|
10
|
-
const restHelpersGet = require('./restHelpersGet-
|
|
9
|
+
require('./solution-resource-16c7510c.js');
|
|
10
|
+
const restHelpersGet = require('./restHelpersGet-88ba0e25.js');
|
|
11
11
|
|
|
12
12
|
/** @license
|
|
13
13
|
* Copyright 2022 Esri
|
|
@@ -603,8 +603,8 @@ function cleanUrl(url) {
|
|
|
603
603
|
* @returns A promise that will resolve with JSON or null
|
|
604
604
|
*/
|
|
605
605
|
function blobToJson(blob) {
|
|
606
|
-
return new Promise(resolve => {
|
|
607
|
-
blobToText(blob).then(blobContents => {
|
|
606
|
+
return new Promise((resolve) => {
|
|
607
|
+
blobToText(blob).then((blobContents) => {
|
|
608
608
|
try {
|
|
609
609
|
resolve(JSON.parse(blobContents));
|
|
610
610
|
}
|
|
@@ -624,7 +624,7 @@ function blobToJson(blob) {
|
|
|
624
624
|
*/
|
|
625
625
|
function blobToFile(blob, filename, mimeType) {
|
|
626
626
|
return new File([blob], filename ? filename : "", {
|
|
627
|
-
type: mimeType ?? blob.type // Blobs default to type=""
|
|
627
|
+
type: mimeType ?? blob.type, // Blobs default to type=""
|
|
628
628
|
});
|
|
629
629
|
}
|
|
630
630
|
/**
|
|
@@ -634,7 +634,7 @@ function blobToFile(blob, filename, mimeType) {
|
|
|
634
634
|
* @returns A promise that will resolve with text read from blob
|
|
635
635
|
*/
|
|
636
636
|
function blobToText(blob) {
|
|
637
|
-
return new Promise(resolve => {
|
|
637
|
+
return new Promise((resolve) => {
|
|
638
638
|
const reader = new FileReader();
|
|
639
639
|
reader.onload = function (evt) {
|
|
640
640
|
// Disable needed because Node requires cast
|
|
@@ -751,9 +751,9 @@ function getBlob(url, authentication, requestOptions = {}) {
|
|
|
751
751
|
const blobRequestOptions = {
|
|
752
752
|
authentication: authentication,
|
|
753
753
|
rawResponse: true,
|
|
754
|
-
...requestOptions
|
|
754
|
+
...requestOptions,
|
|
755
755
|
};
|
|
756
|
-
return request(url, blobRequestOptions).then(response => {
|
|
756
|
+
return request(url, blobRequestOptions).then((response) => {
|
|
757
757
|
return response.blob();
|
|
758
758
|
});
|
|
759
759
|
}
|
|
@@ -786,7 +786,7 @@ const ZIP_FILE_HEADER_SIGNATURE = "PK";
|
|
|
786
786
|
function getBlobAsFile(url, filename, authentication, ignoreErrors = [], mimeType) {
|
|
787
787
|
return new Promise((resolve, reject) => {
|
|
788
788
|
// Get the blob from the URL
|
|
789
|
-
getBlobCheckForError(url, authentication, ignoreErrors).then(blob => !blob ? resolve(null) : resolve(blobToFile(blob, filename, mimeType)), reject);
|
|
789
|
+
getBlobCheckForError(url, authentication, ignoreErrors).then((blob) => (!blob ? resolve(null) : resolve(blobToFile(blob, filename, mimeType))), reject);
|
|
790
790
|
});
|
|
791
791
|
}
|
|
792
792
|
/**
|
|
@@ -800,9 +800,9 @@ function getBlobAsFile(url, filename, authentication, ignoreErrors = [], mimeTyp
|
|
|
800
800
|
function getBlobCheckForError(url, authentication, ignoreErrors = []) {
|
|
801
801
|
return new Promise((resolve, reject) => {
|
|
802
802
|
// Get the blob from the URL
|
|
803
|
-
getBlob(url, authentication).then(blob => {
|
|
803
|
+
getBlob(url, authentication).then((blob) => {
|
|
804
804
|
// Reclassify text/plain blobs as needed
|
|
805
|
-
_fixTextBlobType(blob).then(adjustedBlob => {
|
|
805
|
+
_fixTextBlobType(blob).then((adjustedBlob) => {
|
|
806
806
|
if (adjustedBlob.type === "application/json") {
|
|
807
807
|
// Blob may be an error
|
|
808
808
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
@@ -838,8 +838,8 @@ function getBlobCheckForError(url, authentication, ignoreErrors = []) {
|
|
|
838
838
|
* @returns Promise that will resolve with JSON, or an AGO-style JSON failure response
|
|
839
839
|
*/
|
|
840
840
|
function getItemDataAsJson(itemId, authentication) {
|
|
841
|
-
return new Promise(resolve => {
|
|
842
|
-
getItemDataBlob(itemId, authentication).then(blob => resolve(blobToJson(blob)), () => resolve(null));
|
|
841
|
+
return new Promise((resolve) => {
|
|
842
|
+
getItemDataBlob(itemId, authentication).then((blob) => resolve(blobToJson(blob)), () => resolve(null));
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
845
|
/**
|
|
@@ -850,9 +850,9 @@ function getItemDataAsJson(itemId, authentication) {
|
|
|
850
850
|
* @returns A promise that will resolve with the data Blob or null if the item doesn't have a data section
|
|
851
851
|
*/
|
|
852
852
|
function getItemDataBlob(itemId, authentication) {
|
|
853
|
-
return new Promise(resolve => {
|
|
853
|
+
return new Promise((resolve) => {
|
|
854
854
|
const url = getItemDataBlobUrl(itemId, authentication);
|
|
855
|
-
getBlobCheckForError(url, authentication, [400, 500]).then(blob => resolve(_fixTextBlobType(blob)), () => resolve(null));
|
|
855
|
+
getBlobCheckForError(url, authentication, [400, 500]).then((blob) => resolve(_fixTextBlobType(blob)), () => resolve(null));
|
|
856
856
|
});
|
|
857
857
|
}
|
|
858
858
|
/**
|
|
@@ -876,11 +876,11 @@ function getJson(url, authentication) {
|
|
|
876
876
|
// Get the blob from the URL
|
|
877
877
|
const requestOptions = { httpMethod: "GET" };
|
|
878
878
|
return getBlob(url, authentication, requestOptions)
|
|
879
|
-
.then(blob => {
|
|
879
|
+
.then((blob) => {
|
|
880
880
|
// Reclassify text/plain blobs as needed
|
|
881
881
|
return _fixTextBlobType(blob);
|
|
882
882
|
})
|
|
883
|
-
.then(adjustedBlob => {
|
|
883
|
+
.then((adjustedBlob) => {
|
|
884
884
|
if (adjustedBlob.type === "application/json") {
|
|
885
885
|
// Blob may be an error
|
|
886
886
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
@@ -902,7 +902,7 @@ function getPortalSharingUrlFromAuth(authentication) {
|
|
|
902
902
|
return getProp(authentication, "portal") || "https://www.arcgis.com/sharing/rest";
|
|
903
903
|
}
|
|
904
904
|
function getThumbnailFile(url, filename, authentication) {
|
|
905
|
-
return new Promise(resolve => {
|
|
905
|
+
return new Promise((resolve) => {
|
|
906
906
|
getBlobAsFile(url, filename, authentication, [500]).then(resolve, () => resolve(null));
|
|
907
907
|
});
|
|
908
908
|
}
|
|
@@ -917,11 +917,8 @@ function getThumbnailFile(url, filename, authentication) {
|
|
|
917
917
|
*/
|
|
918
918
|
function _fixTextBlobType(blob) {
|
|
919
919
|
return new Promise((resolve, reject) => {
|
|
920
|
-
if (blob &&
|
|
921
|
-
blob.
|
|
922
|
-
(blob.type.startsWith("text/plain") ||
|
|
923
|
-
blob.type.startsWith("application/json"))) {
|
|
924
|
-
blobToText(blob).then(blobText => {
|
|
920
|
+
if (blob && blob.size > 0 && (blob.type.startsWith("text/plain") || blob.type.startsWith("application/json"))) {
|
|
921
|
+
blobToText(blob).then((blobText) => {
|
|
925
922
|
// Convertible to JSON?
|
|
926
923
|
try {
|
|
927
924
|
JSON.parse(blobText);
|
|
@@ -930,8 +927,7 @@ function _fixTextBlobType(blob) {
|
|
|
930
927
|
}
|
|
931
928
|
catch (ignored) {
|
|
932
929
|
// Nope; test for ZIP file
|
|
933
|
-
if (blobText.length > 4 &&
|
|
934
|
-
blobText.substr(0, 4) === ZIP_FILE_HEADER_SIGNATURE) {
|
|
930
|
+
if (blobText.length > 4 && blobText.substr(0, 4) === ZIP_FILE_HEADER_SIGNATURE) {
|
|
935
931
|
// Yes; reclassify as ZIP
|
|
936
932
|
resolve(new Blob([blob], { type: "application/zip" }));
|
|
937
933
|
}
|
|
@@ -1806,7 +1806,7 @@ var ESortVisitState;
|
|
|
1806
1806
|
/** visited, in progress */
|
|
1807
1807
|
ESortVisitState[ESortVisitState["InProgress"] = 1] = "InProgress";
|
|
1808
1808
|
/** finished */
|
|
1809
|
-
ESortVisitState[ESortVisitState["Finished"] = 2] = "Finished";
|
|
1809
|
+
ESortVisitState[ESortVisitState["Finished"] = 2] = "Finished";
|
|
1810
1810
|
})(ESortVisitState || (ESortVisitState = {}));
|
|
1811
1811
|
|
|
1812
1812
|
/** @license
|