@esri/calcite-components 1.0.0-next.667 → 1.0.0-next.669
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-8127632d.js → p-008ba409.js} +1 -1
- package/dist/calcite/{p-25741897.entry.js → p-02ad2e86.entry.js} +2 -2
- package/dist/calcite/{p-a1713cf6.entry.js → p-037ba1bd.entry.js} +2 -2
- package/dist/calcite/{p-dacd7155.js → p-08b308a6.js} +2 -2
- package/dist/calcite/{p-6c1f76a1.entry.js → p-095029d2.entry.js} +2 -2
- package/dist/calcite/{p-b626bddd.entry.js → p-0c9508d6.entry.js} +2 -2
- package/dist/calcite/{p-dbf705b2.entry.js → p-0e1da6f7.entry.js} +2 -2
- package/dist/calcite/{p-3a0d1605.entry.js → p-1275080e.entry.js} +2 -2
- package/dist/calcite/{p-52764192.entry.js → p-161e7210.entry.js} +2 -2
- package/dist/calcite/{p-d1ba6207.js → p-16efd53b.js} +1 -1
- package/dist/calcite/{p-d96ada1a.entry.js → p-1e7e7925.entry.js} +2 -2
- package/dist/calcite/{p-7cbaddf7.js → p-27652fe0.js} +2 -2
- package/dist/calcite/{p-7b393c84.entry.js → p-2a168afa.entry.js} +2 -2
- package/dist/calcite/{p-1fb746de.entry.js → p-2bee56b0.entry.js} +2 -2
- package/dist/calcite/{p-2c1ae533.js → p-2ce84b1b.js} +2 -2
- package/dist/calcite/{p-32467d47.js → p-2d3862ce.js} +2 -2
- package/dist/calcite/{p-c8854bbe.entry.js → p-2d574c12.entry.js} +2 -2
- package/dist/calcite/{p-0f247aeb.entry.js → p-32658b44.entry.js} +2 -2
- package/dist/calcite/{p-073c5ae1.js → p-3492b1c3.js} +2 -2
- package/dist/calcite/{p-4f13c386.entry.js → p-35b86ad3.entry.js} +2 -2
- package/dist/calcite/{p-608a7580.entry.js → p-3e12279c.entry.js} +2 -2
- package/dist/calcite/{p-47980f7d.entry.js → p-40db2148.entry.js} +2 -2
- package/dist/calcite/{p-ed02a21a.entry.js → p-42819e58.entry.js} +2 -2
- package/dist/calcite/{p-01030696.entry.js → p-42b2b171.entry.js} +2 -2
- package/dist/calcite/{p-99b5b20f.entry.js → p-46db2512.entry.js} +2 -2
- package/dist/calcite/{p-c3d2aa60.js → p-47e3dd9a.js} +1 -1
- package/dist/calcite/{p-d7267559.entry.js → p-4a87e4ca.entry.js} +2 -2
- package/dist/calcite/{p-a5aee43d.js → p-4cdfc255.js} +2 -2
- package/dist/calcite/{p-6261d20e.entry.js → p-4e343abd.entry.js} +2 -2
- package/dist/calcite/{p-958e2704.entry.js → p-56b15e7e.entry.js} +2 -2
- package/dist/calcite/{p-a5e2970d.js → p-5ad13158.js} +1 -1
- package/dist/calcite/{p-9e6014d2.js → p-5c12be98.js} +1 -1
- package/dist/calcite/{p-40197b0d.entry.js → p-5cb1f452.entry.js} +2 -2
- package/dist/calcite/{p-b1a286ab.entry.js → p-600f1e28.entry.js} +2 -2
- package/dist/calcite/{p-40cf7a5d.entry.js → p-611f671d.entry.js} +2 -2
- package/dist/calcite/{p-22df71ea.js → p-61d6aa33.js} +2 -2
- package/dist/calcite/{p-fc9a23c0.entry.js → p-62c20a76.entry.js} +2 -2
- package/dist/calcite/{p-694d0c85.js → p-64b2a819.js} +2 -2
- package/dist/calcite/{p-65508879.entry.js → p-6639ccc5.entry.js} +2 -2
- package/dist/calcite/{p-f7457303.js → p-6697083d.js} +2 -2
- package/dist/calcite/{p-dd725686.entry.js → p-66de7505.entry.js} +2 -2
- package/dist/calcite/{p-456496a2.entry.js → p-74823a77.entry.js} +2 -2
- package/dist/calcite/p-76551754.js +6 -0
- package/dist/calcite/{p-3defbd1e.js → p-76c87f94.js} +1 -1
- package/dist/calcite/p-79eef295.entry.js +6 -0
- package/dist/calcite/p-811e41c1.js +15 -0
- package/dist/calcite/{p-5681e2d8.entry.js → p-83599fbc.entry.js} +2 -2
- package/dist/calcite/{p-0c47935f.js → p-83afad85.js} +1 -1
- package/dist/calcite/{p-2058fc82.entry.js → p-86e49366.entry.js} +2 -2
- package/dist/calcite/p-89ef1d19.js +6 -0
- package/dist/calcite/{p-d35660c8.entry.js → p-8adc84b2.entry.js} +2 -2
- package/dist/calcite/{p-5ee9d2e2.entry.js → p-8dc0be3c.entry.js} +2 -2
- package/dist/calcite/p-8dd473b8.js +6 -0
- package/dist/calcite/{p-bd23f272.entry.js → p-94524fbb.entry.js} +2 -2
- package/dist/calcite/{p-0d7f5d14.entry.js → p-99078fca.entry.js} +2 -2
- package/dist/calcite/{p-bd4919cf.entry.js → p-9c050f02.entry.js} +2 -2
- package/dist/calcite/{p-59dc19bc.entry.js → p-a63beca4.entry.js} +2 -2
- package/dist/calcite/{p-47f1afa8.entry.js → p-a8153ef8.entry.js} +2 -2
- package/dist/calcite/{p-64b04c94.entry.js → p-a82cbd50.entry.js} +2 -2
- package/dist/calcite/{p-b478f8ea.js → p-b05c1da5.js} +1 -1
- package/dist/calcite/{p-9f356f2a.entry.js → p-b080149f.entry.js} +2 -2
- package/dist/calcite/{p-db4326f2.entry.js → p-b3835ee4.entry.js} +2 -2
- package/dist/calcite/{p-77d57e31.entry.js → p-b448fb81.entry.js} +2 -2
- package/dist/calcite/{p-b3bcbd73.js → p-b461bf50.js} +1 -1
- package/dist/calcite/{p-15398b5d.js → p-b92a61ca.js} +1 -1
- package/dist/calcite/{p-ddfc0600.entry.js → p-bb9d2917.entry.js} +2 -2
- package/dist/calcite/{p-eab96937.entry.js → p-bc4f03f0.entry.js} +2 -2
- package/dist/calcite/{p-c042d804.js → p-bd1deade.js} +2 -2
- package/dist/calcite/p-c0361e41.entry.js +6 -0
- package/dist/calcite/{p-c7e894f6.entry.js → p-c11a0fe5.entry.js} +2 -2
- package/dist/calcite/{p-dd57dc49.entry.js → p-c2fed027.entry.js} +2 -2
- package/dist/calcite/p-c309fa6a.entry.js +6 -0
- package/dist/calcite/p-c6d33868.entry.js +6 -0
- package/dist/calcite/{p-62e62c0f.js → p-c72e0f1f.js} +1 -1
- package/dist/calcite/{p-cdc6bfd5.entry.js → p-ca22aec2.entry.js} +2 -2
- package/dist/calcite/{p-ed8e4d06.entry.js → p-cada8908.entry.js} +2 -2
- package/dist/calcite/{p-7755fc88.js → p-d3f4a1e9.js} +1 -1
- package/dist/calcite/{p-c79c1982.js → p-d44630f3.js} +1 -1
- package/dist/calcite/{p-3a35379b.entry.js → p-d714407b.entry.js} +2 -2
- package/dist/calcite/{p-0755bd23.entry.js → p-d9b0faa4.entry.js} +2 -2
- package/dist/calcite/{p-78157cb7.js → p-df3ad4d4.js} +1 -1
- package/dist/calcite/{p-fd7b18d7.entry.js → p-e6e20a23.entry.js} +2 -2
- package/dist/calcite/{p-03d78983.js → p-eaa7cc97.js} +1 -1
- package/dist/calcite/{p-4cf837f9.entry.js → p-efe6c506.entry.js} +2 -2
- package/dist/calcite/{p-6e5c51bb.entry.js → p-f042a7d6.entry.js} +2 -2
- package/dist/calcite/{p-bba38de3.entry.js → p-f22a1c4f.entry.js} +2 -2
- package/dist/calcite/{p-13fbe129.entry.js → p-f810712a.entry.js} +2 -2
- package/dist/calcite/{p-6b3eee56.js → p-f81d1a3e.js} +1 -1
- package/dist/calcite/p-fa96cfd3.entry.js +6 -0
- package/dist/calcite/{p-f5349cf2.js → p-fcaf6ad4.js} +2 -2
- package/dist/calcite/{p-d72926e7.entry.js → p-ffd5ecaa.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-c7efbd2a.js → ExpandToggle-0fae493d.js} +5 -5
- package/dist/cjs/{Heading-da5cd23e.js → Heading-c4ea8d5a.js} +2 -2
- package/dist/cjs/{app-globals-d881811a.js → app-globals-25e9c643.js} +2 -2
- package/dist/cjs/{array-81515165.js → array-e070cf74.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad.cjs.entry.js +11 -11
- package/dist/cjs/calcite-action.cjs.entry.js +8 -8
- package/dist/cjs/calcite-alert.cjs.entry.js +11 -11
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-button.cjs.entry.js +10 -10
- package/dist/cjs/calcite-card.cjs.entry.js +7 -7
- package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
- package/dist/cjs/calcite-chip.cjs.entry.js +8 -8
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +15 -15
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +11 -11
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
- package/dist/cjs/calcite-filter.cjs.entry.js +9 -9
- package/dist/cjs/calcite-flow-item.cjs.entry.js +8 -8
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-handle.cjs.entry.js +6 -6
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +18 -26
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-text.cjs.entry.js +10 -10
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input.cjs.entry.js +13 -13
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +7 -7
- package/dist/cjs/calcite-list_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +20 -11
- package/dist/cjs/calcite-notice.cjs.entry.js +9 -9
- package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pagination.cjs.entry.js +8 -8
- package/dist/cjs/calcite-panel.cjs.entry.js +11 -11
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-popover.cjs.entry.js +21 -16
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-rating.cjs.entry.js +10 -10
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tooltip.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-4bf7bca5.js → conditionalSlot-efbf8152.js} +3 -3
- package/dist/cjs/{debounce-5e28974e.js → debounce-35d90e6c.js} +1 -1
- package/dist/cjs/{dom-0654c064.js → dom-9614ecc3.js} +3 -3
- package/dist/cjs/{filter-91d2cc3a.js → filter-0192a0e8.js} +2 -2
- package/dist/cjs/{floating-ui-07fc7473.js → floating-ui-907c2823.js} +4 -4
- package/dist/cjs/{focusTrapComponent-6ffd7c3f.js → focusTrapComponent-db23bb37.js} +24 -12
- package/dist/cjs/{form-92ffa02f.js → form-86b7aeae.js} +3 -3
- package/dist/cjs/{guid-08105e39.js → guid-d4b3835f.js} +1 -1
- package/dist/cjs/{index-ad699299.js → index-4fcb5d1b.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-a92bbb4d.js → interactive-2dee96cf.js} +1 -1
- package/dist/cjs/{interfaces-2a5fd60b.js → interfaces-35bdcc57.js} +1 -1
- package/dist/cjs/{key-77c177b3.js → key-6fcfe6a5.js} +1 -1
- package/dist/cjs/{label-9a0266e2.js → label-09cb2e21.js} +2 -2
- package/dist/cjs/{loadable-09d8541e.js → loadable-b0c55dac.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-a467420e.js → locale-dc73c369.js} +4 -4
- package/dist/cjs/{math-8c4ae427.js → math-1daf4b68.js} +1 -1
- package/dist/cjs/{nonChromiumPlatformUtils-4c5882f6.js → nonChromiumPlatformUtils-be9cae51.js} +6 -6
- package/dist/cjs/{observers-03a8bd44.js → observers-21cd2833.js} +1 -1
- package/dist/cjs/{openCloseComponent-0a12418d.js → openCloseComponent-50bcea8d.js} +2 -2
- package/dist/cjs/{resources-b787eead.js → resources-13280442.js} +1 -1
- package/dist/cjs/{resources-eada9b21.js → resources-6a9564fe.js} +1 -1
- package/dist/cjs/{resources-f8381faa.js → resources-ac3f6dd9.js} +3 -3
- package/dist/cjs/{resources-a431a00c.js → resources-cbfbdd45.js} +1 -1
- package/dist/cjs/{resources-e7022dbd.js → resources-e0b451d0.js} +5 -5
- package/dist/cjs/{resources-7d7423fa.js → resources-f36368d9.js} +1 -1
- package/dist/cjs/{sortable.esm-83487ec3.js → sortable.esm-e51ed6b4.js} +1 -1
- package/dist/cjs/{utils-05059062.js → utils-0eba0902.js} +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/alert/interfaces.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +1 -1
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +1 -1
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +3 -34
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item/utils.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/modal.js +32 -3
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +13 -6
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/rating/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/focusTrapComponent.js +23 -11
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/theme.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +1 -1
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +3 -12
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +13 -3
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-radio-group-item.js +1 -1
- package/dist/components/calcite-radio-group.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/focusTrapComponent.js +23 -12
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/nonChromiumPlatformUtils.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +11 -6
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/esm/{ExpandToggle-35cb7532.js → ExpandToggle-5adb5b32.js} +5 -5
- package/dist/esm/{Heading-c300f82d.js → Heading-542e9210.js} +2 -2
- package/dist/esm/{app-globals-7884eee4.js → app-globals-7ebc3205.js} +2 -2
- package/dist/esm/{array-07b3f4ea.js → array-9c067941.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +12 -12
- package/dist/esm/calcite-action-group.entry.js +9 -9
- package/dist/esm/calcite-action-menu.entry.js +9 -9
- package/dist/esm/calcite-action-pad.entry.js +11 -11
- package/dist/esm/calcite-action.entry.js +8 -8
- package/dist/esm/calcite-alert.entry.js +11 -11
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +10 -10
- package/dist/esm/calcite-button.entry.js +10 -10
- package/dist/esm/calcite-card.entry.js +7 -7
- package/dist/esm/calcite-checkbox.entry.js +10 -10
- package/dist/esm/calcite-chip.entry.js +8 -8
- package/dist/esm/calcite-color-picker_3.entry.js +11 -11
- package/dist/esm/calcite-combobox_3.entry.js +15 -15
- package/dist/esm/calcite-date-picker_4.entry.js +11 -11
- package/dist/esm/calcite-dropdown_3.entry.js +12 -12
- package/dist/esm/calcite-fab.entry.js +7 -7
- package/dist/esm/calcite-filter.entry.js +9 -9
- package/dist/esm/calcite-flow-item.entry.js +8 -8
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +13 -13
- package/dist/esm/calcite-handle.entry.js +6 -6
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +9 -9
- package/dist/esm/calcite-input-date-picker.entry.js +18 -26
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +13 -13
- package/dist/esm/calcite-input-text.entry.js +10 -10
- package/dist/esm/calcite-input-time-picker_2.entry.js +12 -12
- package/dist/esm/calcite-input.entry.js +13 -13
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +7 -7
- package/dist/esm/calcite-list_3.entry.js +9 -9
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +20 -11
- package/dist/esm/calcite-notice.entry.js +9 -9
- package/dist/esm/calcite-option_3.entry.js +10 -10
- package/dist/esm/calcite-pagination.entry.js +8 -8
- package/dist/esm/calcite-panel.entry.js +11 -11
- package/dist/esm/calcite-pick-list_3.entry.js +13 -13
- package/dist/esm/calcite-popover.entry.js +21 -16
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +10 -10
- package/dist/esm/calcite-radio-group_2.entry.js +9 -9
- package/dist/esm/calcite-rating.entry.js +10 -10
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +8 -8
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +3 -3
- package/dist/esm/calcite-stepper_2.entry.js +10 -10
- package/dist/esm/calcite-switch.entry.js +10 -10
- package/dist/esm/calcite-tab_4.entry.js +7 -7
- package/dist/esm/calcite-tile-select_2.entry.js +5 -5
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +8 -8
- package/dist/esm/calcite-tooltip.entry.js +8 -8
- package/dist/esm/calcite-tree_2.entry.js +8 -8
- package/dist/esm/calcite-value-list_2.entry.js +13 -13
- package/dist/esm/calcite.js +5 -5
- package/dist/esm/{conditionalSlot-a2f45f27.js → conditionalSlot-f1078097.js} +3 -3
- package/dist/esm/{debounce-d7db6200.js → debounce-33d7a1a6.js} +1 -1
- package/dist/esm/{dom-61137691.js → dom-5de952d5.js} +3 -3
- package/dist/esm/{filter-c989f623.js → filter-210841d2.js} +2 -2
- package/dist/esm/{floating-ui-20d0431b.js → floating-ui-b8591a27.js} +4 -4
- package/dist/esm/{focusTrapComponent-686599b2.js → focusTrapComponent-f8c97f5d.js} +24 -13
- package/dist/esm/{form-c327ae09.js → form-9d84ad18.js} +3 -3
- package/dist/esm/{guid-65019014.js → guid-d7116d52.js} +1 -1
- package/dist/esm/{index-9f11f69c.js → index-f937f146.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-f827dbf7.js → interactive-44cac3c8.js} +1 -1
- package/dist/esm/{interfaces-14fb5cce.js → interfaces-b8901ec4.js} +1 -1
- package/dist/esm/{key-845e2564.js → key-56b6ed01.js} +1 -1
- package/dist/esm/{label-fca98b10.js → label-5b5df08f.js} +2 -2
- package/dist/esm/{loadable-c2d4cefb.js → loadable-58288ca5.js} +1 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-65c0ba26.js → locale-2136f53b.js} +4 -4
- package/dist/esm/{math-fe3fb78e.js → math-63f15f18.js} +1 -1
- package/dist/esm/{nonChromiumPlatformUtils-c08954b9.js → nonChromiumPlatformUtils-63d3b1f4.js} +6 -6
- package/dist/esm/{observers-12e8f59f.js → observers-25600f32.js} +1 -1
- package/dist/esm/{openCloseComponent-ff7c9f64.js → openCloseComponent-364107a7.js} +2 -2
- package/dist/esm/{resources-ff0fb1ba.js → resources-2b0bc48e.js} +1 -1
- package/dist/esm/{resources-e84ee971.js → resources-64953136.js} +5 -5
- package/dist/esm/{resources-8af4650b.js → resources-82db101d.js} +1 -1
- package/dist/esm/{resources-6966aa6d.js → resources-92654248.js} +1 -1
- package/dist/esm/{resources-18aa033e.js → resources-b35aceec.js} +3 -3
- package/dist/esm/{resources-6066bba7.js → resources-c3394ffc.js} +1 -1
- package/dist/esm/{sortable.esm-50085857.js → sortable.esm-4c6b0444.js} +1 -1
- package/dist/esm/{utils-3099d30b.js → utils-91e585ec.js} +1 -1
- package/dist/extras/docs-json.json +18 -24
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +0 -7
- package/dist/types/components/modal/modal.d.ts +5 -0
- package/dist/types/components/popover/popover.d.ts +1 -0
- package/dist/types/components.d.ts +8 -10
- package/dist/types/utils/focusTrapComponent.d.ts +16 -6
- package/hydrate/index.js +46 -29
- package/package.json +1 -1
- package/dist/calcite/p-373608cf.js +0 -6
- package/dist/calcite/p-49ce2f68.entry.js +0 -6
- package/dist/calcite/p-69fbb14e.js +0 -6
- package/dist/calcite/p-6c17734f.entry.js +0 -6
- package/dist/calcite/p-73f0d2eb.entry.js +0 -6
- package/dist/calcite/p-7a7624bd.js +0 -6
- package/dist/calcite/p-d4668d92.js +0 -15
- package/dist/calcite/p-f8f65e49.entry.js +0 -6
- package/dist/calcite/p-ff884037.entry.js +0 -6
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.667
|
|
5
|
-
*/
|
|
6
|
-
import{r as i,c as t,h as a,H as e,g as o}from"./p-b3bcbd73.js";import{g as n,f as l,j as r}from"./p-a5aee43d.js";import{c as s}from"./p-c3d2aa60.js";import{c,d}from"./p-69fbb14e.js";import{o as m}from"./p-f7457303.js";import{c as h,d as p,a as b}from"./p-d4668d92.js";import{s as u,a as x,c as g}from"./p-62e62c0f.js";import"./p-a5e2970d.js";import"./p-03d78983.js";const f=class{constructor(a){i(this,a),this.calciteModalBeforeClose=t(this,"calciteModalBeforeClose",6),this.calciteModalClose=t(this,"calciteModalClose",6),this.calciteModalBeforeOpen=t(this,"calciteModalBeforeOpen",6),this.calciteModalOpen=t(this,"calciteModalOpen",6),this.mutationObserver=s("mutation",(()=>this.updateFooterVisibility())),this.openTransitionProp="opacity",this.setTransitionEl=i=>{this.transitionEl=i,this.focusTrapEl=i,h(this)},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteModalOpen",this.openEnd)},this.handleOutsideClose=()=>{this.disableOutsideClose||this.close()},this.close=()=>this.beforeClose(this.el).then((()=>{this.open=!1,this.isOpen=!1,this.removeOverflowHiddenClass()})),this.updateFooterVisibility=()=>{this.hasFooter=!!n(this.el,["back","primary","secondary"])},this.active=!1,this.open=!1,this.beforeClose=()=>Promise.resolve(),this.disableCloseButton=!1,this.disableOutsideClose=!1,this.intlClose="Close",this.docked=void 0,this.disableEscape=!1,this.scale="m",this.width="m",this.fullscreen=void 0,this.color=void 0,this.backgroundColor="white",this.noPadding=!1,this.hasFooter=!0,this.isOpen=!1}componentWillLoad(){u(this),this.open&&(m(this),requestAnimationFrame((()=>this.openModal())))}componentDidLoad(){x(this)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.updateFooterVisibility(),c(this),this.open&&(this.active=this.open),this.active&&this.activeHandler(this.active)}disconnectedCallback(){this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),d(this),p(this)}render(){return a(e,{"aria-describedby":this.contentId,"aria-labelledby":this.titleId,"aria-modal":"true",role:"dialog"},a("calcite-scrim",{class:"scrim",onClick:this.handleOutsideClose}),this.renderStyle(),a("div",{class:{modal:!0,"modal--open":this.isOpen},ref:this.setTransitionEl},a("div",{class:"header"},this.renderCloseButton(),a("header",{class:"title"},a("slot",{name:"header"}))),a("div",{class:{content:!0,"content--spaced":!this.noPadding,"content--no-footer":!this.hasFooter},ref:i=>this.modalContent=i},a("slot",{name:"content"})),this.renderFooter()))}renderFooter(){return this.hasFooter?a("div",{class:"footer",key:"footer"},a("span",{class:"back"},a("slot",{name:"back"})),a("span",{class:"secondary"},a("slot",{name:"secondary"})),a("span",{class:"primary"},a("slot",{name:"primary"}))):null}renderCloseButton(){return this.disableCloseButton?null:a("button",{"aria-label":this.intlClose,class:"close",key:"button",onClick:this.close,ref:i=>this.closeButtonEl=i,title:this.intlClose},a("calcite-icon",{icon:"x",scale:"s"===this.scale?"s":"m"===this.scale?"m":"l"===this.scale?"l":null}))}renderStyle(){return isNaN(parseInt(`${this.width}`))?null:a("style",null,`\n .modal {\n max-width: ${this.width}px !important;\n }\n @media screen and (max-width: ${this.width}px) {\n .modal {\n height: 100% !important;\n max-height: 100% !important;\n width: 100% !important;\n max-width: 100% !important;\n margin: 0 !important;\n border-radius: 0 !important;\n }\n .content {\n flex: 1 1 auto !important;\n max-height: unset !important;\n }\n }\n `)}handleEscape(i){!this.open||this.disableEscape||"Escape"!==i.key||i.defaultPrevented||(this.close(),i.preventDefault())}async focusElement(i){return i&&i.focus(),this.setFocus()}async setFocus(i){await g(this);const{closeButtonEl:t}=this;if(t&&"close-button"===i)return l(t);b(this)}async scrollContent(i=0,t=0){this.modalContent&&(this.modalContent.scrollTo?this.modalContent.scrollTo({top:i,left:t,behavior:"smooth"}):(this.modalContent.scrollTop=i,this.modalContent.scrollLeft=t))}onBeforeOpen(){this.transitionEl.classList.add("modal--opening-active"),this.calciteModalBeforeOpen.emit()}onOpen(){this.transitionEl.classList.remove("modal--opening-idle","modal--opening-active"),this.calciteModalOpen.emit()}onBeforeClose(){this.transitionEl.classList.add("modal--closing-active"),this.calciteModalBeforeClose.emit()}onClose(){this.transitionEl.classList.remove("modal--closing-idle","modal--closing-active"),this.calciteModalClose.emit(),p(this)}activeHandler(i){this.open=i}async toggleModal(i){this.active=i,m(this),i?(this.transitionEl?.classList.add("modal--opening-idle"),this.openModal()):(this.transitionEl?.classList.add("modal--closing-idle"),this.close())}openModal(){this.el.addEventListener("calciteModalOpen",this.openEnd),this.open=!0,this.isOpen=!0;const i=n(this.el,"header"),t=n(this.el,"content");this.titleId=r(i),this.contentId=r(t),document.documentElement.classList.add("overflow-hidden")}removeOverflowHiddenClass(){document.documentElement.classList.remove("overflow-hidden")}get el(){return o(this)}static get watchers(){return{active:["activeHandler"],open:["toggleModal"]}}};f.style="@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);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{position:fixed;inset:0px;z-index:700;display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}:host([scale=s]){--calcite-modal-padding:0.75rem;--calcite-modal-padding-large:1rem;--calcite-modal-title-text:var(--calcite-font-size-1);--calcite-modal-content-text:var(--calcite-font-size--1);--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding:1rem;--calcite-modal-padding-large:1.25rem;--calcite-modal-title-text:var(--calcite-font-size-2);--calcite-modal-content-text:var(--calcite-font-size-0);--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding:1.25rem;--calcite-modal-padding-large:1.5rem;--calcite-modal-title-text:var(--calcite-font-size-3);--calcite-modal-content-text:var(--calcite-font-size-1);--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}.scrim{--calcite-scrim-background:rgba(0, 0, 0, 0.75);position:fixed;inset:0px;display:flex;overflow-y:hidden}.modal{pointer-events:none;z-index:800;float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}.modal--opening-idle{transform:var(--calcite-modal-hidden-position)}.modal--opening-active{transform:var(--calcite-modal-shown-position)}.modal--closing-idle{transform:var(--calcite-modal-shown-position)}.modal--closing-active{transform:var(--calcite-modal-hidden-position)}:host([open]){opacity:1;visibility:visible !important;transition-delay:0ms}:host([open]) .modal--open{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}.header{z-index:400;display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto}.close{order:2;margin:0px;cursor:pointer;-webkit-appearance:none;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-start-end-radius:0.25rem;padding-block:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));padding-inline:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));flex:0 0 auto}.close calcite-icon{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.close:hover,.close:focus,.close:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.title{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding, var(--calcite-model-padding-internal));padding-inline:var(--calcite-modal-padding-large, var(--calcite-modal-padding-large-internal))}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text, var(--calcite-modal-title-text-internal))}.content{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;background-color:var(--calcite-ui-foreground-1);padding:0px;max-block-size:calc(100vh - 12rem)}.content--spaced{padding:var(--calcite-modal-padding)}.content--no-footer{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-content-text, var(--calcite-modal-context-text-internal))}:host([background-color=grey]) .content{background-color:var(--calcite-ui-background)}.footer{z-index:400;margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));padding-inline:var(--calcite-modal-padding-large, var(--calcite-modal-padding-large-internal))}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;margin-inline-end:auto}.secondary{margin-inline:0.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{inline-size:auto}:host([width=s]) .modal{max-inline-size:32rem}@media screen and (max-width: 35rem){:host([width=s]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=s]) .content{flex:1 1 auto;max-block-size:unset}:host([width=s][docked]){align-items:flex-end}}:host([width=m]) .modal{max-inline-size:48rem}@media screen and (max-width: 51rem){:host([width=m]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=m]) .content{flex:1 1 auto;max-block-size:unset}:host([width=m][docked]){align-items:flex-end}}:host([width=l]) .modal{max-inline-size:94rem}@media screen and (max-width: 97rem){:host([width=l]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=l]) .content{flex:1 1 auto;max-block-size:unset}:host([width=l][docked]){align-items:flex-end}}:host([fullscreen]){background-color:transparent}:host([fullscreen]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}:host([fullscreen]) .content{max-block-size:100%;flex:1 1 auto}:host([open][fullscreen]) .header{border-radius:0}:host([open][fullscreen]) .footer{border-radius:0}:host([docked]) .modal{block-size:auto}:host([docked]) .content{block-size:auto;flex:1 1 auto}@media screen and (max-width: 860px){:host([docked]) .modal{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}:host([docked]) .close{border-start-end-radius:var(--calcite-border-radius)}}:host([color=red]) .modal{border-color:var(--calcite-ui-danger)}:host([color=blue]) .modal{border-color:var(--calcite-ui-info)}:host([color=red]) .modal,:host([color=blue]) .modal{border-width:0px;border-block-start-width:4px;border-style:solid}:host([color=red]) .header,:host([color=blue]) .header{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){slot[name=header]::slotted(*),*::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){.footer{flex-direction:column}.back,.secondary{margin:0px;margin-block-end:0.25rem}}";export{f as calcite_modal}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.667
|
|
5
|
-
*/
|
|
6
|
-
import{f as t,h as e}from"./p-b3bcbd73.js";import{a as o}from"./p-a5aee43d.js";import{S as n}from"./p-9e6014d2.js";import{S as a}from"./p-6b3eee56.js";const i=150,c=t=>t.reduce(((t,e)=>t+e),0)/t.length,l=t=>{const e=t?.length;return{actionWidth:e?c(t.map((t=>t.clientWidth||0))):0,actionHeight:e?c(t.map((t=>t.clientHeight||0))):0}},r=({layout:t,actionCount:e,actionWidth:o,width:n,actionHeight:a,height:i,groupCount:c})=>Math.max(e-(({width:t,actionWidth:e,layout:o,height:n,actionHeight:a,groupCount:i})=>Math.floor((("horizontal"===o?t:n)-2*i)/("horizontal"===o?e:a)))({width:n,actionWidth:o,layout:t,height:i,actionHeight:a,groupCount:c}),0),s=t=>Array.from(t.querySelectorAll("calcite-action")).filter((t=>!t.closest("calcite-action-menu")||t.slot===n.trigger)),p=({actionGroups:e,expanded:o,overflowCount:n})=>{let i=n;e.reverse().forEach((e=>{let n=0;const c=s(e).reverse();c.forEach((t=>{t.slot===a.menuActions&&(t.removeAttribute("slot"),t.textEnabled=o)})),i>0&&c.some((t=>(c.filter((t=>!t.slot)).length>1&&c.length>2&&!t.closest("calcite-action-menu")&&(t.textEnabled=!0,t.setAttribute("slot",a.menuActions),n++,n>1&&i--),i<1))),t(e)}))};function h({parent:t,expanded:e}){s(t).filter((t=>t.slot!==a.menuActions)).forEach((t=>t.textEnabled=e)),t.querySelectorAll("calcite-action-group, calcite-action-menu").forEach((t=>t.expanded=e))}const d=({expanded:t,intlExpand:n,intlCollapse:a,toggle:i,el:c,position:l,tooltip:r,ref:s,scale:p})=>{const h="rtl"===o(c),d=t?a:n,u=["chevrons-left","chevrons-right"];h&&u.reverse();const f="end"===function(t,e){return t||e.closest("calcite-shell-panel")?.position||"start"}(l,c);return e("calcite-action",{icon:t?f?u[1]:u[0]:f?u[0]:u[1],onClick:i,ref:e=>(({tooltip:t,referenceElement:e,expanded:o,ref:n})=>(t&&(t.referenceElement=!o&&e?e:null),n&&n(e),e))({tooltip:r,referenceElement:e,expanded:t,ref:s}),scale:p,text:d,textEnabled:t})};export{d as E,p as a,r as b,l as g,i as o,s as q,h as t}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.667
|
|
5
|
-
*/
|
|
6
|
-
import{f as n}from"./p-a5aee43d.js";
|
|
7
|
-
/*!
|
|
8
|
-
* tabbable 6.0.1
|
|
9
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
10
|
-
*/var t=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],e=t.join(","),r="undefined"==typeof Element,o=r?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!r&&Element.prototype.getRootNode?function(n){return n.getRootNode()}:function(n){return n.ownerDocument},u=function(n,t,r){var i=Array.prototype.slice.apply(n.querySelectorAll(e));return t&&o.call(n,e)&&i.unshift(n),i.filter(r)},a=function n(t,r,i){for(var u=[],a=Array.from(t);a.length;){var c=a.shift();if("SLOT"===c.tagName){var f=c.assignedElements(),s=n(f.length?f:c.children,!0,i);i.flatten?u.push.apply(u,s):u.push({scopeParent:c,candidates:s})}else{o.call(c,e)&&i.filter(c)&&(r||!t.includes(c))&&u.push(c);var l=c.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(c),v=!i.shadowRootFilter||i.shadowRootFilter(c);if(l&&v){var d=n(!0===l?c.children:l.children,!0,i);i.flatten?u.push.apply(u,d):u.push({scopeParent:c,candidates:d})}else a.unshift.apply(a,c.children)}}return u},c=function(n,t){return n.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||n.isContentEditable)&&isNaN(parseInt(n.getAttribute("tabindex"),10))?0:n.tabIndex},f=function(n,t){return n.tabIndex===t.tabIndex?n.documentOrder-t.documentOrder:n.tabIndex-t.tabIndex},s=function(n){return"INPUT"===n.tagName},l=function(n){var t=n.getBoundingClientRect();return 0===t.width&&0===t.height},v=function(n,t){return!(t.disabled||function(n){return s(n)&&"hidden"===n.type}(t)||function(n,t){var e=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(n).visibility)return!0;var u=o.call(n,"details>summary:first-of-type");if(o.call(u?n.parentElement:n,"details:not([open]) *"))return!0;if(e&&"full"!==e&&"legacy-full"!==e){if("non-zero-area"===e)return l(n)}else{if("function"==typeof r){for(var a=n;n;){var c=n.parentElement,f=i(n);if(c&&!c.shadowRoot&&!0===r(c))return l(n);n=n.assignedSlot?n.assignedSlot:c||f===n.ownerDocument?c:f.host}n=a}if(function(n){for(var t,e=i(n).host,r=!!(null!==(t=e)&&void 0!==t&&t.ownerDocument.contains(e)||n.ownerDocument.contains(n));!r&&e;){var o;r=!(null===(o=e=i(e).host)||void 0===o||!o.ownerDocument.contains(e))}return r}(n))return!n.getClientRects().length;if("legacy-full"!==e)return!0}return!1}(t,n)||function(n){return"DETAILS"===n.tagName&&Array.prototype.slice.apply(n.children).some((function(n){return"SUMMARY"===n.tagName}))}(t)||function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var t=n.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var e=0;e<t.children.length;e++){var r=t.children.item(e);if("LEGEND"===r.tagName)return!!o.call(t,"fieldset[disabled] *")||!r.contains(n)}return!0}t=t.parentElement}return!1}(t))},d=function(n,t){return!(function(n){return function(n){return s(n)&&"radio"===n.type}(n)&&!function(n){if(!n.name)return!0;var t,e=n.form||i(n),r=function(n){return e.querySelectorAll('input[type="radio"][name="'+n+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(n.name));else try{t=r(n.name)}catch(n){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",n.message),!1}var o=function(n,t){for(var e=0;e<n.length;e++)if(n[e].checked&&n[e].form===t)return n[e]}(t,n.form);return!o||o===n}(n)}(t)||c(t)<0||!v(n,t))},p=function(n){var t=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},b=function n(t){var e=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,u=i?t.scopeParent:t,a=c(u,i),f=i?n(t.candidates):u;0===a?i?e.push.apply(e,f):e.push(u):r.push({documentOrder:o,tabIndex:a,item:t,isScope:i,content:f})})),r.sort(f).reduce((function(n,t){return t.isScope?n.push.apply(n,t.content):n.push(t.content),n}),[]).concat(e)},w=function(n,t){var e;return e=(t=t||{}).getShadowRoot?a([n],t.includeContainer,{filter:d.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:p}):u(n,t.includeContainer,d.bind(null,t)),b(e)},y=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return!1!==o.call(n,e)&&d(t,n)},h=t.concat("iframe").join(","),m=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return!1!==o.call(n,h)&&v(t,n)};
|
|
11
|
-
/*!
|
|
12
|
-
* focus-trap 7.2.0
|
|
13
|
-
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
14
|
-
*/
|
|
15
|
-
function E(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function O(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?E(Object(e),!0).forEach((function(t){F(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):E(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function F(n,t,e){return(t=function(n){var t=function(n,t){if("object"!=typeof n||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var r=e.call(n,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n,"string");return"symbol"==typeof t?t:String(t)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var T=function(n){return"Tab"===n.key||9===n.keyCode},S=function(n){return T(n)&&!n.shiftKey},k=function(n){return T(n)&&n.shiftKey},D=function(n){return setTimeout(n,0)},N=function(n,t){var e=-1;return n.every((function(n,r){return!t(n)||(e=r,!1)})),e},g=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return"function"==typeof n?n.apply(void 0,e):n},j=function(n){return n.target.shadowRoot&&"function"==typeof n.composedPath?n.composedPath()[0]:n.target},A=[];const I=[];function R(t){const{focusTrapEl:e}=t;e&&(null==e.tabIndex&&(e.tabIndex=-1),t.focusTrap=function(n,t){var e,r=(null==t?void 0:t.document)||document,o=(null==t?void 0:t.trapStack)||A,i=O({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:S,isKeyBackward:k},t),c={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},f=function(n,t,e){return n&&void 0!==n[t]?n[t]:i[e||t]},s=function(n){return c.containerGroups.findIndex((function(t){var e=t.tabbableNodes;return t.container.contains(n)||e.find((function(t){return t===n}))}))},l=function(n){var t=i[n];if("function"==typeof t){for(var e=arguments.length,o=new Array(e>1?e-1:0),u=1;u<e;u++)o[u-1]=arguments[u];t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(n,"` was specified but was not a node, or did not return a node"))}var a=t;if("string"==typeof t&&!(a=r.querySelector(t)))throw new Error("`".concat(n,"` as selector refers to no known node"));return a},d=function(){var n=l("initialFocus");if(!1===n)return!1;if(void 0===n)if(s(r.activeElement)>=0)n=r.activeElement;else{var t=c.tabbableGroups[0];n=t&&t.firstTabbableNode||l("fallbackFocus")}if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n},p=function(){if(c.containerGroups=c.containers.map((function(n){var t,e,r=w(n,i.tabbableOptions),o=(t=n,(e=(e=i.tabbableOptions)||{}).getShadowRoot?a([t],e.includeContainer,{filter:v.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):u(t,e.includeContainer,v.bind(null,e)));return{container:n,tabbableNodes:r,focusableNodes:o,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=o.findIndex((function(t){return t===n}));if(!(e<0))return t?o.slice(e+1).find((function(n){return y(n,i.tabbableOptions)})):o.slice(0,e).reverse().find((function(n){return y(n,i.tabbableOptions)}))}}})),c.tabbableGroups=c.containerGroups.filter((function(n){return n.tabbableNodes.length>0})),c.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},b=function n(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),c.mostRecentlyFocusedNode=t,function(n){return n.tagName&&"input"===n.tagName.toLowerCase()&&"function"==typeof n.select}(t)&&t.select()):n(d()))},h=function(n){var t=l("setReturnFocus",n);return t||!1!==t&&n},E=function(n){var t=j(n);s(t)>=0||(g(i.clickOutsideDeactivates,n)?e.deactivate({returnFocus:i.returnFocusOnDeactivate&&!m(t,i.tabbableOptions)}):g(i.allowOutsideClick,n)||n.preventDefault())},F=function(n){var t=j(n),e=s(t)>=0;e||t instanceof Document?e&&(c.mostRecentlyFocusedNode=t):(n.stopImmediatePropagation(),b(c.mostRecentlyFocusedNode||d()))},I=function(n){if(("Escape"===(t=n).key||"Esc"===t.key||27===t.keyCode)&&!1!==g(i.escapeDeactivates,n))return n.preventDefault(),void e.deactivate();var t;(i.isKeyForward(n)||i.isKeyBackward(n))&&function(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=j(n);p();var r=null;if(c.tabbableGroups.length>0){var o=s(e),u=o>=0?c.containerGroups[o]:void 0;if(o<0)r=t?c.tabbableGroups[c.tabbableGroups.length-1].lastTabbableNode:c.tabbableGroups[0].firstTabbableNode;else if(t){var a=N(c.tabbableGroups,(function(n){return e===n.firstTabbableNode}));a<0&&(u.container===e||m(e,i.tabbableOptions)&&!y(e,i.tabbableOptions)&&!u.nextTabbableNode(e,!1))&&(a=o),a>=0?r=c.tabbableGroups[0===a?c.tabbableGroups.length-1:a-1].lastTabbableNode:T(n)||(r=u.nextTabbableNode(e,!1))}else{var f=N(c.tabbableGroups,(function(n){return e===n.lastTabbableNode}));f<0&&(u.container===e||m(e,i.tabbableOptions)&&!y(e,i.tabbableOptions)&&!u.nextTabbableNode(e))&&(f=o),f>=0?r=c.tabbableGroups[f===c.tabbableGroups.length-1?0:f+1].firstTabbableNode:T(n)||(r=u.nextTabbableNode(e))}}else r=l("fallbackFocus");r&&(T(n)&&n.preventDefault(),b(r))}(n,i.isKeyBackward(n))},R=function(n){var t=j(n);s(t)>=0||g(i.clickOutsideDeactivates,n)||g(i.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())},C=function(){if(c.active)return function(n,t){if(n.length>0){var e=n[n.length-1];e!==t&&e.pause()}var r=n.indexOf(t);-1===r||n.splice(r,1),n.push(t)}(o,e),c.delayInitialFocusTimer=i.delayInitialFocus?D((function(){b(d())})):b(d()),r.addEventListener("focusin",F,!0),r.addEventListener("mousedown",E,{capture:!0,passive:!1}),r.addEventListener("touchstart",E,{capture:!0,passive:!1}),r.addEventListener("click",R,{capture:!0,passive:!1}),r.addEventListener("keydown",I,{capture:!0,passive:!1}),e},P=function(){if(c.active)return r.removeEventListener("focusin",F,!0),r.removeEventListener("mousedown",E,!0),r.removeEventListener("touchstart",E,!0),r.removeEventListener("click",R,!0),r.removeEventListener("keydown",I,!0),e};return(e={get active(){return c.active},get paused(){return c.paused},activate:function(n){if(c.active)return this;var t=f(n,"onActivate"),e=f(n,"onPostActivate"),o=f(n,"checkCanFocusTrap");o||p(),c.active=!0,c.paused=!1,c.nodeFocusedBeforeActivation=r.activeElement,t&&t();var i=function(){o&&p(),C(),e&&e()};return o?(o(c.containers.concat()).then(i,i),this):(i(),this)},deactivate:function(n){if(!c.active)return this;var t=O({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},n);clearTimeout(c.delayInitialFocusTimer),c.delayInitialFocusTimer=void 0,P(),c.active=!1,c.paused=!1,function(n,t){var e=n.indexOf(t);-1!==e&&n.splice(e,1),n.length>0&&n[n.length-1].unpause()}(o,e);var r=f(t,"onDeactivate"),u=f(t,"onPostDeactivate"),a=f(t,"checkCanReturnFocus"),s=f(t,"returnFocus","returnFocusOnDeactivate");r&&r();var l=function(){D((function(){s&&b(h(c.nodeFocusedBeforeActivation)),u&&u()}))};return s&&a?(a(h(c.nodeFocusedBeforeActivation)).then(l,l),this):(l(),this)},pause:function(){return c.paused||!c.active||(c.paused=!0,P()),this},unpause:function(){return c.paused&&c.active?(c.paused=!1,p(),C(),this):this},updateContainerElements:function(n){var t=[].concat(n).filter(Boolean);return c.containers=t.map((function(n){return"string"==typeof n?r.querySelector(n):n})),c.active&&p(),this}}).updateContainerElements(n),e}(e,{allowOutsideClick:!0,clickOutsideDeactivates:!1,document:e.ownerDocument,escapeDeactivates:!1,fallbackFocus:e,setReturnFocus:t=>(n(t),!1),tabbableOptions:{getShadowRoot:!0},trapStack:I}))}function C(n){n.focusTrap?.activate()}function P(n){n.focusTrap?.deactivate()}export{C as a,R as c,P as d}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.667
|
|
5
|
-
*/
|
|
6
|
-
import{r as t,c as e,f as i,h as a,H as n,g as s}from"./p-b3bcbd73.js";import{f as o,c as r,b as l,u as c,a as d,r as h,F as p}from"./p-f5349cf2.js";import{c as f,d as m,a as u}from"./p-d4668d92.js";import{g}from"./p-03d78983.js";import{i as v,t as b,q as w}from"./p-a5aee43d.js";import{c as x,d as y}from"./p-f7457303.js";import{H as k}from"./p-073c5ae1.js";import{i as E}from"./p-15398b5d.js";import{s as z,a as H,c as P}from"./p-62e62c0f.js";import"./p-0c47935f.js";import"./p-a5e2970d.js";const j=new class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=t=>{const{registeredElements:e}=this,i=t.find((t=>e.has(t)));return e.get(i)},this.togglePopovers=t=>{const e=t.composedPath(),i=this.queryPopover(e);i&&!i.triggerDisabled&&i.toggle(),Array.from(this.registeredElements.values()).filter((t=>t!==i&&t.autoClose&&t.open&&!e.includes(t))).forEach((t=>t.toggle(!1)))},this.keyHandler=t=>{t.defaultPrevented||("Escape"===t.key?this.closeAllPopovers():E(t.key)&&this.togglePopovers(t))},this.clickHandler=t=>{v(t)&&this.togglePopovers(t)}}registerElement(t,e){this.registeredElementCount++,this.registeredElements.set(t,e),1===this.registeredElementCount&&this.addListeners()}unregisterElement(t){this.registeredElements.delete(t)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach((t=>t.toggle(!1)))}addListeners(){document.addEventListener("pointerdown",this.clickHandler,{capture:!0}),document.addEventListener("keydown",this.keyHandler,{capture:!0})}removeListeners(){document.removeEventListener("pointerdown",this.clickHandler,{capture:!0}),document.removeEventListener("keydown",this.keyHandler,{capture:!0})}},D=class{constructor(i){t(this,i),this.calcitePopoverBeforeClose=e(this,"calcitePopoverBeforeClose",6),this.calcitePopoverClose=e(this,"calcitePopoverClose",6),this.calcitePopoverBeforeOpen=e(this,"calcitePopoverBeforeOpen",6),this.calcitePopoverOpen=e(this,"calcitePopoverOpen",6),this.guid=`calcite-popover-${g()}`,this.openTransitionProp="opacity",this.hasLoaded=!1,this.setTransitionEl=t=>{this.transitionEl=t,x(this),this.focusTrapEl=t,f(this)},this.setFilteredPlacements=()=>{const{el:t,flipPlacements:e}=this;this.filteredFlipPlacements=e?o(e,t):null},this.setUpReferenceElement=(t=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),r(this,this.effectiveReferenceElement,this.el);const{el:e,referenceElement:i,effectiveReferenceElement:a}=this;t&&i&&!a&&console.warn(`${e.tagName}: reference-element id "${i}" was not found.`,{el:e}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.setExpandedAttr=()=>{const{effectiveReferenceElement:t,open:e}=this;t&&"setAttribute"in t&&t.setAttribute("aria-expanded",b(e))},this.addReferences=()=>{const{effectiveReferenceElement:t}=this;if(!t)return;const e=this.getId();"setAttribute"in t&&t.setAttribute("aria-controls",e),j.registerElement(t,this.el),this.setExpandedAttr()},this.removeReferences=()=>{const{effectiveReferenceElement:t}=this;t&&("removeAttribute"in t&&(t.removeAttribute("aria-controls"),t.removeAttribute("aria-expanded")),j.unregisterElement(t))},this.hide=()=>{this.open=!1},this.storeArrowEl=t=>{this.arrowEl=t,this.reposition(!0)},this.autoClose=!1,this.closable=!1,this.disableFlip=!1,this.disableFocusTrap=!1,this.disablePointer=!1,this.flipPlacements=void 0,this.heading=void 0,this.headingLevel=void 0,this.label=void 0,this.offsetDistance=l,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.referenceElement=void 0,this.scale="m",this.triggerDisabled=!1,this.intlClose="Close",this.effectiveReferenceElement=void 0}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(t){t?this.reposition(!0):c(this.el),this.setExpandedAttr()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}connectedCallback(){this.setFilteredPlacements(),x(this),this.setUpReferenceElement(this.hasLoaded)}componentWillLoad(){z(this)}componentDidLoad(){H(this),this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.reposition(),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),d(this,this.effectiveReferenceElement,this.el),y(this),m(this)}async reposition(t=!1){const{el:e,effectiveReferenceElement:i,placement:a,overlayPositioning:n,disableFlip:s,filteredFlipPlacements:o,offsetDistance:r,offsetSkidding:l,arrowEl:c}=this;return h(this,{floatingEl:e,referenceEl:i,overlayPositioning:n,placement:a,disableFlip:s,flipPlacements:o,offsetDistance:r,offsetSkidding:l,includeArrow:!this.disablePointer,arrowEl:c,type:"popover"},t)}async setFocus(t){await P(this);const{closeButtonEl:e}=this;if("close-button"===t&&e)return i(e),void e.setFocus();u(this)}async toggle(t=!this.open){this.open=t}getReferenceElement(){const{referenceElement:t,el:e}=this;return("string"==typeof t?w(e,{id:t}):t)||null}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),this.disableFocusTrap||u(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),m(this)}renderCloseButton(){const{intlClose:t,closable:e}=this;return e?a("div",{class:"close-button-container"},a("calcite-action",{class:"close-button",onClick:this.hide,ref:t=>this.closeButtonEl=t,scale:this.scale,text:t},a("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":this.scale}))):null}renderHeader(){const{heading:t,headingLevel:e}=this,i=t?a(k,{class:"heading",level:e},t):null;return i?a("div",{class:"header"},i,this.renderCloseButton()):null}render(){const{effectiveReferenceElement:t,heading:e,label:i,open:s,disablePointer:o}=this,r=t&&s,l=!r,c=o?null:a("div",{class:"arrow",ref:this.storeArrowEl});return a(n,{"aria-hidden":b(l),"aria-label":i,"aria-live":"polite","calcite-hydrated-hidden":l,id:this.getId(),role:"dialog"},a("div",{class:{[p.animation]:!0,[p.animationActive]:r},ref:this.setTransitionEl},c,a("div",{class:{"has-header":!!e,container:!0}},this.renderHeader(),a("div",{class:"content"},a("slot",null)),e?null:this.renderCloseButton())))}get el(){return s(this)}static get watchers(){return{flipPlacements:["flipPlacementsHandler"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"]}}};D.style='@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);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{--calcite-floating-ui-z-index:var(--calcite-popover-z-index, 900);display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index)}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{transform:translateY(-5px)}:host([data-placement^=top]) .calcite-floating-ui-anim{transform:translateY(5px)}:host([data-placement^=left]) .calcite-floating-ui-anim{transform:translateX(5px)}:host([data-placement^=right]) .calcite-floating-ui-anim{transform:translateX(-5px)}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.arrow,.arrow::before{position:absolute;inline-size:8px;block-size:8px;z-index:-1}.arrow::before{content:"";--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-placement^=top]) .arrow{inset-block-end:-4px}:host([data-placement^=bottom]) .arrow{inset-block-start:-4px}:host([data-placement^=right]) .arrow,:host([data-placement^=left]) .arrow{direction:ltr;text-align:start}:host([data-placement^=left]) .arrow{inset-inline-end:-4px}:host([data-placement^=right]) .arrow{inset-inline-start:-4px}:host([scale=s]) .heading{padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:0.75rem;padding-block:1rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1rem;padding-block:1.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-floating-ui-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1)}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-block-end-width:1px;border-style:solid;background-color:var(--calcite-ui-foreground-1);border-block-end-color:var(--calcite-ui-border-3)}.heading{margin:0px;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);word-wrap:break-word;word-break:break-word}.container{position:relative;display:flex;block-size:100%;flex-direction:row;flex-wrap:nowrap;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1)}.container.has-header{flex-direction:column}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:0.25rem;border-end-end-radius:0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%}';export{D as calcite_popover}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.667
|
|
5
|
-
*/
|
|
6
|
-
import{r as i,c as t,h as a,F as n,g as e}from"./p-b3bcbd73.js";import{g as s}from"./p-03d78983.js";import{c as o,d as r}from"./p-7cbaddf7.js";import{c,d as l,H as d}from"./p-373608cf.js";import{u as h}from"./p-7755fc88.js";import{i as p}from"./p-15398b5d.js";import{s as m,a as u,c as f}from"./p-62e62c0f.js";import"./p-a5aee43d.js";import"./p-a5e2970d.js";const v=class{constructor(a){i(this,a),this.calciteRatingChange=t(this,"calciteRatingChange",6),this.onKeyboardPressed=i=>{!this.required&&p(i.key)&&(i.preventDefault(),this.updateValue(0))},this.onFocusChange=i=>{this.hasFocus=!0,this.required||this.focusValue!==i?this.focusValue=i:this.updateValue(0)},this.guid=`calcite-ratings-${s()}`,this.scale="m",this.value=0,this.readOnly=!1,this.disabled=!1,this.showChip=!1,this.count=void 0,this.average=void 0,this.name=void 0,this.intlRating="Rating",this.intlStars="Stars: ${num}",this.required=!1,this.hoverValue=void 0,this.focusValue=void 0,this.hasFocus=void 0}connectedCallback(){o(this),c(this)}componentWillLoad(){m(this)}componentDidLoad(){u(this)}disconnectedCallback(){r(this),l(this)}componentDidRender(){h(this)}blurHandler(){this.hasFocus=!1}renderStars(){return[1,2,3,4,5].map((i=>{const t=this.value>=i,n=this.average&&!this.value&&i<=this.average,e=i<=this.hoverValue,s=this.average&&this.average+1-i,o=!this.value&&!e&&s>0&&s<1;return a("span",{class:{wrapper:!0}},a("label",{class:{star:!0,focused:this.hasFocus&&this.focusValue===i,selected:t,average:n,hovered:e,partial:o},htmlFor:`${this.guid}-${i}`,onPointerOver:()=>{this.hoverValue=i}},a("calcite-icon",{"aria-hidden":"true",class:"icon",icon:t||n||this.readOnly?"star-f":"star",scale:this.scale}),o&&a("div",{class:"fraction",style:{width:100*s+"%"}},a("calcite-icon",{icon:"star-f",scale:this.scale})),a("span",{class:"visually-hidden"},this.intlStars.replace("${num}",`${i}`))),a("input",{checked:i===this.value,class:"visually-hidden",disabled:this.disabled||this.readOnly,id:`${this.guid}-${i}`,name:this.guid,onChange:()=>this.updateValue(i),onClick:i=>i.stopPropagation(),onFocus:()=>this.onFocusChange(i),onKeyDown:this.onKeyboardPressed,ref:t=>(1===i||i===this.value)&&(this.inputFocusRef=t),type:"radio",value:i}))}))}render(){const{disabled:i,intlRating:t,showChip:e,scale:s,count:o,average:r}=this;return a(n,null,a("fieldset",{class:"fieldset",disabled:i,onBlur:()=>this.hoverValue=null,onPointerLeave:()=>this.hoverValue=null,onTouchEnd:()=>this.hoverValue=null},a("legend",{class:"visually-hidden"},t),this.renderStars()),(o||r)&&e?a("calcite-chip",{scale:s,value:o?.toString()},!!r&&a("span",{class:"number--average"},r.toString()),!!o&&a("span",{class:"number--count"},"(",o?.toString(),")")):null,a(d,{component:this}))}onLabelClick(){this.setFocus()}updateValue(i){this.value=i,this.calciteRatingChange.emit({value:i})}async setFocus(){await f(this),this.inputFocusRef?.focus()}get el(){return e(this)}};v.style="@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);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:flex;align-items:center;inline-size:-moz-fit-content;inline-size:fit-content}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){block-size:1.5rem;--calcite-rating-spacing-unit:0.25rem}:host([scale=m]){block-size:2rem;--calcite-rating-spacing-unit:0.5rem}:host([scale=l]){block-size:2.75rem;--calcite-rating-spacing-unit:0.75rem}:host([read-only]){pointer-events:none}.fieldset{margin:0px;display:flex;border-width:0px;padding:0px}.wrapper{display:inline-block;margin-inline-end:var(--calcite-rating-spacing-unit)}.star{position:relative;display:flex;cursor:pointer;outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-ui-border-input)}.focused{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.average,.fraction{color:var(--calcite-ui-warning)}.hovered,.selected,:host([read-only]) .average,:host([read-only]) .fraction{color:var(--calcite-ui-brand)}:host .fraction{pointer-events:none;position:absolute;inset-block-start:0px;overflow:hidden;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inset-inline-start:0}calcite-chip{pointer-events:none;cursor:default}.number--average{font-weight:var(--calcite-font-weight-bold)}.number--count{color:var(--calcite-ui-text-2);font-style:italic}.number--count:not(:first-child){margin-inline-start:var(--calcite-rating-spacing-unit)}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}::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}";export{v as calcite_rating}
|