@esri/solutions-components 0.8.67 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/arcgis-login.cjs.entry.js +3 -2
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
- package/dist/cjs/buffer-tools_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +7 -6
- package/dist/cjs/calcite-accordion.cjs.entry.js +4 -3
- package/dist/cjs/calcite-action-bar.cjs.entry.js +14 -13
- package/dist/cjs/calcite-action-group.cjs.entry.js +11 -10
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-alert_4.cjs.entry.js +4 -4
- package/dist/cjs/calcite-block-section.cjs.entry.js +10 -9
- package/dist/cjs/calcite-block_5.cjs.entry.js +7 -7
- package/dist/cjs/calcite-button.cjs.entry.js +15 -14
- package/dist/cjs/calcite-card-group.cjs.entry.js +8 -7
- package/dist/cjs/calcite-card.cjs.entry.js +12 -11
- package/dist/cjs/calcite-carousel-item.cjs.entry.js +3 -2
- package/dist/cjs/calcite-carousel.cjs.entry.js +12 -11
- package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -10
- package/dist/cjs/calcite-chip-group.cjs.entry.js +8 -7
- package/dist/cjs/calcite-color-picker.cjs.entry.js +23 -23
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +6 -5
- package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-fab.cjs.entry.js +8 -7
- package/dist/cjs/calcite-flow_6.cjs.entry.js +2 -2
- package/dist/cjs/calcite-icon.cjs.entry.js +7 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -12
- package/dist/cjs/calcite-input-number.cjs.entry.js +15 -14
- package/dist/cjs/calcite-input-text.cjs.entry.js +15 -14
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +17 -17
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +14 -13
- package/dist/cjs/calcite-label.cjs.entry.js +6 -5
- package/dist/cjs/calcite-link.cjs.entry.js +8 -7
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +5 -4
- package/dist/cjs/calcite-menu-item.cjs.entry.js +10 -9
- package/dist/cjs/calcite-menu.cjs.entry.js +10 -9
- package/dist/cjs/calcite-meter.cjs.entry.js +10 -9
- package/dist/cjs/calcite-modal.cjs.entry.js +13 -18
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +5 -4
- package/dist/cjs/calcite-navigation.cjs.entry.js +6 -5
- package/dist/cjs/calcite-notice.cjs.entry.js +12 -11
- package/dist/cjs/calcite-option-group.cjs.entry.js +3 -2
- package/dist/cjs/calcite-pagination.cjs.entry.js +10 -202
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +8 -7
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +25 -24
- package/dist/cjs/calcite-pick-list.cjs.entry.js +12 -11
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +6 -5
- package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -9
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -15
- package/dist/cjs/calcite-sheet.cjs.entry.js +9 -8
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +7 -6
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +2 -2
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +9 -8
- package/dist/cjs/calcite-split-button.cjs.entry.js +6 -5
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +12 -11
- package/dist/cjs/calcite-stepper.cjs.entry.js +9 -8
- package/dist/cjs/calcite-switch.cjs.entry.js +11 -10
- package/dist/cjs/calcite-table-row.cjs.entry.js +8 -7
- package/dist/cjs/calcite-table.cjs.entry.js +11 -10
- package/dist/cjs/calcite-text-area.cjs.entry.js +18 -16
- package/dist/cjs/calcite-tile-group.cjs.entry.js +8 -7
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +5 -4
- package/dist/cjs/calcite-tile-select.cjs.entry.js +6 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -7
- package/dist/cjs/calcite-time-picker.cjs.entry.js +11 -10
- package/dist/cjs/calcite-tip-group.cjs.entry.js +3 -2
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +10 -16
- package/dist/cjs/calcite-tip.cjs.entry.js +11 -10
- package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -8
- package/dist/cjs/card-manager_3.cjs.entry.js +3 -3
- package/dist/cjs/consent-manager.cjs.entry.js +7 -350
- package/dist/cjs/crowdsource-manager.cjs.entry.js +9 -9
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +9 -10
- package/dist/cjs/deduct-calculator.cjs.entry.js +3 -2
- package/dist/cjs/{downloadUtils-737851e4.js → downloadUtils-69c90822.js} +2 -2
- package/dist/cjs/feature-comments.cjs.entry.js +3 -2
- package/dist/cjs/feature-form-flow-item.cjs.entry.js +3 -2
- package/dist/cjs/feature-list.cjs.entry.js +12 -12
- package/dist/cjs/features-flow-item.cjs.entry.js +3 -2
- package/dist/cjs/{helpers-758e7ae8.js → helpers-3cad996e.js} +1 -1
- package/dist/cjs/index.cjs.js +0 -15
- package/dist/cjs/{index.es-c00eb740.js → index.es-3bcb5f03.js} +3 -3
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +6 -5
- package/dist/cjs/instant-apps-create.cjs.entry.js +9 -8
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +9 -8
- package/dist/cjs/instant-apps-export.cjs.entry.js +9 -8
- package/dist/cjs/instant-apps-header.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +28 -33
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +8 -8
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +10 -10
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +8 -7
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +3 -2
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +11 -10
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +11 -10
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +8 -7
- package/dist/cjs/instant-apps-popover.cjs.entry.js +8 -7
- package/dist/cjs/instant-apps-popovers.cjs.entry.js +3 -2
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +8 -7
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +8 -7
- package/dist/cjs/instant-apps-splash.cjs.entry.js +8 -7
- package/dist/cjs/{languageSwitcher-f0bb94fa.js → languageSwitcher-dc2dd354.js} +1 -1
- package/dist/cjs/{languageUtil-f22ce913.js → languageUtil-a3e1eafd.js} +1 -1
- package/dist/cjs/layout-manager.cjs.entry.js +6 -6
- package/dist/cjs/list-flow-item.cjs.entry.js +3 -2
- package/dist/cjs/{loadModules-0a42affb.js → loadModules-8567855e.js} +1 -1
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{locale-d3582284.js → locale-1d07e942.js} +2 -2
- package/dist/cjs/{locale-6c657db5.js → locale-33a0038a.js} +1 -1
- package/dist/cjs/location-flow-item.cjs.entry.js +3 -2
- package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
- package/dist/cjs/pci-calculator.cjs.entry.js +3 -2
- package/dist/cjs/{popupUtils-92b936a2.js → popupUtils-51b6c78d.js} +2 -2
- package/dist/cjs/public-notification.cjs.entry.js +13 -13
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +3 -2
- package/dist/cjs/share-item.cjs.entry.js +3 -2
- package/dist/cjs/solution-configuration.cjs.entry.js +1108 -23
- package/dist/cjs/solution-contents_3.cjs.entry.js +2 -2
- package/dist/cjs/solution-item-icon.cjs.entry.js +3 -2
- package/dist/cjs/solutions-components.cjs.js +5 -32
- package/dist/cjs/spatial-ref.cjs.entry.js +8 -8
- package/dist/cjs/store-manager.cjs.entry.js +7 -6
- package/dist/cjs/{utils-057900e0.js → utils-8d9c798c.js} +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +20 -1
- package/dist/components/ExpandToggle.js +8 -8
- package/dist/components/_commonjsHelpers.js +0 -23
- package/dist/components/action-bar.js +5 -4
- package/dist/components/action-group.js +4 -3
- package/dist/components/action-menu.js +3 -2
- package/dist/components/action-pad.js +3 -2
- package/dist/components/action.js +3 -2
- package/dist/components/alert.js +4 -3
- package/dist/components/arcgis-login.js +3 -2
- package/dist/components/avatar.js +3 -2
- package/dist/components/basemap-gallery2.js +3 -2
- package/dist/components/block.js +3 -2
- package/dist/components/buffer-tools2.js +3 -2
- package/dist/components/button.js +3 -2
- package/dist/components/calcite-accordion-item.js +3 -2
- package/dist/components/calcite-accordion.js +3 -2
- package/dist/components/calcite-block-section.js +3 -2
- package/dist/components/calcite-card-group.js +3 -2
- package/dist/components/calcite-card.js +3 -2
- package/dist/components/calcite-carousel-item.js +3 -2
- package/dist/components/calcite-carousel.js +3 -2
- package/dist/components/calcite-chip-group.js +3 -2
- package/dist/components/calcite-color-picker.js +20 -19
- package/dist/components/calcite-combobox-item-group.js +3 -2
- package/dist/components/calcite-fab.js +3 -2
- package/dist/components/calcite-inline-editable.js +3 -2
- package/dist/components/calcite-input-time-picker.js +4 -7
- package/dist/components/calcite-input-time-zone.js +4 -3
- package/dist/components/calcite-list-item-group.js +3 -2
- package/dist/components/calcite-menu-item.js +3 -2
- package/dist/components/calcite-meter.js +3 -2
- package/dist/components/calcite-navigation-logo.js +3 -2
- package/dist/components/calcite-navigation.js +3 -2
- package/dist/components/calcite-option-group.js +3 -2
- package/dist/components/calcite-pick-list-group.js +5 -4
- package/dist/components/calcite-pick-list.js +3 -2
- package/dist/components/calcite-radio-button-group.js +3 -2
- package/dist/components/calcite-rating.js +3 -4
- package/dist/components/calcite-sheet.js +3 -2
- package/dist/components/calcite-shell-center-row.js +3 -2
- package/dist/components/calcite-sortable-list.js +3 -2
- package/dist/components/calcite-split-button.js +3 -2
- package/dist/components/calcite-stepper-item.js +3 -2
- package/dist/components/calcite-stepper.js +3 -2
- package/dist/components/calcite-table-row.js +3 -2
- package/dist/components/calcite-table.js +3 -2
- package/dist/components/calcite-text-area.js +4 -3
- package/dist/components/calcite-tile-group.js +3 -2
- package/dist/components/calcite-tile-select-group.js +3 -2
- package/dist/components/calcite-tile-select.js +3 -2
- package/dist/components/calcite-tile.js +3 -2
- package/dist/components/calcite-tip-group.js +3 -2
- package/dist/components/calcite-tip-manager.js +3 -9
- package/dist/components/calcite-tip.js +4 -3
- package/dist/components/card-manager2.js +3 -2
- package/dist/components/checkbox.js +3 -2
- package/dist/components/chip.js +3 -2
- package/dist/components/color-picker-hex-input.js +12 -11
- package/dist/components/color-picker-swatch.js +6 -5
- package/dist/components/combobox-item.js +3 -2
- package/dist/components/combobox.js +5 -4
- package/dist/components/consent-manager.js +4 -346
- package/dist/components/core.js +0 -309
- package/dist/components/create-feature2.js +3 -2
- package/dist/components/create-related-feature2.js +3 -2
- package/dist/components/crowdsource-manager.js +6 -3
- package/dist/components/crowdsource-reporter.js +3 -2
- package/dist/components/date-picker-day.js +3 -2
- package/dist/components/date-picker-month-header.js +3 -2
- package/dist/components/date-picker-month.js +3 -2
- package/dist/components/date-picker.js +3 -2
- package/dist/components/deduct-calculator2.js +3 -2
- package/dist/components/delete-button2.js +3 -2
- package/dist/components/dom.js +0 -27
- package/dist/components/downloadUtils.js +96 -1176
- package/dist/components/dropdown-group.js +3 -2
- package/dist/components/dropdown-item.js +3 -2
- package/dist/components/dropdown.js +3 -2
- package/dist/components/edit-card2.js +3 -2
- package/dist/components/esri-loader.js +6 -11
- package/dist/components/feature-comments.js +3 -2
- package/dist/components/feature-details2.js +3 -2
- package/dist/components/feature-form-flow-item.js +3 -2
- package/dist/components/feature-list2.js +3 -2
- package/dist/components/features-flow-item.js +3 -2
- package/dist/components/filter.js +730 -1
- package/dist/components/filter2.js +4 -3
- package/dist/components/floating-ui.js +13 -89
- package/dist/components/floor-filter2.js +3 -2
- package/dist/components/flow-item.js +4 -3
- package/dist/components/flow.js +3 -2
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +3 -2
- package/dist/components/handle.js +3 -2
- package/dist/components/helpers.js +2 -6
- package/dist/components/html2canvas.js +4 -9
- package/dist/components/icon.js +3 -2
- package/dist/components/index.es.js +79 -441
- package/dist/components/index.js +0 -16
- package/dist/components/index2.js +9 -17
- package/dist/components/index3.js +1863 -41457
- package/dist/components/index4.js +162 -2068
- package/dist/components/index5.js +184 -179
- package/dist/components/index6.js +55 -188
- package/dist/components/info-card2.js +3 -2
- package/dist/components/input-date-picker.js +4 -3
- package/dist/components/input-message.js +3 -2
- package/dist/components/input-number.js +3 -2
- package/dist/components/input-text.js +3 -2
- package/dist/components/input.js +3 -2
- package/dist/components/instant-apps-ckeditor-wrapper2.js +3 -2
- package/dist/components/instant-apps-control-panel.js +3 -2
- package/dist/components/instant-apps-create.js +3 -2
- package/dist/components/instant-apps-export-views.js +3 -2
- package/dist/components/instant-apps-export.js +3 -2
- package/dist/components/instant-apps-filter-list2.js +6 -6
- package/dist/components/instant-apps-header2.js +4 -3
- package/dist/components/instant-apps-interactive-legend-classic2.js +13 -17
- package/dist/components/instant-apps-interactive-legend-count2.js +4 -3
- package/dist/components/instant-apps-interactive-legend-group-legend-element-caption.js +3 -2
- package/dist/components/instant-apps-interactive-legend-group-legend-element2.js +3 -2
- package/dist/components/instant-apps-interactive-legend-layer-element-caption2.js +3 -2
- package/dist/components/instant-apps-interactive-legend-layer-element2.js +3 -2
- package/dist/components/instant-apps-interactive-legend-legend-element-caption2.js +4 -3
- package/dist/components/instant-apps-interactive-legend-legend-element2.js +3 -2
- package/dist/components/instant-apps-interactive-legend-relationship2.js +3 -2
- package/dist/components/instant-apps-interactive-legend.js +3 -2
- package/dist/components/instant-apps-keyboard-shortcuts.js +3 -2
- package/dist/components/instant-apps-landing-page.js +3 -2
- package/dist/components/instant-apps-language-switcher.js +4 -3
- package/dist/components/instant-apps-language-translator-item2.js +3 -2
- package/dist/components/instant-apps-language-translator-search2.js +3 -2
- package/dist/components/instant-apps-language-translator2.js +3 -2
- package/dist/components/instant-apps-measurement-tool2.js +3 -2
- package/dist/components/instant-apps-measurement.js +3 -2
- package/dist/components/instant-apps-popover.js +3 -2
- package/dist/components/instant-apps-popovers.js +3 -2
- package/dist/components/instant-apps-scoreboard.js +3 -2
- package/dist/components/instant-apps-sign-in2.js +3 -2
- package/dist/components/instant-apps-social-share2.js +3 -2
- package/dist/components/instant-apps-splash.js +4 -3
- package/dist/components/json-editor2.js +3 -2
- package/dist/components/key.js +0 -28
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +3 -2
- package/dist/components/languageUtil.js +1 -22
- package/dist/components/layer-list2.js +3 -2
- package/dist/components/layer-table2.js +3 -2
- package/dist/components/layout-manager.js +3 -2
- package/dist/components/link.js +3 -2
- package/dist/components/list-flow-item.js +3 -2
- package/dist/components/list-item.js +3 -2
- package/dist/components/list.js +5 -4
- package/dist/components/loader.js +3 -2
- package/dist/components/locale.js +0 -12
- package/dist/components/locale2.js +1 -2
- package/dist/components/location-flow-item.js +3 -2
- package/dist/components/map-card2.js +3 -2
- package/dist/components/map-draw-tools2.js +3 -2
- package/dist/components/map-fullscreen2.js +3 -2
- package/dist/components/map-layer-picker2.js +3 -2
- package/dist/components/map-legend2.js +3 -2
- package/dist/components/map-picker2.js +3 -2
- package/dist/components/map-search2.js +3 -2
- package/dist/components/map-select-tools2.js +3 -2
- package/dist/components/map-tools2.js +3 -4
- package/dist/components/menu.js +3 -2
- package/dist/components/modal.js +3 -8
- package/dist/components/mode.js +0 -8
- package/dist/components/navigation-user.js +3 -2
- package/dist/components/notice.js +3 -2
- package/dist/components/openCloseComponent.js +0 -48
- package/dist/components/option.js +3 -2
- package/dist/components/pagination.js +3 -195
- package/dist/components/panel.js +4 -4
- package/dist/components/pci-calculator.js +4 -3
- package/dist/components/pdf-download2.js +3 -2
- package/dist/components/pick-list-item.js +3 -2
- package/dist/components/popover.js +3 -2
- package/dist/components/progress.js +3 -2
- package/dist/components/public-notification.js +3 -2
- package/dist/components/publicNotificationStore.js +1 -1
- package/dist/components/purify.js +3 -6
- package/dist/components/queryUtils.js +0 -59
- package/dist/components/radio-button.js +3 -2
- package/dist/components/refine-results-flow-item.js +3 -2
- package/dist/components/refine-selection2.js +3 -2
- package/dist/components/resources.js +0 -17
- package/dist/components/resources5.js +0 -3
- package/dist/components/scrim.js +3 -2
- package/dist/components/segmented-control-item.js +3 -2
- package/dist/components/segmented-control.js +3 -2
- package/dist/components/select.js +3 -2
- package/dist/components/share-item.js +3 -2
- package/dist/components/shared-list-render.js +1 -6
- package/dist/components/shell-panel.js +3 -2
- package/dist/components/shell.js +3 -2
- package/dist/components/slider.js +3 -2
- package/dist/components/solution-configuration.js +1090 -3
- package/dist/components/solution-contents2.js +3 -2
- package/dist/components/solution-item-details2.js +3 -2
- package/dist/components/solution-item-icon2.js +3 -2
- package/dist/components/solution-item-sharing2.js +3 -2
- package/dist/components/solution-item2.js +3 -2
- package/dist/components/solution-organization-variables2.js +3 -2
- package/dist/components/solution-resource-item2.js +5 -3
- package/dist/components/solution-spatial-ref2.js +4 -3
- package/dist/components/solution-store.js +767 -2
- package/dist/components/solution-template-data2.js +3 -2
- package/dist/components/solution-variables2.js +3 -2
- package/dist/components/sortableComponent.js +0 -701
- package/dist/components/spatial-ref2.js +6 -264
- package/dist/components/stack.js +3 -2
- package/dist/components/store-manager.js +1 -1
- package/dist/components/store.js +1 -2
- package/dist/components/switch.js +3 -2
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +3 -2
- package/dist/components/tab-title.js +3 -2
- package/dist/components/tab.js +3 -2
- package/dist/components/table-cell.js +3 -2
- package/dist/components/table-header.js +3 -2
- package/dist/components/tabs.js +3 -2
- package/dist/components/templates.js +3 -44
- package/dist/components/time-picker.js +4 -3
- package/dist/components/tooltip.js +3 -2
- package/dist/components/tree-item.js +3 -2
- package/dist/components/tree.js +3 -2
- package/dist/components/utils.js +1 -6
- package/dist/components/utils2.js +1 -1
- package/dist/components/utils4.js +1 -13
- package/dist/components/value-list-item.js +4 -3
- package/dist/components/value-list.js +3 -5
- package/dist/esm/arcgis-login.entry.js +3 -2
- package/dist/esm/basemap-gallery_7.entry.js +2 -2
- package/dist/esm/buffer-tools_3.entry.js +2 -2
- package/dist/esm/calcite-accordion-item.entry.js +7 -6
- package/dist/esm/calcite-accordion.entry.js +4 -3
- package/dist/esm/calcite-action-bar.entry.js +13 -12
- package/dist/esm/calcite-action-group.entry.js +14 -13
- package/dist/esm/calcite-action-pad_2.entry.js +2 -2
- package/dist/esm/calcite-alert_4.entry.js +4 -4
- package/dist/esm/calcite-block-section.entry.js +10 -9
- package/dist/esm/calcite-block_5.entry.js +7 -7
- package/dist/esm/calcite-button.entry.js +15 -14
- package/dist/esm/calcite-card-group.entry.js +8 -7
- package/dist/esm/calcite-card.entry.js +12 -11
- package/dist/esm/calcite-carousel-item.entry.js +3 -2
- package/dist/esm/calcite-carousel.entry.js +12 -11
- package/dist/esm/calcite-checkbox.entry.js +11 -10
- package/dist/esm/calcite-chip-group.entry.js +8 -7
- package/dist/esm/calcite-color-picker.entry.js +29 -29
- package/dist/esm/calcite-combobox-item-group.entry.js +6 -5
- package/dist/esm/calcite-dropdown-group_2.entry.js +2 -2
- package/dist/esm/calcite-fab.entry.js +8 -7
- package/dist/esm/calcite-flow_6.entry.js +2 -2
- package/dist/esm/calcite-icon.entry.js +7 -6
- package/dist/esm/calcite-inline-editable.entry.js +13 -12
- package/dist/esm/calcite-input-number.entry.js +15 -14
- package/dist/esm/calcite-input-text.entry.js +15 -14
- package/dist/esm/calcite-input-time-picker.entry.js +17 -17
- package/dist/esm/calcite-input-time-zone.entry.js +14 -13
- package/dist/esm/calcite-label.entry.js +6 -5
- package/dist/esm/calcite-link.entry.js +8 -7
- package/dist/esm/calcite-list-item-group.entry.js +5 -4
- package/dist/esm/calcite-menu-item.entry.js +10 -9
- package/dist/esm/calcite-menu.entry.js +10 -9
- package/dist/esm/calcite-meter.entry.js +10 -9
- package/dist/esm/calcite-modal.entry.js +13 -18
- package/dist/esm/calcite-navigation-logo.entry.js +5 -4
- package/dist/esm/calcite-navigation.entry.js +6 -5
- package/dist/esm/calcite-notice.entry.js +12 -11
- package/dist/esm/calcite-option-group.entry.js +3 -2
- package/dist/esm/calcite-pagination.entry.js +10 -202
- package/dist/esm/calcite-pick-list-group.entry.js +8 -7
- package/dist/esm/calcite-pick-list-item.entry.js +15 -14
- package/dist/esm/calcite-pick-list.entry.js +12 -11
- package/dist/esm/calcite-radio-button-group.entry.js +6 -5
- package/dist/esm/calcite-radio-button.entry.js +10 -9
- package/dist/esm/calcite-rating.entry.js +14 -15
- package/dist/esm/calcite-sheet.entry.js +9 -8
- package/dist/esm/calcite-shell-center-row.entry.js +7 -6
- package/dist/esm/calcite-shell-panel_14.entry.js +2 -2
- package/dist/esm/calcite-sortable-list.entry.js +9 -8
- package/dist/esm/calcite-split-button.entry.js +6 -5
- package/dist/esm/calcite-stepper-item.entry.js +12 -11
- package/dist/esm/calcite-stepper.entry.js +9 -8
- package/dist/esm/calcite-switch.entry.js +11 -10
- package/dist/esm/calcite-table-row.entry.js +8 -7
- package/dist/esm/calcite-table.entry.js +11 -10
- package/dist/esm/calcite-text-area.entry.js +17 -15
- package/dist/esm/calcite-tile-group.entry.js +8 -7
- package/dist/esm/calcite-tile-select-group.entry.js +5 -4
- package/dist/esm/calcite-tile-select.entry.js +6 -5
- package/dist/esm/calcite-tile.entry.js +8 -7
- package/dist/esm/calcite-time-picker.entry.js +11 -10
- package/dist/esm/calcite-tip-group.entry.js +3 -2
- package/dist/esm/calcite-tip-manager.entry.js +10 -16
- package/dist/esm/calcite-tip.entry.js +11 -10
- package/dist/esm/calcite-tooltip.entry.js +9 -8
- package/dist/esm/card-manager_3.entry.js +3 -3
- package/dist/esm/consent-manager.entry.js +7 -350
- package/dist/esm/crowdsource-manager.entry.js +9 -9
- package/dist/esm/crowdsource-reporter.entry.js +7 -8
- package/dist/esm/deduct-calculator.entry.js +3 -2
- package/dist/esm/{downloadUtils-78367e33.js → downloadUtils-65947034.js} +2 -2
- package/dist/esm/feature-comments.entry.js +3 -2
- package/dist/esm/feature-form-flow-item.entry.js +3 -2
- package/dist/esm/feature-list.entry.js +11 -11
- package/dist/esm/features-flow-item.entry.js +3 -2
- package/dist/esm/{helpers-d661d198.js → helpers-ca6fa5a6.js} +1 -1
- package/dist/esm/{index.es-2b549b56.js → index.es-8311d3b3.js} +3 -3
- package/dist/esm/index.js +0 -15
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +5 -5
- package/dist/esm/instant-apps-control-panel.entry.js +6 -5
- package/dist/esm/instant-apps-create.entry.js +9 -8
- package/dist/esm/instant-apps-export-views.entry.js +9 -8
- package/dist/esm/instant-apps-export.entry.js +9 -8
- package/dist/esm/instant-apps-header.entry.js +6 -6
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +16 -21
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +8 -8
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend.entry.js +10 -10
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +8 -7
- package/dist/esm/instant-apps-landing-page.entry.js +3 -2
- package/dist/esm/instant-apps-language-switcher.entry.js +11 -10
- package/dist/esm/instant-apps-language-translator.entry.js +11 -10
- package/dist/esm/instant-apps-measurement.entry.js +8 -7
- package/dist/esm/instant-apps-popover.entry.js +8 -7
- package/dist/esm/instant-apps-popovers.entry.js +3 -2
- package/dist/esm/instant-apps-scoreboard.entry.js +8 -7
- package/dist/esm/instant-apps-sign-in.entry.js +8 -7
- package/dist/esm/instant-apps-splash.entry.js +8 -7
- package/dist/{solutions-components/languageSwitcher-35db9d61.js → esm/languageSwitcher-9db90f1e.js} +1 -1
- package/dist/esm/{languageUtil-a3e6adf6.js → languageUtil-2b6e191a.js} +1 -1
- package/dist/esm/layout-manager.entry.js +6 -6
- package/dist/esm/list-flow-item.entry.js +3 -2
- package/dist/{solutions-components/loadModules-4d6cf31f.js → esm/loadModules-03ba7abe.js} +1 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-4dc2b896.js → locale-7becb9cd.js} +1 -1
- package/dist/esm/{locale-b4e7d56f.js → locale-d66155ee.js} +2 -2
- package/dist/esm/location-flow-item.entry.js +3 -2
- package/dist/esm/map-select-tools_3.entry.js +3 -3
- package/dist/esm/pci-calculator.entry.js +3 -2
- package/dist/esm/{popupUtils-600a3c69.js → popupUtils-7b7851ca.js} +2 -2
- package/dist/esm/public-notification.entry.js +12 -12
- package/dist/esm/refine-results-flow-item.entry.js +3 -2
- package/dist/esm/share-item.entry.js +3 -2
- package/dist/esm/solution-configuration.entry.js +1096 -11
- package/dist/esm/solution-contents_3.entry.js +2 -2
- package/dist/esm/solution-item-icon.entry.js +3 -2
- package/dist/esm/solutions-components.js +6 -33
- package/dist/esm/spatial-ref.entry.js +8 -8
- package/dist/esm/store-manager.entry.js +7 -6
- package/dist/esm/{utils-5ac53499.js → utils-8519a5f7.js} +1 -1
- package/dist/solutions-components/index.esm.js +0 -15
- package/dist/solutions-components/p-01ac1582.entry.js +6 -0
- package/dist/solutions-components/{p-c20f6a4b.entry.js → p-0fce578a.entry.js} +1 -1
- package/dist/solutions-components/{p-4cb18849.entry.js → p-16aa396b.entry.js} +1 -1
- package/dist/solutions-components/{p-58aca46f.entry.js → p-1977a2f2.entry.js} +1 -1
- package/dist/solutions-components/{p-da89f8f3.entry.js → p-1a137b52.entry.js} +1 -1
- package/dist/solutions-components/{p-427b4593.js → p-1c64264d.js} +1 -1
- package/dist/solutions-components/{p-702a8e9c.entry.js → p-250c058f.entry.js} +1 -1
- package/dist/solutions-components/{p-4dc6dcc4.entry.js → p-258356f9.entry.js} +1 -1
- package/dist/solutions-components/{p-36eaeb25.entry.js → p-266b0f36.entry.js} +1 -1
- package/dist/solutions-components/{p-274f2c44.entry.js → p-268484ad.entry.js} +1 -1
- package/dist/solutions-components/{p-4b6b0bcf.entry.js → p-28361110.entry.js} +1 -1
- package/dist/solutions-components/{p-c742acd9.js → p-2fc63144.js} +1 -1
- package/dist/solutions-components/{p-4b740dbc.entry.js → p-38283c63.entry.js} +1 -1
- package/dist/solutions-components/{p-66a59698.entry.js → p-461a5633.entry.js} +1 -1
- package/dist/solutions-components/{p-ab24cecd.entry.js → p-46264ced.entry.js} +1 -1
- package/dist/solutions-components/{p-65581d83.js → p-4cd4cb85.js} +1 -1
- package/dist/solutions-components/{p-37481a7e.js → p-4facfedc.js} +1 -1
- package/dist/solutions-components/{p-88ebb067.js → p-596d1177.js} +1 -1
- package/dist/solutions-components/{p-d7aa16de.entry.js → p-5f636f70.entry.js} +1 -1
- package/dist/solutions-components/{p-6011f232.entry.js → p-6c7aa9b7.entry.js} +1 -1
- package/dist/solutions-components/{p-6c822b5a.entry.js → p-71131fea.entry.js} +1 -1
- package/dist/solutions-components/{p-09ea5380.entry.js → p-7348871e.entry.js} +1 -1
- package/dist/solutions-components/{p-4fb8dbdb.entry.js → p-736dee44.entry.js} +1 -1
- package/dist/solutions-components/{p-f1e44c41.js → p-75d5dfad.js} +2 -2
- package/dist/solutions-components/{p-cebae8b0.entry.js → p-77d55329.entry.js} +1 -1
- package/dist/solutions-components/{p-0b2a84bd.entry.js → p-89333ced.entry.js} +1 -1
- package/dist/solutions-components/{p-72268284.entry.js → p-8c1f9b20.entry.js} +1 -1
- package/dist/solutions-components/{p-9946b88e.entry.js → p-8db0af91.entry.js} +1 -1
- package/dist/solutions-components/{p-0424696b.entry.js → p-8ebe19ed.entry.js} +1 -1
- package/dist/solutions-components/{p-f2832661.entry.js → p-90d3eeb2.entry.js} +1 -1
- package/dist/solutions-components/{p-1b67b3e2.entry.js → p-9238c1ed.entry.js} +1 -1
- package/dist/solutions-components/{p-19f6ceaf.entry.js → p-93d98ebb.entry.js} +1 -1
- package/dist/solutions-components/{p-c9c97215.entry.js → p-957d275c.entry.js} +1 -1
- package/dist/solutions-components/{p-36ca2014.entry.js → p-9e1c97b0.entry.js} +1 -1
- package/dist/solutions-components/{p-30df83ea.js → p-9f2a0621.js} +1 -1
- package/dist/solutions-components/{p-cd56bd9d.entry.js → p-a26763d2.entry.js} +1 -1
- package/dist/solutions-components/{p-4ffe4d32.entry.js → p-a80c076e.entry.js} +1 -1
- package/dist/solutions-components/{p-67e06dfc.js → p-a84590db.js} +1 -1
- package/dist/solutions-components/{p-3e84a420.entry.js → p-ab2adcaf.entry.js} +1 -1
- package/dist/solutions-components/{p-af2c8aa9.js → p-ac122d9e.js} +1 -1
- package/dist/solutions-components/{p-73c535f7.entry.js → p-b2846de4.entry.js} +2 -2
- package/dist/solutions-components/{p-6be3c158.entry.js → p-b323bb0e.entry.js} +1 -1
- package/dist/solutions-components/{p-24f7ec82.entry.js → p-b65d5c58.entry.js} +1 -1
- package/dist/solutions-components/{p-296174a0.entry.js → p-c3d61142.entry.js} +1 -1
- package/dist/solutions-components/{p-60b4309f.entry.js → p-ce1b52e7.entry.js} +1 -1
- package/dist/solutions-components/{p-f90f7437.js → p-d36fae45.js} +1 -1
- package/dist/solutions-components/{p-69fb3157.entry.js → p-e1dbe7cf.entry.js} +1 -1
- package/dist/solutions-components/{p-2b430d5f.entry.js → p-edead891.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.css +1 -84
- package/dist/solutions-components/solutions-components.esm.js +1 -48
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +11 -11
- package/dist/cjs/ExpandToggle-4bf8ab4c.js +0 -118
- package/dist/cjs/FloatingArrow-0900fae3.js +0 -50
- package/dist/cjs/Heading-6f44a694.js +0 -25
- package/dist/cjs/InitiativeUiSchemaEdit-108652db.js +0 -28
- package/dist/cjs/ProjectUiSchemaCreate-c1cbccc7.js +0 -126
- package/dist/cjs/ProjectUiSchemaEdit-d5f11c17.js +0 -178
- package/dist/cjs/Validation-080a7842.js +0 -20
- package/dist/cjs/_commonjsHelpers-2dd87068.js +0 -43
- package/dist/cjs/app-globals-24367c32.js +0 -69
- package/dist/cjs/ar-a6ccf8f4.js +0 -105
- package/dist/cjs/basemap-gallery.cjs.entry.js +0 -121
- package/dist/cjs/bg-e6b1b515.js +0 -83
- package/dist/cjs/browser-1bf2a3d9.js +0 -28
- package/dist/cjs/bs-4151b94c.js +0 -52
- package/dist/cjs/buffer-tools.cjs.entry.js +0 -257
- package/dist/cjs/ca-1744d62a.js +0 -72
- package/dist/cjs/calcite-action-menu.cjs.entry.js +0 -292
- package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -169
- package/dist/cjs/calcite-action.cjs.entry.js +0 -191
- package/dist/cjs/calcite-alert.cjs.entry.js +0 -322
- package/dist/cjs/calcite-avatar.cjs.entry.js +0 -150
- package/dist/cjs/calcite-block.cjs.entry.js +0 -214
- package/dist/cjs/calcite-chip.cjs.entry.js +0 -282
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +0 -274
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +0 -99
- package/dist/cjs/calcite-combobox-item.cjs.entry.js +0 -145
- package/dist/cjs/calcite-combobox.cjs.entry.js +0 -1141
- package/dist/cjs/calcite-date-picker-day.cjs.entry.js +0 -112
- package/dist/cjs/calcite-date-picker-month-header.cjs.entry.js +0 -207
- package/dist/cjs/calcite-date-picker-month.cjs.entry.js +0 -359
- package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -459
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js +0 -85
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js +0 -188
- package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -426
- package/dist/cjs/calcite-filter.cjs.entry.js +0 -182
- package/dist/cjs/calcite-flow-item.cjs.entry.js +0 -198
- package/dist/cjs/calcite-flow.cjs.entry.js +0 -153
- package/dist/cjs/calcite-graph.cjs.entry.js +0 -226
- package/dist/cjs/calcite-handle.cjs.entry.js +0 -206
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +0 -757
- package/dist/cjs/calcite-input-message.cjs.entry.js +0 -69
- package/dist/cjs/calcite-input-time-picker-f8adb5d5.js +0 -1867
- package/dist/cjs/calcite-input.cjs.entry.js +0 -709
- package/dist/cjs/calcite-list-item.cjs.entry.js +0 -456
- package/dist/cjs/calcite-list.cjs.entry.js +0 -560
- package/dist/cjs/calcite-loader.cjs.entry.js +0 -80
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +0 -72
- package/dist/cjs/calcite-option.cjs.entry.js +0 -88
- package/dist/cjs/calcite-panel.cjs.entry.js +0 -270
- package/dist/cjs/calcite-popover.cjs.entry.js +0 -419
- package/dist/cjs/calcite-progress.cjs.entry.js +0 -41
- package/dist/cjs/calcite-scrim.cjs.entry.js +0 -125
- package/dist/cjs/calcite-segmented-control-item.cjs.entry.js +0 -70
- package/dist/cjs/calcite-segmented-control.cjs.entry.js +0 -258
- package/dist/cjs/calcite-select.cjs.entry.js +0 -248
- package/dist/cjs/calcite-shell-panel.cjs.entry.js +0 -414
- package/dist/cjs/calcite-shell.cjs.entry.js +0 -174
- package/dist/cjs/calcite-slider.cjs.entry.js +0 -874
- package/dist/cjs/calcite-stack.cjs.entry.js +0 -74
- package/dist/cjs/calcite-tab-nav.cjs.entry.js +0 -470
- package/dist/cjs/calcite-tab-title.cjs.entry.js +0 -291
- package/dist/cjs/calcite-tab.cjs.entry.js +0 -112
- package/dist/cjs/calcite-table-cell.cjs.entry.js +0 -166
- package/dist/cjs/calcite-table-header.cjs.entry.js +0 -183
- package/dist/cjs/calcite-tabs.cjs.entry.js +0 -178
- package/dist/cjs/calcite-tree-item.cjs.entry.js +0 -298
- package/dist/cjs/calcite-tree.cjs.entry.js +0 -315
- package/dist/cjs/calcite-value-list-item.cjs.entry.js +0 -157
- package/dist/cjs/calcite-value-list.cjs.entry.js +0 -325
- package/dist/cjs/card-manager.cjs.entry.js +0 -107
- package/dist/cjs/common-f5cf368e.js +0 -297
- package/dist/cjs/conditionalSlot-013ea8f1.js +0 -54
- package/dist/cjs/core-23721ec5.js +0 -329
- package/dist/cjs/create-feature.cjs.entry.js +0 -411
- package/dist/cjs/create-related-feature.cjs.entry.js +0 -288
- package/dist/cjs/cs-865bf9fc.js +0 -148
- package/dist/cjs/da-ec3cbd7d.js +0 -67
- package/dist/cjs/date-86802e0d.js +0 -261
- package/dist/cjs/de-at-33e63cf4.js +0 -91
- package/dist/cjs/de-ch-41c31254.js +0 -91
- package/dist/cjs/de-d2010af8.js +0 -92
- package/dist/cjs/delete-button.cjs.entry.js +0 -150
- package/dist/cjs/dom-3f868a04.js +0 -1174
- package/dist/cjs/downloadUtils-3f3ba92b.js +0 -4247
- package/dist/cjs/edit-card.cjs.entry.js +0 -228
- package/dist/cjs/el-694f3f53.js +0 -67
- package/dist/cjs/en-au-ee52aa15.js +0 -67
- package/dist/cjs/en-ca-f397253b.js +0 -66
- package/dist/cjs/en-gb-e38f2064.js +0 -70
- package/dist/cjs/es-1f31784e.js +0 -67
- package/dist/cjs/es-mx-e039dd38.js +0 -66
- package/dist/cjs/esri-loader-9b0ce1a4.js +0 -310
- package/dist/cjs/et-ab75e5bf.js +0 -93
- package/dist/cjs/feature-details.cjs.entry.js +0 -385
- package/dist/cjs/fi-ac75e6d2.js +0 -116
- package/dist/cjs/filter-bafcd70b.js +0 -48
- package/dist/cjs/floating-ui-87c9e9ed.js +0 -2377
- package/dist/cjs/floor-filter.cjs.entry.js +0 -153
- package/dist/cjs/focusTrapComponent-5195d563.js +0 -1028
- package/dist/cjs/form-067ee7bc.js +0 -381
- package/dist/cjs/fr-a10ffff6.js +0 -69
- package/dist/cjs/fr-ch-596ab83d.js +0 -67
- package/dist/cjs/he-bce2e0f6.js +0 -106
- package/dist/cjs/helpers-d91ad1d6.js +0 -864
- package/dist/cjs/hi-22d77acf.js +0 -66
- package/dist/cjs/hr-9a468bd9.js +0 -81
- package/dist/cjs/html2canvas-06585c20.js +0 -7852
- package/dist/cjs/hu-9722b179.js +0 -89
- package/dist/cjs/id-426a7d98.js +0 -67
- package/dist/cjs/index-25afe4b8.js +0 -1972
- package/dist/cjs/index-62dddc18.js +0 -3038
- package/dist/cjs/index-bf47f22d.js +0 -41718
- package/dist/cjs/index-e6154163.js +0 -201
- package/dist/cjs/index.es-bf2a62d8.js +0 -11678
- package/dist/cjs/info-card.cjs.entry.js +0 -367
- package/dist/cjs/instant-apps-ckeditor-wrapper.cjs.entry.js +0 -125
- package/dist/cjs/instant-apps-filter-list.cjs.entry.js +0 -1067
- package/dist/cjs/instant-apps-interactive-legend-count.cjs.entry.js +0 -104
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element.cjs.entry.js +0 -56
- package/dist/cjs/instant-apps-interactive-legend-layer-element-caption.cjs.entry.js +0 -55
- package/dist/cjs/instant-apps-interactive-legend-layer-element.cjs.entry.js +0 -57
- package/dist/cjs/instant-apps-interactive-legend-legend-element-caption.cjs.entry.js +0 -104
- package/dist/cjs/instant-apps-interactive-legend-legend-element.cjs.entry.js +0 -65
- package/dist/cjs/instant-apps-interactive-legend-relationship.cjs.entry.js +0 -552
- package/dist/cjs/instant-apps-language-translator-item.cjs.entry.js +0 -384
- package/dist/cjs/instant-apps-language-translator-search.cjs.entry.js +0 -105
- package/dist/cjs/instant-apps-measurement-tool.cjs.entry.js +0 -139
- package/dist/cjs/instant-apps-social-share.cjs.entry.js +0 -520
- package/dist/cjs/interactive-f8825052.js +0 -154
- package/dist/cjs/it-b310ed48.js +0 -67
- package/dist/cjs/it-ch-804be2a9.js +0 -67
- package/dist/cjs/ja-fd61ab26.js +0 -73
- package/dist/cjs/json-editor.cjs.entry.js +0 -406
- package/dist/cjs/key-620e0822.js +0 -47
- package/dist/cjs/ko-a799f42d.js +0 -73
- package/dist/cjs/label-f71c85c6.js +0 -186
- package/dist/cjs/languageSwitcher-8209c73c.js +0 -60
- package/dist/cjs/languageUtil-a615ee13.js +0 -90
- package/dist/cjs/layer-list.cjs.entry.js +0 -197
- package/dist/cjs/layer-table.cjs.entry.js +0 -1562
- package/dist/cjs/loadModules-36d49819.js +0 -23
- package/dist/cjs/loadModules-e03cf23a.js +0 -30
- package/dist/cjs/loadable-68a22656.js +0 -97
- package/dist/cjs/locale-708985a1.js +0 -91
- package/dist/cjs/locale-898d043a.js +0 -152
- package/dist/cjs/locale-cfa79214.js +0 -585
- package/dist/cjs/lodash-7587da9f.js +0 -18030
- package/dist/cjs/lt-0508a01d.js +0 -98
- package/dist/cjs/lv-d8f83e7a.js +0 -67
- package/dist/cjs/map-card.cjs.entry.js +0 -231
- package/dist/cjs/map-draw-tools.cjs.entry.js +0 -358
- package/dist/cjs/map-fullscreen.cjs.entry.js +0 -116
- package/dist/cjs/map-layer-picker.cjs.entry.js +0 -346
- package/dist/cjs/map-legend.cjs.entry.js +0 -109
- package/dist/cjs/map-picker.cjs.entry.js +0 -174
- package/dist/cjs/map-search.cjs.entry.js +0 -184
- package/dist/cjs/map-select-tools.cjs.entry.js +0 -798
- package/dist/cjs/map-tools.cjs.entry.js +0 -375
- package/dist/cjs/mapViewUtils-83bc7d78.js +0 -295
- package/dist/cjs/mk-475a7a99.js +0 -67
- package/dist/cjs/mode-a52277fc.js +0 -27
- package/dist/cjs/nb-92a9acc8.js +0 -68
- package/dist/cjs/nl-ea0f033c.js +0 -68
- package/dist/cjs/observers-682136dc.js +0 -58
- package/dist/cjs/openCloseComponent-2fdcb310.js +0 -140
- package/dist/cjs/parser-08a36734.js +0 -1648
- package/dist/cjs/pdf-download.cjs.entry.js +0 -359
- package/dist/cjs/pl-05a4b5a1.js +0 -115
- package/dist/cjs/popupUtils-e6a2131f.js +0 -111
- package/dist/cjs/pt-8fe24b18.js +0 -68
- package/dist/cjs/pt-br-eba3aab9.js +0 -66
- package/dist/cjs/publicNotificationStore-ce215887.js +0 -47
- package/dist/cjs/purify-d00d4598.js +0 -1719
- package/dist/cjs/queryUtils-ad516c97.js +0 -283
- package/dist/cjs/refine-selection.cjs.entry.js +0 -412
- package/dist/cjs/resources-09a78a36.js +0 -30
- package/dist/cjs/resources-13ca5745.js +0 -116
- package/dist/cjs/resources-3855f743.js +0 -53
- package/dist/cjs/resources-921affcb.js +0 -49
- package/dist/cjs/resources-c241718f.js +0 -29
- package/dist/cjs/ro-c92cb77e.js +0 -67
- package/dist/cjs/ru-273dc1dc.js +0 -127
- package/dist/cjs/shadow-css-64ff22a6.js +0 -363
- package/dist/cjs/shared-list-render-a3a4e5db.js +0 -370
- package/dist/cjs/sk-f0fb5cd7.js +0 -149
- package/dist/cjs/sl-3bc46f93.js +0 -169
- package/dist/cjs/solution-contents.cjs.entry.js +0 -84
- package/dist/cjs/solution-item-details.cjs.entry.js +0 -199
- package/dist/cjs/solution-item-sharing.cjs.entry.js +0 -139
- package/dist/cjs/solution-item.cjs.entry.js +0 -106
- package/dist/cjs/solution-organization-variables.cjs.entry.js +0 -95
- package/dist/cjs/solution-resource-item.cjs.entry.js +0 -284
- package/dist/cjs/solution-spatial-ref.cjs.entry.js +0 -168
- package/dist/cjs/solution-store-cef42401.js +0 -587
- package/dist/cjs/solution-template-data.cjs.entry.js +0 -119
- package/dist/cjs/solution-variables.cjs.entry.js +0 -107
- package/dist/cjs/sortableComponent-b1be22c5.js +0 -3444
- package/dist/cjs/sr-ae040dc3.js +0 -102
- package/dist/cjs/store-3ba88099.js +0 -91
- package/dist/cjs/sv-769838ef.js +0 -72
- package/dist/cjs/t9n-0f4446d0.js +0 -103
- package/dist/cjs/templates-19d0e370.js +0 -442
- package/dist/cjs/th-9b569ee1.js +0 -66
- package/dist/cjs/time-5eec06fe.js +0 -289
- package/dist/cjs/tr-9cc6c813.js +0 -67
- package/dist/cjs/uk-c549303a.js +0 -105
- package/dist/cjs/utils-05355ba0.js +0 -64
- package/dist/cjs/utils-3128e748.js +0 -226
- package/dist/cjs/utils-4ad2f4f2.js +0 -68
- package/dist/cjs/utils-589c9301.js +0 -142
- package/dist/cjs/utils-70b0604a.js +0 -52
- package/dist/cjs/vi-e4806300.js +0 -71
- package/dist/cjs/zh-cn-e13c7902.js +0 -95
- package/dist/cjs/zh-hk-2d4440e3.js +0 -72
- package/dist/cjs/zh-tw-d9c5da28.js +0 -93
- package/dist/components/InitiativeUiSchemaEdit.js +0 -26
- package/dist/components/ProjectUiSchemaCreate.js +0 -122
- package/dist/components/ProjectUiSchemaEdit.js +0 -176
- package/dist/components/index7.js +0 -71
- package/dist/components/lodash.js +0 -18025
- package/dist/components/parser.js +0 -1646
- package/dist/esm/ExpandToggle-cb895a2c.js +0 -110
- package/dist/esm/FloatingArrow-636ce2ee.js +0 -48
- package/dist/esm/Heading-baf4a991.js +0 -22
- package/dist/esm/InitiativeUiSchemaEdit-8ddacfe8.js +0 -26
- package/dist/esm/ProjectUiSchemaCreate-9fb110ea.js +0 -124
- package/dist/esm/ProjectUiSchemaEdit-fbfdf6e4.js +0 -176
- package/dist/esm/Validation-b3331c79.js +0 -18
- package/dist/esm/_commonjsHelpers-9cd17aec.js +0 -39
- package/dist/esm/app-globals-97f5814f.js +0 -67
- package/dist/esm/ar-6236d364.js +0 -103
- package/dist/esm/basemap-gallery.entry.js +0 -117
- package/dist/esm/bg-498492ff.js +0 -81
- package/dist/esm/browser-920df963.js +0 -26
- package/dist/esm/bs-60412b06.js +0 -50
- package/dist/esm/buffer-tools.entry.js +0 -253
- package/dist/esm/ca-7844b785.js +0 -70
- package/dist/esm/calcite-action-menu.entry.js +0 -288
- package/dist/esm/calcite-action-pad.entry.js +0 -165
- package/dist/esm/calcite-action.entry.js +0 -187
- package/dist/esm/calcite-alert.entry.js +0 -318
- package/dist/esm/calcite-avatar.entry.js +0 -146
- package/dist/esm/calcite-block.entry.js +0 -210
- package/dist/esm/calcite-chip.entry.js +0 -278
- package/dist/esm/calcite-color-picker-hex-input.entry.js +0 -270
- package/dist/esm/calcite-color-picker-swatch.entry.js +0 -95
- package/dist/esm/calcite-combobox-item.entry.js +0 -141
- package/dist/esm/calcite-combobox.entry.js +0 -1137
- package/dist/esm/calcite-date-picker-day.entry.js +0 -108
- package/dist/esm/calcite-date-picker-month-header.entry.js +0 -203
- package/dist/esm/calcite-date-picker-month.entry.js +0 -355
- package/dist/esm/calcite-date-picker.entry.js +0 -455
- package/dist/esm/calcite-dropdown-group.entry.js +0 -81
- package/dist/esm/calcite-dropdown-item.entry.js +0 -184
- package/dist/esm/calcite-dropdown.entry.js +0 -422
- package/dist/esm/calcite-filter.entry.js +0 -178
- package/dist/esm/calcite-flow-item.entry.js +0 -194
- package/dist/esm/calcite-flow.entry.js +0 -149
- package/dist/esm/calcite-graph.entry.js +0 -222
- package/dist/esm/calcite-handle.entry.js +0 -202
- package/dist/esm/calcite-input-date-picker.entry.js +0 -753
- package/dist/esm/calcite-input-message.entry.js +0 -65
- package/dist/esm/calcite-input-time-picker-c336a83c.js +0 -1864
- package/dist/esm/calcite-input.entry.js +0 -705
- package/dist/esm/calcite-list-item.entry.js +0 -452
- package/dist/esm/calcite-list.entry.js +0 -556
- package/dist/esm/calcite-loader.entry.js +0 -76
- package/dist/esm/calcite-navigation-user.entry.js +0 -68
- package/dist/esm/calcite-option.entry.js +0 -84
- package/dist/esm/calcite-panel.entry.js +0 -266
- package/dist/esm/calcite-popover.entry.js +0 -415
- package/dist/esm/calcite-progress.entry.js +0 -37
- package/dist/esm/calcite-scrim.entry.js +0 -121
- package/dist/esm/calcite-segmented-control-item.entry.js +0 -66
- package/dist/esm/calcite-segmented-control.entry.js +0 -254
- package/dist/esm/calcite-select.entry.js +0 -244
- package/dist/esm/calcite-shell-panel.entry.js +0 -410
- package/dist/esm/calcite-shell.entry.js +0 -170
- package/dist/esm/calcite-slider.entry.js +0 -870
- package/dist/esm/calcite-stack.entry.js +0 -70
- package/dist/esm/calcite-tab-nav.entry.js +0 -466
- package/dist/esm/calcite-tab-title.entry.js +0 -287
- package/dist/esm/calcite-tab.entry.js +0 -108
- package/dist/esm/calcite-table-cell.entry.js +0 -162
- package/dist/esm/calcite-table-header.entry.js +0 -179
- package/dist/esm/calcite-tabs.entry.js +0 -174
- package/dist/esm/calcite-tree-item.entry.js +0 -294
- package/dist/esm/calcite-tree.entry.js +0 -311
- package/dist/esm/calcite-value-list-item.entry.js +0 -153
- package/dist/esm/calcite-value-list.entry.js +0 -321
- package/dist/esm/card-manager.entry.js +0 -103
- package/dist/esm/common-17d5568a.js +0 -295
- package/dist/esm/conditionalSlot-937057aa.js +0 -51
- package/dist/esm/core-a0d3cc0e.js +0 -324
- package/dist/esm/create-feature.entry.js +0 -407
- package/dist/esm/create-related-feature.entry.js +0 -284
- package/dist/esm/cs-be3aa1ae.js +0 -146
- package/dist/esm/da-5a58f3f2.js +0 -65
- package/dist/esm/date-a63e8e28.js +0 -245
- package/dist/esm/de-at-780d22a4.js +0 -89
- package/dist/esm/de-ch-5cf4813a.js +0 -89
- package/dist/esm/de-d041f0a0.js +0 -90
- package/dist/esm/delete-button.entry.js +0 -146
- package/dist/esm/dom-1f06a111.js +0 -1141
- package/dist/esm/downloadUtils-238038d2.js +0 -4240
- package/dist/esm/edit-card.entry.js +0 -224
- package/dist/esm/el-7c6af41a.js +0 -65
- package/dist/esm/en-au-dd7a3ee4.js +0 -65
- package/dist/esm/en-ca-4b21b3cd.js +0 -64
- package/dist/esm/en-gb-6ab000e3.js +0 -68
- package/dist/esm/es-1fd84773.js +0 -65
- package/dist/esm/es-mx-b82367c3.js +0 -64
- package/dist/esm/esri-loader-5bf2f164.js +0 -308
- package/dist/esm/et-08a0e4a8.js +0 -91
- package/dist/esm/feature-details.entry.js +0 -381
- package/dist/esm/fi-fe995ecb.js +0 -114
- package/dist/esm/filter-e3e2b01f.js +0 -46
- package/dist/esm/floating-ui-112e26aa.js +0 -2369
- package/dist/esm/floor-filter.entry.js +0 -149
- package/dist/esm/focusTrapComponent-fb975f9c.js +0 -1023
- package/dist/esm/form-cd789357.js +0 -372
- package/dist/esm/fr-aed06af0.js +0 -67
- package/dist/esm/fr-ch-a9d10a0f.js +0 -65
- package/dist/esm/he-a0a1731e.js +0 -104
- package/dist/esm/helpers-457bbf66.js +0 -840
- package/dist/esm/hi-ae48041a.js +0 -64
- package/dist/esm/hr-2ae1f998.js +0 -79
- package/dist/esm/html2canvas-88d6eded.js +0 -7850
- package/dist/esm/hu-2615f261.js +0 -87
- package/dist/esm/id-598e1355.js +0 -65
- package/dist/esm/index-0eecd45f.js +0 -2998
- package/dist/esm/index-8b8db9ba.js +0 -1970
- package/dist/esm/index-a879e1d6.js +0 -41699
- package/dist/esm/index-b1418e2a.js +0 -199
- package/dist/esm/index.es-e2310dbf.js +0 -11591
- package/dist/esm/info-card.entry.js +0 -363
- package/dist/esm/instant-apps-ckeditor-wrapper.entry.js +0 -121
- package/dist/esm/instant-apps-filter-list.entry.js +0 -1063
- package/dist/esm/instant-apps-interactive-legend-count.entry.js +0 -100
- package/dist/esm/instant-apps-interactive-legend-group-legend-element.entry.js +0 -52
- package/dist/esm/instant-apps-interactive-legend-layer-element-caption.entry.js +0 -51
- package/dist/esm/instant-apps-interactive-legend-layer-element.entry.js +0 -53
- package/dist/esm/instant-apps-interactive-legend-legend-element-caption.entry.js +0 -100
- package/dist/esm/instant-apps-interactive-legend-legend-element.entry.js +0 -61
- package/dist/esm/instant-apps-interactive-legend-relationship.entry.js +0 -548
- package/dist/esm/instant-apps-language-translator-item.entry.js +0 -380
- package/dist/esm/instant-apps-language-translator-search.entry.js +0 -101
- package/dist/esm/instant-apps-measurement-tool.entry.js +0 -135
- package/dist/esm/instant-apps-social-share.entry.js +0 -516
- package/dist/esm/interactive-179483f5.js +0 -149
- package/dist/esm/it-56a44209.js +0 -65
- package/dist/esm/it-ch-8fd9abf4.js +0 -65
- package/dist/esm/ja-66007f4d.js +0 -71
- package/dist/esm/json-editor.entry.js +0 -402
- package/dist/esm/key-15222297.js +0 -44
- package/dist/esm/ko-2e3b9aa8.js +0 -71
- package/dist/esm/label-c34ec0cf.js +0 -179
- package/dist/esm/languageSwitcher-35db9d61.js +0 -57
- package/dist/esm/languageSwitcher-b665499d.js +0 -57
- package/dist/esm/languageUtil-83ed2742.js +0 -87
- package/dist/esm/layer-list.entry.js +0 -193
- package/dist/esm/layer-table.entry.js +0 -1558
- package/dist/esm/loadModules-18662c29.js +0 -28
- package/dist/esm/loadModules-4d6cf31f.js +0 -21
- package/dist/esm/loadModules-9c062d08.js +0 -21
- package/dist/esm/loadable-5f2ac40f.js +0 -92
- package/dist/esm/locale-1b4d548e.js +0 -572
- package/dist/esm/locale-448ea937.js +0 -148
- package/dist/esm/locale-f1dd2532.js +0 -86
- package/dist/esm/lodash-98e4b7d0.js +0 -18025
- package/dist/esm/lt-2a6a8e94.js +0 -96
- package/dist/esm/lv-8b3c01bb.js +0 -65
- package/dist/esm/map-card.entry.js +0 -227
- package/dist/esm/map-draw-tools.entry.js +0 -354
- package/dist/esm/map-fullscreen.entry.js +0 -112
- package/dist/esm/map-layer-picker.entry.js +0 -342
- package/dist/esm/map-legend.entry.js +0 -105
- package/dist/esm/map-picker.entry.js +0 -170
- package/dist/esm/map-search.entry.js +0 -180
- package/dist/esm/map-select-tools.entry.js +0 -794
- package/dist/esm/map-tools.entry.js +0 -371
- package/dist/esm/mapViewUtils-d4946a31.js +0 -284
- package/dist/esm/mk-428c21bd.js +0 -65
- package/dist/esm/mode-e7b9fabb.js +0 -25
- package/dist/esm/nb-67929ffe.js +0 -66
- package/dist/esm/nl-954b9062.js +0 -66
- package/dist/esm/observers-81ed4977.js +0 -56
- package/dist/esm/openCloseComponent-739f40b7.js +0 -138
- package/dist/esm/parser-a682fcdf.js +0 -1646
- package/dist/esm/pdf-download.entry.js +0 -355
- package/dist/esm/pl-eba736c7.js +0 -113
- package/dist/esm/popupUtils-c60ca656.js +0 -109
- package/dist/esm/pt-br-ed6f0302.js +0 -64
- package/dist/esm/pt-e6518f49.js +0 -66
- package/dist/esm/publicNotificationStore-59732134.js +0 -45
- package/dist/esm/purify-ed095e80.js +0 -1717
- package/dist/esm/queryUtils-2ee0f383.js +0 -274
- package/dist/esm/refine-selection.entry.js +0 -408
- package/dist/esm/resources-092fef68.js +0 -106
- package/dist/esm/resources-66978311.js +0 -26
- package/dist/esm/resources-be0262db.js +0 -45
- package/dist/esm/resources-be5a6557.js +0 -26
- package/dist/esm/resources-ec5198da.js +0 -49
- package/dist/esm/ro-cb3c8995.js +0 -65
- package/dist/esm/ru-dd440634.js +0 -125
- package/dist/esm/shadow-css-15628d22.js +0 -361
- package/dist/esm/shared-list-render-a787615a.js +0 -348
- package/dist/esm/sk-a8db2217.js +0 -147
- package/dist/esm/sl-f798a76e.js +0 -167
- package/dist/esm/solution-contents.entry.js +0 -80
- package/dist/esm/solution-item-details.entry.js +0 -195
- package/dist/esm/solution-item-sharing.entry.js +0 -135
- package/dist/esm/solution-item.entry.js +0 -102
- package/dist/esm/solution-organization-variables.entry.js +0 -91
- package/dist/esm/solution-resource-item.entry.js +0 -280
- package/dist/esm/solution-spatial-ref.entry.js +0 -164
- package/dist/esm/solution-store-5a6cf181.js +0 -585
- package/dist/esm/solution-template-data.entry.js +0 -115
- package/dist/esm/solution-variables.entry.js +0 -103
- package/dist/esm/sortableComponent-ee74aef6.js +0 -3440
- package/dist/esm/sr-342a663a.js +0 -100
- package/dist/esm/store-b2b2565a.js +0 -87
- package/dist/esm/sv-84670dbd.js +0 -70
- package/dist/esm/t9n-2df2d559.js +0 -98
- package/dist/esm/templates-335c6b6f.js +0 -436
- package/dist/esm/th-a9c8533d.js +0 -64
- package/dist/esm/time-d753f161.js +0 -274
- package/dist/esm/tr-c2cc2873.js +0 -65
- package/dist/esm/uk-906a1eb0.js +0 -103
- package/dist/esm/utils-2c8108af.js +0 -133
- package/dist/esm/utils-580e77c3.js +0 -208
- package/dist/esm/utils-9aa96070.js +0 -61
- package/dist/esm/utils-ab48a0d6.js +0 -47
- package/dist/esm/utils-f96adae4.js +0 -57
- package/dist/esm/vi-7b43fafd.js +0 -69
- package/dist/esm/zh-cn-c19f2858.js +0 -93
- package/dist/esm/zh-hk-f212412d.js +0 -70
- package/dist/esm/zh-tw-be3a4302.js +0 -91
- package/dist/solutions-components/ExpandToggle-cb895a2c.js +0 -110
- package/dist/solutions-components/FloatingArrow-636ce2ee.js +0 -48
- package/dist/solutions-components/Heading-baf4a991.js +0 -22
- package/dist/solutions-components/InitiativeUiSchemaEdit-8ddacfe8.js +0 -26
- package/dist/solutions-components/ProjectUiSchemaCreate-9fb110ea.js +0 -124
- package/dist/solutions-components/ProjectUiSchemaEdit-fbfdf6e4.js +0 -176
- package/dist/solutions-components/Validation-b3331c79.js +0 -18
- package/dist/solutions-components/_commonjsHelpers-9cd17aec.js +0 -39
- package/dist/solutions-components/app-globals-97f5814f.js +0 -67
- package/dist/solutions-components/ar-6236d364.js +0 -103
- package/dist/solutions-components/arcgis-login.entry.js +0 -56
- package/dist/solutions-components/array-2604a55d.js +0 -15
- package/dist/solutions-components/basemap-gallery.entry.js +0 -117
- package/dist/solutions-components/bg-498492ff.js +0 -81
- package/dist/solutions-components/breakpoints-3afa0fd9.js +0 -15
- package/dist/solutions-components/browser-920df963.js +0 -26
- package/dist/solutions-components/bs-60412b06.js +0 -50
- package/dist/solutions-components/buffer-tools.entry.js +0 -253
- package/dist/solutions-components/ca-7844b785.js +0 -70
- package/dist/solutions-components/calcite-accordion-item.entry.js +0 -176
- package/dist/solutions-components/calcite-accordion.entry.js +0 -81
- package/dist/solutions-components/calcite-action-bar.entry.js +0 -252
- package/dist/solutions-components/calcite-action-group.entry.js +0 -112
- package/dist/solutions-components/calcite-action-menu.entry.js +0 -288
- package/dist/solutions-components/calcite-action-pad.entry.js +0 -165
- package/dist/solutions-components/calcite-action.entry.js +0 -187
- package/dist/solutions-components/calcite-alert.entry.js +0 -318
- package/dist/solutions-components/calcite-avatar.entry.js +0 -146
- package/dist/solutions-components/calcite-block-section.entry.js +0 -162
- package/dist/solutions-components/calcite-block.entry.js +0 -210
- package/dist/solutions-components/calcite-button.entry.js +0 -230
- package/dist/solutions-components/calcite-card-group.entry.js +0 -164
- package/dist/solutions-components/calcite-card.entry.js +0 -227
- package/dist/solutions-components/calcite-carousel-item.entry.js +0 -41
- package/dist/solutions-components/calcite-carousel.entry.js +0 -462
- package/dist/solutions-components/calcite-checkbox.entry.js +0 -147
- package/dist/solutions-components/calcite-chip-group.entry.js +0 -197
- package/dist/solutions-components/calcite-chip.entry.js +0 -278
- package/dist/solutions-components/calcite-color-picker-hex-input.entry.js +0 -270
- package/dist/solutions-components/calcite-color-picker-swatch.entry.js +0 -95
- package/dist/solutions-components/calcite-color-picker.entry.js +0 -923
- package/dist/solutions-components/calcite-combobox-item-group.entry.js +0 -56
- package/dist/solutions-components/calcite-combobox-item.entry.js +0 -141
- package/dist/solutions-components/calcite-combobox.entry.js +0 -1137
- package/dist/solutions-components/calcite-date-picker-day.entry.js +0 -108
- package/dist/solutions-components/calcite-date-picker-month-header.entry.js +0 -203
- package/dist/solutions-components/calcite-date-picker-month.entry.js +0 -355
- package/dist/solutions-components/calcite-date-picker.entry.js +0 -455
- package/dist/solutions-components/calcite-dropdown-group.entry.js +0 -81
- package/dist/solutions-components/calcite-dropdown-item.entry.js +0 -184
- package/dist/solutions-components/calcite-dropdown.entry.js +0 -422
- package/dist/solutions-components/calcite-fab.entry.js +0 -90
- package/dist/solutions-components/calcite-filter.entry.js +0 -178
- package/dist/solutions-components/calcite-flow-item.entry.js +0 -194
- package/dist/solutions-components/calcite-flow.entry.js +0 -149
- package/dist/solutions-components/calcite-graph.entry.js +0 -222
- package/dist/solutions-components/calcite-handle.entry.js +0 -202
- package/dist/solutions-components/calcite-icon.entry.js +0 -179
- package/dist/solutions-components/calcite-inline-editable.entry.js +0 -253
- package/dist/solutions-components/calcite-input-date-picker.entry.js +0 -753
- package/dist/solutions-components/calcite-input-message.entry.js +0 -65
- package/dist/solutions-components/calcite-input-number.entry.js +0 -632
- package/dist/solutions-components/calcite-input-text.entry.js +0 -369
- package/dist/solutions-components/calcite-input-time-picker-c336a83c.js +0 -1864
- package/dist/solutions-components/calcite-input-time-picker.entry.js +0 -25
- package/dist/solutions-components/calcite-input-time-zone.entry.js +0 -373
- package/dist/solutions-components/calcite-input.entry.js +0 -705
- package/dist/solutions-components/calcite-label.entry.js +0 -67
- package/dist/solutions-components/calcite-link.entry.js +0 -108
- package/dist/solutions-components/calcite-list-item-group.entry.js +0 -66
- package/dist/solutions-components/calcite-list-item.entry.js +0 -452
- package/dist/solutions-components/calcite-list.entry.js +0 -556
- package/dist/solutions-components/calcite-loader.entry.js +0 -76
- package/dist/solutions-components/calcite-menu-item.entry.js +0 -284
- package/dist/solutions-components/calcite-menu.entry.js +0 -180
- package/dist/solutions-components/calcite-meter.entry.js +0 -332
- package/dist/solutions-components/calcite-modal.entry.js +0 -394
- package/dist/solutions-components/calcite-navigation-logo.entry.js +0 -92
- package/dist/solutions-components/calcite-navigation-user.entry.js +0 -68
- package/dist/solutions-components/calcite-navigation.entry.js +0 -166
- package/dist/solutions-components/calcite-notice.entry.js +0 -163
- package/dist/solutions-components/calcite-option-group.entry.js +0 -35
- package/dist/solutions-components/calcite-option.entry.js +0 -84
- package/dist/solutions-components/calcite-pagination.entry.js +0 -580
- package/dist/solutions-components/calcite-panel.entry.js +0 -266
- package/dist/solutions-components/calcite-pick-list-group.entry.js +0 -57
- package/dist/solutions-components/calcite-pick-list-item.entry.js +0 -193
- package/dist/solutions-components/calcite-pick-list.entry.js +0 -142
- package/dist/solutions-components/calcite-popover.entry.js +0 -415
- package/dist/solutions-components/calcite-progress.entry.js +0 -37
- package/dist/solutions-components/calcite-radio-button-group.entry.js +0 -141
- package/dist/solutions-components/calcite-radio-button.entry.js +0 -318
- package/dist/solutions-components/calcite-rating.entry.js +0 -261
- package/dist/solutions-components/calcite-scrim.entry.js +0 -121
- package/dist/solutions-components/calcite-segmented-control-item.entry.js +0 -66
- package/dist/solutions-components/calcite-segmented-control.entry.js +0 -254
- package/dist/solutions-components/calcite-select.entry.js +0 -244
- package/dist/solutions-components/calcite-sheet.entry.js +0 -223
- package/dist/solutions-components/calcite-shell-center-row.entry.js +0 -66
- package/dist/solutions-components/calcite-shell-panel.entry.js +0 -410
- package/dist/solutions-components/calcite-shell.entry.js +0 -170
- package/dist/solutions-components/calcite-slider.entry.js +0 -870
- package/dist/solutions-components/calcite-sortable-list.entry.js +0 -166
- package/dist/solutions-components/calcite-split-button.entry.js +0 -112
- package/dist/solutions-components/calcite-stack.entry.js +0 -70
- package/dist/solutions-components/calcite-stepper-item.entry.js +0 -237
- package/dist/solutions-components/calcite-stepper.entry.js +0 -336
- package/dist/solutions-components/calcite-switch.entry.js +0 -113
- package/dist/solutions-components/calcite-tab-nav.entry.js +0 -466
- package/dist/solutions-components/calcite-tab-title.entry.js +0 -287
- package/dist/solutions-components/calcite-tab.entry.js +0 -108
- package/dist/solutions-components/calcite-table-cell.entry.js +0 -162
- package/dist/solutions-components/calcite-table-header.entry.js +0 -179
- package/dist/solutions-components/calcite-table-row.entry.js +0 -259
- package/dist/solutions-components/calcite-table.entry.js +0 -323
- package/dist/solutions-components/calcite-tabs.entry.js +0 -174
- package/dist/solutions-components/calcite-text-area.entry.js +0 -302
- package/dist/solutions-components/calcite-tile-group.entry.js +0 -170
- package/dist/solutions-components/calcite-tile-select-group.entry.js +0 -39
- package/dist/solutions-components/calcite-tile-select.entry.js +0 -225
- package/dist/solutions-components/calcite-tile.entry.js +0 -197
- package/dist/solutions-components/calcite-time-picker.entry.js +0 -839
- package/dist/solutions-components/calcite-tip-group.entry.js +0 -21
- package/dist/solutions-components/calcite-tip-manager.entry.js +0 -227
- package/dist/solutions-components/calcite-tip.entry.js +0 -126
- package/dist/solutions-components/calcite-tooltip.entry.js +0 -431
- package/dist/solutions-components/calcite-tree-item.entry.js +0 -294
- package/dist/solutions-components/calcite-tree.entry.js +0 -311
- package/dist/solutions-components/calcite-value-list-item.entry.js +0 -153
- package/dist/solutions-components/calcite-value-list.entry.js +0 -321
- package/dist/solutions-components/card-manager.entry.js +0 -103
- package/dist/solutions-components/common-17d5568a.js +0 -295
- package/dist/solutions-components/component-960ddabf.js +0 -30
- package/dist/solutions-components/conditionalSlot-937057aa.js +0 -51
- package/dist/solutions-components/consent-manager.entry.js +0 -1099
- package/dist/solutions-components/core-a0d3cc0e.js +0 -324
- package/dist/solutions-components/create-feature.entry.js +0 -407
- package/dist/solutions-components/create-related-feature.entry.js +0 -284
- package/dist/solutions-components/crowdsource-manager.entry.js +0 -539
- package/dist/solutions-components/crowdsource-reporter.entry.js +0 -913
- package/dist/solutions-components/cs-be3aa1ae.js +0 -146
- package/dist/solutions-components/da-5a58f3f2.js +0 -65
- package/dist/solutions-components/date-a63e8e28.js +0 -245
- package/dist/solutions-components/de-at-780d22a4.js +0 -89
- package/dist/solutions-components/de-ch-5cf4813a.js +0 -89
- package/dist/solutions-components/de-d041f0a0.js +0 -90
- package/dist/solutions-components/deduct-calculator.entry.js +0 -101
- package/dist/solutions-components/delete-button.entry.js +0 -146
- package/dist/solutions-components/dom-1f06a111.js +0 -1141
- package/dist/solutions-components/downloadUtils-238038d2.js +0 -4240
- package/dist/solutions-components/edit-card.entry.js +0 -224
- package/dist/solutions-components/el-7c6af41a.js +0 -65
- package/dist/solutions-components/en-au-dd7a3ee4.js +0 -65
- package/dist/solutions-components/en-ca-4b21b3cd.js +0 -64
- package/dist/solutions-components/en-gb-6ab000e3.js +0 -68
- package/dist/solutions-components/es-1fd84773.js +0 -65
- package/dist/solutions-components/es-mx-b82367c3.js +0 -64
- package/dist/solutions-components/esri-loader-5bf2f164.js +0 -308
- package/dist/solutions-components/et-08a0e4a8.js +0 -91
- package/dist/solutions-components/feature-comments.entry.js +0 -56
- package/dist/solutions-components/feature-details.entry.js +0 -381
- package/dist/solutions-components/feature-form-flow-item.entry.js +0 -56
- package/dist/solutions-components/feature-list.entry.js +0 -301
- package/dist/solutions-components/features-flow-item.entry.js +0 -56
- package/dist/solutions-components/fi-fe995ecb.js +0 -114
- package/dist/solutions-components/filter-e3e2b01f.js +0 -46
- package/dist/solutions-components/floating-ui-112e26aa.js +0 -2369
- package/dist/solutions-components/floor-filter.entry.js +0 -149
- package/dist/solutions-components/focusTrapComponent-fb975f9c.js +0 -1023
- package/dist/solutions-components/form-cd789357.js +0 -372
- package/dist/solutions-components/fr-aed06af0.js +0 -67
- package/dist/solutions-components/fr-ch-a9d10a0f.js +0 -65
- package/dist/solutions-components/guid-f05d01d5.js +0 -24
- package/dist/solutions-components/he-a0a1731e.js +0 -104
- package/dist/solutions-components/helpers-457bbf66.js +0 -840
- package/dist/solutions-components/hi-ae48041a.js +0 -64
- package/dist/solutions-components/hr-2ae1f998.js +0 -79
- package/dist/solutions-components/html2canvas-88d6eded.js +0 -7850
- package/dist/solutions-components/hu-2615f261.js +0 -87
- package/dist/solutions-components/id-598e1355.js +0 -65
- package/dist/solutions-components/index-0eecd45f.js +0 -2998
- package/dist/solutions-components/index-5110a27a.js +0 -71
- package/dist/solutions-components/index-8b8db9ba.js +0 -1970
- package/dist/solutions-components/index-a1e91462.js +0 -2105
- package/dist/solutions-components/index-a879e1d6.js +0 -41699
- package/dist/solutions-components/index-b1418e2a.js +0 -199
- package/dist/solutions-components/index-d8ff08ed.js +0 -204
- package/dist/solutions-components/index.es-e2310dbf.js +0 -11591
- package/dist/solutions-components/info-card.entry.js +0 -363
- package/dist/solutions-components/input-96cf61a2.js +0 -58
- package/dist/solutions-components/instant-apps-ckeditor-wrapper.entry.js +0 -121
- package/dist/solutions-components/instant-apps-control-panel.entry.js +0 -92
- package/dist/solutions-components/instant-apps-create.entry.js +0 -264
- package/dist/solutions-components/instant-apps-export-views.entry.js +0 -722
- package/dist/solutions-components/instant-apps-export.entry.js +0 -903
- package/dist/solutions-components/instant-apps-filter-list.entry.js +0 -1063
- package/dist/solutions-components/instant-apps-header.entry.js +0 -125
- package/dist/solutions-components/instant-apps-interactive-legend-classic.entry.js +0 -1616
- package/dist/solutions-components/instant-apps-interactive-legend-count.entry.js +0 -100
- package/dist/solutions-components/instant-apps-interactive-legend-group-legend-element-caption.entry.js +0 -53
- package/dist/solutions-components/instant-apps-interactive-legend-group-legend-element.entry.js +0 -52
- package/dist/solutions-components/instant-apps-interactive-legend-layer-element-caption.entry.js +0 -51
- package/dist/solutions-components/instant-apps-interactive-legend-layer-element.entry.js +0 -53
- package/dist/solutions-components/instant-apps-interactive-legend-legend-element-caption.entry.js +0 -100
- package/dist/solutions-components/instant-apps-interactive-legend-legend-element.entry.js +0 -61
- package/dist/solutions-components/instant-apps-interactive-legend-relationship.entry.js +0 -548
- package/dist/solutions-components/instant-apps-interactive-legend.entry.js +0 -112
- package/dist/solutions-components/instant-apps-keyboard-shortcuts.entry.js +0 -139
- package/dist/solutions-components/instant-apps-landing-page.entry.js +0 -150
- package/dist/solutions-components/instant-apps-language-switcher.entry.js +0 -173
- package/dist/solutions-components/instant-apps-language-translator-item.entry.js +0 -380
- package/dist/solutions-components/instant-apps-language-translator-search.entry.js +0 -101
- package/dist/solutions-components/instant-apps-language-translator.entry.js +0 -286
- package/dist/solutions-components/instant-apps-measurement-tool.entry.js +0 -135
- package/dist/solutions-components/instant-apps-measurement.entry.js +0 -66
- package/dist/solutions-components/instant-apps-popover.entry.js +0 -74
- package/dist/solutions-components/instant-apps-popovers.entry.js +0 -88
- package/dist/solutions-components/instant-apps-scoreboard.entry.js +0 -463
- package/dist/solutions-components/instant-apps-sign-in.entry.js +0 -164
- package/dist/solutions-components/instant-apps-social-share.entry.js +0 -516
- package/dist/solutions-components/instant-apps-splash.entry.js +0 -144
- package/dist/solutions-components/interactive-179483f5.js +0 -149
- package/dist/solutions-components/interfaces-586e863c.js +0 -80
- package/dist/solutions-components/it-56a44209.js +0 -65
- package/dist/solutions-components/it-ch-8fd9abf4.js +0 -65
- package/dist/solutions-components/ja-66007f4d.js +0 -71
- package/dist/solutions-components/json-editor.entry.js +0 -402
- package/dist/solutions-components/key-15222297.js +0 -44
- package/dist/solutions-components/ko-2e3b9aa8.js +0 -71
- package/dist/solutions-components/label-c34ec0cf.js +0 -179
- package/dist/solutions-components/languageUtil-83ed2742.js +0 -87
- package/dist/solutions-components/layer-list.entry.js +0 -193
- package/dist/solutions-components/layer-table.entry.js +0 -1558
- package/dist/solutions-components/layout-manager.entry.js +0 -91
- package/dist/solutions-components/list-flow-item.entry.js +0 -56
- package/dist/solutions-components/loadModules-18662c29.js +0 -28
- package/dist/solutions-components/loadable-5f2ac40f.js +0 -92
- package/dist/solutions-components/locale-1b4d548e.js +0 -572
- package/dist/solutions-components/locale-448ea937.js +0 -148
- package/dist/solutions-components/locale-f1dd2532.js +0 -86
- package/dist/solutions-components/location-flow-item.entry.js +0 -56
- package/dist/solutions-components/lodash-98e4b7d0.js +0 -18025
- package/dist/solutions-components/lt-2a6a8e94.js +0 -96
- package/dist/solutions-components/lv-8b3c01bb.js +0 -65
- package/dist/solutions-components/map-card.entry.js +0 -227
- package/dist/solutions-components/map-draw-tools.entry.js +0 -354
- package/dist/solutions-components/map-fullscreen.entry.js +0 -112
- package/dist/solutions-components/map-layer-picker.entry.js +0 -342
- package/dist/solutions-components/map-legend.entry.js +0 -105
- package/dist/solutions-components/map-picker.entry.js +0 -170
- package/dist/solutions-components/map-search.entry.js +0 -180
- package/dist/solutions-components/map-select-tools.entry.js +0 -794
- package/dist/solutions-components/map-tools.entry.js +0 -371
- package/dist/solutions-components/mapViewUtils-d4946a31.js +0 -284
- package/dist/solutions-components/math-81650811.js +0 -54
- package/dist/solutions-components/mk-428c21bd.js +0 -65
- package/dist/solutions-components/mode-e7b9fabb.js +0 -25
- package/dist/solutions-components/nb-67929ffe.js +0 -66
- package/dist/solutions-components/nl-954b9062.js +0 -66
- package/dist/solutions-components/observers-81ed4977.js +0 -56
- package/dist/solutions-components/openCloseComponent-739f40b7.js +0 -138
- package/dist/solutions-components/p-1a12761f.entry.js +0 -6
- package/dist/solutions-components/parser-a682fcdf.js +0 -1646
- package/dist/solutions-components/pci-calculator.entry.js +0 -113
- package/dist/solutions-components/pciUtils-986ddad9.js +0 -844
- package/dist/solutions-components/pdf-download.entry.js +0 -355
- package/dist/solutions-components/pl-eba736c7.js +0 -113
- package/dist/solutions-components/popupUtils-c60ca656.js +0 -109
- package/dist/solutions-components/pt-br-ed6f0302.js +0 -64
- package/dist/solutions-components/pt-e6518f49.js +0 -66
- package/dist/solutions-components/public-notification.entry.js +0 -1005
- package/dist/solutions-components/publicNotificationStore-59732134.js +0 -45
- package/dist/solutions-components/purify-ed095e80.js +0 -1717
- package/dist/solutions-components/queryUtils-2ee0f383.js +0 -274
- package/dist/solutions-components/refine-results-flow-item.entry.js +0 -56
- package/dist/solutions-components/refine-selection.entry.js +0 -408
- package/dist/solutions-components/resources-092fef68.js +0 -106
- package/dist/solutions-components/resources-16800cce.js +0 -24
- package/dist/solutions-components/resources-3587e9a5.js +0 -20
- package/dist/solutions-components/resources-66978311.js +0 -26
- package/dist/solutions-components/resources-7c4efc5e.js +0 -22
- package/dist/solutions-components/resources-7c61fbec.js +0 -62
- package/dist/solutions-components/resources-7d202c09.js +0 -24
- package/dist/solutions-components/resources-ae36eaff.js +0 -19
- package/dist/solutions-components/resources-be0262db.js +0 -45
- package/dist/solutions-components/resources-be5a6557.js +0 -26
- package/dist/solutions-components/resources-dd68a4aa.js +0 -35
- package/dist/solutions-components/resources-ec5198da.js +0 -49
- package/dist/solutions-components/ro-cb3c8995.js +0 -65
- package/dist/solutions-components/ru-dd440634.js +0 -125
- package/dist/solutions-components/shadow-css-15628d22.js +0 -361
- package/dist/solutions-components/share-item.entry.js +0 -56
- package/dist/solutions-components/shared-list-render-a787615a.js +0 -348
- package/dist/solutions-components/sk-a8db2217.js +0 -147
- package/dist/solutions-components/sl-f798a76e.js +0 -167
- package/dist/solutions-components/solution-configuration.entry.js +0 -565
- package/dist/solutions-components/solution-contents.entry.js +0 -80
- package/dist/solutions-components/solution-item-details.entry.js +0 -195
- package/dist/solutions-components/solution-item-icon.entry.js +0 -323
- package/dist/solutions-components/solution-item-sharing.entry.js +0 -135
- package/dist/solutions-components/solution-item.entry.js +0 -102
- package/dist/solutions-components/solution-organization-variables.entry.js +0 -91
- package/dist/solutions-components/solution-resource-item.entry.js +0 -280
- package/dist/solutions-components/solution-spatial-ref.entry.js +0 -164
- package/dist/solutions-components/solution-store-5a6cf181.js +0 -585
- package/dist/solutions-components/solution-template-data.entry.js +0 -115
- package/dist/solutions-components/solution-variables.entry.js +0 -103
- package/dist/solutions-components/sortableComponent-ee74aef6.js +0 -3440
- package/dist/solutions-components/spatial-ref.entry.js +0 -21296
- package/dist/solutions-components/sr-342a663a.js +0 -100
- package/dist/solutions-components/store-b2b2565a.js +0 -87
- package/dist/solutions-components/store-manager.entry.js +0 -75
- package/dist/solutions-components/styles-b3492d9f.js +0 -11
- package/dist/solutions-components/sv-84670dbd.js +0 -70
- package/dist/solutions-components/t9n-2df2d559.js +0 -98
- package/dist/solutions-components/templates-335c6b6f.js +0 -436
- package/dist/solutions-components/th-a9c8533d.js +0 -64
- package/dist/solutions-components/time-d753f161.js +0 -274
- package/dist/solutions-components/tr-c2cc2873.js +0 -65
- package/dist/solutions-components/uk-906a1eb0.js +0 -103
- package/dist/solutions-components/utils-2c8108af.js +0 -133
- package/dist/solutions-components/utils-580e77c3.js +0 -208
- package/dist/solutions-components/utils-9aa96070.js +0 -61
- package/dist/solutions-components/utils-ab48a0d6.js +0 -47
- package/dist/solutions-components/utils-f96adae4.js +0 -57
- package/dist/solutions-components/vi-7b43fafd.js +0 -69
- package/dist/solutions-components/zh-cn-c19f2858.js +0 -93
- package/dist/solutions-components/zh-hk-f212412d.js +0 -70
- package/dist/solutions-components/zh-tw-be3a4302.js +0 -91
- /package/dist/cjs/{esri-loader-a56cbcbe.js → esri-loader-08dc41bd.js} +0 -0
- /package/dist/esm/{esri-loader-781d738a.js → esri-loader-c6842c6b.js} +0 -0
- /package/dist/solutions-components/{p-6a68306c.js → p-0a24ad5f.js} +0 -0
@@ -1,923 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import { r as registerInstance, e as createEvent, h, g as getElement } from './index-0eecd45f.js';
|
7
|
-
import { c as color } from './index-8b8db9ba.js';
|
8
|
-
import { t as throttle } from './lodash-98e4b7d0.js';
|
9
|
-
import { i as isPrimaryPointerButton, a as getElementDir } from './dom-1f06a111.js';
|
10
|
-
import { c as connectInteractive, d as disconnectInteractive, u as updateHostInteraction, I as InteractiveContainer } from './interactive-179483f5.js';
|
11
|
-
import { i as isActivationKey } from './key-15222297.js';
|
12
|
-
import { c as componentFocusable, s as setUpLoadableComponent, a as setComponentLoaded } from './loadable-5f2ac40f.js';
|
13
|
-
import { c as connectLocalized, d as disconnectLocalized } from './locale-1b4d548e.js';
|
14
|
-
import { c as clamp, a as closeToRangeEdge, r as remap } from './math-81650811.js';
|
15
|
-
import { u as updateMessages, s as setUpMessages, c as connectMessages, d as disconnectMessages } from './t9n-2df2d559.js';
|
16
|
-
import { C as CSSColorMode, n as normalizeHex, h as hexify, a as alphaCompatible, o as opacityToAlpha, b as alphaToOpacity, p as parseMode, c as normalizeColor, d as colorEqual, t as toAlphaMode, e as toNonAlphaMode, f as normalizeAlpha } from './utils-580e77c3.js';
|
17
|
-
import { O as OPACITY_LIMITS, R as RGB_LIMITS, H as HSV_LIMITS, C as CSS, D as DEFAULT_STORAGE_KEY_PREFIX, a as DEFAULT_COLOR, b as DIMENSIONS, c as HUE_LIMIT_CONSTRAINED, S as SCOPE_SIZE } from './resources-092fef68.js';
|
18
|
-
import './_commonjsHelpers-9cd17aec.js';
|
19
|
-
import './guid-f05d01d5.js';
|
20
|
-
import './resources-be0262db.js';
|
21
|
-
import './browser-920df963.js';
|
22
|
-
import './observers-81ed4977.js';
|
23
|
-
|
24
|
-
const colorPickerCss = ":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{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}.interaction-container{display:contents}: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-color-foreground-1);display:inline-block;border:1px solid var(--calcite-color-border-1)}.control-and-scope{position:relative;display:flex;cursor:pointer;touch-action:none}.scope{pointer-events:none;position:absolute;z-index:var(--calcite-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-color-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n );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-color-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-color-brand);outline-offset:2px}.saved-color:hover{transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-color-border-2);outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}";
|
25
|
-
|
26
|
-
const throttleFor60FpsInMs = 16;
|
27
|
-
const ColorPicker = class {
|
28
|
-
constructor(hostRef) {
|
29
|
-
registerInstance(this, hostRef);
|
30
|
-
this.calciteColorPickerChange = createEvent(this, "calciteColorPickerChange", 6);
|
31
|
-
this.calciteColorPickerInput = createEvent(this, "calciteColorPickerInput", 6);
|
32
|
-
this.internalColorUpdateContext = null;
|
33
|
-
this.mode = CSSColorMode.HEX;
|
34
|
-
this.shiftKeyChannelAdjustment = 0;
|
35
|
-
this.handleTabActivate = (event) => {
|
36
|
-
this.channelMode = event.currentTarget.getAttribute("data-color-mode");
|
37
|
-
this.updateChannelsFromColor(this.color);
|
38
|
-
};
|
39
|
-
this.handleColorFieldScopeKeyDown = (event) => {
|
40
|
-
const { key } = event;
|
41
|
-
const arrowKeyToXYOffset = {
|
42
|
-
ArrowUp: { x: 0, y: -10 },
|
43
|
-
ArrowRight: { x: 10, y: 0 },
|
44
|
-
ArrowDown: { x: 0, y: 10 },
|
45
|
-
ArrowLeft: { x: -10, y: 0 },
|
46
|
-
};
|
47
|
-
if (arrowKeyToXYOffset[key]) {
|
48
|
-
event.preventDefault();
|
49
|
-
this.scopeOrientation = key === "ArrowDown" || key === "ArrowUp" ? "vertical" : "horizontal";
|
50
|
-
this.captureColorFieldColor(this.colorFieldScopeLeft + arrowKeyToXYOffset[key].x || 0, this.colorFieldScopeTop + arrowKeyToXYOffset[key].y || 0, false);
|
51
|
-
}
|
52
|
-
};
|
53
|
-
this.handleHueScopeKeyDown = (event) => {
|
54
|
-
const modifier = event.shiftKey ? 10 : 1;
|
55
|
-
const { key } = event;
|
56
|
-
const arrowKeyToXOffset = {
|
57
|
-
ArrowUp: 1,
|
58
|
-
ArrowRight: 1,
|
59
|
-
ArrowDown: -1,
|
60
|
-
ArrowLeft: -1,
|
61
|
-
};
|
62
|
-
if (arrowKeyToXOffset[key]) {
|
63
|
-
event.preventDefault();
|
64
|
-
const delta = arrowKeyToXOffset[key] * modifier;
|
65
|
-
const hue = this.baseColorFieldColor.hue();
|
66
|
-
const color = this.baseColorFieldColor.hue(hue + delta);
|
67
|
-
this.internalColorSet(color, false);
|
68
|
-
}
|
69
|
-
};
|
70
|
-
this.handleHexInputChange = (event) => {
|
71
|
-
event.stopPropagation();
|
72
|
-
const { isClearable, color: color$1 } = this;
|
73
|
-
const input = event.target;
|
74
|
-
const hex = input.value;
|
75
|
-
if (isClearable && !hex) {
|
76
|
-
this.internalColorSet(null);
|
77
|
-
return;
|
78
|
-
}
|
79
|
-
const normalizedHex = color$1 && normalizeHex(hexify(color$1, alphaCompatible(this.mode)));
|
80
|
-
if (hex !== normalizedHex) {
|
81
|
-
this.internalColorSet(color(hex));
|
82
|
-
}
|
83
|
-
};
|
84
|
-
this.handleSavedColorSelect = (event) => {
|
85
|
-
const swatch = event.currentTarget;
|
86
|
-
this.internalColorSet(color(swatch.color));
|
87
|
-
};
|
88
|
-
this.handleChannelInput = (event) => {
|
89
|
-
const input = event.currentTarget;
|
90
|
-
const channelIndex = Number(input.getAttribute("data-channel-index"));
|
91
|
-
const isAlphaChannel = channelIndex === 3;
|
92
|
-
const limit = isAlphaChannel
|
93
|
-
? OPACITY_LIMITS.max
|
94
|
-
: this.channelMode === "rgb"
|
95
|
-
? RGB_LIMITS[Object.keys(RGB_LIMITS)[channelIndex]]
|
96
|
-
: HSV_LIMITS[Object.keys(HSV_LIMITS)[channelIndex]];
|
97
|
-
let inputValue;
|
98
|
-
if (this.isClearable && !input.value) {
|
99
|
-
inputValue = "";
|
100
|
-
}
|
101
|
-
else {
|
102
|
-
const value = Number(input.value);
|
103
|
-
const adjustedValue = value + this.shiftKeyChannelAdjustment;
|
104
|
-
const clamped = clamp(adjustedValue, 0, limit);
|
105
|
-
inputValue = clamped.toString();
|
106
|
-
}
|
107
|
-
input.value = inputValue;
|
108
|
-
if (inputValue !== "" && this.shiftKeyChannelAdjustment !== 0) {
|
109
|
-
// we treat nudging as a change event since the input won't emit when modifying the value directly
|
110
|
-
this.handleChannelChange(event);
|
111
|
-
}
|
112
|
-
};
|
113
|
-
this.handleChannelChange = (event) => {
|
114
|
-
const input = event.currentTarget;
|
115
|
-
const channelIndex = Number(input.getAttribute("data-channel-index"));
|
116
|
-
const channels = [...this.channels];
|
117
|
-
const shouldClearChannels = this.isClearable && !input.value;
|
118
|
-
if (shouldClearChannels) {
|
119
|
-
this.channels = [null, null, null, null];
|
120
|
-
this.internalColorSet(null);
|
121
|
-
return;
|
122
|
-
}
|
123
|
-
const isAlphaChannel = channelIndex === 3;
|
124
|
-
const value = Number(input.value);
|
125
|
-
channels[channelIndex] = isAlphaChannel ? opacityToAlpha(value) : value;
|
126
|
-
this.updateColorFromChannels(channels);
|
127
|
-
};
|
128
|
-
this.handleSavedColorKeyDown = (event) => {
|
129
|
-
if (isActivationKey(event.key)) {
|
130
|
-
event.preventDefault();
|
131
|
-
this.handleSavedColorSelect(event);
|
132
|
-
}
|
133
|
-
};
|
134
|
-
this.handleColorFieldPointerDown = (event) => {
|
135
|
-
if (!isPrimaryPointerButton(event)) {
|
136
|
-
return;
|
137
|
-
}
|
138
|
-
const { offsetX, offsetY } = event;
|
139
|
-
window.addEventListener("pointermove", this.globalPointerMoveHandler);
|
140
|
-
window.addEventListener("pointerup", this.globalPointerUpHandler, { once: true });
|
141
|
-
this.activeCanvasInfo = {
|
142
|
-
context: this.colorFieldRenderingContext,
|
143
|
-
bounds: this.colorFieldRenderingContext.canvas.getBoundingClientRect(),
|
144
|
-
};
|
145
|
-
this.captureColorFieldColor(offsetX, offsetY);
|
146
|
-
this.colorFieldScopeNode.focus();
|
147
|
-
};
|
148
|
-
this.handleHueSliderPointerDown = (event) => {
|
149
|
-
if (!isPrimaryPointerButton(event)) {
|
150
|
-
return;
|
151
|
-
}
|
152
|
-
const { offsetX } = event;
|
153
|
-
window.addEventListener("pointermove", this.globalPointerMoveHandler);
|
154
|
-
window.addEventListener("pointerup", this.globalPointerUpHandler, { once: true });
|
155
|
-
this.activeCanvasInfo = {
|
156
|
-
context: this.hueSliderRenderingContext,
|
157
|
-
bounds: this.hueSliderRenderingContext.canvas.getBoundingClientRect(),
|
158
|
-
};
|
159
|
-
this.captureHueSliderColor(offsetX);
|
160
|
-
this.hueScopeNode.focus();
|
161
|
-
};
|
162
|
-
this.handleOpacitySliderPointerDown = (event) => {
|
163
|
-
if (!isPrimaryPointerButton(event)) {
|
164
|
-
return;
|
165
|
-
}
|
166
|
-
const { offsetX } = event;
|
167
|
-
window.addEventListener("pointermove", this.globalPointerMoveHandler);
|
168
|
-
window.addEventListener("pointerup", this.globalPointerUpHandler, { once: true });
|
169
|
-
this.activeCanvasInfo = {
|
170
|
-
context: this.opacitySliderRenderingContext,
|
171
|
-
bounds: this.opacitySliderRenderingContext.canvas.getBoundingClientRect(),
|
172
|
-
};
|
173
|
-
this.captureOpacitySliderValue(offsetX);
|
174
|
-
this.opacityScopeNode.focus();
|
175
|
-
};
|
176
|
-
this.globalPointerUpHandler = (event) => {
|
177
|
-
if (!isPrimaryPointerButton(event)) {
|
178
|
-
return;
|
179
|
-
}
|
180
|
-
const previouslyDragging = this.activeCanvasInfo;
|
181
|
-
this.activeCanvasInfo = null;
|
182
|
-
this.drawColorControls();
|
183
|
-
if (previouslyDragging) {
|
184
|
-
this.calciteColorPickerChange.emit();
|
185
|
-
}
|
186
|
-
};
|
187
|
-
this.globalPointerMoveHandler = (event) => {
|
188
|
-
const { activeCanvasInfo, el } = this;
|
189
|
-
if (!el.isConnected || !activeCanvasInfo) {
|
190
|
-
return;
|
191
|
-
}
|
192
|
-
const { context, bounds } = activeCanvasInfo;
|
193
|
-
let samplingX;
|
194
|
-
let samplingY;
|
195
|
-
const { clientX, clientY } = event;
|
196
|
-
if (context.canvas.matches(":hover")) {
|
197
|
-
samplingX = clientX - bounds.x;
|
198
|
-
samplingY = clientY - bounds.y;
|
199
|
-
}
|
200
|
-
else {
|
201
|
-
// snap x and y to the closest edge
|
202
|
-
if (clientX < bounds.x + bounds.width && clientX > bounds.x) {
|
203
|
-
samplingX = clientX - bounds.x;
|
204
|
-
}
|
205
|
-
else if (clientX < bounds.x) {
|
206
|
-
samplingX = 0;
|
207
|
-
}
|
208
|
-
else {
|
209
|
-
samplingX = bounds.width;
|
210
|
-
}
|
211
|
-
if (clientY < bounds.y + bounds.height && clientY > bounds.y) {
|
212
|
-
samplingY = clientY - bounds.y;
|
213
|
-
}
|
214
|
-
else if (clientY < bounds.y) {
|
215
|
-
samplingY = 0;
|
216
|
-
}
|
217
|
-
else {
|
218
|
-
samplingY = bounds.height;
|
219
|
-
}
|
220
|
-
}
|
221
|
-
if (context === this.colorFieldRenderingContext) {
|
222
|
-
this.captureColorFieldColor(samplingX, samplingY, false);
|
223
|
-
}
|
224
|
-
else if (context === this.hueSliderRenderingContext) {
|
225
|
-
this.captureHueSliderColor(samplingX);
|
226
|
-
}
|
227
|
-
else if (context === this.opacitySliderRenderingContext) {
|
228
|
-
this.captureOpacitySliderValue(samplingX);
|
229
|
-
}
|
230
|
-
};
|
231
|
-
this.storeColorFieldScope = (node) => {
|
232
|
-
this.colorFieldScopeNode = node;
|
233
|
-
};
|
234
|
-
this.storeHueScope = (node) => {
|
235
|
-
this.hueScopeNode = node;
|
236
|
-
};
|
237
|
-
this.renderChannelsTabTitle = (channelMode) => {
|
238
|
-
const { channelMode: activeChannelMode, messages } = this;
|
239
|
-
const selected = channelMode === activeChannelMode;
|
240
|
-
const label = channelMode === "rgb" ? messages.rgb : messages.hsv;
|
241
|
-
return (h("calcite-tab-title", { class: CSS.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate, selected: selected }, label));
|
242
|
-
};
|
243
|
-
this.renderChannelsTab = (channelMode) => {
|
244
|
-
const { isClearable, channelMode: activeChannelMode, channels, messages, alphaChannel } = this;
|
245
|
-
const selected = channelMode === activeChannelMode;
|
246
|
-
const isRgb = channelMode === "rgb";
|
247
|
-
const channelAriaLabels = isRgb
|
248
|
-
? [messages.red, messages.green, messages.blue]
|
249
|
-
: [messages.hue, messages.saturation, messages.value];
|
250
|
-
const direction = getElementDir(this.el);
|
251
|
-
const channelsToRender = alphaChannel ? channels : channels.slice(0, 3);
|
252
|
-
return (h("calcite-tab", { class: CSS.control, key: channelMode, selected: selected }, h("div", { class: CSS.channels, dir: "ltr" }, channelsToRender.map((channelValue, index) => {
|
253
|
-
const isAlphaChannel = index === 3;
|
254
|
-
if (isAlphaChannel) {
|
255
|
-
channelValue =
|
256
|
-
isClearable && !channelValue ? channelValue : alphaToOpacity(channelValue);
|
257
|
-
}
|
258
|
-
/* the channel container is ltr, so we apply the host's direction */
|
259
|
-
return this.renderChannel(channelValue, index, channelAriaLabels[index], direction, isAlphaChannel ? "%" : "");
|
260
|
-
}))));
|
261
|
-
};
|
262
|
-
this.renderChannel = (value, index, ariaLabel, direction, suffix) => {
|
263
|
-
return (h("calcite-input-number", { class: CSS.channel, "data-channel-index": index, dir: direction, key: index, label: ariaLabel, lang: this.effectiveLocale, numberButtonType: "none", numberingSystem: this.numberingSystem, onCalciteInputNumberChange: this.handleChannelChange, onCalciteInputNumberInput: this.handleChannelInput, onKeyDown: this.handleKeyDown, scale: this.scale === "l" ? "m" : "s",
|
264
|
-
// workaround to ensure input borders overlap as desired
|
265
|
-
// this is because the build transforms margin-left to its
|
266
|
-
// logical-prop, which is undesired as channels are always ltr
|
267
|
-
style: {
|
268
|
-
marginLeft: index > 0 && !(this.scale === "s" && this.alphaChannel && index === 3) ? "-1px" : "",
|
269
|
-
}, suffixText: suffix, value: value === null || value === void 0 ? void 0 : value.toString() }));
|
270
|
-
};
|
271
|
-
this.deleteColor = () => {
|
272
|
-
const colorToDelete = hexify(this.color, this.alphaChannel);
|
273
|
-
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
274
|
-
if (!inStorage) {
|
275
|
-
return;
|
276
|
-
}
|
277
|
-
const savedColors = this.savedColors.filter((color) => color !== colorToDelete);
|
278
|
-
this.savedColors = savedColors;
|
279
|
-
const storageKey = `${DEFAULT_STORAGE_KEY_PREFIX}${this.storageId}`;
|
280
|
-
if (this.storageId) {
|
281
|
-
localStorage.setItem(storageKey, JSON.stringify(savedColors));
|
282
|
-
}
|
283
|
-
};
|
284
|
-
this.saveColor = () => {
|
285
|
-
const colorToSave = hexify(this.color, this.alphaChannel);
|
286
|
-
const alreadySaved = this.savedColors.indexOf(colorToSave) > -1;
|
287
|
-
if (alreadySaved) {
|
288
|
-
return;
|
289
|
-
}
|
290
|
-
const savedColors = [...this.savedColors, colorToSave];
|
291
|
-
this.savedColors = savedColors;
|
292
|
-
const storageKey = `${DEFAULT_STORAGE_KEY_PREFIX}${this.storageId}`;
|
293
|
-
if (this.storageId) {
|
294
|
-
localStorage.setItem(storageKey, JSON.stringify(savedColors));
|
295
|
-
}
|
296
|
-
};
|
297
|
-
this.drawColorControls = throttle((type = "all") => {
|
298
|
-
if ((type === "all" || type === "color-field") && this.colorFieldRenderingContext) {
|
299
|
-
this.drawColorField();
|
300
|
-
}
|
301
|
-
if ((type === "all" || type === "hue-slider") && this.hueSliderRenderingContext) {
|
302
|
-
this.drawHueSlider();
|
303
|
-
}
|
304
|
-
if (this.alphaChannel &&
|
305
|
-
(type === "all" || type === "opacity-slider") &&
|
306
|
-
this.opacitySliderRenderingContext) {
|
307
|
-
this.drawOpacitySlider();
|
308
|
-
}
|
309
|
-
}, throttleFor60FpsInMs);
|
310
|
-
this.captureColorFieldColor = (x, y, skipEqual = true) => {
|
311
|
-
const { dimensions: { colorField: { height, width }, }, } = this;
|
312
|
-
const saturation = Math.round((HSV_LIMITS.s / width) * x);
|
313
|
-
const value = Math.round((HSV_LIMITS.v / height) * (height - y));
|
314
|
-
this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(saturation).value(value), skipEqual);
|
315
|
-
};
|
316
|
-
this.initColorField = (canvas) => {
|
317
|
-
this.colorFieldRenderingContext = canvas.getContext("2d");
|
318
|
-
this.updateCanvasSize("color-field");
|
319
|
-
this.drawColorControls();
|
320
|
-
};
|
321
|
-
this.initHueSlider = (canvas) => {
|
322
|
-
this.hueSliderRenderingContext = canvas.getContext("2d");
|
323
|
-
this.updateCanvasSize("hue-slider");
|
324
|
-
this.drawHueSlider();
|
325
|
-
};
|
326
|
-
this.initOpacitySlider = (canvas) => {
|
327
|
-
if (!canvas) {
|
328
|
-
return;
|
329
|
-
}
|
330
|
-
this.opacitySliderRenderingContext = canvas.getContext("2d");
|
331
|
-
this.updateCanvasSize("opacity-slider");
|
332
|
-
this.drawOpacitySlider();
|
333
|
-
};
|
334
|
-
this.storeOpacityScope = (node) => {
|
335
|
-
this.opacityScopeNode = node;
|
336
|
-
};
|
337
|
-
this.handleOpacityScopeKeyDown = (event) => {
|
338
|
-
const modifier = event.shiftKey ? 10 : 1;
|
339
|
-
const { key } = event;
|
340
|
-
const arrowKeyToXOffset = {
|
341
|
-
ArrowUp: 0.01,
|
342
|
-
ArrowRight: 0.01,
|
343
|
-
ArrowDown: -0.01,
|
344
|
-
ArrowLeft: -0.01,
|
345
|
-
};
|
346
|
-
if (arrowKeyToXOffset[key]) {
|
347
|
-
event.preventDefault();
|
348
|
-
const delta = arrowKeyToXOffset[key] * modifier;
|
349
|
-
const alpha = this.baseColorFieldColor.alpha();
|
350
|
-
const color = this.baseColorFieldColor.alpha(alpha + delta);
|
351
|
-
this.internalColorSet(color, false);
|
352
|
-
}
|
353
|
-
};
|
354
|
-
this.allowEmpty = false;
|
355
|
-
this.alphaChannel = false;
|
356
|
-
this.channelsDisabled = false;
|
357
|
-
this.clearable = false;
|
358
|
-
this.color = DEFAULT_COLOR;
|
359
|
-
this.disabled = false;
|
360
|
-
this.format = "auto";
|
361
|
-
this.hideChannels = false;
|
362
|
-
this.hexDisabled = false;
|
363
|
-
this.hideHex = false;
|
364
|
-
this.hideSaved = false;
|
365
|
-
this.savedDisabled = false;
|
366
|
-
this.scale = "m";
|
367
|
-
this.storageId = undefined;
|
368
|
-
this.messageOverrides = undefined;
|
369
|
-
this.numberingSystem = undefined;
|
370
|
-
this.value = normalizeHex(hexify(DEFAULT_COLOR, this.alphaChannel));
|
371
|
-
this.defaultMessages = undefined;
|
372
|
-
this.channelMode = "rgb";
|
373
|
-
this.channels = this.toChannels(DEFAULT_COLOR);
|
374
|
-
this.dimensions = DIMENSIONS.m;
|
375
|
-
this.effectiveLocale = "";
|
376
|
-
this.messages = undefined;
|
377
|
-
this.savedColors = [];
|
378
|
-
this.colorFieldScopeTop = undefined;
|
379
|
-
this.colorFieldScopeLeft = undefined;
|
380
|
-
this.hueScopeLeft = undefined;
|
381
|
-
this.opacityScopeLeft = undefined;
|
382
|
-
this.scopeOrientation = undefined;
|
383
|
-
}
|
384
|
-
handleAllowEmptyOrClearableChange() {
|
385
|
-
this.isClearable = this.clearable || this.allowEmpty;
|
386
|
-
}
|
387
|
-
handleAlphaChannelChange(alphaChannel) {
|
388
|
-
const { format } = this;
|
389
|
-
if (alphaChannel && format !== "auto" && !alphaCompatible(format)) {
|
390
|
-
console.warn(`ignoring alphaChannel as the current format (${format}) does not support alpha`);
|
391
|
-
this.alphaChannel = false;
|
392
|
-
}
|
393
|
-
}
|
394
|
-
handleColorChange(color, oldColor) {
|
395
|
-
this.drawColorControls();
|
396
|
-
this.updateChannelsFromColor(color);
|
397
|
-
this.previousColor = oldColor;
|
398
|
-
}
|
399
|
-
handleFormatOrAlphaChannelChange() {
|
400
|
-
this.setMode(this.format);
|
401
|
-
this.internalColorSet(this.color, false, "internal");
|
402
|
-
}
|
403
|
-
handleScaleChange(scale = "m") {
|
404
|
-
this.updateDimensions(scale);
|
405
|
-
this.updateCanvasSize("all");
|
406
|
-
this.drawColorControls();
|
407
|
-
}
|
408
|
-
onMessagesChange() {
|
409
|
-
/* wired up by t9n util */
|
410
|
-
}
|
411
|
-
handleValueChange(value, oldValue) {
|
412
|
-
const { isClearable, format } = this;
|
413
|
-
const checkMode = !isClearable || value;
|
414
|
-
let modeChanged = false;
|
415
|
-
if (checkMode) {
|
416
|
-
const nextMode = parseMode(value);
|
417
|
-
if (!nextMode || (format !== "auto" && nextMode !== format)) {
|
418
|
-
this.showIncompatibleColorWarning(value, format);
|
419
|
-
this.value = oldValue;
|
420
|
-
return;
|
421
|
-
}
|
422
|
-
modeChanged = this.mode !== nextMode;
|
423
|
-
this.setMode(nextMode, this.internalColorUpdateContext === null);
|
424
|
-
}
|
425
|
-
const dragging = this.activeCanvasInfo;
|
426
|
-
if (this.internalColorUpdateContext === "initial") {
|
427
|
-
return;
|
428
|
-
}
|
429
|
-
if (this.internalColorUpdateContext === "user-interaction") {
|
430
|
-
this.calciteColorPickerInput.emit();
|
431
|
-
if (!dragging) {
|
432
|
-
this.calciteColorPickerChange.emit();
|
433
|
-
}
|
434
|
-
return;
|
435
|
-
}
|
436
|
-
const color$1 = isClearable && !value
|
437
|
-
? null
|
438
|
-
: color(value != null && typeof value === "object" && alphaCompatible(this.mode)
|
439
|
-
? normalizeColor(value)
|
440
|
-
: value);
|
441
|
-
const colorChanged = !colorEqual(color$1, this.color);
|
442
|
-
if (modeChanged || colorChanged) {
|
443
|
-
this.internalColorSet(color$1, this.alphaChannel && !(this.mode.endsWith("a") || this.mode.endsWith("a-css")), "internal");
|
444
|
-
}
|
445
|
-
}
|
446
|
-
get baseColorFieldColor() {
|
447
|
-
return this.color || this.previousColor || DEFAULT_COLOR;
|
448
|
-
}
|
449
|
-
effectiveLocaleChange() {
|
450
|
-
updateMessages(this, this.effectiveLocale);
|
451
|
-
}
|
452
|
-
// using @Listen as a workaround for VDOM listener not firing
|
453
|
-
handleChannelKeyUpOrDown(event) {
|
454
|
-
this.shiftKeyChannelAdjustment = 0;
|
455
|
-
const { key } = event;
|
456
|
-
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
457
|
-
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS.channel); })) {
|
458
|
-
return;
|
459
|
-
}
|
460
|
-
const { shiftKey } = event;
|
461
|
-
event.preventDefault();
|
462
|
-
if (!this.color) {
|
463
|
-
this.internalColorSet(this.previousColor);
|
464
|
-
event.stopPropagation();
|
465
|
-
return;
|
466
|
-
}
|
467
|
-
// this gets applied to the input's up/down arrow increment/decrement
|
468
|
-
const complementaryBump = 9;
|
469
|
-
this.shiftKeyChannelAdjustment =
|
470
|
-
key === "ArrowUp" && shiftKey
|
471
|
-
? complementaryBump
|
472
|
-
: key === "ArrowDown" && shiftKey
|
473
|
-
? -complementaryBump
|
474
|
-
: 0;
|
475
|
-
}
|
476
|
-
//--------------------------------------------------------------------------
|
477
|
-
//
|
478
|
-
// Public Methods
|
479
|
-
//
|
480
|
-
//--------------------------------------------------------------------------
|
481
|
-
/** Sets focus on the component's first focusable element. */
|
482
|
-
async setFocus() {
|
483
|
-
await componentFocusable(this);
|
484
|
-
this.el.focus();
|
485
|
-
}
|
486
|
-
//--------------------------------------------------------------------------
|
487
|
-
//
|
488
|
-
// Lifecycle
|
489
|
-
//
|
490
|
-
//--------------------------------------------------------------------------
|
491
|
-
async componentWillLoad() {
|
492
|
-
setUpLoadableComponent(this);
|
493
|
-
this.handleAllowEmptyOrClearableChange();
|
494
|
-
const { isClearable, color: color$1, format, value } = this;
|
495
|
-
const willSetNoColor = isClearable && !value;
|
496
|
-
const parsedMode = parseMode(value);
|
497
|
-
const valueIsCompatible = willSetNoColor || (format === "auto" && parsedMode) || format === parsedMode;
|
498
|
-
const initialColor = willSetNoColor ? null : valueIsCompatible ? color(value) : color$1;
|
499
|
-
if (!valueIsCompatible) {
|
500
|
-
this.showIncompatibleColorWarning(value, format);
|
501
|
-
}
|
502
|
-
this.setMode(format, false);
|
503
|
-
this.internalColorSet(initialColor, false, "initial");
|
504
|
-
this.updateDimensions(this.scale);
|
505
|
-
const storageKey = `${DEFAULT_STORAGE_KEY_PREFIX}${this.storageId}`;
|
506
|
-
if (this.storageId && localStorage.getItem(storageKey)) {
|
507
|
-
this.savedColors = JSON.parse(localStorage.getItem(storageKey));
|
508
|
-
}
|
509
|
-
await setUpMessages(this);
|
510
|
-
}
|
511
|
-
connectedCallback() {
|
512
|
-
connectInteractive(this);
|
513
|
-
connectLocalized(this);
|
514
|
-
connectMessages(this);
|
515
|
-
}
|
516
|
-
componentDidLoad() {
|
517
|
-
setComponentLoaded(this);
|
518
|
-
}
|
519
|
-
disconnectedCallback() {
|
520
|
-
window.removeEventListener("pointermove", this.globalPointerMoveHandler);
|
521
|
-
window.removeEventListener("pointerup", this.globalPointerUpHandler);
|
522
|
-
disconnectInteractive(this);
|
523
|
-
disconnectLocalized(this);
|
524
|
-
disconnectMessages(this);
|
525
|
-
}
|
526
|
-
componentDidRender() {
|
527
|
-
updateHostInteraction(this);
|
528
|
-
}
|
529
|
-
//--------------------------------------------------------------------------
|
530
|
-
//
|
531
|
-
// Render Methods
|
532
|
-
//
|
533
|
-
//--------------------------------------------------------------------------
|
534
|
-
render() {
|
535
|
-
const { channelsDisabled, color, colorFieldScopeLeft, colorFieldScopeTop, dimensions: { slider: { width: sliderWidth }, thumb: { radius: thumbRadius }, }, hexDisabled, hideChannels, hideHex, hideSaved, hueScopeLeft, messages, alphaChannel, opacityScopeLeft, savedColors, savedDisabled, scale, scopeOrientation, } = this;
|
536
|
-
const selectedColorInHex = color ? hexify(color, alphaChannel) : null;
|
537
|
-
const hueTop = thumbRadius;
|
538
|
-
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (sliderWidth * DEFAULT_COLOR.hue()) / HSV_LIMITS.h;
|
539
|
-
const opacityTop = thumbRadius;
|
540
|
-
const opacityLeft = opacityScopeLeft !== null && opacityScopeLeft !== void 0 ? opacityScopeLeft : (sliderWidth * alphaToOpacity(DEFAULT_COLOR.alpha())) / OPACITY_LIMITS.max;
|
541
|
-
const noColor = color === null;
|
542
|
-
const vertical = scopeOrientation === "vertical";
|
543
|
-
const noHex = hexDisabled || hideHex;
|
544
|
-
const noChannels = channelsDisabled || hideChannels;
|
545
|
-
const noSaved = savedDisabled || hideSaved;
|
546
|
-
const [adjustedColorFieldScopeLeft, adjustedColorFieldScopeTop] = this.getAdjustedScopePosition(colorFieldScopeLeft, colorFieldScopeTop);
|
547
|
-
const [adjustedHueScopeLeft, adjustedHueScopeTop] = this.getAdjustedScopePosition(hueLeft, hueTop);
|
548
|
-
const [adjustedOpacityScopeLeft, adjustedOpacityScopeTop] = this.getAdjustedScopePosition(opacityLeft, opacityTop);
|
549
|
-
return (h(InteractiveContainer, { key: '5f347cb136350e7661b7b479ee86a16bb85414c3', disabled: this.disabled }, h("div", { key: '0294cbc1d16db228c22a2ae1bd061d9a683c1378', class: CSS.container }, h("div", { key: 'f7531da7e77293d52f5f8220443258e40f07f2d3', class: CSS.controlAndScope }, h("canvas", { key: '6738d5bc8ec0f77c01eaac72b6b89edeea39abd3', class: CSS.colorField, onPointerDown: this.handleColorFieldPointerDown,
|
550
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
551
|
-
ref: this.initColorField }), h("div", { key: '932e10e761c6e8732e3412b049c895df18c4358f', "aria-label": vertical ? messages.value : messages.saturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS.scope]: true, [CSS.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, role: "slider", style: {
|
552
|
-
top: `${adjustedColorFieldScopeTop || 0}px`,
|
553
|
-
left: `${adjustedColorFieldScopeLeft || 0}px`,
|
554
|
-
}, tabindex: "0",
|
555
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
556
|
-
ref: this.storeColorFieldScope })), h("div", { key: '1d1e670478df18f1a8ad35d9ca217b378e103468', class: CSS.previewAndSliders }, h("calcite-color-picker-swatch", { key: 'e65dd58f2aebb184db914c3a2c4e9782eb4b1e7c', class: CSS.preview, color: selectedColorInHex, scale: "l" }), h("div", { key: '98fb46881b6c40899b8fdfa4afeb521356d1e250', class: CSS.sliders }, h("div", { key: '7367b44dcc87a8cfbd5cd913ebee690eeabfcb92', class: CSS.controlAndScope }, h("canvas", { key: '4fe31f39350ac02fe527452da248b07b573dadac', class: { [CSS.slider]: true, [CSS.hueSlider]: true }, onPointerDown: this.handleHueSliderPointerDown,
|
557
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
558
|
-
ref: this.initHueSlider }), h("div", { key: '47048d9a779471169b1c4ec14d70a1a258914b1a', "aria-label": messages.hue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": (color === null || color === void 0 ? void 0 : color.round().hue()) || DEFAULT_COLOR.round().hue(), class: { [CSS.scope]: true, [CSS.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, role: "slider", style: {
|
559
|
-
top: `${adjustedHueScopeTop}px`,
|
560
|
-
left: `${adjustedHueScopeLeft}px`,
|
561
|
-
}, tabindex: "0",
|
562
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
563
|
-
ref: this.storeHueScope })), alphaChannel ? (h("div", { class: CSS.controlAndScope }, h("canvas", { class: { [CSS.slider]: true, [CSS.opacitySlider]: true }, onPointerDown: this.handleOpacitySliderPointerDown,
|
564
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
565
|
-
ref: this.initOpacitySlider }), h("div", { "aria-label": messages.opacity, "aria-valuemax": OPACITY_LIMITS.max, "aria-valuemin": OPACITY_LIMITS.min, "aria-valuenow": (color || DEFAULT_COLOR).round().alpha(), class: { [CSS.scope]: true, [CSS.opacityScope]: true }, onKeyDown: this.handleOpacityScopeKeyDown, role: "slider", style: {
|
566
|
-
top: `${adjustedOpacityScopeTop}px`,
|
567
|
-
left: `${adjustedOpacityScopeLeft}px`,
|
568
|
-
}, tabindex: "0",
|
569
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
570
|
-
ref: this.storeOpacityScope }))) : null)), noHex && noChannels ? null : (h("div", { class: {
|
571
|
-
[CSS.controlSection]: true,
|
572
|
-
[CSS.section]: true,
|
573
|
-
} }, h("div", { class: CSS.hexAndChannelsGroup }, noHex ? null : (h("div", { class: CSS.hexOptions }, h("calcite-color-picker-hex-input", { allowEmpty: this.isClearable, alphaChannel: alphaChannel, class: CSS.control, messages: messages, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: scale, value: selectedColorInHex }))), noChannels ? null : (h("calcite-tabs", { class: {
|
574
|
-
[CSS.colorModeContainer]: true,
|
575
|
-
[CSS.splitSection]: true,
|
576
|
-
}, scale: scale === "l" ? "m" : "s" }, h("calcite-tab-nav", { slot: "title-group" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv")))))), noSaved ? null : (h("div", { class: { [CSS.savedColorsSection]: true, [CSS.section]: true } }, h("div", { class: CSS.header }, h("label", null, messages.saved), h("div", { class: CSS.savedColorsButtons }, h("calcite-button", { appearance: "transparent", class: CSS.deleteColor, disabled: noColor, iconStart: "minus", kind: "neutral", label: messages.deleteColor, onClick: this.deleteColor, scale: scale, type: "button" }), h("calcite-button", { appearance: "transparent", class: CSS.saveColor, disabled: noColor, iconStart: "plus", kind: "neutral", label: messages.saveColor, onClick: this.saveColor, scale: scale, type: "button" }))), savedColors.length > 0 ? (h("div", { class: CSS.savedColors }, [
|
577
|
-
...savedColors.map((color) => (h("calcite-color-picker-swatch", { class: CSS.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 }))),
|
578
|
-
])) : null)))));
|
579
|
-
}
|
580
|
-
// --------------------------------------------------------------------------
|
581
|
-
//
|
582
|
-
// Private Methods
|
583
|
-
//
|
584
|
-
//--------------------------------------------------------------------------
|
585
|
-
handleKeyDown(event) {
|
586
|
-
if (event.key === "Enter") {
|
587
|
-
event.preventDefault();
|
588
|
-
}
|
589
|
-
}
|
590
|
-
showIncompatibleColorWarning(value, format) {
|
591
|
-
console.warn(`ignoring color value (${value}) as it is not compatible with the current format (${format})`);
|
592
|
-
}
|
593
|
-
setMode(format, warn = true) {
|
594
|
-
const mode = format === "auto" ? this.mode : format;
|
595
|
-
this.mode = this.ensureCompatibleMode(mode, warn);
|
596
|
-
}
|
597
|
-
ensureCompatibleMode(mode, warn) {
|
598
|
-
const { alphaChannel } = this;
|
599
|
-
const isAlphaCompatible = alphaCompatible(mode);
|
600
|
-
if (alphaChannel && !isAlphaCompatible) {
|
601
|
-
const alphaMode = toAlphaMode(mode);
|
602
|
-
if (warn) {
|
603
|
-
console.warn(`setting format to (${alphaMode}) as the provided one (${mode}) does not support alpha`);
|
604
|
-
}
|
605
|
-
return alphaMode;
|
606
|
-
}
|
607
|
-
if (!alphaChannel && isAlphaCompatible) {
|
608
|
-
const nonAlphaMode = toNonAlphaMode(mode);
|
609
|
-
if (warn) {
|
610
|
-
console.warn(`setting format to (${nonAlphaMode}) as the provided one (${mode}) does not support alpha`);
|
611
|
-
}
|
612
|
-
return nonAlphaMode;
|
613
|
-
}
|
614
|
-
return mode;
|
615
|
-
}
|
616
|
-
captureHueSliderColor(x) {
|
617
|
-
const { dimensions: { slider: { width }, }, } = this;
|
618
|
-
const hue = (HUE_LIMIT_CONSTRAINED / width) * x;
|
619
|
-
this.internalColorSet(this.baseColorFieldColor.hue(hue), false);
|
620
|
-
}
|
621
|
-
captureOpacitySliderValue(x) {
|
622
|
-
const { dimensions: { slider: { width }, }, } = this;
|
623
|
-
const alpha = opacityToAlpha((OPACITY_LIMITS.max / width) * x);
|
624
|
-
this.internalColorSet(this.baseColorFieldColor.alpha(alpha), false);
|
625
|
-
}
|
626
|
-
internalColorSet(color, skipEqual = true, context = "user-interaction") {
|
627
|
-
if (skipEqual && colorEqual(color, this.color)) {
|
628
|
-
return;
|
629
|
-
}
|
630
|
-
this.internalColorUpdateContext = context;
|
631
|
-
this.color = color;
|
632
|
-
this.value = this.toValue(color);
|
633
|
-
this.internalColorUpdateContext = null;
|
634
|
-
}
|
635
|
-
toValue(color, format = this.mode) {
|
636
|
-
if (!color) {
|
637
|
-
return null;
|
638
|
-
}
|
639
|
-
const hexMode = "hex";
|
640
|
-
if (format.includes(hexMode)) {
|
641
|
-
const hasAlpha = format === CSSColorMode.HEXA;
|
642
|
-
return normalizeHex(hexify(color.round(), hasAlpha), hasAlpha);
|
643
|
-
}
|
644
|
-
if (format.includes("-css")) {
|
645
|
-
const value = color[format.replace("-css", "").replace("a", "")]().round().string();
|
646
|
-
// Color omits alpha values when alpha is 1
|
647
|
-
const needToInjectAlpha = (format.endsWith("a") || format.endsWith("a-css")) && color.alpha() === 1;
|
648
|
-
if (needToInjectAlpha) {
|
649
|
-
const model = value.slice(0, 3);
|
650
|
-
const values = value.slice(4, -1);
|
651
|
-
return `${model}a(${values}, ${color.alpha()})`;
|
652
|
-
}
|
653
|
-
return value;
|
654
|
-
}
|
655
|
-
const colorObject =
|
656
|
-
/* Color() does not support hsva, hsla nor rgba, so we use the non-alpha mode */
|
657
|
-
color[toNonAlphaMode(format)]().round().object();
|
658
|
-
if (format.endsWith("a")) {
|
659
|
-
return normalizeAlpha(colorObject);
|
660
|
-
}
|
661
|
-
return colorObject;
|
662
|
-
}
|
663
|
-
getSliderCapSpacing() {
|
664
|
-
const { dimensions: { slider: { height }, thumb: { radius }, }, } = this;
|
665
|
-
return radius * 2 - height;
|
666
|
-
}
|
667
|
-
updateDimensions(scale = "m") {
|
668
|
-
this.dimensions = DIMENSIONS[scale];
|
669
|
-
}
|
670
|
-
drawColorField() {
|
671
|
-
const context = this.colorFieldRenderingContext;
|
672
|
-
const { dimensions: { colorField: { height, width }, }, } = this;
|
673
|
-
context.fillStyle = this.baseColorFieldColor
|
674
|
-
.hsv()
|
675
|
-
.saturationv(100)
|
676
|
-
.value(100)
|
677
|
-
.alpha(1)
|
678
|
-
.string();
|
679
|
-
context.fillRect(0, 0, width, height);
|
680
|
-
const whiteGradient = context.createLinearGradient(0, 0, width, 0);
|
681
|
-
whiteGradient.addColorStop(0, "rgba(255,255,255,1)");
|
682
|
-
whiteGradient.addColorStop(1, "rgba(255,255,255,0)");
|
683
|
-
context.fillStyle = whiteGradient;
|
684
|
-
context.fillRect(0, 0, width, height);
|
685
|
-
const blackGradient = context.createLinearGradient(0, 0, 0, height);
|
686
|
-
blackGradient.addColorStop(0, "rgba(0,0,0,0)");
|
687
|
-
blackGradient.addColorStop(1, "rgba(0,0,0,1)");
|
688
|
-
context.fillStyle = blackGradient;
|
689
|
-
context.fillRect(0, 0, width, height);
|
690
|
-
this.drawActiveColorFieldColor();
|
691
|
-
}
|
692
|
-
setCanvasContextSize(canvas, { height, width }) {
|
693
|
-
if (!canvas) {
|
694
|
-
return;
|
695
|
-
}
|
696
|
-
const devicePixelRatio = window.devicePixelRatio || 1;
|
697
|
-
canvas.width = width * devicePixelRatio;
|
698
|
-
canvas.height = height * devicePixelRatio;
|
699
|
-
canvas.style.height = `${height}px`;
|
700
|
-
canvas.style.width = `${width}px`;
|
701
|
-
const context = canvas.getContext("2d");
|
702
|
-
context.scale(devicePixelRatio, devicePixelRatio);
|
703
|
-
}
|
704
|
-
updateCanvasSize(context = "all") {
|
705
|
-
var _a, _b, _c;
|
706
|
-
const { dimensions } = this;
|
707
|
-
if (context === "all" || context === "color-field") {
|
708
|
-
this.setCanvasContextSize((_a = this.colorFieldRenderingContext) === null || _a === void 0 ? void 0 : _a.canvas, dimensions.colorField);
|
709
|
-
}
|
710
|
-
const adjustedSliderDimensions = {
|
711
|
-
width: dimensions.slider.width,
|
712
|
-
height: dimensions.slider.height + (dimensions.thumb.radius - dimensions.slider.height / 2) * 2,
|
713
|
-
};
|
714
|
-
if (context === "all" || context === "hue-slider") {
|
715
|
-
this.setCanvasContextSize((_b = this.hueSliderRenderingContext) === null || _b === void 0 ? void 0 : _b.canvas, adjustedSliderDimensions);
|
716
|
-
}
|
717
|
-
if (context === "all" || context === "opacity-slider") {
|
718
|
-
this.setCanvasContextSize((_c = this.opacitySliderRenderingContext) === null || _c === void 0 ? void 0 : _c.canvas, adjustedSliderDimensions);
|
719
|
-
}
|
720
|
-
}
|
721
|
-
drawActiveColorFieldColor() {
|
722
|
-
const { color } = this;
|
723
|
-
if (!color) {
|
724
|
-
return;
|
725
|
-
}
|
726
|
-
const hsvColor = color.hsv();
|
727
|
-
const { dimensions: { colorField: { height, width }, thumb: { radius }, }, } = this;
|
728
|
-
const x = hsvColor.saturationv() / (HSV_LIMITS.s / width);
|
729
|
-
const y = height - hsvColor.value() / (HSV_LIMITS.v / height);
|
730
|
-
requestAnimationFrame(() => {
|
731
|
-
this.colorFieldScopeLeft = x;
|
732
|
-
this.colorFieldScopeTop = y;
|
733
|
-
});
|
734
|
-
this.drawThumb(this.colorFieldRenderingContext, radius, x, y, hsvColor, false);
|
735
|
-
}
|
736
|
-
drawThumb(context, radius, x, y, color, applyAlpha) {
|
737
|
-
const startAngle = 0;
|
738
|
-
const endAngle = 2 * Math.PI;
|
739
|
-
const outlineWidth = 1;
|
740
|
-
context.beginPath();
|
741
|
-
context.arc(x, y, radius, startAngle, endAngle);
|
742
|
-
context.fillStyle = "#fff";
|
743
|
-
context.fill();
|
744
|
-
context.strokeStyle = "rgba(0,0,0,0.3)";
|
745
|
-
context.lineWidth = outlineWidth;
|
746
|
-
context.stroke();
|
747
|
-
if (applyAlpha && color.alpha() < 1) {
|
748
|
-
const pattern = context.createPattern(this.getCheckeredBackgroundPattern(), "repeat");
|
749
|
-
context.beginPath();
|
750
|
-
context.arc(x, y, radius - 3, startAngle, endAngle);
|
751
|
-
context.fillStyle = pattern;
|
752
|
-
context.fill();
|
753
|
-
}
|
754
|
-
context.globalCompositeOperation = "source-atop";
|
755
|
-
context.beginPath();
|
756
|
-
context.arc(x, y, radius - 3, startAngle, endAngle);
|
757
|
-
const alpha = applyAlpha ? color.alpha() : 1;
|
758
|
-
context.fillStyle = color.rgb().alpha(alpha).string();
|
759
|
-
context.fill();
|
760
|
-
context.globalCompositeOperation = "source-over";
|
761
|
-
}
|
762
|
-
drawActiveHueSliderColor() {
|
763
|
-
const { color } = this;
|
764
|
-
if (!color) {
|
765
|
-
return;
|
766
|
-
}
|
767
|
-
const hsvColor = color.hsv().saturationv(100).value(100);
|
768
|
-
const { dimensions: { slider: { width }, thumb: { radius }, }, } = this;
|
769
|
-
const x = hsvColor.hue() / (HUE_LIMIT_CONSTRAINED / width);
|
770
|
-
const y = radius;
|
771
|
-
const sliderBoundX = this.getSliderBoundX(x, width, radius);
|
772
|
-
requestAnimationFrame(() => {
|
773
|
-
this.hueScopeLeft = sliderBoundX;
|
774
|
-
});
|
775
|
-
this.drawThumb(this.hueSliderRenderingContext, radius, sliderBoundX, y, hsvColor, false);
|
776
|
-
}
|
777
|
-
drawHueSlider() {
|
778
|
-
const context = this.hueSliderRenderingContext;
|
779
|
-
const { dimensions: { slider: { height, width }, thumb: { radius: thumbRadius }, }, } = this;
|
780
|
-
const x = 0;
|
781
|
-
const y = thumbRadius - height / 2;
|
782
|
-
const gradient = context.createLinearGradient(0, 0, width, 0);
|
783
|
-
const hueSliderColorStopKeywords = [
|
784
|
-
"red",
|
785
|
-
"yellow",
|
786
|
-
"lime",
|
787
|
-
"cyan",
|
788
|
-
"blue",
|
789
|
-
"magenta",
|
790
|
-
"#ff0004" /* 1 unit less than #ff0 to avoid duplicate values within range */,
|
791
|
-
];
|
792
|
-
const offset = 1 / (hueSliderColorStopKeywords.length - 1);
|
793
|
-
let currentOffset = 0;
|
794
|
-
hueSliderColorStopKeywords.forEach((keyword) => {
|
795
|
-
gradient.addColorStop(currentOffset, color(keyword).string());
|
796
|
-
currentOffset += offset;
|
797
|
-
});
|
798
|
-
context.clearRect(0, 0, width, height + this.getSliderCapSpacing() * 2);
|
799
|
-
this.drawSliderPath(context, height, width, x, y);
|
800
|
-
context.fillStyle = gradient;
|
801
|
-
context.fill();
|
802
|
-
context.strokeStyle = "rgba(0,0,0,0.3)";
|
803
|
-
context.lineWidth = 1;
|
804
|
-
context.stroke();
|
805
|
-
this.drawActiveHueSliderColor();
|
806
|
-
}
|
807
|
-
drawOpacitySlider() {
|
808
|
-
const context = this.opacitySliderRenderingContext;
|
809
|
-
const { baseColorFieldColor: previousColor, dimensions: { slider: { height, width }, thumb: { radius: thumbRadius }, }, } = this;
|
810
|
-
const x = 0;
|
811
|
-
const y = thumbRadius - height / 2;
|
812
|
-
context.clearRect(0, 0, width, height + this.getSliderCapSpacing() * 2);
|
813
|
-
const gradient = context.createLinearGradient(0, y, width, 0);
|
814
|
-
const startColor = previousColor.rgb().alpha(0);
|
815
|
-
const midColor = previousColor.rgb().alpha(0.5);
|
816
|
-
const endColor = previousColor.rgb().alpha(1);
|
817
|
-
gradient.addColorStop(0, startColor.string());
|
818
|
-
gradient.addColorStop(0.5, midColor.string());
|
819
|
-
gradient.addColorStop(1, endColor.string());
|
820
|
-
this.drawSliderPath(context, height, width, x, y);
|
821
|
-
const pattern = context.createPattern(this.getCheckeredBackgroundPattern(), "repeat");
|
822
|
-
context.fillStyle = pattern;
|
823
|
-
context.fill();
|
824
|
-
context.fillStyle = gradient;
|
825
|
-
context.fill();
|
826
|
-
context.strokeStyle = "rgba(0,0,0,0.3)";
|
827
|
-
context.lineWidth = 1;
|
828
|
-
context.stroke();
|
829
|
-
this.drawActiveOpacitySliderColor();
|
830
|
-
}
|
831
|
-
drawSliderPath(context, height, width, x, y) {
|
832
|
-
const radius = height / 2 + 1;
|
833
|
-
context.beginPath();
|
834
|
-
context.moveTo(x + radius, y);
|
835
|
-
context.lineTo(x + width - radius, y);
|
836
|
-
context.quadraticCurveTo(x + width, y, x + width, y + radius);
|
837
|
-
context.lineTo(x + width, y + height - radius);
|
838
|
-
context.quadraticCurveTo(x + width, y + height, x + width - radius, y + height);
|
839
|
-
context.lineTo(x + radius, y + height);
|
840
|
-
context.quadraticCurveTo(x, y + height, x, y + height - radius);
|
841
|
-
context.lineTo(x, y + radius);
|
842
|
-
context.quadraticCurveTo(x, y, x + radius, y);
|
843
|
-
context.closePath();
|
844
|
-
}
|
845
|
-
getCheckeredBackgroundPattern() {
|
846
|
-
if (this.checkerPattern) {
|
847
|
-
return this.checkerPattern;
|
848
|
-
}
|
849
|
-
const pattern = document.createElement("canvas");
|
850
|
-
pattern.width = 10;
|
851
|
-
pattern.height = 10;
|
852
|
-
const patternContext = pattern.getContext("2d");
|
853
|
-
patternContext.fillStyle = "#ccc";
|
854
|
-
patternContext.fillRect(0, 0, 10, 10);
|
855
|
-
patternContext.fillStyle = "#fff";
|
856
|
-
patternContext.fillRect(0, 0, 5, 5);
|
857
|
-
patternContext.fillRect(5, 5, 5, 5);
|
858
|
-
this.checkerPattern = pattern;
|
859
|
-
return pattern;
|
860
|
-
}
|
861
|
-
drawActiveOpacitySliderColor() {
|
862
|
-
const { color } = this;
|
863
|
-
if (!color) {
|
864
|
-
return;
|
865
|
-
}
|
866
|
-
const hsvColor = color;
|
867
|
-
const { dimensions: { slider: { width }, thumb: { radius }, }, } = this;
|
868
|
-
const x = alphaToOpacity(hsvColor.alpha()) / (OPACITY_LIMITS.max / width);
|
869
|
-
const y = radius;
|
870
|
-
const sliderBoundX = this.getSliderBoundX(x, width, radius);
|
871
|
-
requestAnimationFrame(() => {
|
872
|
-
this.opacityScopeLeft = sliderBoundX;
|
873
|
-
});
|
874
|
-
this.drawThumb(this.opacitySliderRenderingContext, radius, sliderBoundX, y, hsvColor, true);
|
875
|
-
}
|
876
|
-
getSliderBoundX(x, width, radius) {
|
877
|
-
const closeToEdge = closeToRangeEdge(x, width, radius);
|
878
|
-
return closeToEdge === 0
|
879
|
-
? x
|
880
|
-
: closeToEdge === -1
|
881
|
-
? remap(x, 0, width, radius, radius * 2)
|
882
|
-
: remap(x, 0, width, width - radius * 2, width - radius);
|
883
|
-
}
|
884
|
-
updateColorFromChannels(channels) {
|
885
|
-
this.internalColorSet(color(channels, this.channelMode));
|
886
|
-
}
|
887
|
-
updateChannelsFromColor(color) {
|
888
|
-
this.channels = color ? this.toChannels(color) : [null, null, null, null];
|
889
|
-
}
|
890
|
-
toChannels(color) {
|
891
|
-
const { channelMode } = this;
|
892
|
-
const channels = color[channelMode]()
|
893
|
-
.array()
|
894
|
-
.map((value, index) => {
|
895
|
-
const isAlpha = index === 3;
|
896
|
-
return isAlpha ? value : Math.floor(value);
|
897
|
-
});
|
898
|
-
if (channels.length === 3) {
|
899
|
-
channels.push(1); // Color omits alpha when 1
|
900
|
-
}
|
901
|
-
return channels;
|
902
|
-
}
|
903
|
-
getAdjustedScopePosition(left, top) {
|
904
|
-
return [left - SCOPE_SIZE / 2, top - SCOPE_SIZE / 2];
|
905
|
-
}
|
906
|
-
static get delegatesFocus() { return true; }
|
907
|
-
static get assetsDirs() { return ["assets"]; }
|
908
|
-
get el() { return getElement(this); }
|
909
|
-
static get watchers() { return {
|
910
|
-
"allowEmpty": ["handleAllowEmptyOrClearableChange"],
|
911
|
-
"clearable": ["handleAllowEmptyOrClearableChange"],
|
912
|
-
"alphaChannel": ["handleAlphaChannelChange", "handleFormatOrAlphaChannelChange"],
|
913
|
-
"color": ["handleColorChange"],
|
914
|
-
"format": ["handleFormatOrAlphaChannelChange"],
|
915
|
-
"scale": ["handleScaleChange"],
|
916
|
-
"messageOverrides": ["onMessagesChange"],
|
917
|
-
"value": ["handleValueChange"],
|
918
|
-
"effectiveLocale": ["effectiveLocaleChange"]
|
919
|
-
}; }
|
920
|
-
};
|
921
|
-
ColorPicker.style = colorPickerCss;
|
922
|
-
|
923
|
-
export { ColorPicker as calcite_color_picker };
|