@esri/solutions-components 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/solution-config-modal/resources.json +22 -0
- package/dist/assets/t9n/solution-config-modal/resources_en.json +22 -0
- package/dist/cjs/ExpandToggle-73df0d51.js +2 -0
- package/dist/cjs/ExpandToggle-73df0d51.js.map +1 -0
- package/dist/cjs/Heading-6b7b374c.js +2 -0
- package/dist/cjs/Heading-6b7b374c.js.map +1 -0
- package/dist/cjs/_commonjsHelpers-6aafa5de.js +2 -0
- package/dist/cjs/_commonjsHelpers-6aafa5de.js.map +1 -0
- package/dist/cjs/app-globals-2f48e57e.js +2 -0
- package/dist/cjs/app-globals-2f48e57e.js.map +1 -0
- package/dist/cjs/array-ace6d4b5.js +2 -0
- package/dist/cjs/array-ace6d4b5.js.map +1 -0
- package/dist/cjs/buffer-tools_6.cjs.entry.js +2 -0
- package/dist/cjs/buffer-tools_6.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +2 -0
- package/dist/cjs/calcite-accordion-item.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-accordion.cjs.entry.js +2 -0
- package/dist/cjs/calcite-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-action-bar_6.cjs.entry.js +2 -0
- package/dist/cjs/calcite-action-bar_6.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-action-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-action-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js +20 -401
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -0
- package/dist/cjs/calcite-action-pad.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-action_2.cjs.entry.js +425 -71
- package/dist/cjs/calcite-action_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-alert.cjs.entry.js +2 -0
- package/dist/cjs/calcite-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-avatar.cjs.entry.js +2 -0
- package/dist/cjs/calcite-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-block-section.cjs.entry.js +2 -0
- package/dist/cjs/calcite-block-section.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-block.cjs.entry.js +2 -0
- package/dist/cjs/calcite-block.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-button.cjs.entry.js +2 -0
- package/dist/cjs/calcite-button.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-card.cjs.entry.js +2 -0
- package/dist/cjs/calcite-card.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-checkbox.cjs.entry.js +2 -0
- package/dist/cjs/calcite-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-chip.cjs.entry.js +2 -0
- package/dist/cjs/calcite-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +2 -0
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +2 -0
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-color-picker.cjs.entry.js +2 -0
- package/dist/cjs/calcite-color-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +2 -0
- package/dist/cjs/calcite-combobox_3.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +2 -0
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-date-picker.cjs.entry.js +2 -0
- package/dist/cjs/calcite-date-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js +2 -0
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-dropdown.cjs.entry.js +2 -0
- package/dist/cjs/calcite-dropdown.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-fab.cjs.entry.js +2 -0
- package/dist/cjs/calcite-fab.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-filter.cjs.entry.js +2 -0
- package/dist/cjs/calcite-filter.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-flow-item.cjs.entry.js +2 -0
- package/dist/cjs/calcite-flow-item.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-flow.cjs.entry.js +2 -0
- package/dist/cjs/calcite-flow.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-graph.cjs.entry.js +2 -0
- package/dist/cjs/calcite-graph.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-handle.cjs.entry.js +2 -0
- package/dist/cjs/calcite-handle.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-icon.cjs.entry.js +2 -0
- package/dist/cjs/calcite-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +2 -0
- package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +2 -0
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-input-number.cjs.entry.js +2 -0
- package/dist/cjs/calcite-input-number.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-input-text.cjs.entry.js +2 -0
- package/dist/cjs/calcite-input-text.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +2 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-input_2.cjs.entry.js +2 -0
- package/dist/cjs/calcite-input_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-label.cjs.entry.js +2 -0
- package/dist/cjs/calcite-label.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-link.cjs.entry.js +2 -0
- package/dist/cjs/calcite-link.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-list-item-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-list_2.cjs.entry.js +2 -0
- package/dist/cjs/calcite-list_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-loader.cjs.entry.js +97 -0
- package/dist/cjs/calcite-loader.cjs.entry.js.map +1 -0
- package/dist/cjs/{solution-configuration.cjs.entry.js → calcite-modal_2.cjs.entry.js} +452 -6
- package/dist/cjs/calcite-modal_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-option-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-option-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-option_2.cjs.entry.js +2 -0
- package/dist/cjs/calcite-option_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-pagination.cjs.entry.js +2 -0
- package/dist/cjs/calcite-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/{calcite-shell-panel_14.cjs.entry.js → calcite-panel_12.cjs.entry.js} +469 -711
- package/dist/cjs/calcite-panel_12.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +2 -0
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-pick-list.cjs.entry.js +2 -0
- package/dist/cjs/calcite-pick-list.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-popover-manager.cjs.entry.js +2 -0
- package/dist/cjs/calcite-popover-manager.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-radio-button.cjs.entry.js +2 -0
- package/dist/cjs/calcite-radio-button.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-rating.cjs.entry.js +2 -0
- package/dist/cjs/calcite-rating.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +2 -0
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +2 -0
- package/dist/cjs/calcite-sortable-list.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-split-button.cjs.entry.js +2 -0
- package/dist/cjs/calcite-split-button.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +2 -0
- package/dist/cjs/calcite-stepper-item.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-stepper.cjs.entry.js +2 -0
- package/dist/cjs/calcite-stepper.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-switch.cjs.entry.js +2 -0
- package/dist/cjs/calcite-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tile-select.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tile-select.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tile.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tile.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-time-picker.cjs.entry.js +2 -0
- package/dist/cjs/calcite-time-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tip-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tip-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tip-manager.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tip.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tip.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tooltip-manager.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tooltip-manager.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tooltip.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tree_3.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tree_3.cjs.entry.js.map +1 -0
- package/dist/cjs/check-list.cjs.entry.js +2 -0
- package/dist/cjs/check-list.cjs.entry.js.map +1 -0
- package/dist/cjs/conditionalSlot-2defe83d.js +2 -0
- package/dist/cjs/conditionalSlot-2defe83d.js.map +1 -0
- package/dist/cjs/config-buffer-tools.cjs.entry.js +2 -0
- package/dist/cjs/config-buffer-tools.cjs.entry.js.map +1 -0
- package/dist/cjs/config-draw-tools.cjs.entry.js +2 -0
- package/dist/cjs/config-draw-tools.cjs.entry.js.map +1 -0
- package/dist/cjs/config-layer-picker.cjs.entry.js +2 -0
- package/dist/cjs/config-layer-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/config-pdf-download.cjs.entry.js +2 -0
- package/dist/cjs/config-pdf-download.cjs.entry.js.map +1 -0
- package/dist/cjs/date-e21b2052.js +2 -0
- package/dist/cjs/date-e21b2052.js.map +1 -0
- package/dist/cjs/debounce-69c3bada.js +2 -0
- package/dist/cjs/debounce-69c3bada.js.map +1 -0
- package/dist/cjs/dom-4a580af6.js +2 -0
- package/dist/cjs/dom-4a580af6.js.map +1 -0
- package/dist/cjs/filter-325f654f.js +2 -0
- package/dist/cjs/filter-325f654f.js.map +1 -0
- package/dist/cjs/floating-ui-ca1bcead.js +2 -0
- package/dist/cjs/floating-ui-ca1bcead.js.map +1 -0
- package/dist/cjs/form-45849654.js +2 -0
- package/dist/cjs/form-45849654.js.map +1 -0
- package/dist/cjs/guid-84ac4d91.js +2 -0
- package/dist/cjs/guid-84ac4d91.js.map +1 -0
- package/dist/cjs/index-7af21b6f.js +2 -0
- package/dist/cjs/index-7af21b6f.js.map +1 -0
- package/dist/cjs/index-a86078a0.js +2 -0
- package/dist/cjs/index-a86078a0.js.map +1 -0
- package/dist/cjs/index-d7f9770d.js +2 -0
- package/dist/cjs/index-d7f9770d.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/interactive-0a68ab99.js +2 -0
- package/dist/cjs/interactive-0a68ab99.js.map +1 -0
- package/dist/cjs/interfaces-ab603e16.js +2 -0
- package/dist/cjs/interfaces-ab603e16.js.map +1 -0
- package/dist/cjs/interfaces-e76f31e9.js +2 -0
- package/dist/cjs/interfaces-e76f31e9.js.map +1 -0
- package/dist/cjs/key-55aca5c0.js +2 -0
- package/dist/cjs/key-55aca5c0.js.map +1 -0
- package/dist/cjs/label-24fcd8a5.js +2 -0
- package/dist/cjs/label-24fcd8a5.js.map +1 -0
- package/dist/cjs/labelFormats-3236d2e0.js +2 -0
- package/dist/cjs/labelFormats-3236d2e0.js.map +1 -0
- package/dist/cjs/loadModules-38269f99.js +2 -0
- package/dist/cjs/loadModules-38269f99.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -1
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/locale-73cab8e8.js +2 -0
- package/dist/cjs/locale-73cab8e8.js.map +1 -0
- package/dist/cjs/locale-746a095d.js +2 -0
- package/dist/cjs/locale-746a095d.js.map +1 -0
- package/dist/cjs/map-search.cjs.entry.js +2 -0
- package/dist/cjs/map-search.cjs.entry.js.map +1 -0
- package/dist/cjs/mapViewUtils-67cfc412.js +2 -0
- package/dist/cjs/mapViewUtils-67cfc412.js.map +1 -0
- package/dist/cjs/math-460fffaf.js +2 -0
- package/dist/cjs/math-460fffaf.js.map +1 -0
- package/dist/cjs/nonChromiumPlatformUtils-7a6a84d2.js +2 -0
- package/dist/cjs/nonChromiumPlatformUtils-7a6a84d2.js.map +1 -0
- package/dist/cjs/observers-5311faf8.js +2 -0
- package/dist/cjs/observers-5311faf8.js.map +1 -0
- package/dist/cjs/openCloseComponent-bf986132.js +2 -0
- package/dist/cjs/openCloseComponent-bf986132.js.map +1 -0
- package/dist/cjs/public-notification.cjs.entry.js +2 -0
- package/dist/cjs/public-notification.cjs.entry.js.map +1 -0
- package/dist/cjs/publicNotificationStore-6a3d40b3.js +2 -0
- package/dist/cjs/publicNotificationStore-6a3d40b3.js.map +1 -0
- package/dist/cjs/publicNotificationUtils-9d585d8d.js +2 -0
- package/dist/cjs/publicNotificationUtils-9d585d8d.js.map +1 -0
- package/dist/cjs/resources-1f785471.js +2 -0
- package/dist/cjs/resources-1f785471.js.map +1 -0
- package/dist/cjs/resources-2260d186.js +2 -0
- package/dist/cjs/resources-2260d186.js.map +1 -0
- package/dist/cjs/resources-2a9862c7.js +2 -0
- package/dist/cjs/resources-2a9862c7.js.map +1 -0
- package/dist/cjs/resources-308edbd8.js +2 -0
- package/dist/cjs/resources-308edbd8.js.map +1 -0
- package/dist/cjs/resources-6152b073.js +2 -0
- package/dist/cjs/resources-6152b073.js.map +1 -0
- package/dist/cjs/resources-808cfca8.js +2 -0
- package/dist/cjs/resources-808cfca8.js.map +1 -0
- package/dist/cjs/resources-9c55e05c.js +2 -0
- package/dist/cjs/resources-9c55e05c.js.map +1 -0
- package/dist/cjs/resources-aa19bf8c.js +2 -0
- package/dist/cjs/resources-aa19bf8c.js.map +1 -0
- package/dist/cjs/resources-b56bce71.js +2 -0
- package/dist/cjs/resources-b56bce71.js.map +1 -0
- package/dist/cjs/resources-cc7f63b0.js +2 -0
- package/dist/cjs/resources-cc7f63b0.js.map +1 -0
- package/dist/cjs/shared-list-render-4c7d84bf.js +2 -0
- package/dist/cjs/shared-list-render-4c7d84bf.js.map +1 -0
- package/dist/cjs/solution-config-modal.cjs.entry.js +131 -0
- package/dist/cjs/solution-config-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/{solution-contents_3.cjs.entry.js → solution-contents_7.cjs.entry.js} +665 -2
- package/dist/cjs/solution-contents_7.cjs.entry.js.map +1 -0
- package/dist/cjs/{solution-store-e2fc11ac.js → solution-store-09b3fc53.js} +5 -3
- package/dist/cjs/solution-store-09b3fc53.js.map +1 -0
- package/dist/cjs/solutions-components.cjs.js +3 -1
- package/dist/cjs/solutions-components.cjs.js.map +1 -0
- package/dist/cjs/sortable.esm-bf47019d.js +2 -0
- package/dist/cjs/sortable.esm-bf47019d.js.map +1 -0
- package/dist/cjs/store-manager.cjs.entry.js +2 -0
- package/dist/cjs/store-manager.cjs.entry.js.map +1 -0
- package/dist/cjs/time-3f5577cb.js +2 -0
- package/dist/cjs/time-3f5577cb.js.map +1 -0
- package/dist/cjs/utils-120bbbeb.js +2 -0
- package/dist/cjs/utils-120bbbeb.js.map +1 -0
- package/dist/cjs/utils-b4236001.js +2 -0
- package/dist/cjs/utils-b4236001.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/buffer-tools/buffer-tools.js +1 -0
- package/dist/collection/components/buffer-tools/buffer-tools.js.map +1 -0
- package/dist/collection/components/check-list/check-list.js +1 -0
- package/dist/collection/components/check-list/check-list.js.map +1 -0
- package/dist/collection/components/config-buffer-tools/config-buffer-tools.js +1 -0
- package/dist/collection/components/config-buffer-tools/config-buffer-tools.js.map +1 -0
- package/dist/collection/components/config-draw-tools/config-draw-tools.js +1 -0
- package/dist/collection/components/config-draw-tools/config-draw-tools.js.map +1 -0
- package/dist/collection/components/config-layer-picker/config-layer-picker.js +1 -0
- package/dist/collection/components/config-layer-picker/config-layer-picker.js.map +1 -0
- package/dist/collection/components/config-pdf-download/config-pdf-download.js +1 -0
- package/dist/collection/components/config-pdf-download/config-pdf-download.js.map +1 -0
- package/dist/collection/components/json-editor/json-editor.js +1 -0
- package/dist/collection/components/json-editor/json-editor.js.map +1 -0
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -0
- package/dist/collection/components/map-draw-tools/map-draw-tools.js.map +1 -0
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -0
- package/dist/collection/components/map-layer-picker/map-layer-picker.js.map +1 -0
- package/dist/collection/components/map-search/map-search.js +1 -0
- package/dist/collection/components/map-search/map-search.js.map +1 -0
- package/dist/collection/components/map-select-tools/map-select-tools.js +1 -0
- package/dist/collection/components/map-select-tools/map-select-tools.js.map +1 -0
- package/dist/collection/components/pdf-download/pdf-download.js +1 -0
- package/dist/collection/components/pdf-download/pdf-download.js.map +1 -0
- package/dist/collection/components/public-notification/public-notification.js +1 -0
- package/dist/collection/components/public-notification/public-notification.js.map +1 -0
- package/dist/collection/components/refine-selection/refine-selection.js +1 -0
- package/dist/collection/components/refine-selection/refine-selection.js.map +1 -0
- package/dist/collection/components/refine-selection-tools/refine-selection-tools.js +1 -0
- package/dist/collection/components/refine-selection-tools/refine-selection-tools.js.map +1 -0
- package/dist/collection/components/solution-config-modal/solution-config-modal.css +91 -0
- package/dist/collection/components/solution-config-modal/solution-config-modal.js +245 -0
- package/dist/collection/components/solution-config-modal/solution-config-modal.js.map +1 -0
- package/dist/collection/components/solution-configuration/solution-configuration.js +24 -11
- package/dist/collection/components/solution-configuration/solution-configuration.js.map +1 -0
- package/dist/collection/components/solution-contents/solution-contents.js +1 -0
- package/dist/collection/components/solution-contents/solution-contents.js.map +1 -0
- package/dist/collection/components/solution-item/solution-item.js +1 -0
- package/dist/collection/components/solution-item/solution-item.js.map +1 -0
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -0
- package/dist/collection/components/solution-item-details/solution-item-details.js.map +1 -0
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -0
- package/dist/collection/components/solution-item-icon/solution-item-icon.js.map +1 -0
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -0
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js.map +1 -0
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -0
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js.map +1 -0
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -0
- package/dist/collection/components/solution-resource-item/solution-resource-item.js.map +1 -0
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -0
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js.map +1 -0
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js +1 -0
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js.map +1 -0
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -0
- package/dist/collection/components/solution-template-data/solution-template-data.js.map +1 -0
- package/dist/collection/components/solution-variables/solution-variables.js +1 -0
- package/dist/collection/components/solution-variables/solution-variables.js.map +1 -0
- package/dist/collection/components/store-manager/store-manager.js +1 -0
- package/dist/collection/components/store-manager/store-manager.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/common.js +1 -0
- package/dist/collection/utils/common.js.map +1 -0
- package/dist/collection/utils/csvUtils.js +1 -0
- package/dist/collection/utils/csvUtils.js.map +1 -0
- package/dist/collection/utils/interfaces.js +1 -0
- package/dist/collection/utils/interfaces.js.map +1 -0
- package/dist/collection/utils/languageUtil.js +1 -0
- package/dist/collection/utils/languageUtil.js.map +1 -0
- package/dist/collection/utils/loadModules.js +1 -0
- package/dist/collection/utils/loadModules.js.map +1 -0
- package/dist/collection/utils/locale.js +1 -0
- package/dist/collection/utils/locale.js.map +1 -0
- package/dist/collection/utils/mapViewUtils.js +1 -0
- package/dist/collection/utils/mapViewUtils.js.map +1 -0
- package/dist/collection/utils/publicNotificationStore.js +1 -0
- package/dist/collection/utils/publicNotificationStore.js.map +1 -0
- package/dist/collection/utils/publicNotificationUtils.js +1 -0
- package/dist/collection/utils/publicNotificationUtils.js.map +1 -0
- package/dist/collection/utils/queryUtils.js +1 -0
- package/dist/collection/utils/queryUtils.js.map +1 -0
- package/dist/collection/utils/solution-store.js +4 -3
- package/dist/collection/utils/solution-store.js.map +1 -0
- package/dist/collection/utils/solution-store.ts +3 -3
- package/dist/collection/utils/templates.js +1 -0
- package/dist/collection/utils/templates.js.map +1 -0
- package/dist/collection/utils/test/testUtils.js +1 -0
- package/dist/collection/utils/test/testUtils.js.map +1 -0
- package/dist/collection/utils/types.js +1 -0
- package/dist/collection/utils/types.js.map +1 -0
- package/dist/esm/ExpandToggle-b7d1fb3c.js +2 -0
- package/dist/esm/ExpandToggle-b7d1fb3c.js.map +1 -0
- package/dist/esm/Heading-1efb4837.js +2 -0
- package/dist/esm/Heading-1efb4837.js.map +1 -0
- package/dist/esm/_commonjsHelpers-8fd39c50.js +2 -0
- package/dist/esm/_commonjsHelpers-8fd39c50.js.map +1 -0
- package/dist/esm/app-globals-09b9efee.js +2 -0
- package/dist/esm/app-globals-09b9efee.js.map +1 -0
- package/dist/esm/array-2ab3b18f.js +2 -0
- package/dist/esm/array-2ab3b18f.js.map +1 -0
- package/dist/esm/buffer-tools_6.entry.js +4 -2
- package/dist/esm/buffer-tools_6.entry.js.map +1 -0
- package/dist/esm/calcite-accordion-item.entry.js +2 -0
- package/dist/esm/calcite-accordion-item.entry.js.map +1 -0
- package/dist/esm/calcite-accordion.entry.js +2 -0
- package/dist/esm/calcite-accordion.entry.js.map +1 -0
- package/dist/esm/calcite-action-bar_6.entry.js +4 -2
- package/dist/esm/calcite-action-bar_6.entry.js.map +1 -0
- package/dist/esm/calcite-action-group.entry.js +2 -0
- package/dist/esm/calcite-action-group.entry.js.map +1 -0
- package/dist/esm/calcite-action-menu_2.entry.js +22 -403
- package/dist/esm/calcite-action-menu_2.entry.js.map +1 -0
- package/dist/esm/calcite-action-pad.entry.js +2 -0
- package/dist/esm/calcite-action-pad.entry.js.map +1 -0
- package/dist/esm/calcite-action_2.entry.js +426 -72
- package/dist/esm/calcite-action_2.entry.js.map +1 -0
- package/dist/esm/calcite-alert.entry.js +2 -0
- package/dist/esm/calcite-alert.entry.js.map +1 -0
- package/dist/esm/calcite-avatar.entry.js +2 -0
- package/dist/esm/calcite-avatar.entry.js.map +1 -0
- package/dist/esm/calcite-block-section.entry.js +2 -0
- package/dist/esm/calcite-block-section.entry.js.map +1 -0
- package/dist/esm/calcite-block.entry.js +2 -0
- package/dist/esm/calcite-block.entry.js.map +1 -0
- package/dist/esm/calcite-button.entry.js +2 -0
- package/dist/esm/calcite-button.entry.js.map +1 -0
- package/dist/esm/calcite-card.entry.js +2 -0
- package/dist/esm/calcite-card.entry.js.map +1 -0
- package/dist/esm/calcite-checkbox.entry.js +2 -0
- package/dist/esm/calcite-checkbox.entry.js.map +1 -0
- package/dist/esm/calcite-chip.entry.js +2 -0
- package/dist/esm/calcite-chip.entry.js.map +1 -0
- package/dist/esm/calcite-color-picker-hex-input.entry.js +2 -0
- package/dist/esm/calcite-color-picker-hex-input.entry.js.map +1 -0
- package/dist/esm/calcite-color-picker-swatch.entry.js +2 -0
- package/dist/esm/calcite-color-picker-swatch.entry.js.map +1 -0
- package/dist/esm/calcite-color-picker.entry.js +2 -0
- package/dist/esm/calcite-color-picker.entry.js.map +1 -0
- package/dist/esm/calcite-combobox-item-group.entry.js +2 -0
- package/dist/esm/calcite-combobox-item-group.entry.js.map +1 -0
- package/dist/esm/calcite-combobox_3.entry.js +4 -2
- package/dist/esm/calcite-combobox_3.entry.js.map +1 -0
- package/dist/esm/calcite-date-picker-day_3.entry.js +2 -0
- package/dist/esm/calcite-date-picker-day_3.entry.js.map +1 -0
- package/dist/esm/calcite-date-picker.entry.js +2 -0
- package/dist/esm/calcite-date-picker.entry.js.map +1 -0
- package/dist/esm/calcite-dropdown-group.entry.js +2 -0
- package/dist/esm/calcite-dropdown-group.entry.js.map +1 -0
- package/dist/esm/calcite-dropdown-item.entry.js +2 -0
- package/dist/esm/calcite-dropdown-item.entry.js.map +1 -0
- package/dist/esm/calcite-dropdown.entry.js +2 -0
- package/dist/esm/calcite-dropdown.entry.js.map +1 -0
- package/dist/esm/calcite-fab.entry.js +2 -0
- package/dist/esm/calcite-fab.entry.js.map +1 -0
- package/dist/esm/calcite-filter.entry.js +2 -0
- package/dist/esm/calcite-filter.entry.js.map +1 -0
- package/dist/esm/calcite-flow-item.entry.js +2 -0
- package/dist/esm/calcite-flow-item.entry.js.map +1 -0
- package/dist/esm/calcite-flow.entry.js +2 -0
- package/dist/esm/calcite-flow.entry.js.map +1 -0
- package/dist/esm/calcite-graph.entry.js +2 -0
- package/dist/esm/calcite-graph.entry.js.map +1 -0
- package/dist/esm/calcite-handle.entry.js +2 -0
- package/dist/esm/calcite-handle.entry.js.map +1 -0
- package/dist/esm/calcite-icon.entry.js +2 -0
- package/dist/esm/calcite-icon.entry.js.map +1 -0
- package/dist/esm/calcite-inline-editable.entry.js +2 -0
- package/dist/esm/calcite-inline-editable.entry.js.map +1 -0
- package/dist/esm/calcite-input-date-picker.entry.js +2 -0
- package/dist/esm/calcite-input-date-picker.entry.js.map +1 -0
- package/dist/esm/calcite-input-number.entry.js +2 -0
- package/dist/esm/calcite-input-number.entry.js.map +1 -0
- package/dist/esm/calcite-input-text.entry.js +2 -0
- package/dist/esm/calcite-input-text.entry.js.map +1 -0
- package/dist/esm/calcite-input-time-picker.entry.js +2 -0
- package/dist/esm/calcite-input-time-picker.entry.js.map +1 -0
- package/dist/esm/calcite-input_2.entry.js +2 -0
- package/dist/esm/calcite-input_2.entry.js.map +1 -0
- package/dist/esm/calcite-label.entry.js +2 -0
- package/dist/esm/calcite-label.entry.js.map +1 -0
- package/dist/esm/calcite-link.entry.js +2 -0
- package/dist/esm/calcite-link.entry.js.map +1 -0
- package/dist/esm/calcite-list-item-group.entry.js +2 -0
- package/dist/esm/calcite-list-item-group.entry.js.map +1 -0
- package/dist/esm/calcite-list_2.entry.js +2 -0
- package/dist/esm/calcite-list_2.entry.js.map +1 -0
- package/dist/esm/calcite-loader.entry.js +93 -0
- package/dist/esm/calcite-loader.entry.js.map +1 -0
- package/dist/esm/{solution-configuration.entry.js → calcite-modal_2.entry.js} +454 -9
- package/dist/esm/calcite-modal_2.entry.js.map +1 -0
- package/dist/esm/calcite-option-group.entry.js +2 -0
- package/dist/esm/calcite-option-group.entry.js.map +1 -0
- package/dist/esm/calcite-option_2.entry.js +2 -0
- package/dist/esm/calcite-option_2.entry.js.map +1 -0
- package/dist/esm/calcite-pagination.entry.js +2 -0
- package/dist/esm/calcite-pagination.entry.js.map +1 -0
- package/dist/esm/{calcite-shell-panel_14.entry.js → calcite-panel_12.entry.js} +468 -708
- package/dist/esm/calcite-panel_12.entry.js.map +1 -0
- package/dist/esm/calcite-pick-list-group.entry.js +2 -0
- package/dist/esm/calcite-pick-list-group.entry.js.map +1 -0
- package/dist/esm/calcite-pick-list-item.entry.js +2 -0
- package/dist/esm/calcite-pick-list-item.entry.js.map +1 -0
- package/dist/esm/calcite-pick-list.entry.js +2 -0
- package/dist/esm/calcite-pick-list.entry.js.map +1 -0
- package/dist/esm/calcite-popover-manager.entry.js +2 -0
- package/dist/esm/calcite-popover-manager.entry.js.map +1 -0
- package/dist/esm/calcite-radio-button-group.entry.js +2 -0
- package/dist/esm/calcite-radio-button-group.entry.js.map +1 -0
- package/dist/esm/calcite-radio-button.entry.js +2 -0
- package/dist/esm/calcite-radio-button.entry.js.map +1 -0
- package/dist/esm/calcite-rating.entry.js +2 -0
- package/dist/esm/calcite-rating.entry.js.map +1 -0
- package/dist/esm/calcite-shell-center-row.entry.js +2 -0
- package/dist/esm/calcite-shell-center-row.entry.js.map +1 -0
- package/dist/esm/calcite-sortable-list.entry.js +2 -0
- package/dist/esm/calcite-sortable-list.entry.js.map +1 -0
- package/dist/esm/calcite-split-button.entry.js +2 -0
- package/dist/esm/calcite-split-button.entry.js.map +1 -0
- package/dist/esm/calcite-stepper-item.entry.js +2 -0
- package/dist/esm/calcite-stepper-item.entry.js.map +1 -0
- package/dist/esm/calcite-stepper.entry.js +2 -0
- package/dist/esm/calcite-stepper.entry.js.map +1 -0
- package/dist/esm/calcite-switch.entry.js +2 -0
- package/dist/esm/calcite-switch.entry.js.map +1 -0
- package/dist/esm/calcite-tile-select-group.entry.js +2 -0
- package/dist/esm/calcite-tile-select-group.entry.js.map +1 -0
- package/dist/esm/calcite-tile-select.entry.js +2 -0
- package/dist/esm/calcite-tile-select.entry.js.map +1 -0
- package/dist/esm/calcite-tile.entry.js +2 -0
- package/dist/esm/calcite-tile.entry.js.map +1 -0
- package/dist/esm/calcite-time-picker.entry.js +2 -0
- package/dist/esm/calcite-time-picker.entry.js.map +1 -0
- package/dist/esm/calcite-tip-group.entry.js +2 -0
- package/dist/esm/calcite-tip-group.entry.js.map +1 -0
- package/dist/esm/calcite-tip-manager.entry.js +2 -0
- package/dist/esm/calcite-tip-manager.entry.js.map +1 -0
- package/dist/esm/calcite-tip.entry.js +2 -0
- package/dist/esm/calcite-tip.entry.js.map +1 -0
- package/dist/esm/calcite-tooltip-manager.entry.js +2 -0
- package/dist/esm/calcite-tooltip-manager.entry.js.map +1 -0
- package/dist/esm/calcite-tooltip.entry.js +2 -0
- package/dist/esm/calcite-tooltip.entry.js.map +1 -0
- package/dist/esm/calcite-tree_3.entry.js +2 -0
- package/dist/esm/calcite-tree_3.entry.js.map +1 -0
- package/dist/esm/check-list.entry.js +2 -0
- package/dist/esm/check-list.entry.js.map +1 -0
- package/dist/esm/conditionalSlot-bb4cab11.js +2 -0
- package/dist/esm/conditionalSlot-bb4cab11.js.map +1 -0
- package/dist/esm/config-buffer-tools.entry.js +2 -0
- package/dist/esm/config-buffer-tools.entry.js.map +1 -0
- package/dist/esm/config-draw-tools.entry.js +2 -0
- package/dist/esm/config-draw-tools.entry.js.map +1 -0
- package/dist/esm/config-layer-picker.entry.js +4 -2
- package/dist/esm/config-layer-picker.entry.js.map +1 -0
- package/dist/esm/config-pdf-download.entry.js +2 -0
- package/dist/esm/config-pdf-download.entry.js.map +1 -0
- package/dist/esm/date-45de0016.js +2 -0
- package/dist/esm/date-45de0016.js.map +1 -0
- package/dist/esm/debounce-4c884e5c.js +2 -0
- package/dist/esm/debounce-4c884e5c.js.map +1 -0
- package/dist/esm/dom-e593bf85.js +2 -0
- package/dist/esm/dom-e593bf85.js.map +1 -0
- package/dist/esm/filter-82935f2d.js +2 -0
- package/dist/esm/filter-82935f2d.js.map +1 -0
- package/dist/esm/floating-ui-69a55a27.js +2 -0
- package/dist/esm/floating-ui-69a55a27.js.map +1 -0
- package/dist/esm/form-dbfde8ce.js +2 -0
- package/dist/esm/form-dbfde8ce.js.map +1 -0
- package/dist/esm/guid-15fce7c0.js +2 -0
- package/dist/esm/guid-15fce7c0.js.map +1 -0
- package/dist/esm/index-15022d11.js +2 -0
- package/dist/esm/index-15022d11.js.map +1 -0
- package/dist/esm/index-9c882a6e.js +2 -0
- package/dist/esm/index-9c882a6e.js.map +1 -0
- package/dist/esm/index-d33ebc35.js +2 -0
- package/dist/esm/index-d33ebc35.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/interactive-822ffed6.js +2 -0
- package/dist/esm/interactive-822ffed6.js.map +1 -0
- package/dist/esm/interfaces-1bdfc3a8.js +72 -0
- package/dist/esm/interfaces-1bdfc3a8.js.map +1 -0
- package/dist/esm/interfaces-4ae145eb.js +2 -0
- package/dist/esm/interfaces-4ae145eb.js.map +1 -0
- package/dist/esm/key-acb660e7.js +2 -0
- package/dist/esm/key-acb660e7.js.map +1 -0
- package/dist/esm/label-d411de44.js +2 -0
- package/dist/esm/label-d411de44.js.map +1 -0
- package/dist/esm/labelFormats-b37958c3.js +2 -0
- package/dist/esm/labelFormats-b37958c3.js.map +1 -0
- package/dist/esm/loadModules-d3b50f95.js +2 -0
- package/dist/esm/loadModules-d3b50f95.js.map +1 -0
- package/dist/esm/loader.js +3 -1
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/locale-0b490b02.js +2 -0
- package/dist/esm/locale-0b490b02.js.map +1 -0
- package/dist/esm/locale-0e10d7e5.js +2 -0
- package/dist/esm/locale-0e10d7e5.js.map +1 -0
- package/dist/esm/map-search.entry.js +2 -0
- package/dist/esm/map-search.entry.js.map +1 -0
- package/dist/esm/mapViewUtils-809947c8.js +284 -0
- package/dist/esm/mapViewUtils-809947c8.js.map +1 -0
- package/dist/esm/math-552c5420.js +2 -0
- package/dist/esm/math-552c5420.js.map +1 -0
- package/dist/esm/nonChromiumPlatformUtils-ee349005.js +2 -0
- package/dist/esm/nonChromiumPlatformUtils-ee349005.js.map +1 -0
- package/dist/esm/observers-31601001.js +2 -0
- package/dist/esm/observers-31601001.js.map +1 -0
- package/dist/esm/openCloseComponent-5caff873.js +2 -0
- package/dist/esm/openCloseComponent-5caff873.js.map +1 -0
- package/dist/esm/public-notification.entry.js +4 -2
- package/dist/esm/public-notification.entry.js.map +1 -0
- package/dist/esm/publicNotificationStore-060c59c8.js +2 -0
- package/dist/esm/publicNotificationStore-060c59c8.js.map +1 -0
- package/dist/esm/publicNotificationUtils-5cb5a607.js +2 -0
- package/dist/esm/publicNotificationUtils-5cb5a607.js.map +1 -0
- package/dist/esm/resources-2235e4ff.js +2 -0
- package/dist/esm/resources-2235e4ff.js.map +1 -0
- package/dist/esm/resources-3d641588.js +2 -0
- package/dist/esm/resources-3d641588.js.map +1 -0
- package/dist/esm/resources-436ae282.js +2 -0
- package/dist/esm/resources-436ae282.js.map +1 -0
- package/dist/esm/resources-4d02cb48.js +2 -0
- package/dist/esm/resources-4d02cb48.js.map +1 -0
- package/dist/esm/resources-78132e50.js +2 -0
- package/dist/esm/resources-78132e50.js.map +1 -0
- package/dist/esm/resources-7d4a587f.js +2 -0
- package/dist/esm/resources-7d4a587f.js.map +1 -0
- package/dist/esm/resources-971845d1.js +2 -0
- package/dist/esm/resources-971845d1.js.map +1 -0
- package/dist/esm/resources-9eb63965.js +2 -0
- package/dist/esm/resources-9eb63965.js.map +1 -0
- package/dist/esm/resources-d60362c3.js +2 -0
- package/dist/esm/resources-d60362c3.js.map +1 -0
- package/dist/esm/resources-e3a5cf27.js +2 -0
- package/dist/esm/resources-e3a5cf27.js.map +1 -0
- package/dist/esm/shared-list-render-4e9d47a3.js +2 -0
- package/dist/esm/shared-list-render-4e9d47a3.js.map +1 -0
- package/dist/esm/solution-config-modal.entry.js +127 -0
- package/dist/esm/solution-config-modal.entry.js.map +1 -0
- package/dist/esm/{solution-contents_3.entry.js → solution-contents_7.entry.js} +662 -3
- package/dist/esm/solution-contents_7.entry.js.map +1 -0
- package/dist/esm/{solution-store-b3c65467.js → solution-store-d8519c64.js} +6 -4
- package/dist/esm/solution-store-d8519c64.js.map +1 -0
- package/dist/esm/solutions-components.js +3 -1
- package/dist/esm/solutions-components.js.map +1 -0
- package/dist/esm/sortable.esm-3b2eaa5c.js +2 -0
- package/dist/esm/sortable.esm-3b2eaa5c.js.map +1 -0
- package/dist/esm/store-manager.entry.js +2 -0
- package/dist/esm/store-manager.entry.js.map +1 -0
- package/dist/esm/time-f014778c.js +2 -0
- package/dist/esm/time-f014778c.js.map +1 -0
- package/dist/esm/utils-3f4ee4c3.js +2 -0
- package/dist/esm/utils-3f4ee4c3.js.map +1 -0
- package/dist/esm/utils-583554bc.js +2 -0
- package/dist/esm/utils-583554bc.js.map +1 -0
- package/dist/solutions-components/index.esm.js +2 -0
- package/dist/solutions-components/index.esm.js.map +1 -0
- package/dist/solutions-components/p-06dab43c.entry.js +140 -0
- package/dist/solutions-components/p-06dab43c.entry.js.map +1 -0
- package/dist/solutions-components/p-0bbe4865.entry.js +620 -0
- package/dist/solutions-components/p-0bbe4865.entry.js.map +1 -0
- package/dist/solutions-components/p-0fddf8a4.entry.js +349 -0
- package/dist/solutions-components/p-0fddf8a4.entry.js.map +1 -0
- package/dist/solutions-components/p-11068040.entry.js +1121 -0
- package/dist/solutions-components/p-11068040.entry.js.map +1 -0
- package/dist/solutions-components/p-11bc6805.entry.js +87 -0
- package/dist/solutions-components/p-11bc6805.entry.js.map +1 -0
- package/dist/solutions-components/p-13b37f05.js +308 -3
- package/dist/solutions-components/p-13b37f05.js.map +1 -0
- package/dist/solutions-components/p-1dfb5fae.entry.js +713 -0
- package/dist/solutions-components/p-1dfb5fae.entry.js.map +1 -0
- package/dist/solutions-components/p-1e15b1a3.js +183 -2
- package/dist/solutions-components/p-1e15b1a3.js.map +1 -0
- package/dist/solutions-components/p-1e5bc9c3.entry.js +96 -0
- package/dist/solutions-components/p-1e5bc9c3.entry.js.map +1 -0
- package/dist/solutions-components/p-1ed05745.entry.js +214 -0
- package/dist/solutions-components/p-1ed05745.entry.js.map +1 -0
- package/dist/solutions-components/p-20bdf42f.js +407 -14
- package/dist/solutions-components/p-20bdf42f.js.map +1 -0
- package/dist/solutions-components/p-22574d83.entry.js +74 -0
- package/dist/solutions-components/p-22574d83.entry.js.map +1 -0
- package/dist/solutions-components/p-23904a3d.js +401 -3
- package/dist/solutions-components/p-23904a3d.js.map +1 -0
- package/dist/solutions-components/p-26484399.entry.js +108 -0
- package/dist/solutions-components/p-26484399.entry.js.map +1 -0
- package/dist/solutions-components/p-2910dd9e.js +4094 -0
- package/dist/solutions-components/p-2910dd9e.js.map +1 -0
- package/dist/solutions-components/p-29bdbd3e.entry.js +280 -0
- package/dist/solutions-components/p-29bdbd3e.entry.js.map +1 -0
- package/dist/solutions-components/p-2ac06389.js +25 -16
- package/dist/solutions-components/p-2ac06389.js.map +1 -0
- package/dist/solutions-components/p-2bce7fa2.entry.js +45 -0
- package/dist/solutions-components/p-2bce7fa2.entry.js.map +1 -0
- package/dist/solutions-components/p-2e9ed892.js +48 -1
- package/dist/solutions-components/p-2e9ed892.js.map +1 -0
- package/dist/solutions-components/p-2f12ff1b.entry.js +202 -0
- package/dist/solutions-components/p-2f12ff1b.entry.js.map +1 -0
- package/dist/solutions-components/p-30810b45.entry.js +1250 -0
- package/dist/solutions-components/p-30810b45.entry.js.map +1 -0
- package/dist/solutions-components/p-32a67cb2.js +207 -2
- package/dist/solutions-components/p-32a67cb2.js.map +1 -0
- package/dist/solutions-components/p-341ff921.entry.js +449 -0
- package/dist/solutions-components/p-341ff921.entry.js.map +1 -0
- package/dist/solutions-components/p-36ce64e4.entry.js +215 -0
- package/dist/solutions-components/p-36ce64e4.entry.js.map +1 -0
- package/dist/solutions-components/p-374a5031.js +107 -2
- package/dist/solutions-components/p-374a5031.js.map +1 -0
- package/dist/solutions-components/p-38ddadf2.entry.js +342 -0
- package/dist/solutions-components/p-38ddadf2.entry.js.map +1 -0
- package/dist/solutions-components/p-3b010ce1.js +19 -1
- package/dist/solutions-components/p-3b010ce1.js.map +1 -0
- package/dist/solutions-components/p-3f6b0af4.js +221 -2
- package/dist/solutions-components/p-3f6b0af4.js.map +1 -0
- package/dist/solutions-components/p-400e1427.entry.js +236 -0
- package/dist/solutions-components/p-400e1427.entry.js.map +1 -0
- package/dist/solutions-components/p-40d7cf01.entry.js +228 -0
- package/dist/solutions-components/p-40d7cf01.entry.js.map +1 -0
- package/dist/solutions-components/p-45556aff.entry.js +215 -0
- package/dist/solutions-components/p-45556aff.entry.js.map +1 -0
- package/dist/solutions-components/p-49aaa793.entry.js +95 -0
- package/dist/solutions-components/p-49aaa793.entry.js.map +1 -0
- package/dist/solutions-components/p-4e32bf8c.js +484 -1
- package/dist/solutions-components/p-4e32bf8c.js.map +1 -0
- package/dist/solutions-components/p-4e89b243.entry.js +479 -0
- package/dist/solutions-components/p-4e89b243.entry.js.map +1 -0
- package/dist/solutions-components/p-515637fb.entry.js +183 -0
- package/dist/solutions-components/p-515637fb.entry.js.map +1 -0
- package/dist/solutions-components/p-5243a654.entry.js +147 -0
- package/dist/solutions-components/p-5243a654.entry.js.map +1 -0
- package/dist/solutions-components/p-55673790.entry.js +82 -0
- package/dist/solutions-components/p-55673790.entry.js.map +1 -0
- package/dist/solutions-components/p-56350bff.js +173 -2
- package/dist/solutions-components/p-56350bff.js.map +1 -0
- package/dist/solutions-components/p-58b374c0.entry.js +347 -0
- package/dist/solutions-components/p-58b374c0.entry.js.map +1 -0
- package/dist/solutions-components/p-58c69df2.js +2024 -2
- package/dist/solutions-components/p-58c69df2.js.map +1 -0
- package/dist/solutions-components/p-59fd6684.entry.js +22 -0
- package/dist/solutions-components/p-59fd6684.entry.js.map +1 -0
- package/dist/solutions-components/p-5b0d7c7d.js +35 -16
- package/dist/solutions-components/p-5b0d7c7d.js.map +1 -0
- package/dist/solutions-components/p-5b20090f.entry.js +22189 -0
- package/dist/solutions-components/p-5b20090f.entry.js.map +1 -0
- package/dist/solutions-components/p-5cf33602.js +43 -2
- package/dist/solutions-components/p-5cf33602.js.map +1 -0
- package/dist/solutions-components/p-600e23c6.js +1770 -2
- package/dist/solutions-components/p-600e23c6.js.map +1 -0
- package/dist/solutions-components/p-61398a7b.entry.js +74 -0
- package/dist/solutions-components/p-61398a7b.entry.js.map +1 -0
- package/dist/solutions-components/p-63a05701.entry.js +45 -0
- package/dist/solutions-components/p-63a05701.entry.js.map +1 -0
- package/dist/solutions-components/p-63f6e8f1.js +16 -1
- package/dist/solutions-components/p-63f6e8f1.js.map +1 -0
- package/dist/solutions-components/p-64a2040e.entry.js +63 -0
- package/dist/solutions-components/p-64a2040e.entry.js.map +1 -0
- package/dist/solutions-components/p-64c63eb2.entry.js +157 -0
- package/dist/solutions-components/p-64c63eb2.entry.js.map +1 -0
- package/dist/solutions-components/p-6940e2fd.entry.js +100 -0
- package/dist/solutions-components/p-6940e2fd.entry.js.map +1 -0
- package/dist/solutions-components/p-69900b68.entry.js +152 -0
- package/dist/solutions-components/p-69900b68.entry.js.map +1 -0
- package/dist/solutions-components/p-699125b6.entry.js +44 -0
- package/dist/solutions-components/p-699125b6.entry.js.map +1 -0
- package/dist/solutions-components/p-6d0899c8.entry.js +118 -0
- package/dist/solutions-components/p-6d0899c8.entry.js.map +1 -0
- package/dist/solutions-components/p-6e0da576.js +15 -1
- package/dist/solutions-components/p-6e0da576.js.map +1 -0
- package/dist/solutions-components/p-6fe17794.js +11 -1
- package/dist/solutions-components/p-6fe17794.js.map +1 -0
- package/dist/solutions-components/p-708a63a8.js +14 -1
- package/dist/solutions-components/p-708a63a8.js.map +1 -0
- package/dist/solutions-components/p-729708a3.js +16 -1
- package/dist/solutions-components/p-729708a3.js.map +1 -0
- package/dist/solutions-components/p-73e23995.js +8 -1
- package/dist/solutions-components/p-73e23995.js.map +1 -0
- package/dist/solutions-components/p-75f54a34.entry.js +883 -0
- package/dist/solutions-components/p-75f54a34.entry.js.map +1 -0
- package/dist/solutions-components/p-77182c3a.js +3017 -1
- package/dist/solutions-components/p-77182c3a.js.map +1 -0
- package/dist/solutions-components/p-794ba85d.entry.js +175 -0
- package/dist/solutions-components/p-794ba85d.entry.js.map +1 -0
- package/dist/solutions-components/p-79cde78e.entry.js +203 -0
- package/dist/solutions-components/p-79cde78e.entry.js.map +1 -0
- package/dist/solutions-components/p-7a2c75a4.entry.js +230 -0
- package/dist/solutions-components/p-7a2c75a4.entry.js.map +1 -0
- package/dist/solutions-components/p-7daea1df.js +43 -1
- package/dist/solutions-components/p-7daea1df.js.map +1 -0
- package/dist/solutions-components/p-7de77097.entry.js +162 -0
- package/dist/solutions-components/p-7de77097.entry.js.map +1 -0
- package/dist/solutions-components/p-7f2b74a9.entry.js +56 -0
- package/dist/solutions-components/p-7f2b74a9.entry.js.map +1 -0
- package/dist/solutions-components/p-81e606c0.entry.js +915 -0
- package/dist/solutions-components/p-81e606c0.entry.js.map +1 -0
- package/dist/solutions-components/p-86908777.js +62 -3
- package/dist/solutions-components/p-86908777.js.map +1 -0
- package/dist/solutions-components/p-87a0ccb4.entry.js +254 -0
- package/dist/solutions-components/p-87a0ccb4.entry.js.map +1 -0
- package/dist/solutions-components/p-93d3119d.js +1950 -1
- package/dist/solutions-components/p-93d3119d.js.map +1 -0
- package/dist/solutions-components/p-958e2979.entry.js +111 -0
- package/dist/solutions-components/p-958e2979.entry.js.map +1 -0
- package/dist/solutions-components/p-95ddb529.entry.js +181 -0
- package/dist/solutions-components/p-95ddb529.entry.js.map +1 -0
- package/dist/solutions-components/p-991ee695.js +111 -1
- package/dist/solutions-components/p-991ee695.js.map +1 -0
- package/dist/solutions-components/p-99d9b624.entry.js +177 -0
- package/dist/solutions-components/p-99d9b624.entry.js.map +1 -0
- package/dist/solutions-components/p-9a9955db.js +43 -1
- package/dist/solutions-components/p-9a9955db.js.map +1 -0
- package/dist/solutions-components/p-9d925d5b.entry.js +233 -0
- package/dist/solutions-components/p-9d925d5b.entry.js.map +1 -0
- package/dist/solutions-components/p-9dc0210f.entry.js +125 -0
- package/dist/solutions-components/p-9dc0210f.entry.js.map +1 -0
- package/dist/solutions-components/p-9ef1328a.entry.js +542 -0
- package/dist/solutions-components/p-9ef1328a.entry.js.map +1 -0
- package/dist/solutions-components/p-9fec2884.entry.js +216 -0
- package/dist/solutions-components/p-9fec2884.entry.js.map +1 -0
- package/dist/solutions-components/p-a1786d11.entry.js +2380 -0
- package/dist/solutions-components/p-a1786d11.entry.js.map +1 -0
- package/dist/solutions-components/p-a2ada355.entry.js +135 -0
- package/dist/solutions-components/p-a2ada355.entry.js.map +1 -0
- package/dist/solutions-components/p-a57adb27.entry.js +154 -0
- package/dist/solutions-components/p-a57adb27.entry.js.map +1 -0
- package/dist/solutions-components/p-a80b3880.js +16 -1
- package/dist/solutions-components/p-a80b3880.js.map +1 -0
- package/dist/solutions-components/p-a88dd457.entry.js +123 -0
- package/dist/solutions-components/p-a88dd457.entry.js.map +1 -0
- package/dist/solutions-components/p-ac6efd19.entry.js +57 -0
- package/dist/solutions-components/p-ac6efd19.entry.js.map +1 -0
- package/dist/solutions-components/p-ae1fd76b.js +13 -1
- package/dist/solutions-components/p-ae1fd76b.js.map +1 -0
- package/dist/solutions-components/p-afffa81a.entry.js +140 -0
- package/dist/solutions-components/p-afffa81a.entry.js.map +1 -0
- package/dist/solutions-components/p-b0f3ed4d.entry.js +376 -0
- package/dist/solutions-components/p-b0f3ed4d.entry.js.map +1 -0
- package/dist/solutions-components/p-b359dc78.js +43 -1
- package/dist/solutions-components/p-b359dc78.js.map +1 -0
- package/dist/solutions-components/p-b66cba3e.entry.js +97 -0
- package/dist/solutions-components/p-b66cba3e.entry.js.map +1 -0
- package/dist/solutions-components/p-b6c2f470.entry.js +574 -0
- package/dist/solutions-components/p-b6c2f470.entry.js.map +1 -0
- package/dist/solutions-components/p-b978636e.js +16 -1
- package/dist/solutions-components/p-b978636e.js.map +1 -0
- package/dist/solutions-components/p-bd19837e.entry.js +96 -0
- package/dist/solutions-components/p-bd19837e.entry.js.map +1 -0
- package/dist/solutions-components/p-be8cc144.entry.js +567 -0
- package/dist/solutions-components/p-be8cc144.entry.js.map +1 -0
- package/dist/solutions-components/p-bfd20deb.entry.js +80 -0
- package/dist/solutions-components/p-bfd20deb.entry.js.map +1 -0
- package/dist/{esm/mapViewUtils-09f1e7bd.js → solutions-components/p-c20bd963.js} +3 -1
- package/dist/solutions-components/p-c20bd963.js.map +1 -0
- package/dist/solutions-components/p-c2c8442d.entry.js +140 -0
- package/dist/solutions-components/p-c2c8442d.entry.js.map +1 -0
- package/dist/solutions-components/p-c3f93cec.entry.js +158 -0
- package/dist/solutions-components/p-c3f93cec.entry.js.map +1 -0
- package/dist/solutions-components/p-c5721b0f.entry.js +127 -0
- package/dist/solutions-components/p-c5721b0f.entry.js.map +1 -0
- package/dist/solutions-components/p-c818e661.entry.js +107 -0
- package/dist/solutions-components/p-c818e661.entry.js.map +1 -0
- package/dist/solutions-components/p-c9870dc4.entry.js +38 -0
- package/dist/solutions-components/p-c9870dc4.entry.js.map +1 -0
- package/dist/solutions-components/p-cbd9fecf.js +500 -2
- package/dist/solutions-components/p-cbd9fecf.js.map +1 -0
- package/dist/solutions-components/p-cf59eb16.entry.js +2423 -0
- package/dist/solutions-components/p-cf59eb16.entry.js.map +1 -0
- package/dist/solutions-components/p-cfb300c6.entry.js +250 -0
- package/dist/solutions-components/p-cfb300c6.entry.js.map +1 -0
- package/dist/solutions-components/p-d48a24e6.js +756 -2
- package/dist/solutions-components/p-d48a24e6.js.map +1 -0
- package/dist/solutions-components/p-dbad98e8.js +124 -2
- package/dist/solutions-components/p-dbad98e8.js.map +1 -0
- package/dist/solutions-components/p-dd79118e.entry.js +708 -0
- package/dist/solutions-components/p-dd79118e.entry.js.map +1 -0
- package/dist/solutions-components/p-de5416e8.js +30 -1
- package/dist/solutions-components/p-de5416e8.js.map +1 -0
- package/dist/solutions-components/p-de881187.entry.js +87 -0
- package/dist/solutions-components/p-de881187.entry.js.map +1 -0
- package/dist/solutions-components/p-e1905f7b.entry.js +120 -0
- package/dist/solutions-components/p-e1905f7b.entry.js.map +1 -0
- package/dist/solutions-components/p-e405ebe8.entry.js +93 -0
- package/dist/solutions-components/p-e405ebe8.entry.js.map +1 -0
- package/dist/solutions-components/p-e515767a.entry.js +116 -0
- package/dist/solutions-components/p-e515767a.entry.js.map +1 -0
- package/dist/solutions-components/p-e611d8c8.js +30 -1
- package/dist/solutions-components/p-e611d8c8.js.map +1 -0
- package/dist/solutions-components/p-e6a695a5.js +103 -2
- package/dist/solutions-components/p-e6a695a5.js.map +1 -0
- package/dist/solutions-components/p-e6fb9cde.entry.js +1872 -0
- package/dist/solutions-components/p-e6fb9cde.entry.js.map +1 -0
- package/dist/solutions-components/p-e947d3b0.js +7 -1
- package/dist/solutions-components/p-e947d3b0.js.map +1 -0
- package/dist/solutions-components/p-e99b1247.js +207 -1
- package/dist/solutions-components/p-e99b1247.js.map +1 -0
- package/dist/solutions-components/p-eb5b78c3.entry.js +125 -0
- package/dist/solutions-components/p-eb5b78c3.entry.js.map +1 -0
- package/dist/solutions-components/p-eb976965.js +35 -3
- package/dist/solutions-components/p-eb976965.js.map +1 -0
- package/dist/solutions-components/p-ed075c2f.entry.js +186 -0
- package/dist/solutions-components/p-ed075c2f.entry.js.map +1 -0
- package/dist/solutions-components/p-eeb0321d.js +15 -2
- package/dist/solutions-components/p-eeb0321d.js.map +1 -0
- package/dist/solutions-components/p-ef6f9e24.entry.js +609 -0
- package/dist/solutions-components/p-ef6f9e24.entry.js.map +1 -0
- package/dist/solutions-components/p-f0294899.entry.js +84 -0
- package/dist/solutions-components/p-f0294899.entry.js.map +1 -0
- package/dist/{esm/interfaces-e2a2064d.js → solutions-components/p-f04fdb9a.js} +3 -1
- package/dist/solutions-components/p-f04fdb9a.js.map +1 -0
- package/dist/solutions-components/p-f477f146.entry.js +310 -0
- package/dist/solutions-components/p-f477f146.entry.js.map +1 -0
- package/dist/solutions-components/p-f48821a2.js +60 -7
- package/dist/solutions-components/p-f48821a2.js.map +1 -0
- package/dist/solutions-components/p-f496ed0c.entry.js +150 -0
- package/dist/solutions-components/p-f496ed0c.entry.js.map +1 -0
- package/dist/solutions-components/p-f759a6e7.js +196 -1
- package/dist/solutions-components/p-f759a6e7.js.map +1 -0
- package/dist/solutions-components/p-fc884dd6.js +30 -16
- package/dist/solutions-components/p-fc884dd6.js.map +1 -0
- package/dist/solutions-components/solutions-components.css +10531 -1
- package/dist/solutions-components/solutions-components.esm.js +22 -1
- package/dist/solutions-components/solutions-components.esm.js.map +1 -0
- package/dist/solutions-components/utils/solution-store.ts +3 -3
- package/dist/solutions-components_commit.txt +8 -6
- package/dist/types/components/solution-config-modal/solution-config-modal.d.ts +69 -0
- package/dist/types/components/solution-configuration/solution-configuration.d.ts +4 -2
- package/dist/types/components.d.ts +43 -5
- package/dist/types/preact.d.ts +4 -0
- package/package.json +1 -1
- package/dist/cjs/calcite-modal.cjs.entry.js +0 -447
- package/dist/cjs/calcite-panel_2.cjs.entry.js +0 -437
- package/dist/cjs/calcite-scrim.cjs.entry.js +0 -62
- package/dist/esm/calcite-modal.entry.js +0 -443
- package/dist/esm/calcite-panel_2.entry.js +0 -432
- package/dist/esm/calcite-scrim.entry.js +0 -58
- package/dist/solutions-components/p-006c6ae1.entry.js +0 -11
- package/dist/solutions-components/p-04a37fc0.entry.js +0 -6
- package/dist/solutions-components/p-062dbde8.entry.js +0 -6
- package/dist/solutions-components/p-0b941521.entry.js +0 -11
- package/dist/solutions-components/p-0c80eb51.entry.js +0 -11
- package/dist/solutions-components/p-10501e21.entry.js +0 -23
- package/dist/solutions-components/p-109e4684.entry.js +0 -6
- package/dist/solutions-components/p-12dfd43e.entry.js +0 -11
- package/dist/solutions-components/p-1c3bcd99.entry.js +0 -12
- package/dist/solutions-components/p-1c589630.entry.js +0 -6
- package/dist/solutions-components/p-1fb471cf.entry.js +0 -11
- package/dist/solutions-components/p-23275dbd.entry.js +0 -6
- package/dist/solutions-components/p-236d76e7.entry.js +0 -11
- package/dist/solutions-components/p-29246858.entry.js +0 -11
- package/dist/solutions-components/p-2af67c67.entry.js +0 -6
- package/dist/solutions-components/p-2bee764f.entry.js +0 -11
- package/dist/solutions-components/p-2f6b4f04.entry.js +0 -6
- package/dist/solutions-components/p-305ae3fe.entry.js +0 -11
- package/dist/solutions-components/p-343e325d.entry.js +0 -11
- package/dist/solutions-components/p-3485601e.entry.js +0 -6
- package/dist/solutions-components/p-395e9b6c.entry.js +0 -6
- package/dist/solutions-components/p-39c5f2d2.entry.js +0 -6
- package/dist/solutions-components/p-3c4f2257.entry.js +0 -11
- package/dist/solutions-components/p-3c8ec7a3.entry.js +0 -12
- package/dist/solutions-components/p-4130fbcd.entry.js +0 -11
- package/dist/solutions-components/p-421cbb15.entry.js +0 -6
- package/dist/solutions-components/p-43fa414d.entry.js +0 -11
- package/dist/solutions-components/p-4760f22a.entry.js +0 -6
- package/dist/solutions-components/p-4fb6d2cf.entry.js +0 -11
- package/dist/solutions-components/p-54384555.entry.js +0 -11
- package/dist/solutions-components/p-5493f036.entry.js +0 -6
- package/dist/solutions-components/p-551fd063.entry.js +0 -11
- package/dist/solutions-components/p-5a61ef0d.entry.js +0 -6
- package/dist/solutions-components/p-6a3ce8f6.entry.js +0 -6
- package/dist/solutions-components/p-6b9dc092.js +0 -21
- package/dist/solutions-components/p-6be581f5.entry.js +0 -6
- package/dist/solutions-components/p-6cf432f9.entry.js +0 -11
- package/dist/solutions-components/p-70368b2b.entry.js +0 -6
- package/dist/solutions-components/p-708ffad0.entry.js +0 -11
- package/dist/solutions-components/p-7321ba65.entry.js +0 -11
- package/dist/solutions-components/p-75b35018.entry.js +0 -11
- package/dist/solutions-components/p-764c0a90.entry.js +0 -11
- package/dist/solutions-components/p-77031b01.entry.js +0 -11
- package/dist/solutions-components/p-778a1b4a.entry.js +0 -11
- package/dist/solutions-components/p-7cdc6089.entry.js +0 -6
- package/dist/solutions-components/p-81467529.entry.js +0 -6
- package/dist/solutions-components/p-834380d6.entry.js +0 -11
- package/dist/solutions-components/p-89cc843b.entry.js +0 -11
- package/dist/solutions-components/p-8e3a2736.entry.js +0 -11
- package/dist/solutions-components/p-8e8b182f.entry.js +0 -12
- package/dist/solutions-components/p-8f052987.entry.js +0 -11
- package/dist/solutions-components/p-93790a9e.entry.js +0 -37
- package/dist/solutions-components/p-9bbee464.entry.js +0 -6
- package/dist/solutions-components/p-9bdd4abe.entry.js +0 -17
- package/dist/solutions-components/p-a4a7d49d.entry.js +0 -17
- package/dist/solutions-components/p-a7036d68.entry.js +0 -11
- package/dist/solutions-components/p-ac91cd40.entry.js +0 -11
- package/dist/solutions-components/p-acd0a09f.entry.js +0 -11
- package/dist/solutions-components/p-acd3b2bf.entry.js +0 -11
- package/dist/solutions-components/p-aea937fb.entry.js +0 -12
- package/dist/solutions-components/p-b1b36556.entry.js +0 -11
- package/dist/solutions-components/p-b25f6ebe.js +0 -257
- package/dist/solutions-components/p-b2ae8634.entry.js +0 -6
- package/dist/solutions-components/p-ba104266.entry.js +0 -11
- package/dist/solutions-components/p-bfcab358.entry.js +0 -11
- package/dist/solutions-components/p-c848d1bd.entry.js +0 -29
- package/dist/solutions-components/p-c9766584.entry.js +0 -6
- package/dist/solutions-components/p-d2cc1b94.entry.js +0 -12
- package/dist/solutions-components/p-d51a72d2.entry.js +0 -11
- package/dist/solutions-components/p-d88fe54b.entry.js +0 -18
- package/dist/solutions-components/p-daee23cc.entry.js +0 -11
- package/dist/solutions-components/p-db7d14d5.entry.js +0 -12
- package/dist/solutions-components/p-dc724c1d.entry.js +0 -11
- package/dist/solutions-components/p-dc7bc20f.entry.js +0 -11
- package/dist/solutions-components/p-de242ea9.entry.js +0 -6
- package/dist/solutions-components/p-e4ebb82a.entry.js +0 -11
- package/dist/solutions-components/p-e64c5c11.entry.js +0 -6
- package/dist/solutions-components/p-e9e47eab.entry.js +0 -6
- package/dist/solutions-components/p-eb3be6d4.entry.js +0 -6
- package/dist/solutions-components/p-ed27c151.entry.js +0 -6
- package/dist/solutions-components/p-ef170bb1.entry.js +0 -6
- package/dist/solutions-components/p-f044863f.entry.js +0 -16
- package/dist/solutions-components/p-f0bae2f0.entry.js +0 -37
- package/dist/solutions-components/p-f5a3b34f.entry.js +0 -23
- package/dist/solutions-components/p-fa2575c2.entry.js +0 -6
- package/dist/solutions-components/p-fe0fdd8b.js +0 -36
@@ -0,0 +1,915 @@
|
|
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, c as createEvent, h, g as getElement } from './p-58c69df2.js';
|
7
|
+
import { c as color } from './p-93d3119d.js';
|
8
|
+
import { D as DEFAULT_COLOR, T as TEXT, a as DIMENSIONS, H as HSV_LIMITS, C as CSS, b as DEFAULT_STORAGE_KEY_PREFIX, R as RGB_LIMITS } from './p-374a5031.js';
|
9
|
+
import { i as isPrimaryPointerButton, b as getElementDir, f as focusElement } from './p-32a67cb2.js';
|
10
|
+
import { n as normalizeHex, C as CSSColorMode, p as parseMode, c as colorEqual } from './p-991ee695.js';
|
11
|
+
import { c as clamp } from './p-63f6e8f1.js';
|
12
|
+
import { u as updateHostInteraction } from './p-7daea1df.js';
|
13
|
+
import { i as isActivationKey } from './p-73e23995.js';
|
14
|
+
import { d as debounce, i as isObject } from './p-4e32bf8c.js';
|
15
|
+
import './p-3b010ce1.js';
|
16
|
+
import './p-729708a3.js';
|
17
|
+
import './p-a80b3880.js';
|
18
|
+
|
19
|
+
/** Error message constants. */
|
20
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Creates a throttled function that only invokes `func` at most once per
|
24
|
+
* every `wait` milliseconds. The throttled function comes with a `cancel`
|
25
|
+
* method to cancel delayed `func` invocations and a `flush` method to
|
26
|
+
* immediately invoke them. Provide `options` to indicate whether `func`
|
27
|
+
* should be invoked on the leading and/or trailing edge of the `wait`
|
28
|
+
* timeout. The `func` is invoked with the last arguments provided to the
|
29
|
+
* throttled function. Subsequent calls to the throttled function return the
|
30
|
+
* result of the last `func` invocation.
|
31
|
+
*
|
32
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
33
|
+
* invoked on the trailing edge of the timeout only if the throttled function
|
34
|
+
* is invoked more than once during the `wait` timeout.
|
35
|
+
*
|
36
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
37
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
38
|
+
*
|
39
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
40
|
+
* for details over the differences between `_.throttle` and `_.debounce`.
|
41
|
+
*
|
42
|
+
* @static
|
43
|
+
* @memberOf _
|
44
|
+
* @since 0.1.0
|
45
|
+
* @category Function
|
46
|
+
* @param {Function} func The function to throttle.
|
47
|
+
* @param {number} [wait=0] The number of milliseconds to throttle invocations to.
|
48
|
+
* @param {Object} [options={}] The options object.
|
49
|
+
* @param {boolean} [options.leading=true]
|
50
|
+
* Specify invoking on the leading edge of the timeout.
|
51
|
+
* @param {boolean} [options.trailing=true]
|
52
|
+
* Specify invoking on the trailing edge of the timeout.
|
53
|
+
* @returns {Function} Returns the new throttled function.
|
54
|
+
* @example
|
55
|
+
*
|
56
|
+
* // Avoid excessively updating the position while scrolling.
|
57
|
+
* jQuery(window).on('scroll', _.throttle(updatePosition, 100));
|
58
|
+
*
|
59
|
+
* // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
|
60
|
+
* var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
|
61
|
+
* jQuery(element).on('click', throttled);
|
62
|
+
*
|
63
|
+
* // Cancel the trailing throttled invocation.
|
64
|
+
* jQuery(window).on('popstate', throttled.cancel);
|
65
|
+
*/
|
66
|
+
function throttle(func, wait, options) {
|
67
|
+
var leading = true,
|
68
|
+
trailing = true;
|
69
|
+
|
70
|
+
if (typeof func != 'function') {
|
71
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
72
|
+
}
|
73
|
+
if (isObject(options)) {
|
74
|
+
leading = 'leading' in options ? !!options.leading : leading;
|
75
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
76
|
+
}
|
77
|
+
return debounce(func, wait, {
|
78
|
+
'leading': leading,
|
79
|
+
'maxWait': wait,
|
80
|
+
'trailing': trailing
|
81
|
+
});
|
82
|
+
}
|
83
|
+
|
84
|
+
const colorPickerCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:inline-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]) .container{inline-size:160px}:host([scale=s]) .saved-colors{grid-template-columns:repeat(auto-fill, minmax(20px, 1fr))}:host([scale=s]) .channels{flex-direction:column}:host([scale=s]) .channel{inline-size:100%;-webkit-margin-after:4px;margin-block-end:4px}:host([scale=s]) .channel:last-child{-webkit-margin-after:0;margin-block-end:0}:host([scale=m]) .container{inline-size:272px}:host([scale=l]) .header{-webkit-padding-after:0px;padding-block-end:0px}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{inline-size:464px}:host([scale=l]) .color-field-and-slider{-webkit-margin-after:-20px;margin-block-end:-20px}:host([scale=l]) .section{padding-block:0 16px;padding-inline:16px}:host([scale=l]) .section:first-of-type{-webkit-padding-before:16px;padding-block-start:16px}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, minmax(28px, 1fr));grid-gap:12px;-webkit-padding-before:16px;padding-block-start:16px}:host([scale=l]) .control-section{flex-wrap:nowrap;align-items:baseline}:host([scale=l]) .control-section>:nth-child(2){-webkit-margin-start:12px;margin-inline-start:12px}:host([scale=l]) .color-hex-options{display:flex;flex-shrink:1;flex-direction:column;justify-content:space-around;min-block-size:98px;inline-size:160px}:host([scale=l]) .color-mode-container{flex-shrink:3}:host([appearance=minimal]) .container{border:none}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.color-field-and-slider-wrap{position:relative}.scope{pointer-events:none;position:absolute;font-size:var(--calcite-font-size--1);outline-color:transparent;outline-offset:14px}.scope:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:16px}.color-field-and-slider{-webkit-margin-after:-16px;margin-block-end:-16px;touch-action:none}.color-field-and-slider--interactive{cursor:pointer}.control-section{display:flex;flex-direction:row;flex-wrap:wrap}.section{padding-block:0 12px;padding-inline:12px}.section:first-of-type{-webkit-padding-before:12px;padding-block-start:12px}.color-hex-options,.section--split{flex-grow:1}.header{display:flex;align-items:center;justify-content:space-between;-webkit-padding-after:0.25rem;padding-block-end:0.25rem;color:var(--calcite-ui-text-1)}.header--hex,.color-mode-container{-webkit-padding-before:12px;padding-block-start:12px}.channels{display:flex;justify-content:space-between}.channel{inline-size:31%}.saved-colors{-webkit-padding-before:12px;padding-block-start:12px;display:grid;grid-template-columns:repeat(auto-fill, minmax(24px, 1fr));grid-gap:8px;inline-size:100%}.saved-colors-buttons{display:flex}.saved-color{outline-offset:0;outline-color:transparent;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.saved-color:hover{transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}";
|
85
|
+
|
86
|
+
const throttleFor60FpsInMs = 16;
|
87
|
+
const defaultValue = normalizeHex(DEFAULT_COLOR.hex());
|
88
|
+
const defaultFormat = "auto";
|
89
|
+
const ColorPicker = class {
|
90
|
+
constructor(hostRef) {
|
91
|
+
registerInstance(this, hostRef);
|
92
|
+
this.calciteColorPickerChange = createEvent(this, "calciteColorPickerChange", 6);
|
93
|
+
this.calciteColorPickerInput = createEvent(this, "calciteColorPickerInput", 6);
|
94
|
+
//--------------------------------------------------------------------------
|
95
|
+
//
|
96
|
+
// Public properties
|
97
|
+
//
|
98
|
+
//--------------------------------------------------------------------------
|
99
|
+
/**
|
100
|
+
* When `false`, an empty color (`null`) will be allowed as a `value`. Otherwise, a color value is enforced on the component.
|
101
|
+
*
|
102
|
+
* When `true`, a color value is enforced, and clearing the input or blurring will restore the last valid `value`. When `false`, an empty color (`null`) will be allowed as a `value`.
|
103
|
+
*/
|
104
|
+
this.allowEmpty = false;
|
105
|
+
/**
|
106
|
+
* Specifies the appearance style of the component -
|
107
|
+
*
|
108
|
+
* `"solid"` (containing border) or `"minimal"` (no containing border).
|
109
|
+
*/
|
110
|
+
this.appearance = "solid";
|
111
|
+
/**
|
112
|
+
* Internal prop for advanced use-cases.
|
113
|
+
*
|
114
|
+
* @internal
|
115
|
+
*/
|
116
|
+
this.color = DEFAULT_COLOR;
|
117
|
+
/**
|
118
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
119
|
+
*/
|
120
|
+
this.disabled = false;
|
121
|
+
/**
|
122
|
+
* The format of `value`.
|
123
|
+
*
|
124
|
+
* When `"auto"`, the format will be inferred from `value` when set.
|
125
|
+
*
|
126
|
+
* @default "auto"
|
127
|
+
*/
|
128
|
+
this.format = defaultFormat;
|
129
|
+
/** When `true`, hides the Hex input. */
|
130
|
+
this.hideHex = false;
|
131
|
+
/** When `true`, hides the RGB/HSV channel inputs. */
|
132
|
+
this.hideChannels = false;
|
133
|
+
/** When `true`, hides the saved colors section. */
|
134
|
+
this.hideSaved = false;
|
135
|
+
/**
|
136
|
+
* Accessible name for the RGB section's blue channel.
|
137
|
+
*
|
138
|
+
* @default "B"
|
139
|
+
*/
|
140
|
+
this.intlB = TEXT.b;
|
141
|
+
/**
|
142
|
+
* Accessible name for the RGB section's blue channel description.
|
143
|
+
*
|
144
|
+
* @default "Blue"
|
145
|
+
*/
|
146
|
+
this.intlBlue = TEXT.blue;
|
147
|
+
/**
|
148
|
+
* Accessible name for the delete color button.
|
149
|
+
*
|
150
|
+
* @default "Delete color"
|
151
|
+
*/
|
152
|
+
this.intlDeleteColor = TEXT.deleteColor;
|
153
|
+
/**
|
154
|
+
* Accessible name for the RGB section's green channel.
|
155
|
+
*
|
156
|
+
* @default "G"
|
157
|
+
*/
|
158
|
+
this.intlG = TEXT.g;
|
159
|
+
/**
|
160
|
+
* Accessible name for the RGB section's green channel description.
|
161
|
+
*
|
162
|
+
* @default "Green"
|
163
|
+
*/
|
164
|
+
this.intlGreen = TEXT.green;
|
165
|
+
/**
|
166
|
+
* Accessible name for the HSV section's hue channel.
|
167
|
+
*
|
168
|
+
* @default "H"
|
169
|
+
*/
|
170
|
+
this.intlH = TEXT.h;
|
171
|
+
/**
|
172
|
+
* Accessible name for the HSV mode.
|
173
|
+
*
|
174
|
+
* @default "HSV"
|
175
|
+
*/
|
176
|
+
this.intlHsv = TEXT.hsv;
|
177
|
+
/**
|
178
|
+
* Accessible name for the Hex input.
|
179
|
+
*
|
180
|
+
* @default "Hex"
|
181
|
+
*/
|
182
|
+
this.intlHex = TEXT.hex;
|
183
|
+
/**
|
184
|
+
* Accessible name for the HSV section's hue channel description.
|
185
|
+
*
|
186
|
+
* @default "Hue"
|
187
|
+
*/
|
188
|
+
this.intlHue = TEXT.hue;
|
189
|
+
/**
|
190
|
+
* Accessible name for the Hex input when there is no color selected.
|
191
|
+
*
|
192
|
+
* @default "No color"
|
193
|
+
*/
|
194
|
+
this.intlNoColor = TEXT.noColor;
|
195
|
+
/**
|
196
|
+
* Accessible name for the RGB section's red channel.
|
197
|
+
*
|
198
|
+
* @default "R"
|
199
|
+
*/
|
200
|
+
this.intlR = TEXT.r;
|
201
|
+
/**
|
202
|
+
* Accessible name for the RGB section's red channel description.
|
203
|
+
*
|
204
|
+
* @default "Red"
|
205
|
+
*/
|
206
|
+
this.intlRed = TEXT.red;
|
207
|
+
/**
|
208
|
+
* Accessible name for the RGB mode.
|
209
|
+
*
|
210
|
+
* @default "RGB"
|
211
|
+
*/
|
212
|
+
this.intlRgb = TEXT.rgb;
|
213
|
+
/**
|
214
|
+
* Accessible name for the HSV section's saturation channel.
|
215
|
+
*
|
216
|
+
* @default "S"
|
217
|
+
*/
|
218
|
+
this.intlS = TEXT.s;
|
219
|
+
/**
|
220
|
+
* Accessible name for the HSV section's saturation channel description.
|
221
|
+
*
|
222
|
+
* @default "Saturation"
|
223
|
+
*/
|
224
|
+
this.intlSaturation = TEXT.saturation;
|
225
|
+
/**
|
226
|
+
* Accessible name for the save color button.
|
227
|
+
*
|
228
|
+
* @default "Save color"
|
229
|
+
*/
|
230
|
+
this.intlSaveColor = TEXT.saveColor;
|
231
|
+
/**
|
232
|
+
* Accessible name for the saved colors section.
|
233
|
+
*
|
234
|
+
* @default "Saved"
|
235
|
+
*/
|
236
|
+
this.intlSaved = TEXT.saved;
|
237
|
+
/**
|
238
|
+
* Accessible name for the HSV section's value channel.
|
239
|
+
*
|
240
|
+
* @default "V"
|
241
|
+
*/
|
242
|
+
this.intlV = TEXT.v;
|
243
|
+
/**
|
244
|
+
* Accessible name for the HSV section's value channel description.
|
245
|
+
*
|
246
|
+
* @default "Value"
|
247
|
+
*/
|
248
|
+
this.intlValue = TEXT.value;
|
249
|
+
/** Specifies the size of the component. */
|
250
|
+
this.scale = "m";
|
251
|
+
/**
|
252
|
+
* The component's value, where the value can be a CSS color string, or a RGB, HSL or HSV object.
|
253
|
+
*
|
254
|
+
* The type will be preserved as the color is updated.
|
255
|
+
*
|
256
|
+
* @default "#007ac2"
|
257
|
+
* @see [CSS Color](https://developer.mozilla.org/en-US/docs/Web/CSS/color)
|
258
|
+
* @see [ColorValue](https://github.com/Esri/calcite-components/blob/master/src/components/color-picker/interfaces.ts#L10)
|
259
|
+
*/
|
260
|
+
this.value = defaultValue;
|
261
|
+
this.colorFieldAndSliderHovered = false;
|
262
|
+
this.hueThumbState = "idle";
|
263
|
+
this.internalColorUpdateContext = null;
|
264
|
+
this.mode = CSSColorMode.HEX;
|
265
|
+
this.shiftKeyChannelAdjustment = 0;
|
266
|
+
this.sliderThumbState = "idle";
|
267
|
+
this.colorFieldAndSliderInteractive = false;
|
268
|
+
this.channelMode = "rgb";
|
269
|
+
this.channels = this.toChannels(DEFAULT_COLOR);
|
270
|
+
this.dimensions = DIMENSIONS.m;
|
271
|
+
this.savedColors = [];
|
272
|
+
this.handleTabActivate = (event) => {
|
273
|
+
this.channelMode = event.currentTarget.getAttribute("data-color-mode");
|
274
|
+
this.updateChannelsFromColor(this.color);
|
275
|
+
};
|
276
|
+
this.handleColorFieldScopeKeyDown = (event) => {
|
277
|
+
const { key } = event;
|
278
|
+
const arrowKeyToXYOffset = {
|
279
|
+
ArrowUp: { x: 0, y: -10 },
|
280
|
+
ArrowRight: { x: 10, y: 0 },
|
281
|
+
ArrowDown: { x: 0, y: 10 },
|
282
|
+
ArrowLeft: { x: -10, y: 0 }
|
283
|
+
};
|
284
|
+
if (arrowKeyToXYOffset[key]) {
|
285
|
+
event.preventDefault();
|
286
|
+
this.scopeOrientation = key === "ArrowDown" || key === "ArrowUp" ? "vertical" : "horizontal";
|
287
|
+
this.captureColorFieldColor(this.colorFieldScopeLeft + arrowKeyToXYOffset[key].x || 0, this.colorFieldScopeTop + arrowKeyToXYOffset[key].y || 0, false);
|
288
|
+
}
|
289
|
+
};
|
290
|
+
this.handleHueScopeKeyDown = (event) => {
|
291
|
+
const modifier = event.shiftKey ? 10 : 1;
|
292
|
+
const { key } = event;
|
293
|
+
const arrowKeyToXOffset = {
|
294
|
+
ArrowUp: 1,
|
295
|
+
ArrowRight: 1,
|
296
|
+
ArrowDown: -1,
|
297
|
+
ArrowLeft: -1
|
298
|
+
};
|
299
|
+
if (arrowKeyToXOffset[key]) {
|
300
|
+
event.preventDefault();
|
301
|
+
const delta = arrowKeyToXOffset[key] * modifier;
|
302
|
+
const hue = this.baseColorFieldColor.hue();
|
303
|
+
const color = this.baseColorFieldColor.hue(hue + delta);
|
304
|
+
this.internalColorSet(color, false);
|
305
|
+
}
|
306
|
+
};
|
307
|
+
this.handleHexInputChange = (event) => {
|
308
|
+
event.stopPropagation();
|
309
|
+
const { allowEmpty, color: color$1 } = this;
|
310
|
+
const input = event.target;
|
311
|
+
const hex = input.value;
|
312
|
+
if (allowEmpty && !hex) {
|
313
|
+
this.internalColorSet(null);
|
314
|
+
return;
|
315
|
+
}
|
316
|
+
const normalizedHex = color$1 && normalizeHex(color$1.hex());
|
317
|
+
if (hex !== normalizedHex) {
|
318
|
+
this.internalColorSet(color(hex));
|
319
|
+
}
|
320
|
+
};
|
321
|
+
this.handleSavedColorSelect = (event) => {
|
322
|
+
const swatch = event.currentTarget;
|
323
|
+
this.internalColorSet(color(swatch.color));
|
324
|
+
};
|
325
|
+
this.handleChannelInput = (event) => {
|
326
|
+
const input = event.currentTarget;
|
327
|
+
const internalInput = event.detail.nativeEvent.target;
|
328
|
+
const channelIndex = Number(input.getAttribute("data-channel-index"));
|
329
|
+
const limit = this.channelMode === "rgb"
|
330
|
+
? RGB_LIMITS[Object.keys(RGB_LIMITS)[channelIndex]]
|
331
|
+
: HSV_LIMITS[Object.keys(HSV_LIMITS)[channelIndex]];
|
332
|
+
let inputValue;
|
333
|
+
if (this.allowEmpty && !input.value) {
|
334
|
+
inputValue = "";
|
335
|
+
}
|
336
|
+
else {
|
337
|
+
const value = Number(input.value) + this.shiftKeyChannelAdjustment;
|
338
|
+
const clamped = clamp(value, 0, limit);
|
339
|
+
inputValue = clamped.toString();
|
340
|
+
}
|
341
|
+
input.value = inputValue;
|
342
|
+
internalInput.value = inputValue;
|
343
|
+
};
|
344
|
+
this.handleChannelChange = (event) => {
|
345
|
+
const input = event.currentTarget;
|
346
|
+
const channelIndex = Number(input.getAttribute("data-channel-index"));
|
347
|
+
const channels = [...this.channels];
|
348
|
+
const shouldClearChannels = this.allowEmpty && !input.value;
|
349
|
+
if (shouldClearChannels) {
|
350
|
+
this.channels = [null, null, null];
|
351
|
+
this.internalColorSet(null);
|
352
|
+
return;
|
353
|
+
}
|
354
|
+
channels[channelIndex] = Number(input.value);
|
355
|
+
this.updateColorFromChannels(channels);
|
356
|
+
};
|
357
|
+
this.handleSavedColorKeyDown = (event) => {
|
358
|
+
if (isActivationKey(event.key)) {
|
359
|
+
event.preventDefault();
|
360
|
+
this.handleSavedColorSelect(event);
|
361
|
+
}
|
362
|
+
};
|
363
|
+
this.handleColorFieldAndSliderPointerLeave = () => {
|
364
|
+
this.colorFieldAndSliderInteractive = false;
|
365
|
+
this.colorFieldAndSliderHovered = false;
|
366
|
+
if (this.sliderThumbState !== "drag" && this.hueThumbState !== "drag") {
|
367
|
+
this.hueThumbState = "idle";
|
368
|
+
this.sliderThumbState = "idle";
|
369
|
+
this.drawColorFieldAndSlider();
|
370
|
+
}
|
371
|
+
};
|
372
|
+
this.handleColorFieldAndSliderPointerDown = (event) => {
|
373
|
+
var _a, _b;
|
374
|
+
if (!isPrimaryPointerButton(event)) {
|
375
|
+
return;
|
376
|
+
}
|
377
|
+
const { offsetX, offsetY } = event;
|
378
|
+
const region = this.getCanvasRegion(offsetY);
|
379
|
+
if (region === "color-field") {
|
380
|
+
this.hueThumbState = "drag";
|
381
|
+
this.captureColorFieldColor(offsetX, offsetY);
|
382
|
+
(_a = this.colorFieldScopeNode) === null || _a === void 0 ? void 0 : _a.focus();
|
383
|
+
}
|
384
|
+
else if (region === "slider") {
|
385
|
+
this.sliderThumbState = "drag";
|
386
|
+
this.captureHueSliderColor(offsetX);
|
387
|
+
(_b = this.hueScopeNode) === null || _b === void 0 ? void 0 : _b.focus();
|
388
|
+
}
|
389
|
+
// prevent text selection outside of color field & slider area
|
390
|
+
event.preventDefault();
|
391
|
+
document.addEventListener("pointermove", this.globalPointerMoveHandler);
|
392
|
+
document.addEventListener("pointerup", this.globalPointerUpHandler, { once: true });
|
393
|
+
this.activeColorFieldAndSliderRect =
|
394
|
+
this.fieldAndSliderRenderingContext.canvas.getBoundingClientRect();
|
395
|
+
};
|
396
|
+
this.globalPointerUpHandler = (event) => {
|
397
|
+
if (!isPrimaryPointerButton(event)) {
|
398
|
+
return;
|
399
|
+
}
|
400
|
+
const previouslyDragging = this.sliderThumbState === "drag" || this.hueThumbState === "drag";
|
401
|
+
this.hueThumbState = "idle";
|
402
|
+
this.sliderThumbState = "idle";
|
403
|
+
this.activeColorFieldAndSliderRect = null;
|
404
|
+
this.drawColorFieldAndSlider();
|
405
|
+
if (previouslyDragging) {
|
406
|
+
this.calciteColorPickerChange.emit();
|
407
|
+
}
|
408
|
+
};
|
409
|
+
this.globalPointerMoveHandler = (event) => {
|
410
|
+
const { el, dimensions } = this;
|
411
|
+
const sliderThumbDragging = this.sliderThumbState === "drag";
|
412
|
+
const hueThumbDragging = this.hueThumbState === "drag";
|
413
|
+
if (!el.isConnected || (!sliderThumbDragging && !hueThumbDragging)) {
|
414
|
+
return;
|
415
|
+
}
|
416
|
+
let samplingX;
|
417
|
+
let samplingY;
|
418
|
+
const colorFieldAndSliderRect = this.activeColorFieldAndSliderRect;
|
419
|
+
const { clientX, clientY } = event;
|
420
|
+
if (this.colorFieldAndSliderHovered) {
|
421
|
+
samplingX = clientX - colorFieldAndSliderRect.x;
|
422
|
+
samplingY = clientY - colorFieldAndSliderRect.y;
|
423
|
+
}
|
424
|
+
else {
|
425
|
+
const colorFieldWidth = dimensions.colorField.width;
|
426
|
+
const colorFieldHeight = dimensions.colorField.height;
|
427
|
+
const hueSliderHeight = dimensions.slider.height;
|
428
|
+
if (clientX < colorFieldAndSliderRect.x + colorFieldWidth &&
|
429
|
+
clientX > colorFieldAndSliderRect.x) {
|
430
|
+
samplingX = clientX - colorFieldAndSliderRect.x;
|
431
|
+
}
|
432
|
+
else if (clientX < colorFieldAndSliderRect.x) {
|
433
|
+
samplingX = 0;
|
434
|
+
}
|
435
|
+
else {
|
436
|
+
samplingX = colorFieldWidth - 1;
|
437
|
+
}
|
438
|
+
if (clientY < colorFieldAndSliderRect.y + colorFieldHeight + hueSliderHeight &&
|
439
|
+
clientY > colorFieldAndSliderRect.y) {
|
440
|
+
samplingY = clientY - colorFieldAndSliderRect.y;
|
441
|
+
}
|
442
|
+
else if (clientY < colorFieldAndSliderRect.y) {
|
443
|
+
samplingY = 0;
|
444
|
+
}
|
445
|
+
else {
|
446
|
+
samplingY = colorFieldHeight + hueSliderHeight;
|
447
|
+
}
|
448
|
+
}
|
449
|
+
if (hueThumbDragging) {
|
450
|
+
this.captureColorFieldColor(samplingX, samplingY, false);
|
451
|
+
}
|
452
|
+
else {
|
453
|
+
this.captureHueSliderColor(samplingX);
|
454
|
+
}
|
455
|
+
};
|
456
|
+
this.handleColorFieldAndSliderPointerEnterOrMove = ({ offsetX, offsetY }) => {
|
457
|
+
const { dimensions: { colorField, slider, thumb } } = this;
|
458
|
+
this.colorFieldAndSliderInteractive = offsetY <= colorField.height + slider.height;
|
459
|
+
this.colorFieldAndSliderHovered = true;
|
460
|
+
const region = this.getCanvasRegion(offsetY);
|
461
|
+
if (region === "color-field") {
|
462
|
+
const prevHueThumbState = this.hueThumbState;
|
463
|
+
const color = this.baseColorFieldColor.hsv();
|
464
|
+
const centerX = Math.round(color.saturationv() / (HSV_LIMITS.s / colorField.width));
|
465
|
+
const centerY = Math.round(colorField.height - color.value() / (HSV_LIMITS.v / colorField.height));
|
466
|
+
const hoveringThumb = this.containsPoint(offsetX, offsetY, centerX, centerY, thumb.radius);
|
467
|
+
let transitionedBetweenHoverAndIdle = false;
|
468
|
+
if (prevHueThumbState === "idle" && hoveringThumb) {
|
469
|
+
this.hueThumbState = "hover";
|
470
|
+
transitionedBetweenHoverAndIdle = true;
|
471
|
+
}
|
472
|
+
else if (prevHueThumbState === "hover" && !hoveringThumb) {
|
473
|
+
this.hueThumbState = "idle";
|
474
|
+
transitionedBetweenHoverAndIdle = true;
|
475
|
+
}
|
476
|
+
if (this.hueThumbState !== "drag") {
|
477
|
+
if (transitionedBetweenHoverAndIdle) {
|
478
|
+
// refresh since we won't update color and thus no redraw
|
479
|
+
this.drawColorFieldAndSlider();
|
480
|
+
}
|
481
|
+
}
|
482
|
+
}
|
483
|
+
else if (region === "slider") {
|
484
|
+
const sliderThumbColor = this.baseColorFieldColor.hsv().saturationv(100).value(100);
|
485
|
+
const prevSliderThumbState = this.sliderThumbState;
|
486
|
+
const sliderThumbCenterX = Math.round(sliderThumbColor.hue() / (360 / slider.width));
|
487
|
+
const sliderThumbCenterY = Math.round((slider.height + this.getSliderCapSpacing()) / 2) + colorField.height;
|
488
|
+
const hoveringSliderThumb = this.containsPoint(offsetX, offsetY, sliderThumbCenterX, sliderThumbCenterY, thumb.radius);
|
489
|
+
let sliderThumbTransitionedBetweenHoverAndIdle = false;
|
490
|
+
if (prevSliderThumbState === "idle" && hoveringSliderThumb) {
|
491
|
+
this.sliderThumbState = "hover";
|
492
|
+
sliderThumbTransitionedBetweenHoverAndIdle = true;
|
493
|
+
}
|
494
|
+
else if (prevSliderThumbState === "hover" && !hoveringSliderThumb) {
|
495
|
+
this.sliderThumbState = "idle";
|
496
|
+
sliderThumbTransitionedBetweenHoverAndIdle = true;
|
497
|
+
}
|
498
|
+
if (this.sliderThumbState !== "drag") {
|
499
|
+
if (sliderThumbTransitionedBetweenHoverAndIdle) {
|
500
|
+
// refresh since we won't update color and thus no redraw
|
501
|
+
this.drawColorFieldAndSlider();
|
502
|
+
}
|
503
|
+
}
|
504
|
+
}
|
505
|
+
};
|
506
|
+
this.storeColorFieldScope = (node) => {
|
507
|
+
this.colorFieldScopeNode = node;
|
508
|
+
};
|
509
|
+
this.storeHueScope = (node) => {
|
510
|
+
this.hueScopeNode = node;
|
511
|
+
};
|
512
|
+
this.renderChannelsTabTitle = (channelMode) => {
|
513
|
+
const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
|
514
|
+
const active = channelMode === activeChannelMode;
|
515
|
+
const label = channelMode === "rgb" ? intlRgb : intlHsv;
|
516
|
+
return (h("calcite-tab-title", { active: active, class: CSS.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
|
517
|
+
};
|
518
|
+
this.renderChannelsTab = (channelMode) => {
|
519
|
+
const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
|
520
|
+
const active = channelMode === activeChannelMode;
|
521
|
+
const isRgb = channelMode === "rgb";
|
522
|
+
const channelLabels = isRgb ? [intlR, intlG, intlB] : [intlH, intlS, intlV];
|
523
|
+
const channelAriaLabels = isRgb
|
524
|
+
? [intlRed, intlGreen, intlBlue]
|
525
|
+
: [intlHue, intlSaturation, intlValue];
|
526
|
+
const direction = getElementDir(this.el);
|
527
|
+
return (h("calcite-tab", { active: active, class: CSS.control, key: channelMode }, h("div", { class: CSS.channels, dir: "ltr" }, channels.map((channel, index) =>
|
528
|
+
/* the channel container is ltr, so we apply the host's direction */
|
529
|
+
this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index], direction)))));
|
530
|
+
};
|
531
|
+
this.renderChannel = (value, index, label, ariaLabel, direction) => (h("calcite-input", { class: CSS.channel, "data-channel-index": index, dir: direction, label: ariaLabel, numberButtonType: "none", numberingSystem: this.numberingSystem, onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, onKeyDown: this.handleKeyDown, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value === null || value === void 0 ? void 0 : value.toString() }));
|
532
|
+
this.deleteColor = () => {
|
533
|
+
const colorToDelete = this.color.hex();
|
534
|
+
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
535
|
+
if (!inStorage) {
|
536
|
+
return;
|
537
|
+
}
|
538
|
+
const savedColors = this.savedColors.filter((color) => color !== colorToDelete);
|
539
|
+
this.savedColors = savedColors;
|
540
|
+
const storageKey = `${DEFAULT_STORAGE_KEY_PREFIX}${this.storageId}`;
|
541
|
+
if (this.storageId) {
|
542
|
+
localStorage.setItem(storageKey, JSON.stringify(savedColors));
|
543
|
+
}
|
544
|
+
};
|
545
|
+
this.saveColor = () => {
|
546
|
+
const colorToSave = this.color.hex();
|
547
|
+
const alreadySaved = this.savedColors.indexOf(colorToSave) > -1;
|
548
|
+
if (alreadySaved) {
|
549
|
+
return;
|
550
|
+
}
|
551
|
+
const savedColors = [...this.savedColors, colorToSave];
|
552
|
+
this.savedColors = savedColors;
|
553
|
+
const storageKey = `${DEFAULT_STORAGE_KEY_PREFIX}${this.storageId}`;
|
554
|
+
if (this.storageId) {
|
555
|
+
localStorage.setItem(storageKey, JSON.stringify(savedColors));
|
556
|
+
}
|
557
|
+
};
|
558
|
+
this.drawColorFieldAndSlider = throttle(() => {
|
559
|
+
if (!this.fieldAndSliderRenderingContext) {
|
560
|
+
return;
|
561
|
+
}
|
562
|
+
this.drawColorField();
|
563
|
+
this.drawHueSlider();
|
564
|
+
}, throttleFor60FpsInMs);
|
565
|
+
this.captureColorFieldColor = (x, y, skipEqual = true) => {
|
566
|
+
const { dimensions: { colorField: { height, width } } } = this;
|
567
|
+
const saturation = Math.round((HSV_LIMITS.s / width) * x);
|
568
|
+
const value = Math.round((HSV_LIMITS.v / height) * (height - y));
|
569
|
+
this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(saturation).value(value), skipEqual);
|
570
|
+
};
|
571
|
+
this.initColorFieldAndSlider = (canvas) => {
|
572
|
+
this.fieldAndSliderRenderingContext = canvas.getContext("2d");
|
573
|
+
this.updateCanvasSize(canvas);
|
574
|
+
};
|
575
|
+
}
|
576
|
+
handleColorChange(color, oldColor) {
|
577
|
+
this.drawColorFieldAndSlider();
|
578
|
+
this.updateChannelsFromColor(color);
|
579
|
+
this.previousColor = oldColor;
|
580
|
+
}
|
581
|
+
handleFormatChange(format) {
|
582
|
+
this.setMode(format);
|
583
|
+
this.internalColorSet(this.color, false, "internal");
|
584
|
+
}
|
585
|
+
handleScaleChange(scale = "m") {
|
586
|
+
var _a;
|
587
|
+
this.updateDimensions(scale);
|
588
|
+
this.updateCanvasSize((_a = this.fieldAndSliderRenderingContext) === null || _a === void 0 ? void 0 : _a.canvas);
|
589
|
+
}
|
590
|
+
handleValueChange(value, oldValue) {
|
591
|
+
const { allowEmpty, format } = this;
|
592
|
+
const checkMode = !allowEmpty || value;
|
593
|
+
let modeChanged = false;
|
594
|
+
if (checkMode) {
|
595
|
+
const nextMode = parseMode(value);
|
596
|
+
if (!nextMode || (format !== "auto" && nextMode !== format)) {
|
597
|
+
this.showIncompatibleColorWarning(value, format);
|
598
|
+
this.value = oldValue;
|
599
|
+
return;
|
600
|
+
}
|
601
|
+
modeChanged = this.mode !== nextMode;
|
602
|
+
this.setMode(nextMode);
|
603
|
+
}
|
604
|
+
const dragging = this.sliderThumbState === "drag" || this.hueThumbState === "drag";
|
605
|
+
if (this.internalColorUpdateContext === "initial") {
|
606
|
+
return;
|
607
|
+
}
|
608
|
+
if (this.internalColorUpdateContext === "user-interaction") {
|
609
|
+
this.calciteColorPickerInput.emit();
|
610
|
+
if (!dragging) {
|
611
|
+
this.calciteColorPickerChange.emit();
|
612
|
+
}
|
613
|
+
return;
|
614
|
+
}
|
615
|
+
const color$1 = allowEmpty && !value ? null : color(value);
|
616
|
+
const colorChanged = !colorEqual(color$1, this.color);
|
617
|
+
if (modeChanged || colorChanged) {
|
618
|
+
this.internalColorSet(color$1, true, "internal");
|
619
|
+
}
|
620
|
+
}
|
621
|
+
//--------------------------------------------------------------------------
|
622
|
+
//
|
623
|
+
// Internal State/Props
|
624
|
+
//
|
625
|
+
//--------------------------------------------------------------------------
|
626
|
+
get baseColorFieldColor() {
|
627
|
+
return this.color || this.previousColor || DEFAULT_COLOR;
|
628
|
+
}
|
629
|
+
// using @Listen as a workaround for VDOM listener not firing
|
630
|
+
handleChannelKeyUpOrDown(event) {
|
631
|
+
this.shiftKeyChannelAdjustment = 0;
|
632
|
+
const { key } = event;
|
633
|
+
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
634
|
+
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS.channel); })) {
|
635
|
+
return;
|
636
|
+
}
|
637
|
+
const { shiftKey } = event;
|
638
|
+
event.preventDefault();
|
639
|
+
if (!this.color) {
|
640
|
+
this.internalColorSet(this.previousColor);
|
641
|
+
event.stopPropagation();
|
642
|
+
return;
|
643
|
+
}
|
644
|
+
// this gets applied to the input's up/down arrow increment/decrement
|
645
|
+
const complementaryBump = 9;
|
646
|
+
this.shiftKeyChannelAdjustment =
|
647
|
+
key === "ArrowUp" && shiftKey
|
648
|
+
? complementaryBump
|
649
|
+
: key === "ArrowDown" && shiftKey
|
650
|
+
? -complementaryBump
|
651
|
+
: 0;
|
652
|
+
}
|
653
|
+
//--------------------------------------------------------------------------
|
654
|
+
//
|
655
|
+
// Public Methods
|
656
|
+
//
|
657
|
+
//--------------------------------------------------------------------------
|
658
|
+
/** Sets focus on the component. */
|
659
|
+
async setFocus() {
|
660
|
+
return focusElement(this.colorFieldScopeNode);
|
661
|
+
}
|
662
|
+
//--------------------------------------------------------------------------
|
663
|
+
//
|
664
|
+
// Lifecycle
|
665
|
+
//
|
666
|
+
//--------------------------------------------------------------------------
|
667
|
+
componentWillLoad() {
|
668
|
+
const { allowEmpty, color: color$1, format, value } = this;
|
669
|
+
const willSetNoColor = allowEmpty && !value;
|
670
|
+
const parsedMode = parseMode(value);
|
671
|
+
const valueIsCompatible = willSetNoColor || (format === "auto" && parsedMode) || format === parsedMode;
|
672
|
+
const initialColor = willSetNoColor ? null : valueIsCompatible ? color(value) : color$1;
|
673
|
+
if (!valueIsCompatible) {
|
674
|
+
this.showIncompatibleColorWarning(value, format);
|
675
|
+
}
|
676
|
+
this.setMode(format);
|
677
|
+
this.internalColorSet(initialColor, false, "initial");
|
678
|
+
this.updateDimensions(this.scale);
|
679
|
+
const storageKey = `${DEFAULT_STORAGE_KEY_PREFIX}${this.storageId}`;
|
680
|
+
if (this.storageId && localStorage.getItem(storageKey)) {
|
681
|
+
this.savedColors = JSON.parse(localStorage.getItem(storageKey));
|
682
|
+
}
|
683
|
+
}
|
684
|
+
disconnectedCallback() {
|
685
|
+
document.removeEventListener("pointermove", this.globalPointerMoveHandler);
|
686
|
+
document.removeEventListener("pointerup", this.globalPointerUpHandler);
|
687
|
+
}
|
688
|
+
componentDidRender() {
|
689
|
+
updateHostInteraction(this);
|
690
|
+
}
|
691
|
+
//--------------------------------------------------------------------------
|
692
|
+
//
|
693
|
+
// Render Methods
|
694
|
+
//
|
695
|
+
//--------------------------------------------------------------------------
|
696
|
+
render() {
|
697
|
+
const { allowEmpty, color, intlDeleteColor, hideHex, hideChannels, hideSaved, intlHex, intlSaved, intlSaveColor, savedColors, scale } = this;
|
698
|
+
const selectedColorInHex = color ? color.hex() : null;
|
699
|
+
const hexInputScale = scale === "l" ? "m" : "s";
|
700
|
+
const { colorFieldAndSliderInteractive, colorFieldScopeTop, colorFieldScopeLeft, hueScopeLeft, hueScopeTop, scopeOrientation, dimensions: { colorField: { height: colorFieldHeight, width: colorFieldWidth }, slider: { height: sliderHeight } } } = this;
|
701
|
+
const hueTop = hueScopeTop !== null && hueScopeTop !== void 0 ? hueScopeTop : sliderHeight / 2 + colorFieldHeight;
|
702
|
+
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR.hue()) / HSV_LIMITS.h;
|
703
|
+
const noColor = color === null;
|
704
|
+
const vertical = scopeOrientation === "vertical";
|
705
|
+
return (h("div", { class: CSS.container }, h("div", { class: CSS.colorFieldAndSliderWrap }, h("canvas", { class: {
|
706
|
+
[CSS.colorFieldAndSlider]: true,
|
707
|
+
[CSS.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
708
|
+
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "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, ref: this.storeColorFieldScope, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0" }), h("div", { "aria-label": this.intlHue, "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, ref: this.storeHueScope, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })), hideHex && hideChannels ? null : (h("div", { class: {
|
709
|
+
[CSS.controlSection]: true,
|
710
|
+
[CSS.section]: true
|
711
|
+
} }, hideHex ? null : (h("div", { class: CSS.hexOptions }, h("span", { class: {
|
712
|
+
[CSS.header]: true,
|
713
|
+
[CSS.headerHex]: true
|
714
|
+
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS.control, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (h("calcite-tabs", { class: {
|
715
|
+
[CSS.colorModeContainer]: true,
|
716
|
+
[CSS.splitSection]: true
|
717
|
+
}, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS.savedColorsSection]: true, [CSS.section]: true } }, h("div", { class: CSS.header }, h("label", null, intlSaved), h("div", { class: CSS.savedColorsButtons }, h("calcite-button", { appearance: "transparent", class: CSS.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale, type: "button" }), h("calcite-button", { appearance: "transparent", class: CSS.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale, type: "button" }))), savedColors.length > 0 ? (h("div", { class: CSS.savedColors }, [
|
718
|
+
...savedColors.map((color) => (h("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
|
719
|
+
])) : null))));
|
720
|
+
}
|
721
|
+
// --------------------------------------------------------------------------
|
722
|
+
//
|
723
|
+
// Private Methods
|
724
|
+
//
|
725
|
+
//--------------------------------------------------------------------------
|
726
|
+
handleKeyDown(event) {
|
727
|
+
if (event.key === "Enter") {
|
728
|
+
event.preventDefault();
|
729
|
+
}
|
730
|
+
}
|
731
|
+
showIncompatibleColorWarning(value, format) {
|
732
|
+
console.warn(`ignoring color value (${value}) as it is not compatible with the current format (${format})`);
|
733
|
+
}
|
734
|
+
setMode(format) {
|
735
|
+
this.mode = format === "auto" ? this.mode : format;
|
736
|
+
}
|
737
|
+
captureHueSliderColor(x) {
|
738
|
+
const { dimensions: { slider: { width } } } = this;
|
739
|
+
const hue = (360 / width) * x;
|
740
|
+
this.internalColorSet(this.baseColorFieldColor.hue(hue), false);
|
741
|
+
}
|
742
|
+
getCanvasRegion(y) {
|
743
|
+
const { dimensions: { colorField: { height: colorFieldHeight }, slider: { height: sliderHeight } } } = this;
|
744
|
+
if (y <= colorFieldHeight) {
|
745
|
+
return "color-field";
|
746
|
+
}
|
747
|
+
if (y <= colorFieldHeight + sliderHeight) {
|
748
|
+
return "slider";
|
749
|
+
}
|
750
|
+
return "none";
|
751
|
+
}
|
752
|
+
internalColorSet(color, skipEqual = true, context = "user-interaction") {
|
753
|
+
if (skipEqual && colorEqual(color, this.color)) {
|
754
|
+
return;
|
755
|
+
}
|
756
|
+
this.internalColorUpdateContext = context;
|
757
|
+
this.color = color;
|
758
|
+
this.value = this.toValue(color);
|
759
|
+
this.internalColorUpdateContext = null;
|
760
|
+
}
|
761
|
+
toValue(color, format = this.mode) {
|
762
|
+
if (!color) {
|
763
|
+
return null;
|
764
|
+
}
|
765
|
+
const hexMode = "hex";
|
766
|
+
if (format.includes(hexMode)) {
|
767
|
+
return normalizeHex(color.round()[hexMode]());
|
768
|
+
}
|
769
|
+
if (format.includes("-css")) {
|
770
|
+
return color[format.replace("-css", "").replace("a", "")]().round().string();
|
771
|
+
}
|
772
|
+
const colorObject = color[format]().round().object();
|
773
|
+
if (format.endsWith("a")) {
|
774
|
+
// normalize alpha prop
|
775
|
+
colorObject.a = colorObject.alpha;
|
776
|
+
delete colorObject.alpha;
|
777
|
+
}
|
778
|
+
return colorObject;
|
779
|
+
}
|
780
|
+
getSliderCapSpacing() {
|
781
|
+
const { dimensions: { slider: { height }, thumb: { radius } } } = this;
|
782
|
+
return radius * 2 - height;
|
783
|
+
}
|
784
|
+
updateDimensions(scale = "m") {
|
785
|
+
this.dimensions = DIMENSIONS[scale];
|
786
|
+
}
|
787
|
+
drawColorField() {
|
788
|
+
const context = this.fieldAndSliderRenderingContext;
|
789
|
+
const { dimensions: { colorField: { height, width } } } = this;
|
790
|
+
context.fillStyle = this.baseColorFieldColor.hsv().saturationv(100).value(100).string();
|
791
|
+
context.fillRect(0, 0, width, height);
|
792
|
+
const whiteGradient = context.createLinearGradient(0, 0, width, 0);
|
793
|
+
whiteGradient.addColorStop(0, "rgba(255,255,255,1)");
|
794
|
+
whiteGradient.addColorStop(1, "rgba(255,255,255,0)");
|
795
|
+
context.fillStyle = whiteGradient;
|
796
|
+
context.fillRect(0, 0, width, height);
|
797
|
+
const blackGradient = context.createLinearGradient(0, 0, 0, height);
|
798
|
+
blackGradient.addColorStop(0, "rgba(0,0,0,0)");
|
799
|
+
blackGradient.addColorStop(1, "rgba(0,0,0,1)");
|
800
|
+
context.fillStyle = blackGradient;
|
801
|
+
context.fillRect(0, 0, width, height);
|
802
|
+
this.drawActiveColorFieldColor();
|
803
|
+
}
|
804
|
+
setCanvasContextSize(canvas, { height, width }) {
|
805
|
+
const devicePixelRatio = window.devicePixelRatio || 1;
|
806
|
+
canvas.width = width * devicePixelRatio;
|
807
|
+
canvas.height = height * devicePixelRatio;
|
808
|
+
canvas.style.height = `${height}px`;
|
809
|
+
canvas.style.width = `${width}px`;
|
810
|
+
const context = canvas.getContext("2d");
|
811
|
+
context.scale(devicePixelRatio, devicePixelRatio);
|
812
|
+
}
|
813
|
+
updateCanvasSize(canvas) {
|
814
|
+
if (!canvas) {
|
815
|
+
return;
|
816
|
+
}
|
817
|
+
this.setCanvasContextSize(canvas, {
|
818
|
+
width: this.dimensions.colorField.width,
|
819
|
+
height: this.dimensions.colorField.height +
|
820
|
+
this.dimensions.slider.height +
|
821
|
+
this.getSliderCapSpacing() * 2
|
822
|
+
});
|
823
|
+
this.drawColorFieldAndSlider();
|
824
|
+
}
|
825
|
+
containsPoint(testPointX, testPointY, boundsX, boundsY, boundsRadius) {
|
826
|
+
return (Math.pow(testPointX - boundsX, 2) + Math.pow(testPointY - boundsY, 2) <=
|
827
|
+
Math.pow(boundsRadius, 2));
|
828
|
+
}
|
829
|
+
drawActiveColorFieldColor() {
|
830
|
+
const { color } = this;
|
831
|
+
if (!color) {
|
832
|
+
return;
|
833
|
+
}
|
834
|
+
const hsvColor = color.hsv();
|
835
|
+
const { dimensions: { colorField: { height, width }, thumb: { radius } } } = this;
|
836
|
+
const x = hsvColor.saturationv() / (HSV_LIMITS.s / width);
|
837
|
+
const y = height - hsvColor.value() / (HSV_LIMITS.v / height);
|
838
|
+
requestAnimationFrame(() => {
|
839
|
+
this.colorFieldScopeLeft = x;
|
840
|
+
this.colorFieldScopeTop = y;
|
841
|
+
});
|
842
|
+
this.drawThumb(this.fieldAndSliderRenderingContext, radius, x, y, hsvColor, this.hueThumbState);
|
843
|
+
}
|
844
|
+
drawThumb(context, radius, x, y, color, state) {
|
845
|
+
const startAngle = 0;
|
846
|
+
const endAngle = 2 * Math.PI;
|
847
|
+
context.beginPath();
|
848
|
+
context.arc(x, y, radius, startAngle, endAngle);
|
849
|
+
context.shadowBlur = state === "hover" ? 32 : 16;
|
850
|
+
context.shadowColor = `rgba(0, 0, 0, ${state === "drag" ? 0.32 : 0.16})`;
|
851
|
+
context.fillStyle = "#fff";
|
852
|
+
context.fill();
|
853
|
+
context.beginPath();
|
854
|
+
context.arc(x, y, radius - 3, startAngle, endAngle);
|
855
|
+
context.shadowBlur = 0;
|
856
|
+
context.shadowColor = "transparent";
|
857
|
+
context.fillStyle = color.rgb().string();
|
858
|
+
context.fill();
|
859
|
+
}
|
860
|
+
drawActiveHueSliderColor() {
|
861
|
+
const { color } = this;
|
862
|
+
if (!color) {
|
863
|
+
return;
|
864
|
+
}
|
865
|
+
const hsvColor = color.hsv().saturationv(100).value(100);
|
866
|
+
const { dimensions: { colorField: { height: colorFieldHeight }, slider: { height, width }, thumb: { radius } } } = this;
|
867
|
+
const x = hsvColor.hue() / (360 / width);
|
868
|
+
const y = height / 2 + colorFieldHeight;
|
869
|
+
requestAnimationFrame(() => {
|
870
|
+
this.hueScopeLeft = x;
|
871
|
+
this.hueScopeTop = y;
|
872
|
+
});
|
873
|
+
this.drawThumb(this.fieldAndSliderRenderingContext, radius, x, y, hsvColor, this.sliderThumbState);
|
874
|
+
}
|
875
|
+
drawHueSlider() {
|
876
|
+
const context = this.fieldAndSliderRenderingContext;
|
877
|
+
const { dimensions: { colorField: { height: colorFieldHeight }, slider: { height, width } } } = this;
|
878
|
+
const gradient = context.createLinearGradient(0, 0, width, 0);
|
879
|
+
const hueSliderColorStopKeywords = ["red", "yellow", "lime", "cyan", "blue", "magenta", "red"];
|
880
|
+
const offset = 1 / (hueSliderColorStopKeywords.length - 1);
|
881
|
+
let currentOffset = 0;
|
882
|
+
hueSliderColorStopKeywords.forEach((keyword) => {
|
883
|
+
gradient.addColorStop(currentOffset, color(keyword).string());
|
884
|
+
currentOffset += offset;
|
885
|
+
});
|
886
|
+
context.fillStyle = gradient;
|
887
|
+
context.clearRect(0, colorFieldHeight, width, height + this.getSliderCapSpacing() * 2);
|
888
|
+
context.fillRect(0, colorFieldHeight, width, height);
|
889
|
+
this.drawActiveHueSliderColor();
|
890
|
+
}
|
891
|
+
updateColorFromChannels(channels) {
|
892
|
+
this.internalColorSet(color(channels, this.channelMode));
|
893
|
+
}
|
894
|
+
updateChannelsFromColor(color) {
|
895
|
+
this.channels = color ? this.toChannels(color) : [null, null, null];
|
896
|
+
}
|
897
|
+
toChannels(color) {
|
898
|
+
const { channelMode } = this;
|
899
|
+
return color[channelMode]()
|
900
|
+
.array()
|
901
|
+
.map((value) => Math.floor(value));
|
902
|
+
}
|
903
|
+
get el() { return getElement(this); }
|
904
|
+
static get watchers() { return {
|
905
|
+
"color": ["handleColorChange"],
|
906
|
+
"format": ["handleFormatChange"],
|
907
|
+
"scale": ["handleScaleChange"],
|
908
|
+
"value": ["handleValueChange"]
|
909
|
+
}; }
|
910
|
+
};
|
911
|
+
ColorPicker.style = colorPickerCss;
|
912
|
+
|
913
|
+
export { ColorPicker as calcite_color_picker };
|
914
|
+
|
915
|
+
//# sourceMappingURL=p-81e606c0.entry.js.map
|