@esri/calcite-components 1.0.0-next.606 → 1.0.0-next.608
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-edbb9009.js → p-011bc8ee.js} +1 -1
- package/dist/calcite/{p-1eb05bb2.entry.js → p-050c5bfa.entry.js} +2 -2
- package/dist/calcite/{p-af04fadb.entry.js → p-0ac46f5b.entry.js} +2 -2
- package/dist/calcite/{p-e5b5b117.entry.js → p-10a0423a.entry.js} +2 -2
- package/dist/calcite/{p-32ef135d.entry.js → p-1242df2f.entry.js} +2 -2
- package/dist/calcite/p-18a6ab98.js +6 -0
- package/dist/calcite/{p-37141771.js → p-19f1fc1a.js} +2 -2
- package/dist/calcite/{p-59bddc1f.js → p-19ffb9df.js} +1 -1
- package/dist/calcite/{p-1e272a5d.js → p-1a5cacb8.js} +1 -1
- package/dist/calcite/{p-72c5d8e9.entry.js → p-1b2aafc4.entry.js} +2 -2
- package/dist/calcite/{p-9f88a197.entry.js → p-1bf66b35.entry.js} +2 -2
- package/dist/calcite/{p-c8ffd3f8.entry.js → p-1d009cd3.entry.js} +2 -2
- package/dist/calcite/{p-d5b3c1bb.entry.js → p-27072a59.entry.js} +2 -2
- package/dist/calcite/{p-54c6ec8e.js → p-27b92178.js} +1 -1
- package/dist/calcite/{p-9c59c88e.js → p-28279e5b.js} +1 -1
- package/dist/calcite/{p-58a34298.js → p-28895e53.js} +1 -1
- package/dist/calcite/{p-8faadeb1.js → p-299f97f2.js} +1 -1
- package/dist/calcite/p-29bbf02e.js +6 -0
- package/dist/calcite/{p-c8f9eae5.entry.js → p-2ba3c4dd.entry.js} +2 -2
- package/dist/calcite/{p-bf16098b.entry.js → p-2e9146d0.entry.js} +2 -2
- package/dist/calcite/{p-c564ee3d.js → p-34e9bed2.js} +1 -1
- package/dist/calcite/{p-c5b28b2a.entry.js → p-37cb2680.entry.js} +2 -2
- package/dist/calcite/p-394a1cea.entry.js +6 -0
- package/dist/calcite/{p-1b06322f.entry.js → p-3dfcd6f7.entry.js} +2 -2
- package/dist/calcite/{p-404c6db8.entry.js → p-3f76acf2.entry.js} +2 -2
- package/dist/calcite/{p-dbb8e6a4.js → p-3fa609d5.js} +2 -2
- package/dist/calcite/{p-a6373ef6.js → p-3fcb9034.js} +2 -2
- package/dist/calcite/{p-1de1447f.entry.js → p-45e53f55.entry.js} +2 -2
- package/dist/calcite/{p-452356bd.js → p-4856dddb.js} +2 -2
- package/dist/calcite/{p-74cc2ffc.js → p-49e5d777.js} +1 -1
- package/dist/calcite/{p-8599b693.entry.js → p-4b8f2cc6.entry.js} +2 -2
- package/dist/calcite/p-4c57359d.entry.js +6 -0
- package/dist/calcite/{p-5a979e32.entry.js → p-4d7133d9.entry.js} +2 -2
- package/dist/calcite/{p-40e1d497.js → p-51d0515b.js} +1 -1
- package/dist/calcite/p-532cef5c.entry.js +6 -0
- package/dist/calcite/{p-f532a20d.entry.js → p-54d273e8.entry.js} +2 -2
- package/dist/calcite/{p-ba03e197.entry.js → p-5a18b7f4.entry.js} +2 -2
- package/dist/calcite/p-5d6e52d4.entry.js +6 -0
- package/dist/calcite/{p-96f53f90.entry.js → p-60ced749.entry.js} +2 -2
- package/dist/calcite/p-621d5429.js +6 -0
- package/dist/calcite/p-65335b2b.entry.js +6 -0
- package/dist/calcite/{p-5ef97e90.entry.js → p-66d4ce20.entry.js} +2 -2
- package/dist/calcite/{p-4d4bc233.entry.js → p-6f54481b.entry.js} +2 -2
- package/dist/calcite/{p-d2f79079.entry.js → p-70ca1c26.entry.js} +2 -2
- package/dist/calcite/{p-718e40b5.entry.js → p-728c6fc2.entry.js} +2 -2
- package/dist/calcite/{p-0020d7d5.entry.js → p-752a8d00.entry.js} +2 -2
- package/dist/calcite/{p-2eeff261.js → p-7d472b89.js} +1 -1
- package/dist/calcite/p-807bda75.entry.js +6 -0
- package/dist/calcite/{p-d973937d.entry.js → p-837ffe1e.entry.js} +2 -2
- package/dist/calcite/{p-ac96d103.entry.js → p-855fd4d7.entry.js} +2 -2
- package/dist/calcite/{p-20ab02b7.entry.js → p-8666e688.entry.js} +2 -2
- package/dist/calcite/{p-441037a9.entry.js → p-877d38e1.entry.js} +2 -2
- package/dist/calcite/{p-cafb01e6.entry.js → p-8831891e.entry.js} +2 -2
- package/dist/calcite/{p-c7447ff5.entry.js → p-89c058e4.entry.js} +2 -2
- package/dist/calcite/{p-52d3de61.entry.js → p-911b246e.entry.js} +2 -2
- package/dist/calcite/{p-eb47be9d.js → p-92cc49ae.js} +1 -1
- package/dist/calcite/{p-4b1cc441.js → p-949abf15.js} +2 -2
- package/dist/calcite/{p-b5284c7c.entry.js → p-954eef5d.entry.js} +2 -2
- package/dist/calcite/{p-da82a06e.entry.js → p-96f5af97.entry.js} +2 -2
- package/dist/calcite/{p-ccd21f8c.js → p-97d57adb.js} +2 -2
- package/dist/calcite/{p-c416a37b.entry.js → p-9c9ccc12.entry.js} +2 -2
- package/dist/calcite/{p-a322bb86.entry.js → p-9e35701e.entry.js} +2 -2
- package/dist/calcite/{p-8d075e37.js → p-a04c9515.js} +1 -1
- package/dist/calcite/p-a31ab73c.entry.js +6 -0
- package/dist/calcite/{p-1dd5f101.entry.js → p-a65e95d2.entry.js} +2 -2
- package/dist/calcite/{p-aed4b6fc.entry.js → p-a80301bb.entry.js} +2 -2
- package/dist/calcite/{p-33732b8f.entry.js → p-adb4d487.entry.js} +2 -2
- package/dist/calcite/{p-36522d79.entry.js → p-aeee54d1.entry.js} +2 -2
- package/dist/calcite/{p-d90a2e81.entry.js → p-b0ac90ac.entry.js} +2 -2
- package/dist/calcite/{p-06c6854a.entry.js → p-b5978ef5.entry.js} +2 -2
- package/dist/calcite/{p-a3f7f3c6.entry.js → p-bf83a066.entry.js} +2 -2
- package/dist/calcite/{p-a88b4c26.js → p-c0b13ce0.js} +1 -1
- package/dist/calcite/{p-f69de408.js → p-c0e6bfd3.js} +1 -1
- package/dist/calcite/{p-967401e4.entry.js → p-c239aa2b.entry.js} +2 -2
- package/dist/calcite/{p-72b59949.entry.js → p-c3ec5007.entry.js} +2 -2
- package/dist/calcite/{p-1e8d2fd7.entry.js → p-c4c10ed9.entry.js} +2 -2
- package/dist/calcite/{p-9df2c651.js → p-d0f36c4f.js} +2 -2
- package/dist/calcite/{p-8cf35eb8.entry.js → p-d6cb9bd1.entry.js} +2 -2
- package/dist/calcite/{p-98a6c8a4.js → p-da2c5bde.js} +2 -2
- package/dist/calcite/{p-187c562d.entry.js → p-db4b767d.entry.js} +2 -2
- package/dist/calcite/{p-791e76fc.entry.js → p-ebeb6981.entry.js} +2 -2
- package/dist/calcite/{p-7be2ad3b.entry.js → p-ee38e857.entry.js} +2 -2
- package/dist/calcite/{p-39ebfe9e.entry.js → p-f0d35a0d.entry.js} +2 -2
- package/dist/calcite/{p-1ed53169.js → p-f193166a.js} +1 -1
- package/dist/calcite/p-f2393c60.entry.js +6 -0
- package/dist/calcite/{p-1e3fdded.entry.js → p-f3351947.entry.js} +2 -2
- package/dist/calcite/p-f6f6c8f4.js +6 -0
- package/dist/calcite/{p-7b0c6ea0.js → p-f75b9bae.js} +2 -2
- package/dist/calcite/{p-f8706ae9.entry.js → p-f9dd57c3.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-4c94697a.js → ExpandToggle-fe4238af.js} +5 -5
- package/dist/cjs/{Heading-3af0e212.js → Heading-f8942a9b.js} +2 -2
- package/dist/cjs/{app-globals-3186acc4.js → app-globals-87cc97d5.js} +2 -2
- package/dist/cjs/{array-4f023a91.js → array-a371274e.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +11 -11
- package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action.cjs.entry.js +7 -7
- package/dist/cjs/calcite-alert.cjs.entry.js +10 -10
- 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 +9 -9
- package/dist/cjs/calcite-card.cjs.entry.js +7 -7
- package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -9
- package/dist/cjs/calcite-chip.cjs.entry.js +7 -7
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +33 -27
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +11 -11
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +38 -27
- package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
- package/dist/cjs/calcite-filter.cjs.entry.js +8 -8
- package/dist/cjs/calcite-flow-item.cjs.entry.js +7 -7
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-handle.cjs.entry.js +5 -5
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +8 -8
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +37 -26
- package/dist/cjs/calcite-input-message.cjs.entry.js +12 -7
- package/dist/cjs/calcite-input-number.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +21 -15
- package/dist/cjs/calcite-input.cjs.entry.js +12 -12
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +6 -6
- package/dist/cjs/calcite-list_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-loader.cjs.entry.js +10 -5
- package/dist/cjs/calcite-modal.cjs.entry.js +8 -8
- package/dist/cjs/calcite-notice.cjs.entry.js +8 -8
- package/dist/cjs/calcite-option_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-pagination.cjs.entry.js +8 -8
- package/dist/cjs/calcite-panel.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-popover_2.cjs.entry.js +36 -27
- 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 +9 -9
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-rating.cjs.entry.js +9 -9
- 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 +9 -9
- package/dist/cjs/calcite-switch.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
- 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_2.cjs.entry.js +29 -20
- package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite.cjs.js +4 -4
- package/dist/cjs/{conditionalSlot-cb35bd49.js → conditionalSlot-d483eeec.js} +3 -3
- package/dist/cjs/{debounce-7c328f60.js → debounce-d37073f8.js} +1 -1
- package/dist/cjs/{dom-c8d2699b.js → dom-438cf820.js} +3 -3
- package/dist/cjs/{filter-9a46e30b.js → filter-417a10f5.js} +2 -2
- package/dist/cjs/{floating-ui-1eb7dfe6.js → floating-ui-211aac7d.js} +175 -23
- package/dist/cjs/{form-131e64b8.js → form-c1972559.js} +3 -3
- package/dist/cjs/{guid-ad9b119b.js → guid-46161d10.js} +1 -1
- package/dist/cjs/{index-b1ba5282.js → index-c5b688a1.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-baf36661.js → interactive-76c6345c.js} +1 -1
- package/dist/cjs/{interfaces-084c0793.js → interfaces-6375f24e.js} +1 -1
- package/dist/cjs/{key-59a119b9.js → key-e2155dc2.js} +1 -1
- package/dist/cjs/{label-415bc940.js → label-21de0ff3.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{locale-02d3d5ef.js → locale-5c4b7a28.js} +4 -4
- package/dist/cjs/{math-45a2d4c0.js → math-5f60a1e1.js} +1 -1
- package/dist/cjs/nonChromiumPlatformUtils-aa1fad96.js +506 -0
- package/dist/cjs/{observers-bf725ee8.js → observers-e12f45ca.js} +1 -1
- package/dist/cjs/{openCloseComponent-f4966a6b.js → openCloseComponent-a609980b.js} +1 -1
- package/dist/cjs/{resources-79bc4e72.js → resources-025fab60.js} +1 -1
- package/dist/cjs/{resources-12c592bb.js → resources-044f089d.js} +5 -5
- package/dist/cjs/{resources-55a2a593.js → resources-2e5bd4b4.js} +1 -1
- package/dist/cjs/{resources-0da64a64.js → resources-bc05554f.js} +3 -3
- package/dist/cjs/{resources-f51e581d.js → resources-de01a800.js} +1 -1
- package/dist/cjs/{resources-ef23c4c9.js → resources-ee3f699f.js} +1 -1
- package/dist/cjs/{sortable.esm-f5415dc8.js → sortable.esm-00c4fa50.js} +1 -1
- package/dist/cjs/{utils-332df7b7.js → utils-db431c41.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.css +0 -1
- package/dist/collection/components/combobox/combobox.js +32 -17
- 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.css +0 -1
- package/dist/collection/components/dropdown/dropdown.js +40 -21
- 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.css +0 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +35 -16
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.css +6 -16
- package/dist/collection/components/input-message/input-message.js +14 -3
- 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 +23 -8
- 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-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.css +0 -7
- package/dist/collection/components/loader/loader.js +14 -3
- package/dist/collection/components/modal/modal.js +1 -1
- 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.css +0 -1
- package/dist/collection/components/popover/popover.js +38 -21
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/popover-manager/popover-manager.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.css +0 -1
- package/dist/collection/components/tooltip/tooltip.js +35 -18
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
- package/dist/collection/components/tree/interfaces.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 +22 -0
- 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 +496 -0
- package/dist/collection/utils/floating-ui.js +123 -12
- 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/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 +3 -3
- 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 +22 -16
- 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 +24 -14
- package/dist/components/calcite-input-message.js +8 -3
- 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 +11 -5
- 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 +1 -1
- 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-manager.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-manager.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 +29 -19
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +181 -22
- 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/interfaces2.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/loader.js +8 -3
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/nonChromiumPlatformUtils.js +498 -0
- 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 +27 -19
- 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 +24 -16
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +2 -2
- package/dist/esm/{ExpandToggle-246dd7c6.js → ExpandToggle-e12726c1.js} +5 -5
- package/dist/esm/{Heading-11c2a834.js → Heading-f79e69a8.js} +2 -2
- package/dist/esm/{app-globals-1b919870.js → app-globals-a2b52b66.js} +2 -2
- package/dist/esm/{array-16ebf5c6.js → array-d19f31ef.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +11 -11
- package/dist/esm/calcite-action-group.entry.js +9 -9
- package/dist/esm/calcite-action-menu.entry.js +8 -8
- package/dist/esm/calcite-action-pad.entry.js +10 -10
- package/dist/esm/calcite-action.entry.js +7 -7
- package/dist/esm/calcite-alert.entry.js +10 -10
- 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 +9 -9
- package/dist/esm/calcite-card.entry.js +7 -7
- package/dist/esm/calcite-checkbox.entry.js +9 -9
- package/dist/esm/calcite-chip.entry.js +7 -7
- package/dist/esm/calcite-color-picker_3.entry.js +10 -10
- package/dist/esm/calcite-combobox_3.entry.js +33 -27
- package/dist/esm/calcite-date-picker_4.entry.js +11 -11
- package/dist/esm/calcite-dropdown_3.entry.js +38 -27
- package/dist/esm/calcite-fab.entry.js +6 -6
- package/dist/esm/calcite-filter.entry.js +8 -8
- package/dist/esm/calcite-flow-item.entry.js +7 -7
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +12 -12
- package/dist/esm/calcite-handle.entry.js +5 -5
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +8 -8
- package/dist/esm/calcite-input-date-picker.entry.js +37 -26
- package/dist/esm/calcite-input-message.entry.js +12 -7
- package/dist/esm/calcite-input-number.entry.js +12 -12
- package/dist/esm/calcite-input-text.entry.js +9 -9
- package/dist/esm/calcite-input-time-picker_2.entry.js +21 -15
- package/dist/esm/calcite-input.entry.js +12 -12
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +6 -6
- package/dist/esm/calcite-list_3.entry.js +9 -9
- package/dist/esm/calcite-loader.entry.js +10 -5
- package/dist/esm/calcite-modal.entry.js +8 -8
- package/dist/esm/calcite-notice.entry.js +8 -8
- package/dist/esm/calcite-option_3.entry.js +9 -9
- package/dist/esm/calcite-pagination.entry.js +8 -8
- package/dist/esm/calcite-panel.entry.js +10 -10
- package/dist/esm/calcite-pick-list_3.entry.js +12 -12
- package/dist/esm/calcite-popover_2.entry.js +36 -27
- 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 +9 -9
- package/dist/esm/calcite-radio-group_2.entry.js +8 -8
- package/dist/esm/calcite-rating.entry.js +9 -9
- 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 +9 -9
- package/dist/esm/calcite-switch.entry.js +9 -9
- package/dist/esm/calcite-tab_4.entry.js +7 -7
- package/dist/esm/calcite-tile-select_2.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +8 -8
- package/dist/esm/calcite-tooltip_2.entry.js +29 -20
- package/dist/esm/calcite-tree_2.entry.js +8 -8
- package/dist/esm/calcite-value-list_2.entry.js +12 -12
- package/dist/esm/calcite.js +4 -4
- package/dist/esm/{conditionalSlot-833c523f.js → conditionalSlot-4d2ab5e9.js} +3 -3
- package/dist/esm/{debounce-98d20a38.js → debounce-2bc2a354.js} +1 -1
- package/dist/esm/{dom-640caf51.js → dom-a87ef22f.js} +3 -3
- package/dist/esm/{filter-38e63edc.js → filter-761cb8ee.js} +2 -2
- package/dist/esm/{floating-ui-b2f9718e.js → floating-ui-ac993e39.js} +173 -22
- package/dist/esm/{form-493b70e6.js → form-a1efc73f.js} +3 -3
- package/dist/esm/{guid-11f68c50.js → guid-9d2910aa.js} +1 -1
- package/dist/esm/{index-06118eda.js → index-a6731e85.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-fccdf326.js → interactive-39616428.js} +1 -1
- package/dist/esm/{interfaces-d9428b54.js → interfaces-95d67796.js} +1 -1
- package/dist/esm/{key-754bbff1.js → key-3563e7c6.js} +1 -1
- package/dist/esm/{label-57dd65d4.js → label-df0add79.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{locale-4e463ebf.js → locale-f75032e0.js} +4 -4
- package/dist/esm/{math-99ba6bfb.js → math-05526307.js} +1 -1
- package/dist/esm/nonChromiumPlatformUtils-42471681.js +502 -0
- package/dist/esm/{observers-74e54f0e.js → observers-fcb97ebe.js} +1 -1
- package/dist/esm/{openCloseComponent-ccf3f367.js → openCloseComponent-a87c611f.js} +1 -1
- package/dist/esm/{resources-d9cf35ab.js → resources-29dda08c.js} +3 -3
- package/dist/esm/{resources-f3f5aa83.js → resources-2f4811b0.js} +1 -1
- package/dist/esm/{resources-bad5148f.js → resources-524fe319.js} +5 -5
- package/dist/esm/{resources-f7ec4e42.js → resources-624c9301.js} +1 -1
- package/dist/esm/{resources-64b0963b.js → resources-7432b8c4.js} +1 -1
- package/dist/esm/{resources-9331d9fa.js → resources-80f6302b.js} +1 -1
- package/dist/esm/{sortable.esm-76542737.js → sortable.esm-c1ee4e1b.js} +1 -1
- package/dist/esm/{utils-703b7ab8.js → utils-fc240fcd.js} +1 -1
- package/dist/extras/docs-json.json +65 -15
- 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/combobox/combobox.d.ts +6 -3
- package/dist/types/components/dropdown/dropdown.d.ts +6 -3
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +6 -3
- package/dist/types/components/input-message/input-message.d.ts +6 -1
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +6 -2
- package/dist/types/components/loader/loader.d.ts +6 -1
- package/dist/types/components/popover/popover.d.ts +7 -4
- package/dist/types/components/tooltip/tooltip.d.ts +7 -4
- package/dist/types/components.d.ts +20 -6
- package/dist/types/utils/config.d.ts +7 -0
- package/dist/types/utils/floating-ui/nonChromiumPlatformUtils.d.ts +16 -0
- package/dist/types/utils/floating-ui.d.ts +45 -2
- package/hydrate/index.js +280 -169
- package/package.json +2 -2
- package/dist/calcite/p-03afda80.entry.js +0 -6
- package/dist/calcite/p-0ae7c12f.js +0 -6
- package/dist/calcite/p-22cfa796.entry.js +0 -6
- package/dist/calcite/p-2a78a458.entry.js +0 -6
- package/dist/calcite/p-2d12183c.entry.js +0 -6
- package/dist/calcite/p-538fd2ae.entry.js +0 -6
- package/dist/calcite/p-91036706.js +0 -6
- package/dist/calcite/p-c3e7ad35.entry.js +0 -6
- package/dist/calcite/p-cff1af31.entry.js +0 -6
- package/dist/calcite/p-da13cffd.entry.js +0 -6
- package/dist/calcite/p-fe3f8e2f.js +0 -6
package/hydrate/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.608
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -15372,9 +15372,10 @@ function isOverflowElement(element) {
|
|
|
15372
15372
|
const {
|
|
15373
15373
|
overflow,
|
|
15374
15374
|
overflowX,
|
|
15375
|
-
overflowY
|
|
15375
|
+
overflowY,
|
|
15376
|
+
display
|
|
15376
15377
|
} = getComputedStyle$1(element);
|
|
15377
|
-
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
15378
|
+
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
15378
15379
|
}
|
|
15379
15380
|
function isTableElement(element) {
|
|
15380
15381
|
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
@@ -15386,8 +15387,11 @@ function isContainingBlock(element) {
|
|
|
15386
15387
|
// create a containing block.
|
|
15387
15388
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
15388
15389
|
|
|
15389
|
-
return css.transform !== 'none' || css.perspective !== 'none' ||
|
|
15390
|
-
|
|
15390
|
+
return css.transform !== 'none' || css.perspective !== 'none' || isFirefox && css.willChange === 'filter' || isFirefox && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective'].some(value => css.willChange.includes(value)) || ['paint', 'layout', 'strict', 'content'].some( // TS 4.1 compat
|
|
15391
|
+
value => {
|
|
15392
|
+
const contain = css.contain;
|
|
15393
|
+
return contain != null ? contain.includes(value) : false;
|
|
15394
|
+
});
|
|
15391
15395
|
}
|
|
15392
15396
|
function isLayoutViewport() {
|
|
15393
15397
|
// Not Safari
|
|
@@ -15397,6 +15401,9 @@ function isLayoutViewport() {
|
|
|
15397
15401
|
// const vV = win.visualViewport;
|
|
15398
15402
|
// return vV ? Math.abs(win.innerWidth / vV.scale - vV.width) < 0.5 : true;
|
|
15399
15403
|
}
|
|
15404
|
+
function isLastTraversableNode(node) {
|
|
15405
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
15406
|
+
}
|
|
15400
15407
|
|
|
15401
15408
|
const min = Math.min;
|
|
15402
15409
|
const max = Math.max;
|
|
@@ -15535,7 +15542,7 @@ function getContainingBlock(element) {
|
|
|
15535
15542
|
currentNode = currentNode.host;
|
|
15536
15543
|
}
|
|
15537
15544
|
|
|
15538
|
-
while (isHTMLElement(currentNode) && !
|
|
15545
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
15539
15546
|
if (isContainingBlock(currentNode)) {
|
|
15540
15547
|
return currentNode;
|
|
15541
15548
|
} else {
|
|
@@ -15679,7 +15686,7 @@ function getDocumentRect(element) {
|
|
|
15679
15686
|
function getNearestOverflowAncestor(node) {
|
|
15680
15687
|
const parentNode = getParentNode(node);
|
|
15681
15688
|
|
|
15682
|
-
if (
|
|
15689
|
+
if (isLastTraversableNode(parentNode)) {
|
|
15683
15690
|
// @ts-ignore assume body is always available
|
|
15684
15691
|
return node.ownerDocument.body;
|
|
15685
15692
|
}
|
|
@@ -15730,6 +15737,22 @@ function contains(parent, child) {
|
|
|
15730
15737
|
return false;
|
|
15731
15738
|
}
|
|
15732
15739
|
|
|
15740
|
+
function getNearestParentCapableOfEscapingClipping(element, clippingAncestors) {
|
|
15741
|
+
let currentNode = element;
|
|
15742
|
+
|
|
15743
|
+
while (currentNode && !isLastTraversableNode(currentNode) && // @ts-expect-error
|
|
15744
|
+
!clippingAncestors.includes(currentNode)) {
|
|
15745
|
+
if (isElement(currentNode) && ['absolute', 'fixed'].includes(getComputedStyle$1(currentNode).position)) {
|
|
15746
|
+
break;
|
|
15747
|
+
}
|
|
15748
|
+
|
|
15749
|
+
const parentNode = getParentNode(currentNode);
|
|
15750
|
+
currentNode = isShadowRoot(parentNode) ? parentNode.host : parentNode;
|
|
15751
|
+
}
|
|
15752
|
+
|
|
15753
|
+
return currentNode;
|
|
15754
|
+
}
|
|
15755
|
+
|
|
15733
15756
|
function getInnerBoundingClientRect(element, strategy) {
|
|
15734
15757
|
const clientRect = getBoundingClientRect(element, false, strategy === 'fixed');
|
|
15735
15758
|
const top = clientRect.top + element.clientTop;
|
|
@@ -15763,15 +15786,25 @@ function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
|
|
|
15763
15786
|
|
|
15764
15787
|
function getClippingAncestors(element) {
|
|
15765
15788
|
const clippingAncestors = getOverflowAncestors(element);
|
|
15766
|
-
const
|
|
15767
|
-
|
|
15789
|
+
const nearestEscapableParent = getNearestParentCapableOfEscapingClipping(element, clippingAncestors);
|
|
15790
|
+
let clipperElement = null;
|
|
15791
|
+
|
|
15792
|
+
if (nearestEscapableParent && isHTMLElement(nearestEscapableParent)) {
|
|
15793
|
+
const offsetParent = getOffsetParent(nearestEscapableParent);
|
|
15794
|
+
|
|
15795
|
+
if (isOverflowElement(nearestEscapableParent)) {
|
|
15796
|
+
clipperElement = nearestEscapableParent;
|
|
15797
|
+
} else if (isHTMLElement(offsetParent)) {
|
|
15798
|
+
clipperElement = offsetParent;
|
|
15799
|
+
}
|
|
15800
|
+
}
|
|
15768
15801
|
|
|
15769
15802
|
if (!isElement(clipperElement)) {
|
|
15770
15803
|
return [];
|
|
15771
15804
|
} // @ts-ignore isElement check ensures we return Array<Element>
|
|
15772
15805
|
|
|
15773
15806
|
|
|
15774
|
-
return clippingAncestors.filter(clippingAncestors => isElement(clippingAncestors) && contains(clippingAncestors, clipperElement) && getNodeName(clippingAncestors) !== 'body');
|
|
15807
|
+
return clippingAncestors.filter(clippingAncestors => clipperElement && isElement(clippingAncestors) && contains(clippingAncestors, clipperElement) && getNodeName(clippingAncestors) !== 'body');
|
|
15775
15808
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
15776
15809
|
// clipping ancestors
|
|
15777
15810
|
|
|
@@ -15827,80 +15860,6 @@ const platform = {
|
|
|
15827
15860
|
isRTL: element => getComputedStyle$1(element).direction === 'rtl'
|
|
15828
15861
|
};
|
|
15829
15862
|
|
|
15830
|
-
/**
|
|
15831
|
-
* Automatically updates the position of the floating element when necessary.
|
|
15832
|
-
* @see https://floating-ui.com/docs/autoUpdate
|
|
15833
|
-
*/
|
|
15834
|
-
function autoUpdate(reference, floating, update, options) {
|
|
15835
|
-
if (options === void 0) {
|
|
15836
|
-
options = {};
|
|
15837
|
-
}
|
|
15838
|
-
|
|
15839
|
-
const {
|
|
15840
|
-
ancestorScroll: _ancestorScroll = true,
|
|
15841
|
-
ancestorResize: _ancestorResize = true,
|
|
15842
|
-
elementResize = true,
|
|
15843
|
-
animationFrame = false
|
|
15844
|
-
} = options;
|
|
15845
|
-
const ancestorScroll = _ancestorScroll && !animationFrame;
|
|
15846
|
-
const ancestorResize = _ancestorResize && !animationFrame;
|
|
15847
|
-
const ancestors = ancestorScroll || ancestorResize ? [...(isElement(reference) ? getOverflowAncestors(reference) : []), ...getOverflowAncestors(floating)] : [];
|
|
15848
|
-
ancestors.forEach(ancestor => {
|
|
15849
|
-
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
15850
|
-
passive: true
|
|
15851
|
-
});
|
|
15852
|
-
ancestorResize && ancestor.addEventListener('resize', update);
|
|
15853
|
-
});
|
|
15854
|
-
let observer = null;
|
|
15855
|
-
|
|
15856
|
-
if (elementResize) {
|
|
15857
|
-
let initialUpdate = true;
|
|
15858
|
-
observer = new ResizeObserver(() => {
|
|
15859
|
-
if (!initialUpdate) {
|
|
15860
|
-
update();
|
|
15861
|
-
}
|
|
15862
|
-
|
|
15863
|
-
initialUpdate = false;
|
|
15864
|
-
});
|
|
15865
|
-
isElement(reference) && !animationFrame && observer.observe(reference);
|
|
15866
|
-
observer.observe(floating);
|
|
15867
|
-
}
|
|
15868
|
-
|
|
15869
|
-
let frameId;
|
|
15870
|
-
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
15871
|
-
|
|
15872
|
-
if (animationFrame) {
|
|
15873
|
-
frameLoop();
|
|
15874
|
-
}
|
|
15875
|
-
|
|
15876
|
-
function frameLoop() {
|
|
15877
|
-
const nextRefRect = getBoundingClientRect(reference);
|
|
15878
|
-
|
|
15879
|
-
if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
|
|
15880
|
-
update();
|
|
15881
|
-
}
|
|
15882
|
-
|
|
15883
|
-
prevRefRect = nextRefRect;
|
|
15884
|
-
frameId = requestAnimationFrame(frameLoop);
|
|
15885
|
-
}
|
|
15886
|
-
|
|
15887
|
-
update();
|
|
15888
|
-
return () => {
|
|
15889
|
-
var _observer;
|
|
15890
|
-
|
|
15891
|
-
ancestors.forEach(ancestor => {
|
|
15892
|
-
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
15893
|
-
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
15894
|
-
});
|
|
15895
|
-
(_observer = observer) == null ? void 0 : _observer.disconnect();
|
|
15896
|
-
observer = null;
|
|
15897
|
-
|
|
15898
|
-
if (animationFrame) {
|
|
15899
|
-
cancelAnimationFrame(frameId);
|
|
15900
|
-
}
|
|
15901
|
-
};
|
|
15902
|
-
}
|
|
15903
|
-
|
|
15904
15863
|
/**
|
|
15905
15864
|
* Computes the `x` and `y` coordinates that will place the floating element
|
|
15906
15865
|
* next to a reference element when it is given a certain CSS positioning
|
|
@@ -15912,6 +15871,13 @@ const computePosition = (reference, floating, options) => computePosition$1(refe
|
|
|
15912
15871
|
...options
|
|
15913
15872
|
});
|
|
15914
15873
|
|
|
15874
|
+
const floatingUIBrowserCheck = patchFloatingUiForNonChromiumBrowsers();
|
|
15875
|
+
async function patchFloatingUiForNonChromiumBrowsers() {
|
|
15876
|
+
}
|
|
15877
|
+
const placementDataAttribute = "data-placement";
|
|
15878
|
+
/**
|
|
15879
|
+
* Exported for testing purposes only
|
|
15880
|
+
*/
|
|
15915
15881
|
const repositionDebounceTimeout = 100;
|
|
15916
15882
|
const effectivePlacements = [
|
|
15917
15883
|
"top",
|
|
@@ -15992,9 +15958,40 @@ function getEffectivePlacement(floatingEl, placement) {
|
|
|
15992
15958
|
.replace(/leading/gi, placements[0])
|
|
15993
15959
|
.replace(/trailing/gi, placements[1]);
|
|
15994
15960
|
}
|
|
15961
|
+
/**
|
|
15962
|
+
* Convenience function to manage `reposition` calls for FloatingUIComponents that use `positionFloatingUI.
|
|
15963
|
+
*
|
|
15964
|
+
* Note: this is not needed for components that use `calcite-popover`.
|
|
15965
|
+
*
|
|
15966
|
+
* @param component
|
|
15967
|
+
* @param options
|
|
15968
|
+
* @param options.referenceEl
|
|
15969
|
+
* @param options.floatingEl
|
|
15970
|
+
* @param options.overlayPositioning
|
|
15971
|
+
* @param options.placement
|
|
15972
|
+
* @param options.disableFlip
|
|
15973
|
+
* @param options.flipPlacements
|
|
15974
|
+
* @param options.offsetDistance
|
|
15975
|
+
* @param options.offsetSkidding
|
|
15976
|
+
* @param options.arrowEl
|
|
15977
|
+
* @param options.type
|
|
15978
|
+
* @param delayed
|
|
15979
|
+
*/
|
|
15980
|
+
async function reposition(component, options, delayed = false) {
|
|
15981
|
+
if (!component.open) {
|
|
15982
|
+
return;
|
|
15983
|
+
}
|
|
15984
|
+
return delayed ? debouncedReposition(options) : positionFloatingUI(options);
|
|
15985
|
+
}
|
|
15986
|
+
const debouncedReposition = debounce(positionFloatingUI, repositionDebounceTimeout, {
|
|
15987
|
+
leading: true,
|
|
15988
|
+
maxWait: repositionDebounceTimeout
|
|
15989
|
+
});
|
|
15995
15990
|
/**
|
|
15996
15991
|
* Positions the floating element relative to the reference element.
|
|
15997
15992
|
*
|
|
15993
|
+
* **Note:** exported for testing purposes only
|
|
15994
|
+
*
|
|
15998
15995
|
* @param root0
|
|
15999
15996
|
* @param root0.referenceEl
|
|
16000
15997
|
* @param root0.floatingEl
|
|
@@ -16006,12 +16003,14 @@ function getEffectivePlacement(floatingEl, placement) {
|
|
|
16006
16003
|
* @param root0.offsetSkidding
|
|
16007
16004
|
* @param root0.arrowEl
|
|
16008
16005
|
* @param root0.type
|
|
16006
|
+
* @param root0.includeArrow
|
|
16009
16007
|
*/
|
|
16010
|
-
async function positionFloatingUI({ referenceEl, floatingEl, overlayPositioning = "absolute", placement, disableFlip, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type }) {
|
|
16008
|
+
async function positionFloatingUI({ referenceEl, floatingEl, overlayPositioning = "absolute", placement, disableFlip, flipPlacements, offsetDistance, offsetSkidding, includeArrow = false, arrowEl, type }) {
|
|
16011
16009
|
var _a;
|
|
16012
|
-
if (!referenceEl || !floatingEl) {
|
|
16010
|
+
if (!referenceEl || !floatingEl || (includeArrow && !arrowEl)) {
|
|
16013
16011
|
return null;
|
|
16014
16012
|
}
|
|
16013
|
+
await floatingUIBrowserCheck;
|
|
16015
16014
|
const { x, y, placement: effectivePlacement, strategy: position, middlewareData } = await computePosition(referenceEl, floatingEl, {
|
|
16016
16015
|
strategy: overlayPositioning,
|
|
16017
16016
|
placement: placement === "auto" || placement === "auto-start" || placement === "auto-end"
|
|
@@ -16037,7 +16036,7 @@ async function positionFloatingUI({ referenceEl, floatingEl, overlayPositioning
|
|
|
16037
16036
|
const referenceHidden = (_a = middlewareData === null || middlewareData === void 0 ? void 0 : middlewareData.hide) === null || _a === void 0 ? void 0 : _a.referenceHidden;
|
|
16038
16037
|
const visibility = referenceHidden ? "hidden" : null;
|
|
16039
16038
|
const pointerEvents = visibility ? "none" : null;
|
|
16040
|
-
floatingEl.setAttribute(
|
|
16039
|
+
floatingEl.setAttribute(placementDataAttribute, effectivePlacement);
|
|
16041
16040
|
const transform = `translate(${Math.round(x)}px,${Math.round(y)}px)`;
|
|
16042
16041
|
Object.assign(floatingEl.style, {
|
|
16043
16042
|
visibility,
|
|
@@ -16048,6 +16047,11 @@ async function positionFloatingUI({ referenceEl, floatingEl, overlayPositioning
|
|
|
16048
16047
|
transform
|
|
16049
16048
|
});
|
|
16050
16049
|
}
|
|
16050
|
+
/**
|
|
16051
|
+
* Exported for testing purposes only
|
|
16052
|
+
*
|
|
16053
|
+
* @internal
|
|
16054
|
+
*/
|
|
16051
16055
|
const cleanupMap = new WeakMap();
|
|
16052
16056
|
/**
|
|
16053
16057
|
* Helper to set up floating element interactions on connectedCallback.
|
|
@@ -16061,11 +16065,19 @@ function connectFloatingUI(component, referenceEl, floatingEl) {
|
|
|
16061
16065
|
return;
|
|
16062
16066
|
}
|
|
16063
16067
|
disconnectFloatingUI(component, referenceEl, floatingEl);
|
|
16064
|
-
|
|
16065
|
-
|
|
16066
|
-
|
|
16067
|
-
|
|
16068
|
-
|
|
16068
|
+
const position = component.overlayPositioning;
|
|
16069
|
+
// ensure position matches for initial positioning
|
|
16070
|
+
floatingEl.style.position = position;
|
|
16071
|
+
if (position === "absolute") {
|
|
16072
|
+
moveOffScreen(floatingEl);
|
|
16073
|
+
}
|
|
16074
|
+
const runAutoUpdate = (_refEl, _floatingEl, updateCallback) => {
|
|
16075
|
+
updateCallback();
|
|
16076
|
+
return () => {
|
|
16077
|
+
/* noop */
|
|
16078
|
+
};
|
|
16079
|
+
};
|
|
16080
|
+
cleanupMap.set(component, runAutoUpdate(referenceEl, floatingEl, () => component.reposition()));
|
|
16069
16081
|
}
|
|
16070
16082
|
/**
|
|
16071
16083
|
* Helper to tear down floating element interactions on disconnectedCallback.
|
|
@@ -16078,6 +16090,7 @@ function disconnectFloatingUI(component, referenceEl, floatingEl) {
|
|
|
16078
16090
|
if (!floatingEl || !referenceEl) {
|
|
16079
16091
|
return;
|
|
16080
16092
|
}
|
|
16093
|
+
getTransitionTarget(floatingEl).removeEventListener("transitionend", handleTransitionElTransitionEnd);
|
|
16081
16094
|
const cleanup = cleanupMap.get(component);
|
|
16082
16095
|
if (cleanup) {
|
|
16083
16096
|
cleanup();
|
|
@@ -16091,6 +16104,42 @@ const visiblePointerSize = 4;
|
|
|
16091
16104
|
* @default 6
|
|
16092
16105
|
*/
|
|
16093
16106
|
const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePointerSize));
|
|
16107
|
+
/**
|
|
16108
|
+
* This utils applies floating element styles to avoid affecting layout when closed.
|
|
16109
|
+
*
|
|
16110
|
+
* This should be called when the closing transition will start.
|
|
16111
|
+
*
|
|
16112
|
+
* @param floatingEl
|
|
16113
|
+
*/
|
|
16114
|
+
function updateAfterClose(floatingEl) {
|
|
16115
|
+
if (!floatingEl || floatingEl.style.position !== "absolute") {
|
|
16116
|
+
return;
|
|
16117
|
+
}
|
|
16118
|
+
getTransitionTarget(floatingEl).addEventListener("transitionend", handleTransitionElTransitionEnd);
|
|
16119
|
+
}
|
|
16120
|
+
function getTransitionTarget(floatingEl) {
|
|
16121
|
+
// assumes floatingEl w/ shadowRoot is a FloatingUIComponent
|
|
16122
|
+
return floatingEl.shadowRoot || floatingEl;
|
|
16123
|
+
}
|
|
16124
|
+
function handleTransitionElTransitionEnd(event) {
|
|
16125
|
+
const floatingTransitionEl = event.target;
|
|
16126
|
+
if (
|
|
16127
|
+
// using any prop from floating-ui transition
|
|
16128
|
+
event.propertyName === "opacity" &&
|
|
16129
|
+
floatingTransitionEl.classList.contains(FloatingCSS.animation)) {
|
|
16130
|
+
const floatingEl = getFloatingElFromTransitionTarget(floatingTransitionEl);
|
|
16131
|
+
moveOffScreen(floatingEl);
|
|
16132
|
+
getTransitionTarget(floatingEl).removeEventListener("transitionend", handleTransitionElTransitionEnd);
|
|
16133
|
+
}
|
|
16134
|
+
}
|
|
16135
|
+
function moveOffScreen(floatingEl) {
|
|
16136
|
+
floatingEl.style.transform = "";
|
|
16137
|
+
floatingEl.style.top = "-99999px";
|
|
16138
|
+
floatingEl.style.left = "-99999px";
|
|
16139
|
+
}
|
|
16140
|
+
function getFloatingElFromTransitionTarget(floatingTransitionEl) {
|
|
16141
|
+
return closestElementCrossShadowBoundary(floatingTransitionEl, `[${placementDataAttribute}]`);
|
|
16142
|
+
}
|
|
16094
16143
|
|
|
16095
16144
|
const ComboboxItem$1 = "CALCITE-COMBOBOX-ITEM";
|
|
16096
16145
|
const ComboboxItemGroup$1 = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
@@ -16122,7 +16171,7 @@ function getDepth(element) {
|
|
|
16122
16171
|
}
|
|
16123
16172
|
}
|
|
16124
16173
|
|
|
16125
|
-
const comboboxCss = "@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*/.sc-calcite-combobox: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*/.calcite-animate.sc-calcite-combobox{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-combobox{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-combobox{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-combobox{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-combobox{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-combobox:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-combobox:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-combobox-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-combobox-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-combobox-h{position:relative;display:block}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-combobox-h[disabled] .sc-calcite-combobox-s>[calcite-hydrated][disabled],[disabled].sc-calcite-combobox-h [calcite-hydrated][disabled].sc-calcite-combobox{opacity:1}/*!@:host([scale=s])*/[scale=s].sc-calcite-combobox-h{font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-combobox-h{font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-combobox-h{font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}/*!@.wrapper*/.wrapper.sc-calcite-combobox{display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}/*!@:host(:focus-within) .wrapper, \n.wrapper--active*/.sc-calcite-combobox-h:focus-within .wrapper.sc-calcite-combobox,.wrapper--active.sc-calcite-combobox{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.wrapper--single*/.wrapper--single.sc-calcite-combobox{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}/*!@.grid-input*/.grid-input.sc-calcite-combobox{display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}/*!@.input*/.input.sc-calcite-combobox{flex-grow:1;-webkit-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-inline-size:120px;margin-block-end:var(--calcite-combobox-item-spacing-unit-s)}/*!@.input:focus*/.input.sc-calcite-combobox:focus{outline:2px solid transparent;outline-offset:2px}/*!@.input--transparent*/.input--transparent.sc-calcite-combobox{opacity:0}/*!@.input--single*/.input--single.sc-calcite-combobox{margin-block:0px;padding:0px}/*!@.wrapper--active .input-single*/.wrapper--active.sc-calcite-combobox .input-single.sc-calcite-combobox{cursor:text}/*!@.input--hidden*/.input--hidden.sc-calcite-combobox{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}/*!@.input--icon*/.input--icon.sc-calcite-combobox{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}/*!@.input-wrap*/.input-wrap.sc-calcite-combobox{display:flex;flex-grow:1}/*!@.input-wrap--single*/.input-wrap--single.sc-calcite-combobox{flex:1 1 0%;overflow:hidden}/*!@.label*/.label.sc-calcite-combobox{pointer-events:none;display:flex;max-inline-size:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}/*!@.label--icon*/.label--icon.sc-calcite-combobox{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}/*!@.icon-end, \n.icon-start*/.icon-end.sc-calcite-combobox,.icon-start.sc-calcite-combobox{display:flex;inline-size:1rem;cursor:pointer;align-items:center}/*!@.icon-end*/.icon-end.sc-calcite-combobox{flex:none}/*!@.floating-ui-container*/.floating-ui-container.sc-calcite-combobox{display:block;position:absolute;z-index:900;
|
|
16174
|
+
const comboboxCss = "@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*/.sc-calcite-combobox: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*/.calcite-animate.sc-calcite-combobox{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-combobox{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-combobox{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-combobox{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-combobox{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-combobox:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-combobox:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-combobox-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-combobox-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-combobox-h{position:relative;display:block}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-combobox-h[disabled] .sc-calcite-combobox-s>[calcite-hydrated][disabled],[disabled].sc-calcite-combobox-h [calcite-hydrated][disabled].sc-calcite-combobox{opacity:1}/*!@:host([scale=s])*/[scale=s].sc-calcite-combobox-h{font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-combobox-h{font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-combobox-h{font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}/*!@.wrapper*/.wrapper.sc-calcite-combobox{display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}/*!@:host(:focus-within) .wrapper, \n.wrapper--active*/.sc-calcite-combobox-h:focus-within .wrapper.sc-calcite-combobox,.wrapper--active.sc-calcite-combobox{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.wrapper--single*/.wrapper--single.sc-calcite-combobox{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}/*!@.grid-input*/.grid-input.sc-calcite-combobox{display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}/*!@.input*/.input.sc-calcite-combobox{flex-grow:1;-webkit-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-inline-size:120px;margin-block-end:var(--calcite-combobox-item-spacing-unit-s)}/*!@.input:focus*/.input.sc-calcite-combobox:focus{outline:2px solid transparent;outline-offset:2px}/*!@.input--transparent*/.input--transparent.sc-calcite-combobox{opacity:0}/*!@.input--single*/.input--single.sc-calcite-combobox{margin-block:0px;padding:0px}/*!@.wrapper--active .input-single*/.wrapper--active.sc-calcite-combobox .input-single.sc-calcite-combobox{cursor:text}/*!@.input--hidden*/.input--hidden.sc-calcite-combobox{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}/*!@.input--icon*/.input--icon.sc-calcite-combobox{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}/*!@.input-wrap*/.input-wrap.sc-calcite-combobox{display:flex;flex-grow:1}/*!@.input-wrap--single*/.input-wrap--single.sc-calcite-combobox{flex:1 1 0%;overflow:hidden}/*!@.label*/.label.sc-calcite-combobox{pointer-events:none;display:flex;max-inline-size:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}/*!@.label--icon*/.label--icon.sc-calcite-combobox{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}/*!@.icon-end, \n.icon-start*/.icon-end.sc-calcite-combobox,.icon-start.sc-calcite-combobox{display:flex;inline-size:1rem;cursor:pointer;align-items:center}/*!@.icon-end*/.icon-end.sc-calcite-combobox{flex:none}/*!@.floating-ui-container*/.floating-ui-container.sc-calcite-combobox{display:block;position:absolute;z-index:900;visibility:hidden;pointer-events:none;inline-size:0;block-size:0;overflow:hidden}/*!@.floating-ui-container .calcite-floating-ui-anim*/.floating-ui-container.sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{position:relative;transition:var(--calcite-floating-ui-transition);visibility:hidden;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}/*!@.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim*/.floating-ui-container[data-placement^=bottom].sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{transform:translateY(-5px)}/*!@.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim*/.floating-ui-container[data-placement^=top].sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{transform:translateY(5px)}/*!@.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim*/.floating-ui-container[data-placement^=left].sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{transform:translateX(5px)}/*!@.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim*/.floating-ui-container[data-placement^=right].sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{transform:translateX(-5px)}/*!@.floating-ui-container[data-placement] .calcite-floating-ui-anim--active*/.floating-ui-container[data-placement].sc-calcite-combobox .calcite-floating-ui-anim--active.sc-calcite-combobox{opacity:1;visibility:visible;transform:translate(0)}/*!@.floating-ui-container--active*/.floating-ui-container--active.sc-calcite-combobox{pointer-events:initial;visibility:visible;inline-size:unset;block-size:unset;overflow:unset}@media (forced-colors: active){/*!@.wrapper,\n.floating-ui-container--active*/.wrapper.sc-calcite-combobox,.floating-ui-container--active.sc-calcite-combobox{border:1px solid canvasText}}/*!@.screen-readers-only*/.screen-readers-only.sc-calcite-combobox{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}/*!@.list-container*/.list-container.sc-calcite-combobox{max-block-size:45vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}/*!@.list*/.list.sc-calcite-combobox{margin:0px;display:block;padding:0px}/*!@.list--hide*/.list--hide.sc-calcite-combobox{block-size:0px;overflow:hidden}/*!@.chip*/.chip.sc-calcite-combobox{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-inline-size:100%}/*!@.chip--active*/.chip--active.sc-calcite-combobox{background-color:var(--calcite-ui-foreground-3)}/*!@.item*/.item.sc-calcite-combobox{display:block}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-combobox-s>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}";
|
|
16126
16175
|
|
|
16127
16176
|
const isGroup = (el) => el.tagName === ComboboxItemGroup$1;
|
|
16128
16177
|
const itemUidPrefix = "combobox-item-";
|
|
@@ -16220,7 +16269,6 @@ class Combobox {
|
|
|
16220
16269
|
// Private Methods
|
|
16221
16270
|
//
|
|
16222
16271
|
// --------------------------------------------------------------------------
|
|
16223
|
-
this.debouncedReposition = debounce(() => this.reposition(), repositionDebounceTimeout);
|
|
16224
16272
|
this.setFilteredPlacements = () => {
|
|
16225
16273
|
const { el, flipPlacements } = this;
|
|
16226
16274
|
this.filteredFlipPlacements = flipPlacements
|
|
@@ -16352,11 +16400,11 @@ class Combobox {
|
|
|
16352
16400
|
if (!listContainerEl || !open) {
|
|
16353
16401
|
return;
|
|
16354
16402
|
}
|
|
16355
|
-
await this.
|
|
16403
|
+
await this.reposition(true);
|
|
16356
16404
|
const maxScrollerHeight = this.getMaxScrollerHeight();
|
|
16357
16405
|
listContainerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
|
16358
16406
|
listContainerEl.style.minWidth = `${referenceEl.clientWidth}px`;
|
|
16359
|
-
await this.
|
|
16407
|
+
await this.reposition(true);
|
|
16360
16408
|
};
|
|
16361
16409
|
this.calciteChipDismissHandler = (event, comboboxItem) => {
|
|
16362
16410
|
this.open = false;
|
|
@@ -16491,6 +16539,9 @@ class Combobox {
|
|
|
16491
16539
|
this.open = value;
|
|
16492
16540
|
}
|
|
16493
16541
|
openHandler(value) {
|
|
16542
|
+
if (!value) {
|
|
16543
|
+
updateAfterClose(this.floatingEl);
|
|
16544
|
+
}
|
|
16494
16545
|
if (this.disabled) {
|
|
16495
16546
|
this.active = false;
|
|
16496
16547
|
this.open = false;
|
|
@@ -16509,7 +16560,7 @@ class Combobox {
|
|
|
16509
16560
|
this.setMaxScrollerHeight();
|
|
16510
16561
|
}
|
|
16511
16562
|
overlayPositioningHandler() {
|
|
16512
|
-
this.
|
|
16563
|
+
this.reposition(true);
|
|
16513
16564
|
}
|
|
16514
16565
|
valueHandler(value) {
|
|
16515
16566
|
if (!this.internalValueChangeFlag) {
|
|
@@ -16528,7 +16579,7 @@ class Combobox {
|
|
|
16528
16579
|
}
|
|
16529
16580
|
flipPlacementsHandler() {
|
|
16530
16581
|
this.setFilteredPlacements();
|
|
16531
|
-
this.
|
|
16582
|
+
this.reposition(true);
|
|
16532
16583
|
}
|
|
16533
16584
|
//--------------------------------------------------------------------------
|
|
16534
16585
|
//
|
|
@@ -16555,17 +16606,21 @@ class Combobox {
|
|
|
16555
16606
|
// Public Methods
|
|
16556
16607
|
//
|
|
16557
16608
|
//--------------------------------------------------------------------------
|
|
16558
|
-
/**
|
|
16559
|
-
|
|
16609
|
+
/**
|
|
16610
|
+
* Updates the position of the component.
|
|
16611
|
+
*
|
|
16612
|
+
* @param delayed
|
|
16613
|
+
*/
|
|
16614
|
+
async reposition(delayed = false) {
|
|
16560
16615
|
const { floatingEl, referenceEl, placement, overlayPositioning, filteredFlipPlacements } = this;
|
|
16561
|
-
return
|
|
16616
|
+
return reposition(this, {
|
|
16562
16617
|
floatingEl,
|
|
16563
16618
|
referenceEl,
|
|
16564
16619
|
overlayPositioning,
|
|
16565
16620
|
placement,
|
|
16566
16621
|
flipPlacements: filteredFlipPlacements,
|
|
16567
16622
|
type: "menu"
|
|
16568
|
-
});
|
|
16623
|
+
}, delayed);
|
|
16569
16624
|
}
|
|
16570
16625
|
/** Sets focus on the component. */
|
|
16571
16626
|
async setFocus() {
|
|
@@ -16589,7 +16644,7 @@ class Combobox {
|
|
|
16589
16644
|
connectForm(this);
|
|
16590
16645
|
connectOpenCloseComponent(this);
|
|
16591
16646
|
this.setFilteredPlacements();
|
|
16592
|
-
this.
|
|
16647
|
+
this.reposition(true);
|
|
16593
16648
|
if (this.active) {
|
|
16594
16649
|
this.activeHandler(this.active);
|
|
16595
16650
|
}
|
|
@@ -16602,11 +16657,11 @@ class Combobox {
|
|
|
16602
16657
|
}
|
|
16603
16658
|
componentDidLoad() {
|
|
16604
16659
|
afterConnectDefaultValueSet(this, this.getValue());
|
|
16605
|
-
this.
|
|
16660
|
+
this.reposition(true);
|
|
16606
16661
|
}
|
|
16607
16662
|
componentDidRender() {
|
|
16608
16663
|
if (this.el.offsetHeight !== this.inputHeight) {
|
|
16609
|
-
this.
|
|
16664
|
+
this.reposition(true);
|
|
16610
16665
|
this.inputHeight = this.el.offsetHeight;
|
|
16611
16666
|
}
|
|
16612
16667
|
updateHostInteraction(this);
|
|
@@ -18442,7 +18497,7 @@ const SLOTS$k = {
|
|
|
18442
18497
|
dropdownTrigger: "dropdown-trigger"
|
|
18443
18498
|
};
|
|
18444
18499
|
|
|
18445
|
-
const dropdownCss = "@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*/.sc-calcite-dropdown: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*/.calcite-animate.sc-calcite-dropdown{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-dropdown{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-dropdown{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-dropdown{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-dropdown{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-dropdown:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-dropdown:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-dropdown-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-dropdown-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-dropdown-h{display:inline-flex;flex:0 1 auto}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-dropdown-h[disabled] .sc-calcite-dropdown-s>[calcite-hydrated][disabled],[disabled].sc-calcite-dropdown-h [calcite-hydrated][disabled].sc-calcite-dropdown{opacity:1}/*!@:host .calcite-dropdown-wrapper*/.sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown{display:block;position:absolute;z-index:900;
|
|
18500
|
+
const dropdownCss = "@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*/.sc-calcite-dropdown: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*/.calcite-animate.sc-calcite-dropdown{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-dropdown{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-dropdown{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-dropdown{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-dropdown{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-dropdown:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-dropdown:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-dropdown-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-dropdown-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-dropdown-h{display:inline-flex;flex:0 1 auto}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-dropdown-h[disabled] .sc-calcite-dropdown-s>[calcite-hydrated][disabled],[disabled].sc-calcite-dropdown-h [calcite-hydrated][disabled].sc-calcite-dropdown{opacity:1}/*!@:host .calcite-dropdown-wrapper*/.sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown{display:block;position:absolute;z-index:900;visibility:hidden;pointer-events:none;inline-size:0;block-size:0;overflow:hidden}/*!@.calcite-dropdown-wrapper .calcite-floating-ui-anim*/.calcite-dropdown-wrapper.sc-calcite-dropdown .calcite-floating-ui-anim.sc-calcite-dropdown{position:relative;transition:var(--calcite-floating-ui-transition);visibility:hidden;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}/*!@.calcite-dropdown-wrapper[data-placement^=bottom] .calcite-floating-ui-anim*/.calcite-dropdown-wrapper[data-placement^=bottom].sc-calcite-dropdown .calcite-floating-ui-anim.sc-calcite-dropdown{transform:translateY(-5px)}/*!@.calcite-dropdown-wrapper[data-placement^=top] .calcite-floating-ui-anim*/.calcite-dropdown-wrapper[data-placement^=top].sc-calcite-dropdown .calcite-floating-ui-anim.sc-calcite-dropdown{transform:translateY(5px)}/*!@.calcite-dropdown-wrapper[data-placement^=left] .calcite-floating-ui-anim*/.calcite-dropdown-wrapper[data-placement^=left].sc-calcite-dropdown .calcite-floating-ui-anim.sc-calcite-dropdown{transform:translateX(5px)}/*!@.calcite-dropdown-wrapper[data-placement^=right] .calcite-floating-ui-anim*/.calcite-dropdown-wrapper[data-placement^=right].sc-calcite-dropdown .calcite-floating-ui-anim.sc-calcite-dropdown{transform:translateX(-5px)}/*!@.calcite-dropdown-wrapper[data-placement] .calcite-floating-ui-anim--active*/.calcite-dropdown-wrapper[data-placement].sc-calcite-dropdown .calcite-floating-ui-anim--active.sc-calcite-dropdown{opacity:1;visibility:visible;transform:translate(0)}/*!@:host([open]) .calcite-dropdown-wrapper*/[open].sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown{pointer-events:initial;visibility:visible;inline-size:unset;block-size:unset;overflow:unset}/*!@:host .calcite-dropdown-content*/.sc-calcite-dropdown-h .calcite-dropdown-content.sc-calcite-dropdown{max-block-size:45vh;inline-size:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}/*!@.calcite-dropdown-trigger-container*/.calcite-dropdown-trigger-container.sc-calcite-dropdown{position:relative;display:flex;flex:1 1 auto}@media (forced-colors: active){/*!@:host([open]) .calcite-dropdown-wrapper*/[open].sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown{border:1px solid canvasText}}/*!@:host([width=s])*/[width=s].sc-calcite-dropdown-h{--calcite-dropdown-width:12rem}/*!@:host([width=m])*/[width=m].sc-calcite-dropdown-h{--calcite-dropdown-width:14rem}/*!@:host([width=l])*/[width=l].sc-calcite-dropdown-h{--calcite-dropdown-width:16rem}";
|
|
18446
18501
|
|
|
18447
18502
|
/**
|
|
18448
18503
|
* @slot - A slot for adding `calcite-dropdown-group` components. Every `calcite-dropdown-item` must have a parent `calcite-dropdown-group`, even if the `groupTitle` property is not set.
|
|
@@ -18518,7 +18573,6 @@ class Dropdown {
|
|
|
18518
18573
|
// Private Methods
|
|
18519
18574
|
//
|
|
18520
18575
|
//--------------------------------------------------------------------------
|
|
18521
|
-
this.debouncedReposition = debounce(() => this.reposition(), repositionDebounceTimeout);
|
|
18522
18576
|
this.slotChangeHandler = (event) => {
|
|
18523
18577
|
this.defaultAssignedElements = event.target.assignedElements({
|
|
18524
18578
|
flatten: true
|
|
@@ -18535,14 +18589,14 @@ class Dropdown {
|
|
|
18535
18589
|
this.triggers = event.target.assignedElements({
|
|
18536
18590
|
flatten: true
|
|
18537
18591
|
});
|
|
18538
|
-
this.
|
|
18592
|
+
this.reposition(true);
|
|
18539
18593
|
};
|
|
18540
18594
|
this.updateItems = () => {
|
|
18541
18595
|
this.items = this.groups
|
|
18542
18596
|
.map((group) => Array.from(group === null || group === void 0 ? void 0 : group.querySelectorAll("calcite-dropdown-item")))
|
|
18543
18597
|
.reduce((previousValue, currentValue) => [...previousValue, ...currentValue], []);
|
|
18544
18598
|
this.updateSelectedItems();
|
|
18545
|
-
this.
|
|
18599
|
+
this.reposition(true);
|
|
18546
18600
|
};
|
|
18547
18601
|
this.updateGroups = (event) => {
|
|
18548
18602
|
const groups = event.target
|
|
@@ -18575,10 +18629,10 @@ class Dropdown {
|
|
|
18575
18629
|
if (!scrollerEl) {
|
|
18576
18630
|
return;
|
|
18577
18631
|
}
|
|
18578
|
-
this.
|
|
18632
|
+
this.reposition(true);
|
|
18579
18633
|
const maxScrollerHeight = this.getMaxScrollerHeight();
|
|
18580
18634
|
scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
|
18581
|
-
this.
|
|
18635
|
+
this.reposition(true);
|
|
18582
18636
|
};
|
|
18583
18637
|
this.setScrollerAndTransitionEl = (el) => {
|
|
18584
18638
|
this.resizeObserver.observe(el);
|
|
@@ -18644,10 +18698,18 @@ class Dropdown {
|
|
|
18644
18698
|
}
|
|
18645
18699
|
openHandler(value) {
|
|
18646
18700
|
if (!this.disabled) {
|
|
18647
|
-
|
|
18701
|
+
if (value) {
|
|
18702
|
+
this.reposition(true);
|
|
18703
|
+
}
|
|
18704
|
+
else {
|
|
18705
|
+
updateAfterClose(this.floatingEl);
|
|
18706
|
+
}
|
|
18648
18707
|
this.active = value;
|
|
18649
18708
|
return;
|
|
18650
18709
|
}
|
|
18710
|
+
if (!value) {
|
|
18711
|
+
updateAfterClose(this.floatingEl);
|
|
18712
|
+
}
|
|
18651
18713
|
this.open = false;
|
|
18652
18714
|
}
|
|
18653
18715
|
handleDisabledChange(value) {
|
|
@@ -18657,16 +18719,16 @@ class Dropdown {
|
|
|
18657
18719
|
}
|
|
18658
18720
|
flipPlacementsHandler() {
|
|
18659
18721
|
this.setFilteredPlacements();
|
|
18660
|
-
this.
|
|
18722
|
+
this.reposition(true);
|
|
18661
18723
|
}
|
|
18662
18724
|
maxItemsHandler() {
|
|
18663
18725
|
this.setMaxScrollerHeight();
|
|
18664
18726
|
}
|
|
18665
18727
|
overlayPositioningHandler() {
|
|
18666
|
-
this.
|
|
18728
|
+
this.reposition(true);
|
|
18667
18729
|
}
|
|
18668
18730
|
placementHandler() {
|
|
18669
|
-
this.
|
|
18731
|
+
this.reposition(true);
|
|
18670
18732
|
}
|
|
18671
18733
|
//--------------------------------------------------------------------------
|
|
18672
18734
|
//
|
|
@@ -18677,7 +18739,7 @@ class Dropdown {
|
|
|
18677
18739
|
var _a;
|
|
18678
18740
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
18679
18741
|
this.setFilteredPlacements();
|
|
18680
|
-
this.
|
|
18742
|
+
this.reposition(true);
|
|
18681
18743
|
if (this.open) {
|
|
18682
18744
|
this.openHandler(this.open);
|
|
18683
18745
|
}
|
|
@@ -18687,7 +18749,7 @@ class Dropdown {
|
|
|
18687
18749
|
connectOpenCloseComponent(this);
|
|
18688
18750
|
}
|
|
18689
18751
|
componentDidLoad() {
|
|
18690
|
-
this.
|
|
18752
|
+
this.reposition(true);
|
|
18691
18753
|
}
|
|
18692
18754
|
componentDidRender() {
|
|
18693
18755
|
updateHostInteraction(this);
|
|
@@ -18712,17 +18774,21 @@ class Dropdown {
|
|
|
18712
18774
|
// Public Methods
|
|
18713
18775
|
//
|
|
18714
18776
|
//--------------------------------------------------------------------------
|
|
18715
|
-
/**
|
|
18716
|
-
|
|
18777
|
+
/**
|
|
18778
|
+
* Updates the position of the component.
|
|
18779
|
+
*
|
|
18780
|
+
* @param delayed
|
|
18781
|
+
*/
|
|
18782
|
+
async reposition(delayed = false) {
|
|
18717
18783
|
const { floatingEl, referenceEl, placement, overlayPositioning, filteredFlipPlacements } = this;
|
|
18718
|
-
return
|
|
18784
|
+
return reposition(this, {
|
|
18719
18785
|
floatingEl,
|
|
18720
18786
|
referenceEl,
|
|
18721
18787
|
overlayPositioning,
|
|
18722
18788
|
placement,
|
|
18723
18789
|
flipPlacements: filteredFlipPlacements,
|
|
18724
18790
|
type: "menu"
|
|
18725
|
-
});
|
|
18791
|
+
}, delayed);
|
|
18726
18792
|
}
|
|
18727
18793
|
closeCalciteDropdownOnClick(event) {
|
|
18728
18794
|
if (!isPrimaryPointerButton(event) || !this.open || event.composedPath().includes(this.el)) {
|
|
@@ -21167,7 +21233,7 @@ const CSS$u = {
|
|
|
21167
21233
|
menuActive: "menu-container--active"
|
|
21168
21234
|
};
|
|
21169
21235
|
|
|
21170
|
-
const inputDatePickerCss = "@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*/.sc-calcite-input-date-picker: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*/.calcite-animate.sc-calcite-input-date-picker{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-input-date-picker{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-input-date-picker{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-input-date-picker{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-input-date-picker{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-input-date-picker:root{--calcite-internal-duration-factor:0.01}}/*!@:host*/.sc-calcite-input-date-picker-h{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}/*!@:root*/.sc-calcite-input-date-picker:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-input-date-picker-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-input-date-picker-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-input-date-picker-h{position:relative;display:inline-block;inline-size:100%;overflow:visible;vertical-align:top;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}/*!@:host .menu-container .calcite-floating-ui-anim*/.sc-calcite-input-date-picker-h .menu-container.sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{position:relative;transition:var(--calcite-floating-ui-transition);visibility:hidden;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 .menu-container[data-placement^=bottom] .calcite-floating-ui-anim*/.sc-calcite-input-date-picker-h .menu-container[data-placement^=bottom].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateY(-5px)}/*!@:host .menu-container[data-placement^=top] .calcite-floating-ui-anim*/.sc-calcite-input-date-picker-h .menu-container[data-placement^=top].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateY(5px)}/*!@:host .menu-container[data-placement^=left] .calcite-floating-ui-anim*/.sc-calcite-input-date-picker-h .menu-container[data-placement^=left].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateX(5px)}/*!@:host .menu-container[data-placement^=right] .calcite-floating-ui-anim*/.sc-calcite-input-date-picker-h .menu-container[data-placement^=right].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateX(-5px)}/*!@:host .menu-container[data-placement] .calcite-floating-ui-anim--active*/.sc-calcite-input-date-picker-h .menu-container[data-placement].sc-calcite-input-date-picker .calcite-floating-ui-anim--active.sc-calcite-input-date-picker{opacity:1;visibility:visible;transform:translate(0)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-input-date-picker-h[disabled] .sc-calcite-input-date-picker-s>[calcite-hydrated][disabled],[disabled].sc-calcite-input-date-picker-h [calcite-hydrated][disabled].sc-calcite-input-date-picker{opacity:1}/*!@.calendar-picker-wrapper*/.calendar-picker-wrapper.sc-calcite-input-date-picker{position:static;inline-size:100%;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transform:translate3d(0, 0, 0)}/*!@.input-wrapper*/.input-wrapper.sc-calcite-input-date-picker{position:relative}/*!@:host([range]) .input-container*/[range].sc-calcite-input-date-picker-h .input-container.sc-calcite-input-date-picker{display:flex}/*!@:host([range]) .input-wrapper*/[range].sc-calcite-input-date-picker-h .input-wrapper.sc-calcite-input-date-picker{flex:1 1 auto}/*!@:host([range]) .horizontal-arrow-container*/[range].sc-calcite-input-date-picker-h .horizontal-arrow-container.sc-calcite-input-date-picker{display:flex;align-items:center;border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-block:0px;padding-inline:0.25rem}/*!@:host([range][layout=vertical]) .input-wrapper*/[range][layout=vertical].sc-calcite-input-date-picker-h .input-wrapper.sc-calcite-input-date-picker{inline-size:100%}/*!@:host([range][layout=vertical]) .input-container*/[range][layout=vertical].sc-calcite-input-date-picker-h .input-container.sc-calcite-input-date-picker{flex-direction:column;align-items:flex-start}/*!@:host([range][layout=vertical]) .calendar-picker-wrapper--end*/[range][layout=vertical].sc-calcite-input-date-picker-h .calendar-picker-wrapper--end.sc-calcite-input-date-picker{transform:translate3d(0, 0, 0)}/*!@:host([range][layout=vertical]) .vertical-arrow-container*/[range][layout=vertical].sc-calcite-input-date-picker-h .vertical-arrow-container.sc-calcite-input-date-picker{inset-block-start:1.5rem;position:absolute;z-index:1;margin-inline:1px;background-color:var(--calcite-ui-foreground-1);padding-inline:0.625rem;inset-inline-start:0}/*!@:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper*/[scale=s][range].sc-calcite-input-date-picker-h:not([layout=vertical]) .calendar-picker-wrapper.sc-calcite-input-date-picker{inline-size:216px}/*!@:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper*/[scale=m][range].sc-calcite-input-date-picker-h:not([layout=vertical]) .calendar-picker-wrapper.sc-calcite-input-date-picker{inline-size:286px}/*!@:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper*/[scale=l][range].sc-calcite-input-date-picker-h:not([layout=vertical]) .calendar-picker-wrapper.sc-calcite-input-date-picker{inline-size:398px}/*!@.menu-container*/.menu-container.sc-calcite-input-date-picker{display:block;position:absolute;z-index:900;transform:scale(0);inline-size:0;block-size:0;overflow:hidden;pointer-events:none;visibility:hidden}/*!@.menu-container .calcite-floating-ui-anim*/.menu-container.sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{position:relative;transition:var(--calcite-floating-ui-transition);visibility:hidden;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}/*!@.menu-container[data-placement^=bottom] .calcite-floating-ui-anim*/.menu-container[data-placement^=bottom].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateY(-5px)}/*!@.menu-container[data-placement^=top] .calcite-floating-ui-anim*/.menu-container[data-placement^=top].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateY(5px)}/*!@.menu-container[data-placement^=left] .calcite-floating-ui-anim*/.menu-container[data-placement^=left].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateX(5px)}/*!@.menu-container[data-placement^=right] .calcite-floating-ui-anim*/.menu-container[data-placement^=right].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateX(-5px)}/*!@.menu-container[data-placement] .calcite-floating-ui-anim--active*/.menu-container[data-placement].sc-calcite-input-date-picker .calcite-floating-ui-anim--active.sc-calcite-input-date-picker{opacity:1;visibility:visible;transform:translate(0)}/*!@:host([open]) .menu-container*/[open].sc-calcite-input-date-picker-h .menu-container.sc-calcite-input-date-picker{pointer-events:initial;visibility:visible;inline-size:unset;block-size:unset;overflow:unset}/*!@.menu-container--active*/.menu-container--active.sc-calcite-input-date-picker{pointer-events:initial;visibility:visible;inline-size:unset;block-size:unset;overflow:unset}/*!@.input .calcite-input__wrapper*/.input.sc-calcite-input-date-picker .calcite-input__wrapper.sc-calcite-input-date-picker{margin-block-start:0px}/*!@:host([range][layout=vertical][scale=m]) .vertical-arrow-container*/[range][layout=vertical][scale=m].sc-calcite-input-date-picker-h .vertical-arrow-container.sc-calcite-input-date-picker{inset-block-start:1.5rem;padding-inline-start:0.75rem}/*!@:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon*/[range][layout=vertical][scale=m].sc-calcite-input-date-picker-h .vertical-arrow-container.sc-calcite-input-date-picker calcite-icon.sc-calcite-input-date-picker{block-size:0.75rem;inline-size:0.75rem;min-inline-size:0px}/*!@:host([range][layout=vertical][scale=l]) .vertical-arrow-container*/[range][layout=vertical][scale=l].sc-calcite-input-date-picker-h .vertical-arrow-container.sc-calcite-input-date-picker{inset-block-start:2.25rem;padding-inline:0.875rem}/*!@:host([range][layout=vertical][open]) .vertical-arrow-container*/[range][layout=vertical][open].sc-calcite-input-date-picker-h .vertical-arrow-container.sc-calcite-input-date-picker{display:none}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-input-date-picker-s>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}";
|
|
21236
|
+
const inputDatePickerCss = "@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*/.sc-calcite-input-date-picker: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*/.calcite-animate.sc-calcite-input-date-picker{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-input-date-picker{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-input-date-picker{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-input-date-picker{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-input-date-picker{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-input-date-picker:root{--calcite-internal-duration-factor:0.01}}/*!@:host*/.sc-calcite-input-date-picker-h{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}/*!@:root*/.sc-calcite-input-date-picker:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-input-date-picker-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-input-date-picker-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-input-date-picker-h{position:relative;display:inline-block;inline-size:100%;overflow:visible;vertical-align:top;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}/*!@:host .menu-container .calcite-floating-ui-anim*/.sc-calcite-input-date-picker-h .menu-container.sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{position:relative;transition:var(--calcite-floating-ui-transition);visibility:hidden;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 .menu-container[data-placement^=bottom] .calcite-floating-ui-anim*/.sc-calcite-input-date-picker-h .menu-container[data-placement^=bottom].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateY(-5px)}/*!@:host .menu-container[data-placement^=top] .calcite-floating-ui-anim*/.sc-calcite-input-date-picker-h .menu-container[data-placement^=top].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateY(5px)}/*!@:host .menu-container[data-placement^=left] .calcite-floating-ui-anim*/.sc-calcite-input-date-picker-h .menu-container[data-placement^=left].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateX(5px)}/*!@:host .menu-container[data-placement^=right] .calcite-floating-ui-anim*/.sc-calcite-input-date-picker-h .menu-container[data-placement^=right].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateX(-5px)}/*!@:host .menu-container[data-placement] .calcite-floating-ui-anim--active*/.sc-calcite-input-date-picker-h .menu-container[data-placement].sc-calcite-input-date-picker .calcite-floating-ui-anim--active.sc-calcite-input-date-picker{opacity:1;visibility:visible;transform:translate(0)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-input-date-picker-h[disabled] .sc-calcite-input-date-picker-s>[calcite-hydrated][disabled],[disabled].sc-calcite-input-date-picker-h [calcite-hydrated][disabled].sc-calcite-input-date-picker{opacity:1}/*!@.calendar-picker-wrapper*/.calendar-picker-wrapper.sc-calcite-input-date-picker{position:static;inline-size:100%;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transform:translate3d(0, 0, 0)}/*!@.input-wrapper*/.input-wrapper.sc-calcite-input-date-picker{position:relative}/*!@:host([range]) .input-container*/[range].sc-calcite-input-date-picker-h .input-container.sc-calcite-input-date-picker{display:flex}/*!@:host([range]) .input-wrapper*/[range].sc-calcite-input-date-picker-h .input-wrapper.sc-calcite-input-date-picker{flex:1 1 auto}/*!@:host([range]) .horizontal-arrow-container*/[range].sc-calcite-input-date-picker-h .horizontal-arrow-container.sc-calcite-input-date-picker{display:flex;align-items:center;border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-block:0px;padding-inline:0.25rem}/*!@:host([range][layout=vertical]) .input-wrapper*/[range][layout=vertical].sc-calcite-input-date-picker-h .input-wrapper.sc-calcite-input-date-picker{inline-size:100%}/*!@:host([range][layout=vertical]) .input-container*/[range][layout=vertical].sc-calcite-input-date-picker-h .input-container.sc-calcite-input-date-picker{flex-direction:column;align-items:flex-start}/*!@:host([range][layout=vertical]) .calendar-picker-wrapper--end*/[range][layout=vertical].sc-calcite-input-date-picker-h .calendar-picker-wrapper--end.sc-calcite-input-date-picker{transform:translate3d(0, 0, 0)}/*!@:host([range][layout=vertical]) .vertical-arrow-container*/[range][layout=vertical].sc-calcite-input-date-picker-h .vertical-arrow-container.sc-calcite-input-date-picker{inset-block-start:1.5rem;position:absolute;z-index:1;margin-inline:1px;background-color:var(--calcite-ui-foreground-1);padding-inline:0.625rem;inset-inline-start:0}/*!@:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper*/[scale=s][range].sc-calcite-input-date-picker-h:not([layout=vertical]) .calendar-picker-wrapper.sc-calcite-input-date-picker{inline-size:216px}/*!@:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper*/[scale=m][range].sc-calcite-input-date-picker-h:not([layout=vertical]) .calendar-picker-wrapper.sc-calcite-input-date-picker{inline-size:286px}/*!@:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper*/[scale=l][range].sc-calcite-input-date-picker-h:not([layout=vertical]) .calendar-picker-wrapper.sc-calcite-input-date-picker{inline-size:398px}/*!@.menu-container*/.menu-container.sc-calcite-input-date-picker{display:block;position:absolute;z-index:900;inline-size:0;block-size:0;overflow:hidden;pointer-events:none;visibility:hidden}/*!@.menu-container .calcite-floating-ui-anim*/.menu-container.sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{position:relative;transition:var(--calcite-floating-ui-transition);visibility:hidden;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}/*!@.menu-container[data-placement^=bottom] .calcite-floating-ui-anim*/.menu-container[data-placement^=bottom].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateY(-5px)}/*!@.menu-container[data-placement^=top] .calcite-floating-ui-anim*/.menu-container[data-placement^=top].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateY(5px)}/*!@.menu-container[data-placement^=left] .calcite-floating-ui-anim*/.menu-container[data-placement^=left].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateX(5px)}/*!@.menu-container[data-placement^=right] .calcite-floating-ui-anim*/.menu-container[data-placement^=right].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateX(-5px)}/*!@.menu-container[data-placement] .calcite-floating-ui-anim--active*/.menu-container[data-placement].sc-calcite-input-date-picker .calcite-floating-ui-anim--active.sc-calcite-input-date-picker{opacity:1;visibility:visible;transform:translate(0)}/*!@:host([open]) .menu-container*/[open].sc-calcite-input-date-picker-h .menu-container.sc-calcite-input-date-picker{pointer-events:initial;visibility:visible;inline-size:unset;block-size:unset;overflow:unset}/*!@.menu-container--active*/.menu-container--active.sc-calcite-input-date-picker{pointer-events:initial;visibility:visible;inline-size:unset;block-size:unset;overflow:unset}/*!@.input .calcite-input__wrapper*/.input.sc-calcite-input-date-picker .calcite-input__wrapper.sc-calcite-input-date-picker{margin-block-start:0px}/*!@:host([range][layout=vertical][scale=m]) .vertical-arrow-container*/[range][layout=vertical][scale=m].sc-calcite-input-date-picker-h .vertical-arrow-container.sc-calcite-input-date-picker{inset-block-start:1.5rem;padding-inline-start:0.75rem}/*!@:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon*/[range][layout=vertical][scale=m].sc-calcite-input-date-picker-h .vertical-arrow-container.sc-calcite-input-date-picker calcite-icon.sc-calcite-input-date-picker{block-size:0.75rem;inline-size:0.75rem;min-inline-size:0px}/*!@:host([range][layout=vertical][scale=l]) .vertical-arrow-container*/[range][layout=vertical][scale=l].sc-calcite-input-date-picker-h .vertical-arrow-container.sc-calcite-input-date-picker{inset-block-start:2.25rem;padding-inline:0.875rem}/*!@:host([range][layout=vertical][open]) .vertical-arrow-container*/[range][layout=vertical][open].sc-calcite-input-date-picker-h .vertical-arrow-container.sc-calcite-input-date-picker{display:none}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-input-date-picker-s>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}";
|
|
21171
21237
|
|
|
21172
21238
|
class InputDatePicker {
|
|
21173
21239
|
constructor(hostRef) {
|
|
@@ -21261,7 +21327,6 @@ class InputDatePicker {
|
|
|
21261
21327
|
// Private Methods
|
|
21262
21328
|
//
|
|
21263
21329
|
//--------------------------------------------------------------------------
|
|
21264
|
-
this.debouncedReposition = debounce(() => this.reposition(), repositionDebounceTimeout);
|
|
21265
21330
|
this.setFilteredPlacements = () => {
|
|
21266
21331
|
const { el, flipPlacements } = this;
|
|
21267
21332
|
this.filteredFlipPlacements = flipPlacements
|
|
@@ -21406,7 +21471,7 @@ class InputDatePicker {
|
|
|
21406
21471
|
}
|
|
21407
21472
|
flipPlacementsHandler() {
|
|
21408
21473
|
this.setFilteredPlacements();
|
|
21409
|
-
this.
|
|
21474
|
+
this.reposition(true);
|
|
21410
21475
|
}
|
|
21411
21476
|
onMinChanged(min) {
|
|
21412
21477
|
if (min) {
|
|
@@ -21424,13 +21489,21 @@ class InputDatePicker {
|
|
|
21424
21489
|
openHandler(value) {
|
|
21425
21490
|
this.active = value;
|
|
21426
21491
|
if (this.disabled || this.readOnly) {
|
|
21492
|
+
if (!value) {
|
|
21493
|
+
updateAfterClose(this.floatingEl);
|
|
21494
|
+
}
|
|
21427
21495
|
this.open = false;
|
|
21428
21496
|
return;
|
|
21429
21497
|
}
|
|
21430
|
-
|
|
21498
|
+
if (value) {
|
|
21499
|
+
this.reposition(true);
|
|
21500
|
+
}
|
|
21501
|
+
else {
|
|
21502
|
+
updateAfterClose(this.floatingEl);
|
|
21503
|
+
}
|
|
21431
21504
|
}
|
|
21432
21505
|
overlayPositioningHandler() {
|
|
21433
|
-
this.
|
|
21506
|
+
this.reposition(true);
|
|
21434
21507
|
}
|
|
21435
21508
|
//--------------------------------------------------------------------------
|
|
21436
21509
|
//
|
|
@@ -21456,17 +21529,21 @@ class InputDatePicker {
|
|
|
21456
21529
|
var _a;
|
|
21457
21530
|
(_a = this.startInput) === null || _a === void 0 ? void 0 : _a.setFocus();
|
|
21458
21531
|
}
|
|
21459
|
-
/**
|
|
21460
|
-
|
|
21532
|
+
/**
|
|
21533
|
+
* Updates the position of the component.
|
|
21534
|
+
*
|
|
21535
|
+
* @param delayed
|
|
21536
|
+
*/
|
|
21537
|
+
async reposition(delayed = false) {
|
|
21461
21538
|
const { floatingEl, referenceEl, placement, overlayPositioning, filteredFlipPlacements } = this;
|
|
21462
|
-
return
|
|
21539
|
+
return reposition(this, {
|
|
21463
21540
|
floatingEl,
|
|
21464
21541
|
referenceEl,
|
|
21465
21542
|
overlayPositioning,
|
|
21466
21543
|
placement,
|
|
21467
21544
|
flipPlacements: filteredFlipPlacements,
|
|
21468
21545
|
type: "menu"
|
|
21469
|
-
});
|
|
21546
|
+
}, delayed);
|
|
21470
21547
|
}
|
|
21471
21548
|
// --------------------------------------------------------------------------
|
|
21472
21549
|
//
|
|
@@ -21504,7 +21581,7 @@ class InputDatePicker {
|
|
|
21504
21581
|
connectForm(this);
|
|
21505
21582
|
connectOpenCloseComponent(this);
|
|
21506
21583
|
this.setFilteredPlacements();
|
|
21507
|
-
this.
|
|
21584
|
+
this.reposition(true);
|
|
21508
21585
|
numberStringFormatter.numberFormatOptions = {
|
|
21509
21586
|
numberingSystem: this.numberingSystem,
|
|
21510
21587
|
locale: this.effectiveLocale,
|
|
@@ -21517,7 +21594,7 @@ class InputDatePicker {
|
|
|
21517
21594
|
this.onMaxChanged(this.max);
|
|
21518
21595
|
}
|
|
21519
21596
|
componentDidLoad() {
|
|
21520
|
-
this.
|
|
21597
|
+
this.reposition(true);
|
|
21521
21598
|
}
|
|
21522
21599
|
disconnectedCallback() {
|
|
21523
21600
|
disconnectLabel(this);
|
|
@@ -21792,7 +21869,7 @@ var StatusIconDefaults;
|
|
|
21792
21869
|
StatusIconDefaults["idle"] = "information";
|
|
21793
21870
|
})(StatusIconDefaults || (StatusIconDefaults = {}));
|
|
21794
21871
|
|
|
21795
|
-
const inputMessageCss = "@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*/.sc-calcite-input-message: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*/.calcite-animate.sc-calcite-input-message{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-input-message{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-input-message{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-input-message{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-input-message{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-input-message:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-input-message:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-input-message-h{display:none}/*!@:host([
|
|
21872
|
+
const inputMessageCss = "@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*/.sc-calcite-input-message: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*/.calcite-animate.sc-calcite-input-message{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-input-message{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-input-message{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-input-message{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-input-message{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-input-message:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-input-message:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-input-message-h{display:none}/*!@:host([scale=m]),\n:host([scale=l])*/[scale=m].sc-calcite-input-message-h,[scale=l].sc-calcite-input-message-h{--calcite-input-message-spacing-value:0.25rem}/*!@:host*/.sc-calcite-input-message-h{visibility:hidden;box-sizing:border-box;display:flex;block-size:0px;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);visibility:visible;height:auto;opacity:1;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@:host([scale=m]),\n:host([scale=l])*/[scale=m].sc-calcite-input-message-h,[scale=l].sc-calcite-input-message-h{margin-block-start:var(--calcite-input-message-spacing-value)}/*!@.calcite-input-message-icon*/.calcite-input-message-icon.sc-calcite-input-message{pointer-events:none;display:inline-flex;flex-shrink:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;margin-inline-end:0.5rem}/*!@:host([status=invalid]) .calcite-input-message-icon*/[status=invalid].sc-calcite-input-message-h .calcite-input-message-icon.sc-calcite-input-message{color:var(--calcite-ui-danger)}/*!@:host([status=warning]) .calcite-input-message-icon*/[status=warning].sc-calcite-input-message-h .calcite-input-message-icon.sc-calcite-input-message{color:var(--calcite-ui-warning)}/*!@:host([status=valid]) .calcite-input-message-icon*/[status=valid].sc-calcite-input-message-h .calcite-input-message-icon.sc-calcite-input-message{color:var(--calcite-ui-success)}/*!@:host([status=idle]) .calcite-input-message-icon*/[status=idle].sc-calcite-input-message-h .calcite-input-message-icon.sc-calcite-input-message{color:var(--calcite-ui-brand)}/*!@:host([status])*/[status].sc-calcite-input-message-h{color:var(--calcite-ui-text-1)}/*!@:host([status][scale=s])*/[status][scale=s].sc-calcite-input-message-h{font-size:var(--calcite-font-size--3);line-height:0.75rem}/*!@:host([status][scale=m])*/[status][scale=m].sc-calcite-input-message-h{margin-block-start:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([status][scale=l])*/[status][scale=l].sc-calcite-input-message-h{margin-block-start:0.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}";
|
|
21796
21873
|
|
|
21797
21874
|
/**
|
|
21798
21875
|
* @slot - A slot for adding text.
|
|
@@ -21805,7 +21882,12 @@ class InputMessage {
|
|
|
21805
21882
|
// Properties
|
|
21806
21883
|
//
|
|
21807
21884
|
//--------------------------------------------------------------------------
|
|
21808
|
-
/**
|
|
21885
|
+
/**
|
|
21886
|
+
* When `true`, the component is active.
|
|
21887
|
+
*
|
|
21888
|
+
* @deprecated use global `hidden` attribute instead.
|
|
21889
|
+
* @mdn [hidden](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden)
|
|
21890
|
+
*/
|
|
21809
21891
|
this.active = false;
|
|
21810
21892
|
/** Specifies the size of the component. */
|
|
21811
21893
|
this.scale = "m";
|
|
@@ -23203,7 +23285,9 @@ class InputTimePicker {
|
|
|
23203
23285
|
this.open = false;
|
|
23204
23286
|
return;
|
|
23205
23287
|
}
|
|
23206
|
-
|
|
23288
|
+
if (value) {
|
|
23289
|
+
this.reposition(true);
|
|
23290
|
+
}
|
|
23207
23291
|
}
|
|
23208
23292
|
handleDisabledAndReadOnlyChange(value) {
|
|
23209
23293
|
if (!value) {
|
|
@@ -23255,10 +23339,14 @@ class InputTimePicker {
|
|
|
23255
23339
|
var _a;
|
|
23256
23340
|
(_a = this.calciteInputEl) === null || _a === void 0 ? void 0 : _a.setFocus();
|
|
23257
23341
|
}
|
|
23258
|
-
/**
|
|
23259
|
-
|
|
23342
|
+
/**
|
|
23343
|
+
* Updates the position of the component.
|
|
23344
|
+
*
|
|
23345
|
+
* @param delayed
|
|
23346
|
+
*/
|
|
23347
|
+
async reposition(delayed = false) {
|
|
23260
23348
|
var _a;
|
|
23261
|
-
(_a = this.popoverEl) === null || _a === void 0 ? void 0 : _a.reposition();
|
|
23349
|
+
(_a = this.popoverEl) === null || _a === void 0 ? void 0 : _a.reposition(delayed);
|
|
23262
23350
|
}
|
|
23263
23351
|
onLabelClick() {
|
|
23264
23352
|
this.setFocus();
|
|
@@ -23788,7 +23876,7 @@ class ListItemGroup {
|
|
|
23788
23876
|
}; }
|
|
23789
23877
|
}
|
|
23790
23878
|
|
|
23791
|
-
const loaderCss = "@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*/.sc-calcite-loader: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*/.calcite-animate.sc-calcite-loader{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-loader{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-loader{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-loader{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-loader{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-loader:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-loader:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-loader-h{display:none}/*!@:host*/.sc-calcite-loader-h{position:relative;margin-inline:auto;display:none;align-items:center;justify-content:center;opacity:1;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-ui-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift calc(var(--calcite-internal-animation-timing-slow) * 2) alternate-reverse infinite linear;padding-block:var(--calcite-loader-padding, 4rem)}/*!@:host([scale=s])*/[scale=s].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem}/*!@:host([no-padding])*/[no-padding].sc-calcite-loader-h{padding-block:0px}/*!@:host*/.sc-calcite-loader-h{display:
|
|
23879
|
+
const loaderCss = "@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*/.sc-calcite-loader: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*/.calcite-animate.sc-calcite-loader{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-loader{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-loader{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-loader{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-loader{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-loader:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-loader:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-loader-h{display:none}/*!@:host*/.sc-calcite-loader-h{position:relative;margin-inline:auto;display:none;align-items:center;justify-content:center;opacity:1;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-ui-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift calc(var(--calcite-internal-animation-timing-slow) * 2) alternate-reverse infinite linear;padding-block:var(--calcite-loader-padding, 4rem)}/*!@:host([scale=s])*/[scale=s].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem}/*!@:host([no-padding])*/[no-padding].sc-calcite-loader-h{padding-block:0px}/*!@:host*/.sc-calcite-loader-h{display:flex}/*!@.loader__text*/.loader__text.sc-calcite-loader{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-ui-text-1);margin-block-start:calc(var(--calcite-loader-size) + 1.5rem)}/*!@.loader__percentage*/.loader__percentage.sc-calcite-loader{position:absolute;display:block;text-align:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);line-height:0.25;transform:scale(1, 1)}/*!@.loader__svgs*/.loader__svgs.sc-calcite-loader{position:absolute;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);transform:scale(1, 1)}/*!@.loader__svg*/.loader__svg.sc-calcite-loader{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);animation-iteration-count:infinite;animation-timing-function:linear;animation-name:loader-clockwise}@supports (display: grid){/*!@.loader__svg--1*/.loader__svg--1.sc-calcite-loader{animation-name:loader-offset-1}/*!@.loader__svg--2*/.loader__svg--2.sc-calcite-loader{animation-name:loader-offset-2}/*!@.loader__svg--3*/.loader__svg--3.sc-calcite-loader{animation-name:loader-offset-3}}/*!@:host([type=determinate])*/[type=determinate].sc-calcite-loader-h{animation:none;stroke:var(--calcite-ui-border-3)}/*!@:host([type=determinate]) .loader__svg--3*/[type=determinate].sc-calcite-loader-h .loader__svg--3.sc-calcite-loader{animation:none;stroke:var(--calcite-ui-brand);stroke-dasharray:150.79632;transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}/*!@:host([inline])*/[inline].sc-calcite-loader-h{position:relative;margin:0px;animation:none;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size-inline);min-block-size:var(--calcite-loader-size-inline);inline-size:var(--calcite-loader-size-inline);margin-inline-end:calc(var(--calcite-loader-size-inline) * 0.5);vertical-align:calc(var(--calcite-loader-size-inline) * -1 * 0.2);display:inline-block}/*!@:host([inline]) .loader__svgs*/[inline].sc-calcite-loader-h .loader__svgs.sc-calcite-loader{inset-block-start:0px;margin:0px;inset-inline-start:0;inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}/*!@:host([inline]) .loader__svg*/[inline].sc-calcite-loader-h .loader__svg.sc-calcite-loader{inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}/*!@:host([complete])*/[complete].sc-calcite-loader-h{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1000ms, transform var(--calcite-internal-animation-timing-medium) linear 1000ms}/*!@:host([complete]) .loader__svgs*/[complete].sc-calcite-loader-h .loader__svgs.sc-calcite-loader{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms, transform calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms}/*!@:host([complete]) .loader__percentage*/[complete].sc-calcite-loader-h .loader__percentage.sc-calcite-loader{color:var(--calcite-ui-brand);transform:scale(1.05, 1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear, transform var(--calcite-internal-animation-timing-medium) linear}/*!@.loader__svg--1*/.loader__svg--1.sc-calcite-loader{stroke-dasharray:27.9252444444% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 2.4)}@keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-83.7757333333%}100%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:-279.2524444444%}}/*!@.loader__svg--2*/.loader__svg--2.sc-calcite-loader{stroke-dasharray:55.8504888889% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 3.2)}@keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-97.7383555556%}100%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:-279.2524444444%}}/*!@.loader__svg--3*/.loader__svg--3.sc-calcite-loader{stroke-dasharray:13.9626222222% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 3.867)}@keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-76.7944222222%}100%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:-279.2524444444%}}@keyframes loader-color-shift{0%{stroke:var(--calcite-ui-brand)}33%{stroke:var(--calcite-ui-brand-press)}66%{stroke:var(--calcite-ui-brand-hover)}100%{stroke:var(--calcite-ui-brand)}}@keyframes loader-clockwise{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
23792
23880
|
|
|
23793
23881
|
class Loader {
|
|
23794
23882
|
constructor(hostRef) {
|
|
@@ -23798,7 +23886,12 @@ class Loader {
|
|
|
23798
23886
|
// Properties
|
|
23799
23887
|
//
|
|
23800
23888
|
//--------------------------------------------------------------------------
|
|
23801
|
-
/**
|
|
23889
|
+
/**
|
|
23890
|
+
* When `true`, the component is active.
|
|
23891
|
+
*
|
|
23892
|
+
* @deprecated use global `hidden` attribute instead.
|
|
23893
|
+
* @mdn [hidden](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden)
|
|
23894
|
+
*/
|
|
23802
23895
|
this.active = false;
|
|
23803
23896
|
/** When `true`, displays smaller and appears to the left of the text. */
|
|
23804
23897
|
this.inline = false;
|
|
@@ -26093,7 +26186,7 @@ class PopoverManager$1 {
|
|
|
26093
26186
|
}
|
|
26094
26187
|
}
|
|
26095
26188
|
|
|
26096
|
-
const popoverCss = "@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*/.sc-calcite-popover: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*/.calcite-animate.sc-calcite-popover{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-popover{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-popover{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-popover{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-popover{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-popover:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-popover:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-popover-h{display:none}/*!@:host*/.sc-calcite-popover-h{display:block;position:absolute;z-index:900
|
|
26189
|
+
const popoverCss = "@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*/.sc-calcite-popover: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*/.calcite-animate.sc-calcite-popover{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-popover{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-popover{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-popover{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-popover{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-popover:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-popover:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-popover-h{display:none}/*!@:host*/.sc-calcite-popover-h{display:block;position:absolute;z-index:900}/*!@.calcite-floating-ui-anim*/.calcite-floating-ui-anim.sc-calcite-popover{position:relative;transition:var(--calcite-floating-ui-transition);visibility:hidden;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*/[data-placement^=bottom].sc-calcite-popover-h .calcite-floating-ui-anim.sc-calcite-popover{transform:translateY(-5px)}/*!@:host([data-placement^=top]) .calcite-floating-ui-anim*/[data-placement^=top].sc-calcite-popover-h .calcite-floating-ui-anim.sc-calcite-popover{transform:translateY(5px)}/*!@:host([data-placement^=left]) .calcite-floating-ui-anim*/[data-placement^=left].sc-calcite-popover-h .calcite-floating-ui-anim.sc-calcite-popover{transform:translateX(5px)}/*!@:host([data-placement^=right]) .calcite-floating-ui-anim*/[data-placement^=right].sc-calcite-popover-h .calcite-floating-ui-anim.sc-calcite-popover{transform:translateX(-5px)}/*!@:host([data-placement]) .calcite-floating-ui-anim--active*/[data-placement].sc-calcite-popover-h .calcite-floating-ui-anim--active.sc-calcite-popover{opacity:1;visibility:visible;transform:translate(0)}/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-popover-h{visibility:hidden !important;pointer-events:none}/*!@.arrow,\n.arrow::before*/.arrow.sc-calcite-popover,.arrow.sc-calcite-popover::before{position:absolute;inline-size:8px;block-size:8px;z-index:-1}/*!@.arrow::before*/.arrow.sc-calcite-popover::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*/[data-placement^=top].sc-calcite-popover-h .arrow.sc-calcite-popover{inset-block-end:-4px}/*!@:host([data-placement^=bottom]) .arrow*/[data-placement^=bottom].sc-calcite-popover-h .arrow.sc-calcite-popover{inset-block-start:-4px}/*!@:host([data-placement^=left]) .arrow*/[data-placement^=left].sc-calcite-popover-h .arrow.sc-calcite-popover{direction:ltr;inset-inline-end:-4px}/*!@:host([data-placement^=right]) .arrow*/[data-placement^=right].sc-calcite-popover-h .arrow.sc-calcite-popover{direction:ltr;inset-inline-start:-4px}/*!@:host*/.sc-calcite-popover-h{pointer-events:none}/*!@:host([open])*/[open].sc-calcite-popover-h{pointer-events:initial}/*!@.calcite-floating-ui-anim*/.calcite-floating-ui-anim.sc-calcite-popover{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*/.arrow.sc-calcite-popover::before{outline:1px solid var(--calcite-ui-border-3)}/*!@.header*/.header.sc-calcite-popover{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*/.heading.sc-calcite-popover{margin:0px;display:block;flex:1 1 auto;align-self:center;white-space:normal;padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);word-wrap:break-word;word-break:break-word}/*!@.container*/.container.sc-calcite-popover{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*/.container.has-header.sc-calcite-popover{flex-direction:column}/*!@.content*/.content.sc-calcite-popover{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*/.close-button-container.sc-calcite-popover{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:0.25rem;border-end-end-radius:0.25rem}/*!@::slotted(calcite-panel), \n::slotted(calcite-flow)*/.sc-calcite-popover-s>calcite-panel,.sc-calcite-popover-s>calcite-flow{block-size:100%}";
|
|
26097
26190
|
|
|
26098
26191
|
const manager$1 = new PopoverManager$1();
|
|
26099
26192
|
/**
|
|
@@ -26186,7 +26279,6 @@ class Popover {
|
|
|
26186
26279
|
// Private Methods
|
|
26187
26280
|
//
|
|
26188
26281
|
// --------------------------------------------------------------------------
|
|
26189
|
-
this.debouncedReposition = debounce(() => this.reposition(), repositionDebounceTimeout);
|
|
26190
26282
|
this.setTransitionEl = (el) => {
|
|
26191
26283
|
this.transitionEl = el;
|
|
26192
26284
|
connectOpenCloseComponent(this);
|
|
@@ -26249,7 +26341,7 @@ class Popover {
|
|
|
26249
26341
|
};
|
|
26250
26342
|
this.storeArrowEl = (el) => {
|
|
26251
26343
|
this.arrowEl = el;
|
|
26252
|
-
this.
|
|
26344
|
+
this.reposition(true);
|
|
26253
26345
|
};
|
|
26254
26346
|
}
|
|
26255
26347
|
handleDismissible(value) {
|
|
@@ -26260,27 +26352,32 @@ class Popover {
|
|
|
26260
26352
|
}
|
|
26261
26353
|
flipPlacementsHandler() {
|
|
26262
26354
|
this.setFilteredPlacements();
|
|
26263
|
-
this.
|
|
26355
|
+
this.reposition(true);
|
|
26264
26356
|
}
|
|
26265
26357
|
offsetDistanceOffsetHandler() {
|
|
26266
|
-
this.
|
|
26358
|
+
this.reposition(true);
|
|
26267
26359
|
}
|
|
26268
26360
|
offsetSkiddingHandler() {
|
|
26269
|
-
this.
|
|
26361
|
+
this.reposition(true);
|
|
26270
26362
|
}
|
|
26271
|
-
openHandler() {
|
|
26272
|
-
|
|
26363
|
+
openHandler(value) {
|
|
26364
|
+
if (value) {
|
|
26365
|
+
this.reposition(true);
|
|
26366
|
+
}
|
|
26367
|
+
else {
|
|
26368
|
+
updateAfterClose(this.el);
|
|
26369
|
+
}
|
|
26273
26370
|
this.setExpandedAttr();
|
|
26274
26371
|
}
|
|
26275
26372
|
overlayPositioningHandler() {
|
|
26276
|
-
this.
|
|
26373
|
+
this.reposition(true);
|
|
26277
26374
|
}
|
|
26278
26375
|
placementHandler() {
|
|
26279
|
-
this.
|
|
26376
|
+
this.reposition(true);
|
|
26280
26377
|
}
|
|
26281
26378
|
referenceElementHandler() {
|
|
26282
26379
|
this.setUpReferenceElement();
|
|
26283
|
-
this.
|
|
26380
|
+
this.reposition(true);
|
|
26284
26381
|
}
|
|
26285
26382
|
// --------------------------------------------------------------------------
|
|
26286
26383
|
//
|
|
@@ -26303,7 +26400,7 @@ class Popover {
|
|
|
26303
26400
|
if (this.referenceElement && !this.effectiveReferenceElement) {
|
|
26304
26401
|
this.setUpReferenceElement();
|
|
26305
26402
|
}
|
|
26306
|
-
this.
|
|
26403
|
+
this.reposition();
|
|
26307
26404
|
this.hasLoaded = true;
|
|
26308
26405
|
}
|
|
26309
26406
|
disconnectedCallback() {
|
|
@@ -26316,10 +26413,14 @@ class Popover {
|
|
|
26316
26413
|
// Public Methods
|
|
26317
26414
|
//
|
|
26318
26415
|
// --------------------------------------------------------------------------
|
|
26319
|
-
/**
|
|
26320
|
-
|
|
26416
|
+
/**
|
|
26417
|
+
* Updates the position of the component.
|
|
26418
|
+
*
|
|
26419
|
+
* @param delayed
|
|
26420
|
+
*/
|
|
26421
|
+
async reposition(delayed = false) {
|
|
26321
26422
|
const { el, effectiveReferenceElement, placement, overlayPositioning, disableFlip, filteredFlipPlacements, offsetDistance, offsetSkidding, arrowEl } = this;
|
|
26322
|
-
return
|
|
26423
|
+
return reposition(this, {
|
|
26323
26424
|
floatingEl: el,
|
|
26324
26425
|
referenceEl: effectiveReferenceElement,
|
|
26325
26426
|
overlayPositioning,
|
|
@@ -26328,9 +26429,10 @@ class Popover {
|
|
|
26328
26429
|
flipPlacements: filteredFlipPlacements,
|
|
26329
26430
|
offsetDistance,
|
|
26330
26431
|
offsetSkidding,
|
|
26432
|
+
includeArrow: !this.disablePointer,
|
|
26331
26433
|
arrowEl,
|
|
26332
26434
|
type: "popover"
|
|
26333
|
-
});
|
|
26435
|
+
}, delayed);
|
|
26334
26436
|
}
|
|
26335
26437
|
/**
|
|
26336
26438
|
* Sets focus on the component.
|
|
@@ -35321,7 +35423,7 @@ class TooltipManager$1 {
|
|
|
35321
35423
|
}
|
|
35322
35424
|
}
|
|
35323
35425
|
|
|
35324
|
-
const tooltipCss = "@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*/.sc-calcite-tooltip: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*/.calcite-animate.sc-calcite-tooltip{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-tooltip{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tooltip{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tooltip{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tooltip{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-tooltip:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-tooltip:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-tooltip-h{display:none}/*!@:host*/.sc-calcite-tooltip-h{display:block;position:absolute;z-index:999
|
|
35426
|
+
const tooltipCss = "@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*/.sc-calcite-tooltip: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*/.calcite-animate.sc-calcite-tooltip{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-tooltip{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tooltip{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tooltip{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tooltip{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-tooltip:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-tooltip:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-tooltip-h{display:none}/*!@:host*/.sc-calcite-tooltip-h{display:block;position:absolute;z-index:999}/*!@.calcite-floating-ui-anim*/.calcite-floating-ui-anim.sc-calcite-tooltip{position:relative;transition:var(--calcite-floating-ui-transition);visibility:hidden;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*/[data-placement^=bottom].sc-calcite-tooltip-h .calcite-floating-ui-anim.sc-calcite-tooltip{transform:translateY(-5px)}/*!@:host([data-placement^=top]) .calcite-floating-ui-anim*/[data-placement^=top].sc-calcite-tooltip-h .calcite-floating-ui-anim.sc-calcite-tooltip{transform:translateY(5px)}/*!@:host([data-placement^=left]) .calcite-floating-ui-anim*/[data-placement^=left].sc-calcite-tooltip-h .calcite-floating-ui-anim.sc-calcite-tooltip{transform:translateX(5px)}/*!@:host([data-placement^=right]) .calcite-floating-ui-anim*/[data-placement^=right].sc-calcite-tooltip-h .calcite-floating-ui-anim.sc-calcite-tooltip{transform:translateX(-5px)}/*!@:host([data-placement]) .calcite-floating-ui-anim--active*/[data-placement].sc-calcite-tooltip-h .calcite-floating-ui-anim--active.sc-calcite-tooltip{opacity:1;visibility:visible;transform:translate(0)}/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-tooltip-h{visibility:hidden !important;pointer-events:none}/*!@.arrow,\n.arrow::before*/.arrow.sc-calcite-tooltip,.arrow.sc-calcite-tooltip::before{position:absolute;inline-size:8px;block-size:8px;z-index:-1}/*!@.arrow::before*/.arrow.sc-calcite-tooltip::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*/[data-placement^=top].sc-calcite-tooltip-h .arrow.sc-calcite-tooltip{inset-block-end:-4px}/*!@:host([data-placement^=bottom]) .arrow*/[data-placement^=bottom].sc-calcite-tooltip-h .arrow.sc-calcite-tooltip{inset-block-start:-4px}/*!@:host([data-placement^=left]) .arrow*/[data-placement^=left].sc-calcite-tooltip-h .arrow.sc-calcite-tooltip{direction:ltr;inset-inline-end:-4px}/*!@:host([data-placement^=right]) .arrow*/[data-placement^=right].sc-calcite-tooltip-h .arrow.sc-calcite-tooltip{direction:ltr;inset-inline-start:-4px}/*!@.container*/.container.sc-calcite-tooltip{position:relative;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);padding-block:0.75rem;padding-inline:1rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);max-inline-size:20rem;max-block-size:20rem;text-align:start}/*!@.calcite-floating-ui-anim*/.calcite-floating-ui-anim.sc-calcite-tooltip{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*/.arrow.sc-calcite-tooltip::before{outline:1px solid var(--calcite-ui-border-3)}";
|
|
35325
35427
|
|
|
35326
35428
|
const manager = new TooltipManager$1();
|
|
35327
35429
|
/**
|
|
@@ -35373,7 +35475,6 @@ class Tooltip {
|
|
|
35373
35475
|
// Private Methods
|
|
35374
35476
|
//
|
|
35375
35477
|
// --------------------------------------------------------------------------
|
|
35376
|
-
this.debouncedReposition = debounce(() => this.reposition(), repositionDebounceTimeout);
|
|
35377
35478
|
this.setUpReferenceElement = (warn = true) => {
|
|
35378
35479
|
this.removeReferences();
|
|
35379
35480
|
this.effectiveReferenceElement = this.getReferenceElement();
|
|
@@ -35412,19 +35513,24 @@ class Tooltip {
|
|
|
35412
35513
|
};
|
|
35413
35514
|
}
|
|
35414
35515
|
offsetDistanceOffsetHandler() {
|
|
35415
|
-
this.
|
|
35516
|
+
this.reposition(true);
|
|
35416
35517
|
}
|
|
35417
35518
|
offsetSkiddingHandler() {
|
|
35418
|
-
this.
|
|
35519
|
+
this.reposition(true);
|
|
35419
35520
|
}
|
|
35420
|
-
openHandler() {
|
|
35421
|
-
|
|
35521
|
+
openHandler(value) {
|
|
35522
|
+
if (value) {
|
|
35523
|
+
this.reposition(true);
|
|
35524
|
+
}
|
|
35525
|
+
else {
|
|
35526
|
+
updateAfterClose(this.el);
|
|
35527
|
+
}
|
|
35422
35528
|
}
|
|
35423
35529
|
overlayPositioningHandler() {
|
|
35424
|
-
this.
|
|
35530
|
+
this.reposition(true);
|
|
35425
35531
|
}
|
|
35426
35532
|
placementHandler() {
|
|
35427
|
-
this.
|
|
35533
|
+
this.reposition(true);
|
|
35428
35534
|
}
|
|
35429
35535
|
referenceElementHandler() {
|
|
35430
35536
|
this.setUpReferenceElement();
|
|
@@ -35441,7 +35547,7 @@ class Tooltip {
|
|
|
35441
35547
|
if (this.referenceElement && !this.effectiveReferenceElement) {
|
|
35442
35548
|
this.setUpReferenceElement();
|
|
35443
35549
|
}
|
|
35444
|
-
this.
|
|
35550
|
+
this.reposition(true);
|
|
35445
35551
|
this.hasLoaded = true;
|
|
35446
35552
|
}
|
|
35447
35553
|
disconnectedCallback() {
|
|
@@ -35453,19 +35559,24 @@ class Tooltip {
|
|
|
35453
35559
|
// Public Methods
|
|
35454
35560
|
//
|
|
35455
35561
|
// --------------------------------------------------------------------------
|
|
35456
|
-
/**
|
|
35457
|
-
|
|
35562
|
+
/**
|
|
35563
|
+
* Updates the position of the component.
|
|
35564
|
+
*
|
|
35565
|
+
* @param delayed
|
|
35566
|
+
*/
|
|
35567
|
+
async reposition(delayed = false) {
|
|
35458
35568
|
const { el, effectiveReferenceElement, placement, overlayPositioning, offsetDistance, offsetSkidding, arrowEl } = this;
|
|
35459
|
-
return
|
|
35569
|
+
return reposition(this, {
|
|
35460
35570
|
floatingEl: el,
|
|
35461
35571
|
referenceEl: effectiveReferenceElement,
|
|
35462
35572
|
overlayPositioning,
|
|
35463
35573
|
placement,
|
|
35464
35574
|
offsetDistance,
|
|
35465
35575
|
offsetSkidding,
|
|
35576
|
+
includeArrow: true,
|
|
35466
35577
|
arrowEl,
|
|
35467
35578
|
type: "tooltip"
|
|
35468
|
-
});
|
|
35579
|
+
}, delayed);
|
|
35469
35580
|
}
|
|
35470
35581
|
getReferenceElement() {
|
|
35471
35582
|
const { referenceElement, el } = this;
|