@esri/solutions-components 0.6.10 → 0.6.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/map-select-tools/resources.json +2 -1
- package/dist/assets/t9n/map-select-tools/resources_en.json +2 -1
- package/dist/assets/t9n/map-tools/resources.json +4 -1
- package/dist/assets/t9n/map-tools/resources_en.json +4 -1
- package/dist/cjs/{ExpandToggle-c5690e14.js → ExpandToggle-511435d5.js} +1 -1
- package/dist/cjs/{FloatingArrow-675171a6.js → FloatingArrow-88e3f797.js} +1 -1
- package/dist/cjs/{Heading-3712677d.js → Heading-0da2a025.js} +1 -1
- package/dist/cjs/{ar-1dc23c0a.js → ar-0a371029.js} +5 -5
- package/dist/cjs/{basemap-gallery_5.cjs.entry.js → basemap-gallery_6.cjs.entry.js} +139 -10
- package/dist/cjs/{bg-4024b354.js → bg-f7538b74.js} +5 -5
- package/dist/cjs/{bs-3134d711.js → bs-6560857c.js} +5 -5
- package/dist/cjs/buffer-tools_4.cjs.entry.js +12 -10
- package/dist/cjs/{ca-8d6647d3.js → ca-d74198eb.js} +5 -5
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/calcite-accordion.cjs.entry.js +1 -1
- package/dist/cjs/{calcite-filter_5.cjs.entry.js → calcite-action-bar_3.cjs.entry.js} +168 -322
- package/dist/cjs/calcite-action-group_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-action-pad.cjs.entry.js +5 -5
- package/dist/cjs/calcite-action_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-alert.cjs.entry.js +4 -4
- package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
- package/dist/cjs/calcite-block-section.cjs.entry.js +3 -3
- package/dist/cjs/calcite-block.cjs.entry.js +5 -5
- package/dist/cjs/calcite-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-card.cjs.entry.js +3 -3
- package/dist/cjs/calcite-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/calcite-chip-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-chip.cjs.entry.js +4 -4
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-color-picker.cjs.entry.js +3 -3
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +10 -10
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-date-picker.cjs.entry.js +4 -4
- package/dist/cjs/calcite-fab.cjs.entry.js +2 -2
- package/dist/cjs/calcite-filter_3.cjs.entry.js +387 -0
- package/dist/cjs/calcite-flow-item.cjs.entry.js +3 -3
- package/dist/cjs/calcite-flow.cjs.entry.js +2 -2
- package/dist/cjs/calcite-graph.cjs.entry.js +1 -1
- package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +3 -3
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +6 -6
- package/dist/cjs/calcite-input-number_2.cjs.entry.js +4 -4
- package/dist/cjs/{calcite-input-time-picker-4efcd55d.js → calcite-input-time-picker-188356eb.js} +53 -53
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-label.cjs.entry.js +1 -1
- package/dist/cjs/calcite-link.cjs.entry.js +2 -2
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-loader.cjs.entry.js +1 -1
- package/dist/cjs/calcite-menu-item.cjs.entry.js +3 -3
- package/dist/cjs/calcite-menu.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +5 -5
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +2 -2
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +2 -2
- package/dist/cjs/calcite-navigation.cjs.entry.js +2 -2
- package/dist/cjs/calcite-notice.cjs.entry.js +4 -4
- package/dist/cjs/calcite-option-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-option_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-pagination.cjs.entry.js +3 -3
- package/dist/cjs/calcite-panel_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +4 -4
- package/dist/cjs/calcite-pick-list.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-rating.cjs.entry.js +4 -4
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +9 -9
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
- package/dist/cjs/calcite-split-button.cjs.entry.js +2 -2
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +2 -2
- package/dist/cjs/calcite-stepper.cjs.entry.js +1 -1
- package/dist/cjs/calcite-switch.cjs.entry.js +3 -3
- package/dist/cjs/calcite-text-area.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tile-select.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
- package/dist/cjs/calcite-time-picker.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tip-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tip.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tree_3.cjs.entry.js +2 -2
- package/dist/cjs/card-manager_3.cjs.entry.js +11 -10
- package/dist/cjs/{conditionalSlot-126d557f.js → conditionalSlot-f10611d3.js} +1 -1
- package/dist/cjs/crowdsource-manager.cjs.entry.js +36 -10
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
- package/dist/cjs/{cs-b24cd994.js → cs-bdf9949e.js} +5 -5
- package/dist/cjs/{da-9dee3a1f.js → da-ab198f94.js} +5 -5
- package/dist/cjs/{de-1a98b964.js → de-a859739c.js} +5 -5
- package/dist/cjs/{de-at-782e6c7f.js → de-at-126e66a1.js} +5 -5
- package/dist/cjs/{de-ch-d5c95469.js → de-ch-25eb45ed.js} +5 -5
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/{downloadUtils-471a6a2d.js → downloadUtils-43f5be48.js} +4 -4
- package/dist/cjs/edit-card_2.cjs.entry.js +27 -24
- package/dist/cjs/{el-af28cafa.js → el-9abbc3f2.js} +5 -5
- package/dist/cjs/{en-au-109f3119.js → en-au-8835d481.js} +5 -5
- package/dist/cjs/{en-ca-22890a25.js → en-ca-a8f1a438.js} +5 -5
- package/dist/cjs/{en-gb-dc23c9dd.js → en-gb-e8098e8c.js} +5 -5
- package/dist/cjs/{es-3f353355.js → es-bc99e2ad.js} +5 -5
- package/dist/cjs/{es-mx-ccb57857.js → es-mx-71461470.js} +5 -5
- package/dist/cjs/{et-119c047b.js → et-8fa437ac.js} +5 -5
- package/dist/cjs/{fi-13096d81.js → fi-1284d381.js} +5 -5
- package/dist/cjs/{form-7c6054c3.js → form-28bc6597.js} +1 -1
- package/dist/cjs/{fr-563dfcd5.js → fr-635089b1.js} +5 -5
- package/dist/cjs/{fr-ch-f66cfd49.js → fr-ch-09392bdc.js} +5 -5
- package/dist/cjs/{he-d8253a1a.js → he-44a07bad.js} +5 -5
- package/dist/cjs/{hi-58c7c3b5.js → hi-9bba524d.js} +5 -5
- package/dist/cjs/{hr-5aba114a.js → hr-fc0a64fd.js} +5 -5
- package/dist/cjs/{hu-38c15915.js → hu-b900be50.js} +5 -5
- package/dist/cjs/{id-3a94c080.js → id-d20a381a.js} +5 -5
- package/dist/cjs/{index-0e50040c.js → index-ee37804b.js} +3 -0
- package/dist/cjs/{index-2b60e135.js → index-feeb7b6a.js} +1 -1
- package/dist/cjs/{index.es-33154f03.js → index.es-8da43c21.js} +6 -6
- package/dist/cjs/{interfaces-d539e30c.js → interfaces-000be6de.js} +0 -5
- package/dist/cjs/{it-ch-970563cd.js → it-ch-e6bfb280.js} +5 -5
- package/dist/cjs/{it-88834555.js → it-d07dffbe.js} +5 -5
- package/dist/cjs/{ja-13d4b1ae.js → ja-3fac4cb9.js} +5 -5
- package/dist/cjs/{ko-10cbdd98.js → ko-7df47ba4.js} +5 -5
- package/dist/cjs/layout-manager.cjs.entry.js +3 -3
- package/dist/cjs/list-item.cjs.entry.js +1 -1
- package/dist/cjs/{loadModules-c5490589.js → loadModules-f6df8d6a.js} +1 -1
- package/dist/cjs/{loadable-6925d840.js → loadable-13605f73.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{locale-88c21da2.js → locale-67f5f6b6.js} +1 -1
- package/dist/cjs/{lt-3fc5017a.js → lt-32e0b838.js} +5 -5
- package/dist/cjs/{lv-9d9cf999.js → lv-5822b401.js} +5 -5
- package/dist/cjs/map-select-tools_3.cjs.entry.js +16 -10
- package/dist/cjs/{mapViewUtils-9da2dddd.js → mapViewUtils-a4dd36ec.js} +1 -1
- package/dist/cjs/{mk-9f79812b.js → mk-76494f34.js} +5 -5
- package/dist/cjs/{nb-673fe3fd.js → nb-3ec52247.js} +5 -5
- package/dist/cjs/{nl-4dc0504f.js → nl-fe9ffca9.js} +5 -5
- package/dist/cjs/{openCloseComponent-05cb01ff.js → openCloseComponent-359d855c.js} +1 -1
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/{pl-d809a6c3.js → pl-13049aa3.js} +5 -5
- package/dist/cjs/{pt-br-55f1893a.js → pt-br-f222c9e6.js} +5 -5
- package/dist/cjs/{pt-78eefbc7.js → pt-ef1645ab.js} +5 -5
- package/dist/cjs/public-notification.cjs.entry.js +8 -8
- package/dist/cjs/{publicNotificationStore-55edd658.js → publicNotificationStore-b69862af.js} +1 -1
- package/dist/cjs/resources-f15abc99.js +29 -0
- package/dist/cjs/{ro-f0cff196.js → ro-712f9cbb.js} +5 -5
- package/dist/cjs/{ru-5e9b37f9.js → ru-45b18030.js} +5 -5
- package/dist/cjs/{shared-list-render-9bbcb306.js → shared-list-render-e5821654.js} +1 -1
- package/dist/cjs/{sk-322cd349.js → sk-db642b5a.js} +5 -5
- package/dist/cjs/{sl-fd948e50.js → sl-51811e20.js} +5 -5
- package/dist/cjs/solution-configuration.cjs.entry.js +5 -5
- package/dist/cjs/solution-contents_3.cjs.entry.js +5 -5
- package/dist/cjs/{solution-store-0004e4e6.js → solution-store-3cd104d8.js} +2 -2
- package/dist/cjs/solutions-components.cjs.js +2 -2
- package/dist/cjs/{sr-f0058b24.js → sr-c248524c.js} +5 -5
- package/dist/cjs/store-manager.cjs.entry.js +1 -1
- package/dist/cjs/{sv-8a8378bf.js → sv-67777565.js} +5 -5
- package/dist/cjs/{t9n-62d807df.js → t9n-58d20225.js} +1 -1
- package/dist/cjs/{th-f219fad6.js → th-81fb9eb1.js} +5 -5
- package/dist/cjs/{tr-03109641.js → tr-b5da4c5c.js} +5 -5
- package/dist/cjs/{uk-dde46112.js → uk-e8ad8b3b.js} +5 -5
- package/dist/cjs/{utils-651e6663.js → utils-fddf1c6b.js} +1 -1
- package/dist/cjs/{vi-60ed6e30.js → vi-0b26505a.js} +5 -5
- package/dist/cjs/{zh-cn-a2f6f51d.js → zh-cn-40d02fac.js} +5 -5
- package/dist/cjs/{zh-hk-e14e2fc0.js → zh-hk-d1a89b9e.js} +5 -5
- package/dist/cjs/{zh-tw-7ea0d7e4.js → zh-tw-5691adb2.js} +5 -5
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/buffer-tools/buffer-tools.js +4 -2
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +33 -7
- package/dist/collection/components/info-card/info-card.js +24 -21
- package/dist/collection/components/layer-table/layer-table.js +3 -2
- package/dist/collection/components/map-card/map-card.css +4 -0
- package/dist/collection/components/map-card/map-card.js +1 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.css +19 -0
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +178 -0
- package/dist/collection/components/map-fullscreen/test/map-fullscreen.e2e.js +29 -0
- package/dist/collection/components/map-fullscreen/test/map-fullscreen.spec.js +37 -0
- package/dist/collection/components/map-picker/map-picker.css +64 -64
- package/dist/collection/components/map-select-tools/map-select-tools.js +7 -1
- package/dist/collection/components/map-tools/map-tools.css +49 -45
- package/dist/collection/components/map-tools/map-tools.js +35 -29
- package/dist/collection/components/pdf-download/pdf-download.js +1 -1
- package/dist/collection/utils/interfaces.js +0 -5
- package/dist/collection/utils/interfaces.ts +0 -5
- package/dist/components/buffer-tools2.js +4 -2
- package/dist/components/crowdsource-manager.js +111 -79
- package/dist/components/info-card2.js +24 -21
- package/dist/components/interfaces.js +1 -6
- package/dist/components/layer-table2.js +3 -2
- package/dist/components/map-card2.js +44 -38
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen.d.ts +11 -0
- package/dist/components/map-fullscreen.js +11 -0
- package/dist/components/map-fullscreen2.js +130 -0
- package/dist/components/map-select-tools2.js +7 -1
- package/dist/components/map-tools2.js +43 -34
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/public-notification.js +1 -1
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/solution-resource-item2.js +1 -1
- package/dist/components/solution-store.js +1 -1
- package/dist/esm/{ExpandToggle-3bfcb842.js → ExpandToggle-86761b28.js} +1 -1
- package/dist/esm/{FloatingArrow-cf140d6b.js → FloatingArrow-4a1b35d6.js} +1 -1
- package/dist/esm/{Heading-140d10ff.js → Heading-5258553c.js} +1 -1
- package/dist/esm/{ar-45abeb31.js → ar-4a5375c6.js} +5 -5
- package/dist/esm/{basemap-gallery_5.entry.js → basemap-gallery_6.entry.js} +139 -11
- package/dist/esm/{bg-af759e86.js → bg-b25e4b7a.js} +5 -5
- package/dist/esm/{bs-20d012de.js → bs-2485dfed.js} +5 -5
- package/dist/esm/buffer-tools_4.entry.js +12 -10
- package/dist/esm/{ca-1498df65.js → ca-bba36d26.js} +5 -5
- package/dist/esm/calcite-accordion-item.entry.js +2 -2
- package/dist/esm/calcite-accordion.entry.js +1 -1
- package/dist/esm/{calcite-filter_5.entry.js → calcite-action-bar_3.entry.js} +191 -343
- package/dist/esm/calcite-action-group_2.entry.js +4 -4
- package/dist/esm/calcite-action-pad.entry.js +5 -5
- package/dist/esm/calcite-action_2.entry.js +6 -6
- package/dist/esm/calcite-alert.entry.js +4 -4
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block-section.entry.js +3 -3
- package/dist/esm/calcite-block.entry.js +5 -5
- package/dist/esm/calcite-button.entry.js +4 -4
- package/dist/esm/calcite-card.entry.js +3 -3
- package/dist/esm/calcite-checkbox.entry.js +3 -3
- package/dist/esm/calcite-chip-group.entry.js +2 -2
- package/dist/esm/calcite-chip.entry.js +4 -4
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +2 -2
- package/dist/esm/calcite-color-picker.entry.js +3 -3
- package/dist/esm/calcite-combobox-item-group.entry.js +1 -1
- package/dist/esm/calcite-combobox_6.entry.js +10 -10
- package/dist/esm/calcite-date-picker-day_3.entry.js +2 -2
- package/dist/esm/calcite-date-picker.entry.js +4 -4
- package/dist/esm/calcite-fab.entry.js +2 -2
- package/dist/esm/calcite-filter_3.entry.js +381 -0
- package/dist/esm/calcite-flow-item.entry.js +3 -3
- package/dist/esm/calcite-flow.entry.js +2 -2
- package/dist/esm/calcite-graph.entry.js +1 -1
- package/dist/esm/calcite-icon.entry.js +1 -1
- package/dist/esm/calcite-inline-editable.entry.js +3 -3
- package/dist/esm/calcite-input-date-picker.entry.js +6 -6
- package/dist/esm/calcite-input-number_2.entry.js +4 -4
- package/dist/esm/{calcite-input-time-picker-227e60c3.js → calcite-input-time-picker-7da2e80a.js} +53 -53
- package/dist/esm/calcite-input-time-picker.entry.js +5 -5
- package/dist/esm/calcite-input-time-zone.entry.js +4 -4
- package/dist/esm/calcite-input_2.entry.js +4 -4
- package/dist/esm/calcite-label.entry.js +1 -1
- package/dist/esm/calcite-link.entry.js +2 -2
- package/dist/esm/calcite-list-item-group.entry.js +1 -1
- package/dist/esm/calcite-loader.entry.js +1 -1
- package/dist/esm/calcite-menu-item.entry.js +3 -3
- package/dist/esm/calcite-menu.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +5 -5
- package/dist/esm/calcite-navigation-logo.entry.js +2 -2
- package/dist/esm/calcite-navigation-user.entry.js +2 -2
- package/dist/esm/calcite-navigation.entry.js +2 -2
- package/dist/esm/calcite-notice.entry.js +4 -4
- package/dist/esm/calcite-option-group.entry.js +1 -1
- package/dist/esm/calcite-option_2.entry.js +3 -3
- package/dist/esm/calcite-pagination.entry.js +3 -3
- package/dist/esm/calcite-panel_2.entry.js +5 -5
- package/dist/esm/calcite-pick-list-group.entry.js +3 -3
- package/dist/esm/calcite-pick-list-item.entry.js +4 -4
- package/dist/esm/calcite-pick-list.entry.js +3 -3
- package/dist/esm/calcite-radio-button-group.entry.js +2 -2
- package/dist/esm/calcite-radio-button.entry.js +3 -3
- package/dist/esm/calcite-rating.entry.js +4 -4
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-segmented-control_2.entry.js +3 -3
- package/dist/esm/calcite-shell-center-row.entry.js +2 -2
- package/dist/esm/calcite-shell-panel_14.entry.js +9 -9
- package/dist/esm/calcite-sortable-list.entry.js +1 -1
- package/dist/esm/calcite-split-button.entry.js +2 -2
- package/dist/esm/calcite-stepper-item.entry.js +2 -2
- package/dist/esm/calcite-stepper.entry.js +1 -1
- package/dist/esm/calcite-switch.entry.js +3 -3
- package/dist/esm/calcite-text-area.entry.js +4 -4
- package/dist/esm/calcite-tile-select-group.entry.js +1 -1
- package/dist/esm/calcite-tile-select.entry.js +2 -2
- package/dist/esm/calcite-tile.entry.js +2 -2
- package/dist/esm/calcite-time-picker.entry.js +3 -3
- package/dist/esm/calcite-tip-group.entry.js +1 -1
- package/dist/esm/calcite-tip-manager.entry.js +3 -3
- package/dist/esm/calcite-tip.entry.js +4 -4
- package/dist/esm/calcite-tooltip.entry.js +3 -3
- package/dist/esm/calcite-tree_3.entry.js +2 -2
- package/dist/esm/card-manager_3.entry.js +11 -10
- package/dist/esm/{conditionalSlot-55a14abd.js → conditionalSlot-dff8f839.js} +1 -1
- package/dist/esm/crowdsource-manager.entry.js +36 -10
- package/dist/esm/crowdsource-reporter.entry.js +1 -1
- package/dist/esm/{cs-3bd67855.js → cs-1052c5ac.js} +5 -5
- package/dist/esm/{da-7a76e131.js → da-b7ed9204.js} +5 -5
- package/dist/esm/{de-at-0b6874cb.js → de-at-a993e5ae.js} +5 -5
- package/dist/esm/{de-0808a43e.js → de-bb68e752.js} +5 -5
- package/dist/esm/{de-ch-c9d429dd.js → de-ch-acff745d.js} +5 -5
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/{downloadUtils-8d4c13bb.js → downloadUtils-42156cd8.js} +4 -4
- package/dist/esm/edit-card_2.entry.js +27 -24
- package/dist/esm/{el-66001281.js → el-9de96ff0.js} +5 -5
- package/dist/esm/{en-au-6424fec0.js → en-au-f68b6bde.js} +5 -5
- package/dist/esm/{en-ca-f5f1659d.js → en-ca-5360517e.js} +5 -5
- package/dist/esm/{en-gb-796beadd.js → en-gb-de0b3125.js} +5 -5
- package/dist/esm/{es-cd139926.js → es-5ecbba77.js} +5 -5
- package/dist/esm/{es-mx-854dc3e4.js → es-mx-aa126462.js} +5 -5
- package/dist/esm/{et-2aa6782d.js → et-7113eeb8.js} +5 -5
- package/dist/esm/{fi-965727bd.js → fi-ffa60f15.js} +5 -5
- package/dist/esm/{form-04d47b0b.js → form-24e6ef1d.js} +1 -1
- package/dist/esm/{fr-c1884e89.js → fr-681c5bf6.js} +5 -5
- package/dist/esm/{fr-ch-1fd8dd3a.js → fr-ch-9af1f8b1.js} +5 -5
- package/dist/esm/{he-0d7b78b4.js → he-5188f277.js} +5 -5
- package/dist/esm/{hi-0376c82d.js → hi-6a31e3a4.js} +5 -5
- package/dist/esm/{hr-28a64903.js → hr-0598e59d.js} +5 -5
- package/dist/esm/{hu-44a02ff7.js → hu-13cb9f41.js} +5 -5
- package/dist/esm/{id-034fc4a5.js → id-7f342499.js} +5 -5
- package/dist/esm/{index-b5d9d795.js → index-c7de2486.js} +3 -0
- package/dist/esm/{index-b91c174c.js → index-f4bd5aa3.js} +1 -1
- package/dist/esm/{index.es-065c3035.js → index.es-f47c4153.js} +6 -6
- package/dist/esm/{interfaces-5a2fe8b4.js → interfaces-7470d906.js} +1 -6
- package/dist/esm/{it-56e52026.js → it-57d790f2.js} +5 -5
- package/dist/esm/{it-ch-a4a0e136.js → it-ch-081af760.js} +5 -5
- package/dist/esm/{ja-f2365272.js → ja-3affb68e.js} +5 -5
- package/dist/esm/{ko-e7650b4c.js → ko-736632aa.js} +5 -5
- package/dist/esm/layout-manager.entry.js +3 -3
- package/dist/esm/list-item.entry.js +1 -1
- package/dist/esm/{loadModules-f5f910b6.js → loadModules-2880c7e3.js} +1 -1
- package/dist/esm/{loadable-47170cb6.js → loadable-f848be11.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{locale-efad8f83.js → locale-9624832c.js} +1 -1
- package/dist/esm/{lt-1577a952.js → lt-e7d9b1c3.js} +5 -5
- package/dist/esm/{lv-9ef7e4f6.js → lv-4d1a507e.js} +5 -5
- package/dist/esm/map-select-tools_3.entry.js +16 -10
- package/dist/esm/{mapViewUtils-f0c04325.js → mapViewUtils-00a04d52.js} +1 -1
- package/dist/esm/{mk-94264e08.js → mk-f960312d.js} +5 -5
- package/dist/esm/{nb-fa24d5b2.js → nb-4556b5e9.js} +5 -5
- package/dist/esm/{nl-33f10900.js → nl-8e281c01.js} +5 -5
- package/dist/esm/{openCloseComponent-10efeff3.js → openCloseComponent-9fce341c.js} +1 -1
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/{pl-9ed16565.js → pl-1460fd5a.js} +5 -5
- package/dist/esm/{pt-52731ddf.js → pt-660332b6.js} +5 -5
- package/dist/esm/{pt-br-8de51ff4.js → pt-br-dba48f49.js} +5 -5
- package/dist/esm/public-notification.entry.js +8 -8
- package/dist/esm/{publicNotificationStore-ade82148.js → publicNotificationStore-90a6a274.js} +1 -1
- package/dist/esm/resources-74ea5c42.js +26 -0
- package/dist/esm/{ro-99f009ad.js → ro-ac18f292.js} +5 -5
- package/dist/esm/{ru-592ffaf0.js → ru-b914f6b7.js} +5 -5
- package/dist/esm/{shared-list-render-4f0f6af8.js → shared-list-render-cc889757.js} +1 -1
- package/dist/esm/{sk-44f7bd19.js → sk-1be12963.js} +5 -5
- package/dist/esm/{sl-08cad9bd.js → sl-5d47e4e4.js} +5 -5
- package/dist/esm/solution-configuration.entry.js +5 -5
- package/dist/esm/solution-contents_3.entry.js +5 -5
- package/dist/esm/{solution-store-46bc46a5.js → solution-store-cf902566.js} +2 -2
- package/dist/esm/solutions-components.js +3 -3
- package/dist/esm/{sr-84f261fc.js → sr-3281c92d.js} +5 -5
- package/dist/esm/store-manager.entry.js +1 -1
- package/dist/esm/{sv-d0d7bc1e.js → sv-e5169404.js} +5 -5
- package/dist/esm/{t9n-5f748619.js → t9n-d9c203e4.js} +1 -1
- package/dist/esm/{th-a5149d44.js → th-937796b8.js} +5 -5
- package/dist/esm/{tr-feb0cad4.js → tr-6d3b100b.js} +5 -5
- package/dist/esm/{uk-c9ba62a0.js → uk-a6edcacf.js} +5 -5
- package/dist/esm/{utils-0a5c1a07.js → utils-24a35b5a.js} +1 -1
- package/dist/esm/{vi-788dcb99.js → vi-bf4c179c.js} +5 -5
- package/dist/esm/{zh-cn-3ccfb820.js → zh-cn-de1858cb.js} +5 -5
- package/dist/esm/{zh-hk-b29b61e8.js → zh-hk-12fa404f.js} +5 -5
- package/dist/esm/{zh-tw-2bdbc6eb.js → zh-tw-5c4220e5.js} +5 -5
- package/dist/solutions-components/{p-1efcac52.entry.js → p-019fe9fe.entry.js} +3 -3
- package/dist/solutions-components/{p-95c11620.js → p-0503c78d.js} +2 -2
- package/dist/solutions-components/p-06712292.js +11 -0
- package/dist/solutions-components/{p-5eaaf6ea.entry.js → p-0870f436.entry.js} +1 -1
- package/dist/solutions-components/{p-99891e57.js → p-0a0c3764.js} +1 -1
- package/dist/solutions-components/{p-1bcfca9b.entry.js → p-0a883f51.entry.js} +1 -1
- package/dist/solutions-components/{p-3948a96c.js → p-0ca528ec.js} +1 -1
- package/dist/solutions-components/{p-456f5afe.entry.js → p-0d08a75d.entry.js} +1 -1
- package/dist/solutions-components/{p-0266ca81.js → p-0dab4c93.js} +1 -1
- package/dist/solutions-components/{p-f815b5ef.entry.js → p-0de1df10.entry.js} +1 -1
- package/dist/solutions-components/{p-138cf009.js → p-127c3866.js} +1 -1
- package/dist/solutions-components/p-12a7c2db.entry.js +6 -0
- package/dist/solutions-components/{p-d6f68a4e.entry.js → p-1552c479.entry.js} +1 -1
- package/dist/solutions-components/{p-dc9dad31.entry.js → p-15a9fe95.entry.js} +1 -1
- package/dist/solutions-components/{p-2bf63e2e.js → p-19ec0463.js} +1 -1
- package/dist/solutions-components/{p-651459e2.entry.js → p-1a47516a.entry.js} +2 -2
- package/dist/solutions-components/{p-3c15959e.js → p-1b4d6511.js} +1 -1
- package/dist/solutions-components/{p-b25005cf.entry.js → p-1ed80742.entry.js} +1 -1
- package/dist/solutions-components/{p-ec889511.js → p-1f69762c.js} +1 -1
- package/dist/solutions-components/{p-7f9642d5.js → p-22833bd3.js} +1 -1
- package/dist/solutions-components/{p-5958dad9.js → p-245d667e.js} +1 -1
- package/dist/solutions-components/{p-c9df539a.entry.js → p-25718b9f.entry.js} +1 -1
- package/dist/solutions-components/{p-0f85fa4b.js → p-2723beaa.js} +1 -1
- package/dist/solutions-components/{p-ae6a7b3b.entry.js → p-2821ab80.entry.js} +1 -1
- package/dist/solutions-components/{p-7262469a.js → p-2937523d.js} +1 -1
- package/dist/solutions-components/{p-bde323ec.js → p-29b2f046.js} +1 -1
- package/dist/solutions-components/p-2a58e378.js +21 -0
- package/dist/solutions-components/p-2cff8331.entry.js +6 -0
- package/dist/solutions-components/{p-0b8463d6.js → p-2d614afc.js} +1 -1
- package/dist/solutions-components/{p-aea37c90.js → p-300f4299.js} +1 -1
- package/dist/solutions-components/{p-64e2c099.js → p-30542275.js} +1 -1
- package/dist/solutions-components/{p-688f6a0a.js → p-318790b8.js} +1 -1
- package/dist/solutions-components/{p-e4253e1b.entry.js → p-31c9aa38.entry.js} +1 -1
- package/dist/solutions-components/{p-446ab7f8.entry.js → p-31d2a105.entry.js} +1 -1
- package/dist/solutions-components/p-33613993.js +7 -0
- package/dist/solutions-components/{p-7060caf6.js → p-337f6adf.js} +1 -1
- package/dist/solutions-components/{p-5ceef49b.js → p-34169501.js} +1 -1
- package/dist/solutions-components/{p-4d76eaf6.entry.js → p-3658ebd8.entry.js} +1 -1
- package/dist/solutions-components/{p-3445a8c6.js → p-3691a072.js} +1 -1
- package/dist/solutions-components/{p-28b5a7cf.js → p-38211628.js} +1 -1
- package/dist/solutions-components/{p-e2637fe6.js → p-38cc8a4d.js} +1 -1
- package/dist/solutions-components/{p-0fa3d1aa.js → p-39fe9a4c.js} +1 -1
- package/dist/solutions-components/{p-4f9f97b2.entry.js → p-3a7cd2b0.entry.js} +1 -1
- package/dist/solutions-components/{p-ca3d7edd.entry.js → p-3b891cc4.entry.js} +1 -1
- package/dist/solutions-components/{p-0f8440bb.entry.js → p-3cc30e11.entry.js} +1 -1
- package/dist/solutions-components/{p-8f8d2861.js → p-3d3772fb.js} +1 -1
- package/dist/solutions-components/{p-667e7134.entry.js → p-3e9fc0aa.entry.js} +1 -1
- package/dist/solutions-components/{p-635bbbd4.js → p-418be467.js} +1 -1
- package/dist/solutions-components/{p-586f0e3d.entry.js → p-45419d93.entry.js} +1 -1
- package/dist/solutions-components/{p-a46f1b45.js → p-45b829b5.js} +1 -1
- package/dist/solutions-components/{p-58167087.entry.js → p-48329056.entry.js} +1 -1
- package/dist/solutions-components/{p-6be3c411.js → p-4b4559f9.js} +1 -1
- package/dist/solutions-components/{p-8544d557.entry.js → p-4bd793ef.entry.js} +1 -1
- package/dist/solutions-components/{p-cec47579.entry.js → p-4cb7cdb7.entry.js} +1 -1
- package/dist/solutions-components/{p-0f77e83c.entry.js → p-4d91443a.entry.js} +2 -2
- package/dist/solutions-components/{p-6ce7b446.entry.js → p-52ec0b32.entry.js} +1 -1
- package/dist/solutions-components/{p-da6acb22.entry.js → p-537c34a4.entry.js} +1 -1
- package/dist/solutions-components/{p-7a027758.entry.js → p-54064b61.entry.js} +1 -1
- package/dist/solutions-components/{p-60c15592.js → p-54cc02c9.js} +1 -1
- package/dist/solutions-components/{p-2592c0b8.js → p-557d4cc5.js} +1 -1
- package/dist/solutions-components/{p-8f68f1d3.entry.js → p-61af54b9.entry.js} +1 -1
- package/dist/solutions-components/{p-0109bef4.entry.js → p-628c170b.entry.js} +1 -1
- package/dist/solutions-components/{p-e0c011b8.js → p-62e3adbb.js} +1 -1
- package/dist/solutions-components/{p-1e7a31c1.entry.js → p-64541510.entry.js} +1 -1
- package/dist/solutions-components/{p-3ce89910.entry.js → p-65022e7f.entry.js} +1 -1
- package/dist/solutions-components/{p-bbb0d957.entry.js → p-66dd455f.entry.js} +1 -1
- package/dist/solutions-components/{p-f596eabd.entry.js → p-68630513.entry.js} +1 -1
- package/dist/solutions-components/{p-1cebde99.js → p-69e26726.js} +1 -1
- package/dist/solutions-components/{p-78a40191.entry.js → p-701409be.entry.js} +2 -2
- package/dist/solutions-components/{p-636f4631.js → p-702c6093.js} +1 -1
- package/dist/solutions-components/{p-1dbaff04.entry.js → p-712ea336.entry.js} +1 -1
- package/dist/solutions-components/{p-7b2314ac.js → p-71400268.js} +1 -1
- package/dist/solutions-components/{p-89504313.entry.js → p-74521615.entry.js} +1 -1
- package/dist/solutions-components/{p-5c9fa0e7.js → p-747a1293.js} +1 -1
- package/dist/solutions-components/{p-8927339d.js → p-74aa84f6.js} +1 -1
- package/dist/solutions-components/{p-57c08531.entry.js → p-753da967.entry.js} +1 -1
- package/dist/solutions-components/{p-168a7d63.js → p-75e707d1.js} +1 -1
- package/dist/solutions-components/{p-f8dd2784.js → p-767002cd.js} +2 -2
- package/dist/solutions-components/{p-17a29fa6.entry.js → p-792fcd62.entry.js} +1 -1
- package/dist/solutions-components/{p-d864b7e3.js → p-79d7f324.js} +1 -1
- package/dist/solutions-components/{p-b28b6d40.js → p-7a11983d.js} +1 -1
- package/dist/solutions-components/{p-ea285144.js → p-80b87453.js} +1 -1
- package/dist/solutions-components/{p-864c190b.entry.js → p-8150ad0e.entry.js} +1 -1
- package/dist/solutions-components/{p-5e08d4de.js → p-82f0b25b.js} +1 -1
- package/dist/solutions-components/{p-e2eb4fd3.entry.js → p-85791b16.entry.js} +1 -1
- package/dist/solutions-components/{p-0ecd7346.js → p-85e0d2a3.js} +1 -1
- package/dist/solutions-components/{p-6ddc9567.entry.js → p-87971116.entry.js} +2 -2
- package/dist/solutions-components/{p-c79c7978.entry.js → p-89617f30.entry.js} +1 -1
- package/dist/solutions-components/{p-6eb4ba8f.js → p-89cbb86a.js} +1 -1
- package/dist/solutions-components/{p-ced11bea.entry.js → p-8a91195f.entry.js} +1 -1
- package/dist/solutions-components/{p-34ef43ce.entry.js → p-8b2e460e.entry.js} +1 -1
- package/dist/solutions-components/{p-ec378ea0.entry.js → p-8e3e1ce8.entry.js} +1 -1
- package/dist/solutions-components/{p-072155f9.js → p-8e9d9e6a.js} +1 -1
- package/dist/solutions-components/{p-a287be8b.js → p-90a9126f.js} +1 -1
- package/dist/solutions-components/{p-8c61431d.js → p-9391bb74.js} +1 -1
- package/dist/solutions-components/{p-2154de6d.js → p-941721ba.js} +1 -1
- package/dist/solutions-components/{p-38f906f2.js → p-9504c1b7.js} +1 -1
- package/dist/solutions-components/{p-0dd8368d.entry.js → p-97088307.entry.js} +1 -1
- package/dist/solutions-components/{p-35cb6eca.entry.js → p-9791fbf1.entry.js} +2 -2
- package/dist/solutions-components/{p-6295e168.entry.js → p-97b69f54.entry.js} +1 -1
- package/dist/solutions-components/{p-261394d7.entry.js → p-981fc8e4.entry.js} +1 -1
- package/dist/solutions-components/{p-1fba74a5.entry.js → p-9961a2f9.entry.js} +1 -1
- package/dist/solutions-components/{p-3cfaf52b.entry.js → p-9abb1c4c.entry.js} +2 -2
- package/dist/solutions-components/{p-452850b4.entry.js → p-9b75102b.entry.js} +1 -1
- package/dist/solutions-components/{p-7bb12deb.js → p-a097edf0.js} +1 -1
- package/dist/solutions-components/p-a16e6f5f.entry.js +6 -0
- package/dist/solutions-components/{p-167eb73b.js → p-a19d8147.js} +1 -1
- package/dist/solutions-components/{p-31aaa60f.js → p-a59dba2f.js} +1 -1
- package/dist/solutions-components/{p-8af52074.entry.js → p-ac1bd870.entry.js} +1 -1
- package/dist/solutions-components/{p-9370bb48.entry.js → p-ad19f9b0.entry.js} +1 -1
- package/dist/solutions-components/{p-9a35ef8e.js → p-ae3ec77d.js} +1 -1
- package/dist/solutions-components/{p-56f1d66b.entry.js → p-ae4ad673.entry.js} +2 -2
- package/dist/solutions-components/{p-13290851.js → p-afb35c95.js} +1 -1
- package/dist/solutions-components/{p-ebbff02e.js → p-b029c6d8.js} +1 -1
- package/dist/solutions-components/{p-80cb42e4.entry.js → p-b09d8c0e.entry.js} +1 -1
- package/dist/solutions-components/{p-c1dcc1e7.js → p-b1daad7e.js} +1 -1
- package/dist/solutions-components/p-b6a1c34f.entry.js +17 -0
- package/dist/solutions-components/{p-f153f1c9.entry.js → p-b7093e6d.entry.js} +1 -1
- package/dist/solutions-components/{p-01c83b8c.entry.js → p-b97886b3.entry.js} +1 -1
- package/dist/solutions-components/{p-8d00a17e.js → p-bbfc2724.js} +1 -1
- package/dist/solutions-components/{p-149b4d3c.entry.js → p-bd82849c.entry.js} +1 -1
- package/dist/solutions-components/{p-c3ab7439.js → p-bfc78840.js} +1 -1
- package/dist/solutions-components/{p-cd673260.js → p-bff158ff.js} +1 -1
- package/dist/solutions-components/{p-879d6377.entry.js → p-c033b8ec.entry.js} +1 -1
- package/dist/solutions-components/{p-feff224c.entry.js → p-c261335b.entry.js} +1 -1
- package/dist/solutions-components/{p-10e1ebe4.entry.js → p-ca5be55f.entry.js} +2 -2
- package/dist/solutions-components/{p-2c0dc7b1.js → p-cc462e38.js} +1 -1
- package/dist/solutions-components/{p-cc2393c3.entry.js → p-cc624b0c.entry.js} +1 -1
- package/dist/solutions-components/{p-46352a57.entry.js → p-d118a76e.entry.js} +1 -1
- package/dist/solutions-components/p-d54c2dfd.entry.js +6 -0
- package/dist/solutions-components/{p-476e5302.js → p-d74e95e5.js} +1 -1
- package/dist/solutions-components/{p-0c2e392e.entry.js → p-d793ec96.entry.js} +1 -1
- package/dist/solutions-components/{p-90cef98d.entry.js → p-d7d466e8.entry.js} +1 -1
- package/dist/solutions-components/{p-27e0f599.js → p-d902b790.js} +1 -1
- package/dist/solutions-components/{p-e3d72832.entry.js → p-da760d1d.entry.js} +2 -2
- package/dist/solutions-components/{p-cee23126.js → p-dac10448.js} +1 -1
- package/dist/solutions-components/{p-8b74f5bb.entry.js → p-dc80cb69.entry.js} +1 -1
- package/dist/solutions-components/{p-9b76bf3d.js → p-dd5f68f2.js} +1 -1
- package/dist/solutions-components/{p-470a9ec4.entry.js → p-dda325a4.entry.js} +1 -1
- package/dist/solutions-components/{p-410068d9.entry.js → p-e502ccce.entry.js} +1 -1
- package/dist/solutions-components/{p-5d62566c.entry.js → p-e7304151.entry.js} +1 -1
- package/dist/solutions-components/{p-ac0abf04.entry.js → p-e849d2ba.entry.js} +2 -2
- package/dist/solutions-components/{p-73220ff1.js → p-e9fcf408.js} +1 -1
- package/dist/solutions-components/{p-28d2670f.entry.js → p-eb58da32.entry.js} +1 -1
- package/dist/solutions-components/{p-42f9ab43.entry.js → p-efd70bf7.entry.js} +2 -2
- package/dist/solutions-components/{p-be146646.js → p-f0f5ecb2.js} +1 -1
- package/dist/solutions-components/{p-082365d6.entry.js → p-f4e5b7e5.entry.js} +1 -1
- package/dist/solutions-components/{p-c70392c4.entry.js → p-f524cc5b.entry.js} +1 -1
- package/dist/solutions-components/{p-81814234.entry.js → p-f6b19af7.entry.js} +1 -1
- package/dist/solutions-components/{p-872036a8.js → p-f6cf9943.js} +1 -1
- package/dist/solutions-components/{p-c968f9aa.entry.js → p-f72e0965.entry.js} +1 -1
- package/dist/solutions-components/{p-b28ff52c.js → p-f7aa542c.js} +1 -1
- package/dist/solutions-components/p-f812e3ee.entry.js +17 -0
- package/dist/solutions-components/{p-66b5211f.entry.js → p-f8944f59.entry.js} +1 -1
- package/dist/solutions-components/{p-a1c6db13.entry.js → p-fb23ba4a.entry.js} +1 -1
- package/dist/solutions-components/p-fb74e4a9.js +11 -0
- package/dist/solutions-components/{p-46e0ce0c.entry.js → p-fbd71543.entry.js} +1 -1
- package/dist/solutions-components/{p-29efbf76.entry.js → p-ff863f3d.entry.js} +1 -1
- package/dist/solutions-components/p-ffbe89cf.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +0 -5
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +21 -1
- package/dist/types/components/map-fullscreen/map-fullscreen.d.ts +71 -0
- package/dist/types/components/map-tools/map-tools.d.ts +15 -7
- package/dist/types/components/pdf-download/pdf-download.d.ts +1 -1
- package/dist/types/components.d.ts +31 -10
- package/dist/types/preact.d.ts +3 -3
- package/dist/types/utils/interfaces.d.ts +0 -4
- package/package.json +1 -1
- package/dist/cjs/calcite-action-bar.cjs.entry.js +0 -250
- package/dist/esm/calcite-action-bar.entry.js +0 -246
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/solutions-components/p-18538cd9.entry.js +0 -11
- package/dist/solutions-components/p-868df4a0.js +0 -21
- package/dist/solutions-components/p-869d4521.entry.js +0 -6
- package/dist/solutions-components/p-9310b882.js +0 -7
- package/dist/solutions-components/p-9eba78eb.entry.js +0 -6
- package/dist/solutions-components/p-c26cd409.entry.js +0 -6
- package/dist/solutions-components/p-d4cb29ed.entry.js +0 -6
- package/dist/solutions-components/p-e4d2fcc5.js +0 -11
- package/dist/solutions-components/p-fb7ca639.entry.js +0 -6
- package/dist/solutions-components/p-fe96e0d9.entry.js +0 -23
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as s,h as i,g as e}from"./p-9310b882.js";import{c as o,C as a,D as n,a as l,H as r,O as h,b as c,S as d,d as p,R as u}from"./p-e0fb0920.js";import{i as f,a as m}from"./p-a16feeec.js";import{C as v,n as g,h as b,o as w,a as x,b as y,p as C,c as k,t as S,d as A,e as D,f as $}from"./p-643a0325.js";import{c as j,d as z,u as F}from"./p-ad75b9bb.js";import{i as L}from"./p-43ba7a04.js";import{c as O,s as M,a as N}from"./p-476e5302.js";import{c as P,d as I}from"./p-7f271c31.js";import{r as K,c as E,a as U}from"./p-3d3e6e20.js";import{u as H,s as R,c as T,d as X}from"./p-2592c0b8.js";import{t as V}from"./p-6665fa1f.js";import"./p-e1a4994d.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";import"./p-588bc0c0.js";import"./p-a82f35c9.js";const q=class{constructor(e){t(this,e),this.calciteColorPickerChange=s(this,"calciteColorPickerChange",6),this.calciteColorPickerInput=s(this,"calciteColorPickerInput",6),this.internalColorUpdateContext=null,this.mode=v.HEX,this.shiftKeyChannelAdjustment=0,this.handleTabActivate=t=>{this.channelMode=t.currentTarget.getAttribute("data-color-mode"),this.updateChannelsFromColor(this.color)},this.handleColorFieldScopeKeyDown=t=>{const{key:s}=t,i={ArrowUp:{x:0,y:-10},ArrowRight:{x:10,y:0},ArrowDown:{x:0,y:10},ArrowLeft:{x:-10,y:0}};i[s]&&(t.preventDefault(),this.scopeOrientation="ArrowDown"===s||"ArrowUp"===s?"vertical":"horizontal",this.captureColorFieldColor(this.colorFieldScopeLeft+i[s].x||0,this.colorFieldScopeTop+i[s].y||0,!1))},this.handleHueScopeKeyDown=t=>{const s=t.shiftKey?10:1,{key:i}=t,e={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1};if(e[i]){t.preventDefault();const o=e[i]*s,a=this.baseColorFieldColor.hue(),n=this.baseColorFieldColor.hue(a+o);this.internalColorSet(n,!1)}},this.handleHexInputChange=t=>{t.stopPropagation();const{allowEmpty:s,color:i}=this,e=t.target.value;!s||e?e!==(i&&g(b(i,y(this.mode))))&&this.internalColorSet(o(e)):this.internalColorSet(null)},this.handleSavedColorSelect=t=>{this.internalColorSet(o(t.currentTarget.color))},this.handleChannelInput=t=>{const s=t.currentTarget,i=Number(s.getAttribute("data-channel-index")),e=3===i?h.max:"rgb"===this.channelMode?u[Object.keys(u)[i]]:r[Object.keys(r)[i]];let o;if(this.allowEmpty&&!s.value)o="";else{const t=Number(s.value);o=E(t+this.shiftKeyChannelAdjustment,0,e).toString()}s.value=o},this.handleChannelChange=t=>{const s=t.currentTarget,i=Number(s.getAttribute("data-channel-index")),e=[...this.channels];if(this.allowEmpty&&!s.value)return this.channels=[null,null,null,null],void this.internalColorSet(null);const o=3===i,a=Number(s.value);e[i]=o?w(a):a,this.updateColorFromChannels(e)},this.handleSavedColorKeyDown=t=>{L(t.key)&&(t.preventDefault(),this.handleSavedColorSelect(t))},this.handleColorFieldPointerDown=t=>{if(!f(t))return;const{offsetX:s,offsetY:i}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.colorFieldRenderingContext,bounds:this.colorFieldRenderingContext.canvas.getBoundingClientRect()},this.captureColorFieldColor(s,i),this.colorFieldScopeNode.focus()},this.handleHueSliderPointerDown=t=>{if(!f(t))return;const{offsetX:s}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.hueSliderRenderingContext,bounds:this.hueSliderRenderingContext.canvas.getBoundingClientRect()},this.captureHueSliderColor(s),this.hueScopeNode.focus()},this.handleOpacitySliderPointerDown=t=>{if(!f(t))return;const{offsetX:s}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.opacitySliderRenderingContext,bounds:this.opacitySliderRenderingContext.canvas.getBoundingClientRect()},this.captureOpacitySliderValue(s),this.opacityScopeNode.focus()},this.globalPointerUpHandler=t=>{if(!f(t))return;const s=this.activeCanvasInfo;this.activeCanvasInfo=null,this.drawColorControls(),s&&this.calciteColorPickerChange.emit()},this.globalPointerMoveHandler=t=>{const{activeCanvasInfo:s,el:i}=this;if(!i.isConnected||!s)return;const{context:e,bounds:o}=s;let a,n;const{clientX:l,clientY:r}=t;e.canvas.matches(":hover")?(a=l-o.x,n=r-o.y):(a=l<o.x+o.width&&l>o.x?l-o.x:l<o.x?0:o.width,n=r<o.y+o.height&&r>o.y?r-o.y:r<o.y?0:o.height),e===this.colorFieldRenderingContext?this.captureColorFieldColor(a,n,!1):e===this.hueSliderRenderingContext?this.captureHueSliderColor(a):e===this.opacitySliderRenderingContext&&this.captureOpacitySliderValue(a)},this.storeColorFieldScope=t=>{this.colorFieldScopeNode=t},this.storeHueScope=t=>{this.hueScopeNode=t},this.renderChannelsTabTitle=t=>{const{channelMode:s,messages:e}=this;return i("calcite-tab-title",{class:a.colorMode,"data-color-mode":t,key:t,onCalciteTabsActivate:this.handleTabActivate,selected:t===s},"rgb"===t?e.rgb:e.hsv)},this.renderChannelsTab=t=>{const{allowEmpty:s,channelMode:e,channels:o,messages:n,alphaChannel:l}=this,r=t===e,h="rgb"===t?[n.red,n.green,n.blue]:[n.hue,n.saturation,n.value],c=m(this.el),d=l?o:o.slice(0,3);return i("calcite-tab",{class:a.control,key:t,selected:r},i("div",{class:a.channels,dir:"ltr"},d.map(((t,i)=>{const e=3===i;return e&&(t=s&&!t?t:x(t)),this.renderChannel(t,i,h[i],c,e?"%":"")}))))},this.renderChannel=(t,s,e,o,n)=>i("calcite-input-number",{class:a.channel,"data-channel-index":s,dir:o,key:s,label:e,lang:this.effectiveLocale,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputNumberChange:this.handleChannelChange,onCalciteInputNumberInput:this.handleChannelInput,onKeyDown:this.handleKeyDown,scale:"l"===this.scale?"m":"s",style:{marginLeft:s>0&&("s"!==this.scale||!this.alphaChannel||3!==s)?"-1px":""},suffixText:n,value:null==t?void 0:t.toString()}),this.deleteColor=()=>{const t=b(this.color,this.alphaChannel);if(!(this.savedColors.indexOf(t)>-1))return;const s=this.savedColors.filter((s=>s!==t));this.savedColors=s,this.storageId&&localStorage.setItem(`${p}${this.storageId}`,JSON.stringify(s))},this.saveColor=()=>{const t=b(this.color,this.alphaChannel);if(this.savedColors.indexOf(t)>-1)return;const s=[...this.savedColors,t];this.savedColors=s,this.storageId&&localStorage.setItem(`${p}${this.storageId}`,JSON.stringify(s))},this.drawColorControls=V(((t="all")=>{"all"!==t&&"color-field"!==t||!this.colorFieldRenderingContext||this.drawColorField(),"all"!==t&&"hue-slider"!==t||!this.hueSliderRenderingContext||this.drawHueSlider(),this.alphaChannel&&("all"===t||"opacity-slider"===t)&&this.opacitySliderRenderingContext&&this.drawOpacitySlider()}),16),this.captureColorFieldColor=(t,s,i=!0)=>{const{dimensions:{colorField:{height:e,width:o}}}=this,a=Math.round(r.s/o*t),n=Math.round(r.v/e*(e-s));this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(a).value(n),i)},this.initColorField=t=>{this.colorFieldRenderingContext=t.getContext("2d"),this.updateCanvasSize("color-field"),this.drawColorControls()},this.initHueSlider=t=>{this.hueSliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("hue-slider"),this.drawHueSlider()},this.initOpacitySlider=t=>{this.opacitySliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("opacity-slider"),this.drawOpacitySlider()},this.storeOpacityScope=t=>{this.opacityScopeNode=t},this.handleOpacityScopeKeyDown=t=>{const s=t.shiftKey?10:1,{key:i}=t,e={ArrowUp:.01,ArrowRight:.01,ArrowDown:-.01,ArrowLeft:-.01};if(e[i]){t.preventDefault();const o=e[i]*s,a=this.baseColorFieldColor.alpha(),n=this.baseColorFieldColor.alpha(a+o);this.internalColorSet(n,!1)}},this.allowEmpty=!1,this.alphaChannel=!1,this.channelsDisabled=!1,this.color=n,this.disabled=!1,this.format="auto",this.hideChannels=!1,this.hexDisabled=!1,this.hideHex=!1,this.hideSaved=!1,this.savedDisabled=!1,this.scale="m",this.storageId=void 0,this.messageOverrides=void 0,this.numberingSystem=void 0,this.value=g(b(n,this.alphaChannel)),this.defaultMessages=void 0,this.channelMode="rgb",this.channels=this.toChannels(n),this.dimensions=l.m,this.effectiveLocale="",this.messages=void 0,this.savedColors=[],this.colorFieldScopeTop=void 0,this.colorFieldScopeLeft=void 0,this.hueScopeLeft=void 0,this.opacityScopeLeft=void 0,this.scopeOrientation=void 0}handleAlphaChannelChange(t){const{format:s}=this;t&&"auto"!==s&&!y(s)&&(console.warn(`ignoring alphaChannel as the current format (${s}) does not support alpha`),this.alphaChannel=!1)}handleColorChange(t,s){this.drawColorControls(),this.updateChannelsFromColor(t),this.previousColor=s}handleFormatChange(t){this.setMode(t),this.internalColorSet(this.color,!1,"internal")}handleScaleChange(t="m"){this.updateDimensions(t),this.updateCanvasSize("all"),this.drawColorControls()}onMessagesChange(){}handleValueChange(t,s){const{allowEmpty:i,format:e}=this;let a=!1;if(!i||t){const i=C(t);if(!i||"auto"!==e&&i!==e)return this.showIncompatibleColorWarning(t,e),void(this.value=s);a=this.mode!==i,this.setMode(i,null===this.internalColorUpdateContext)}const n=this.activeCanvasInfo;if("initial"===this.internalColorUpdateContext)return;if("user-interaction"===this.internalColorUpdateContext)return this.calciteColorPickerInput.emit(),void(n||this.calciteColorPickerChange.emit());const l=i&&!t?null:o(null!=t&&"object"==typeof t&&y(this.mode)?$(t):t),r=!k(l,this.color);(a||r)&&this.internalColorSet(l,this.alphaChannel&&!(this.mode.endsWith("a")||this.mode.endsWith("a-css")),"internal")}get baseColorFieldColor(){return this.color||this.previousColor||n}effectiveLocaleChange(){H(this,this.effectiveLocale)}handleChannelKeyUpOrDown(t){this.shiftKeyChannelAdjustment=0;const{key:s}=t;if("ArrowUp"!==s&&"ArrowDown"!==s||!t.composedPath().some((t=>{var s;return null===(s=t.classList)||void 0===s?void 0:s.contains(a.channel)})))return;const{shiftKey:i}=t;if(t.preventDefault(),!this.color)return this.internalColorSet(this.previousColor),void t.stopPropagation();this.shiftKeyChannelAdjustment="ArrowUp"===s&&i?9:"ArrowDown"===s&&i?-9:0}async setFocus(){await O(this),this.el.focus()}async componentWillLoad(){M(this);const{allowEmpty:t,color:s,format:i,value:e}=this,a=t&&!e,n=C(e),l=a||"auto"===i&&n||i===n,r=a?null:l?o(e):s;l||this.showIncompatibleColorWarning(e,i),this.setMode(i,!1),this.internalColorSet(r,!1,"initial"),this.updateDimensions(this.scale);const h=`${p}${this.storageId}`;this.storageId&&localStorage.getItem(h)&&(this.savedColors=JSON.parse(localStorage.getItem(h))),await R(this)}connectedCallback(){j(this),P(this),T(this)}componentDidLoad(){N(this)}disconnectedCallback(){document.removeEventListener("pointermove",this.globalPointerMoveHandler),document.removeEventListener("pointerup",this.globalPointerUpHandler),z(this),I(this),X(this)}componentDidRender(){F(this)}render(){const{allowEmpty:t,channelsDisabled:s,color:e,colorFieldScopeLeft:o,colorFieldScopeTop:l,dimensions:{slider:{width:c},thumb:{radius:d}},hexDisabled:p,hideChannels:u,hideHex:f,hideSaved:m,hueScopeLeft:v,messages:g,alphaChannel:w,opacityScopeLeft:y,savedColors:C,savedDisabled:k,scale:S,scopeOrientation:A}=this,D=e?b(e,w):null,$=d,j=null!=v?v:c*n.hue()/r.h,z=d,F=null!=y?y:c*x(n.alpha())/h.max,L=null===e,O="vertical"===A,M=p||f,N=s||u,P=k||m,[I,K]=this.getAdjustedScopePosition(o,l),[E,U]=this.getAdjustedScopePosition(j,$),[H,R]=this.getAdjustedScopePosition(F,z);return i("div",{class:a.container},i("div",{class:a.controlAndScope},i("canvas",{class:a.colorField,onPointerDown:this.handleColorFieldPointerDown,ref:this.initColorField}),i("div",{"aria-label":O?g.value:g.saturation,"aria-valuemax":O?r.v:r.s,"aria-valuemin":"0","aria-valuenow":(O?null==e?void 0:e.saturationv():null==e?void 0:e.value())||"0",class:{[a.scope]:!0,[a.colorFieldScope]:!0},onKeyDown:this.handleColorFieldScopeKeyDown,role:"slider",style:{top:`${K||0}px`,left:`${I||0}px`},tabindex:"0",ref:this.storeColorFieldScope})),i("div",{class:a.previewAndSliders},i("calcite-color-picker-swatch",{class:a.preview,color:D,scale:"l"}),i("div",{class:a.sliders},i("div",{class:a.controlAndScope},i("canvas",{class:{[a.slider]:!0,[a.hueSlider]:!0},onPointerDown:this.handleHueSliderPointerDown,ref:this.initHueSlider}),i("div",{"aria-label":g.hue,"aria-valuemax":r.h,"aria-valuemin":"0","aria-valuenow":(null==e?void 0:e.round().hue())||n.round().hue(),class:{[a.scope]:!0,[a.hueScope]:!0},onKeyDown:this.handleHueScopeKeyDown,role:"slider",style:{top:`${U}px`,left:`${E}px`},tabindex:"0",ref:this.storeHueScope})),w?i("div",{class:a.controlAndScope},i("canvas",{class:{[a.slider]:!0,[a.opacitySlider]:!0},onPointerDown:this.handleOpacitySliderPointerDown,ref:this.initOpacitySlider}),i("div",{"aria-label":g.opacity,"aria-valuemax":h.max,"aria-valuemin":h.min,"aria-valuenow":(e||n).round().alpha(),class:{[a.scope]:!0,[a.opacityScope]:!0},onKeyDown:this.handleOpacityScopeKeyDown,role:"slider",style:{top:`${R}px`,left:`${H}px`},tabindex:"0",ref:this.storeOpacityScope})):null)),M&&N?null:i("div",{class:{[a.controlSection]:!0,[a.section]:!0}},i("div",{class:a.hexAndChannelsGroup},M?null:i("div",{class:a.hexOptions},i("calcite-color-picker-hex-input",{allowEmpty:t,alphaChannel:w,class:a.control,messages:g,numberingSystem:this.numberingSystem,onCalciteColorPickerHexInputChange:this.handleHexInputChange,scale:S,value:D})),N?null:i("calcite-tabs",{class:{[a.colorModeContainer]:!0,[a.splitSection]:!0},scale:"l"===S?"m":"s"},i("calcite-tab-nav",{slot:"title-group"},this.renderChannelsTabTitle("rgb"),this.renderChannelsTabTitle("hsv")),this.renderChannelsTab("rgb"),this.renderChannelsTab("hsv")))),P?null:i("div",{class:{[a.savedColorsSection]:!0,[a.section]:!0}},i("div",{class:a.header},i("label",null,g.saved),i("div",{class:a.savedColorsButtons},i("calcite-button",{appearance:"transparent",class:a.deleteColor,disabled:L,iconStart:"minus",kind:"neutral",label:g.deleteColor,onClick:this.deleteColor,scale:S,type:"button"}),i("calcite-button",{appearance:"transparent",class:a.saveColor,disabled:L,iconStart:"plus",kind:"neutral",label:g.saveColor,onClick:this.saveColor,scale:S,type:"button"}))),C.length>0?i("div",{class:a.savedColors},[...C.map((t=>i("calcite-color-picker-swatch",{class:a.savedColor,color:t,key:t,onClick:this.handleSavedColorSelect,onKeyDown:this.handleSavedColorKeyDown,scale:S,tabIndex:0})))]):null))}handleKeyDown(t){"Enter"===t.key&&t.preventDefault()}showIncompatibleColorWarning(t,s){console.warn(`ignoring color value (${t}) as it is not compatible with the current format (${s})`)}setMode(t,s=!0){this.mode=this.ensureCompatibleMode("auto"===t?this.mode:t,s)}ensureCompatibleMode(t,s){const{alphaChannel:i}=this,e=y(t);if(i&&!e){const i=D(t);return s&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}if(!i&&e){const i=S(t);return s&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}return t}captureHueSliderColor(t){const{dimensions:{slider:{width:s}}}=this;this.internalColorSet(this.baseColorFieldColor.hue(c/s*t),!1)}captureOpacitySliderValue(t){const{dimensions:{slider:{width:s}}}=this,i=w(h.max/s*t);this.internalColorSet(this.baseColorFieldColor.alpha(i),!1)}internalColorSet(t,s=!0,i="user-interaction"){s&&k(t,this.color)||(this.internalColorUpdateContext=i,this.color=t,this.value=this.toValue(t),this.internalColorUpdateContext=null)}toValue(t,s=this.mode){if(!t)return null;if(s.includes("hex")){const i=s===v.HEXA;return g(b(t.round(),i),i)}if(s.includes("-css")){const i=t[s.replace("-css","").replace("a","")]().round().string();return(s.endsWith("a")||s.endsWith("a-css"))&&1===t.alpha()?`${i.slice(0,3)}a(${i.slice(4,-1)}, ${t.alpha()})`:i}const i=t[S(s)]().round().object();return s.endsWith("a")?A(i):i}getSliderCapSpacing(){const{dimensions:{slider:{height:t},thumb:{radius:s}}}=this;return 2*s-t}updateDimensions(t="m"){this.dimensions=l[t]}drawColorField(){const t=this.colorFieldRenderingContext,{dimensions:{colorField:{height:s,width:i}}}=this;t.fillStyle=this.baseColorFieldColor.hsv().saturationv(100).value(100).alpha(1).string(),t.fillRect(0,0,i,s);const e=t.createLinearGradient(0,0,i,0);e.addColorStop(0,"rgba(255,255,255,1)"),e.addColorStop(1,"rgba(255,255,255,0)"),t.fillStyle=e,t.fillRect(0,0,i,s);const o=t.createLinearGradient(0,0,0,s);o.addColorStop(0,"rgba(0,0,0,0)"),o.addColorStop(1,"rgba(0,0,0,1)"),t.fillStyle=o,t.fillRect(0,0,i,s),this.drawActiveColorFieldColor()}setCanvasContextSize(t,{height:s,width:i}){if(!t)return;const e=window.devicePixelRatio||1;t.width=i*e,t.height=s*e,t.style.height=`${s}px`,t.style.width=`${i}px`,t.getContext("2d").scale(e,e)}updateCanvasSize(t="all"){var s,i,e;const{dimensions:o}=this;"all"!==t&&"color-field"!==t||this.setCanvasContextSize(null===(s=this.colorFieldRenderingContext)||void 0===s?void 0:s.canvas,o.colorField);const a={width:o.slider.width,height:o.slider.height+2*(o.thumb.radius-o.slider.height/2)};"all"!==t&&"hue-slider"!==t||this.setCanvasContextSize(null===(i=this.hueSliderRenderingContext)||void 0===i?void 0:i.canvas,a),"all"!==t&&"opacity-slider"!==t||this.setCanvasContextSize(null===(e=this.opacitySliderRenderingContext)||void 0===e?void 0:e.canvas,a)}drawActiveColorFieldColor(){const{color:t}=this;if(!t)return;const s=t.hsv(),{dimensions:{colorField:{height:i,width:e},thumb:{radius:o}}}=this,a=s.saturationv()/(r.s/e),n=i-s.value()/(r.v/i);requestAnimationFrame((()=>{this.colorFieldScopeLeft=a,this.colorFieldScopeTop=n})),this.drawThumb(this.colorFieldRenderingContext,o,a,n,s)}drawThumb(t,s,i,e,o){const a=2*Math.PI;t.beginPath(),t.arc(i,e,s,0,a),t.fillStyle="#fff",t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),t.beginPath(),t.arc(i,e,s-3,0,a),t.fillStyle=o.rgb().alpha(1).string(),t.fill()}drawActiveHueSliderColor(){const{color:t}=this;if(!t)return;const s=t.hsv().saturationv(100).value(100),{dimensions:{slider:{width:i},thumb:{radius:e}}}=this,o=s.hue()/(c/i),a=e,n=this.getSliderBoundX(o,i,e);requestAnimationFrame((()=>{this.hueScopeLeft=n})),this.drawThumb(this.hueSliderRenderingContext,e,n,a,s)}drawHueSlider(){const t=this.hueSliderRenderingContext,{dimensions:{slider:{height:s,width:i},thumb:{radius:e}}}=this,a=e-s/2,n=t.createLinearGradient(0,0,i,0),l=["red","yellow","lime","cyan","blue","magenta","#ff0004"],r=1/(l.length-1);let h=0;l.forEach((t=>{n.addColorStop(h,o(t).string()),h+=r})),t.clearRect(0,0,i,s+2*this.getSliderCapSpacing()),this.drawSliderPath(t,s,i,0,a),t.fillStyle=n,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveHueSliderColor()}drawOpacitySlider(){const t=this.opacitySliderRenderingContext,{baseColorFieldColor:s,dimensions:{slider:{height:i,width:e},thumb:{radius:o}}}=this,a=o-i/2;t.clearRect(0,0,e,i+2*this.getSliderCapSpacing());const n=t.createLinearGradient(0,a,e,0),l=s.rgb().alpha(0),r=s.rgb().alpha(.5),h=s.rgb().alpha(1);n.addColorStop(0,l.string()),n.addColorStop(.5,r.string()),n.addColorStop(1,h.string()),this.drawSliderPath(t,i,e,0,a);const c=t.createPattern(this.getCheckeredBackgroundPattern(),"repeat");t.fillStyle=c,t.fill(),t.fillStyle=n,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveOpacitySliderColor()}drawSliderPath(t,s,i,e,o){const a=s/2+1;t.beginPath(),t.moveTo(e+a,o),t.lineTo(e+i-a,o),t.quadraticCurveTo(e+i,o,e+i,o+a),t.lineTo(e+i,o+s-a),t.quadraticCurveTo(e+i,o+s,e+i-a,o+s),t.lineTo(e+a,o+s),t.quadraticCurveTo(e,o+s,e,o+s-a),t.lineTo(e,o+a),t.quadraticCurveTo(e,o,e+a,o),t.closePath()}getCheckeredBackgroundPattern(){if(this.checkerPattern)return this.checkerPattern;const t=document.createElement("canvas");t.width=10,t.height=10;const s=t.getContext("2d");return s.fillStyle="#ccc",s.fillRect(0,0,10,10),s.fillStyle="#fff",s.fillRect(0,0,5,5),s.fillRect(5,5,5,5),this.checkerPattern=t,t}drawActiveOpacitySliderColor(){const{color:t}=this;if(!t)return;const s=t,{dimensions:{slider:{width:i},thumb:{radius:e}}}=this,o=x(s.alpha())/(h.max/i),a=e,n=this.getSliderBoundX(o,i,e);requestAnimationFrame((()=>{this.opacityScopeLeft=n})),this.drawThumb(this.opacitySliderRenderingContext,e,n,a,s)}getSliderBoundX(t,s,i){const e=U(t,s,i);return 0===e?t:-1===e?K(t,0,s,i,2*i):K(t,0,s,s-2*i,s-i)}updateColorFromChannels(t){this.internalColorSet(o(t,this.channelMode))}updateChannelsFromColor(t){this.channels=t?this.toChannels(t):[null,null,null,null]}toChannels(t){const{channelMode:s}=this,i=t[s]().array().map(((t,s)=>3===s?t:Math.floor(t)));return 3===i.length&&i.push(1),i}getAdjustedScopePosition(t,s){return[t-d/2,s-d/2]}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{alphaChannel:["handleAlphaChannelChange"],color:["handleColorChange"],format:["handleFormatChange"],scale:["handleScaleChange"],messageOverrides:["onMessagesChange"],value:["handleValueChange"],effectiveLocale:["effectiveLocaleChange"]}}};q.style=':host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){--calcite-color-picker-spacing:8px}:host([scale=s]) .container{inline-size:160px}:host([scale=s]) .saved-colors{gap:0.25rem;grid-template-columns:repeat(auto-fill, 20px)}:host([scale=m]){--calcite-color-picker-spacing:12px}:host([scale=m]) .container{inline-size:272px}:host([scale=l]){--calcite-color-picker-spacing:16px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{inline-size:464px}:host([scale=l]) .section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, 32px)}:host([scale=l]) .control-section{flex-wrap:nowrap;align-items:baseline;flex-wrap:wrap}:host([scale=l]) .color-hex-options{display:flex;flex-shrink:1;flex-direction:column;justify-content:space-around}:host([scale=l]) .color-mode-container{flex-shrink:3}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.control-and-scope{position:relative;display:flex;cursor:pointer;touch-action:none}.scope{pointer-events:none;position:absolute;z-index:var(--calcite-app-z-index);block-size:1px;inline-size:1px;border-radius:9999px;background-color:transparent;font-size:var(--calcite-font-size--1);outline-color:transparent}.scope:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );outline-offset:11px}.hex-and-channels-group{inline-size:100%}.hex-and-channels-group,.control-section{display:flex;flex-direction:row;flex-wrap:wrap}.section{padding-block:0 var(--calcite-color-picker-spacing);padding-inline:var(--calcite-color-picker-spacing)}.section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}.sliders{display:flex;flex-direction:column;justify-content:space-between;margin-inline-start:var(--calcite-color-picker-spacing)}.preview-and-sliders{display:flex;align-items:center;padding:var(--calcite-color-picker-spacing)}.color-hex-options,.section--split{flex-grow:1}.header{display:flex;align-items:center;justify-content:space-between;color:var(--calcite-ui-text-1)}.color-mode-container{padding-block-start:var(--calcite-color-picker-spacing)}.channels{display:flex;row-gap:0.125rem}.channel[data-channel-index="3"]{inline-size:159px}:host([scale=s]) .channels{flex-wrap:wrap}:host([scale=s]) .channel{flex-basis:30%;flex-grow:1}:host([scale=s]) .channel[data-channel-index="3"]{inline-size:unset;margin-inline-start:unset}:host([scale=l]) .channel[data-channel-index="3"]{inline-size:131px}.saved-colors{display:grid;gap:0.5rem;padding-block-start:var(--calcite-color-picker-spacing);grid-template-columns:repeat(auto-fill, 24px)}.saved-colors-buttons{display:flex}.saved-color{outline-offset:0;outline-color:transparent;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.saved-color:hover{transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}';export{q as calcite_color_picker}
|
6
|
+
import{r as t,c as s,h as i,g as e}from"./p-33613993.js";import{c as o,C as a,D as n,a as l,H as r,O as h,b as c,S as d,d as p,R as u}from"./p-e0fb0920.js";import{i as f,a as m}from"./p-a16feeec.js";import{C as v,n as g,h as b,o as w,a as x,b as y,p as C,c as k,t as S,d as A,e as D,f as $}from"./p-643a0325.js";import{c as j,d as z,u as F}from"./p-ad75b9bb.js";import{i as L}from"./p-43ba7a04.js";import{c as O,s as M,a as N}from"./p-d74e95e5.js";import{c as P,d as I}from"./p-7f271c31.js";import{r as K,c as E,a as U}from"./p-3d3e6e20.js";import{u as H,s as R,c as T,d as X}from"./p-557d4cc5.js";import{t as V}from"./p-6665fa1f.js";import"./p-e1a4994d.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";import"./p-588bc0c0.js";import"./p-a82f35c9.js";const q=class{constructor(e){t(this,e),this.calciteColorPickerChange=s(this,"calciteColorPickerChange",6),this.calciteColorPickerInput=s(this,"calciteColorPickerInput",6),this.internalColorUpdateContext=null,this.mode=v.HEX,this.shiftKeyChannelAdjustment=0,this.handleTabActivate=t=>{this.channelMode=t.currentTarget.getAttribute("data-color-mode"),this.updateChannelsFromColor(this.color)},this.handleColorFieldScopeKeyDown=t=>{const{key:s}=t,i={ArrowUp:{x:0,y:-10},ArrowRight:{x:10,y:0},ArrowDown:{x:0,y:10},ArrowLeft:{x:-10,y:0}};i[s]&&(t.preventDefault(),this.scopeOrientation="ArrowDown"===s||"ArrowUp"===s?"vertical":"horizontal",this.captureColorFieldColor(this.colorFieldScopeLeft+i[s].x||0,this.colorFieldScopeTop+i[s].y||0,!1))},this.handleHueScopeKeyDown=t=>{const s=t.shiftKey?10:1,{key:i}=t,e={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1};if(e[i]){t.preventDefault();const o=e[i]*s,a=this.baseColorFieldColor.hue(),n=this.baseColorFieldColor.hue(a+o);this.internalColorSet(n,!1)}},this.handleHexInputChange=t=>{t.stopPropagation();const{allowEmpty:s,color:i}=this,e=t.target.value;!s||e?e!==(i&&g(b(i,y(this.mode))))&&this.internalColorSet(o(e)):this.internalColorSet(null)},this.handleSavedColorSelect=t=>{this.internalColorSet(o(t.currentTarget.color))},this.handleChannelInput=t=>{const s=t.currentTarget,i=Number(s.getAttribute("data-channel-index")),e=3===i?h.max:"rgb"===this.channelMode?u[Object.keys(u)[i]]:r[Object.keys(r)[i]];let o;if(this.allowEmpty&&!s.value)o="";else{const t=Number(s.value);o=E(t+this.shiftKeyChannelAdjustment,0,e).toString()}s.value=o},this.handleChannelChange=t=>{const s=t.currentTarget,i=Number(s.getAttribute("data-channel-index")),e=[...this.channels];if(this.allowEmpty&&!s.value)return this.channels=[null,null,null,null],void this.internalColorSet(null);const o=3===i,a=Number(s.value);e[i]=o?w(a):a,this.updateColorFromChannels(e)},this.handleSavedColorKeyDown=t=>{L(t.key)&&(t.preventDefault(),this.handleSavedColorSelect(t))},this.handleColorFieldPointerDown=t=>{if(!f(t))return;const{offsetX:s,offsetY:i}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.colorFieldRenderingContext,bounds:this.colorFieldRenderingContext.canvas.getBoundingClientRect()},this.captureColorFieldColor(s,i),this.colorFieldScopeNode.focus()},this.handleHueSliderPointerDown=t=>{if(!f(t))return;const{offsetX:s}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.hueSliderRenderingContext,bounds:this.hueSliderRenderingContext.canvas.getBoundingClientRect()},this.captureHueSliderColor(s),this.hueScopeNode.focus()},this.handleOpacitySliderPointerDown=t=>{if(!f(t))return;const{offsetX:s}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.opacitySliderRenderingContext,bounds:this.opacitySliderRenderingContext.canvas.getBoundingClientRect()},this.captureOpacitySliderValue(s),this.opacityScopeNode.focus()},this.globalPointerUpHandler=t=>{if(!f(t))return;const s=this.activeCanvasInfo;this.activeCanvasInfo=null,this.drawColorControls(),s&&this.calciteColorPickerChange.emit()},this.globalPointerMoveHandler=t=>{const{activeCanvasInfo:s,el:i}=this;if(!i.isConnected||!s)return;const{context:e,bounds:o}=s;let a,n;const{clientX:l,clientY:r}=t;e.canvas.matches(":hover")?(a=l-o.x,n=r-o.y):(a=l<o.x+o.width&&l>o.x?l-o.x:l<o.x?0:o.width,n=r<o.y+o.height&&r>o.y?r-o.y:r<o.y?0:o.height),e===this.colorFieldRenderingContext?this.captureColorFieldColor(a,n,!1):e===this.hueSliderRenderingContext?this.captureHueSliderColor(a):e===this.opacitySliderRenderingContext&&this.captureOpacitySliderValue(a)},this.storeColorFieldScope=t=>{this.colorFieldScopeNode=t},this.storeHueScope=t=>{this.hueScopeNode=t},this.renderChannelsTabTitle=t=>{const{channelMode:s,messages:e}=this;return i("calcite-tab-title",{class:a.colorMode,"data-color-mode":t,key:t,onCalciteTabsActivate:this.handleTabActivate,selected:t===s},"rgb"===t?e.rgb:e.hsv)},this.renderChannelsTab=t=>{const{allowEmpty:s,channelMode:e,channels:o,messages:n,alphaChannel:l}=this,r=t===e,h="rgb"===t?[n.red,n.green,n.blue]:[n.hue,n.saturation,n.value],c=m(this.el),d=l?o:o.slice(0,3);return i("calcite-tab",{class:a.control,key:t,selected:r},i("div",{class:a.channels,dir:"ltr"},d.map(((t,i)=>{const e=3===i;return e&&(t=s&&!t?t:x(t)),this.renderChannel(t,i,h[i],c,e?"%":"")}))))},this.renderChannel=(t,s,e,o,n)=>i("calcite-input-number",{class:a.channel,"data-channel-index":s,dir:o,key:s,label:e,lang:this.effectiveLocale,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputNumberChange:this.handleChannelChange,onCalciteInputNumberInput:this.handleChannelInput,onKeyDown:this.handleKeyDown,scale:"l"===this.scale?"m":"s",style:{marginLeft:s>0&&("s"!==this.scale||!this.alphaChannel||3!==s)?"-1px":""},suffixText:n,value:null==t?void 0:t.toString()}),this.deleteColor=()=>{const t=b(this.color,this.alphaChannel);if(!(this.savedColors.indexOf(t)>-1))return;const s=this.savedColors.filter((s=>s!==t));this.savedColors=s,this.storageId&&localStorage.setItem(`${p}${this.storageId}`,JSON.stringify(s))},this.saveColor=()=>{const t=b(this.color,this.alphaChannel);if(this.savedColors.indexOf(t)>-1)return;const s=[...this.savedColors,t];this.savedColors=s,this.storageId&&localStorage.setItem(`${p}${this.storageId}`,JSON.stringify(s))},this.drawColorControls=V(((t="all")=>{"all"!==t&&"color-field"!==t||!this.colorFieldRenderingContext||this.drawColorField(),"all"!==t&&"hue-slider"!==t||!this.hueSliderRenderingContext||this.drawHueSlider(),this.alphaChannel&&("all"===t||"opacity-slider"===t)&&this.opacitySliderRenderingContext&&this.drawOpacitySlider()}),16),this.captureColorFieldColor=(t,s,i=!0)=>{const{dimensions:{colorField:{height:e,width:o}}}=this,a=Math.round(r.s/o*t),n=Math.round(r.v/e*(e-s));this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(a).value(n),i)},this.initColorField=t=>{this.colorFieldRenderingContext=t.getContext("2d"),this.updateCanvasSize("color-field"),this.drawColorControls()},this.initHueSlider=t=>{this.hueSliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("hue-slider"),this.drawHueSlider()},this.initOpacitySlider=t=>{this.opacitySliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("opacity-slider"),this.drawOpacitySlider()},this.storeOpacityScope=t=>{this.opacityScopeNode=t},this.handleOpacityScopeKeyDown=t=>{const s=t.shiftKey?10:1,{key:i}=t,e={ArrowUp:.01,ArrowRight:.01,ArrowDown:-.01,ArrowLeft:-.01};if(e[i]){t.preventDefault();const o=e[i]*s,a=this.baseColorFieldColor.alpha(),n=this.baseColorFieldColor.alpha(a+o);this.internalColorSet(n,!1)}},this.allowEmpty=!1,this.alphaChannel=!1,this.channelsDisabled=!1,this.color=n,this.disabled=!1,this.format="auto",this.hideChannels=!1,this.hexDisabled=!1,this.hideHex=!1,this.hideSaved=!1,this.savedDisabled=!1,this.scale="m",this.storageId=void 0,this.messageOverrides=void 0,this.numberingSystem=void 0,this.value=g(b(n,this.alphaChannel)),this.defaultMessages=void 0,this.channelMode="rgb",this.channels=this.toChannels(n),this.dimensions=l.m,this.effectiveLocale="",this.messages=void 0,this.savedColors=[],this.colorFieldScopeTop=void 0,this.colorFieldScopeLeft=void 0,this.hueScopeLeft=void 0,this.opacityScopeLeft=void 0,this.scopeOrientation=void 0}handleAlphaChannelChange(t){const{format:s}=this;t&&"auto"!==s&&!y(s)&&(console.warn(`ignoring alphaChannel as the current format (${s}) does not support alpha`),this.alphaChannel=!1)}handleColorChange(t,s){this.drawColorControls(),this.updateChannelsFromColor(t),this.previousColor=s}handleFormatChange(t){this.setMode(t),this.internalColorSet(this.color,!1,"internal")}handleScaleChange(t="m"){this.updateDimensions(t),this.updateCanvasSize("all"),this.drawColorControls()}onMessagesChange(){}handleValueChange(t,s){const{allowEmpty:i,format:e}=this;let a=!1;if(!i||t){const i=C(t);if(!i||"auto"!==e&&i!==e)return this.showIncompatibleColorWarning(t,e),void(this.value=s);a=this.mode!==i,this.setMode(i,null===this.internalColorUpdateContext)}const n=this.activeCanvasInfo;if("initial"===this.internalColorUpdateContext)return;if("user-interaction"===this.internalColorUpdateContext)return this.calciteColorPickerInput.emit(),void(n||this.calciteColorPickerChange.emit());const l=i&&!t?null:o(null!=t&&"object"==typeof t&&y(this.mode)?$(t):t),r=!k(l,this.color);(a||r)&&this.internalColorSet(l,this.alphaChannel&&!(this.mode.endsWith("a")||this.mode.endsWith("a-css")),"internal")}get baseColorFieldColor(){return this.color||this.previousColor||n}effectiveLocaleChange(){H(this,this.effectiveLocale)}handleChannelKeyUpOrDown(t){this.shiftKeyChannelAdjustment=0;const{key:s}=t;if("ArrowUp"!==s&&"ArrowDown"!==s||!t.composedPath().some((t=>{var s;return null===(s=t.classList)||void 0===s?void 0:s.contains(a.channel)})))return;const{shiftKey:i}=t;if(t.preventDefault(),!this.color)return this.internalColorSet(this.previousColor),void t.stopPropagation();this.shiftKeyChannelAdjustment="ArrowUp"===s&&i?9:"ArrowDown"===s&&i?-9:0}async setFocus(){await O(this),this.el.focus()}async componentWillLoad(){M(this);const{allowEmpty:t,color:s,format:i,value:e}=this,a=t&&!e,n=C(e),l=a||"auto"===i&&n||i===n,r=a?null:l?o(e):s;l||this.showIncompatibleColorWarning(e,i),this.setMode(i,!1),this.internalColorSet(r,!1,"initial"),this.updateDimensions(this.scale);const h=`${p}${this.storageId}`;this.storageId&&localStorage.getItem(h)&&(this.savedColors=JSON.parse(localStorage.getItem(h))),await R(this)}connectedCallback(){j(this),P(this),T(this)}componentDidLoad(){N(this)}disconnectedCallback(){document.removeEventListener("pointermove",this.globalPointerMoveHandler),document.removeEventListener("pointerup",this.globalPointerUpHandler),z(this),I(this),X(this)}componentDidRender(){F(this)}render(){const{allowEmpty:t,channelsDisabled:s,color:e,colorFieldScopeLeft:o,colorFieldScopeTop:l,dimensions:{slider:{width:c},thumb:{radius:d}},hexDisabled:p,hideChannels:u,hideHex:f,hideSaved:m,hueScopeLeft:v,messages:g,alphaChannel:w,opacityScopeLeft:y,savedColors:C,savedDisabled:k,scale:S,scopeOrientation:A}=this,D=e?b(e,w):null,$=d,j=null!=v?v:c*n.hue()/r.h,z=d,F=null!=y?y:c*x(n.alpha())/h.max,L=null===e,O="vertical"===A,M=p||f,N=s||u,P=k||m,[I,K]=this.getAdjustedScopePosition(o,l),[E,U]=this.getAdjustedScopePosition(j,$),[H,R]=this.getAdjustedScopePosition(F,z);return i("div",{class:a.container},i("div",{class:a.controlAndScope},i("canvas",{class:a.colorField,onPointerDown:this.handleColorFieldPointerDown,ref:this.initColorField}),i("div",{"aria-label":O?g.value:g.saturation,"aria-valuemax":O?r.v:r.s,"aria-valuemin":"0","aria-valuenow":(O?null==e?void 0:e.saturationv():null==e?void 0:e.value())||"0",class:{[a.scope]:!0,[a.colorFieldScope]:!0},onKeyDown:this.handleColorFieldScopeKeyDown,role:"slider",style:{top:`${K||0}px`,left:`${I||0}px`},tabindex:"0",ref:this.storeColorFieldScope})),i("div",{class:a.previewAndSliders},i("calcite-color-picker-swatch",{class:a.preview,color:D,scale:"l"}),i("div",{class:a.sliders},i("div",{class:a.controlAndScope},i("canvas",{class:{[a.slider]:!0,[a.hueSlider]:!0},onPointerDown:this.handleHueSliderPointerDown,ref:this.initHueSlider}),i("div",{"aria-label":g.hue,"aria-valuemax":r.h,"aria-valuemin":"0","aria-valuenow":(null==e?void 0:e.round().hue())||n.round().hue(),class:{[a.scope]:!0,[a.hueScope]:!0},onKeyDown:this.handleHueScopeKeyDown,role:"slider",style:{top:`${U}px`,left:`${E}px`},tabindex:"0",ref:this.storeHueScope})),w?i("div",{class:a.controlAndScope},i("canvas",{class:{[a.slider]:!0,[a.opacitySlider]:!0},onPointerDown:this.handleOpacitySliderPointerDown,ref:this.initOpacitySlider}),i("div",{"aria-label":g.opacity,"aria-valuemax":h.max,"aria-valuemin":h.min,"aria-valuenow":(e||n).round().alpha(),class:{[a.scope]:!0,[a.opacityScope]:!0},onKeyDown:this.handleOpacityScopeKeyDown,role:"slider",style:{top:`${R}px`,left:`${H}px`},tabindex:"0",ref:this.storeOpacityScope})):null)),M&&N?null:i("div",{class:{[a.controlSection]:!0,[a.section]:!0}},i("div",{class:a.hexAndChannelsGroup},M?null:i("div",{class:a.hexOptions},i("calcite-color-picker-hex-input",{allowEmpty:t,alphaChannel:w,class:a.control,messages:g,numberingSystem:this.numberingSystem,onCalciteColorPickerHexInputChange:this.handleHexInputChange,scale:S,value:D})),N?null:i("calcite-tabs",{class:{[a.colorModeContainer]:!0,[a.splitSection]:!0},scale:"l"===S?"m":"s"},i("calcite-tab-nav",{slot:"title-group"},this.renderChannelsTabTitle("rgb"),this.renderChannelsTabTitle("hsv")),this.renderChannelsTab("rgb"),this.renderChannelsTab("hsv")))),P?null:i("div",{class:{[a.savedColorsSection]:!0,[a.section]:!0}},i("div",{class:a.header},i("label",null,g.saved),i("div",{class:a.savedColorsButtons},i("calcite-button",{appearance:"transparent",class:a.deleteColor,disabled:L,iconStart:"minus",kind:"neutral",label:g.deleteColor,onClick:this.deleteColor,scale:S,type:"button"}),i("calcite-button",{appearance:"transparent",class:a.saveColor,disabled:L,iconStart:"plus",kind:"neutral",label:g.saveColor,onClick:this.saveColor,scale:S,type:"button"}))),C.length>0?i("div",{class:a.savedColors},[...C.map((t=>i("calcite-color-picker-swatch",{class:a.savedColor,color:t,key:t,onClick:this.handleSavedColorSelect,onKeyDown:this.handleSavedColorKeyDown,scale:S,tabIndex:0})))]):null))}handleKeyDown(t){"Enter"===t.key&&t.preventDefault()}showIncompatibleColorWarning(t,s){console.warn(`ignoring color value (${t}) as it is not compatible with the current format (${s})`)}setMode(t,s=!0){this.mode=this.ensureCompatibleMode("auto"===t?this.mode:t,s)}ensureCompatibleMode(t,s){const{alphaChannel:i}=this,e=y(t);if(i&&!e){const i=D(t);return s&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}if(!i&&e){const i=S(t);return s&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}return t}captureHueSliderColor(t){const{dimensions:{slider:{width:s}}}=this;this.internalColorSet(this.baseColorFieldColor.hue(c/s*t),!1)}captureOpacitySliderValue(t){const{dimensions:{slider:{width:s}}}=this,i=w(h.max/s*t);this.internalColorSet(this.baseColorFieldColor.alpha(i),!1)}internalColorSet(t,s=!0,i="user-interaction"){s&&k(t,this.color)||(this.internalColorUpdateContext=i,this.color=t,this.value=this.toValue(t),this.internalColorUpdateContext=null)}toValue(t,s=this.mode){if(!t)return null;if(s.includes("hex")){const i=s===v.HEXA;return g(b(t.round(),i),i)}if(s.includes("-css")){const i=t[s.replace("-css","").replace("a","")]().round().string();return(s.endsWith("a")||s.endsWith("a-css"))&&1===t.alpha()?`${i.slice(0,3)}a(${i.slice(4,-1)}, ${t.alpha()})`:i}const i=t[S(s)]().round().object();return s.endsWith("a")?A(i):i}getSliderCapSpacing(){const{dimensions:{slider:{height:t},thumb:{radius:s}}}=this;return 2*s-t}updateDimensions(t="m"){this.dimensions=l[t]}drawColorField(){const t=this.colorFieldRenderingContext,{dimensions:{colorField:{height:s,width:i}}}=this;t.fillStyle=this.baseColorFieldColor.hsv().saturationv(100).value(100).alpha(1).string(),t.fillRect(0,0,i,s);const e=t.createLinearGradient(0,0,i,0);e.addColorStop(0,"rgba(255,255,255,1)"),e.addColorStop(1,"rgba(255,255,255,0)"),t.fillStyle=e,t.fillRect(0,0,i,s);const o=t.createLinearGradient(0,0,0,s);o.addColorStop(0,"rgba(0,0,0,0)"),o.addColorStop(1,"rgba(0,0,0,1)"),t.fillStyle=o,t.fillRect(0,0,i,s),this.drawActiveColorFieldColor()}setCanvasContextSize(t,{height:s,width:i}){if(!t)return;const e=window.devicePixelRatio||1;t.width=i*e,t.height=s*e,t.style.height=`${s}px`,t.style.width=`${i}px`,t.getContext("2d").scale(e,e)}updateCanvasSize(t="all"){var s,i,e;const{dimensions:o}=this;"all"!==t&&"color-field"!==t||this.setCanvasContextSize(null===(s=this.colorFieldRenderingContext)||void 0===s?void 0:s.canvas,o.colorField);const a={width:o.slider.width,height:o.slider.height+2*(o.thumb.radius-o.slider.height/2)};"all"!==t&&"hue-slider"!==t||this.setCanvasContextSize(null===(i=this.hueSliderRenderingContext)||void 0===i?void 0:i.canvas,a),"all"!==t&&"opacity-slider"!==t||this.setCanvasContextSize(null===(e=this.opacitySliderRenderingContext)||void 0===e?void 0:e.canvas,a)}drawActiveColorFieldColor(){const{color:t}=this;if(!t)return;const s=t.hsv(),{dimensions:{colorField:{height:i,width:e},thumb:{radius:o}}}=this,a=s.saturationv()/(r.s/e),n=i-s.value()/(r.v/i);requestAnimationFrame((()=>{this.colorFieldScopeLeft=a,this.colorFieldScopeTop=n})),this.drawThumb(this.colorFieldRenderingContext,o,a,n,s)}drawThumb(t,s,i,e,o){const a=2*Math.PI;t.beginPath(),t.arc(i,e,s,0,a),t.fillStyle="#fff",t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),t.beginPath(),t.arc(i,e,s-3,0,a),t.fillStyle=o.rgb().alpha(1).string(),t.fill()}drawActiveHueSliderColor(){const{color:t}=this;if(!t)return;const s=t.hsv().saturationv(100).value(100),{dimensions:{slider:{width:i},thumb:{radius:e}}}=this,o=s.hue()/(c/i),a=e,n=this.getSliderBoundX(o,i,e);requestAnimationFrame((()=>{this.hueScopeLeft=n})),this.drawThumb(this.hueSliderRenderingContext,e,n,a,s)}drawHueSlider(){const t=this.hueSliderRenderingContext,{dimensions:{slider:{height:s,width:i},thumb:{radius:e}}}=this,a=e-s/2,n=t.createLinearGradient(0,0,i,0),l=["red","yellow","lime","cyan","blue","magenta","#ff0004"],r=1/(l.length-1);let h=0;l.forEach((t=>{n.addColorStop(h,o(t).string()),h+=r})),t.clearRect(0,0,i,s+2*this.getSliderCapSpacing()),this.drawSliderPath(t,s,i,0,a),t.fillStyle=n,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveHueSliderColor()}drawOpacitySlider(){const t=this.opacitySliderRenderingContext,{baseColorFieldColor:s,dimensions:{slider:{height:i,width:e},thumb:{radius:o}}}=this,a=o-i/2;t.clearRect(0,0,e,i+2*this.getSliderCapSpacing());const n=t.createLinearGradient(0,a,e,0),l=s.rgb().alpha(0),r=s.rgb().alpha(.5),h=s.rgb().alpha(1);n.addColorStop(0,l.string()),n.addColorStop(.5,r.string()),n.addColorStop(1,h.string()),this.drawSliderPath(t,i,e,0,a);const c=t.createPattern(this.getCheckeredBackgroundPattern(),"repeat");t.fillStyle=c,t.fill(),t.fillStyle=n,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveOpacitySliderColor()}drawSliderPath(t,s,i,e,o){const a=s/2+1;t.beginPath(),t.moveTo(e+a,o),t.lineTo(e+i-a,o),t.quadraticCurveTo(e+i,o,e+i,o+a),t.lineTo(e+i,o+s-a),t.quadraticCurveTo(e+i,o+s,e+i-a,o+s),t.lineTo(e+a,o+s),t.quadraticCurveTo(e,o+s,e,o+s-a),t.lineTo(e,o+a),t.quadraticCurveTo(e,o,e+a,o),t.closePath()}getCheckeredBackgroundPattern(){if(this.checkerPattern)return this.checkerPattern;const t=document.createElement("canvas");t.width=10,t.height=10;const s=t.getContext("2d");return s.fillStyle="#ccc",s.fillRect(0,0,10,10),s.fillStyle="#fff",s.fillRect(0,0,5,5),s.fillRect(5,5,5,5),this.checkerPattern=t,t}drawActiveOpacitySliderColor(){const{color:t}=this;if(!t)return;const s=t,{dimensions:{slider:{width:i},thumb:{radius:e}}}=this,o=x(s.alpha())/(h.max/i),a=e,n=this.getSliderBoundX(o,i,e);requestAnimationFrame((()=>{this.opacityScopeLeft=n})),this.drawThumb(this.opacitySliderRenderingContext,e,n,a,s)}getSliderBoundX(t,s,i){const e=U(t,s,i);return 0===e?t:-1===e?K(t,0,s,i,2*i):K(t,0,s,s-2*i,s-i)}updateColorFromChannels(t){this.internalColorSet(o(t,this.channelMode))}updateChannelsFromColor(t){this.channels=t?this.toChannels(t):[null,null,null,null]}toChannels(t){const{channelMode:s}=this,i=t[s]().array().map(((t,s)=>3===s?t:Math.floor(t)));return 3===i.length&&i.push(1),i}getAdjustedScopePosition(t,s){return[t-d/2,s-d/2]}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{alphaChannel:["handleAlphaChannelChange"],color:["handleColorChange"],format:["handleFormatChange"],scale:["handleScaleChange"],messageOverrides:["onMessagesChange"],value:["handleValueChange"],effectiveLocale:["effectiveLocaleChange"]}}};q.style=':host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){--calcite-color-picker-spacing:8px}:host([scale=s]) .container{inline-size:160px}:host([scale=s]) .saved-colors{gap:0.25rem;grid-template-columns:repeat(auto-fill, 20px)}:host([scale=m]){--calcite-color-picker-spacing:12px}:host([scale=m]) .container{inline-size:272px}:host([scale=l]){--calcite-color-picker-spacing:16px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{inline-size:464px}:host([scale=l]) .section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, 32px)}:host([scale=l]) .control-section{flex-wrap:nowrap;align-items:baseline;flex-wrap:wrap}:host([scale=l]) .color-hex-options{display:flex;flex-shrink:1;flex-direction:column;justify-content:space-around}:host([scale=l]) .color-mode-container{flex-shrink:3}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.control-and-scope{position:relative;display:flex;cursor:pointer;touch-action:none}.scope{pointer-events:none;position:absolute;z-index:var(--calcite-app-z-index);block-size:1px;inline-size:1px;border-radius:9999px;background-color:transparent;font-size:var(--calcite-font-size--1);outline-color:transparent}.scope:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );outline-offset:11px}.hex-and-channels-group{inline-size:100%}.hex-and-channels-group,.control-section{display:flex;flex-direction:row;flex-wrap:wrap}.section{padding-block:0 var(--calcite-color-picker-spacing);padding-inline:var(--calcite-color-picker-spacing)}.section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}.sliders{display:flex;flex-direction:column;justify-content:space-between;margin-inline-start:var(--calcite-color-picker-spacing)}.preview-and-sliders{display:flex;align-items:center;padding:var(--calcite-color-picker-spacing)}.color-hex-options,.section--split{flex-grow:1}.header{display:flex;align-items:center;justify-content:space-between;color:var(--calcite-ui-text-1)}.color-mode-container{padding-block-start:var(--calcite-color-picker-spacing)}.channels{display:flex;row-gap:0.125rem}.channel[data-channel-index="3"]{inline-size:159px}:host([scale=s]) .channels{flex-wrap:wrap}:host([scale=s]) .channel{flex-basis:30%;flex-grow:1}:host([scale=s]) .channel[data-channel-index="3"]{inline-size:unset;margin-inline-start:unset}:host([scale=l]) .channel[data-channel-index="3"]{inline-size:131px}.saved-colors{display:grid;gap:0.5rem;padding-block-start:var(--calcite-color-picker-spacing);grid-template-columns:repeat(auto-fill, 24px)}.saved-colors-buttons{display:flex}.saved-color{outline-offset:0;outline-color:transparent;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.saved-color:hover{transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}';export{q as calcite_color_picker}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as e,h as i,F as t,g as a}from"./p-
|
6
|
+
import{r as e,h as i,F as t,g as a}from"./p-33613993.js";import{c as n,d as o}from"./p-bfc78840.js";import{g as l}from"./p-a16feeec.js";import{H as r,c as s}from"./p-54cc02c9.js";import{S as c,C as d}from"./p-99402001.js";import"./p-588bc0c0.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";const p=class{constructor(i){e(this,i),this.groupTitle=void 0,this.headingLevel=void 0}connectedCallback(){n(this)}disconnectedCallback(){o(this)}render(){var e;const{el:a,groupTitle:n,headingLevel:o}=this,p=null!==l(a,c.parentItem),m={[d.container]:!0,[d.indented]:p},g=n,h=null===(e=a.closest("calcite-pick-list"))||void 0===e?void 0:e.headingLevel,b=h?s(h+1):null;return i(t,null,g?i(r,{class:d.heading,level:o||b},g):null,i("slot",{name:c.parentItem}),i("section",{class:m},i("slot",null)))}get el(){return a(this)}};p.style=":host{margin-block-end:0.25rem;box-sizing:border-box;display:block;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}:host *{box-sizing:border-box}:host(:last-child){margin-block-end:0px}.header{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:0.5rem}.heading{margin-block:0.5rem;margin-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-size:var(--calcite-font-size--1);line-height:1.375;color:var(--calcite-ui-text-3)}.container--indented{margin-inline-start:1.5rem}:host([hidden]){display:none}[hidden]{display:none}";export{p as calcite_pick_list_group}
|
@@ -0,0 +1,11 @@
|
|
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
|
+
/*!
|
7
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
8
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
9
|
+
* v1.6.1
|
10
|
+
*/
|
11
|
+
const t={container:"container",actionsStart:"actions-start",contentStart:"content-start",content:"content",contentEnd:"content-end",actionsEnd:"actions-end"},n={actionsStart:"actions-start",contentStart:"content-start",contentEnd:"content-end",actionsEnd:"actions-end"};export{t as C,n as S}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as i,h as t,g as e}from"./p-
|
6
|
+
import{r as i,h as t,g as e}from"./p-33613993.js";import{c as s,d as a}from"./p-7f271c31.js";import{u as n,c,s as o,d as r}from"./p-557d4cc5.js";import{c as l}from"./p-588bc0c0.js";import{B as h}from"./p-a16feeec.js";import"./p-43ba7a04.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as i,h as e,H as n,g as s}from"./p-
|
6
|
+
import{r as t,c as i,h as e,H as n,g as s}from"./p-33613993.js";import{g as o,i as a,w as r,a as l}from"./p-a16feeec.js";import{s as c,c as h,d as u,H as d}from"./p-8e9d9e6a.js";import{c as p,d as b,u as m}from"./p-ad75b9bb.js";import{n as v}from"./p-43ba7a04.js";import{c as f,d as g,g as x}from"./p-d2d3e4b5.js";import{a as w,s as y,c as k}from"./p-d74e95e5.js";import{n as z,i as I,p as j,s as C,e as E,c as L,d as D,B as W}from"./p-7f271c31.js";import{c as F}from"./p-588bc0c0.js";import{C as R}from"./p-e3525c00.js";import{u as H,c as N,d as T,s as V}from"./p-557d4cc5.js";import"./p-8b448a5b.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as i,c as t,h as s,H as e,g as a}from"./p-33613993.js";import{l}from"./p-0dab4c93.js";import{g as h,h as n,d as o,e as r,f as d,i as c,j as p,k as g}from"./p-767002cd.js";import{c as b,e as u,f as v}from"./p-2a58e378.js";import{s as y}from"./p-3691a072.js";import{a as m,g as f}from"./p-22833bd3.js";import{d as w,a as S}from"./p-0503c78d.js";import"./p-cc462e38.js";import"./p-e1a4994d.js";const _=class{constructor(s){i(this,s),this.selectionSetChange=t(this,"selectionSetChange",7),this._selectedIds=[],this._selectionLabel="",this._graphics=[],this._featuresCollection={},this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.enabledLayerIds=[],this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.geometries=[],this.isUpdate=!1,this.layerViews=[],this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionSet=void 0,this.selectionLayerIds=[],this.selectLayerView=void 0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._numSelected=0,this._searchDistanceEnabled=!1,this._searchTerm=void 0,this._selectionLoading=!1,this._translations=void 0,this._useLayerFeaturesEnabled=!1}async watchGeometriesHandler(i,t){if(i!==t){const t=0===i.length;if(await this._clearResults(t,t),i.length>0)return this._highlightWithOIDsOrGeoms()}}async watchSearchConfigurationHandler(i,t){JSON.stringify(i)!==JSON.stringify(t)&&this._initSearchWidget()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||this._updateLabel(),{id:this.isUpdate?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools.distance,download:!0,unit:this._bufferTools.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this._searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this._useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}searchConfigurationChangeChanged(i){this.searchConfiguration=i.detail}distanceChanged(i){this._distanceChanged(i.detail)}unitChanged(i){i.detail.newValue!==i.detail.oldValue&&(this._unit=i.detail.newValue,this._updateLabel())}async componentWillLoad(){await this._getTranslations(),await this._initModules()}async componentDidLoad(){await this._init(),await this._searchWidget.when((()=>{this._searchWidget.allPlaceholder=this._translations.placeholder,this._searchWidget.defaultSources.forEach((i=>{i.placeholder=this._translations.placeholder}))}))}render(){return s(e,null,this._getMapLayerPicker(),s("div",{class:"border-bottom"}),s("div",{class:"padding-top-sides-1"},s("div",{class:"search-widget",ref:i=>{this._searchElement=i}}),s("div",{class:"padding-top-1"},s("map-draw-tools",{active:!0,editGraphicsEnabled:!this._useLayerFeaturesEnabled,graphics:this._graphics,mapView:this.mapView,onSketchGraphicsChange:i=>this._sketchGraphicsChanged(i),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,ref:i=>{this._drawTools=i}})),this._getBufferOptions(),this._getUseLayerFeaturesOptions(),this._getNumSelected()),s("div",{class:"border-bottom"}),this._getNameInput())}_getBufferOptions(){var i,t;const e=this._searchDistanceEnabled?"search-distance":"div-not-visible",a="number"==typeof(null===(i=this.selectionSet)||void 0===i?void 0:i.distance)?this.selectionSet.distance:this.defaultBufferDistance;return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.searchDistance,s("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"search-distance-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",referenceElement:"search-distance-icon"},s("span",{class:"tooltip-message"},this._translations.useSearchDistanceTootip)),s("calcite-switch",{checked:this._searchDistanceEnabled,onCalciteSwitchChange:()=>this._searchDistanceEnabled=!this._searchDistanceEnabled})),s("div",{class:e},s("buffer-tools",{disabled:!this._searchDistanceEnabled,distance:a,geometries:this.geometries,onBufferComplete:i=>this._bufferComplete(i),ref:i=>this._bufferTools=i,unit:(null===(t=this.selectionSet)||void 0===t?void 0:t.unit)||this.defaultBufferUnit})))}_getUseLayerFeaturesOptions(){const i=this._useLayerFeaturesEnabled?"div-visible":"div-not-visible";return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.useLayerFeatures,s("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"use-layer-features-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",referenceElement:"use-layer-features-icon"},s("span",{class:"tooltip-message"},this._translations.useLayerFeaturesTooltip)),s("calcite-switch",{checked:this._useLayerFeaturesEnabled,onCalciteSwitchChange:()=>{this._useLayerFeaturesEnabledChanged()}})),s("div",{class:i+" padding-top-1"},s("map-layer-picker",{enabledLayerIds:this.selectionLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},selectedIds:this.layerViews.map((i=>i.layer.id))})))}_getNumSelected(){const i=m(this.el),t=i&&"en"===i?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return s("div",{class:"padding-top-1 padding-bottom-1",style:{"align-items":"end",display:"flex"}},this._selectionLoading?s("div",null,s("calcite-loader",{class:"info-blue",inline:!0,label:t,scale:"m",type:"indeterminate"})):s("calcite-icon",{class:"info-blue padding-end-1-2",icon:"feature-layer",scale:"s"}),s("calcite-input-message",{class:"info-blue",scale:"m"},this._selectionLoading?t:this.noResultText&&0===this._numSelected?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())))}_getNameInput(){return s("div",{class:"padding-sides-1 padding-top-1 "+(this.customLabelEnabled?"":"display-none")},s("calcite-label",{class:"font-bold"},this._translations.listName,s("calcite-input",{onInput:()=>{this._selectionLabel=this._labelName.value},placeholder:this._translations.listNamePlaceholder,ref:i=>{this._labelName=i},value:this._selectionLabel||""})))}_getMapLayerPicker(){return s("div",{class:"display-flex padding-sides-1 padding-bottom-1"},s("calcite-label",{class:"font-bold width-full label-margin-0"},this._translations.inputLayer,s("map-layer-picker",{enabledLayerIds:this.enabledLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>this._inputLayerSelectionChange(i),selectedIds:this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet?[this.selectionSet.layerView.layer.id]:[]})))}async _initModules(){const[i,t,s,e,a]=await l(["esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this.GraphicsLayer=i,this.Graphic=t,this.Search=s,this._geometryEngine=e,this.FeatureLayer=a}async _init(){this._initGraphicsLayer(),await this._initSelectionSet(),this._initSearchWidget()}async _initSelectionSet(){var i,t,s,e;this.selectionSet&&(this._searchTerm=null===(i=this.selectionSet.searchResult)||void 0===i?void 0:i.name,this._searchResult=this.selectionSet.searchResult,this._selectLayers=this.selectionSet.selectLayers,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs,this._searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this._useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...(null===(t=this.selectionSet)||void 0===t?void 0:t.geometries)||[]],this._graphics=this.geometries.map((i=>new this.Graphic({geometry:i,symbol:"point"===i.type?this.sketchPointSymbol:"polyline"===i.type?this.sketchLineSymbol:this.sketchPolygonSymbol}))),this._selectionLabel=null===(s=this.selectionSet)||void 0===s?void 0:s.label,this._useLayerFeaturesEnabled||null===(e=this._drawTools)||void 0===e||e.updateGraphics(),await h(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}_initSearchWidget(){if(this.mapView&&this._searchElement){const i=this._getSearchConfig(this.searchConfiguration,this.mapView),t=Object.assign({view:this.mapView,container:this._searchElement,searchTerm:this._searchTerm},i);this._searchWidget=new this.Search(t),this._searchWidget.popupEnabled=!1,this._searchWidget.resultGraphicEnabled=!1,this._searchWidget.on("search-clear",(()=>{const i=this._searchClearLabel();this._clearResults(!1,i)})),this._searchWidget.on("select-result",(i=>{var t,s;if(i.result){this._searchResult=i.result;const e=(null===(s=null===(t=i.source)||void 0===t?void 0:t.layer)||void 0===s?void 0:s.id)&&i.source.layer.id===this.selectLayerView.layer.id,a=e?[i.result.feature.getObjectId()]:void 0;this._workflowType=b.SEARCH,this._updateLabel();const l=[i.result.feature];this._updateSelection(l,e,a),this._drawTools.graphics=l,this._searchWidget.resultGraphic.visible=!1}else{const i=this._searchClearLabel();this._clearResults(!1,i)}}))}}_searchClearLabel(){var i;return(null===(i=this._searchResult)||void 0===i?void 0:i.name)&&this._labelName.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(i,t){const s=null==i?void 0:i.sources;return(null==s?void 0:s.length)>0?(i.includeDefaultSources=!1,s.forEach((i=>{var s,e;if(i.hasOwnProperty("layer")){const a=i,l=null===(s=a.layer)||void 0===s?void 0:s.id,h=l?t.map.findLayerById(l):null,n=null===(e=null==a?void 0:a.layer)||void 0===e?void 0:e.url;h?a.layer=h:n&&(a.layer=new this.FeatureLayer(n))}})),null==s||s.forEach((i=>{if(i.hasOwnProperty("locator")){const t=i;"ArcGIS World Geocoding Service"===(null==t?void 0:t.name)&&(t.outFields=t.outFields||["Addr_type","Match_addr","StAddr","City"],t.singleLineFieldName="SingleLine"),t.url=t.url,delete t.url}}))):i=Object.assign(Object.assign({},i),{includeDefaultSources:!0}),i}_initGraphicsLayer(){const i=this._translations.bufferLayer,t=this.mapView.map.layers.findIndex((t=>t.title===i));if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else{this._bufferGraphicsLayer=new this.GraphicsLayer({title:i,listMode:"hide"}),y.managedLayers.push(i);const t=this.mapView.map.layers.findIndex((i=>i.title===this._translations.sketchLayer));t>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,t):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}async _sketchGraphicsChanged(i,t=!1){const s=i.detail.graphics;if(s.length>0&&s[0])if(t||(this._sketchGraphic=s[0]),this._workflowType=this._useLayerFeaturesEnabled?b.SELECT:b.SKETCH,this._workflowType===b.SKETCH&&this._drawTools.updateGraphics(),this._updateLabel(),this._clearSearchWidget(),this._useLayerFeaturesEnabled&&!t){const i=Array.isArray(s)?s.map((i=>i.geometry)):this.geometries;await this._selectLayerFeatures(i[0])}else{const t=s.reduce(((i,t)=>{var s;return(null===(s=null==t?void 0:t.layer)||void 0===s?void 0:s.objectIdField)?i.push(t.attributes[t.layer.objectIdField]):t.getObjectId&&i.push(t.getObjectId()),i}),[]),e=i.detail.useOIDs&&t.length>0;this._updateSelection(s,e,t),e&&await this._highlightFeatures(t)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){var i;return(null===(i=this._skipGeomOIDs)||void 0===i?void 0:i.length)>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(i){y.removeHandles(),i.length>0&&y.highlightHandles.push(await n(i,this.selectLayerView,this.mapView)),this._numSelected=i.length,this.selectionSetChange.emit(i.length)}async _selectFeatures(i){this._selectionLoading=!0,this._selectedIds=await o(i,this.selectLayerView.layer),this._selectionLoading=!1,this._drawTools.graphics=this._graphics,await this._highlightFeatures(this._selectedIds)}async _bufferComplete(i){this._bufferGeometry=Array.isArray(i.detail)?i.detail[0]:i.detail;let t=this._bufferTools.distance,s=0;if(this._bufferGeometry){const i=new this.Graphic({geometry:this._bufferGeometry,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(i),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(i.geometry.extent),s=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();this._distanceChanged({oldValue:t,newValue:s})}_geomQuery(i){const t=r(i,this._geometryEngine);return this._selectFeatures(t)}async _clearResults(i=!0,t=!1){var s;this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName.value=""),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),i&&this._searchWidget&&this._clearSearchWidget(),y.removeHandles(),(null===(s=this._drawTools)||void 0===s?void 0:s.clear)&&(this._graphics=[],await this._drawTools.clear()),this.selectionSetChange.emit(this._selectedIds.length)}_clearSearchWidget(){this._searchWidget.clear(),this._searchResult=void 0}_updateSelection(i,t,s){this._selectedIds=t&&s?s:this._selectedIds,this._skipGeomOIDs=t?s:void 0,this.geometries=Array.isArray(i)?i.map((i=>i.geometry)):this.geometries,this._graphics=i}_updateLabel(){var i,t;const s=this._selectionLabel.indexOf(this._translations.sketch)>-1,e=this._selectionLabel.indexOf(this._translations.select)>-1,a=this._selectionLabel.indexOf(null===(i=this._searchResult)||void 0===i?void 0:i.name)>-1,l=this._workflowType===b.SEARCH?null===(t=this._searchResult)||void 0===t?void 0:t.name:this._workflowType===b.SELECT?this._translations.select:this._translations.sketch,h=this._unit?this._unit:this._bufferTools.unit,n=isNaN(this._distance)?this._bufferTools.distance:this._distance;this._selectionLabel=s||e||a||!this._selectionLabel?`${l} ${n} ${h}`:this._selectionLabel,this._labelName.value=this._selectionLabel}async _layerSelectionChange(i){if(Array.isArray(i.detail)&&i.detail.length>0){const t=i.detail.map((i=>d(this.mapView,i)));return Promise.all(t).then((i=>{this.layerViews=i,this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}))}}async _inputLayerSelectionChange(i){var t;const s=(null===(t=null==i?void 0:i.detail)||void 0===t?void 0:t.length)>0?i.detail[0]:"";this.selectLayerView&&s===this.selectLayerView.layer.id||(this.selectLayerView=await d(this.mapView,s),this._updateLabel(),this._bufferGeometry?await this._selectFeatures([this._bufferGeometry]):await this._highlightWithOIDsOrGeoms())}_distanceChanged(i){i.newValue!==i.oldValue&&(this._distance=i.newValue,this._updateLabel())}async _selectLayerFeatures(i){this._selectionLoading=!0;const t=this.layerViews.map((t=>(this._featuresCollection[t.layer.id]=[],c(0,t.layer,i,this._featuresCollection))));return Promise.all(t).then((async i=>{this._selectionLoading=!1;let t=[];i.forEach((i=>{Object.keys(i).forEach((s=>{t=t.concat(i[s])}))}));let s=!1;t.forEach((i=>{var t;const e=i.geometry;i.symbol="point"===e.type?this.sketchPointSymbol:"polyline"===e.type?this.sketchLineSymbol:"polygon"===e.type?this.sketchPolygonSymbol:void 0,s=(null===(t=null==i?void 0:i.layer)||void 0===t?void 0:t.hasOwnProperty("objectIdField"))||i.hasOwnProperty("getObjectId")}));const e=this.layerViews[0].layer.title===this.selectLayerView.layer.title&&s;await this._sketchGraphicsChanged({detail:{graphics:t,useOIDs:e}},!0)}))}_useLayerFeaturesEnabledChanged(){this._useLayerFeaturesEnabled=!this._useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}async _getTranslations(){const i=await f(this.el);this._translations=i[0]}get el(){return a(this)}static get watchers(){return{geometries:["watchGeometriesHandler"],searchConfiguration:["watchSearchConfigurationHandler"]}}};_.style=':host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-ui-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:"1rem" !important}.end-border{border-inline-end:1px solid var(--calcite-ui-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:0.5rem}.icon{--calcite-ui-icon-color:var(--calcite-ui-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}';const L=Object.freeze({__proto__:null,default:[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}]}),P=class{constructor(t){i(this,t),this.defaultNumLabelsPerPage=void 0,this.disabled=!1,this._translations=void 0}async downloadCSV(i,t,s=!0){return w(i,!0,t,s)}async downloadPDF(i,t=!1,s="",e=""){var a;return S(i,null===(a=this._labelInfoElement.selectedOption)||void 0===a?void 0:a.value,t,s,e)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return s(e,null,s("calcite-select",{disabled:this.disabled,label:"",ref:i=>{this._labelInfoElement=i}}))}componentDidLoad(){this._renderOptions()}async _initModules(){const[i]=await l(["esri/intl"]);this._intl=i}_getLabelSizeText(i){const t="‎"+i.descriptionPDF.labelWidthDisplay+" x "+i.descriptionPDF.labelHeightDisplay+"‏";return this._translations.pdfLabel.replace("{{n}}",i.descriptionPDF.labelsPerPageDisplay).replace("{{labelSize}}",t)}async _getTranslations(){const i=await f(this.el);this._translations=i[0]}_renderOptions(){(L.default||L).sort(((i,t)=>{const s=parseInt(i.descriptionPDF.labelsPerPageDisplay,10),e=parseInt(t.descriptionPDF.labelsPerPageDisplay,10);return s<e?-1:s>e?1:0})).forEach(((i,t)=>{const s=document.createElement("calcite-option");s.value=i,s.innerHTML=this._getLabelSizeText(i),this._labelInfoElement.appendChild(s),(this.defaultNumLabelsPerPage?parseInt(i.descriptionPDF.labelsPerPageDisplay,10)===this.defaultNumLabelsPerPage:0===t)&&(s.selected=!0,this._labelInfoElement.selectedOption=s)}))}get el(){return a(this)}};P.style=":host{display:block}";const x=class{constructor(s){i(this,s),this.selectionLoadingChange=t(this,"selectionLoadingChange",7),this.selectionSetsChanged=t(this,"selectionSetsChanged",7),this._addEnabled=!0,this._refineSets=[],this._enabledLayerIds=[],this._featuresCollection={},this.addresseeLayer=void 0,this.enabledLayerIds=[],this.mapView=void 0,this.selectionSets=[],this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._translations=void 0,this._selectionMode=u.ADD,this._refineLayer=void 0}async componentWillLoad(){await this._getTranslations(),this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){var i,t;return s(e,null,s("div",{class:(this._enabledLayerIds.length>1?"display-block":"display-none")+" padding-top-sides-1"},s("div",{class:"display-flex"},s("calcite-label",{class:"font-bold width-full label-margin-0"},s("div",{class:"display-flex"},this._translations.inputLayer,s("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"refine-input-layer",scale:"s"})),s("map-layer-picker",{enabledLayerIds:this._enabledLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},ref:i=>{this._layerPicker=i},selectedIds:[this._refineLayer.layer.id]})),s("calcite-popover",{closable:!0,label:"",referenceElement:"refine-input-layer"},s("span",{class:"tooltip-message"},this._translations.inputLayerTip)))),s("div",{class:"padding-1"},s("div",{class:"padding-bottom-1"},s("calcite-segmented-control",{class:"w-100"},s("calcite-segmented-control-item",{checked:this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(u.ADD),value:u.ADD},s("span",{class:"font-weight-500"},this._translations.add)),s("calcite-segmented-control-item",{checked:!this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(u.REMOVE),value:u.REMOVE},s("span",{class:"font-weight-500"},this._translations.remove)))),s("div",null,s("map-draw-tools",{active:!0,drawMode:v.REFINE,mapView:this.mapView,onDrawRedo:()=>this._redo(),onDrawUndo:()=>this._undo(),onSketchGraphicsChange:i=>this._sketchGraphicsChanged(i),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,redoEnabled:(null===(i=this._refineSelectionSet)||void 0===i?void 0:i.redoStack.length)>0,ref:i=>{this._drawTools=i},undoEnabled:(null===(t=this._refineSelectionSet)||void 0===t?void 0:t.undoStack.length)>0})),s("br",null),s("calcite-list",{class:"list-border"},this._getRefineSelectionSetList())))}_layerSelectionChange(i){this._setRefineSet(i.detail[0])}_setSelectionMode(i){this._selectionMode=i}_sketchGraphicsChanged(i){var t;const s=null===(t=i.detail)||void 0===t?void 0:t.graphics[0].geometry;this._selectFeatures(s)}_getEnabledLayerIds(){return this.selectionSets.reduce(((i,t)=>{var s;const e=null===(s=null==t?void 0:t.layerView)||void 0===s?void 0:s.layer.id;return e&&i.indexOf(e)<0?i.push(e):t.workflowType===b.REFINE&&Object.keys(t.refineInfos).forEach((t=>{i.indexOf(t)<0&&i.push(t)})),i}),[])}async _setRefineSet(i){this.selectionSets.some((t=>{if(t.workflowType===b.REFINE)return this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(i)>-1}))||await this._initRefineSet(i,this._refineSelectionSet),this._refineLayer=this._refineSelectionSet.refineInfos[i].layerView}async _initRefineSet(i,t){const s={};s[i]={addIds:[],removeIds:[],layerView:await d(this.mapView,i)},t?t.refineInfos=Object.assign(Object.assign({},t.refineInfos),s):(this._refineSelectionSet={id:Date.now(),searchResult:void 0,buffer:void 0,distance:0,download:!0,unit:"feet",label:"Refine",selectedIds:[],layerView:void 0,geometries:[],graphics:[],selectLayers:[],workflowType:b.REFINE,searchDistanceEnabled:!1,useLayerFeaturesEnabled:!1,refineInfos:s,redoStack:[],undoStack:[],sketchGraphic:void 0},this.selectionSets.push(this._refineSelectionSet))}_undo(){const i=this._refineSelectionSet.undoStack.pop();this._updateIds(i.ids,i.mode===u.ADD?u.REMOVE:u.ADD,this._refineSelectionSet.redoStack,i.layerView)}_redo(){const i=this._refineSelectionSet.redoStack.pop();this._updateIds(i.ids,i.mode===u.ADD?u.REMOVE:u.ADD,this._refineSelectionSet.undoStack,i.layerView)}_getRefineSelectionSetList(){const i=this._getTotal(this.selectionSets);let t;this.selectionSets.some((i=>{if(i.workflowType===b.REFINE)return t=i,!0}));let e=0,a=0;return Object.keys(t.refineInfos).forEach((i=>{e+=t.refineInfos[i].addIds.length,a+=t.refineInfos[i].removeIds.length})),[s("calcite-list-item",{label:this._translations.featuresAdded.replace("{{n}}",e.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.featuresRemoved.replace("{{n}}",a.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.totalSelected.replace("{{n}}",i.toString()),"non-interactive":!0})]}_getTotal(i){const t=p(i);return Object.keys(t).reduce(((i,s)=>i+t[s].ids.length),0)}async _getTranslations(){const i=await f(this.el);this._translations=i[0]}async _selectFeatures(i){var t,s;this.selectionLoadingChange.emit(!0),this._featuresCollection[null===(t=this._refineLayer)||void 0===t?void 0:t.layer.id]=[];const e=await c(0,null===(s=this._refineLayer)||void 0===s?void 0:s.layer,i,this._featuresCollection);this.selectionLoadingChange.emit(!1);let a=[];Object.keys(e).forEach((i=>{var t;i===(null===(t=this._refineLayer)||void 0===t?void 0:t.layer.id)&&(a=a.concat(e[i]))}));const l=Array.isArray(a)?a.map((i=>{var t;return i.attributes[null===(t=null==i?void 0:i.layer)||void 0===t?void 0:t.objectIdField]})):[];await this._updateIds(l,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._drawTools.clear()}async _highlightFeatures(){this._clearHighlight(),y.highlightHandles=await g(this.selectionSets)}_clearHighlight(){y.removeHandles()}async _updateIds(i,t,s,e){let a=!1;const l=this._refineSelectionSet.refineInfos,h=e.layer.id,n={};n[h]={addIds:[],removeIds:[],layerView:e};const o=Object.keys(l).indexOf(h)>-1?l[h]:n[h];if(t===u.ADD)o.addIds=[...new Set([...i,...o.addIds])],o.addIds.length>0&&s.push({ids:i,mode:t,layerView:e}),o.removeIds.length>0&&(o.removeIds=o.removeIds.filter((t=>i.indexOf(t)<0)));else{const l=this.selectionSets.reduce(((t,s)=>(i.forEach((i=>{s.workflowType!==b.REFINE?s.selectedIds.indexOf(i)>-1&&t.push(i):Object.keys(s.refineInfos).some((a=>{const l=s.refineInfos[a];if(l.layerView.layer.id===e.layer.id&&l.addIds.indexOf(i)>-1)return t.push(i),!0}))})),t)),[]);o.removeIds=[...new Set([...l,...o.removeIds])],o.addIds=o.addIds.filter((i=>l.indexOf(i)<0)),o.removeIds.length>0&&s.push({ids:l,mode:t,layerView:e}),this.selectionSets=this.selectionSets.reduce(((i,t)=>(t.workflowType!==b.REFINE&&t.layerView.layer.id===e.layer.id?(t.selectedIds=t.selectedIds.filter((i=>o.removeIds.indexOf(i)<0)),t.selectedIds.length>0?i.push(t):a=!0):i.push(t),i)),[])}this._refineSelectionSet.refineInfos[h]=o,this.selectionSets=[...this.selectionSets],a&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}get el(){return a(this)}};x.style=':host{display:block}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-ui-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif;line-height:1.3em;background-color:var(--calcite-ui-foreground-1)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}*/ .esri-sketch__tool-section{border-right:1px solid rgba(110,110,110,.3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110,110,110,.3)}.display-flex{display:flex}.font-bold{font-weight:bold}.width-full{width:100%}.label-margin-0{--calcite-label-margin-bottom:0}.padding-start-1-2{padding-inline-start:0.5rem}.font-weight-500{font-weight:500}.word-wrap-anywhere{word-wrap:anywhere}';export{_ as map_select_tools,P as pdf_download,x as refine_selection}
|