@esri/calcite-components 1.4.1-next.2 → 1.4.1-next.4
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/assets/icon/maskInside16.json +1 -0
- package/dist/calcite/assets/icon/maskInside24.json +1 -0
- package/dist/calcite/assets/icon/maskInside32.json +1 -0
- package/dist/calcite/assets/icon/maskOutside16.json +1 -0
- package/dist/calcite/assets/icon/maskOutside24.json +1 -0
- package/dist/calcite/assets/icon/maskOutside32.json +1 -0
- package/dist/calcite/assets/text-area/t9n/index.d.ts +1 -0
- package/dist/calcite/assets/text-area/t9n/messages.json +2 -1
- package/dist/calcite/assets/text-area/t9n/messages_en.json +2 -1
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +2 -2
- package/dist/calcite/p-0404b0cc.js +6 -0
- package/dist/calcite/p-06c22a00.js +6 -0
- package/dist/calcite/p-094c404a.entry.js +6 -0
- package/dist/calcite/p-0b1be615.entry.js +6 -0
- package/dist/calcite/p-0bf5cd5d.js +6 -0
- package/dist/calcite/p-114a2d96.entry.js +6 -0
- package/dist/calcite/p-12f7d9aa.js +6 -0
- package/dist/calcite/p-1dfa34c4.entry.js +6 -0
- package/dist/calcite/p-2237a000.js +6 -0
- package/dist/calcite/p-2239dca1.js +6 -0
- package/dist/calcite/p-235965c5.js +6 -0
- package/dist/calcite/p-2e399ec9.entry.js +6 -0
- package/dist/calcite/p-2e4455d0.entry.js +6 -0
- package/dist/calcite/p-2e8149fe.js +7 -0
- package/dist/calcite/p-2fab6cb8.entry.js +6 -0
- package/dist/calcite/p-30a469ec.entry.js +6 -0
- package/dist/calcite/p-3271551a.entry.js +6 -0
- package/dist/calcite/p-3514fc39.entry.js +6 -0
- package/dist/calcite/p-354cfa11.entry.js +6 -0
- package/dist/calcite/p-356a85ad.js +6 -0
- package/dist/calcite/p-360aa780.js +6 -0
- package/dist/calcite/p-37421775.entry.js +6 -0
- package/dist/calcite/p-394fbdd4.entry.js +6 -0
- package/dist/calcite/p-3a8fc608.js +6 -0
- package/dist/calcite/p-3ad3caeb.entry.js +6 -0
- package/dist/calcite/p-4116534b.js +6 -0
- package/dist/calcite/p-415068ab.js +6 -0
- package/dist/calcite/p-4184d28b.entry.js +6 -0
- package/dist/calcite/p-4475f748.entry.js +6 -0
- package/dist/calcite/p-450458a2.js +6 -0
- package/dist/calcite/p-4531c02a.js +6 -0
- package/dist/calcite/p-474fd214.js +6 -0
- package/dist/calcite/p-4810383b.entry.js +6 -0
- package/dist/calcite/p-48b90ff1.js +6 -0
- package/dist/calcite/p-48fc6046.js +6 -0
- package/dist/calcite/p-49fd5d17.js +6 -0
- package/dist/calcite/p-4cf85d29.js +6 -0
- package/dist/calcite/p-4fc3c4ca.js +6 -0
- package/dist/calcite/p-5009fc78.js +6 -0
- package/dist/calcite/p-5068df50.entry.js +6 -0
- package/dist/calcite/p-509b6350.js +6 -0
- package/dist/calcite/p-54d3e367.js +6 -0
- package/dist/calcite/p-591af3c0.js +6 -0
- package/dist/calcite/p-5aa41adc.js +6 -0
- package/dist/calcite/p-5e2e4d78.entry.js +6 -0
- package/dist/calcite/p-5fa6cc0a.js +6 -0
- package/dist/calcite/p-6375ce2a.js +6 -0
- package/dist/calcite/p-67c2f3ee.js +12 -0
- package/dist/calcite/p-6889e387.entry.js +6 -0
- package/dist/calcite/p-68d01e89.js +6 -0
- package/dist/calcite/p-696b99e3.entry.js +6 -0
- package/dist/calcite/p-6b01eb2f.entry.js +6 -0
- package/dist/calcite/p-6b185427.js +6 -0
- package/dist/calcite/p-6b7a1b17.js +6 -0
- package/dist/calcite/p-713b3bce.entry.js +6 -0
- package/dist/calcite/p-7160d7e4.js +6 -0
- package/dist/calcite/p-7241dbfd.entry.js +6 -0
- package/dist/calcite/p-75d6f49e.entry.js +6 -0
- package/dist/calcite/p-783cf13e.entry.js +6 -0
- package/dist/calcite/p-787d9b0d.entry.js +6 -0
- package/dist/calcite/p-78a40624.entry.js +6 -0
- package/dist/calcite/p-794c4981.js +6 -0
- package/dist/calcite/p-7983a110.entry.js +6 -0
- package/dist/calcite/p-7d03ad68.js +6 -0
- package/dist/calcite/p-8201d52c.js +11 -0
- package/dist/calcite/p-8209a33a.js +6 -0
- package/dist/calcite/p-85e39299.js +6 -0
- package/dist/calcite/p-86792495.js +6 -0
- package/dist/calcite/p-88753f96.entry.js +6 -0
- package/dist/calcite/p-88ccb731.entry.js +6 -0
- package/dist/calcite/p-89a4f95d.js +6 -0
- package/dist/calcite/p-8a9dbb22.entry.js +6 -0
- package/dist/calcite/p-8e042ea5.entry.js +6 -0
- package/dist/calcite/p-8ee10271.entry.js +6 -0
- package/dist/calcite/p-8f2f3c17.entry.js +6 -0
- package/dist/calcite/p-901ace27.entry.js +6 -0
- package/dist/calcite/p-928c1aca.js +6 -0
- package/dist/calcite/p-9405f449.entry.js +6 -0
- package/dist/calcite/p-982301d9.js +10 -0
- package/dist/calcite/p-9aabebc3.js +6 -0
- package/dist/calcite/p-9c0d19c1.js +6 -0
- package/dist/calcite/p-9c632209.js +6 -0
- package/dist/calcite/p-9ed3c902.entry.js +6 -0
- package/dist/calcite/p-a207a9e2.entry.js +6 -0
- package/dist/calcite/p-a3ad6c47.entry.js +6 -0
- package/dist/calcite/p-a647d87f.entry.js +6 -0
- package/dist/calcite/p-a804c308.entry.js +6 -0
- package/dist/calcite/p-a80df99a.js +6 -0
- package/dist/calcite/p-a8ede65e.js +6 -0
- package/dist/calcite/p-a9d1ebc3.js +6 -0
- package/dist/calcite/p-aa19c0de.entry.js +6 -0
- package/dist/calcite/p-ad625aab.js +6 -0
- package/dist/calcite/p-aeba5548.js +6 -0
- package/dist/calcite/p-b304ea5f.entry.js +6 -0
- package/dist/calcite/p-b4a79e0d.js +6 -0
- package/dist/calcite/p-b7b1fdb7.js +6 -0
- package/dist/calcite/p-b7e6c96f.entry.js +6 -0
- package/dist/calcite/p-b7f6aba2.entry.js +6 -0
- package/dist/calcite/p-bb9195ae.js +6 -0
- package/dist/calcite/p-bd948021.js +6 -0
- package/dist/calcite/p-bf797529.entry.js +6 -0
- package/dist/calcite/p-c4fee96c.js +6 -0
- package/dist/calcite/p-c53624a6.js +6 -0
- package/dist/calcite/p-c71d6973.js +6 -0
- package/dist/calcite/p-c8b9d00d.entry.js +6 -0
- package/dist/calcite/p-caacd1e3.js +6 -0
- package/dist/calcite/p-cb85a0ea.entry.js +6 -0
- package/dist/calcite/p-cd0f0df2.entry.js +6 -0
- package/dist/calcite/p-cd30eaf6.entry.js +6 -0
- package/dist/calcite/p-ce0a3f3e.js +6 -0
- package/dist/calcite/p-ce2fe0dc.js +6 -0
- package/dist/calcite/p-cea6da55.js +6 -0
- package/dist/calcite/p-cf01b99c.js +6 -0
- package/dist/calcite/p-d24832df.js +6 -0
- package/dist/calcite/p-d3f9c71c.js +6 -0
- package/dist/calcite/p-d71c6110.js +6 -0
- package/dist/calcite/p-d7a5ced3.entry.js +6 -0
- package/dist/calcite/p-dae0c650.entry.js +6 -0
- package/dist/calcite/p-dbfdb5f8.entry.js +6 -0
- package/dist/calcite/p-dd8dbb39.js +6 -0
- package/dist/calcite/p-ddcf3deb.js +6 -0
- package/dist/calcite/p-de26ec34.js +6 -0
- package/dist/calcite/p-df74bb05.js +6 -0
- package/dist/calcite/p-e1287b18.entry.js +6 -0
- package/dist/calcite/p-e22c675a.js +6 -0
- package/dist/calcite/p-e32738e9.entry.js +6 -0
- package/dist/calcite/p-e346fea4.entry.js +6 -0
- package/dist/calcite/p-e379cac8.js +6 -0
- package/dist/calcite/p-e3b73a03.js +6 -0
- package/dist/calcite/p-e4734742.js +6 -0
- package/dist/calcite/p-e6ac3d0a.js +6 -0
- package/dist/calcite/p-e7299644.entry.js +6 -0
- package/dist/calcite/p-e91189cf.entry.js +6 -0
- package/dist/calcite/p-ec166230.entry.js +6 -0
- package/dist/calcite/p-ed13f294.js +6 -0
- package/dist/calcite/p-ed339b44.entry.js +6 -0
- package/dist/calcite/p-ee92ca50.js +6 -0
- package/dist/calcite/p-ef56cd55.entry.js +6 -0
- package/dist/calcite/p-efe61b47.js +6 -0
- package/dist/calcite/p-f2200592.entry.js +6 -0
- package/dist/calcite/p-f3083810.js +6 -0
- package/dist/calcite/p-f558a2f6.js +6 -0
- package/dist/calcite/p-f7fb7aa7.entry.js +6 -0
- package/dist/calcite/p-f84eb600.js +6 -0
- package/dist/calcite/p-f85fa1fa.js +6 -0
- package/dist/calcite/p-fbb3363a.js +6 -0
- package/dist/calcite/p-fc5ed794.js +6 -0
- package/dist/calcite/p-fcda2ad8.js +6 -0
- package/dist/calcite/p-fde14258.entry.js +6 -0
- package/dist/cjs/ExpandToggle-2a9645ee.js +109 -0
- package/dist/cjs/FloatingArrow-d741fe00.js +45 -0
- package/dist/cjs/Heading-4ab31754.js +20 -0
- package/dist/cjs/app-globals-68c4b0b7.js +59 -0
- package/dist/cjs/ar-154a3b97.js +96 -0
- package/dist/cjs/array-c1c86ecb.js +12 -0
- package/dist/cjs/bg-ea83b232.js +77 -0
- package/dist/cjs/bs-0f65c7b0.js +46 -0
- package/dist/cjs/ca-c3edf373.js +66 -0
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
- package/dist/cjs/calcite-action-group.cjs.entry.js +13 -13
- package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action.cjs.entry.js +11 -11
- package/dist/cjs/calcite-alert.cjs.entry.js +12 -12
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-button.cjs.entry.js +13 -13
- package/dist/cjs/calcite-card.cjs.entry.js +10 -10
- package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
- package/dist/cjs/calcite-chip-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-chip.cjs.entry.js +12 -12
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +18 -15
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +18 -18
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +13 -13
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
- package/dist/cjs/calcite-filter.cjs.entry.js +13 -13
- package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -12
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +18 -18
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-text.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-time-picker.calcite-time-picker-f4f44e89.js +2454 -0
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +20 -2412
- package/dist/cjs/calcite-input.cjs.entry.js +13 -13
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +7 -7
- package/dist/cjs/calcite-list_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-menu_2.cjs.entry.js +14 -12
- package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
- package/dist/cjs/calcite-navigation_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
- package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
- package/dist/cjs/calcite-panel.cjs.entry.js +14 -14
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-popover.cjs.entry.js +16 -16
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
- package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +8 -8
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-stack.cjs.entry.js +5 -5
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tab_4.cjs.entry.js +11 -11
- package/dist/cjs/calcite-text-area.cjs.entry.js +15 -15
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tree_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/composed-offset-position.esm-52a724af.js +79 -0
- package/dist/cjs/conditionalSlot-a8517870.js +58 -0
- package/dist/cjs/cs-9f13d34a.js +142 -0
- package/dist/cjs/da-94e926da.js +61 -0
- package/dist/cjs/de-7e84a6c0.js +86 -0
- package/dist/cjs/de-at-ccab4840.js +85 -0
- package/dist/cjs/de-ch-2e9ee355.js +85 -0
- package/dist/cjs/debounce-9edd4a41.js +496 -0
- package/dist/cjs/dom-e130427b.js +949 -0
- package/dist/cjs/el-b9dcf764.js +61 -0
- package/dist/cjs/en-au-f8fef067.js +61 -0
- package/dist/cjs/en-ca-11ad7aba.js +60 -0
- package/dist/cjs/en-gb-6837f36d.js +64 -0
- package/dist/cjs/es-39bf3f24.js +61 -0
- package/dist/cjs/es-mx-34dca93a.js +60 -0
- package/dist/cjs/et-bb3686ba.js +87 -0
- package/dist/cjs/fi-03eabc37.js +110 -0
- package/dist/cjs/filter-9526ddde.js +760 -0
- package/dist/cjs/floating-ui-c686f8ff.js +1820 -0
- package/dist/cjs/focusTrapComponent-f08f0eed.js +804 -0
- package/dist/cjs/form-25b4fdd5.js +283 -0
- package/dist/cjs/fr-52eadefb.js +63 -0
- package/dist/cjs/fr-ch-5c76097c.js +61 -0
- package/dist/cjs/guid-ae408625.js +21 -0
- package/dist/cjs/he-06a33246.js +100 -0
- package/dist/cjs/hi-e266275c.js +60 -0
- package/dist/cjs/hr-a4d2eef0.js +75 -0
- package/dist/cjs/hu-6caac228.js +83 -0
- package/dist/cjs/id-d0a97f5c.js +61 -0
- package/dist/cjs/index-0b75a28b.js +2303 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/interactive-67c16a04.js +70 -0
- package/dist/cjs/it-6efc991f.js +61 -0
- package/dist/cjs/it-ch-2c8b3e53.js +61 -0
- package/dist/cjs/ja-fb378ed0.js +67 -0
- package/dist/cjs/key-1860e86a.js +14 -0
- package/dist/cjs/ko-2011ab00.js +67 -0
- package/dist/cjs/label-d0a41abc.js +131 -0
- package/dist/cjs/loadable-dee882d7.js +64 -0
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/locale-0e345183.js +557 -0
- package/dist/cjs/lt-f3d99d07.js +92 -0
- package/dist/cjs/lv-dc429fe9.js +61 -0
- package/dist/cjs/math-a9377b0d.js +23 -0
- package/dist/cjs/mk-a093c88d.js +61 -0
- package/dist/cjs/nb-d91195db.js +62 -0
- package/dist/cjs/nl-7790288a.js +62 -0
- package/dist/cjs/observers-1433ee5b.js +48 -0
- package/dist/cjs/openCloseComponent-ccb3d32f.js +95 -0
- package/dist/cjs/pl-ab508664.js +109 -0
- package/dist/cjs/pt-b80bb4a8.js +62 -0
- package/dist/cjs/pt-br-4b680596.js +60 -0
- package/dist/cjs/resources-09663dd7.js +17 -0
- package/dist/cjs/resources-0b2f91d4.js +15 -0
- package/dist/cjs/resources-7f5b49fe.js +22 -0
- package/dist/cjs/resources-8c1c20c9.js +45 -0
- package/dist/cjs/resources-8faae70f.js +410 -0
- package/dist/cjs/resources-c4c81d2c.js +27 -0
- package/dist/cjs/ro-04d1ebbf.js +61 -0
- package/dist/cjs/ru-638809de.js +121 -0
- package/dist/cjs/sk-36b11d47.js +143 -0
- package/dist/cjs/sl-976a15c8.js +61 -0
- package/dist/cjs/sortableComponent-d3b52974.js +3082 -0
- package/dist/cjs/sr-50f358e8.js +96 -0
- package/dist/cjs/sv-7a0291c6.js +66 -0
- package/dist/cjs/t9n-1f609267.js +95 -0
- package/dist/cjs/th-efbe07a8.js +60 -0
- package/dist/cjs/throttle-0f69376a.js +75 -0
- package/dist/cjs/tr-2c808709.js +61 -0
- package/dist/cjs/uk-5ad47c4b.js +99 -0
- package/dist/cjs/utils-69587967.js +213 -0
- package/dist/cjs/utils-97257d1a.js +294 -0
- package/dist/cjs/vi-a453cd9e.js +65 -0
- package/dist/cjs/zh-cn-e7a4501a.js +89 -0
- package/dist/cjs/zh-hk-09476599.js +66 -0
- package/dist/cjs/zh-tw-c30a0424.js +87 -0
- 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/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/chip-group/chip-group.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 +4 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +1 -1
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +1 -1
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/FloatingArrow.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/functional/XButton.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/assets/icon/maskInside16.json +1 -0
- package/dist/collection/components/icon/assets/icon/maskInside24.json +1 -0
- package/dist/collection/components/icon/assets/icon/maskInside32.json +1 -0
- package/dist/collection/components/icon/assets/icon/maskOutside16.json +1 -0
- package/dist/collection/components/icon/assets/icon/maskOutside24.json +1 -0
- package/dist/collection/components/icon/assets/icon/maskOutside32.json +1 -0
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +56 -3
- package/dist/collection/components/input-time-picker/resources.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item/utils.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/menu/menu.js +1 -1
- package/dist/collection/components/menu-item/menu-item.css +2 -2
- package/dist/collection/components/menu-item/menu-item.js +2 -2
- package/dist/collection/components/menu-item/resources.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/navigation/navigation.js +1 -1
- package/dist/collection/components/navigation/resources.js +1 -1
- package/dist/collection/components/navigation-logo/navigation-logo.js +1 -1
- package/dist/collection/components/navigation-logo/resources.js +1 -1
- package/dist/collection/components/navigation-user/navigation-user.js +1 -1
- package/dist/collection/components/navigation-user/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/rating/function/star.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/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/segmented-control/segmented-control.js +1 -1
- package/dist/collection/components/segmented-control-item/resources.js +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.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/stack/resources.js +1 -1
- package/dist/collection/components/stack/stack.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/resources.js +1 -1
- package/dist/collection/components/tab-title/tab-title.css +32 -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/text-area/assets/text-area/t9n/index.d.ts +1 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages.json +2 -1
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_en.json +2 -1
- package/dist/collection/components/text-area/resources.js +1 -1
- package/dist/collection/components/text-area/text-area.js +3 -3
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip/utils.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/index.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/focusTrapComponent.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +3 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +13 -7
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/mode.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/sortableComponent.js +1 -1
- package/dist/collection/utils/t9n.js +5 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/FloatingArrow.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/ar.js +81 -0
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/bg.js +62 -0
- package/dist/components/bs.js +31 -0
- package/dist/components/button.js +1 -1
- package/dist/components/ca.js +51 -0
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip-group.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +1 -1
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +1 -1
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +62 -4
- 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-menu-item.js +3 -3
- package/dist/components/calcite-menu.js +1 -1
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation-user.js +1 -1
- package/dist/components/calcite-navigation.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.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-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-segmented-control-item.js +1 -1
- package/dist/components/calcite-segmented-control.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-stack.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-text-area.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +4 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/composed-offset-position.esm.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/cs.js +127 -0
- package/dist/components/da.js +46 -0
- 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/de-at.js +70 -0
- package/dist/components/de-ch.js +70 -0
- package/dist/components/de.js +71 -0
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/el.js +46 -0
- package/dist/components/en-au.js +46 -0
- package/dist/components/en-ca.js +45 -0
- package/dist/components/en-gb.js +49 -0
- package/dist/components/es-mx.js +45 -0
- package/dist/components/es.js +46 -0
- package/dist/components/et.js +72 -0
- package/dist/components/fi.js +95 -0
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/fr-ch.js +46 -0
- package/dist/components/fr.js +48 -0
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/he.js +85 -0
- package/dist/components/hi.js +45 -0
- package/dist/components/hr.js +60 -0
- package/dist/components/hu.js +68 -0
- package/dist/components/icon.js +1 -1
- package/dist/components/id.js +46 -0
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/input-number.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +13 -7
- package/dist/components/it-ch.js +46 -0
- package/dist/components/it.js +46 -0
- package/dist/components/ja.js +52 -0
- package/dist/components/key.js +1 -1
- package/dist/components/ko.js +52 -0
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/lt.js +77 -0
- package/dist/components/lv.js +46 -0
- package/dist/components/math.js +1 -1
- package/dist/components/menu.js +3 -1
- package/dist/components/mk.js +46 -0
- package/dist/components/nb.js +47 -0
- package/dist/components/nl.js +47 -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/pl.js +94 -0
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/pt-br.js +45 -0
- package/dist/components/pt.js +47 -0
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/ro.js +46 -0
- package/dist/components/ru.js +106 -0
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sk.js +128 -0
- package/dist/components/sl.js +46 -0
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/sr.js +81 -0
- package/dist/components/sv.js +51 -0
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +5 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +2 -2
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/th.js +45 -0
- package/dist/components/throttle.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/tr.js +46 -0
- package/dist/components/uk.js +84 -0
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/components/utils3.js +1 -1
- package/dist/components/vi.js +50 -0
- package/dist/components/zh-cn.js +74 -0
- package/dist/components/zh-hk.js +51 -0
- package/dist/components/zh-tw.js +72 -0
- package/dist/esm/ExpandToggle-06eff9a9.js +101 -0
- package/dist/esm/FloatingArrow-845a5dcb.js +43 -0
- package/dist/esm/Heading-af69e4c6.js +17 -0
- package/dist/esm/app-globals-be86062a.js +57 -0
- package/dist/esm/ar-1ab5558b.js +94 -0
- package/dist/esm/array-109e1cff.js +10 -0
- package/dist/esm/bg-02108044.js +75 -0
- package/dist/esm/bs-b149afbe.js +44 -0
- package/dist/esm/ca-8191e33f.js +64 -0
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +15 -15
- package/dist/esm/calcite-action-group.entry.js +13 -13
- package/dist/esm/calcite-action-menu.entry.js +9 -9
- package/dist/esm/calcite-action-pad.entry.js +14 -14
- package/dist/esm/calcite-action.entry.js +11 -11
- package/dist/esm/calcite-alert.entry.js +12 -12
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +12 -12
- package/dist/esm/calcite-button.entry.js +13 -13
- package/dist/esm/calcite-card.entry.js +10 -10
- package/dist/esm/calcite-checkbox.entry.js +10 -10
- package/dist/esm/calcite-chip-group.entry.js +8 -8
- package/dist/esm/calcite-chip.entry.js +12 -12
- package/dist/esm/calcite-color-picker_3.entry.js +18 -15
- package/dist/esm/calcite-combobox_3.entry.js +18 -18
- package/dist/esm/calcite-date-picker_4.entry.js +13 -13
- package/dist/esm/calcite-dropdown_3.entry.js +12 -12
- package/dist/esm/calcite-fab.entry.js +7 -7
- package/dist/esm/calcite-filter.entry.js +13 -13
- package/dist/esm/calcite-flow-item.entry.js +12 -12
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +13 -13
- package/dist/esm/calcite-handle.entry.js +10 -10
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +12 -12
- package/dist/esm/calcite-input-date-picker.entry.js +18 -18
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +13 -13
- package/dist/esm/calcite-input-text.entry.js +13 -13
- package/dist/esm/calcite-input-time-picker.calcite-time-picker-28f31208.js +2450 -0
- package/dist/esm/calcite-input-time-picker_2.entry.js +15 -2391
- package/dist/esm/calcite-input.entry.js +13 -13
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +7 -7
- package/dist/esm/calcite-list_3.entry.js +12 -12
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-menu_2.entry.js +14 -12
- package/dist/esm/calcite-modal.entry.js +13 -13
- package/dist/esm/calcite-navigation_3.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +12 -12
- package/dist/esm/calcite-option_3.entry.js +10 -10
- package/dist/esm/calcite-pagination.entry.js +10 -10
- package/dist/esm/calcite-panel.entry.js +14 -14
- package/dist/esm/calcite-pick-list_3.entry.js +16 -16
- package/dist/esm/calcite-popover.entry.js +16 -16
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +10 -10
- package/dist/esm/calcite-rating.entry.js +13 -13
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +9 -9
- package/dist/esm/calcite-shell_3.entry.js +11 -11
- package/dist/esm/calcite-sortable-list.entry.js +8 -8
- package/dist/esm/calcite-split-button.entry.js +4 -4
- package/dist/esm/calcite-stack.entry.js +5 -5
- package/dist/esm/calcite-stepper_2.entry.js +10 -10
- package/dist/esm/calcite-switch.entry.js +10 -10
- package/dist/esm/calcite-tab_4.entry.js +11 -11
- package/dist/esm/calcite-text-area.entry.js +15 -15
- package/dist/esm/calcite-tile-select_2.entry.js +5 -5
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +11 -11
- package/dist/esm/calcite-tooltip.entry.js +9 -9
- package/dist/esm/calcite-tree_2.entry.js +9 -9
- package/dist/esm/calcite-value-list_2.entry.js +16 -16
- package/dist/esm/calcite.js +6 -6
- package/dist/esm/composed-offset-position.esm-80943033.js +75 -0
- package/dist/esm/conditionalSlot-51b959e2.js +55 -0
- package/dist/esm/cs-75833c46.js +140 -0
- package/dist/esm/da-45d9d136.js +59 -0
- package/dist/esm/de-at-0e0b21b4.js +83 -0
- package/dist/esm/de-ch-e9ff3040.js +83 -0
- package/dist/esm/de-e73fefe8.js +84 -0
- package/dist/esm/debounce-15c1ccd4.js +487 -0
- package/dist/esm/dom-6de48cf2.js +922 -0
- package/dist/esm/el-64cc6ad1.js +59 -0
- package/dist/esm/en-au-76185539.js +59 -0
- package/dist/esm/en-ca-0cd1c4db.js +58 -0
- package/dist/esm/en-gb-4bdf338e.js +62 -0
- package/dist/esm/es-c47c39ba.js +59 -0
- package/dist/esm/es-mx-555b18a3.js +58 -0
- package/dist/esm/et-1de08a49.js +85 -0
- package/dist/esm/fi-d5accd85.js +108 -0
- package/dist/esm/filter-8e99c61d.js +758 -0
- package/dist/esm/floating-ui-515c2d26.js +1812 -0
- package/dist/esm/focusTrapComponent-7bac6204.js +799 -0
- package/dist/esm/form-be602c99.js +275 -0
- package/dist/esm/fr-ch-3c314cea.js +59 -0
- package/dist/esm/fr-ec6c8872.js +61 -0
- package/dist/esm/guid-a01fe943.js +19 -0
- package/dist/esm/he-f726c643.js +98 -0
- package/dist/esm/hi-17af862f.js +58 -0
- package/dist/esm/hr-17a50be0.js +73 -0
- package/dist/esm/hu-359ea5a1.js +81 -0
- package/dist/esm/id-d2bbe6e3.js +59 -0
- package/dist/esm/index-1f3658f4.js +2268 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/interactive-98940900.js +68 -0
- package/dist/esm/it-6f89b3ec.js +59 -0
- package/dist/esm/it-ch-4e66174a.js +59 -0
- package/dist/esm/ja-079feb05.js +65 -0
- package/dist/esm/key-afeae54d.js +11 -0
- package/dist/esm/ko-a81c7a9b.js +65 -0
- package/dist/esm/label-3c89fd0f.js +125 -0
- package/dist/esm/loadable-3ee795f1.js +60 -0
- package/dist/esm/loader.js +6 -6
- package/dist/esm/locale-7135d229.js +545 -0
- package/dist/esm/lt-a5bc8bfb.js +90 -0
- package/dist/esm/lv-6a8f1386.js +59 -0
- package/dist/esm/math-5c9fa5a5.js +20 -0
- package/dist/esm/mk-12dbcbe8.js +59 -0
- package/dist/esm/nb-e0cfe19f.js +60 -0
- package/dist/esm/nl-6b0ce180.js +60 -0
- package/dist/esm/observers-ac8072fd.js +46 -0
- package/dist/esm/openCloseComponent-bd9058c0.js +91 -0
- package/dist/esm/pl-da615bd6.js +107 -0
- package/dist/esm/pt-0cc3a0d3.js +60 -0
- package/dist/esm/pt-br-58f2cb7b.js +58 -0
- package/dist/esm/resources-169aa725.js +383 -0
- package/dist/esm/resources-ad77d63c.js +14 -0
- package/dist/esm/resources-c1196b51.js +15 -0
- package/dist/esm/resources-d745686c.js +23 -0
- package/dist/esm/resources-da354538.js +41 -0
- package/dist/esm/resources-f722b726.js +18 -0
- package/dist/esm/ro-dc6b2385.js +59 -0
- package/dist/esm/ru-f08e792a.js +119 -0
- package/dist/esm/sk-cc1a655e.js +141 -0
- package/dist/esm/sl-4834fb7b.js +59 -0
- package/dist/esm/sortableComponent-671b00f4.js +3077 -0
- package/dist/esm/sr-7559ae16.js +94 -0
- package/dist/esm/sv-fdbf977c.js +64 -0
- package/dist/esm/t9n-b0d920d6.js +90 -0
- package/dist/esm/th-4cb5c94c.js +58 -0
- package/dist/esm/throttle-5a52d509.js +73 -0
- package/dist/esm/tr-0dea8e0e.js +59 -0
- package/dist/esm/uk-ae380b75.js +97 -0
- package/dist/esm/utils-08f84fad.js +277 -0
- package/dist/esm/utils-8e447a67.js +195 -0
- package/dist/esm/vi-658a3f80.js +63 -0
- package/dist/esm/zh-cn-95f5b838.js +87 -0
- package/dist/esm/zh-hk-8623ff88.js +64 -0
- package/dist/esm/zh-tw-c914caec.js +85 -0
- package/dist/extras/docs-json.json +3 -3
- 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/color-picker/color-picker.d.ts +5 -0
- package/dist/types/components/navigation-logo/navigation-logo.d.ts +2 -0
- package/dist/types/components/text-area/assets/text-area/t9n/index.d.ts +1 -0
- package/dist/types/utils/globalAttributes.d.ts +2 -0
- package/dist/types/utils/interactive.d.ts +6 -0
- package/dist/types/utils/t9n.d.ts +5 -0
- package/hydrate/index.js +2923 -46
- package/package.json +4 -5
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/af.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/am.js +0 -40
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ar-dz.js +0 -41
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ar-iq.js +0 -42
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ar-kw.js +0 -41
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ar-ly.js +0 -27
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ar-ma.js +0 -42
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ar-sa.js +0 -41
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ar-tn.js +0 -42
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ar.js +0 -74
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/az.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/be.js +0 -24
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/bg.js +0 -55
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/bi.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/bm.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/bn-bd.js +0 -81
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/bn.js +0 -72
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/bo.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/br.js +0 -93
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/bs.js +0 -24
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ca.js +0 -44
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/cs.js +0 -120
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/cv.js +0 -24
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/cy.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/da.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/de-at.js +0 -63
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/de-ch.js +0 -63
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/de.js +0 -64
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/dv.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/el.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/en-au.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/en-ca.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/en-gb.js +0 -42
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/en-ie.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/en-il.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/en-in.js +0 -42
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/en-nz.js +0 -41
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/en-sg.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/en-tt.js +0 -42
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/en.js +0 -12
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/eo.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/es-do.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/es-mx.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/es-pr.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/es-us.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/es.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/et.js +0 -65
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/eu.js +0 -43
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/fa.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/fi.js +0 -88
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/fo.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/fr-ca.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/fr-ch.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/fr.js +0 -41
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/fy.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ga.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/gd.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/gl.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/gom-latn.js +0 -25
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/gu.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/he.js +0 -78
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/hi.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/hr.js +0 -53
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ht.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/hu.js +0 -61
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/hy-am.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/id.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/is.js +0 -68
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/it-ch.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/it.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ja.js +0 -45
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/jv.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ka.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/kk.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/km.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/kn.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ko.js +0 -45
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ku.js +0 -77
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ky.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/lb.js +0 -24
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/lo.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/lt.js +0 -70
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/lv.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/me.js +0 -24
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/mi.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/mk.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ml.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/mn.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/mr.js +0 -23
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ms-my.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ms.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/mt.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/my.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/nb.js +0 -40
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ne.js +0 -40
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/nl-be.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/nl.js +0 -40
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/nn.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/oc-lnc.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/pa-in.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/pl.js +0 -87
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/pt-br.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/pt.js +0 -40
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/rn.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ro.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ru.js +0 -99
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/rw.js +0 -35
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/sd.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/se.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/si.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/sk.js +0 -121
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/sl.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/sq.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/sr-cyrl.js +0 -74
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/sr.js +0 -74
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ss.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/sv-fi.js +0 -46
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/sv.js +0 -44
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/sw.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ta.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/te.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/tet.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/tg.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/th.js +0 -38
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/tk.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/tl-ph.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/tlh.js +0 -24
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/tr.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/tzl.js +0 -24
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/tzm-latn.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/tzm.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ug-cn.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/uk.js +0 -77
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/ur.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/uz-latn.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/uz.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/vi.js +0 -43
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/x-pseudo.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/yo.js +0 -39
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/zh-cn.js +0 -67
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/zh-hk.js +0 -44
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/zh-tw.js +0 -65
- package/dist/calcite/assets/input-time-picker/nls/dayjs/locale/zh.js +0 -67
- package/dist/calcite/p-004dd1d6.js +0 -6
- package/dist/calcite/p-01860433.js +0 -6
- package/dist/calcite/p-05107f5a.js +0 -6
- package/dist/calcite/p-0685619c.entry.js +0 -6
- package/dist/calcite/p-09b50b91.entry.js +0 -6
- package/dist/calcite/p-0bae5668.entry.js +0 -6
- package/dist/calcite/p-0be71862.entry.js +0 -6
- package/dist/calcite/p-0cffaf5d.js +0 -6
- package/dist/calcite/p-0e4eddf7.entry.js +0 -6
- package/dist/calcite/p-0efd9a8e.entry.js +0 -6
- package/dist/calcite/p-123bdb48.entry.js +0 -6
- package/dist/calcite/p-12a80716.entry.js +0 -6
- package/dist/calcite/p-14c077f1.entry.js +0 -6
- package/dist/calcite/p-1976aed8.entry.js +0 -6
- package/dist/calcite/p-19872ceb.js +0 -6
- package/dist/calcite/p-214cb5d0.js +0 -6
- package/dist/calcite/p-21698679.js +0 -6
- package/dist/calcite/p-23c91700.entry.js +0 -6
- package/dist/calcite/p-2496449c.js +0 -6
- package/dist/calcite/p-293ec102.js +0 -6
- package/dist/calcite/p-2b334a62.entry.js +0 -6
- package/dist/calcite/p-2c5f921d.js +0 -6
- package/dist/calcite/p-317c752a.js +0 -6
- package/dist/calcite/p-318bc32a.entry.js +0 -6
- package/dist/calcite/p-31bbd82e.js +0 -6
- package/dist/calcite/p-324765f2.js +0 -6
- package/dist/calcite/p-3380d581.entry.js +0 -6
- package/dist/calcite/p-38139b64.js +0 -10
- package/dist/calcite/p-3b86130a.entry.js +0 -6
- package/dist/calcite/p-3fa3a4a5.entry.js +0 -6
- package/dist/calcite/p-3febd261.entry.js +0 -6
- package/dist/calcite/p-3fefa680.entry.js +0 -6
- package/dist/calcite/p-414d8f00.entry.js +0 -6
- package/dist/calcite/p-42bfe666.js +0 -6
- package/dist/calcite/p-432f58bc.entry.js +0 -6
- package/dist/calcite/p-46a44e0b.entry.js +0 -6
- package/dist/calcite/p-4818340d.entry.js +0 -6
- package/dist/calcite/p-4daedefa.entry.js +0 -6
- package/dist/calcite/p-52a623a6.entry.js +0 -6
- package/dist/calcite/p-5664f7b6.js +0 -6
- package/dist/calcite/p-568e969b.entry.js +0 -6
- package/dist/calcite/p-57aab5c3.entry.js +0 -6
- package/dist/calcite/p-5b366a60.entry.js +0 -6
- package/dist/calcite/p-5db9e2e3.entry.js +0 -6
- package/dist/calcite/p-60afa680.js +0 -6
- package/dist/calcite/p-61a751a5.js +0 -7
- package/dist/calcite/p-660e6569.entry.js +0 -6
- package/dist/calcite/p-663ff1ac.entry.js +0 -6
- package/dist/calcite/p-6b6c5f9f.js +0 -11
- package/dist/calcite/p-6c97c450.entry.js +0 -6
- package/dist/calcite/p-6fefde6c.entry.js +0 -6
- package/dist/calcite/p-70f58cea.entry.js +0 -6
- package/dist/calcite/p-74531ae1.js +0 -6
- package/dist/calcite/p-758730aa.entry.js +0 -6
- package/dist/calcite/p-7611b505.entry.js +0 -6
- package/dist/calcite/p-778942e4.js +0 -6
- package/dist/calcite/p-7e3e1abb.entry.js +0 -6
- package/dist/calcite/p-80d1fd1a.entry.js +0 -6
- package/dist/calcite/p-81d9434a.entry.js +0 -6
- package/dist/calcite/p-8251d6c7.entry.js +0 -6
- package/dist/calcite/p-84db53fe.entry.js +0 -6
- package/dist/calcite/p-852eafa5.entry.js +0 -6
- package/dist/calcite/p-85880f27.entry.js +0 -6
- package/dist/calcite/p-86e1d9ed.entry.js +0 -6
- package/dist/calcite/p-8d591499.js +0 -6
- package/dist/calcite/p-8dc911bd.entry.js +0 -6
- package/dist/calcite/p-8f992f9e.js +0 -6
- package/dist/calcite/p-93977b1d.js +0 -12
- package/dist/calcite/p-9409cd9e.entry.js +0 -6
- package/dist/calcite/p-94544c9a.js +0 -6
- package/dist/calcite/p-95c23a20.entry.js +0 -6
- package/dist/calcite/p-9b9abf1b.entry.js +0 -6
- package/dist/calcite/p-a02d1b15.entry.js +0 -6
- package/dist/calcite/p-a1797d09.js +0 -6
- package/dist/calcite/p-a1fd2538.entry.js +0 -6
- package/dist/calcite/p-a4532a67.js +0 -6
- package/dist/calcite/p-a4f64bae.js +0 -6
- package/dist/calcite/p-a99a6fe0.js +0 -6
- package/dist/calcite/p-ad8b4120.entry.js +0 -6
- package/dist/calcite/p-ad99271c.entry.js +0 -6
- package/dist/calcite/p-b0d34ac5.entry.js +0 -6
- package/dist/calcite/p-b57530c0.js +0 -6
- package/dist/calcite/p-b5fbccc3.entry.js +0 -6
- package/dist/calcite/p-b7b04d78.entry.js +0 -6
- package/dist/calcite/p-b8673720.entry.js +0 -6
- package/dist/calcite/p-b8d661b3.js +0 -6
- package/dist/calcite/p-bcaf101d.entry.js +0 -6
- package/dist/calcite/p-be9e9747.js +0 -6
- package/dist/calcite/p-c7c8a3d1.js +0 -6
- package/dist/calcite/p-c94c1b5e.entry.js +0 -6
- package/dist/calcite/p-d48710cf.entry.js +0 -6
- package/dist/calcite/p-d514ec28.entry.js +0 -6
- package/dist/calcite/p-d5acc26d.js +0 -6
- package/dist/calcite/p-d72a2d1f.entry.js +0 -6
- package/dist/calcite/p-e0f30656.entry.js +0 -6
- package/dist/calcite/p-e43edcec.entry.js +0 -6
- package/dist/calcite/p-e605af99.entry.js +0 -6
- package/dist/calcite/p-e85ef43e.entry.js +0 -6
- package/dist/calcite/p-ff26e280.entry.js +0 -6
- package/dist/cjs/ExpandToggle-d49ddfbb.js +0 -109
- package/dist/cjs/FloatingArrow-9909f42a.js +0 -45
- package/dist/cjs/Heading-95519ac1.js +0 -20
- package/dist/cjs/app-globals-8648fbd8.js +0 -59
- package/dist/cjs/array-065a6966.js +0 -12
- package/dist/cjs/composed-offset-position.esm-62406ecf.js +0 -79
- package/dist/cjs/conditionalSlot-80fb94c8.js +0 -58
- package/dist/cjs/debounce-ba625d71.js +0 -496
- package/dist/cjs/dom-177c7358.js +0 -949
- package/dist/cjs/filter-f19d8373.js +0 -760
- package/dist/cjs/floating-ui-66681977.js +0 -1820
- package/dist/cjs/focusTrapComponent-2310132c.js +0 -804
- package/dist/cjs/form-95b7c780.js +0 -283
- package/dist/cjs/guid-3776f853.js +0 -21
- package/dist/cjs/index-c5472ca6.js +0 -2303
- package/dist/cjs/interactive-13d268e5.js +0 -64
- package/dist/cjs/key-71b7da2b.js +0 -14
- package/dist/cjs/label-321dcad3.js +0 -131
- package/dist/cjs/loadable-5a78a969.js +0 -64
- package/dist/cjs/locale-947cff83.js +0 -557
- package/dist/cjs/math-72eed2bb.js +0 -23
- package/dist/cjs/observers-40734005.js +0 -48
- package/dist/cjs/openCloseComponent-bfcc6163.js +0 -95
- package/dist/cjs/resources-55b9f154.js +0 -45
- package/dist/cjs/resources-6b99dc32.js +0 -15
- package/dist/cjs/resources-a900c0e0.js +0 -27
- package/dist/cjs/resources-c6354a76.js +0 -17
- package/dist/cjs/resources-c855fffb.js +0 -410
- package/dist/cjs/resources-d713a4fe.js +0 -22
- package/dist/cjs/sortableComponent-263b2b36.js +0 -3082
- package/dist/cjs/t9n-de34a47b.js +0 -91
- package/dist/cjs/throttle-e79b7184.js +0 -75
- package/dist/cjs/utils-2042be80.js +0 -294
- package/dist/cjs/utils-aad320f7.js +0 -213
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/af.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/am.js +0 -40
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ar-dz.js +0 -41
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ar-iq.js +0 -42
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ar-kw.js +0 -41
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ar-ly.js +0 -27
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ar-ma.js +0 -42
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ar-sa.js +0 -41
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ar-tn.js +0 -42
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ar.js +0 -74
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/az.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/be.js +0 -24
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/bg.js +0 -55
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/bi.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/bm.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/bn-bd.js +0 -81
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/bn.js +0 -72
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/bo.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/br.js +0 -93
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/bs.js +0 -24
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ca.js +0 -44
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/cs.js +0 -120
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/cv.js +0 -24
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/cy.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/da.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/de-at.js +0 -63
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/de-ch.js +0 -63
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/de.js +0 -64
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/dv.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/el.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/en-au.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/en-ca.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/en-gb.js +0 -42
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/en-ie.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/en-il.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/en-in.js +0 -42
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/en-nz.js +0 -41
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/en-sg.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/en-tt.js +0 -42
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/en.js +0 -12
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/eo.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/es-do.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/es-mx.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/es-pr.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/es-us.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/es.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/et.js +0 -65
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/eu.js +0 -43
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/fa.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/fi.js +0 -88
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/fo.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/fr-ca.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/fr-ch.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/fr.js +0 -41
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/fy.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ga.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/gd.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/gl.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/gom-latn.js +0 -25
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/gu.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/he.js +0 -78
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/hi.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/hr.js +0 -53
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ht.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/hu.js +0 -61
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/hy-am.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/id.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/is.js +0 -68
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/it-ch.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/it.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ja.js +0 -45
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/jv.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ka.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/kk.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/km.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/kn.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ko.js +0 -45
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ku.js +0 -77
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ky.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/lb.js +0 -24
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/lo.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/lt.js +0 -70
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/lv.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/me.js +0 -24
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/mi.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/mk.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ml.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/mn.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/mr.js +0 -23
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ms-my.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ms.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/mt.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/my.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/nb.js +0 -40
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ne.js +0 -40
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/nl-be.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/nl.js +0 -40
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/nn.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/oc-lnc.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/pa-in.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/pl.js +0 -87
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/pt-br.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/pt.js +0 -40
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/rn.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ro.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ru.js +0 -99
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/rw.js +0 -35
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/sd.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/se.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/si.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/sk.js +0 -121
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/sl.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/sq.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/sr-cyrl.js +0 -74
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/sr.js +0 -74
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ss.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/sv-fi.js +0 -46
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/sv.js +0 -44
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/sw.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ta.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/te.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/tet.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/tg.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/th.js +0 -38
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/tk.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/tl-ph.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/tlh.js +0 -24
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/tr.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/tzl.js +0 -24
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/tzm-latn.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/tzm.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ug-cn.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/uk.js +0 -77
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/ur.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/uz-latn.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/uz.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/vi.js +0 -43
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/x-pseudo.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/yo.js +0 -39
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/zh-cn.js +0 -67
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/zh-hk.js +0 -44
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/zh-tw.js +0 -65
- package/dist/collection/components/input-time-picker/assets/input-time-picker/nls/dayjs/locale/zh.js +0 -67
- package/dist/esm/ExpandToggle-4511b35f.js +0 -101
- package/dist/esm/FloatingArrow-c55586a3.js +0 -43
- package/dist/esm/Heading-6f68263f.js +0 -17
- package/dist/esm/app-globals-147c6d18.js +0 -57
- package/dist/esm/array-2fe1b6ad.js +0 -10
- package/dist/esm/composed-offset-position.esm-4ef01dc7.js +0 -75
- package/dist/esm/conditionalSlot-8af37ffa.js +0 -55
- package/dist/esm/debounce-fabde551.js +0 -487
- package/dist/esm/dom-2bdd8819.js +0 -922
- package/dist/esm/filter-932c7628.js +0 -758
- package/dist/esm/floating-ui-0418ab2e.js +0 -1812
- package/dist/esm/focusTrapComponent-1be92722.js +0 -799
- package/dist/esm/form-4087330c.js +0 -275
- package/dist/esm/guid-dcf698f9.js +0 -19
- package/dist/esm/index-b1d0c2e7.js +0 -2268
- package/dist/esm/interactive-2241201e.js +0 -62
- package/dist/esm/key-fd401552.js +0 -11
- package/dist/esm/label-9a7d5f05.js +0 -125
- package/dist/esm/loadable-2659822c.js +0 -60
- package/dist/esm/locale-8d7f76d2.js +0 -545
- package/dist/esm/math-ccfd3a67.js +0 -20
- package/dist/esm/observers-2bf90437.js +0 -46
- package/dist/esm/openCloseComponent-2319213d.js +0 -91
- package/dist/esm/resources-42b5a527.js +0 -14
- package/dist/esm/resources-63b64825.js +0 -15
- package/dist/esm/resources-68020fe4.js +0 -23
- package/dist/esm/resources-8db69e81.js +0 -41
- package/dist/esm/resources-c3965cdf.js +0 -18
- package/dist/esm/resources-fd4c1af1.js +0 -383
- package/dist/esm/sortableComponent-33418565.js +0 -3077
- package/dist/esm/t9n-04ba3670.js +0 -86
- package/dist/esm/throttle-42135f0c.js +0 -73
- package/dist/esm/utils-7b8ee7fb.js +0 -195
- package/dist/esm/utils-92666e40.js +0 -277
|
@@ -0,0 +1,1820 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
+
* v1.4.1-next.4
|
|
5
|
+
*/
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
const dom = require('./dom-e130427b.js');
|
|
9
|
+
const debounce = require('./debounce-9edd4a41.js');
|
|
10
|
+
|
|
11
|
+
function getAlignment(placement) {
|
|
12
|
+
return placement.split('-')[1];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function getLengthFromAxis(axis) {
|
|
16
|
+
return axis === 'y' ? 'height' : 'width';
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function getSide(placement) {
|
|
20
|
+
return placement.split('-')[0];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function getMainAxisFromPlacement(placement) {
|
|
24
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'x' : 'y';
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
28
|
+
let {
|
|
29
|
+
reference,
|
|
30
|
+
floating
|
|
31
|
+
} = _ref;
|
|
32
|
+
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
|
33
|
+
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
|
34
|
+
const mainAxis = getMainAxisFromPlacement(placement);
|
|
35
|
+
const length = getLengthFromAxis(mainAxis);
|
|
36
|
+
const commonAlign = reference[length] / 2 - floating[length] / 2;
|
|
37
|
+
const side = getSide(placement);
|
|
38
|
+
const isVertical = mainAxis === 'x';
|
|
39
|
+
let coords;
|
|
40
|
+
switch (side) {
|
|
41
|
+
case 'top':
|
|
42
|
+
coords = {
|
|
43
|
+
x: commonX,
|
|
44
|
+
y: reference.y - floating.height
|
|
45
|
+
};
|
|
46
|
+
break;
|
|
47
|
+
case 'bottom':
|
|
48
|
+
coords = {
|
|
49
|
+
x: commonX,
|
|
50
|
+
y: reference.y + reference.height
|
|
51
|
+
};
|
|
52
|
+
break;
|
|
53
|
+
case 'right':
|
|
54
|
+
coords = {
|
|
55
|
+
x: reference.x + reference.width,
|
|
56
|
+
y: commonY
|
|
57
|
+
};
|
|
58
|
+
break;
|
|
59
|
+
case 'left':
|
|
60
|
+
coords = {
|
|
61
|
+
x: reference.x - floating.width,
|
|
62
|
+
y: commonY
|
|
63
|
+
};
|
|
64
|
+
break;
|
|
65
|
+
default:
|
|
66
|
+
coords = {
|
|
67
|
+
x: reference.x,
|
|
68
|
+
y: reference.y
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
switch (getAlignment(placement)) {
|
|
72
|
+
case 'start':
|
|
73
|
+
coords[mainAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
74
|
+
break;
|
|
75
|
+
case 'end':
|
|
76
|
+
coords[mainAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
return coords;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
|
84
|
+
* next to a reference element when it is given a certain positioning strategy.
|
|
85
|
+
*
|
|
86
|
+
* This export does not have any `platform` interface logic. You will need to
|
|
87
|
+
* write one for the platform you are using Floating UI with.
|
|
88
|
+
*/
|
|
89
|
+
const computePosition$1 = async (reference, floating, config) => {
|
|
90
|
+
const {
|
|
91
|
+
placement = 'bottom',
|
|
92
|
+
strategy = 'absolute',
|
|
93
|
+
middleware = [],
|
|
94
|
+
platform
|
|
95
|
+
} = config;
|
|
96
|
+
const validMiddleware = middleware.filter(Boolean);
|
|
97
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
98
|
+
let rects = await platform.getElementRects({
|
|
99
|
+
reference,
|
|
100
|
+
floating,
|
|
101
|
+
strategy
|
|
102
|
+
});
|
|
103
|
+
let {
|
|
104
|
+
x,
|
|
105
|
+
y
|
|
106
|
+
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
107
|
+
let statefulPlacement = placement;
|
|
108
|
+
let middlewareData = {};
|
|
109
|
+
let resetCount = 0;
|
|
110
|
+
for (let i = 0; i < validMiddleware.length; i++) {
|
|
111
|
+
const {
|
|
112
|
+
name,
|
|
113
|
+
fn
|
|
114
|
+
} = validMiddleware[i];
|
|
115
|
+
const {
|
|
116
|
+
x: nextX,
|
|
117
|
+
y: nextY,
|
|
118
|
+
data,
|
|
119
|
+
reset
|
|
120
|
+
} = await fn({
|
|
121
|
+
x,
|
|
122
|
+
y,
|
|
123
|
+
initialPlacement: placement,
|
|
124
|
+
placement: statefulPlacement,
|
|
125
|
+
strategy,
|
|
126
|
+
middlewareData,
|
|
127
|
+
rects,
|
|
128
|
+
platform,
|
|
129
|
+
elements: {
|
|
130
|
+
reference,
|
|
131
|
+
floating
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
x = nextX != null ? nextX : x;
|
|
135
|
+
y = nextY != null ? nextY : y;
|
|
136
|
+
middlewareData = {
|
|
137
|
+
...middlewareData,
|
|
138
|
+
[name]: {
|
|
139
|
+
...middlewareData[name],
|
|
140
|
+
...data
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
if (reset && resetCount <= 50) {
|
|
144
|
+
resetCount++;
|
|
145
|
+
if (typeof reset === 'object') {
|
|
146
|
+
if (reset.placement) {
|
|
147
|
+
statefulPlacement = reset.placement;
|
|
148
|
+
}
|
|
149
|
+
if (reset.rects) {
|
|
150
|
+
rects = reset.rects === true ? await platform.getElementRects({
|
|
151
|
+
reference,
|
|
152
|
+
floating,
|
|
153
|
+
strategy
|
|
154
|
+
}) : reset.rects;
|
|
155
|
+
}
|
|
156
|
+
({
|
|
157
|
+
x,
|
|
158
|
+
y
|
|
159
|
+
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
160
|
+
}
|
|
161
|
+
i = -1;
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return {
|
|
166
|
+
x,
|
|
167
|
+
y,
|
|
168
|
+
placement: statefulPlacement,
|
|
169
|
+
strategy,
|
|
170
|
+
middlewareData
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
function expandPaddingObject(padding) {
|
|
175
|
+
return {
|
|
176
|
+
top: 0,
|
|
177
|
+
right: 0,
|
|
178
|
+
bottom: 0,
|
|
179
|
+
left: 0,
|
|
180
|
+
...padding
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function getSideObjectFromPadding(padding) {
|
|
185
|
+
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
|
186
|
+
top: padding,
|
|
187
|
+
right: padding,
|
|
188
|
+
bottom: padding,
|
|
189
|
+
left: padding
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
function rectToClientRect(rect) {
|
|
194
|
+
return {
|
|
195
|
+
...rect,
|
|
196
|
+
top: rect.y,
|
|
197
|
+
left: rect.x,
|
|
198
|
+
right: rect.x + rect.width,
|
|
199
|
+
bottom: rect.y + rect.height
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
|
205
|
+
* element is overflowing a given clipping boundary on each side.
|
|
206
|
+
* - positive = overflowing the boundary by that number of pixels
|
|
207
|
+
* - negative = how many pixels left before it will overflow
|
|
208
|
+
* - 0 = lies flush with the boundary
|
|
209
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
|
210
|
+
*/
|
|
211
|
+
async function detectOverflow(state, options) {
|
|
212
|
+
var _await$platform$isEle;
|
|
213
|
+
if (options === void 0) {
|
|
214
|
+
options = {};
|
|
215
|
+
}
|
|
216
|
+
const {
|
|
217
|
+
x,
|
|
218
|
+
y,
|
|
219
|
+
platform,
|
|
220
|
+
rects,
|
|
221
|
+
elements,
|
|
222
|
+
strategy
|
|
223
|
+
} = state;
|
|
224
|
+
const {
|
|
225
|
+
boundary = 'clippingAncestors',
|
|
226
|
+
rootBoundary = 'viewport',
|
|
227
|
+
elementContext = 'floating',
|
|
228
|
+
altBoundary = false,
|
|
229
|
+
padding = 0
|
|
230
|
+
} = options;
|
|
231
|
+
const paddingObject = getSideObjectFromPadding(padding);
|
|
232
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
233
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
|
234
|
+
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
235
|
+
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
|
|
236
|
+
boundary,
|
|
237
|
+
rootBoundary,
|
|
238
|
+
strategy
|
|
239
|
+
}));
|
|
240
|
+
const rect = elementContext === 'floating' ? {
|
|
241
|
+
...rects.floating,
|
|
242
|
+
x,
|
|
243
|
+
y
|
|
244
|
+
} : rects.reference;
|
|
245
|
+
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
246
|
+
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
247
|
+
x: 1,
|
|
248
|
+
y: 1
|
|
249
|
+
} : {
|
|
250
|
+
x: 1,
|
|
251
|
+
y: 1
|
|
252
|
+
};
|
|
253
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
254
|
+
rect,
|
|
255
|
+
offsetParent,
|
|
256
|
+
strategy
|
|
257
|
+
}) : rect);
|
|
258
|
+
return {
|
|
259
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
260
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
261
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
262
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
const min$1 = Math.min;
|
|
267
|
+
const max$1 = Math.max;
|
|
268
|
+
|
|
269
|
+
function within(min$1$1, value, max$1$1) {
|
|
270
|
+
return max$1(min$1$1, min$1(value, max$1$1));
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Provides data to position an inner element of the floating element so that it
|
|
275
|
+
* appears centered to the reference element.
|
|
276
|
+
* @see https://floating-ui.com/docs/arrow
|
|
277
|
+
*/
|
|
278
|
+
const arrow = options => ({
|
|
279
|
+
name: 'arrow',
|
|
280
|
+
options,
|
|
281
|
+
async fn(state) {
|
|
282
|
+
// Since `element` is required, we don't Partial<> the type.
|
|
283
|
+
const {
|
|
284
|
+
element,
|
|
285
|
+
padding = 0
|
|
286
|
+
} = options || {};
|
|
287
|
+
const {
|
|
288
|
+
x,
|
|
289
|
+
y,
|
|
290
|
+
placement,
|
|
291
|
+
rects,
|
|
292
|
+
platform,
|
|
293
|
+
elements
|
|
294
|
+
} = state;
|
|
295
|
+
if (element == null) {
|
|
296
|
+
return {};
|
|
297
|
+
}
|
|
298
|
+
const paddingObject = getSideObjectFromPadding(padding);
|
|
299
|
+
const coords = {
|
|
300
|
+
x,
|
|
301
|
+
y
|
|
302
|
+
};
|
|
303
|
+
const axis = getMainAxisFromPlacement(placement);
|
|
304
|
+
const length = getLengthFromAxis(axis);
|
|
305
|
+
const arrowDimensions = await platform.getDimensions(element);
|
|
306
|
+
const isYAxis = axis === 'y';
|
|
307
|
+
const minProp = isYAxis ? 'top' : 'left';
|
|
308
|
+
const maxProp = isYAxis ? 'bottom' : 'right';
|
|
309
|
+
const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
|
|
310
|
+
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
311
|
+
const startDiff = coords[axis] - rects.reference[axis];
|
|
312
|
+
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
|
313
|
+
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
314
|
+
|
|
315
|
+
// DOM platform can return `window` as the `offsetParent`.
|
|
316
|
+
if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
|
|
317
|
+
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
318
|
+
}
|
|
319
|
+
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
320
|
+
|
|
321
|
+
// Make sure the arrow doesn't overflow the floating element if the center
|
|
322
|
+
// point is outside the floating element's bounds.
|
|
323
|
+
const min = paddingObject[minProp];
|
|
324
|
+
const max = clientSize - arrowDimensions[length] - paddingObject[maxProp];
|
|
325
|
+
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
326
|
+
const offset = within(min, center, max);
|
|
327
|
+
|
|
328
|
+
// If the reference is small enough that the arrow's padding causes it to
|
|
329
|
+
// to point to nothing for an aligned placement, adjust the offset of the
|
|
330
|
+
// floating element itself. This stops `shift()` from taking action, but can
|
|
331
|
+
// be worked around by calling it again after the `arrow()` if desired.
|
|
332
|
+
const shouldAddOffset = getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min ? paddingObject[minProp] : paddingObject[maxProp]) - arrowDimensions[length] / 2 < 0;
|
|
333
|
+
const alignmentOffset = shouldAddOffset ? center < min ? min - center : max - center : 0;
|
|
334
|
+
return {
|
|
335
|
+
[axis]: coords[axis] - alignmentOffset,
|
|
336
|
+
data: {
|
|
337
|
+
[axis]: offset,
|
|
338
|
+
centerOffset: center - offset
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
|
|
344
|
+
const sides = ['top', 'right', 'bottom', 'left'];
|
|
345
|
+
const allPlacements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-start", side + "-end"), []);
|
|
346
|
+
|
|
347
|
+
const oppositeSideMap = {
|
|
348
|
+
left: 'right',
|
|
349
|
+
right: 'left',
|
|
350
|
+
bottom: 'top',
|
|
351
|
+
top: 'bottom'
|
|
352
|
+
};
|
|
353
|
+
function getOppositePlacement(placement) {
|
|
354
|
+
return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
function getAlignmentSides(placement, rects, rtl) {
|
|
358
|
+
if (rtl === void 0) {
|
|
359
|
+
rtl = false;
|
|
360
|
+
}
|
|
361
|
+
const alignment = getAlignment(placement);
|
|
362
|
+
const mainAxis = getMainAxisFromPlacement(placement);
|
|
363
|
+
const length = getLengthFromAxis(mainAxis);
|
|
364
|
+
let mainAlignmentSide = mainAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
|
365
|
+
if (rects.reference[length] > rects.floating[length]) {
|
|
366
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
367
|
+
}
|
|
368
|
+
return {
|
|
369
|
+
main: mainAlignmentSide,
|
|
370
|
+
cross: getOppositePlacement(mainAlignmentSide)
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
const oppositeAlignmentMap = {
|
|
375
|
+
start: 'end',
|
|
376
|
+
end: 'start'
|
|
377
|
+
};
|
|
378
|
+
function getOppositeAlignmentPlacement(placement) {
|
|
379
|
+
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
383
|
+
const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
|
|
384
|
+
return allowedPlacementsSortedByAlignment.filter(placement => {
|
|
385
|
+
if (alignment) {
|
|
386
|
+
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
|
387
|
+
}
|
|
388
|
+
return true;
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
393
|
+
* that has the most space available automatically, without needing to specify a
|
|
394
|
+
* preferred placement. Alternative to `flip`.
|
|
395
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
396
|
+
*/
|
|
397
|
+
const autoPlacement = function (options) {
|
|
398
|
+
if (options === void 0) {
|
|
399
|
+
options = {};
|
|
400
|
+
}
|
|
401
|
+
return {
|
|
402
|
+
name: 'autoPlacement',
|
|
403
|
+
options,
|
|
404
|
+
async fn(state) {
|
|
405
|
+
var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
|
|
406
|
+
const {
|
|
407
|
+
rects,
|
|
408
|
+
middlewareData,
|
|
409
|
+
placement,
|
|
410
|
+
platform,
|
|
411
|
+
elements
|
|
412
|
+
} = state;
|
|
413
|
+
const {
|
|
414
|
+
crossAxis = false,
|
|
415
|
+
alignment,
|
|
416
|
+
allowedPlacements = allPlacements,
|
|
417
|
+
autoAlignment = true,
|
|
418
|
+
...detectOverflowOptions
|
|
419
|
+
} = options;
|
|
420
|
+
const placements = alignment !== undefined || allowedPlacements === allPlacements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
421
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
422
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
|
|
423
|
+
const currentPlacement = placements[currentIndex];
|
|
424
|
+
if (currentPlacement == null) {
|
|
425
|
+
return {};
|
|
426
|
+
}
|
|
427
|
+
const {
|
|
428
|
+
main,
|
|
429
|
+
cross
|
|
430
|
+
} = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
431
|
+
|
|
432
|
+
// Make `computeCoords` start from the right place.
|
|
433
|
+
if (placement !== currentPlacement) {
|
|
434
|
+
return {
|
|
435
|
+
reset: {
|
|
436
|
+
placement: placements[0]
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[main], overflow[cross]];
|
|
441
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
|
|
442
|
+
placement: currentPlacement,
|
|
443
|
+
overflows: currentOverflows
|
|
444
|
+
}];
|
|
445
|
+
const nextPlacement = placements[currentIndex + 1];
|
|
446
|
+
|
|
447
|
+
// There are more placements to check.
|
|
448
|
+
if (nextPlacement) {
|
|
449
|
+
return {
|
|
450
|
+
data: {
|
|
451
|
+
index: currentIndex + 1,
|
|
452
|
+
overflows: allOverflows
|
|
453
|
+
},
|
|
454
|
+
reset: {
|
|
455
|
+
placement: nextPlacement
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
const placementsSortedByMostSpace = allOverflows.map(d => {
|
|
460
|
+
const alignment = getAlignment(d.placement);
|
|
461
|
+
return [d.placement, alignment && crossAxis ?
|
|
462
|
+
// Check along the mainAxis and main crossAxis side.
|
|
463
|
+
d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
|
|
464
|
+
// Check only the mainAxis.
|
|
465
|
+
d.overflows[0], d.overflows];
|
|
466
|
+
}).sort((a, b) => a[1] - b[1]);
|
|
467
|
+
const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
|
|
468
|
+
// Aligned placements should not check their opposite crossAxis
|
|
469
|
+
// side.
|
|
470
|
+
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
471
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
472
|
+
if (resetPlacement !== placement) {
|
|
473
|
+
return {
|
|
474
|
+
data: {
|
|
475
|
+
index: currentIndex + 1,
|
|
476
|
+
overflows: allOverflows
|
|
477
|
+
},
|
|
478
|
+
reset: {
|
|
479
|
+
placement: resetPlacement
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
return {};
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
function getExpandedPlacements(placement) {
|
|
489
|
+
const oppositePlacement = getOppositePlacement(placement);
|
|
490
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
function getSideList(side, isStart, rtl) {
|
|
494
|
+
const lr = ['left', 'right'];
|
|
495
|
+
const rl = ['right', 'left'];
|
|
496
|
+
const tb = ['top', 'bottom'];
|
|
497
|
+
const bt = ['bottom', 'top'];
|
|
498
|
+
switch (side) {
|
|
499
|
+
case 'top':
|
|
500
|
+
case 'bottom':
|
|
501
|
+
if (rtl) return isStart ? rl : lr;
|
|
502
|
+
return isStart ? lr : rl;
|
|
503
|
+
case 'left':
|
|
504
|
+
case 'right':
|
|
505
|
+
return isStart ? tb : bt;
|
|
506
|
+
default:
|
|
507
|
+
return [];
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
511
|
+
const alignment = getAlignment(placement);
|
|
512
|
+
let list = getSideList(getSide(placement), direction === 'start', rtl);
|
|
513
|
+
if (alignment) {
|
|
514
|
+
list = list.map(side => side + "-" + alignment);
|
|
515
|
+
if (flipAlignment) {
|
|
516
|
+
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
return list;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
524
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
525
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
526
|
+
* @see https://floating-ui.com/docs/flip
|
|
527
|
+
*/
|
|
528
|
+
const flip = function (options) {
|
|
529
|
+
if (options === void 0) {
|
|
530
|
+
options = {};
|
|
531
|
+
}
|
|
532
|
+
return {
|
|
533
|
+
name: 'flip',
|
|
534
|
+
options,
|
|
535
|
+
async fn(state) {
|
|
536
|
+
var _middlewareData$flip;
|
|
537
|
+
const {
|
|
538
|
+
placement,
|
|
539
|
+
middlewareData,
|
|
540
|
+
rects,
|
|
541
|
+
initialPlacement,
|
|
542
|
+
platform,
|
|
543
|
+
elements
|
|
544
|
+
} = state;
|
|
545
|
+
const {
|
|
546
|
+
mainAxis: checkMainAxis = true,
|
|
547
|
+
crossAxis: checkCrossAxis = true,
|
|
548
|
+
fallbackPlacements: specifiedFallbackPlacements,
|
|
549
|
+
fallbackStrategy = 'bestFit',
|
|
550
|
+
fallbackAxisSideDirection = 'none',
|
|
551
|
+
flipAlignment = true,
|
|
552
|
+
...detectOverflowOptions
|
|
553
|
+
} = options;
|
|
554
|
+
const side = getSide(placement);
|
|
555
|
+
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
556
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
557
|
+
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
558
|
+
if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {
|
|
559
|
+
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
560
|
+
}
|
|
561
|
+
const placements = [initialPlacement, ...fallbackPlacements];
|
|
562
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
563
|
+
const overflows = [];
|
|
564
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
565
|
+
if (checkMainAxis) {
|
|
566
|
+
overflows.push(overflow[side]);
|
|
567
|
+
}
|
|
568
|
+
if (checkCrossAxis) {
|
|
569
|
+
const {
|
|
570
|
+
main,
|
|
571
|
+
cross
|
|
572
|
+
} = getAlignmentSides(placement, rects, rtl);
|
|
573
|
+
overflows.push(overflow[main], overflow[cross]);
|
|
574
|
+
}
|
|
575
|
+
overflowsData = [...overflowsData, {
|
|
576
|
+
placement,
|
|
577
|
+
overflows
|
|
578
|
+
}];
|
|
579
|
+
|
|
580
|
+
// One or more sides is overflowing.
|
|
581
|
+
if (!overflows.every(side => side <= 0)) {
|
|
582
|
+
var _middlewareData$flip2, _overflowsData$filter;
|
|
583
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
584
|
+
const nextPlacement = placements[nextIndex];
|
|
585
|
+
if (nextPlacement) {
|
|
586
|
+
// Try next placement and re-run the lifecycle.
|
|
587
|
+
return {
|
|
588
|
+
data: {
|
|
589
|
+
index: nextIndex,
|
|
590
|
+
overflows: overflowsData
|
|
591
|
+
},
|
|
592
|
+
reset: {
|
|
593
|
+
placement: nextPlacement
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
599
|
+
// then find the placement that fits the best on the main crossAxis side.
|
|
600
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
601
|
+
|
|
602
|
+
// Otherwise fallback.
|
|
603
|
+
if (!resetPlacement) {
|
|
604
|
+
switch (fallbackStrategy) {
|
|
605
|
+
case 'bestFit':
|
|
606
|
+
{
|
|
607
|
+
var _overflowsData$map$so;
|
|
608
|
+
const placement = (_overflowsData$map$so = overflowsData.map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
|
|
609
|
+
if (placement) {
|
|
610
|
+
resetPlacement = placement;
|
|
611
|
+
}
|
|
612
|
+
break;
|
|
613
|
+
}
|
|
614
|
+
case 'initialPlacement':
|
|
615
|
+
resetPlacement = initialPlacement;
|
|
616
|
+
break;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
if (placement !== resetPlacement) {
|
|
620
|
+
return {
|
|
621
|
+
reset: {
|
|
622
|
+
placement: resetPlacement
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
return {};
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
|
|
632
|
+
function getSideOffsets(overflow, rect) {
|
|
633
|
+
return {
|
|
634
|
+
top: overflow.top - rect.height,
|
|
635
|
+
right: overflow.right - rect.width,
|
|
636
|
+
bottom: overflow.bottom - rect.height,
|
|
637
|
+
left: overflow.left - rect.width
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
function isAnySideFullyClipped(overflow) {
|
|
641
|
+
return sides.some(side => overflow[side] >= 0);
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
645
|
+
* when it is not in the same clipping context as the reference element.
|
|
646
|
+
* @see https://floating-ui.com/docs/hide
|
|
647
|
+
*/
|
|
648
|
+
const hide = function (options) {
|
|
649
|
+
if (options === void 0) {
|
|
650
|
+
options = {};
|
|
651
|
+
}
|
|
652
|
+
return {
|
|
653
|
+
name: 'hide',
|
|
654
|
+
options,
|
|
655
|
+
async fn(state) {
|
|
656
|
+
const {
|
|
657
|
+
strategy = 'referenceHidden',
|
|
658
|
+
...detectOverflowOptions
|
|
659
|
+
} = options;
|
|
660
|
+
const {
|
|
661
|
+
rects
|
|
662
|
+
} = state;
|
|
663
|
+
switch (strategy) {
|
|
664
|
+
case 'referenceHidden':
|
|
665
|
+
{
|
|
666
|
+
const overflow = await detectOverflow(state, {
|
|
667
|
+
...detectOverflowOptions,
|
|
668
|
+
elementContext: 'reference'
|
|
669
|
+
});
|
|
670
|
+
const offsets = getSideOffsets(overflow, rects.reference);
|
|
671
|
+
return {
|
|
672
|
+
data: {
|
|
673
|
+
referenceHiddenOffsets: offsets,
|
|
674
|
+
referenceHidden: isAnySideFullyClipped(offsets)
|
|
675
|
+
}
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
case 'escaped':
|
|
679
|
+
{
|
|
680
|
+
const overflow = await detectOverflow(state, {
|
|
681
|
+
...detectOverflowOptions,
|
|
682
|
+
altBoundary: true
|
|
683
|
+
});
|
|
684
|
+
const offsets = getSideOffsets(overflow, rects.floating);
|
|
685
|
+
return {
|
|
686
|
+
data: {
|
|
687
|
+
escapedOffsets: offsets,
|
|
688
|
+
escaped: isAnySideFullyClipped(offsets)
|
|
689
|
+
}
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
default:
|
|
693
|
+
{
|
|
694
|
+
return {};
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
};
|
|
699
|
+
};
|
|
700
|
+
|
|
701
|
+
async function convertValueToCoords(state, value) {
|
|
702
|
+
const {
|
|
703
|
+
placement,
|
|
704
|
+
platform,
|
|
705
|
+
elements
|
|
706
|
+
} = state;
|
|
707
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
708
|
+
const side = getSide(placement);
|
|
709
|
+
const alignment = getAlignment(placement);
|
|
710
|
+
const isVertical = getMainAxisFromPlacement(placement) === 'x';
|
|
711
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
712
|
+
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
713
|
+
const rawValue = typeof value === 'function' ? value(state) : value;
|
|
714
|
+
|
|
715
|
+
// eslint-disable-next-line prefer-const
|
|
716
|
+
let {
|
|
717
|
+
mainAxis,
|
|
718
|
+
crossAxis,
|
|
719
|
+
alignmentAxis
|
|
720
|
+
} = typeof rawValue === 'number' ? {
|
|
721
|
+
mainAxis: rawValue,
|
|
722
|
+
crossAxis: 0,
|
|
723
|
+
alignmentAxis: null
|
|
724
|
+
} : {
|
|
725
|
+
mainAxis: 0,
|
|
726
|
+
crossAxis: 0,
|
|
727
|
+
alignmentAxis: null,
|
|
728
|
+
...rawValue
|
|
729
|
+
};
|
|
730
|
+
if (alignment && typeof alignmentAxis === 'number') {
|
|
731
|
+
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
|
732
|
+
}
|
|
733
|
+
return isVertical ? {
|
|
734
|
+
x: crossAxis * crossAxisMulti,
|
|
735
|
+
y: mainAxis * mainAxisMulti
|
|
736
|
+
} : {
|
|
737
|
+
x: mainAxis * mainAxisMulti,
|
|
738
|
+
y: crossAxis * crossAxisMulti
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Modifies the placement by translating the floating element along the
|
|
744
|
+
* specified axes.
|
|
745
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
746
|
+
* object may be passed.
|
|
747
|
+
* @see https://floating-ui.com/docs/offset
|
|
748
|
+
*/
|
|
749
|
+
const offset = function (value) {
|
|
750
|
+
if (value === void 0) {
|
|
751
|
+
value = 0;
|
|
752
|
+
}
|
|
753
|
+
return {
|
|
754
|
+
name: 'offset',
|
|
755
|
+
options: value,
|
|
756
|
+
async fn(state) {
|
|
757
|
+
const {
|
|
758
|
+
x,
|
|
759
|
+
y
|
|
760
|
+
} = state;
|
|
761
|
+
const diffCoords = await convertValueToCoords(state, value);
|
|
762
|
+
return {
|
|
763
|
+
x: x + diffCoords.x,
|
|
764
|
+
y: y + diffCoords.y,
|
|
765
|
+
data: diffCoords
|
|
766
|
+
};
|
|
767
|
+
}
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
|
|
771
|
+
function getCrossAxis(axis) {
|
|
772
|
+
return axis === 'x' ? 'y' : 'x';
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
777
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
778
|
+
* @see https://floating-ui.com/docs/shift
|
|
779
|
+
*/
|
|
780
|
+
const shift = function (options) {
|
|
781
|
+
if (options === void 0) {
|
|
782
|
+
options = {};
|
|
783
|
+
}
|
|
784
|
+
return {
|
|
785
|
+
name: 'shift',
|
|
786
|
+
options,
|
|
787
|
+
async fn(state) {
|
|
788
|
+
const {
|
|
789
|
+
x,
|
|
790
|
+
y,
|
|
791
|
+
placement
|
|
792
|
+
} = state;
|
|
793
|
+
const {
|
|
794
|
+
mainAxis: checkMainAxis = true,
|
|
795
|
+
crossAxis: checkCrossAxis = false,
|
|
796
|
+
limiter = {
|
|
797
|
+
fn: _ref => {
|
|
798
|
+
let {
|
|
799
|
+
x,
|
|
800
|
+
y
|
|
801
|
+
} = _ref;
|
|
802
|
+
return {
|
|
803
|
+
x,
|
|
804
|
+
y
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
...detectOverflowOptions
|
|
809
|
+
} = options;
|
|
810
|
+
const coords = {
|
|
811
|
+
x,
|
|
812
|
+
y
|
|
813
|
+
};
|
|
814
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
815
|
+
const mainAxis = getMainAxisFromPlacement(getSide(placement));
|
|
816
|
+
const crossAxis = getCrossAxis(mainAxis);
|
|
817
|
+
let mainAxisCoord = coords[mainAxis];
|
|
818
|
+
let crossAxisCoord = coords[crossAxis];
|
|
819
|
+
if (checkMainAxis) {
|
|
820
|
+
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
|
821
|
+
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
|
822
|
+
const min = mainAxisCoord + overflow[minSide];
|
|
823
|
+
const max = mainAxisCoord - overflow[maxSide];
|
|
824
|
+
mainAxisCoord = within(min, mainAxisCoord, max);
|
|
825
|
+
}
|
|
826
|
+
if (checkCrossAxis) {
|
|
827
|
+
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
|
828
|
+
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
|
829
|
+
const min = crossAxisCoord + overflow[minSide];
|
|
830
|
+
const max = crossAxisCoord - overflow[maxSide];
|
|
831
|
+
crossAxisCoord = within(min, crossAxisCoord, max);
|
|
832
|
+
}
|
|
833
|
+
const limitedCoords = limiter.fn({
|
|
834
|
+
...state,
|
|
835
|
+
[mainAxis]: mainAxisCoord,
|
|
836
|
+
[crossAxis]: crossAxisCoord
|
|
837
|
+
});
|
|
838
|
+
return {
|
|
839
|
+
...limitedCoords,
|
|
840
|
+
data: {
|
|
841
|
+
x: limitedCoords.x - x,
|
|
842
|
+
y: limitedCoords.y - y
|
|
843
|
+
}
|
|
844
|
+
};
|
|
845
|
+
}
|
|
846
|
+
};
|
|
847
|
+
};
|
|
848
|
+
|
|
849
|
+
function getWindow(node) {
|
|
850
|
+
var _node$ownerDocument;
|
|
851
|
+
return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
function getComputedStyle$1(element) {
|
|
855
|
+
return getWindow(element).getComputedStyle(element);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
function isNode(value) {
|
|
859
|
+
return value instanceof getWindow(value).Node;
|
|
860
|
+
}
|
|
861
|
+
function getNodeName(node) {
|
|
862
|
+
return isNode(node) ? (node.nodeName || '').toLowerCase() : '';
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
let uaString;
|
|
866
|
+
function getUAString() {
|
|
867
|
+
if (uaString) {
|
|
868
|
+
return uaString;
|
|
869
|
+
}
|
|
870
|
+
const uaData = navigator.userAgentData;
|
|
871
|
+
if (uaData && Array.isArray(uaData.brands)) {
|
|
872
|
+
uaString = uaData.brands.map(item => item.brand + "/" + item.version).join(' ');
|
|
873
|
+
return uaString;
|
|
874
|
+
}
|
|
875
|
+
return navigator.userAgent;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
function isHTMLElement(value) {
|
|
879
|
+
return value instanceof getWindow(value).HTMLElement;
|
|
880
|
+
}
|
|
881
|
+
function isElement(value) {
|
|
882
|
+
return value instanceof getWindow(value).Element;
|
|
883
|
+
}
|
|
884
|
+
function isShadowRoot(node) {
|
|
885
|
+
// Browsers without `ShadowRoot` support.
|
|
886
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
887
|
+
return false;
|
|
888
|
+
}
|
|
889
|
+
const OwnElement = getWindow(node).ShadowRoot;
|
|
890
|
+
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
891
|
+
}
|
|
892
|
+
function isOverflowElement(element) {
|
|
893
|
+
const {
|
|
894
|
+
overflow,
|
|
895
|
+
overflowX,
|
|
896
|
+
overflowY,
|
|
897
|
+
display
|
|
898
|
+
} = getComputedStyle$1(element);
|
|
899
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
900
|
+
}
|
|
901
|
+
function isTableElement(element) {
|
|
902
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
903
|
+
}
|
|
904
|
+
function isContainingBlock(element) {
|
|
905
|
+
// TODO: Try to use feature detection here instead.
|
|
906
|
+
const isFirefox = /firefox/i.test(getUAString());
|
|
907
|
+
const css = getComputedStyle$1(element);
|
|
908
|
+
const backdropFilter = css.backdropFilter || css.WebkitBackdropFilter;
|
|
909
|
+
|
|
910
|
+
// This is non-exhaustive but covers the most common CSS properties that
|
|
911
|
+
// create a containing block.
|
|
912
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
913
|
+
return css.transform !== 'none' || css.perspective !== 'none' || (backdropFilter ? backdropFilter !== 'none' : false) || isFirefox && css.willChange === 'filter' || isFirefox && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective'].some(value => css.willChange.includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => {
|
|
914
|
+
// Add type check for old browsers.
|
|
915
|
+
const contain = css.contain;
|
|
916
|
+
return contain != null ? contain.includes(value) : false;
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Determines whether or not `.getBoundingClientRect()` is affected by visual
|
|
922
|
+
* viewport offsets. In Safari, the `x`/`y` offsets are values relative to the
|
|
923
|
+
* visual viewport, while in other engines, they are values relative to the
|
|
924
|
+
* layout viewport.
|
|
925
|
+
*/
|
|
926
|
+
function isClientRectVisualViewportBased() {
|
|
927
|
+
// TODO: Try to use feature detection here instead. Feature detection for
|
|
928
|
+
// this can fail in various ways, making the userAgent check the most
|
|
929
|
+
// reliable:
|
|
930
|
+
// • Always-visible scrollbar or not
|
|
931
|
+
// • Width of <html>
|
|
932
|
+
|
|
933
|
+
// Is Safari.
|
|
934
|
+
return /^((?!chrome|android).)*safari/i.test(getUAString());
|
|
935
|
+
}
|
|
936
|
+
function isLastTraversableNode(node) {
|
|
937
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
const min = Math.min;
|
|
941
|
+
const max = Math.max;
|
|
942
|
+
const round = Math.round;
|
|
943
|
+
|
|
944
|
+
function getCssDimensions(element) {
|
|
945
|
+
const css = getComputedStyle$1(element);
|
|
946
|
+
let width = parseFloat(css.width);
|
|
947
|
+
let height = parseFloat(css.height);
|
|
948
|
+
const hasOffset = isHTMLElement(element);
|
|
949
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
950
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
951
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
952
|
+
if (shouldFallback) {
|
|
953
|
+
width = offsetWidth;
|
|
954
|
+
height = offsetHeight;
|
|
955
|
+
}
|
|
956
|
+
return {
|
|
957
|
+
width,
|
|
958
|
+
height,
|
|
959
|
+
fallback: shouldFallback
|
|
960
|
+
};
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
function unwrapElement(element) {
|
|
964
|
+
return !isElement(element) ? element.contextElement : element;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
const FALLBACK_SCALE = {
|
|
968
|
+
x: 1,
|
|
969
|
+
y: 1
|
|
970
|
+
};
|
|
971
|
+
function getScale(element) {
|
|
972
|
+
const domElement = unwrapElement(element);
|
|
973
|
+
if (!isHTMLElement(domElement)) {
|
|
974
|
+
return FALLBACK_SCALE;
|
|
975
|
+
}
|
|
976
|
+
const rect = domElement.getBoundingClientRect();
|
|
977
|
+
const {
|
|
978
|
+
width,
|
|
979
|
+
height,
|
|
980
|
+
fallback
|
|
981
|
+
} = getCssDimensions(domElement);
|
|
982
|
+
let x = (fallback ? round(rect.width) : rect.width) / width;
|
|
983
|
+
let y = (fallback ? round(rect.height) : rect.height) / height;
|
|
984
|
+
|
|
985
|
+
// 0, NaN, or Infinity should always fallback to 1.
|
|
986
|
+
|
|
987
|
+
if (!x || !Number.isFinite(x)) {
|
|
988
|
+
x = 1;
|
|
989
|
+
}
|
|
990
|
+
if (!y || !Number.isFinite(y)) {
|
|
991
|
+
y = 1;
|
|
992
|
+
}
|
|
993
|
+
return {
|
|
994
|
+
x,
|
|
995
|
+
y
|
|
996
|
+
};
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
1000
|
+
var _win$visualViewport, _win$visualViewport2;
|
|
1001
|
+
if (includeScale === void 0) {
|
|
1002
|
+
includeScale = false;
|
|
1003
|
+
}
|
|
1004
|
+
if (isFixedStrategy === void 0) {
|
|
1005
|
+
isFixedStrategy = false;
|
|
1006
|
+
}
|
|
1007
|
+
const clientRect = element.getBoundingClientRect();
|
|
1008
|
+
const domElement = unwrapElement(element);
|
|
1009
|
+
let scale = FALLBACK_SCALE;
|
|
1010
|
+
if (includeScale) {
|
|
1011
|
+
if (offsetParent) {
|
|
1012
|
+
if (isElement(offsetParent)) {
|
|
1013
|
+
scale = getScale(offsetParent);
|
|
1014
|
+
}
|
|
1015
|
+
} else {
|
|
1016
|
+
scale = getScale(element);
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
const win = domElement ? getWindow(domElement) : window;
|
|
1020
|
+
const addVisualOffsets = isClientRectVisualViewportBased() && isFixedStrategy;
|
|
1021
|
+
let x = (clientRect.left + (addVisualOffsets ? ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0 : 0)) / scale.x;
|
|
1022
|
+
let y = (clientRect.top + (addVisualOffsets ? ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0 : 0)) / scale.y;
|
|
1023
|
+
let width = clientRect.width / scale.x;
|
|
1024
|
+
let height = clientRect.height / scale.y;
|
|
1025
|
+
if (domElement) {
|
|
1026
|
+
const win = getWindow(domElement);
|
|
1027
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
1028
|
+
let currentIFrame = win.frameElement;
|
|
1029
|
+
while (currentIFrame && offsetParent && offsetWin !== win) {
|
|
1030
|
+
const iframeScale = getScale(currentIFrame);
|
|
1031
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
1032
|
+
const css = getComputedStyle(currentIFrame);
|
|
1033
|
+
iframeRect.x += (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
1034
|
+
iframeRect.y += (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
1035
|
+
x *= iframeScale.x;
|
|
1036
|
+
y *= iframeScale.y;
|
|
1037
|
+
width *= iframeScale.x;
|
|
1038
|
+
height *= iframeScale.y;
|
|
1039
|
+
x += iframeRect.x;
|
|
1040
|
+
y += iframeRect.y;
|
|
1041
|
+
currentIFrame = getWindow(currentIFrame).frameElement;
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
return rectToClientRect({
|
|
1045
|
+
width,
|
|
1046
|
+
height,
|
|
1047
|
+
x,
|
|
1048
|
+
y
|
|
1049
|
+
});
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
function getDocumentElement(node) {
|
|
1053
|
+
return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
function getNodeScroll(element) {
|
|
1057
|
+
if (isElement(element)) {
|
|
1058
|
+
return {
|
|
1059
|
+
scrollLeft: element.scrollLeft,
|
|
1060
|
+
scrollTop: element.scrollTop
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
return {
|
|
1064
|
+
scrollLeft: element.pageXOffset,
|
|
1065
|
+
scrollTop: element.pageYOffset
|
|
1066
|
+
};
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
1070
|
+
let {
|
|
1071
|
+
rect,
|
|
1072
|
+
offsetParent,
|
|
1073
|
+
strategy
|
|
1074
|
+
} = _ref;
|
|
1075
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1076
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
1077
|
+
if (offsetParent === documentElement) {
|
|
1078
|
+
return rect;
|
|
1079
|
+
}
|
|
1080
|
+
let scroll = {
|
|
1081
|
+
scrollLeft: 0,
|
|
1082
|
+
scrollTop: 0
|
|
1083
|
+
};
|
|
1084
|
+
let scale = {
|
|
1085
|
+
x: 1,
|
|
1086
|
+
y: 1
|
|
1087
|
+
};
|
|
1088
|
+
const offsets = {
|
|
1089
|
+
x: 0,
|
|
1090
|
+
y: 0
|
|
1091
|
+
};
|
|
1092
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
1093
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1094
|
+
scroll = getNodeScroll(offsetParent);
|
|
1095
|
+
}
|
|
1096
|
+
if (isHTMLElement(offsetParent)) {
|
|
1097
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
|
1098
|
+
scale = getScale(offsetParent);
|
|
1099
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1100
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
return {
|
|
1104
|
+
width: rect.width * scale.x,
|
|
1105
|
+
height: rect.height * scale.y,
|
|
1106
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
|
1107
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
function getWindowScrollBarX(element) {
|
|
1112
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
1113
|
+
// incorrect for RTL.
|
|
1114
|
+
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
// Gets the entire size of the scrollable document area, even extending outside
|
|
1118
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
1119
|
+
function getDocumentRect(element) {
|
|
1120
|
+
const html = getDocumentElement(element);
|
|
1121
|
+
const scroll = getNodeScroll(element);
|
|
1122
|
+
const body = element.ownerDocument.body;
|
|
1123
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
1124
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
1125
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
1126
|
+
const y = -scroll.scrollTop;
|
|
1127
|
+
if (getComputedStyle$1(body).direction === 'rtl') {
|
|
1128
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
|
1129
|
+
}
|
|
1130
|
+
return {
|
|
1131
|
+
width,
|
|
1132
|
+
height,
|
|
1133
|
+
x,
|
|
1134
|
+
y
|
|
1135
|
+
};
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
function getParentNode(node) {
|
|
1139
|
+
if (getNodeName(node) === 'html') {
|
|
1140
|
+
return node;
|
|
1141
|
+
}
|
|
1142
|
+
const result =
|
|
1143
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
1144
|
+
node.assignedSlot ||
|
|
1145
|
+
// DOM Element detected.
|
|
1146
|
+
node.parentNode ||
|
|
1147
|
+
// ShadowRoot detected.
|
|
1148
|
+
isShadowRoot(node) && node.host ||
|
|
1149
|
+
// Fallback.
|
|
1150
|
+
getDocumentElement(node);
|
|
1151
|
+
return isShadowRoot(result) ? result.host : result;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
function getNearestOverflowAncestor(node) {
|
|
1155
|
+
const parentNode = getParentNode(node);
|
|
1156
|
+
if (isLastTraversableNode(parentNode)) {
|
|
1157
|
+
// `getParentNode` will never return a `Document` due to the fallback
|
|
1158
|
+
// check, so it's either the <html> or <body> element.
|
|
1159
|
+
return parentNode.ownerDocument.body;
|
|
1160
|
+
}
|
|
1161
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
1162
|
+
return parentNode;
|
|
1163
|
+
}
|
|
1164
|
+
return getNearestOverflowAncestor(parentNode);
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
function getOverflowAncestors(node, list) {
|
|
1168
|
+
var _node$ownerDocument;
|
|
1169
|
+
if (list === void 0) {
|
|
1170
|
+
list = [];
|
|
1171
|
+
}
|
|
1172
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
1173
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
|
|
1174
|
+
const win = getWindow(scrollableAncestor);
|
|
1175
|
+
if (isBody) {
|
|
1176
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
|
|
1177
|
+
}
|
|
1178
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
function getViewportRect(element, strategy) {
|
|
1182
|
+
const win = getWindow(element);
|
|
1183
|
+
const html = getDocumentElement(element);
|
|
1184
|
+
const visualViewport = win.visualViewport;
|
|
1185
|
+
let width = html.clientWidth;
|
|
1186
|
+
let height = html.clientHeight;
|
|
1187
|
+
let x = 0;
|
|
1188
|
+
let y = 0;
|
|
1189
|
+
if (visualViewport) {
|
|
1190
|
+
width = visualViewport.width;
|
|
1191
|
+
height = visualViewport.height;
|
|
1192
|
+
const visualViewportBased = isClientRectVisualViewportBased();
|
|
1193
|
+
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
|
1194
|
+
x = visualViewport.offsetLeft;
|
|
1195
|
+
y = visualViewport.offsetTop;
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
return {
|
|
1199
|
+
width,
|
|
1200
|
+
height,
|
|
1201
|
+
x,
|
|
1202
|
+
y
|
|
1203
|
+
};
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
// Returns the inner client rect, subtracting scrollbars if present.
|
|
1207
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
1208
|
+
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
1209
|
+
const top = clientRect.top + element.clientTop;
|
|
1210
|
+
const left = clientRect.left + element.clientLeft;
|
|
1211
|
+
const scale = isHTMLElement(element) ? getScale(element) : {
|
|
1212
|
+
x: 1,
|
|
1213
|
+
y: 1
|
|
1214
|
+
};
|
|
1215
|
+
const width = element.clientWidth * scale.x;
|
|
1216
|
+
const height = element.clientHeight * scale.y;
|
|
1217
|
+
const x = left * scale.x;
|
|
1218
|
+
const y = top * scale.y;
|
|
1219
|
+
return {
|
|
1220
|
+
width,
|
|
1221
|
+
height,
|
|
1222
|
+
x,
|
|
1223
|
+
y
|
|
1224
|
+
};
|
|
1225
|
+
}
|
|
1226
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
1227
|
+
let rect;
|
|
1228
|
+
if (clippingAncestor === 'viewport') {
|
|
1229
|
+
rect = getViewportRect(element, strategy);
|
|
1230
|
+
} else if (clippingAncestor === 'document') {
|
|
1231
|
+
rect = getDocumentRect(getDocumentElement(element));
|
|
1232
|
+
} else if (isElement(clippingAncestor)) {
|
|
1233
|
+
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
1234
|
+
} else {
|
|
1235
|
+
const mutableRect = {
|
|
1236
|
+
...clippingAncestor
|
|
1237
|
+
};
|
|
1238
|
+
if (isClientRectVisualViewportBased()) {
|
|
1239
|
+
var _win$visualViewport, _win$visualViewport2;
|
|
1240
|
+
const win = getWindow(element);
|
|
1241
|
+
mutableRect.x -= ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0;
|
|
1242
|
+
mutableRect.y -= ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0;
|
|
1243
|
+
}
|
|
1244
|
+
rect = mutableRect;
|
|
1245
|
+
}
|
|
1246
|
+
return rectToClientRect(rect);
|
|
1247
|
+
}
|
|
1248
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
|
1249
|
+
const parentNode = getParentNode(element);
|
|
1250
|
+
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
1251
|
+
return false;
|
|
1252
|
+
}
|
|
1253
|
+
return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
1257
|
+
// clipping (or hiding) child elements. This returns all clipping ancestors
|
|
1258
|
+
// of the given element up the tree.
|
|
1259
|
+
function getClippingElementAncestors(element, cache) {
|
|
1260
|
+
const cachedResult = cache.get(element);
|
|
1261
|
+
if (cachedResult) {
|
|
1262
|
+
return cachedResult;
|
|
1263
|
+
}
|
|
1264
|
+
let result = getOverflowAncestors(element).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
1265
|
+
let currentContainingBlockComputedStyle = null;
|
|
1266
|
+
const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
|
|
1267
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1268
|
+
|
|
1269
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
1270
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1271
|
+
const computedStyle = getComputedStyle$1(currentNode);
|
|
1272
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
1273
|
+
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
1274
|
+
currentContainingBlockComputedStyle = null;
|
|
1275
|
+
}
|
|
1276
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
1277
|
+
if (shouldDropCurrentNode) {
|
|
1278
|
+
// Drop non-containing blocks.
|
|
1279
|
+
result = result.filter(ancestor => ancestor !== currentNode);
|
|
1280
|
+
} else {
|
|
1281
|
+
// Record last containing block for next iteration.
|
|
1282
|
+
currentContainingBlockComputedStyle = computedStyle;
|
|
1283
|
+
}
|
|
1284
|
+
currentNode = getParentNode(currentNode);
|
|
1285
|
+
}
|
|
1286
|
+
cache.set(element, result);
|
|
1287
|
+
return result;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
// Gets the maximum area that the element is visible in due to any number of
|
|
1291
|
+
// clipping ancestors.
|
|
1292
|
+
function getClippingRect(_ref) {
|
|
1293
|
+
let {
|
|
1294
|
+
element,
|
|
1295
|
+
boundary,
|
|
1296
|
+
rootBoundary,
|
|
1297
|
+
strategy
|
|
1298
|
+
} = _ref;
|
|
1299
|
+
const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
1300
|
+
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
1301
|
+
const firstClippingAncestor = clippingAncestors[0];
|
|
1302
|
+
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
1303
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
1304
|
+
accRect.top = max(rect.top, accRect.top);
|
|
1305
|
+
accRect.right = min(rect.right, accRect.right);
|
|
1306
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
1307
|
+
accRect.left = max(rect.left, accRect.left);
|
|
1308
|
+
return accRect;
|
|
1309
|
+
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
|
1310
|
+
return {
|
|
1311
|
+
width: clippingRect.right - clippingRect.left,
|
|
1312
|
+
height: clippingRect.bottom - clippingRect.top,
|
|
1313
|
+
x: clippingRect.left,
|
|
1314
|
+
y: clippingRect.top
|
|
1315
|
+
};
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
function getDimensions(element) {
|
|
1319
|
+
return getCssDimensions(element);
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
function getTrueOffsetParent(element, polyfill) {
|
|
1323
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
|
|
1324
|
+
return null;
|
|
1325
|
+
}
|
|
1326
|
+
if (polyfill) {
|
|
1327
|
+
return polyfill(element);
|
|
1328
|
+
}
|
|
1329
|
+
return element.offsetParent;
|
|
1330
|
+
}
|
|
1331
|
+
function getContainingBlock(element) {
|
|
1332
|
+
let currentNode = getParentNode(element);
|
|
1333
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1334
|
+
if (isContainingBlock(currentNode)) {
|
|
1335
|
+
return currentNode;
|
|
1336
|
+
} else {
|
|
1337
|
+
currentNode = getParentNode(currentNode);
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
return null;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
1344
|
+
// such as table ancestors and cross browser bugs.
|
|
1345
|
+
function getOffsetParent(element, polyfill) {
|
|
1346
|
+
const window = getWindow(element);
|
|
1347
|
+
if (!isHTMLElement(element)) {
|
|
1348
|
+
return window;
|
|
1349
|
+
}
|
|
1350
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
1351
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
1352
|
+
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
1353
|
+
}
|
|
1354
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
|
|
1355
|
+
return window;
|
|
1356
|
+
}
|
|
1357
|
+
return offsetParent || getContainingBlock(element) || window;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
1361
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1362
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
1363
|
+
const rect = getBoundingClientRect(element, true, strategy === 'fixed', offsetParent);
|
|
1364
|
+
let scroll = {
|
|
1365
|
+
scrollLeft: 0,
|
|
1366
|
+
scrollTop: 0
|
|
1367
|
+
};
|
|
1368
|
+
const offsets = {
|
|
1369
|
+
x: 0,
|
|
1370
|
+
y: 0
|
|
1371
|
+
};
|
|
1372
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
1373
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1374
|
+
scroll = getNodeScroll(offsetParent);
|
|
1375
|
+
}
|
|
1376
|
+
if (isHTMLElement(offsetParent)) {
|
|
1377
|
+
const offsetRect = getBoundingClientRect(offsetParent, true);
|
|
1378
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1379
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1380
|
+
} else if (documentElement) {
|
|
1381
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
return {
|
|
1385
|
+
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
1386
|
+
y: rect.top + scroll.scrollTop - offsets.y,
|
|
1387
|
+
width: rect.width,
|
|
1388
|
+
height: rect.height
|
|
1389
|
+
};
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
const platform = {
|
|
1393
|
+
getClippingRect,
|
|
1394
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
1395
|
+
isElement,
|
|
1396
|
+
getDimensions,
|
|
1397
|
+
getOffsetParent,
|
|
1398
|
+
getDocumentElement,
|
|
1399
|
+
getScale,
|
|
1400
|
+
async getElementRects(_ref) {
|
|
1401
|
+
let {
|
|
1402
|
+
reference,
|
|
1403
|
+
floating,
|
|
1404
|
+
strategy
|
|
1405
|
+
} = _ref;
|
|
1406
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
1407
|
+
const getDimensionsFn = this.getDimensions;
|
|
1408
|
+
return {
|
|
1409
|
+
reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),
|
|
1410
|
+
floating: {
|
|
1411
|
+
x: 0,
|
|
1412
|
+
y: 0,
|
|
1413
|
+
...(await getDimensionsFn(floating))
|
|
1414
|
+
}
|
|
1415
|
+
};
|
|
1416
|
+
},
|
|
1417
|
+
getClientRects: element => Array.from(element.getClientRects()),
|
|
1418
|
+
isRTL: element => getComputedStyle$1(element).direction === 'rtl'
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1421
|
+
/**
|
|
1422
|
+
* Automatically updates the position of the floating element when necessary.
|
|
1423
|
+
* Should only be called when the floating element is mounted on the DOM or
|
|
1424
|
+
* visible on the screen.
|
|
1425
|
+
* @returns cleanup function that should be invoked when the floating element is
|
|
1426
|
+
* removed from the DOM or hidden from the screen.
|
|
1427
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
|
1428
|
+
*/
|
|
1429
|
+
function autoUpdate(reference, floating, update, options) {
|
|
1430
|
+
if (options === void 0) {
|
|
1431
|
+
options = {};
|
|
1432
|
+
}
|
|
1433
|
+
const {
|
|
1434
|
+
ancestorScroll = true,
|
|
1435
|
+
ancestorResize = true,
|
|
1436
|
+
elementResize = true,
|
|
1437
|
+
animationFrame = false
|
|
1438
|
+
} = options;
|
|
1439
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(isElement(reference) ? getOverflowAncestors(reference) : reference.contextElement ? getOverflowAncestors(reference.contextElement) : []), ...getOverflowAncestors(floating)] : [];
|
|
1440
|
+
ancestors.forEach(ancestor => {
|
|
1441
|
+
// ignores Window, checks for [object VisualViewport]
|
|
1442
|
+
const isVisualViewport = !isElement(ancestor) && ancestor.toString().includes('V');
|
|
1443
|
+
if (ancestorScroll && (animationFrame ? isVisualViewport : true)) {
|
|
1444
|
+
ancestor.addEventListener('scroll', update, {
|
|
1445
|
+
passive: true
|
|
1446
|
+
});
|
|
1447
|
+
}
|
|
1448
|
+
ancestorResize && ancestor.addEventListener('resize', update);
|
|
1449
|
+
});
|
|
1450
|
+
let observer = null;
|
|
1451
|
+
if (elementResize) {
|
|
1452
|
+
observer = new ResizeObserver(() => {
|
|
1453
|
+
update();
|
|
1454
|
+
});
|
|
1455
|
+
isElement(reference) && !animationFrame && observer.observe(reference);
|
|
1456
|
+
if (!isElement(reference) && reference.contextElement && !animationFrame) {
|
|
1457
|
+
observer.observe(reference.contextElement);
|
|
1458
|
+
}
|
|
1459
|
+
observer.observe(floating);
|
|
1460
|
+
}
|
|
1461
|
+
let frameId;
|
|
1462
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
1463
|
+
if (animationFrame) {
|
|
1464
|
+
frameLoop();
|
|
1465
|
+
}
|
|
1466
|
+
function frameLoop() {
|
|
1467
|
+
const nextRefRect = getBoundingClientRect(reference);
|
|
1468
|
+
if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
|
|
1469
|
+
update();
|
|
1470
|
+
}
|
|
1471
|
+
prevRefRect = nextRefRect;
|
|
1472
|
+
frameId = requestAnimationFrame(frameLoop);
|
|
1473
|
+
}
|
|
1474
|
+
update();
|
|
1475
|
+
return () => {
|
|
1476
|
+
var _observer;
|
|
1477
|
+
ancestors.forEach(ancestor => {
|
|
1478
|
+
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
1479
|
+
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
1480
|
+
});
|
|
1481
|
+
(_observer = observer) == null ? void 0 : _observer.disconnect();
|
|
1482
|
+
observer = null;
|
|
1483
|
+
if (animationFrame) {
|
|
1484
|
+
cancelAnimationFrame(frameId);
|
|
1485
|
+
}
|
|
1486
|
+
};
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
/**
|
|
1490
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
|
1491
|
+
* next to a reference element when it is given a certain CSS positioning
|
|
1492
|
+
* strategy.
|
|
1493
|
+
*/
|
|
1494
|
+
const computePosition = (reference, floating, options) => {
|
|
1495
|
+
// This caches the expensive `getClippingElementAncestors` function so that
|
|
1496
|
+
// multiple lifecycle resets re-use the same result. It only lives for a
|
|
1497
|
+
// single call. If other functions become expensive, we can add them as well.
|
|
1498
|
+
const cache = new Map();
|
|
1499
|
+
const mergedOptions = {
|
|
1500
|
+
platform,
|
|
1501
|
+
...options
|
|
1502
|
+
};
|
|
1503
|
+
const platformWithCache = {
|
|
1504
|
+
...mergedOptions.platform,
|
|
1505
|
+
_c: cache
|
|
1506
|
+
};
|
|
1507
|
+
return computePosition$1(reference, floating, {
|
|
1508
|
+
...mergedOptions,
|
|
1509
|
+
platform: platformWithCache
|
|
1510
|
+
});
|
|
1511
|
+
};
|
|
1512
|
+
|
|
1513
|
+
/**
|
|
1514
|
+
* This module helps users provide custom configuration for component internals.
|
|
1515
|
+
*
|
|
1516
|
+
* @internal
|
|
1517
|
+
*/
|
|
1518
|
+
const configOverrides = globalThis["calciteComponentsConfig"];
|
|
1519
|
+
const config = {
|
|
1520
|
+
/**
|
|
1521
|
+
* We apply a custom fix to improve positioning for non-Chromium browsers.
|
|
1522
|
+
* The fix comes at a performance cost, so provides users a way to opt-out if necessary.
|
|
1523
|
+
*
|
|
1524
|
+
* @internal
|
|
1525
|
+
*/
|
|
1526
|
+
floatingUINonChromiumPositioningFix: true,
|
|
1527
|
+
...configOverrides
|
|
1528
|
+
};
|
|
1529
|
+
|
|
1530
|
+
const floatingUIBrowserCheck = patchFloatingUiForNonChromiumBrowsers();
|
|
1531
|
+
async function patchFloatingUiForNonChromiumBrowsers() {
|
|
1532
|
+
function getUAData() {
|
|
1533
|
+
return navigator.userAgentData;
|
|
1534
|
+
}
|
|
1535
|
+
function getUAString() {
|
|
1536
|
+
const uaData = getUAData();
|
|
1537
|
+
return uaData?.brands
|
|
1538
|
+
? uaData.brands.map(({ brand, version }) => `${brand}/${version}`).join(" ")
|
|
1539
|
+
: navigator.userAgent;
|
|
1540
|
+
}
|
|
1541
|
+
function isChrome109OrAbove() {
|
|
1542
|
+
const uaData = getUAData();
|
|
1543
|
+
if (uaData?.brands) {
|
|
1544
|
+
return !!uaData.brands.find(({ brand, version }) => (brand === "Google Chrome" || brand === "Chromium") && Number(version) >= 109);
|
|
1545
|
+
}
|
|
1546
|
+
return !!navigator.userAgent.split(" ").find((ua) => {
|
|
1547
|
+
const [browser, version] = ua.split("/");
|
|
1548
|
+
return browser === "Chrome" && parseInt(version) >= 109;
|
|
1549
|
+
});
|
|
1550
|
+
}
|
|
1551
|
+
if (config.floatingUINonChromiumPositioningFix &&
|
|
1552
|
+
// ⚠️ browser-sniffing is not a best practice and should be avoided ⚠️
|
|
1553
|
+
(/firefox|safari/i.test(getUAString()) || isChrome109OrAbove())) {
|
|
1554
|
+
const { offsetParent } = await Promise.resolve().then(function () { return require('./composed-offset-position.esm-52a724af.js'); });
|
|
1555
|
+
const originalGetOffsetParent = platform.getOffsetParent;
|
|
1556
|
+
platform.getOffsetParent = (element) => originalGetOffsetParent(element, offsetParent);
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
/**
|
|
1560
|
+
* Exported for testing purposes only
|
|
1561
|
+
*/
|
|
1562
|
+
const placementDataAttribute = "data-placement";
|
|
1563
|
+
/**
|
|
1564
|
+
* Exported for testing purposes only
|
|
1565
|
+
*/
|
|
1566
|
+
const repositionDebounceTimeout = 100;
|
|
1567
|
+
const effectivePlacements = [
|
|
1568
|
+
"top",
|
|
1569
|
+
"bottom",
|
|
1570
|
+
"right",
|
|
1571
|
+
"left",
|
|
1572
|
+
"top-start",
|
|
1573
|
+
"top-end",
|
|
1574
|
+
"bottom-start",
|
|
1575
|
+
"bottom-end",
|
|
1576
|
+
"right-start",
|
|
1577
|
+
"right-end",
|
|
1578
|
+
"left-start",
|
|
1579
|
+
"left-end"
|
|
1580
|
+
];
|
|
1581
|
+
const defaultMenuPlacement = "bottom-start";
|
|
1582
|
+
const FloatingCSS = {
|
|
1583
|
+
animation: "calcite-floating-ui-anim",
|
|
1584
|
+
animationActive: "calcite-floating-ui-anim--active"
|
|
1585
|
+
};
|
|
1586
|
+
function getMiddleware({ placement, flipDisabled, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type }) {
|
|
1587
|
+
const defaultMiddleware = [shift(), hide()];
|
|
1588
|
+
if (type === "menu") {
|
|
1589
|
+
return [
|
|
1590
|
+
...defaultMiddleware,
|
|
1591
|
+
flip({
|
|
1592
|
+
fallbackPlacements: flipPlacements || ["top-start", "top", "top-end", "bottom-start", "bottom", "bottom-end"]
|
|
1593
|
+
})
|
|
1594
|
+
];
|
|
1595
|
+
}
|
|
1596
|
+
if (type === "popover" || type === "tooltip") {
|
|
1597
|
+
const middleware = [
|
|
1598
|
+
...defaultMiddleware,
|
|
1599
|
+
offset({
|
|
1600
|
+
mainAxis: typeof offsetDistance === "number" ? offsetDistance : 0,
|
|
1601
|
+
crossAxis: typeof offsetSkidding === "number" ? offsetSkidding : 0
|
|
1602
|
+
})
|
|
1603
|
+
];
|
|
1604
|
+
if (placement === "auto" || placement === "auto-start" || placement === "auto-end") {
|
|
1605
|
+
middleware.push(autoPlacement({ alignment: placement === "auto-start" ? "start" : placement === "auto-end" ? "end" : null }));
|
|
1606
|
+
}
|
|
1607
|
+
else if (!flipDisabled) {
|
|
1608
|
+
middleware.push(flip(flipPlacements ? { fallbackPlacements: flipPlacements } : {}));
|
|
1609
|
+
}
|
|
1610
|
+
if (arrowEl) {
|
|
1611
|
+
middleware.push(arrow({
|
|
1612
|
+
element: arrowEl
|
|
1613
|
+
}));
|
|
1614
|
+
}
|
|
1615
|
+
return middleware;
|
|
1616
|
+
}
|
|
1617
|
+
return [];
|
|
1618
|
+
}
|
|
1619
|
+
function filterComputedPlacements(placements, el) {
|
|
1620
|
+
const filteredPlacements = placements.filter((placement) => effectivePlacements.includes(placement));
|
|
1621
|
+
if (filteredPlacements.length !== placements.length) {
|
|
1622
|
+
console.warn(`${el.tagName}: Invalid value found in: flipPlacements. Try any of these: ${effectivePlacements
|
|
1623
|
+
.map((placement) => `"${placement}"`)
|
|
1624
|
+
.join(", ")
|
|
1625
|
+
.trim()}`, { el });
|
|
1626
|
+
}
|
|
1627
|
+
return filteredPlacements;
|
|
1628
|
+
}
|
|
1629
|
+
function getEffectivePlacement(floatingEl, placement) {
|
|
1630
|
+
const placements = ["left", "right"];
|
|
1631
|
+
if (dom.getElementDir(floatingEl) === "rtl") {
|
|
1632
|
+
placements.reverse();
|
|
1633
|
+
}
|
|
1634
|
+
return placement.replace(/leading/gi, placements[0]).replace(/trailing/gi, placements[1]);
|
|
1635
|
+
}
|
|
1636
|
+
/**
|
|
1637
|
+
* Convenience function to manage `reposition` calls for FloatingUIComponents that use `positionFloatingUI.
|
|
1638
|
+
*
|
|
1639
|
+
* Note: this is not needed for components that use `calcite-popover`.
|
|
1640
|
+
*
|
|
1641
|
+
* @param component
|
|
1642
|
+
* @param options
|
|
1643
|
+
* @param options.referenceEl
|
|
1644
|
+
* @param options.floatingEl
|
|
1645
|
+
* @param options.overlayPositioning
|
|
1646
|
+
* @param options.placement
|
|
1647
|
+
* @param options.flipDisabled
|
|
1648
|
+
* @param options.flipPlacements
|
|
1649
|
+
* @param options.offsetDistance
|
|
1650
|
+
* @param options.offsetSkidding
|
|
1651
|
+
* @param options.arrowEl
|
|
1652
|
+
* @param options.type
|
|
1653
|
+
* @param delayed
|
|
1654
|
+
*/
|
|
1655
|
+
async function reposition(component, options, delayed = false) {
|
|
1656
|
+
if (!component.open) {
|
|
1657
|
+
return;
|
|
1658
|
+
}
|
|
1659
|
+
return delayed ? debouncedReposition(component, options) : positionFloatingUI(component, options);
|
|
1660
|
+
}
|
|
1661
|
+
const debouncedReposition = debounce.debounce(positionFloatingUI, repositionDebounceTimeout, {
|
|
1662
|
+
leading: true,
|
|
1663
|
+
maxWait: repositionDebounceTimeout
|
|
1664
|
+
});
|
|
1665
|
+
const ARROW_CSS_TRANSFORM = {
|
|
1666
|
+
top: "",
|
|
1667
|
+
left: "rotate(-90deg)",
|
|
1668
|
+
bottom: "rotate(180deg)",
|
|
1669
|
+
right: "rotate(90deg)"
|
|
1670
|
+
};
|
|
1671
|
+
/**
|
|
1672
|
+
* Positions the floating element relative to the reference element.
|
|
1673
|
+
*
|
|
1674
|
+
* **Note:** exported for testing purposes only
|
|
1675
|
+
*
|
|
1676
|
+
* @param root0
|
|
1677
|
+
* @param root0.referenceEl
|
|
1678
|
+
* @param root0.floatingEl
|
|
1679
|
+
* @param root0.overlayPositioning
|
|
1680
|
+
* @param root0.placement
|
|
1681
|
+
* @param root0.flipDisabled
|
|
1682
|
+
* @param root0.flipPlacements
|
|
1683
|
+
* @param root0.offsetDistance
|
|
1684
|
+
* @param root0.offsetSkidding
|
|
1685
|
+
* @param root0.arrowEl
|
|
1686
|
+
* @param root0.type
|
|
1687
|
+
* @param component
|
|
1688
|
+
* @param root0.referenceEl.referenceEl
|
|
1689
|
+
* @param root0.referenceEl.floatingEl
|
|
1690
|
+
* @param root0.referenceEl.overlayPositioning
|
|
1691
|
+
* @param root0.referenceEl.placement
|
|
1692
|
+
* @param root0.referenceEl.flipDisabled
|
|
1693
|
+
* @param root0.referenceEl.flipPlacements
|
|
1694
|
+
* @param root0.referenceEl.offsetDistance
|
|
1695
|
+
* @param root0.referenceEl.offsetSkidding
|
|
1696
|
+
* @param root0.referenceEl.arrowEl
|
|
1697
|
+
* @param root0.referenceEl.type
|
|
1698
|
+
* @param component.referenceEl
|
|
1699
|
+
* @param component.floatingEl
|
|
1700
|
+
* @param component.overlayPositioning
|
|
1701
|
+
* @param component.placement
|
|
1702
|
+
* @param component.flipDisabled
|
|
1703
|
+
* @param component.flipPlacements
|
|
1704
|
+
* @param component.offsetDistance
|
|
1705
|
+
* @param component.offsetSkidding
|
|
1706
|
+
* @param component.arrowEl
|
|
1707
|
+
* @param component.type
|
|
1708
|
+
*/
|
|
1709
|
+
async function positionFloatingUI(component, { referenceEl, floatingEl, overlayPositioning = "absolute", placement, flipDisabled, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type }) {
|
|
1710
|
+
if (!referenceEl || !floatingEl) {
|
|
1711
|
+
return null;
|
|
1712
|
+
}
|
|
1713
|
+
await floatingUIBrowserCheck;
|
|
1714
|
+
const { x, y, placement: effectivePlacement, strategy: position, middlewareData } = await computePosition(referenceEl, floatingEl, {
|
|
1715
|
+
strategy: overlayPositioning,
|
|
1716
|
+
placement: placement === "auto" || placement === "auto-start" || placement === "auto-end"
|
|
1717
|
+
? undefined
|
|
1718
|
+
: getEffectivePlacement(floatingEl, placement),
|
|
1719
|
+
middleware: getMiddleware({
|
|
1720
|
+
placement,
|
|
1721
|
+
flipDisabled,
|
|
1722
|
+
flipPlacements,
|
|
1723
|
+
offsetDistance,
|
|
1724
|
+
offsetSkidding,
|
|
1725
|
+
arrowEl,
|
|
1726
|
+
type
|
|
1727
|
+
})
|
|
1728
|
+
});
|
|
1729
|
+
if (arrowEl && middlewareData.arrow) {
|
|
1730
|
+
const { x, y } = middlewareData.arrow;
|
|
1731
|
+
const side = effectivePlacement.split("-")[0];
|
|
1732
|
+
const alignment = x != null ? "left" : "top";
|
|
1733
|
+
const transform = ARROW_CSS_TRANSFORM[side];
|
|
1734
|
+
const reset = { left: "", top: "", bottom: "", right: "" };
|
|
1735
|
+
if ("floatingLayout" in component) {
|
|
1736
|
+
component.floatingLayout = side === "left" || side === "right" ? "horizontal" : "vertical";
|
|
1737
|
+
}
|
|
1738
|
+
Object.assign(arrowEl.style, {
|
|
1739
|
+
...reset,
|
|
1740
|
+
[alignment]: `${alignment == "left" ? x : y}px`,
|
|
1741
|
+
[side]: "100%",
|
|
1742
|
+
transform
|
|
1743
|
+
});
|
|
1744
|
+
}
|
|
1745
|
+
const referenceHidden = middlewareData.hide?.referenceHidden;
|
|
1746
|
+
const visibility = referenceHidden ? "hidden" : null;
|
|
1747
|
+
const pointerEvents = visibility ? "none" : null;
|
|
1748
|
+
floatingEl.setAttribute(placementDataAttribute, effectivePlacement);
|
|
1749
|
+
const transform = `translate(${Math.round(x)}px,${Math.round(y)}px)`;
|
|
1750
|
+
Object.assign(floatingEl.style, {
|
|
1751
|
+
visibility,
|
|
1752
|
+
pointerEvents,
|
|
1753
|
+
position,
|
|
1754
|
+
top: "0",
|
|
1755
|
+
left: "0",
|
|
1756
|
+
transform
|
|
1757
|
+
});
|
|
1758
|
+
}
|
|
1759
|
+
/**
|
|
1760
|
+
* Exported for testing purposes only
|
|
1761
|
+
*
|
|
1762
|
+
* @internal
|
|
1763
|
+
*/
|
|
1764
|
+
const cleanupMap = new WeakMap();
|
|
1765
|
+
/**
|
|
1766
|
+
* Helper to set up floating element interactions on connectedCallback.
|
|
1767
|
+
*
|
|
1768
|
+
* @param component
|
|
1769
|
+
* @param referenceEl
|
|
1770
|
+
* @param floatingEl
|
|
1771
|
+
*/
|
|
1772
|
+
function connectFloatingUI(component, referenceEl, floatingEl) {
|
|
1773
|
+
if (!floatingEl || !referenceEl) {
|
|
1774
|
+
return;
|
|
1775
|
+
}
|
|
1776
|
+
disconnectFloatingUI(component, referenceEl, floatingEl);
|
|
1777
|
+
Object.assign(floatingEl.style, {
|
|
1778
|
+
visibility: "hidden",
|
|
1779
|
+
pointerEvents: "none",
|
|
1780
|
+
// initial positioning based on https://floating-ui.com/docs/computePosition#initial-layout
|
|
1781
|
+
position: component.overlayPositioning,
|
|
1782
|
+
top: "0",
|
|
1783
|
+
left: "0"
|
|
1784
|
+
});
|
|
1785
|
+
const runAutoUpdate = autoUpdate
|
|
1786
|
+
;
|
|
1787
|
+
cleanupMap.set(component, runAutoUpdate(referenceEl, floatingEl, () => component.reposition()));
|
|
1788
|
+
}
|
|
1789
|
+
/**
|
|
1790
|
+
* Helper to tear down floating element interactions on disconnectedCallback.
|
|
1791
|
+
*
|
|
1792
|
+
* @param component
|
|
1793
|
+
* @param referenceEl
|
|
1794
|
+
* @param floatingEl
|
|
1795
|
+
*/
|
|
1796
|
+
function disconnectFloatingUI(component, referenceEl, floatingEl) {
|
|
1797
|
+
if (!floatingEl || !referenceEl) {
|
|
1798
|
+
return;
|
|
1799
|
+
}
|
|
1800
|
+
const cleanup = cleanupMap.get(component);
|
|
1801
|
+
if (cleanup) {
|
|
1802
|
+
cleanup();
|
|
1803
|
+
}
|
|
1804
|
+
cleanupMap.delete(component);
|
|
1805
|
+
}
|
|
1806
|
+
const visiblePointerSize = 4;
|
|
1807
|
+
/**
|
|
1808
|
+
* Default offset the position of the floating element away from the reference element.
|
|
1809
|
+
*
|
|
1810
|
+
* @default 6
|
|
1811
|
+
*/
|
|
1812
|
+
const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePointerSize));
|
|
1813
|
+
|
|
1814
|
+
exports.FloatingCSS = FloatingCSS;
|
|
1815
|
+
exports.connectFloatingUI = connectFloatingUI;
|
|
1816
|
+
exports.defaultMenuPlacement = defaultMenuPlacement;
|
|
1817
|
+
exports.defaultOffsetDistance = defaultOffsetDistance;
|
|
1818
|
+
exports.disconnectFloatingUI = disconnectFloatingUI;
|
|
1819
|
+
exports.filterComputedPlacements = filterComputedPlacements;
|
|
1820
|
+
exports.reposition = reposition;
|