@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,1872 @@
|
|
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, H as Host, g as getElement } from './p-58c69df2.js';
|
7
|
+
import { l as loadModules } from './p-2ac06389.js';
|
8
|
+
import { g as getLocaleComponentStrings } from './p-20bdf42f.js';
|
9
|
+
import { b as getElementDir, g as getElementProp, t as toAriaBoolean, i as isPrimaryPointerButton, k as intersects } from './p-32a67cb2.js';
|
10
|
+
import { c as connectLabel, d as disconnectLabel } from './p-dbad98e8.js';
|
11
|
+
import { a as afterConnectDefaultValueSet, c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './p-3f6b0af4.js';
|
12
|
+
import { u as updateHostInteraction } from './p-7daea1df.js';
|
13
|
+
import { g as guid } from './p-a80b3880.js';
|
14
|
+
import { d as decimalPlaces, c as clamp } from './p-63f6e8f1.js';
|
15
|
+
import { i as isActivationKey } from './p-73e23995.js';
|
16
|
+
import { n as numberStringFormatter, c as connectLocalized, d as disconnectLocalized } from './p-23904a3d.js';
|
17
|
+
import { s as state } from './p-5b0d7c7d.js';
|
18
|
+
import { f as ESelectionType, d as ERefineMode, c as ESelectionMode } from './p-f04fdb9a.js';
|
19
|
+
import { b as getMapLayerView, f as queryFeaturesByGeometry, h as highlightFeatures } from './p-c20bd963.js';
|
20
|
+
import './p-3b010ce1.js';
|
21
|
+
import './p-729708a3.js';
|
22
|
+
import './p-9a9955db.js';
|
23
|
+
import './p-f759a6e7.js';
|
24
|
+
|
25
|
+
const bufferToolsCss = ":host{display:block}.c-container{display:inline-flex}.flex-1{flex:\"1\"}.padding-end-1{-webkit-padding-end:1rem;padding-inline-end:1rem}";
|
26
|
+
|
27
|
+
const BufferTools = class {
|
28
|
+
constructor(hostRef) {
|
29
|
+
registerInstance(this, hostRef);
|
30
|
+
this.bufferComplete = createEvent(this, "bufferComplete", 7);
|
31
|
+
this.appearance = "text";
|
32
|
+
this.distance = 0;
|
33
|
+
this.geometries = [];
|
34
|
+
this.sliderMax = 100;
|
35
|
+
this.sliderMin = 0;
|
36
|
+
this.sliderTicks = 10;
|
37
|
+
this.unionResults = true;
|
38
|
+
this.unit = "meters";
|
39
|
+
this._translations = undefined;
|
40
|
+
}
|
41
|
+
//--------------------------------------------------------------------------
|
42
|
+
//
|
43
|
+
// Watch handlers
|
44
|
+
//
|
45
|
+
//--------------------------------------------------------------------------
|
46
|
+
/**
|
47
|
+
* Called each time the geometries prop is changed.
|
48
|
+
* Buffer each of the geometries.
|
49
|
+
*
|
50
|
+
*/
|
51
|
+
geometriesWatchHandler(v, oldV) {
|
52
|
+
if (v && JSON.stringify(v) !== JSON.stringify(oldV || [])) {
|
53
|
+
this._buffer();
|
54
|
+
}
|
55
|
+
}
|
56
|
+
//--------------------------------------------------------------------------
|
57
|
+
//
|
58
|
+
// Functions (lifecycle)
|
59
|
+
//
|
60
|
+
//--------------------------------------------------------------------------
|
61
|
+
/**
|
62
|
+
* StencilJS: Called once just after the component is first connected to the DOM.
|
63
|
+
*
|
64
|
+
* @returns Promise when complete
|
65
|
+
*/
|
66
|
+
async componentWillLoad() {
|
67
|
+
await this._getTranslations();
|
68
|
+
await this._initModules();
|
69
|
+
}
|
70
|
+
/**
|
71
|
+
* Renders the component.
|
72
|
+
*/
|
73
|
+
render() {
|
74
|
+
return (h(Host, null, this.appearance === "text" ? this._getTextBoxDisplay() : this._getSliderDisplay()));
|
75
|
+
}
|
76
|
+
//--------------------------------------------------------------------------
|
77
|
+
//
|
78
|
+
// Functions (protected)
|
79
|
+
//
|
80
|
+
//--------------------------------------------------------------------------
|
81
|
+
/**
|
82
|
+
* Load esri javascript api modules
|
83
|
+
*
|
84
|
+
* @returns Promise resolving when function is done
|
85
|
+
*
|
86
|
+
* @protected
|
87
|
+
*/
|
88
|
+
async _initModules() {
|
89
|
+
const [geometryEngine] = await loadModules([
|
90
|
+
"esri/geometry/geometryEngine"
|
91
|
+
]);
|
92
|
+
this._geometryEngine = geometryEngine;
|
93
|
+
}
|
94
|
+
/**
|
95
|
+
* Gets the nodes for each of the possible distance units
|
96
|
+
*
|
97
|
+
* @returns An array of option nodes
|
98
|
+
*
|
99
|
+
* @protected
|
100
|
+
*/
|
101
|
+
_getUnits() {
|
102
|
+
const units = {
|
103
|
+
"feet": this._translations.feet || "Feet",
|
104
|
+
"meters": this._translations.meters || "Meters",
|
105
|
+
"miles": this._translations.miles || "Miles",
|
106
|
+
"kilometers": this._translations.kilometers || "Kilometers"
|
107
|
+
};
|
108
|
+
return Object.keys(units).map(u => {
|
109
|
+
let selected = true;
|
110
|
+
if (!this.unit) {
|
111
|
+
this.unit = u;
|
112
|
+
}
|
113
|
+
else if (this.unit !== u) {
|
114
|
+
selected = false;
|
115
|
+
}
|
116
|
+
return (h("calcite-option", { label: units[u], selected: selected, value: u }));
|
117
|
+
});
|
118
|
+
}
|
119
|
+
/**
|
120
|
+
* Store the user defined distance value and create a buffer
|
121
|
+
*
|
122
|
+
* @param event the event from the calcite input control
|
123
|
+
*
|
124
|
+
* @protected
|
125
|
+
*/
|
126
|
+
_setDistance(event) {
|
127
|
+
this.distance = event.detail.value;
|
128
|
+
if (this.distance > 0) {
|
129
|
+
this._buffer();
|
130
|
+
}
|
131
|
+
else {
|
132
|
+
this.bufferComplete.emit(undefined);
|
133
|
+
}
|
134
|
+
}
|
135
|
+
/**
|
136
|
+
* Store the user defined unit value and create a buffer
|
137
|
+
*
|
138
|
+
* @protected
|
139
|
+
*/
|
140
|
+
_setUnit() {
|
141
|
+
this.unit = this._unitElement.value;
|
142
|
+
this._buffer();
|
143
|
+
}
|
144
|
+
/**
|
145
|
+
* Create buffer geometry based on the user defined unit and distance
|
146
|
+
*
|
147
|
+
* @protected
|
148
|
+
*/
|
149
|
+
_buffer() {
|
150
|
+
if (this._bufferTimeout) {
|
151
|
+
clearTimeout(this._bufferTimeout);
|
152
|
+
}
|
153
|
+
this._bufferTimeout = setTimeout(() => {
|
154
|
+
var _a;
|
155
|
+
// needs to be wgs 84 or Web Mercator
|
156
|
+
if (((_a = this.geometries) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.unit && this.distance > 0) {
|
157
|
+
const buffer = this._geometryEngine.geodesicBuffer(this.geometries, this.distance, this.unit, this.unionResults);
|
158
|
+
this.bufferComplete.emit(buffer);
|
159
|
+
}
|
160
|
+
}, 400);
|
161
|
+
}
|
162
|
+
/**
|
163
|
+
* Render distance and unit as calcite input and select controls
|
164
|
+
* This option will be used when the "appearance" prop is set to "text"
|
165
|
+
*
|
166
|
+
* @returns a node with the supporting controls
|
167
|
+
*
|
168
|
+
* @protected
|
169
|
+
*/
|
170
|
+
_getTextBoxDisplay() {
|
171
|
+
return (h("div", { class: "c-container" }, h("calcite-input", { class: "padding-end-1", "number-button-type": "vertical", onCalciteInputInput: (evt) => this._setDistance(evt), placeholder: "0", type: "number", value: this.distance ? this.distance.toString() : undefined }), h("calcite-select", { class: "flex-1", label: "label", onCalciteSelectChange: () => this._setUnit(), ref: (el) => { this._unitElement = el; } }, this._getUnits())));
|
172
|
+
}
|
173
|
+
/**
|
174
|
+
* Render distance control as a slider
|
175
|
+
* This option will be used when the "appearance" prop is set to "slider"
|
176
|
+
*
|
177
|
+
* @returns a node with the supporting control
|
178
|
+
*
|
179
|
+
* @protected
|
180
|
+
*/
|
181
|
+
_getSliderDisplay() {
|
182
|
+
return (h("div", null, h("calcite-slider", { labelHandles: true, max: this.sliderMax, min: this.sliderMin, ticks: this.sliderTicks })));
|
183
|
+
}
|
184
|
+
/**
|
185
|
+
* Fetches the component's translations
|
186
|
+
*
|
187
|
+
* @returns Promise when complete
|
188
|
+
* @protected
|
189
|
+
*/
|
190
|
+
async _getTranslations() {
|
191
|
+
const messages = await getLocaleComponentStrings(this.el);
|
192
|
+
this._translations = messages[0];
|
193
|
+
}
|
194
|
+
get el() { return getElement(this); }
|
195
|
+
static get watchers() { return {
|
196
|
+
"geometries": ["geometriesWatchHandler"]
|
197
|
+
}; }
|
198
|
+
};
|
199
|
+
BufferTools.style = bufferToolsCss;
|
200
|
+
|
201
|
+
const radioGroupCss = "@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:flex;background-color:var(--calcite-ui-foreground-1);inline-size:-moz-fit-content;inline-size:fit-content;outline:1px solid var(--calcite-ui-border-input);outline-offset:-1px}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([layout=vertical]){flex-direction:column;align-items:flex-start;align-self:flex-start}:host([width=full]){inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:fit-content}:host([width=full]) ::slotted(calcite-radio-group-item){flex:1 1 auto}:host([width=full][layout=vertical]) ::slotted(calcite-radio-group-item){justify-content:flex-start}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
202
|
+
|
203
|
+
const RadioGroup = class {
|
204
|
+
constructor(hostRef) {
|
205
|
+
registerInstance(this, hostRef);
|
206
|
+
this.calciteRadioGroupChange = createEvent(this, "calciteRadioGroupChange", 6);
|
207
|
+
//--------------------------------------------------------------------------
|
208
|
+
//
|
209
|
+
// Properties
|
210
|
+
//
|
211
|
+
//--------------------------------------------------------------------------
|
212
|
+
/** Specifies the appearance style of the component. */
|
213
|
+
this.appearance = "solid";
|
214
|
+
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
215
|
+
this.disabled = false;
|
216
|
+
/**
|
217
|
+
* When `true`, the component must have a value in order for the form to submit.
|
218
|
+
*
|
219
|
+
* @internal
|
220
|
+
*/
|
221
|
+
this.required = false;
|
222
|
+
/** Defines the layout of the component. */
|
223
|
+
this.layout = "horizontal";
|
224
|
+
/** Specifies the size of the component. */
|
225
|
+
this.scale = "m";
|
226
|
+
/** The component's `selectedItem` value. */
|
227
|
+
this.value = null;
|
228
|
+
/** Specifies the width of the component. */
|
229
|
+
this.width = "auto";
|
230
|
+
//--------------------------------------------------------------------------
|
231
|
+
//
|
232
|
+
// Event Listeners
|
233
|
+
//
|
234
|
+
//--------------------------------------------------------------------------
|
235
|
+
this.handleClick = (event) => {
|
236
|
+
if (event.target.localName === "calcite-radio-group-item") {
|
237
|
+
this.selectItem(event.target, true);
|
238
|
+
}
|
239
|
+
};
|
240
|
+
}
|
241
|
+
valueHandler(value) {
|
242
|
+
const items = this.getItems();
|
243
|
+
items.forEach((item) => (item.checked = item.value === value));
|
244
|
+
}
|
245
|
+
handleSelectedItemChange(newItem, oldItem) {
|
246
|
+
this.value = newItem === null || newItem === void 0 ? void 0 : newItem.value;
|
247
|
+
if (newItem === oldItem) {
|
248
|
+
return;
|
249
|
+
}
|
250
|
+
const items = this.getItems();
|
251
|
+
const match = Array.from(items)
|
252
|
+
.filter((item) => item === newItem)
|
253
|
+
.pop();
|
254
|
+
if (match) {
|
255
|
+
this.selectItem(match);
|
256
|
+
}
|
257
|
+
else if (items[0]) {
|
258
|
+
items[0].tabIndex = 0;
|
259
|
+
}
|
260
|
+
}
|
261
|
+
//--------------------------------------------------------------------------
|
262
|
+
//
|
263
|
+
// Lifecycle
|
264
|
+
//
|
265
|
+
//--------------------------------------------------------------------------
|
266
|
+
componentWillLoad() {
|
267
|
+
const items = this.getItems();
|
268
|
+
const lastChecked = Array.from(items)
|
269
|
+
.filter((item) => item.checked)
|
270
|
+
.pop();
|
271
|
+
if (lastChecked) {
|
272
|
+
this.selectItem(lastChecked);
|
273
|
+
}
|
274
|
+
else if (items[0]) {
|
275
|
+
items[0].tabIndex = 0;
|
276
|
+
}
|
277
|
+
}
|
278
|
+
componentDidLoad() {
|
279
|
+
afterConnectDefaultValueSet(this, this.value);
|
280
|
+
}
|
281
|
+
connectedCallback() {
|
282
|
+
connectLabel(this);
|
283
|
+
connectForm(this);
|
284
|
+
}
|
285
|
+
disconnectedCallback() {
|
286
|
+
disconnectLabel(this);
|
287
|
+
disconnectForm(this);
|
288
|
+
}
|
289
|
+
componentDidRender() {
|
290
|
+
updateHostInteraction(this);
|
291
|
+
}
|
292
|
+
render() {
|
293
|
+
return (h(Host, { onClick: this.handleClick, role: "radiogroup" }, h("slot", null), h(HiddenFormInputSlot, { component: this })));
|
294
|
+
}
|
295
|
+
handleSelected(event) {
|
296
|
+
event.preventDefault();
|
297
|
+
this.selectItem(event.target);
|
298
|
+
event.stopPropagation();
|
299
|
+
}
|
300
|
+
handleKeyDown(event) {
|
301
|
+
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
302
|
+
const { key } = event;
|
303
|
+
const { el, selectedItem } = this;
|
304
|
+
if (keys.indexOf(key) === -1) {
|
305
|
+
return;
|
306
|
+
}
|
307
|
+
let adjustedKey = key;
|
308
|
+
if (getElementDir(el) === "rtl") {
|
309
|
+
if (key === "ArrowRight") {
|
310
|
+
adjustedKey = "ArrowLeft";
|
311
|
+
}
|
312
|
+
if (key === "ArrowLeft") {
|
313
|
+
adjustedKey = "ArrowRight";
|
314
|
+
}
|
315
|
+
}
|
316
|
+
const items = this.getItems();
|
317
|
+
let selectedIndex = -1;
|
318
|
+
items.forEach((item, index) => {
|
319
|
+
if (item === selectedItem) {
|
320
|
+
selectedIndex = index;
|
321
|
+
}
|
322
|
+
});
|
323
|
+
switch (adjustedKey) {
|
324
|
+
case "ArrowLeft":
|
325
|
+
case "ArrowUp":
|
326
|
+
event.preventDefault();
|
327
|
+
const previous = selectedIndex < 1 ? items.item(items.length - 1) : items.item(selectedIndex - 1);
|
328
|
+
this.selectItem(previous, true);
|
329
|
+
return;
|
330
|
+
case "ArrowRight":
|
331
|
+
case "ArrowDown":
|
332
|
+
event.preventDefault();
|
333
|
+
const next = selectedIndex === -1 ? items.item(1) : items.item(selectedIndex + 1) || items.item(0);
|
334
|
+
this.selectItem(next, true);
|
335
|
+
return;
|
336
|
+
case " ":
|
337
|
+
event.preventDefault();
|
338
|
+
this.selectItem(event.target, true);
|
339
|
+
return;
|
340
|
+
default:
|
341
|
+
return;
|
342
|
+
}
|
343
|
+
}
|
344
|
+
// --------------------------------------------------------------------------
|
345
|
+
//
|
346
|
+
// Methods
|
347
|
+
//
|
348
|
+
// --------------------------------------------------------------------------
|
349
|
+
/** Sets focus on the component. */
|
350
|
+
async setFocus() {
|
351
|
+
var _a;
|
352
|
+
(_a = (this.selectedItem || this.getItems()[0])) === null || _a === void 0 ? void 0 : _a.focus();
|
353
|
+
}
|
354
|
+
//--------------------------------------------------------------------------
|
355
|
+
//
|
356
|
+
// Private Methods
|
357
|
+
//
|
358
|
+
//--------------------------------------------------------------------------
|
359
|
+
onLabelClick() {
|
360
|
+
this.setFocus();
|
361
|
+
}
|
362
|
+
getItems() {
|
363
|
+
return this.el.querySelectorAll("calcite-radio-group-item");
|
364
|
+
}
|
365
|
+
selectItem(selected, emit = false) {
|
366
|
+
if (selected === this.selectedItem) {
|
367
|
+
return;
|
368
|
+
}
|
369
|
+
const items = this.getItems();
|
370
|
+
let match = null;
|
371
|
+
items.forEach((item) => {
|
372
|
+
const matches = item.value === selected.value;
|
373
|
+
if ((matches && !item.checked) || (!matches && item.checked)) {
|
374
|
+
item.checked = matches;
|
375
|
+
}
|
376
|
+
item.tabIndex = matches ? 0 : -1;
|
377
|
+
if (matches) {
|
378
|
+
match = item;
|
379
|
+
if (emit) {
|
380
|
+
this.calciteRadioGroupChange.emit(match.value);
|
381
|
+
}
|
382
|
+
}
|
383
|
+
});
|
384
|
+
this.selectedItem = match;
|
385
|
+
if (match) {
|
386
|
+
match.focus();
|
387
|
+
}
|
388
|
+
}
|
389
|
+
get el() { return getElement(this); }
|
390
|
+
static get watchers() { return {
|
391
|
+
"value": ["valueHandler"],
|
392
|
+
"selectedItem": ["handleSelectedItemChange"]
|
393
|
+
}; }
|
394
|
+
};
|
395
|
+
RadioGroup.style = radioGroupCss;
|
396
|
+
|
397
|
+
/*!
|
398
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
399
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
400
|
+
* v1.0.0-beta.97
|
401
|
+
*/
|
402
|
+
const SLOTS = {
|
403
|
+
input: "input"
|
404
|
+
};
|
405
|
+
const CSS$1 = {
|
406
|
+
radioGroupItemIcon: "radio-group-item-icon"
|
407
|
+
};
|
408
|
+
|
409
|
+
const radioGroupItemCss = "@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{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-font-weight-normal);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out}:host label{pointer-events:none;margin:0.125rem;box-sizing:border-box;display:flex;flex:1 1 0%;align-items:center;color:var(--calcite-ui-text-3);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out}.label--horizontal{justify-content:center}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-1px}.label--scale-s{padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-block:0.125rem}.label--scale-m{padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-block:0.375rem}.label--scale-l{padding-inline:1rem;padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host(:hover) label{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:active) label{background-color:var(--calcite-ui-foreground-3)}:host([checked]) label{cursor:default;border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-brand);color:var(--calcite-ui-background)}:host([checked]) .label--outline{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);color:var(--calcite-ui-brand)}::slotted(input){display:none}@media (forced-colors: active){:host([checked]) label{background-color:highlight}:host([checked]) .label--outline{outline:2px solid transparent;outline-offset:2px}:host([checked]) label:not([class~=label--outline]) .radio-group-item-icon{color:highlightText}}.radio-group-item-icon{position:relative;margin:0px;display:inline-flex;line-height:inherit}:host([icon-position=start]) .label--scale-s .radio-group-item-icon{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([icon-position=end]) .label--scale-s .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host([icon-position=start]) .label--scale-m .radio-group-item-icon{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([icon-position=end]) .label--scale-m .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:0.75rem;margin-inline-start:0.75rem}:host([icon-position=start]) .label--scale-l .radio-group-item-icon{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([icon-position=end]) .label--scale-l .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:1rem;margin-inline-start:1rem}:host([icon-start]) .label--scale-s .radio-group-item-icon{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([icon-end]) .label--scale-s .radio-group-item-icon{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host([icon-start]) .label--scale-m .radio-group-item-icon{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([icon-end]) .label--scale-m .radio-group-item-icon{-webkit-margin-start:0.75rem;margin-inline-start:0.75rem}:host([icon-start]) .label--scale-l .radio-group-item-icon{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([icon-end]) .label--scale-l .radio-group-item-icon{-webkit-margin-start:1rem;margin-inline-start:1rem}";
|
410
|
+
|
411
|
+
const RadioGroupItem = class {
|
412
|
+
constructor(hostRef) {
|
413
|
+
registerInstance(this, hostRef);
|
414
|
+
this.calciteInternalRadioGroupItemChange = createEvent(this, "calciteInternalRadioGroupItemChange", 6);
|
415
|
+
//--------------------------------------------------------------------------
|
416
|
+
//
|
417
|
+
// Properties
|
418
|
+
//
|
419
|
+
//--------------------------------------------------------------------------
|
420
|
+
/** When `true`, the component is checked. */
|
421
|
+
this.checked = false;
|
422
|
+
/** When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */
|
423
|
+
this.iconFlipRtl = false;
|
424
|
+
/**
|
425
|
+
* Specifies the placement of the icon.
|
426
|
+
*
|
427
|
+
* @deprecated Use either `iconStart` or `iconEnd` but do not combine them with `icon` and `iconPosition`.
|
428
|
+
*/
|
429
|
+
this.iconPosition = "start";
|
430
|
+
}
|
431
|
+
handleCheckedChange() {
|
432
|
+
this.calciteInternalRadioGroupItemChange.emit();
|
433
|
+
}
|
434
|
+
render() {
|
435
|
+
const { checked, value } = this;
|
436
|
+
const scale = getElementProp(this.el, "scale", "m");
|
437
|
+
const appearance = getElementProp(this.el, "appearance", "solid");
|
438
|
+
const layout = getElementProp(this.el, "layout", "horizontal");
|
439
|
+
const iconStartEl = this.iconStart ? (h("calcite-icon", { class: CSS$1.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
440
|
+
const iconEndEl = this.iconEnd ? (h("calcite-icon", { class: CSS$1.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
441
|
+
const iconEl = (h("calcite-icon", { class: CSS$1.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.icon, key: "icon", scale: "s" }));
|
442
|
+
const iconAtStart = this.icon && this.iconPosition === "start" && !this.iconStart ? iconEl : null;
|
443
|
+
const iconAtEnd = this.icon && this.iconPosition === "end" && !this.iconEnd ? iconEl : null;
|
444
|
+
return (h(Host, { "aria-checked": toAriaBoolean(checked), "aria-label": value, role: "radio" }, h("label", { class: {
|
445
|
+
"label--scale-s": scale === "s",
|
446
|
+
"label--scale-m": scale === "m",
|
447
|
+
"label--scale-l": scale === "l",
|
448
|
+
"label--horizontal": layout === "horizontal",
|
449
|
+
"label--outline": appearance === "outline"
|
450
|
+
} }, iconAtStart, this.iconStart ? iconStartEl : null, h("slot", null, value), h("slot", { name: SLOTS.input }), iconAtEnd, this.iconEnd ? iconEndEl : null)));
|
451
|
+
}
|
452
|
+
get el() { return getElement(this); }
|
453
|
+
static get watchers() { return {
|
454
|
+
"checked": ["handleCheckedChange"]
|
455
|
+
}; }
|
456
|
+
};
|
457
|
+
RadioGroupItem.style = radioGroupItemCss;
|
458
|
+
|
459
|
+
/*!
|
460
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
461
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
462
|
+
* v1.0.0-beta.97
|
463
|
+
*/
|
464
|
+
const CSS = {
|
465
|
+
handleLabel: "handle__label",
|
466
|
+
handleLabelMinValue: "handle__label--minValue",
|
467
|
+
handleLabelValue: "handle__label--value",
|
468
|
+
tickMin: "tick__label--min",
|
469
|
+
tickMax: "tick__label--max"
|
470
|
+
};
|
471
|
+
|
472
|
+
const sliderCss = "@charset \"UTF-8\";@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)}.scale--s{--calcite-slider-handle-size:10px;--calcite-slider-handle-extension-height:6.5px;--calcite-slider-container-font-size:var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size:14px;--calcite-slider-handle-extension-height:8px;--calcite-slider-container-font-size:var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size:16px;--calcite-slider-handle-extension-height:10.5px;--calcite-slider-container-font-size:var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{position:relative;display:block;overflow-wrap:normal;word-break:normal;padding-inline:calc(var(--calcite-slider-handle-size) * 0.5);padding-block:calc(var(--calcite-slider-handle-size) * 0.5);margin-block:calc(var(--calcite-slider-handle-size) * 0.5);margin-inline:0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n )}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-inline-size:100%}.thumb{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:flex;cursor:pointer;flex-direction:column;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}.thumb .handle__label.static,.thumb .handle__label.transformed{position:absolute;inset-block:0px;opacity:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;inline-size:1em}.thumb .handle__label.hyphen--wrap{display:flex}.thumb .handle{box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-color:transparent;block-size:var(--calcite-slider-handle-size);inline-size:var(--calcite-slider-handle-size);box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{inline-size:0.125rem;block-size:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb.thumb--minValue{transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset:-2px}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{-webkit-margin-before:0.5em;margin-block-start:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{-webkit-margin-after:0.5em;margin-block-end:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-33px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-44px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-49px}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-ui-brand);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-ui-brand)}.track{position:relative;block-size:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);transition:all var(--calcite-internal-animation-timing-medium) ease-in}.track__range{position:absolute;inset-block-start:0px;block-size:0.125rem;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{position:absolute;inline-size:100%;content:\"\";inset-block-start:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);block-size:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}@media (forced-colors: active){.thumb{outline-width:0;outline-offset:0}.handle{outline:2px solid transparent;outline-offset:2px}.thumb:focus .handle,.thumb .handle-extension,.thumb:hover .handle-extension,.thumb:focus .handle-extension,.thumb:active .handle-extension{background-color:canvasText}.track{background-color:canvasText}.track__range{background-color:highlight}}.tick{position:absolute;block-size:0.25rem;inline-size:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);inset-block-start:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{pointer-events:none;-webkit-margin-before:0.875rem;margin-block-start:0.875rem;display:flex;justify-content:center}.tick__label--min{transition:opacity var(--calcite-animation-timing)}.tick__label--max{transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3);block-size:48px}:host([label-ticks][ticks]) .container{-webkit-padding-after:calc(0.875rem + var(--calcite-slider-container-font-size));padding-block-end:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{-webkit-padding-after:calc(var(--calcite-slider-full-handle-height) + 1em);padding-block-end:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{-webkit-padding-after:calc(var(--calcite-slider-handle-size) * 0.5 + 1em);padding-block-end:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{-webkit-padding-after:var(--calcite-slider-full-handle-height);padding-block-end:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{-webkit-padding-before:var(--calcite-slider-full-handle-height);padding-block-start:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{-webkit-padding-after:var(--calcite-slider-full-handle-height);padding-block-end:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{-webkit-padding-before:calc(var(--calcite-slider-full-handle-height) + 4px);padding-block-start:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{-webkit-padding-before:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px);padding-block-start:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{-webkit-padding-after:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px);padding-block-end:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
473
|
+
|
474
|
+
function isRange(value) {
|
475
|
+
return Array.isArray(value);
|
476
|
+
}
|
477
|
+
const Slider = class {
|
478
|
+
constructor(hostRef) {
|
479
|
+
registerInstance(this, hostRef);
|
480
|
+
this.calciteSliderInput = createEvent(this, "calciteSliderInput", 6);
|
481
|
+
this.calciteSliderChange = createEvent(this, "calciteSliderChange", 6);
|
482
|
+
this.calciteSliderUpdate = createEvent(this, "calciteSliderUpdate", 6);
|
483
|
+
//--------------------------------------------------------------------------
|
484
|
+
//
|
485
|
+
// Properties
|
486
|
+
//
|
487
|
+
//--------------------------------------------------------------------------
|
488
|
+
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
489
|
+
this.disabled = false;
|
490
|
+
/**
|
491
|
+
* When `true`, number values are displayed with a group separator corresponding to the language and country format.
|
492
|
+
*/
|
493
|
+
this.groupSeparator = false;
|
494
|
+
/** When `true`, indicates a histogram is present. */
|
495
|
+
this.hasHistogram = false;
|
496
|
+
/** When `true`, displays label handles with their numeric value. */
|
497
|
+
this.labelHandles = false;
|
498
|
+
/** When `true` and `ticks` is specified, displays label tick marks with their numeric value. */
|
499
|
+
this.labelTicks = false;
|
500
|
+
/** The component's maximum selectable value. */
|
501
|
+
this.max = 100;
|
502
|
+
/** The component's minimum selectable value. */
|
503
|
+
this.min = 0;
|
504
|
+
/**
|
505
|
+
* When `true`, the slider will display values from high to low.
|
506
|
+
*
|
507
|
+
* Note that this value will be ignored if the slider has an associated histogram.
|
508
|
+
*/
|
509
|
+
this.mirrored = false;
|
510
|
+
/** When `true`, sets a finer point for handles. */
|
511
|
+
this.precise = false;
|
512
|
+
/**
|
513
|
+
* When `true`, the component must have a value in order for the form to submit.
|
514
|
+
*/
|
515
|
+
this.required = false;
|
516
|
+
/** When `true`, enables snap selection in coordination with `step` via a mouse. */
|
517
|
+
this.snap = false;
|
518
|
+
/** Specifies the interval to move with the up, or down keys. */
|
519
|
+
this.step = 1;
|
520
|
+
/** The component's value. */
|
521
|
+
this.value = 0;
|
522
|
+
/**
|
523
|
+
* Specifies the size of the component.
|
524
|
+
*/
|
525
|
+
this.scale = "m";
|
526
|
+
this.activeProp = "value";
|
527
|
+
this.guid = `calcite-slider-${guid()}`;
|
528
|
+
this.effectiveLocale = "";
|
529
|
+
this.minMaxValueRange = null;
|
530
|
+
this.minValueDragRange = null;
|
531
|
+
this.maxValueDragRange = null;
|
532
|
+
this.tickValues = [];
|
533
|
+
this.dragUpdate = (event) => {
|
534
|
+
event.preventDefault();
|
535
|
+
if (this.dragProp) {
|
536
|
+
const value = this.translate(event.clientX || event.pageX);
|
537
|
+
if (isRange(this.value) && this.dragProp === "minMaxValue") {
|
538
|
+
if (this.minValueDragRange && this.maxValueDragRange && this.minMaxValueRange) {
|
539
|
+
const newMinValue = value - this.minValueDragRange;
|
540
|
+
const newMaxValue = value + this.maxValueDragRange;
|
541
|
+
if (newMaxValue <= this.max &&
|
542
|
+
newMinValue >= this.min &&
|
543
|
+
newMaxValue - newMinValue === this.minMaxValueRange) {
|
544
|
+
this.setValue({
|
545
|
+
minValue: this.clamp(newMinValue, "minValue"),
|
546
|
+
maxValue: this.clamp(newMaxValue, "maxValue")
|
547
|
+
});
|
548
|
+
}
|
549
|
+
}
|
550
|
+
else {
|
551
|
+
this.minValueDragRange = value - this.minValue;
|
552
|
+
this.maxValueDragRange = this.maxValue - value;
|
553
|
+
this.minMaxValueRange = this.maxValue - this.minValue;
|
554
|
+
}
|
555
|
+
}
|
556
|
+
else {
|
557
|
+
this.setValue({ [this.dragProp]: this.clamp(value, this.dragProp) });
|
558
|
+
}
|
559
|
+
}
|
560
|
+
};
|
561
|
+
this.pointerUpDragEnd = (event) => {
|
562
|
+
if (!isPrimaryPointerButton(event)) {
|
563
|
+
return;
|
564
|
+
}
|
565
|
+
this.dragEnd(event);
|
566
|
+
};
|
567
|
+
this.dragEnd = (event) => {
|
568
|
+
this.removeDragListeners();
|
569
|
+
this.focusActiveHandle(event.clientX);
|
570
|
+
if (this.lastDragPropValue != this[this.dragProp]) {
|
571
|
+
this.emitChange();
|
572
|
+
}
|
573
|
+
this.dragProp = null;
|
574
|
+
this.lastDragPropValue = null;
|
575
|
+
this.minValueDragRange = null;
|
576
|
+
this.maxValueDragRange = null;
|
577
|
+
this.minMaxValueRange = null;
|
578
|
+
};
|
579
|
+
/**
|
580
|
+
* Set the reference of the track Element
|
581
|
+
*
|
582
|
+
* @internal
|
583
|
+
* @param node
|
584
|
+
*/
|
585
|
+
this.storeTrackRef = (node) => {
|
586
|
+
this.trackEl = node;
|
587
|
+
};
|
588
|
+
/**
|
589
|
+
* Returns a string representing the localized label value based if the groupSeparator prop is parsed.
|
590
|
+
*
|
591
|
+
* @param value
|
592
|
+
*/
|
593
|
+
this.determineGroupSeparator = (value) => {
|
594
|
+
if (typeof value === "number") {
|
595
|
+
numberStringFormatter.numberFormatOptions = {
|
596
|
+
locale: this.effectiveLocale,
|
597
|
+
numberingSystem: this.numberingSystem,
|
598
|
+
useGrouping: this.groupSeparator
|
599
|
+
};
|
600
|
+
return numberStringFormatter.localize(value.toString());
|
601
|
+
}
|
602
|
+
};
|
603
|
+
}
|
604
|
+
histogramWatcher(newHistogram) {
|
605
|
+
this.hasHistogram = !!newHistogram;
|
606
|
+
}
|
607
|
+
valueHandler() {
|
608
|
+
this.setMinMaxFromValue();
|
609
|
+
}
|
610
|
+
minMaxValueHandler() {
|
611
|
+
this.setValueFromMinMax();
|
612
|
+
}
|
613
|
+
//--------------------------------------------------------------------------
|
614
|
+
//
|
615
|
+
// Lifecycle
|
616
|
+
//
|
617
|
+
//--------------------------------------------------------------------------
|
618
|
+
connectedCallback() {
|
619
|
+
connectLocalized(this);
|
620
|
+
this.setMinMaxFromValue();
|
621
|
+
this.setValueFromMinMax();
|
622
|
+
connectLabel(this);
|
623
|
+
connectForm(this);
|
624
|
+
}
|
625
|
+
disconnectedCallback() {
|
626
|
+
disconnectLabel(this);
|
627
|
+
disconnectForm(this);
|
628
|
+
disconnectLocalized(this);
|
629
|
+
this.removeDragListeners();
|
630
|
+
}
|
631
|
+
componentWillLoad() {
|
632
|
+
this.tickValues = this.generateTickValues();
|
633
|
+
if (!isRange(this.value)) {
|
634
|
+
this.value = this.clamp(this.value);
|
635
|
+
}
|
636
|
+
afterConnectDefaultValueSet(this, this.value);
|
637
|
+
if (this.snap && !isRange(this.value)) {
|
638
|
+
this.value = this.getClosestStep(this.value);
|
639
|
+
}
|
640
|
+
if (this.histogram) {
|
641
|
+
this.hasHistogram = true;
|
642
|
+
}
|
643
|
+
}
|
644
|
+
componentDidRender() {
|
645
|
+
if (this.labelHandles) {
|
646
|
+
this.adjustHostObscuredHandleLabel("value");
|
647
|
+
if (isRange(this.value)) {
|
648
|
+
this.adjustHostObscuredHandleLabel("minValue");
|
649
|
+
if (!(this.precise && !this.hasHistogram)) {
|
650
|
+
this.hyphenateCollidingRangeHandleLabels();
|
651
|
+
}
|
652
|
+
}
|
653
|
+
}
|
654
|
+
this.hideObscuredBoundingTickLabels();
|
655
|
+
updateHostInteraction(this);
|
656
|
+
}
|
657
|
+
render() {
|
658
|
+
const id = this.el.id || this.guid;
|
659
|
+
const maxProp = isRange(this.value) ? "maxValue" : "value";
|
660
|
+
const value = isRange(this.value) ? this.maxValue : this.value;
|
661
|
+
const displayedValue = this.determineGroupSeparator(value);
|
662
|
+
const displayedMinValue = this.determineGroupSeparator(this.minValue);
|
663
|
+
const min = this.minValue || this.min;
|
664
|
+
const useMinValue = this.shouldUseMinValue();
|
665
|
+
const minInterval = this.getUnitInterval(useMinValue ? this.minValue : min) * 100;
|
666
|
+
const maxInterval = this.getUnitInterval(value) * 100;
|
667
|
+
const mirror = this.shouldMirror();
|
668
|
+
const leftThumbOffset = `${mirror ? 100 - minInterval : minInterval}%`;
|
669
|
+
const rightThumbOffset = `${mirror ? maxInterval : 100 - maxInterval}%`;
|
670
|
+
const valueIsRange = isRange(this.value);
|
671
|
+
const handleLabelMinValueClasses = `${CSS.handleLabel} ${CSS.handleLabelMinValue}`;
|
672
|
+
const handleLabelValueClasses = `${CSS.handleLabel} ${CSS.handleLabelValue}`;
|
673
|
+
const handle = (h("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
674
|
+
thumb: true,
|
675
|
+
"thumb--value": true,
|
676
|
+
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp
|
677
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("div", { class: "handle" })));
|
678
|
+
const labeledHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
679
|
+
thumb: true,
|
680
|
+
"thumb--value": true,
|
681
|
+
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp
|
682
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("span", { "aria-hidden": "true", class: handleLabelValueClasses }, displayedValue), h("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} static` }, displayedValue), h("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} transformed` }, displayedValue), h("div", { class: "handle" })));
|
683
|
+
const histogramLabeledHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
684
|
+
thumb: true,
|
685
|
+
"thumb--value": true,
|
686
|
+
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp
|
687
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("div", { class: "handle" }), h("span", { "aria-hidden": "true", class: handleLabelValueClasses }, displayedValue), h("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} static` }, displayedValue), h("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} transformed` }, displayedValue)));
|
688
|
+
const preciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
689
|
+
thumb: true,
|
690
|
+
"thumb--value": true,
|
691
|
+
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
692
|
+
"thumb--precise": true
|
693
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("div", { class: "handle" }), h("div", { class: "handle-extension" })));
|
694
|
+
const histogramPreciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
695
|
+
thumb: true,
|
696
|
+
"thumb--value": true,
|
697
|
+
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
698
|
+
"thumb--precise": true
|
699
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("div", { class: "handle-extension" }), h("div", { class: "handle" })));
|
700
|
+
const labeledPreciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
701
|
+
thumb: true,
|
702
|
+
"thumb--value": true,
|
703
|
+
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
704
|
+
"thumb--precise": true
|
705
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("span", { "aria-hidden": "true", class: handleLabelValueClasses }, displayedValue), h("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} static` }, displayedValue), h("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} transformed` }, displayedValue), h("div", { class: "handle" }), h("div", { class: "handle-extension" })));
|
706
|
+
const histogramLabeledPreciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
707
|
+
thumb: true,
|
708
|
+
"thumb--value": true,
|
709
|
+
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
710
|
+
"thumb--precise": true
|
711
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("div", { class: "handle-extension" }), h("div", { class: "handle" }), h("span", { "aria-hidden": "true", class: handleLabelValueClasses }, displayedValue), h("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} static` }, displayedValue), h("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} transformed` }, displayedValue)));
|
712
|
+
const minHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
713
|
+
thumb: true,
|
714
|
+
"thumb--minValue": true,
|
715
|
+
"thumb--active": this.dragProp === "minValue"
|
716
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), ref: (el) => (this.minHandle = el), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0 }, h("div", { class: "handle" })));
|
717
|
+
const minLabeledHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
718
|
+
thumb: true,
|
719
|
+
"thumb--minValue": true,
|
720
|
+
"thumb--active": this.dragProp === "minValue"
|
721
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), ref: (el) => (this.minHandle = el), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0 }, h("span", { "aria-hidden": "true", class: handleLabelMinValueClasses }, displayedMinValue), h("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} static` }, displayedMinValue), h("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} transformed` }, displayedMinValue), h("div", { class: "handle" })));
|
722
|
+
const minHistogramLabeledHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
723
|
+
thumb: true,
|
724
|
+
"thumb--minValue": true,
|
725
|
+
"thumb--active": this.dragProp === "minValue"
|
726
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), ref: (el) => (this.minHandle = el), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0 }, h("div", { class: "handle" }), h("span", { "aria-hidden": "true", class: handleLabelMinValueClasses }, displayedMinValue), h("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} static` }, displayedMinValue), h("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} transformed` }, displayedMinValue)));
|
727
|
+
const minPreciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
728
|
+
thumb: true,
|
729
|
+
"thumb--minValue": true,
|
730
|
+
"thumb--active": this.dragProp === "minValue",
|
731
|
+
"thumb--precise": true
|
732
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), ref: (el) => (this.minHandle = el), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0 }, h("div", { class: "handle-extension" }), h("div", { class: "handle" })));
|
733
|
+
const minLabeledPreciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
734
|
+
thumb: true,
|
735
|
+
"thumb--minValue": true,
|
736
|
+
"thumb--active": this.dragProp === "minValue",
|
737
|
+
"thumb--precise": true
|
738
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), ref: (el) => (this.minHandle = el), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0 }, h("div", { class: "handle-extension" }), h("div", { class: "handle" }), h("span", { "aria-hidden": "true", class: handleLabelMinValueClasses }, displayedMinValue), h("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} static` }, displayedMinValue), h("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} transformed` }, displayedMinValue)));
|
739
|
+
return (h(Host, { id: id, onTouchStart: this.handleTouchStart }, h("div", { class: {
|
740
|
+
["container"]: true,
|
741
|
+
["container--range"]: valueIsRange,
|
742
|
+
[`scale--${this.scale}`]: true
|
743
|
+
} }, this.renderGraph(), h("div", { class: "track", ref: this.storeTrackRef }, h("div", { class: "track__range", onPointerDown: (event) => this.pointerDownDragStart(event, "minMaxValue"), style: {
|
744
|
+
left: `${mirror ? 100 - maxInterval : minInterval}%`,
|
745
|
+
right: `${mirror ? minInterval : 100 - maxInterval}%`
|
746
|
+
} }), h("div", { class: "ticks" }, this.tickValues.map((tick) => {
|
747
|
+
const tickOffset = `${this.getUnitInterval(tick) * 100}%`;
|
748
|
+
let activeTicks = tick >= min && tick <= value;
|
749
|
+
if (useMinValue) {
|
750
|
+
activeTicks = tick >= this.minValue && tick <= this.maxValue;
|
751
|
+
}
|
752
|
+
return (h("span", { class: {
|
753
|
+
tick: true,
|
754
|
+
"tick--active": activeTicks
|
755
|
+
}, style: {
|
756
|
+
left: mirror ? "" : tickOffset,
|
757
|
+
right: mirror ? tickOffset : ""
|
758
|
+
} }, this.renderTickLabel(tick)));
|
759
|
+
}))), h("div", { class: "thumb-container" }, !this.precise && !this.labelHandles && valueIsRange && minHandle, !this.hasHistogram &&
|
760
|
+
!this.precise &&
|
761
|
+
this.labelHandles &&
|
762
|
+
valueIsRange &&
|
763
|
+
minLabeledHandle, this.precise && !this.labelHandles && valueIsRange && minPreciseHandle, this.precise && this.labelHandles && valueIsRange && minLabeledPreciseHandle, this.hasHistogram &&
|
764
|
+
!this.precise &&
|
765
|
+
this.labelHandles &&
|
766
|
+
valueIsRange &&
|
767
|
+
minHistogramLabeledHandle, !this.precise && !this.labelHandles && handle, !this.hasHistogram && !this.precise && this.labelHandles && labeledHandle, !this.hasHistogram && this.precise && !this.labelHandles && preciseHandle, this.hasHistogram && this.precise && !this.labelHandles && histogramPreciseHandle, !this.hasHistogram && this.precise && this.labelHandles && labeledPreciseHandle, this.hasHistogram && !this.precise && this.labelHandles && histogramLabeledHandle, this.hasHistogram &&
|
768
|
+
this.precise &&
|
769
|
+
this.labelHandles &&
|
770
|
+
histogramLabeledPreciseHandle, h(HiddenFormInputSlot, { component: this })))));
|
771
|
+
}
|
772
|
+
renderGraph() {
|
773
|
+
return this.histogram ? (h("calcite-graph", { class: "graph", colorStops: this.histogramStops, data: this.histogram, highlightMax: isRange(this.value) ? this.maxValue : this.value, highlightMin: isRange(this.value) ? this.minValue : this.min, max: this.max, min: this.min })) : null;
|
774
|
+
}
|
775
|
+
renderTickLabel(tick) {
|
776
|
+
const valueIsRange = isRange(this.value);
|
777
|
+
const isMinTickLabel = tick === this.min;
|
778
|
+
const isMaxTickLabel = tick === this.max;
|
779
|
+
const displayedTickValue = this.determineGroupSeparator(tick);
|
780
|
+
const tickLabel = (h("span", { class: {
|
781
|
+
tick__label: true,
|
782
|
+
[CSS.tickMin]: isMinTickLabel,
|
783
|
+
[CSS.tickMax]: isMaxTickLabel
|
784
|
+
} }, displayedTickValue));
|
785
|
+
if (this.labelTicks && !this.hasHistogram && !valueIsRange) {
|
786
|
+
return tickLabel;
|
787
|
+
}
|
788
|
+
if (this.labelTicks &&
|
789
|
+
!this.hasHistogram &&
|
790
|
+
valueIsRange &&
|
791
|
+
!this.precise &&
|
792
|
+
!this.labelHandles) {
|
793
|
+
return tickLabel;
|
794
|
+
}
|
795
|
+
if (this.labelTicks &&
|
796
|
+
!this.hasHistogram &&
|
797
|
+
valueIsRange &&
|
798
|
+
!this.precise &&
|
799
|
+
this.labelHandles) {
|
800
|
+
return tickLabel;
|
801
|
+
}
|
802
|
+
if (this.labelTicks &&
|
803
|
+
!this.hasHistogram &&
|
804
|
+
valueIsRange &&
|
805
|
+
this.precise &&
|
806
|
+
(isMinTickLabel || isMaxTickLabel)) {
|
807
|
+
return tickLabel;
|
808
|
+
}
|
809
|
+
if (this.labelTicks && this.hasHistogram && !this.precise && !this.labelHandles) {
|
810
|
+
return tickLabel;
|
811
|
+
}
|
812
|
+
if (this.labelTicks &&
|
813
|
+
this.hasHistogram &&
|
814
|
+
this.precise &&
|
815
|
+
!this.labelHandles &&
|
816
|
+
(isMinTickLabel || isMaxTickLabel)) {
|
817
|
+
return tickLabel;
|
818
|
+
}
|
819
|
+
if (this.labelTicks &&
|
820
|
+
this.hasHistogram &&
|
821
|
+
!this.precise &&
|
822
|
+
this.labelHandles &&
|
823
|
+
(isMinTickLabel || isMaxTickLabel)) {
|
824
|
+
return tickLabel;
|
825
|
+
}
|
826
|
+
if (this.labelTicks &&
|
827
|
+
this.hasHistogram &&
|
828
|
+
this.precise &&
|
829
|
+
this.labelHandles &&
|
830
|
+
(isMinTickLabel || isMaxTickLabel)) {
|
831
|
+
return tickLabel;
|
832
|
+
}
|
833
|
+
return null;
|
834
|
+
}
|
835
|
+
//--------------------------------------------------------------------------
|
836
|
+
//
|
837
|
+
// Event Listeners
|
838
|
+
//
|
839
|
+
//--------------------------------------------------------------------------
|
840
|
+
keyDownHandler(event) {
|
841
|
+
const mirror = this.shouldMirror();
|
842
|
+
const { activeProp, max, min, pageStep, step } = this;
|
843
|
+
const value = this[activeProp];
|
844
|
+
const { key } = event;
|
845
|
+
if (isActivationKey(key)) {
|
846
|
+
event.preventDefault();
|
847
|
+
return;
|
848
|
+
}
|
849
|
+
let adjustment;
|
850
|
+
if (key === "ArrowUp" || key === "ArrowRight") {
|
851
|
+
const directionFactor = mirror && key === "ArrowRight" ? -1 : 1;
|
852
|
+
adjustment = value + step * directionFactor;
|
853
|
+
}
|
854
|
+
else if (key === "ArrowDown" || key === "ArrowLeft") {
|
855
|
+
const directionFactor = mirror && key === "ArrowLeft" ? -1 : 1;
|
856
|
+
adjustment = value - step * directionFactor;
|
857
|
+
}
|
858
|
+
else if (key === "PageUp") {
|
859
|
+
if (pageStep) {
|
860
|
+
adjustment = value + pageStep;
|
861
|
+
}
|
862
|
+
}
|
863
|
+
else if (key === "PageDown") {
|
864
|
+
if (pageStep) {
|
865
|
+
adjustment = value - pageStep;
|
866
|
+
}
|
867
|
+
}
|
868
|
+
else if (key === "Home") {
|
869
|
+
adjustment = min;
|
870
|
+
}
|
871
|
+
else if (key === "End") {
|
872
|
+
adjustment = max;
|
873
|
+
}
|
874
|
+
if (isNaN(adjustment)) {
|
875
|
+
return;
|
876
|
+
}
|
877
|
+
event.preventDefault();
|
878
|
+
const fixedDecimalAdjustment = Number(adjustment.toFixed(decimalPlaces(step)));
|
879
|
+
this.setValue({
|
880
|
+
[activeProp]: this.clamp(fixedDecimalAdjustment, activeProp)
|
881
|
+
});
|
882
|
+
}
|
883
|
+
pointerDownHandler(event) {
|
884
|
+
if (!isPrimaryPointerButton(event)) {
|
885
|
+
return;
|
886
|
+
}
|
887
|
+
const x = event.clientX || event.pageX;
|
888
|
+
const position = this.translate(x);
|
889
|
+
let prop = "value";
|
890
|
+
if (isRange(this.value)) {
|
891
|
+
const inRange = position >= this.minValue && position <= this.maxValue;
|
892
|
+
if (inRange && this.lastDragProp === "minMaxValue") {
|
893
|
+
prop = "minMaxValue";
|
894
|
+
}
|
895
|
+
else {
|
896
|
+
const closerToMax = Math.abs(this.maxValue - position) < Math.abs(this.minValue - position);
|
897
|
+
prop = closerToMax || position > this.maxValue ? "maxValue" : "minValue";
|
898
|
+
}
|
899
|
+
}
|
900
|
+
this.lastDragPropValue = this[prop];
|
901
|
+
this.dragStart(prop);
|
902
|
+
const isThumbActive = this.el.shadowRoot.querySelector(".thumb:active");
|
903
|
+
if (!isThumbActive) {
|
904
|
+
this.setValue({ [prop]: this.clamp(position, prop) });
|
905
|
+
}
|
906
|
+
this.focusActiveHandle(x);
|
907
|
+
}
|
908
|
+
handleTouchStart(event) {
|
909
|
+
// needed to prevent extra click at the end of a handle drag
|
910
|
+
event.preventDefault();
|
911
|
+
}
|
912
|
+
//--------------------------------------------------------------------------
|
913
|
+
//
|
914
|
+
// Public Methods
|
915
|
+
//
|
916
|
+
//--------------------------------------------------------------------------
|
917
|
+
/** Sets focus on the component. */
|
918
|
+
async setFocus() {
|
919
|
+
const handle = this.minHandle ? this.minHandle : this.maxHandle;
|
920
|
+
handle === null || handle === void 0 ? void 0 : handle.focus();
|
921
|
+
}
|
922
|
+
//--------------------------------------------------------------------------
|
923
|
+
//
|
924
|
+
// Private Methods
|
925
|
+
//
|
926
|
+
//--------------------------------------------------------------------------
|
927
|
+
setValueFromMinMax() {
|
928
|
+
const { minValue, maxValue } = this;
|
929
|
+
if (typeof minValue === "number" && typeof maxValue === "number") {
|
930
|
+
this.value = [minValue, maxValue];
|
931
|
+
}
|
932
|
+
}
|
933
|
+
setMinMaxFromValue() {
|
934
|
+
const { value } = this;
|
935
|
+
if (isRange(value)) {
|
936
|
+
this.minValue = value[0];
|
937
|
+
this.maxValue = value[1];
|
938
|
+
}
|
939
|
+
}
|
940
|
+
onLabelClick() {
|
941
|
+
this.setFocus();
|
942
|
+
}
|
943
|
+
shouldMirror() {
|
944
|
+
return this.mirrored && !this.hasHistogram;
|
945
|
+
}
|
946
|
+
shouldUseMinValue() {
|
947
|
+
if (!isRange(this.value)) {
|
948
|
+
return false;
|
949
|
+
}
|
950
|
+
return ((this.hasHistogram && this.maxValue === 0) || (!this.hasHistogram && this.minValue === 0));
|
951
|
+
}
|
952
|
+
generateTickValues() {
|
953
|
+
const ticks = [];
|
954
|
+
let current = this.min;
|
955
|
+
while (this.ticks && current < this.max + this.ticks) {
|
956
|
+
ticks.push(Math.min(current, this.max));
|
957
|
+
current = current + this.ticks;
|
958
|
+
}
|
959
|
+
return ticks;
|
960
|
+
}
|
961
|
+
pointerDownDragStart(event, prop) {
|
962
|
+
if (!isPrimaryPointerButton(event)) {
|
963
|
+
return;
|
964
|
+
}
|
965
|
+
this.dragStart(prop);
|
966
|
+
}
|
967
|
+
dragStart(prop) {
|
968
|
+
this.dragProp = prop;
|
969
|
+
this.lastDragProp = this.dragProp;
|
970
|
+
this.activeProp = prop;
|
971
|
+
document.addEventListener("pointermove", this.dragUpdate);
|
972
|
+
document.addEventListener("pointerup", this.pointerUpDragEnd);
|
973
|
+
document.addEventListener("pointercancel", this.dragEnd);
|
974
|
+
}
|
975
|
+
focusActiveHandle(valueX) {
|
976
|
+
switch (this.dragProp) {
|
977
|
+
case "minValue":
|
978
|
+
this.minHandle.focus();
|
979
|
+
break;
|
980
|
+
case "maxValue":
|
981
|
+
case "value":
|
982
|
+
this.maxHandle.focus();
|
983
|
+
break;
|
984
|
+
case "minMaxValue":
|
985
|
+
this.getClosestHandle(valueX).focus();
|
986
|
+
break;
|
987
|
+
}
|
988
|
+
}
|
989
|
+
emitInput() {
|
990
|
+
this.calciteSliderInput.emit();
|
991
|
+
this.calciteSliderUpdate.emit();
|
992
|
+
}
|
993
|
+
emitChange() {
|
994
|
+
this.calciteSliderChange.emit();
|
995
|
+
}
|
996
|
+
removeDragListeners() {
|
997
|
+
document.removeEventListener("pointermove", this.dragUpdate);
|
998
|
+
document.removeEventListener("pointerup", this.pointerUpDragEnd);
|
999
|
+
document.removeEventListener("pointercancel", this.dragEnd);
|
1000
|
+
}
|
1001
|
+
/**
|
1002
|
+
* Set prop value(s) if changed at the component level
|
1003
|
+
*
|
1004
|
+
* @param {object} values - a set of key/value pairs delineating what properties in the component to update
|
1005
|
+
*/
|
1006
|
+
setValue(values) {
|
1007
|
+
let valueChanged;
|
1008
|
+
Object.keys(values).forEach((propName) => {
|
1009
|
+
const newValue = values[propName];
|
1010
|
+
if (!valueChanged) {
|
1011
|
+
const oldValue = this[propName];
|
1012
|
+
valueChanged = oldValue !== newValue;
|
1013
|
+
}
|
1014
|
+
this[propName] = newValue;
|
1015
|
+
});
|
1016
|
+
if (!valueChanged) {
|
1017
|
+
return;
|
1018
|
+
}
|
1019
|
+
const dragging = this.dragProp;
|
1020
|
+
if (!dragging) {
|
1021
|
+
this.emitChange();
|
1022
|
+
}
|
1023
|
+
this.emitInput();
|
1024
|
+
}
|
1025
|
+
/**
|
1026
|
+
* If number is outside range, constrain to min or max
|
1027
|
+
*
|
1028
|
+
* @param value
|
1029
|
+
* @param prop
|
1030
|
+
* @internal
|
1031
|
+
*/
|
1032
|
+
clamp(value, prop) {
|
1033
|
+
value = clamp(value, this.min, this.max);
|
1034
|
+
// ensure that maxValue and minValue don't swap positions
|
1035
|
+
if (prop === "maxValue") {
|
1036
|
+
value = Math.max(value, this.minValue);
|
1037
|
+
}
|
1038
|
+
if (prop === "minValue") {
|
1039
|
+
value = Math.min(value, this.maxValue);
|
1040
|
+
}
|
1041
|
+
return value;
|
1042
|
+
}
|
1043
|
+
/**
|
1044
|
+
* Translate a pixel position to value along the range
|
1045
|
+
*
|
1046
|
+
* @param x
|
1047
|
+
* @internal
|
1048
|
+
*/
|
1049
|
+
translate(x) {
|
1050
|
+
const range = this.max - this.min;
|
1051
|
+
const { left, width } = this.trackEl.getBoundingClientRect();
|
1052
|
+
const percent = (x - left) / width;
|
1053
|
+
const mirror = this.shouldMirror();
|
1054
|
+
const clampedValue = this.clamp(this.min + range * (mirror ? 1 - percent : percent));
|
1055
|
+
let value = Number(clampedValue.toFixed(decimalPlaces(this.step)));
|
1056
|
+
if (this.snap && this.step) {
|
1057
|
+
value = this.getClosestStep(value);
|
1058
|
+
}
|
1059
|
+
return value;
|
1060
|
+
}
|
1061
|
+
/**
|
1062
|
+
* Get closest allowed value along stepped values
|
1063
|
+
*
|
1064
|
+
* @param num
|
1065
|
+
* @internal
|
1066
|
+
*/
|
1067
|
+
getClosestStep(num) {
|
1068
|
+
num = Number(this.clamp(num).toFixed(decimalPlaces(this.step)));
|
1069
|
+
if (this.step) {
|
1070
|
+
const step = Math.round(num / this.step) * this.step;
|
1071
|
+
num = Number(this.clamp(step).toFixed(decimalPlaces(this.step)));
|
1072
|
+
}
|
1073
|
+
return num;
|
1074
|
+
}
|
1075
|
+
getClosestHandle(valueX) {
|
1076
|
+
return this.getDistanceX(this.maxHandle, valueX) > this.getDistanceX(this.minHandle, valueX)
|
1077
|
+
? this.minHandle
|
1078
|
+
: this.maxHandle;
|
1079
|
+
}
|
1080
|
+
getDistanceX(el, valueX) {
|
1081
|
+
return Math.abs(el.getBoundingClientRect().left - valueX);
|
1082
|
+
}
|
1083
|
+
getFontSizeForElement(element) {
|
1084
|
+
return Number(window.getComputedStyle(element).getPropertyValue("font-size").match(/\d+/)[0]);
|
1085
|
+
}
|
1086
|
+
/**
|
1087
|
+
* Get position of value along range as fractional value
|
1088
|
+
*
|
1089
|
+
* @param num
|
1090
|
+
* @return {number} number in the unit interval [0,1]
|
1091
|
+
* @internal
|
1092
|
+
*/
|
1093
|
+
getUnitInterval(num) {
|
1094
|
+
num = this.clamp(num);
|
1095
|
+
const range = this.max - this.min;
|
1096
|
+
return (num - this.min) / range;
|
1097
|
+
}
|
1098
|
+
adjustHostObscuredHandleLabel(name) {
|
1099
|
+
const label = this.el.shadowRoot.querySelector(`.handle__label--${name}`);
|
1100
|
+
const labelStatic = this.el.shadowRoot.querySelector(`.handle__label--${name}.static`);
|
1101
|
+
const labelTransformed = this.el.shadowRoot.querySelector(`.handle__label--${name}.transformed`);
|
1102
|
+
const labelStaticBounds = labelStatic.getBoundingClientRect();
|
1103
|
+
const labelStaticOffset = this.getHostOffset(labelStaticBounds.left, labelStaticBounds.right);
|
1104
|
+
label.style.transform = `translateX(${labelStaticOffset}px)`;
|
1105
|
+
labelTransformed.style.transform = `translateX(${labelStaticOffset}px)`;
|
1106
|
+
}
|
1107
|
+
hyphenateCollidingRangeHandleLabels() {
|
1108
|
+
const { shadowRoot } = this.el;
|
1109
|
+
const mirror = this.shouldMirror();
|
1110
|
+
const leftModifier = mirror ? "value" : "minValue";
|
1111
|
+
const rightModifier = mirror ? "minValue" : "value";
|
1112
|
+
const leftValueLabel = shadowRoot.querySelector(`.handle__label--${leftModifier}`);
|
1113
|
+
const leftValueLabelStatic = shadowRoot.querySelector(`.handle__label--${leftModifier}.static`);
|
1114
|
+
const leftValueLabelTransformed = shadowRoot.querySelector(`.handle__label--${leftModifier}.transformed`);
|
1115
|
+
const leftValueLabelStaticHostOffset = this.getHostOffset(leftValueLabelStatic.getBoundingClientRect().left, leftValueLabelStatic.getBoundingClientRect().right);
|
1116
|
+
const rightValueLabel = shadowRoot.querySelector(`.handle__label--${rightModifier}`);
|
1117
|
+
const rightValueLabelStatic = shadowRoot.querySelector(`.handle__label--${rightModifier}.static`);
|
1118
|
+
const rightValueLabelTransformed = shadowRoot.querySelector(`.handle__label--${rightModifier}.transformed`);
|
1119
|
+
const rightValueLabelStaticHostOffset = this.getHostOffset(rightValueLabelStatic.getBoundingClientRect().left, rightValueLabelStatic.getBoundingClientRect().right);
|
1120
|
+
const labelFontSize = this.getFontSizeForElement(leftValueLabel);
|
1121
|
+
const labelTransformedOverlap = this.getRangeLabelOverlap(leftValueLabelTransformed, rightValueLabelTransformed);
|
1122
|
+
const hyphenLabel = leftValueLabel;
|
1123
|
+
const labelOffset = labelFontSize / 2;
|
1124
|
+
if (labelTransformedOverlap > 0) {
|
1125
|
+
hyphenLabel.classList.add("hyphen", "hyphen--wrap");
|
1126
|
+
if (rightValueLabelStaticHostOffset === 0 && leftValueLabelStaticHostOffset === 0) {
|
1127
|
+
// Neither handle overlaps the host boundary
|
1128
|
+
let leftValueLabelTranslate = labelTransformedOverlap / 2 - labelOffset;
|
1129
|
+
leftValueLabelTranslate =
|
1130
|
+
Math.sign(leftValueLabelTranslate) === -1
|
1131
|
+
? Math.abs(leftValueLabelTranslate)
|
1132
|
+
: -leftValueLabelTranslate;
|
1133
|
+
const leftValueLabelTransformedHostOffset = this.getHostOffset(leftValueLabelTransformed.getBoundingClientRect().left +
|
1134
|
+
leftValueLabelTranslate -
|
1135
|
+
labelOffset, leftValueLabelTransformed.getBoundingClientRect().right +
|
1136
|
+
leftValueLabelTranslate -
|
1137
|
+
labelOffset);
|
1138
|
+
let rightValueLabelTranslate = labelTransformedOverlap / 2;
|
1139
|
+
const rightValueLabelTransformedHostOffset = this.getHostOffset(rightValueLabelTransformed.getBoundingClientRect().left + rightValueLabelTranslate, rightValueLabelTransformed.getBoundingClientRect().right + rightValueLabelTranslate);
|
1140
|
+
if (leftValueLabelTransformedHostOffset !== 0) {
|
1141
|
+
leftValueLabelTranslate += leftValueLabelTransformedHostOffset;
|
1142
|
+
rightValueLabelTranslate += leftValueLabelTransformedHostOffset;
|
1143
|
+
}
|
1144
|
+
if (rightValueLabelTransformedHostOffset !== 0) {
|
1145
|
+
leftValueLabelTranslate += rightValueLabelTransformedHostOffset;
|
1146
|
+
rightValueLabelTranslate += rightValueLabelTransformedHostOffset;
|
1147
|
+
}
|
1148
|
+
leftValueLabel.style.transform = `translateX(${leftValueLabelTranslate}px)`;
|
1149
|
+
leftValueLabelTransformed.style.transform = `translateX(${leftValueLabelTranslate - labelOffset}px)`;
|
1150
|
+
rightValueLabel.style.transform = `translateX(${rightValueLabelTranslate}px)`;
|
1151
|
+
rightValueLabelTransformed.style.transform = `translateX(${rightValueLabelTranslate}px)`;
|
1152
|
+
}
|
1153
|
+
else if (leftValueLabelStaticHostOffset > 0 || rightValueLabelStaticHostOffset > 0) {
|
1154
|
+
// labels overlap host boundary on the left side
|
1155
|
+
leftValueLabel.style.transform = `translateX(${leftValueLabelStaticHostOffset + labelOffset}px)`;
|
1156
|
+
rightValueLabel.style.transform = `translateX(${labelTransformedOverlap + rightValueLabelStaticHostOffset}px)`;
|
1157
|
+
rightValueLabelTransformed.style.transform = `translateX(${labelTransformedOverlap + rightValueLabelStaticHostOffset}px)`;
|
1158
|
+
}
|
1159
|
+
else if (leftValueLabelStaticHostOffset < 0 || rightValueLabelStaticHostOffset < 0) {
|
1160
|
+
// labels overlap host boundary on the right side
|
1161
|
+
let leftValueLabelTranslate = Math.abs(leftValueLabelStaticHostOffset) + labelTransformedOverlap - labelOffset;
|
1162
|
+
leftValueLabelTranslate =
|
1163
|
+
Math.sign(leftValueLabelTranslate) === -1
|
1164
|
+
? Math.abs(leftValueLabelTranslate)
|
1165
|
+
: -leftValueLabelTranslate;
|
1166
|
+
leftValueLabel.style.transform = `translateX(${leftValueLabelTranslate}px)`;
|
1167
|
+
leftValueLabelTransformed.style.transform = `translateX(${leftValueLabelTranslate - labelOffset}px)`;
|
1168
|
+
}
|
1169
|
+
}
|
1170
|
+
else {
|
1171
|
+
hyphenLabel.classList.remove("hyphen", "hyphen--wrap");
|
1172
|
+
leftValueLabel.style.transform = `translateX(${leftValueLabelStaticHostOffset}px)`;
|
1173
|
+
leftValueLabelTransformed.style.transform = `translateX(${leftValueLabelStaticHostOffset}px)`;
|
1174
|
+
rightValueLabel.style.transform = `translateX(${rightValueLabelStaticHostOffset}px)`;
|
1175
|
+
rightValueLabelTransformed.style.transform = `translateX(${rightValueLabelStaticHostOffset}px)`;
|
1176
|
+
}
|
1177
|
+
}
|
1178
|
+
/**
|
1179
|
+
* Hides bounding tick labels that are obscured by either handle.
|
1180
|
+
*/
|
1181
|
+
hideObscuredBoundingTickLabels() {
|
1182
|
+
const valueIsRange = isRange(this.value);
|
1183
|
+
if (!this.hasHistogram && !valueIsRange && !this.labelHandles && !this.precise) {
|
1184
|
+
return;
|
1185
|
+
}
|
1186
|
+
if (!this.hasHistogram && !valueIsRange && this.labelHandles && !this.precise) {
|
1187
|
+
return;
|
1188
|
+
}
|
1189
|
+
if (!this.hasHistogram && !valueIsRange && !this.labelHandles && this.precise) {
|
1190
|
+
return;
|
1191
|
+
}
|
1192
|
+
if (!this.hasHistogram && !valueIsRange && this.labelHandles && this.precise) {
|
1193
|
+
return;
|
1194
|
+
}
|
1195
|
+
if (!this.hasHistogram && valueIsRange && !this.precise) {
|
1196
|
+
return;
|
1197
|
+
}
|
1198
|
+
if (this.hasHistogram && !this.precise && !this.labelHandles) {
|
1199
|
+
return;
|
1200
|
+
}
|
1201
|
+
const minHandle = this.el.shadowRoot.querySelector(".thumb--minValue");
|
1202
|
+
const maxHandle = this.el.shadowRoot.querySelector(".thumb--value");
|
1203
|
+
const minTickLabel = this.el.shadowRoot.querySelector(".tick__label--min");
|
1204
|
+
const maxTickLabel = this.el.shadowRoot.querySelector(".tick__label--max");
|
1205
|
+
if (!minHandle && maxHandle && minTickLabel && maxTickLabel) {
|
1206
|
+
minTickLabel.style.opacity = this.isMinTickLabelObscured(minTickLabel, maxHandle) ? "0" : "1";
|
1207
|
+
maxTickLabel.style.opacity = this.isMaxTickLabelObscured(maxTickLabel, maxHandle) ? "0" : "1";
|
1208
|
+
}
|
1209
|
+
if (minHandle && maxHandle && minTickLabel && maxTickLabel) {
|
1210
|
+
minTickLabel.style.opacity =
|
1211
|
+
this.isMinTickLabelObscured(minTickLabel, minHandle) ||
|
1212
|
+
this.isMinTickLabelObscured(minTickLabel, maxHandle)
|
1213
|
+
? "0"
|
1214
|
+
: "1";
|
1215
|
+
maxTickLabel.style.opacity =
|
1216
|
+
this.isMaxTickLabelObscured(maxTickLabel, minHandle) ||
|
1217
|
+
(this.isMaxTickLabelObscured(maxTickLabel, maxHandle) && this.hasHistogram)
|
1218
|
+
? "0"
|
1219
|
+
: "1";
|
1220
|
+
}
|
1221
|
+
}
|
1222
|
+
/**
|
1223
|
+
* Returns an integer representing the number of pixels to offset on the left or right side based on desired position behavior.
|
1224
|
+
*
|
1225
|
+
* @param leftBounds
|
1226
|
+
* @param rightBounds
|
1227
|
+
* @internal
|
1228
|
+
*/
|
1229
|
+
getHostOffset(leftBounds, rightBounds) {
|
1230
|
+
const hostBounds = this.el.getBoundingClientRect();
|
1231
|
+
const buffer = 7;
|
1232
|
+
if (leftBounds + buffer < hostBounds.left) {
|
1233
|
+
return hostBounds.left - leftBounds - buffer;
|
1234
|
+
}
|
1235
|
+
if (rightBounds - buffer > hostBounds.right) {
|
1236
|
+
return -(rightBounds - hostBounds.right) + buffer;
|
1237
|
+
}
|
1238
|
+
return 0;
|
1239
|
+
}
|
1240
|
+
/**
|
1241
|
+
* Returns an integer representing the number of pixels that the two given span elements are overlapping, taking into account
|
1242
|
+
* a space in between the two spans equal to the font-size set on them to account for the space needed to render a hyphen.
|
1243
|
+
*
|
1244
|
+
* @param leftLabel
|
1245
|
+
* @param rightLabel
|
1246
|
+
*/
|
1247
|
+
getRangeLabelOverlap(leftLabel, rightLabel) {
|
1248
|
+
const leftLabelBounds = leftLabel.getBoundingClientRect();
|
1249
|
+
const rightLabelBounds = rightLabel.getBoundingClientRect();
|
1250
|
+
const leftLabelFontSize = this.getFontSizeForElement(leftLabel);
|
1251
|
+
const rangeLabelOverlap = leftLabelBounds.right + leftLabelFontSize - rightLabelBounds.left;
|
1252
|
+
return Math.max(rangeLabelOverlap, 0);
|
1253
|
+
}
|
1254
|
+
/**
|
1255
|
+
* Returns a boolean value representing if the minLabel span element is obscured (being overlapped) by the given handle div element.
|
1256
|
+
*
|
1257
|
+
* @param minLabel
|
1258
|
+
* @param handle
|
1259
|
+
*/
|
1260
|
+
isMinTickLabelObscured(minLabel, handle) {
|
1261
|
+
const minLabelBounds = minLabel.getBoundingClientRect();
|
1262
|
+
const handleBounds = handle.getBoundingClientRect();
|
1263
|
+
return intersects(minLabelBounds, handleBounds);
|
1264
|
+
}
|
1265
|
+
/**
|
1266
|
+
* Returns a boolean value representing if the maxLabel span element is obscured (being overlapped) by the given handle div element.
|
1267
|
+
*
|
1268
|
+
* @param maxLabel
|
1269
|
+
* @param handle
|
1270
|
+
*/
|
1271
|
+
isMaxTickLabelObscured(maxLabel, handle) {
|
1272
|
+
const maxLabelBounds = maxLabel.getBoundingClientRect();
|
1273
|
+
const handleBounds = handle.getBoundingClientRect();
|
1274
|
+
return intersects(maxLabelBounds, handleBounds);
|
1275
|
+
}
|
1276
|
+
get el() { return getElement(this); }
|
1277
|
+
static get watchers() { return {
|
1278
|
+
"histogram": ["histogramWatcher"],
|
1279
|
+
"value": ["valueHandler"],
|
1280
|
+
"minValue": ["minMaxValueHandler"],
|
1281
|
+
"maxValue": ["minMaxValueHandler"]
|
1282
|
+
}; }
|
1283
|
+
};
|
1284
|
+
Slider.style = sliderCss;
|
1285
|
+
|
1286
|
+
const mapDrawToolsCss = ":host{display:block}.border{outline:1px solid var(--calcite-ui-border-input)}";
|
1287
|
+
|
1288
|
+
const MapDrawTools = class {
|
1289
|
+
constructor(hostRef) {
|
1290
|
+
registerInstance(this, hostRef);
|
1291
|
+
this.sketchGraphicsChange = createEvent(this, "sketchGraphicsChange", 7);
|
1292
|
+
this.active = false;
|
1293
|
+
this.border = false;
|
1294
|
+
this.mapView = undefined;
|
1295
|
+
this.pointSymbol = undefined;
|
1296
|
+
this.polylineSymbol = undefined;
|
1297
|
+
this.polygonSymbol = undefined;
|
1298
|
+
this.graphics = [];
|
1299
|
+
this._translations = undefined;
|
1300
|
+
}
|
1301
|
+
//--------------------------------------------------------------------------
|
1302
|
+
//
|
1303
|
+
// Watch handlers
|
1304
|
+
//
|
1305
|
+
//--------------------------------------------------------------------------
|
1306
|
+
/**
|
1307
|
+
* Called each time the graphics prop is changed.
|
1308
|
+
*
|
1309
|
+
*/
|
1310
|
+
graphicsWatchHandler(v, oldV) {
|
1311
|
+
if (v && v.length > 0 && JSON.stringify(v) !== JSON.stringify(oldV || [])) {
|
1312
|
+
this._sketchGraphicsLayer.removeAll();
|
1313
|
+
this._sketchGraphicsLayer.addMany(v);
|
1314
|
+
}
|
1315
|
+
}
|
1316
|
+
/**
|
1317
|
+
* Called each time the mapView prop is changed.
|
1318
|
+
*
|
1319
|
+
*/
|
1320
|
+
mapViewWatchHandler(v, oldV) {
|
1321
|
+
if (v && v !== oldV) {
|
1322
|
+
this._init();
|
1323
|
+
}
|
1324
|
+
}
|
1325
|
+
//--------------------------------------------------------------------------
|
1326
|
+
//
|
1327
|
+
// Methods (public)
|
1328
|
+
//
|
1329
|
+
//--------------------------------------------------------------------------
|
1330
|
+
/**
|
1331
|
+
* Clears the user drawn graphics
|
1332
|
+
*
|
1333
|
+
* @returns Promise that resolves when the operation is complete
|
1334
|
+
*/
|
1335
|
+
async clear() {
|
1336
|
+
this._clearSketch();
|
1337
|
+
}
|
1338
|
+
//--------------------------------------------------------------------------
|
1339
|
+
//
|
1340
|
+
// Functions (lifecycle)
|
1341
|
+
//
|
1342
|
+
//--------------------------------------------------------------------------
|
1343
|
+
/**
|
1344
|
+
* StencilJS: Called once just after the component is first connected to the DOM.
|
1345
|
+
*
|
1346
|
+
* @returns Promise when complete
|
1347
|
+
*/
|
1348
|
+
async componentWillLoad() {
|
1349
|
+
await this._getTranslations();
|
1350
|
+
await this._initModules();
|
1351
|
+
}
|
1352
|
+
/**
|
1353
|
+
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
1354
|
+
*
|
1355
|
+
* @returns Promise when complete
|
1356
|
+
*/
|
1357
|
+
componentDidLoad() {
|
1358
|
+
this._init();
|
1359
|
+
}
|
1360
|
+
/**
|
1361
|
+
* Renders the component.
|
1362
|
+
*/
|
1363
|
+
render() {
|
1364
|
+
const drawClass = this.border ? "border" : "";
|
1365
|
+
return (h(Host, null, h("div", { class: drawClass }, h("div", { ref: (el) => { this._sketchElement = el; } }))));
|
1366
|
+
}
|
1367
|
+
//--------------------------------------------------------------------------
|
1368
|
+
//
|
1369
|
+
// Functions (protected)
|
1370
|
+
//
|
1371
|
+
//--------------------------------------------------------------------------
|
1372
|
+
/**
|
1373
|
+
* Load esri javascript api modules
|
1374
|
+
*
|
1375
|
+
* @returns Promise resolving when function is done
|
1376
|
+
*
|
1377
|
+
* @protected
|
1378
|
+
*/
|
1379
|
+
async _initModules() {
|
1380
|
+
const [GraphicsLayer, Sketch] = await loadModules([
|
1381
|
+
"esri/layers/GraphicsLayer",
|
1382
|
+
"esri/widgets/Sketch"
|
1383
|
+
]);
|
1384
|
+
this.GraphicsLayer = GraphicsLayer;
|
1385
|
+
this.Sketch = Sketch;
|
1386
|
+
}
|
1387
|
+
/**
|
1388
|
+
* Initialize the graphics layer and the tools that support creating new graphics
|
1389
|
+
*
|
1390
|
+
* @protected
|
1391
|
+
*/
|
1392
|
+
_init() {
|
1393
|
+
if (this.mapView && this._sketchElement) {
|
1394
|
+
this._initGraphicsLayer();
|
1395
|
+
this._initDrawTools();
|
1396
|
+
}
|
1397
|
+
}
|
1398
|
+
/**
|
1399
|
+
* Create or find the graphics layer and add any existing graphics
|
1400
|
+
*
|
1401
|
+
* @protected
|
1402
|
+
*/
|
1403
|
+
_initGraphicsLayer() {
|
1404
|
+
const title = this._translations.sketchLayer;
|
1405
|
+
const sketchIndex = this.mapView.map.layers.findIndex((l) => l.title === title);
|
1406
|
+
if (sketchIndex > -1) {
|
1407
|
+
this._sketchGraphicsLayer = this.mapView.map.layers.getItemAt(sketchIndex);
|
1408
|
+
}
|
1409
|
+
else {
|
1410
|
+
this._sketchGraphicsLayer = new this.GraphicsLayer({ title });
|
1411
|
+
state.managedLayers.push(title);
|
1412
|
+
this.mapView.map.layers.add(this._sketchGraphicsLayer);
|
1413
|
+
}
|
1414
|
+
if (this.graphics && this.graphics.length > 0) {
|
1415
|
+
this._sketchGraphicsLayer.addMany(this.graphics);
|
1416
|
+
}
|
1417
|
+
}
|
1418
|
+
/**
|
1419
|
+
* Initialize the skecth widget and store the associated symbols for each geometry type
|
1420
|
+
*
|
1421
|
+
* @protected
|
1422
|
+
*/
|
1423
|
+
_initDrawTools() {
|
1424
|
+
this._sketchWidget = new this.Sketch({
|
1425
|
+
layer: this._sketchGraphicsLayer,
|
1426
|
+
view: this.mapView,
|
1427
|
+
container: this._sketchElement,
|
1428
|
+
creationMode: "update",
|
1429
|
+
defaultCreateOptions: {
|
1430
|
+
"mode": "hybrid"
|
1431
|
+
}
|
1432
|
+
});
|
1433
|
+
this.pointSymbol = this._sketchWidget.viewModel.pointSymbol;
|
1434
|
+
this.polylineSymbol = this._sketchWidget.viewModel.polylineSymbol;
|
1435
|
+
this.polygonSymbol = this._sketchWidget.viewModel.polygonSymbol;
|
1436
|
+
this._sketchWidget.visibleElements = {
|
1437
|
+
selectionTools: {
|
1438
|
+
"lasso-selection": false,
|
1439
|
+
"rectangle-selection": false
|
1440
|
+
}, createTools: {
|
1441
|
+
"circle": false,
|
1442
|
+
"point": false
|
1443
|
+
}
|
1444
|
+
};
|
1445
|
+
this._sketchWidget.on("update", (evt) => {
|
1446
|
+
if (evt.state === "complete" && this.active) {
|
1447
|
+
this.graphics = this._sketchGraphicsLayer.graphics.toArray();
|
1448
|
+
this.sketchGraphicsChange.emit(this.graphics);
|
1449
|
+
}
|
1450
|
+
});
|
1451
|
+
}
|
1452
|
+
/**
|
1453
|
+
* Clear any stored graphics and remove all graphics from the graphics layer
|
1454
|
+
*
|
1455
|
+
* @protected
|
1456
|
+
*/
|
1457
|
+
_clearSketch() {
|
1458
|
+
this.graphics = undefined;
|
1459
|
+
this._sketchGraphicsLayer.removeAll();
|
1460
|
+
}
|
1461
|
+
/**
|
1462
|
+
* Fetches the component's translations
|
1463
|
+
*
|
1464
|
+
* @protected
|
1465
|
+
*/
|
1466
|
+
async _getTranslations() {
|
1467
|
+
const translations = await getLocaleComponentStrings(this.el);
|
1468
|
+
this._translations = translations[0];
|
1469
|
+
}
|
1470
|
+
get el() { return getElement(this); }
|
1471
|
+
static get watchers() { return {
|
1472
|
+
"graphics": ["graphicsWatchHandler"],
|
1473
|
+
"mapView": ["mapViewWatchHandler"]
|
1474
|
+
}; }
|
1475
|
+
};
|
1476
|
+
MapDrawTools.style = mapDrawToolsCss;
|
1477
|
+
|
1478
|
+
const refineSelectionToolsCss = ":host{display:block}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir=\"rtl\"] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-ui-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:\"Avenir Next\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;line-height:1.3em;background-color:#fff}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}*/ .esri-sketch__tool-section{border-right:1px solid rgba(110,110,110,.3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110,110,110,.3)}";
|
1479
|
+
|
1480
|
+
const RefineSelectionTools = class {
|
1481
|
+
constructor(hostRef) {
|
1482
|
+
registerInstance(this, hostRef);
|
1483
|
+
this.refineSelectionGraphicsChange = createEvent(this, "refineSelectionGraphicsChange", 7);
|
1484
|
+
this.refineSelectionIdsChange = createEvent(this, "refineSelectionIdsChange", 7);
|
1485
|
+
/**
|
1486
|
+
* {<layer title>: Graphic[]}: Collection of graphics returned from queries to the layer
|
1487
|
+
*/
|
1488
|
+
this._featuresCollection = {};
|
1489
|
+
/**
|
1490
|
+
* IRefineOperation[]: Array to maintain the possible redo operations
|
1491
|
+
*/
|
1492
|
+
this._redoStack = [];
|
1493
|
+
/**
|
1494
|
+
* IRefineOperation[]: Array to maintain the possible undo operations
|
1495
|
+
*/
|
1496
|
+
this._undoStack = [];
|
1497
|
+
this.active = false;
|
1498
|
+
this.border = false;
|
1499
|
+
this.graphics = undefined;
|
1500
|
+
this.ids = [];
|
1501
|
+
this.layerView = undefined;
|
1502
|
+
this.layerViews = [];
|
1503
|
+
this.mapView = undefined;
|
1504
|
+
this.mode = undefined;
|
1505
|
+
this.refineMode = undefined;
|
1506
|
+
this.useLayerPicker = true;
|
1507
|
+
this._selectEnabled = false;
|
1508
|
+
this._selectionMode = undefined;
|
1509
|
+
this._translations = undefined;
|
1510
|
+
}
|
1511
|
+
//--------------------------------------------------------------------------
|
1512
|
+
//
|
1513
|
+
// Watch handlers
|
1514
|
+
//
|
1515
|
+
//--------------------------------------------------------------------------
|
1516
|
+
/**
|
1517
|
+
* Called each time the ids prop is changed.
|
1518
|
+
* Highlight the features based on the provided ids
|
1519
|
+
*/
|
1520
|
+
idsWatchHandler(v, oldV) {
|
1521
|
+
if (v && JSON.stringify(v) !== JSON.stringify(oldV)) {
|
1522
|
+
void this._highlightFeatures(v);
|
1523
|
+
}
|
1524
|
+
}
|
1525
|
+
//--------------------------------------------------------------------------
|
1526
|
+
//
|
1527
|
+
// Methods (public)
|
1528
|
+
//
|
1529
|
+
//--------------------------------------------------------------------------
|
1530
|
+
/**
|
1531
|
+
* Reset the ids collection
|
1532
|
+
*
|
1533
|
+
* @returns Promise when complete
|
1534
|
+
*/
|
1535
|
+
async reset() {
|
1536
|
+
this.ids = [];
|
1537
|
+
}
|
1538
|
+
/**
|
1539
|
+
* Clear current highlight handle
|
1540
|
+
*
|
1541
|
+
* @returns Promise when complete
|
1542
|
+
*/
|
1543
|
+
async clearHighlight() {
|
1544
|
+
this._clearHighlight();
|
1545
|
+
}
|
1546
|
+
//--------------------------------------------------------------------------
|
1547
|
+
//
|
1548
|
+
// Functions (lifecycle)
|
1549
|
+
//
|
1550
|
+
//--------------------------------------------------------------------------
|
1551
|
+
/**
|
1552
|
+
* StencilJS: Called once just after the component is first connected to the DOM.
|
1553
|
+
*/
|
1554
|
+
async componentWillLoad() {
|
1555
|
+
await this._getTranslations();
|
1556
|
+
await this._initModules();
|
1557
|
+
}
|
1558
|
+
/**
|
1559
|
+
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
1560
|
+
*/
|
1561
|
+
componentDidLoad() {
|
1562
|
+
this._init();
|
1563
|
+
}
|
1564
|
+
/**
|
1565
|
+
* StencilJS: Called every time the component is disconnected from the DOM, ie,
|
1566
|
+
* it can be dispatched more than once, DO not confuse with a "onDestroy" kind of event.
|
1567
|
+
*/
|
1568
|
+
disconnectedCallback() {
|
1569
|
+
this.active = false;
|
1570
|
+
}
|
1571
|
+
/**
|
1572
|
+
* Called every time the component is connected to the DOM.
|
1573
|
+
* When the component is first connected, this method is called before componentWillLoad.
|
1574
|
+
*/
|
1575
|
+
connectedCallback() {
|
1576
|
+
this.active = true;
|
1577
|
+
if (this.ids.length > 0) {
|
1578
|
+
this._selectEnabled = true;
|
1579
|
+
void this._highlightFeatures(this.ids);
|
1580
|
+
}
|
1581
|
+
}
|
1582
|
+
/**
|
1583
|
+
* Renders the component.
|
1584
|
+
*/
|
1585
|
+
render() {
|
1586
|
+
const showLayerPickerClass = this.useLayerPicker ? "div-visible" : "div-not-visible";
|
1587
|
+
const drawClass = this.border ? " border" : "";
|
1588
|
+
return (h(Host, null, h("div", null, h("div", { class: "main-label " + showLayerPickerClass }, h("calcite-label", null, this._translations.selectLayers)), h("map-layer-picker", { class: showLayerPickerClass, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedLayers: this.layerViews.map(l => l.layer.title), selectionMode: "single" }), h("div", { class: "margin-top-1" + drawClass }, h("div", { class: "esri-sketch esri-widget" }, h("div", { class: "esri-sketch__panel" }, h("div", { class: "esri-sketch__tool-section esri-sketch__section" }, h("calcite-action", { disabled: !this._selectEnabled, icon: "select", onClick: () => this._setSelectionMode(ESelectionType.POINT), scale: "s", text: this._translations.select })), h("div", { class: "esri-sketch__tool-section esri-sketch__section" }, h("calcite-action", { disabled: !this._selectEnabled, icon: "line", onClick: () => this._setSelectionMode(ESelectionType.LINE), scale: "s", text: this._translations.selectLine }), h("calcite-action", { disabled: !this._selectEnabled, icon: "polygon", onClick: () => this._setSelectionMode(ESelectionType.POLY), scale: "s", text: this._translations.selectPolygon }), h("calcite-action", { disabled: !this._selectEnabled, icon: "rectangle", onClick: () => this._setSelectionMode(ESelectionType.RECT), scale: "s", text: this._translations.selectRectangle })), h("div", { class: "esri-sketch__tool-section esri-sketch__section" }, h("calcite-action", { disabled: this._undoStack.length === 0, icon: "undo", onClick: () => this._undo(), scale: "s", text: this._translations.undo }), h("calcite-action", { disabled: this._redoStack.length === 0, icon: "redo", onClick: () => this._redo(), scale: "s", text: this._translations.redo }))))))));
|
1589
|
+
}
|
1590
|
+
//--------------------------------------------------------------------------
|
1591
|
+
//
|
1592
|
+
// Functions (protected)
|
1593
|
+
//
|
1594
|
+
//--------------------------------------------------------------------------
|
1595
|
+
/**
|
1596
|
+
* Load esri javascript api modules
|
1597
|
+
*
|
1598
|
+
* @returns Promise resolving when function is done
|
1599
|
+
*
|
1600
|
+
* @protected
|
1601
|
+
*/
|
1602
|
+
async _initModules() {
|
1603
|
+
const [GraphicsLayer, SketchViewModel] = await loadModules([
|
1604
|
+
"esri/layers/GraphicsLayer",
|
1605
|
+
"esri/widgets/Sketch/SketchViewModel"
|
1606
|
+
]);
|
1607
|
+
this.GraphicsLayer = GraphicsLayer;
|
1608
|
+
this.SketchViewModel = SketchViewModel;
|
1609
|
+
}
|
1610
|
+
/**
|
1611
|
+
* Initialize the graphics layer and skecth view model
|
1612
|
+
*
|
1613
|
+
* @returns Promise when the operation has completed
|
1614
|
+
* @protected
|
1615
|
+
*/
|
1616
|
+
_init() {
|
1617
|
+
this._initGraphicsLayer();
|
1618
|
+
this._initSketchViewModel();
|
1619
|
+
}
|
1620
|
+
/**
|
1621
|
+
* Initialize the skecth view model
|
1622
|
+
*
|
1623
|
+
* @returns Promise when the operation has completed
|
1624
|
+
* @protected
|
1625
|
+
*/
|
1626
|
+
_initSketchViewModel() {
|
1627
|
+
this._sketchViewModel = new this.SketchViewModel({
|
1628
|
+
layer: this._sketchGraphicsLayer,
|
1629
|
+
defaultUpdateOptions: {
|
1630
|
+
tool: "reshape",
|
1631
|
+
toggleToolOnClick: false
|
1632
|
+
},
|
1633
|
+
view: this.mapView
|
1634
|
+
});
|
1635
|
+
this._sketchViewModel.on("create", (event) => {
|
1636
|
+
if (event.state === "complete" && this.active) {
|
1637
|
+
this._featuresCollection = {};
|
1638
|
+
this._sketchGeometry = event.graphic.geometry;
|
1639
|
+
void this._selectFeatures(this._sketchGeometry);
|
1640
|
+
}
|
1641
|
+
});
|
1642
|
+
}
|
1643
|
+
/**
|
1644
|
+
* Clear any skecth graphics
|
1645
|
+
*
|
1646
|
+
* @returns Promise when the operation has completed
|
1647
|
+
* @protected
|
1648
|
+
*/
|
1649
|
+
_clear() {
|
1650
|
+
this._sketchGeometry = null;
|
1651
|
+
this._sketchViewModel.cancel();
|
1652
|
+
this._sketchGraphicsLayer.removeAll();
|
1653
|
+
}
|
1654
|
+
/**
|
1655
|
+
* Initialize the graphics layer
|
1656
|
+
*
|
1657
|
+
* @returns Promise when the operation has completed
|
1658
|
+
* @protected
|
1659
|
+
*/
|
1660
|
+
_initGraphicsLayer() {
|
1661
|
+
const title = this._translations.sketchLayer;
|
1662
|
+
const sketchIndex = this.mapView.map.layers.findIndex((l) => l.title === title);
|
1663
|
+
if (sketchIndex > -1) {
|
1664
|
+
this._sketchGraphicsLayer = this.mapView.map.layers.getItemAt(sketchIndex);
|
1665
|
+
}
|
1666
|
+
else {
|
1667
|
+
this._sketchGraphicsLayer = new this.GraphicsLayer({ title });
|
1668
|
+
state.managedLayers.push(title);
|
1669
|
+
this.mapView.map.layers.add(this._sketchGraphicsLayer);
|
1670
|
+
}
|
1671
|
+
if (this.graphics && this.graphics.length > 0) {
|
1672
|
+
this._sketchGraphicsLayer.addMany(this.graphics);
|
1673
|
+
}
|
1674
|
+
}
|
1675
|
+
/**
|
1676
|
+
* Clear selection based on map click
|
1677
|
+
*
|
1678
|
+
* @protected
|
1679
|
+
*/
|
1680
|
+
_initHitTest() {
|
1681
|
+
if (this._hitTestHandle) {
|
1682
|
+
this._hitTestHandle.remove();
|
1683
|
+
}
|
1684
|
+
this._hitTestHandle = this.mapView.on("click", (event) => {
|
1685
|
+
event.stopPropagation();
|
1686
|
+
const opts = {
|
1687
|
+
include: this.layerViews.map(lv => lv.layer)
|
1688
|
+
};
|
1689
|
+
void this.mapView.hitTest(event, opts).then((response) => {
|
1690
|
+
let graphics = [];
|
1691
|
+
if (response.results.length > 0) {
|
1692
|
+
graphics = response.results.reduce((prev, cur) => {
|
1693
|
+
const g = cur === null || cur === void 0 ? void 0 : cur.graphic;
|
1694
|
+
if (g) {
|
1695
|
+
prev.push(g);
|
1696
|
+
}
|
1697
|
+
return prev;
|
1698
|
+
}, []);
|
1699
|
+
}
|
1700
|
+
this.refineSelectionGraphicsChange.emit(graphics);
|
1701
|
+
this._clear();
|
1702
|
+
});
|
1703
|
+
});
|
1704
|
+
}
|
1705
|
+
/**
|
1706
|
+
* Gets the layer views from the map when the layer selection changes
|
1707
|
+
*
|
1708
|
+
* @returns Promise resolving when function is done
|
1709
|
+
*
|
1710
|
+
* @protected
|
1711
|
+
*/
|
1712
|
+
async _layerSelectionChange(evt) {
|
1713
|
+
if (Array.isArray(evt.detail) && evt.detail.length > 0) {
|
1714
|
+
this._selectEnabled = true;
|
1715
|
+
const layerPromises = evt.detail.map(title => {
|
1716
|
+
return getMapLayerView(this.mapView, title);
|
1717
|
+
});
|
1718
|
+
return Promise.all(layerPromises).then((layerViews) => {
|
1719
|
+
this.layerViews = layerViews;
|
1720
|
+
});
|
1721
|
+
}
|
1722
|
+
else {
|
1723
|
+
this._selectEnabled = false;
|
1724
|
+
}
|
1725
|
+
}
|
1726
|
+
/**
|
1727
|
+
* Store the current selection mode
|
1728
|
+
*
|
1729
|
+
* @protected
|
1730
|
+
*/
|
1731
|
+
_setSelectionMode(mode) {
|
1732
|
+
this._selectionMode = mode;
|
1733
|
+
if (this._hitTestHandle) {
|
1734
|
+
this._hitTestHandle.remove();
|
1735
|
+
}
|
1736
|
+
switch (this._selectionMode) {
|
1737
|
+
case ESelectionType.POINT:
|
1738
|
+
this._sketchViewModel.create("point");
|
1739
|
+
//this._initHitTest();
|
1740
|
+
break;
|
1741
|
+
case ESelectionType.LINE:
|
1742
|
+
this._sketchViewModel.create("polyline");
|
1743
|
+
break;
|
1744
|
+
case ESelectionType.POLY:
|
1745
|
+
this._sketchViewModel.create("polygon");
|
1746
|
+
break;
|
1747
|
+
case ESelectionType.RECT:
|
1748
|
+
this._sketchViewModel.create("rectangle");
|
1749
|
+
break;
|
1750
|
+
}
|
1751
|
+
}
|
1752
|
+
/**
|
1753
|
+
* Select features based on the input geometry
|
1754
|
+
*
|
1755
|
+
* @param geom the geometry used for selection
|
1756
|
+
*
|
1757
|
+
* @returns Promise resolving when function is done
|
1758
|
+
*
|
1759
|
+
* @protected
|
1760
|
+
*/
|
1761
|
+
async _selectFeatures(geom) {
|
1762
|
+
const queryFeaturePromises = this.layerViews.map(layerView => {
|
1763
|
+
this._featuresCollection[layerView.layer.title] = [];
|
1764
|
+
return queryFeaturesByGeometry(0, layerView.layer, geom, this._featuresCollection);
|
1765
|
+
});
|
1766
|
+
return Promise.all(queryFeaturePromises).then(async (response) => {
|
1767
|
+
let graphics = [];
|
1768
|
+
response.forEach(r => {
|
1769
|
+
Object.keys(r).forEach(k => {
|
1770
|
+
graphics = graphics.concat(r[k]);
|
1771
|
+
});
|
1772
|
+
});
|
1773
|
+
if (this.refineMode === ERefineMode.SUBSET) {
|
1774
|
+
this.refineSelectionGraphicsChange.emit(graphics);
|
1775
|
+
}
|
1776
|
+
else {
|
1777
|
+
const oids = Array.isArray(graphics) ? graphics.map(g => { var _a; return g.attributes[(_a = g === null || g === void 0 ? void 0 : g.layer) === null || _a === void 0 ? void 0 : _a.objectIdField]; }) : [];
|
1778
|
+
await this._updateIds(oids, this.mode, this._undoStack, this.mode);
|
1779
|
+
}
|
1780
|
+
this._clear();
|
1781
|
+
});
|
1782
|
+
}
|
1783
|
+
/**
|
1784
|
+
* Highlight any selected features in the map
|
1785
|
+
*
|
1786
|
+
* @returns Promise resolving when function is done
|
1787
|
+
* @protected
|
1788
|
+
*/
|
1789
|
+
async _highlightFeatures(ids, updateExtent = false) {
|
1790
|
+
this._clearHighlight();
|
1791
|
+
if (ids.length > 0) {
|
1792
|
+
state.highlightHandle = await highlightFeatures(ids, this.layerViews[0], this.mapView, updateExtent);
|
1793
|
+
}
|
1794
|
+
}
|
1795
|
+
/**
|
1796
|
+
* Clear any highlighted features in the map
|
1797
|
+
*
|
1798
|
+
* @protected
|
1799
|
+
*/
|
1800
|
+
_clearHighlight() {
|
1801
|
+
var _a;
|
1802
|
+
(_a = state.highlightHandle) === null || _a === void 0 ? void 0 : _a.remove();
|
1803
|
+
}
|
1804
|
+
/**
|
1805
|
+
* Update the ids for any ADD or REMOVE operation and highlight the features.
|
1806
|
+
*
|
1807
|
+
* @param oids the ids to add or remove
|
1808
|
+
* @param mode ADD or REMOVE this will control if the ids are added or removed
|
1809
|
+
* @param operationStack the undo or redo stack to push the operation to
|
1810
|
+
* @param operationMode ADD or REMOVE the mode of the individual refine operation
|
1811
|
+
*
|
1812
|
+
* @returns Promise resolving when function is done
|
1813
|
+
*
|
1814
|
+
* @protected
|
1815
|
+
*/
|
1816
|
+
async _updateIds(oids, mode, operationStack, operationMode) {
|
1817
|
+
const idUpdates = { addIds: [], removeIds: [] };
|
1818
|
+
if (mode === ESelectionMode.ADD) {
|
1819
|
+
idUpdates.addIds = oids.filter(id => this.ids.indexOf(id) < 0);
|
1820
|
+
this.ids = [...this.ids, ...idUpdates.addIds];
|
1821
|
+
operationStack.push({ mode: operationMode, ids: idUpdates.addIds });
|
1822
|
+
}
|
1823
|
+
else {
|
1824
|
+
idUpdates.removeIds = oids.filter(id => this.ids.indexOf(id) > -1);
|
1825
|
+
this.ids = this.ids.filter(id => idUpdates.removeIds.indexOf(id) < 0);
|
1826
|
+
operationStack.push({ mode: operationMode, ids: idUpdates.removeIds });
|
1827
|
+
}
|
1828
|
+
await this._highlightFeatures(this.ids).then(() => {
|
1829
|
+
this.refineSelectionIdsChange.emit(idUpdates);
|
1830
|
+
});
|
1831
|
+
}
|
1832
|
+
/**
|
1833
|
+
* Undo the most current ADD or REMOVE operation
|
1834
|
+
*
|
1835
|
+
* @returns Promise resolving when function is done
|
1836
|
+
*
|
1837
|
+
* @protected
|
1838
|
+
*/
|
1839
|
+
async _undo() {
|
1840
|
+
const undoOp = this._undoStack.pop();
|
1841
|
+
return this._updateIds(undoOp.ids, undoOp.mode === ESelectionMode.ADD ? ESelectionMode.REMOVE : ESelectionMode.ADD, this._redoStack, undoOp.mode);
|
1842
|
+
}
|
1843
|
+
/**
|
1844
|
+
* Redo the most current ADD or REMOVE operation
|
1845
|
+
*
|
1846
|
+
* @returns Promise resolving when function is done
|
1847
|
+
*
|
1848
|
+
* @protected
|
1849
|
+
*/
|
1850
|
+
async _redo() {
|
1851
|
+
const redoOp = this._redoStack.pop();
|
1852
|
+
return this._updateIds(redoOp.ids, redoOp.mode, this._undoStack, redoOp.mode);
|
1853
|
+
}
|
1854
|
+
/**
|
1855
|
+
* Fetches the component's translations
|
1856
|
+
*
|
1857
|
+
* @protected
|
1858
|
+
*/
|
1859
|
+
async _getTranslations() {
|
1860
|
+
const translations = await getLocaleComponentStrings(this.el);
|
1861
|
+
this._translations = translations[0];
|
1862
|
+
}
|
1863
|
+
get el() { return getElement(this); }
|
1864
|
+
static get watchers() { return {
|
1865
|
+
"ids": ["idsWatchHandler"]
|
1866
|
+
}; }
|
1867
|
+
};
|
1868
|
+
RefineSelectionTools.style = refineSelectionToolsCss;
|
1869
|
+
|
1870
|
+
export { BufferTools as buffer_tools, RadioGroup as calcite_radio_group, RadioGroupItem as calcite_radio_group_item, Slider as calcite_slider, MapDrawTools as map_draw_tools, RefineSelectionTools as refine_selection_tools };
|
1871
|
+
|
1872
|
+
//# sourceMappingURL=p-e6fb9cde.entry.js.map
|