@pine-ds/core 3.26.4 → 3.27.0
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/components/attributes.js +1 -85
- package/components/closest.js +1 -12
- package/components/floating-ui.dom.js +1 -1631
- package/components/form.js +1 -62
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -54
- package/components/index2.js +1 -20
- package/components/mock-pds-modal.js +1 -119
- package/components/pds-accordion.js +1 -74
- package/components/pds-alert.js +1 -115
- package/components/pds-avatar.js +1 -141
- package/components/pds-box.js +1 -9
- package/components/pds-box2.js +1 -283
- package/components/pds-button.js +1 -9
- package/components/pds-button2.js +1 -250
- package/components/pds-checkbox.js +1 -9
- package/components/pds-checkbox2.js +1 -150
- package/components/pds-chip.js +1 -9
- package/components/pds-chip2.js +1 -167
- package/components/pds-combobox.js +2 -2958
- package/components/pds-container.js +1 -61
- package/components/pds-copytext.js +1 -154
- package/components/pds-divider.js +1 -58
- package/components/pds-dropdown-menu-item.js +1 -128
- package/components/pds-dropdown-menu-separator.js +1 -46
- package/components/pds-dropdown-menu.js +1 -349
- package/components/pds-filter.js +1 -524
- package/components/pds-filters.js +1 -40
- package/components/pds-icon.js +1 -9
- package/components/pds-icon2.js +1 -601
- package/components/pds-image.js +1 -61
- package/components/pds-input.js +1 -372
- package/components/pds-link.js +1 -9
- package/components/pds-link2.js +1 -93
- package/components/pds-loader.js +1 -9
- package/components/pds-loader2.js +1 -79
- package/components/pds-modal-content.js +1 -214
- package/components/pds-modal-footer.js +1 -37
- package/components/pds-modal-header.js +1 -37
- package/components/pds-modal.js +1 -291
- package/components/pds-multiselect.js +1 -1087
- package/components/pds-popover.js +1 -602
- package/components/pds-progress.js +1 -60
- package/components/pds-property.js +1 -57
- package/components/pds-radio-group.js +1 -211
- package/components/pds-radio.js +1 -138
- package/components/pds-row.js +1 -99
- package/components/pds-select.js +1 -291
- package/components/pds-sortable-item.js +1 -67
- package/components/pds-sortable.js +2 -2747
- package/components/pds-switch.js +1 -147
- package/components/pds-tab.js +1 -71
- package/components/pds-table-body.js +1 -38
- package/components/pds-table-cell.js +1 -9
- package/components/pds-table-cell2.js +1 -169
- package/components/pds-table-head-cell.js +1 -9
- package/components/pds-table-head-cell2.js +1 -254
- package/components/pds-table-head.js +1 -102
- package/components/pds-table-row.js +1 -197
- package/components/pds-table.js +1 -291
- package/components/pds-tabpanel.js +1 -48
- package/components/pds-tabs.js +1 -126
- package/components/pds-text.js +1 -9
- package/components/pds-text2.js +1 -110
- package/components/pds-textarea.js +1 -376
- package/components/pds-toast.js +1 -175
- package/components/pds-tooltip.js +1 -362
- package/components/scroll.js +1 -78
- package/components/truncation-tooltip.js +1 -247
- package/components/utils.js +1 -74
- package/dist/cjs/attributes-oNMnBEnP.js +0 -3
- package/dist/cjs/closest-BZXvuB_Y.js +0 -3
- package/dist/cjs/floating-ui.dom-BZk7Blsu.js +0 -3
- package/dist/cjs/form-CpM5Z8q7.js +0 -3
- package/dist/cjs/{index-BUvWX8u2.js → index-DBhfI2Jq.js} +567 -387
- package/dist/cjs/index-DGBoDsAL.js +0 -3
- package/dist/cjs/index.cjs.js +0 -1
- package/dist/cjs/loader.cjs.js +2 -3
- package/dist/cjs/mock-pds-modal.cjs.entry.js +3 -4
- package/dist/cjs/pds-accordion.cjs.entry.js +7 -6
- package/dist/cjs/pds-alert.cjs.entry.js +4 -5
- package/dist/cjs/pds-avatar.cjs.entry.js +3 -4
- package/dist/cjs/pds-box.cjs.entry.js +3 -4
- package/dist/cjs/pds-button.cjs.entry.js +3 -4
- package/dist/cjs/pds-checkbox.cjs.entry.js +9 -6
- package/dist/cjs/pds-chip.cjs.entry.js +4 -5
- package/dist/cjs/pds-combobox.cjs.entry.js +18 -9
- package/dist/cjs/pds-container.cjs.entry.js +3 -4
- package/dist/cjs/pds-copytext.cjs.entry.js +10 -7
- package/dist/cjs/pds-divider.cjs.entry.js +3 -4
- package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +3 -4
- package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +3 -4
- package/dist/cjs/pds-dropdown-menu.cjs.entry.js +3 -4
- package/dist/cjs/pds-filter.cjs.entry.js +3 -4
- package/dist/cjs/pds-filters.cjs.entry.js +3 -4
- package/dist/cjs/pds-icon.cjs.entry.js +18 -9
- package/dist/cjs/pds-image.cjs.entry.js +3 -4
- package/dist/cjs/pds-input.cjs.entry.js +12 -9
- package/dist/cjs/pds-link.cjs.entry.js +5 -6
- package/dist/cjs/pds-loader.cjs.entry.js +3 -4
- package/dist/cjs/pds-modal-content.cjs.entry.js +3 -4
- package/dist/cjs/pds-modal-footer.cjs.entry.js +3 -4
- package/dist/cjs/pds-modal-header.cjs.entry.js +3 -4
- package/dist/cjs/pds-modal.cjs.entry.js +6 -5
- package/dist/cjs/pds-multiselect.cjs.entry.js +15 -8
- package/dist/cjs/pds-popover.cjs.entry.js +3 -4
- package/dist/cjs/pds-progress.cjs.entry.js +3 -4
- package/dist/cjs/pds-property.cjs.entry.js +3 -4
- package/dist/cjs/pds-radio-group.cjs.entry.js +15 -8
- package/dist/cjs/pds-radio.cjs.entry.js +4 -5
- package/dist/cjs/pds-row.cjs.entry.js +3 -4
- package/dist/cjs/pds-select.cjs.entry.js +13 -10
- package/dist/cjs/pds-sortable-item.cjs.entry.js +4 -5
- package/dist/cjs/pds-sortable.cjs.entry.js +6 -5
- package/dist/cjs/pds-switch.cjs.entry.js +7 -6
- package/dist/cjs/pds-tab.cjs.entry.js +3 -4
- package/dist/cjs/pds-table-body.cjs.entry.js +3 -4
- package/dist/cjs/pds-table-cell.cjs.entry.js +6 -5
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +3 -4
- package/dist/cjs/pds-table-head.cjs.entry.js +3 -4
- package/dist/cjs/pds-table-row.cjs.entry.js +3 -4
- package/dist/cjs/pds-table.cjs.entry.js +3 -4
- package/dist/cjs/pds-tabpanel.cjs.entry.js +3 -4
- package/dist/cjs/pds-tabs.cjs.entry.js +3 -4
- package/dist/cjs/pds-text.cjs.entry.js +46 -6
- package/dist/cjs/pds-textarea.cjs.entry.js +14 -9
- package/dist/cjs/pds-toast.cjs.entry.js +6 -5
- package/dist/cjs/pds-tooltip.cjs.entry.js +6 -5
- package/dist/cjs/pine-core.cjs.js +3 -4
- package/dist/cjs/scroll-2XcoE_6Q.js +0 -3
- package/dist/cjs/truncation-tooltip-CVzAha5B.js +0 -3
- package/dist/cjs/utils-7jx8T2mW.js +0 -3
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/_internal/pds-label/pds-label.js +0 -1
- package/dist/collection/components/pds-accordion/pds-accordion.js +1 -2
- package/dist/collection/components/pds-alert/pds-alert.js +0 -1
- package/dist/collection/components/pds-avatar/pds-avatar.js +0 -1
- package/dist/collection/components/pds-box/pds-box.js +206 -134
- package/dist/collection/components/pds-button/pds-button.css +74 -74
- package/dist/collection/components/pds-button/pds-button.js +2 -2
- package/dist/collection/components/pds-checkbox/checkbox-interface.js +0 -1
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +4 -3
- package/dist/collection/components/pds-chip/pds-chip.js +6 -4
- package/dist/collection/components/pds-combobox/combobox-interface.js +0 -1
- package/dist/collection/components/pds-combobox/pds-combobox.css +3 -0
- package/dist/collection/components/pds-combobox/pds-combobox.js +10 -6
- package/dist/collection/components/pds-container/pds-container.js +0 -1
- package/dist/collection/components/pds-copytext/pds-copytext.js +1 -2
- package/dist/collection/components/pds-divider/pds-divider.js +0 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +0 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +0 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +2 -2
- package/dist/collection/components/pds-filters/pds-filter/filter-interface.js +0 -1
- package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +8 -5
- package/dist/collection/components/pds-filters/pds-filters.js +0 -1
- package/dist/collection/components/pds-image/pds-image.js +0 -1
- package/dist/collection/components/pds-input/input-interface.js +0 -1
- package/dist/collection/components/pds-input/pds-input.js +5 -4
- package/dist/collection/components/pds-link/pds-link.js +154 -3
- package/dist/collection/components/pds-loader/pds-loader.js +0 -1
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +0 -1
- package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +0 -1
- package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +0 -1
- package/dist/collection/components/pds-modal/pds-modal.js +0 -1
- package/dist/collection/components/pds-modal/test/mock-pds-modal.js +0 -1
- package/dist/collection/components/pds-multiselect/multiselect-interface.js +0 -1
- package/dist/collection/components/pds-multiselect/pds-multiselect.css +1 -0
- package/dist/collection/components/pds-multiselect/pds-multiselect.js +12 -7
- package/dist/collection/components/pds-popover/pds-popover.js +6 -4
- package/dist/collection/components/pds-popover/popover-interface.js +0 -1
- package/dist/collection/components/pds-progress/pds-progress.js +0 -1
- package/dist/collection/components/pds-property/pds-property.js +0 -1
- package/dist/collection/components/pds-radio/pds-radio.js +0 -1
- package/dist/collection/components/pds-radio-group/pds-radio-group.js +2 -2
- package/dist/collection/components/pds-radio-group/radio-group-interface.js +0 -1
- package/dist/collection/components/pds-row/pds-row.js +9 -7
- package/dist/collection/components/pds-select/pds-select.js +2 -3
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -2
- package/dist/collection/components/pds-sortable/pds-sortable.js +2 -2
- package/dist/collection/components/pds-sortable/sortable-interface.js +0 -1
- package/dist/collection/components/pds-switch/pds-switch.js +0 -1
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +0 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +0 -1
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +0 -1
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +0 -1
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +0 -1
- package/dist/collection/components/pds-table/pds-table.css +1 -0
- package/dist/collection/components/pds-table/pds-table.js +0 -1
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +0 -1
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +0 -1
- package/dist/collection/components/pds-tabs/pds-tabs.js +0 -1
- package/dist/collection/components/pds-text/pds-text.js +31 -4
- package/dist/collection/components/pds-textarea/pds-textarea.js +4 -3
- package/dist/collection/components/pds-textarea/textarea-interface.js +0 -1
- package/dist/collection/components/pds-toast/pds-toast.js +0 -1
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
- package/dist/collection/global/pine-ui-global.js +0 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/attributes.js +0 -1
- package/dist/collection/utils/closest.js +0 -1
- package/dist/collection/utils/form.js +0 -1
- package/dist/collection/utils/interfaces.js +0 -1
- package/dist/collection/utils/overlay.js +0 -1
- package/dist/collection/utils/scroll.js +0 -1
- package/dist/collection/utils/test/axe.js +9 -4
- package/dist/collection/utils/truncation-tooltip.js +0 -1
- package/dist/collection/utils/types.js +18 -2
- package/dist/collection/utils/utils.js +0 -1
- package/dist/docs.d.ts +37 -0
- package/dist/docs.json +2335 -1965
- package/dist/esm/attributes-C0M1gTKv.js +0 -3
- package/dist/esm/closest-DnUJodVd.js +0 -3
- package/dist/esm/floating-ui.dom-DDtwbwIl.js +0 -3
- package/dist/esm/form-C3xDZBme.js +0 -3
- package/dist/esm/{index-B2f84Zog.js → index-CaRgVPt7.js} +567 -387
- package/dist/esm/index-D4ys0pep.js +0 -3
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +3 -4
- package/dist/esm/mock-pds-modal.entry.js +3 -4
- package/dist/esm/pds-accordion.entry.js +7 -6
- package/dist/esm/pds-alert.entry.js +4 -5
- package/dist/esm/pds-avatar.entry.js +3 -4
- package/dist/esm/pds-box.entry.js +3 -4
- package/dist/esm/pds-button.entry.js +3 -4
- package/dist/esm/pds-checkbox.entry.js +9 -6
- package/dist/esm/pds-chip.entry.js +4 -5
- package/dist/esm/pds-combobox.entry.js +18 -9
- package/dist/esm/pds-container.entry.js +3 -4
- package/dist/esm/pds-copytext.entry.js +10 -7
- package/dist/esm/pds-divider.entry.js +3 -4
- package/dist/esm/pds-dropdown-menu-item.entry.js +3 -4
- package/dist/esm/pds-dropdown-menu-separator.entry.js +3 -4
- package/dist/esm/pds-dropdown-menu.entry.js +3 -4
- package/dist/esm/pds-filter.entry.js +3 -4
- package/dist/esm/pds-filters.entry.js +3 -4
- package/dist/esm/pds-icon.entry.js +18 -9
- package/dist/esm/pds-image.entry.js +3 -4
- package/dist/esm/pds-input.entry.js +12 -9
- package/dist/esm/pds-link.entry.js +5 -6
- package/dist/esm/pds-loader.entry.js +3 -4
- package/dist/esm/pds-modal-content.entry.js +3 -4
- package/dist/esm/pds-modal-footer.entry.js +3 -4
- package/dist/esm/pds-modal-header.entry.js +3 -4
- package/dist/esm/pds-modal.entry.js +6 -5
- package/dist/esm/pds-multiselect.entry.js +15 -8
- package/dist/esm/pds-popover.entry.js +3 -4
- package/dist/esm/pds-progress.entry.js +3 -4
- package/dist/esm/pds-property.entry.js +3 -4
- package/dist/esm/pds-radio-group.entry.js +15 -8
- package/dist/esm/pds-radio.entry.js +4 -5
- package/dist/esm/pds-row.entry.js +3 -4
- package/dist/esm/pds-select.entry.js +13 -10
- package/dist/esm/pds-sortable-item.entry.js +4 -5
- package/dist/esm/pds-sortable.entry.js +6 -5
- package/dist/esm/pds-switch.entry.js +7 -6
- package/dist/esm/pds-tab.entry.js +3 -4
- package/dist/esm/pds-table-body.entry.js +3 -4
- package/dist/esm/pds-table-cell.entry.js +6 -5
- package/dist/esm/pds-table-head-cell.entry.js +3 -4
- package/dist/esm/pds-table-head.entry.js +3 -4
- package/dist/esm/pds-table-row.entry.js +3 -4
- package/dist/esm/pds-table.entry.js +3 -4
- package/dist/esm/pds-tabpanel.entry.js +3 -4
- package/dist/esm/pds-tabs.entry.js +3 -4
- package/dist/esm/pds-text.entry.js +46 -6
- package/dist/esm/pds-textarea.entry.js +14 -9
- package/dist/esm/pds-toast.entry.js +6 -5
- package/dist/esm/pds-tooltip.entry.js +6 -5
- package/dist/esm/pine-core.js +4 -5
- package/dist/esm/scroll-DtgUQhjl.js +0 -3
- package/dist/esm/truncation-tooltip-Blk4GigP.js +0 -3
- package/dist/esm/utils-tJa4KYNO.js +0 -3
- package/dist/esm-es5/attributes-C0M1gTKv.js +1 -2
- package/dist/esm-es5/closest-DnUJodVd.js +1 -2
- package/dist/esm-es5/floating-ui.dom-DDtwbwIl.js +1 -2
- package/dist/esm-es5/form-C3xDZBme.js +1 -2
- package/dist/esm-es5/index-CaRgVPt7.js +2 -0
- package/dist/esm-es5/index-D4ys0pep.js +1 -2
- package/dist/esm-es5/index.js +0 -2
- package/dist/esm-es5/loader.js +1 -2
- package/dist/esm-es5/mock-pds-modal.entry.js +1 -2
- package/dist/esm-es5/pds-accordion.entry.js +1 -2
- package/dist/esm-es5/pds-alert.entry.js +1 -2
- package/dist/esm-es5/pds-avatar.entry.js +1 -2
- package/dist/esm-es5/pds-box.entry.js +1 -2
- package/dist/esm-es5/pds-button.entry.js +1 -2
- package/dist/esm-es5/pds-checkbox.entry.js +1 -2
- package/dist/esm-es5/pds-chip.entry.js +1 -2
- package/dist/esm-es5/pds-combobox.entry.js +2 -3
- package/dist/esm-es5/pds-container.entry.js +1 -2
- package/dist/esm-es5/pds-copytext.entry.js +1 -2
- package/dist/esm-es5/pds-divider.entry.js +1 -2
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -2
- package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -2
- package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -2
- package/dist/esm-es5/pds-filter.entry.js +1 -2
- package/dist/esm-es5/pds-filters.entry.js +1 -2
- package/dist/esm-es5/pds-icon.entry.js +1 -2
- package/dist/esm-es5/pds-image.entry.js +1 -2
- package/dist/esm-es5/pds-input.entry.js +1 -2
- package/dist/esm-es5/pds-link.entry.js +1 -2
- package/dist/esm-es5/pds-loader.entry.js +1 -2
- package/dist/esm-es5/pds-modal-content.entry.js +1 -2
- package/dist/esm-es5/pds-modal-footer.entry.js +1 -2
- package/dist/esm-es5/pds-modal-header.entry.js +1 -2
- package/dist/esm-es5/pds-modal.entry.js +1 -2
- package/dist/esm-es5/pds-multiselect.entry.js +1 -2
- package/dist/esm-es5/pds-popover.entry.js +1 -2
- package/dist/esm-es5/pds-progress.entry.js +1 -2
- package/dist/esm-es5/pds-property.entry.js +1 -2
- package/dist/esm-es5/pds-radio-group.entry.js +1 -2
- package/dist/esm-es5/pds-radio.entry.js +1 -2
- package/dist/esm-es5/pds-row.entry.js +1 -2
- package/dist/esm-es5/pds-select.entry.js +1 -2
- package/dist/esm-es5/pds-sortable-item.entry.js +1 -2
- package/dist/esm-es5/pds-sortable.entry.js +2 -3
- package/dist/esm-es5/pds-switch.entry.js +1 -2
- package/dist/esm-es5/pds-tab.entry.js +1 -2
- package/dist/esm-es5/pds-table-body.entry.js +1 -2
- package/dist/esm-es5/pds-table-cell.entry.js +1 -2
- package/dist/esm-es5/pds-table-head-cell.entry.js +1 -2
- package/dist/esm-es5/pds-table-head.entry.js +1 -2
- package/dist/esm-es5/pds-table-row.entry.js +1 -2
- package/dist/esm-es5/pds-table.entry.js +1 -2
- package/dist/esm-es5/pds-tabpanel.entry.js +1 -2
- package/dist/esm-es5/pds-tabs.entry.js +1 -2
- package/dist/esm-es5/pds-text.entry.js +1 -2
- package/dist/esm-es5/pds-textarea.entry.js +1 -2
- package/dist/esm-es5/pds-toast.entry.js +1 -2
- package/dist/esm-es5/pds-tooltip.entry.js +1 -2
- package/dist/esm-es5/pine-core.js +1 -2
- package/dist/esm-es5/scroll-DtgUQhjl.js +1 -2
- package/dist/esm-es5/truncation-tooltip-Blk4GigP.js +1 -2
- package/dist/esm-es5/utils-tJa4KYNO.js +1 -2
- package/dist/pine-core/index.esm.js +0 -2
- package/dist/pine-core/p-002c420f.system.entry.js +1 -0
- package/dist/pine-core/p-003f91b1.system.entry.js +1 -0
- package/dist/pine-core/p-006398c3.system.entry.js +1 -0
- package/dist/pine-core/p-01dba061.entry.js +1 -0
- package/dist/pine-core/p-0451fdf7.entry.js +1 -0
- package/dist/pine-core/p-04f8b32a.entry.js +1 -0
- package/dist/pine-core/p-0bf56f61.entry.js +1 -0
- package/dist/pine-core/p-13ec2343.entry.js +1 -0
- package/dist/pine-core/p-190ba1df.entry.js +1 -0
- package/dist/pine-core/p-1e1804ed.system.entry.js +1 -0
- package/dist/pine-core/p-1e3beca4.system.entry.js +1 -0
- package/dist/pine-core/p-20f39b93.system.entry.js +1 -0
- package/dist/pine-core/p-22bfa998.entry.js +1 -0
- package/dist/pine-core/p-27ac77c3.entry.js +1 -0
- package/dist/pine-core/p-2b0cb8c4.system.entry.js +1 -0
- package/dist/pine-core/p-334b7c30.entry.js +1 -0
- package/dist/pine-core/p-3876b9be.entry.js +1 -0
- package/dist/pine-core/p-3a1b7302.system.entry.js +1 -0
- package/dist/pine-core/p-3ad9bcef.system.entry.js +1 -0
- package/dist/pine-core/p-3ba36512.system.entry.js +1 -0
- package/dist/pine-core/p-3f19666c.entry.js +1 -0
- package/dist/pine-core/p-3fa80c5a.system.entry.js +1 -0
- package/dist/pine-core/p-44388b8f.system.entry.js +1 -0
- package/dist/pine-core/p-44f58d33.system.entry.js +1 -0
- package/dist/pine-core/p-46de2438.entry.js +1 -0
- package/dist/pine-core/p-4abec102.system.entry.js +3 -0
- package/dist/pine-core/p-4e49712d.entry.js +1 -0
- package/dist/pine-core/p-52e9ec4f.entry.js +1 -0
- package/dist/pine-core/p-52f7115b.entry.js +1 -0
- package/dist/pine-core/p-5584a56b.entry.js +1 -0
- package/dist/pine-core/p-568bb210.system.entry.js +1 -0
- package/dist/pine-core/p-571d6bef.system.entry.js +1 -0
- package/dist/pine-core/p-587a15ee.system.entry.js +1 -0
- package/dist/pine-core/p-59a5dd77.system.entry.js +1 -0
- package/dist/pine-core/p-59c60e5b.entry.js +1 -0
- package/dist/pine-core/p-5a2df1e2.entry.js +1 -0
- package/dist/pine-core/p-5c6c2f79.system.entry.js +1 -0
- package/dist/pine-core/p-618ba6d5.system.entry.js +1 -0
- package/dist/pine-core/p-638e9cb3.entry.js +1 -0
- package/dist/pine-core/p-63e0d4a5.system.entry.js +1 -0
- package/dist/pine-core/p-65fb166c.system.entry.js +1 -0
- package/dist/pine-core/p-68121613.system.entry.js +1 -0
- package/dist/pine-core/p-6a2373d0.system.entry.js +1 -0
- package/dist/pine-core/p-6c5aacad.entry.js +1 -0
- package/dist/pine-core/p-71ca8845.system.entry.js +1 -0
- package/dist/pine-core/p-7247fb4f.entry.js +2 -0
- package/dist/pine-core/p-73b81009.entry.js +1 -0
- package/dist/pine-core/p-73dd2a2b.entry.js +1 -0
- package/dist/pine-core/p-74e06c8d.system.entry.js +1 -0
- package/dist/pine-core/p-7520a715.system.entry.js +1 -0
- package/dist/pine-core/p-7766e970.entry.js +1 -0
- package/dist/pine-core/p-7874fe2b.entry.js +1 -0
- package/dist/pine-core/p-791d357a.entry.js +1 -0
- package/dist/pine-core/p-7a4da839.entry.js +1 -0
- package/dist/pine-core/p-7aca41d9.system.entry.js +1 -0
- package/dist/pine-core/p-7b71f1bf.system.entry.js +1 -0
- package/dist/pine-core/p-7b954dbf.entry.js +1 -0
- package/dist/pine-core/p-8065c732.entry.js +1 -0
- package/dist/pine-core/p-829c52dc.entry.js +1 -0
- package/dist/pine-core/p-835d9f18.system.entry.js +1 -0
- package/dist/pine-core/p-83eb33d4.entry.js +1 -0
- package/dist/pine-core/p-855dfc31.system.entry.js +1 -0
- package/dist/pine-core/p-889fce8a.entry.js +7 -0
- package/dist/pine-core/p-974bf0c5.entry.js +1 -0
- package/dist/pine-core/p-9865431f.system.entry.js +1 -0
- package/dist/pine-core/p-B1u-QvFn.system.js +1 -2
- package/dist/pine-core/p-BG6uGRQj.system.js +1 -2
- package/dist/pine-core/p-BNSGedhN.js +1 -2
- package/dist/pine-core/p-BhQhw0S3.system.js +1 -2
- package/dist/pine-core/p-BrLs99ML.system.js +1 -2
- package/dist/pine-core/p-C0M1gTKv.js +1 -2
- package/dist/pine-core/p-C3xDZBme.js +1 -2
- package/dist/pine-core/p-C61CFP22.system.js +1 -0
- package/dist/pine-core/p-C62JIZmE.system.js +1 -2
- package/dist/pine-core/p-CRCxGYgw.system.js +1 -2
- package/dist/pine-core/p-CaRgVPt7.js +2 -0
- package/dist/pine-core/p-CdwliqhD.system.js +2 -0
- package/dist/pine-core/p-D4ys0pep.js +1 -2
- package/dist/pine-core/p-DDtwbwIl.js +1 -2
- package/dist/pine-core/p-DVra397g.system.js +1 -2
- package/dist/pine-core/p-DnUJodVd.js +1 -2
- package/dist/pine-core/p-DtgUQhjl.js +1 -2
- package/dist/pine-core/p-YWpyar7R.system.js +1 -2
- package/dist/pine-core/p-a1750a54.entry.js +1 -0
- package/dist/pine-core/p-a659cce1.entry.js +1 -0
- package/dist/pine-core/p-a739bdfa.entry.js +1 -0
- package/dist/pine-core/p-a982ac91.system.entry.js +1 -0
- package/dist/pine-core/p-ab957ace.system.entry.js +1 -0
- package/dist/pine-core/p-ae2b466a.system.entry.js +1 -0
- package/dist/pine-core/p-ae840ec4.entry.js +1 -0
- package/dist/pine-core/p-b0b6acdb.system.entry.js +1 -0
- package/dist/pine-core/p-b1b317a5.entry.js +1 -0
- package/dist/pine-core/p-b88be8be.entry.js +1 -0
- package/dist/pine-core/p-ba88ff60.system.entry.js +1 -0
- package/dist/pine-core/p-babd0607.system.entry.js +1 -0
- package/dist/pine-core/p-bdf18687.entry.js +1 -0
- package/dist/pine-core/p-c273210a.entry.js +1 -0
- package/dist/pine-core/p-c3a99f39.entry.js +1 -0
- package/dist/pine-core/p-ccb889d8.system.entry.js +1 -0
- package/dist/pine-core/p-cce6dcf0.system.entry.js +1 -0
- package/dist/pine-core/p-cce83ef0.entry.js +1 -0
- package/dist/pine-core/p-d09ae46d.system.entry.js +1 -0
- package/dist/pine-core/p-d5c1f85e.system.entry.js +1 -0
- package/dist/pine-core/p-db1572a3.entry.js +1 -0
- package/dist/pine-core/p-e0cfb931.system.entry.js +1 -0
- package/dist/pine-core/p-e291db30.entry.js +1 -0
- package/dist/pine-core/p-e620e492.system.entry.js +1 -0
- package/dist/pine-core/p-e70c9002.entry.js +1 -0
- package/dist/pine-core/p-e77c5c08.system.entry.js +1 -0
- package/dist/pine-core/p-edf4e4eb.system.entry.js +1 -0
- package/dist/pine-core/p-ee6f914c.entry.js +1 -0
- package/dist/pine-core/{p-85e889c3.system.entry.js → p-ef71710b.system.entry.js} +2 -3
- package/dist/pine-core/p-f2315f2a.entry.js +1 -0
- package/dist/pine-core/p-f2cf8e76.entry.js +1 -0
- package/dist/pine-core/p-f366f064.entry.js +1 -0
- package/dist/pine-core/p-f928817f.system.entry.js +1 -0
- package/dist/pine-core/p-fa81009f.system.entry.js +1 -0
- package/dist/pine-core/p-fb68e503.system.entry.js +1 -0
- package/dist/pine-core/p-kYMYDfJY.system.js +1 -2
- package/dist/pine-core/p-tJa4KYNO.js +1 -2
- package/dist/pine-core/pine-core.esm.js +1 -2
- package/dist/pine-core/pine-core.js +1 -1
- package/dist/scripts/vscode-custom-data-generator.js +0 -1
- package/dist/types/components/pds-link/pds-link.d.ts +40 -0
- package/dist/types/components/pds-text/pds-text.d.ts +4 -1
- package/dist/types/components.d.ts +768 -123
- package/dist/types/stencil-public-runtime.d.ts +110 -5
- package/dist/types/utils/test/axe.d.ts +5 -4
- package/dist/types/utils/types.d.ts +2 -0
- package/hydrate/index.d.ts +12 -0
- package/hydrate/index.js +5209 -1055
- package/hydrate/index.mjs +5208 -1056
- package/package.json +11 -11
- package/components/attributes.js.map +0 -1
- package/components/closest.js.map +0 -1
- package/components/floating-ui.dom.js.map +0 -1
- package/components/form.js.map +0 -1
- package/components/index.js.map +0 -1
- package/components/index2.js.map +0 -1
- package/components/mock-pds-modal.js.map +0 -1
- package/components/pds-accordion.js.map +0 -1
- package/components/pds-alert.js.map +0 -1
- package/components/pds-avatar.js.map +0 -1
- package/components/pds-box.js.map +0 -1
- package/components/pds-box2.js.map +0 -1
- package/components/pds-button.js.map +0 -1
- package/components/pds-button2.js.map +0 -1
- package/components/pds-checkbox.js.map +0 -1
- package/components/pds-checkbox2.js.map +0 -1
- package/components/pds-chip.js.map +0 -1
- package/components/pds-chip2.js.map +0 -1
- package/components/pds-combobox.js.map +0 -1
- package/components/pds-container.js.map +0 -1
- package/components/pds-copytext.js.map +0 -1
- package/components/pds-divider.js.map +0 -1
- package/components/pds-dropdown-menu-item.js.map +0 -1
- package/components/pds-dropdown-menu-separator.js.map +0 -1
- package/components/pds-dropdown-menu.js.map +0 -1
- package/components/pds-filter.js.map +0 -1
- package/components/pds-filters.js.map +0 -1
- package/components/pds-icon.js.map +0 -1
- package/components/pds-icon2.js.map +0 -1
- package/components/pds-image.js.map +0 -1
- package/components/pds-input.js.map +0 -1
- package/components/pds-link.js.map +0 -1
- package/components/pds-link2.js.map +0 -1
- package/components/pds-loader.js.map +0 -1
- package/components/pds-loader2.js.map +0 -1
- package/components/pds-modal-content.js.map +0 -1
- package/components/pds-modal-footer.js.map +0 -1
- package/components/pds-modal-header.js.map +0 -1
- package/components/pds-modal.js.map +0 -1
- package/components/pds-multiselect.js.map +0 -1
- package/components/pds-popover.js.map +0 -1
- package/components/pds-progress.js.map +0 -1
- package/components/pds-property.js.map +0 -1
- package/components/pds-radio-group.js.map +0 -1
- package/components/pds-radio.js.map +0 -1
- package/components/pds-row.js.map +0 -1
- package/components/pds-select.js.map +0 -1
- package/components/pds-sortable-item.js.map +0 -1
- package/components/pds-sortable.js.map +0 -1
- package/components/pds-switch.js.map +0 -1
- package/components/pds-tab.js.map +0 -1
- package/components/pds-table-body.js.map +0 -1
- package/components/pds-table-cell.js.map +0 -1
- package/components/pds-table-cell2.js.map +0 -1
- package/components/pds-table-head-cell.js.map +0 -1
- package/components/pds-table-head-cell2.js.map +0 -1
- package/components/pds-table-head.js.map +0 -1
- package/components/pds-table-row.js.map +0 -1
- package/components/pds-table.js.map +0 -1
- package/components/pds-tabpanel.js.map +0 -1
- package/components/pds-tabs.js.map +0 -1
- package/components/pds-text.js.map +0 -1
- package/components/pds-text2.js.map +0 -1
- package/components/pds-textarea.js.map +0 -1
- package/components/pds-toast.js.map +0 -1
- package/components/pds-tooltip.js.map +0 -1
- package/components/scroll.js.map +0 -1
- package/components/truncation-tooltip.js.map +0 -1
- package/components/utils.js.map +0 -1
- package/dist/cjs/attributes-oNMnBEnP.js.map +0 -1
- package/dist/cjs/closest-BZXvuB_Y.js.map +0 -1
- package/dist/cjs/floating-ui.dom-BZk7Blsu.js.map +0 -1
- package/dist/cjs/form-CpM5Z8q7.js.map +0 -1
- package/dist/cjs/index-BUvWX8u2.js.map +0 -1
- package/dist/cjs/index-DGBoDsAL.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/mock-pds-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-accordion.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-alert.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-avatar.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-box.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-button.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-checkbox.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-chip.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-combobox.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-container.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-copytext.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-divider.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-dropdown-menu-item.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-dropdown-menu-separator.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-dropdown-menu.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-filter.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-filters.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-icon.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-image.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-input.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-link.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-loader.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-modal-content.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-modal-footer.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-modal-header.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-multiselect.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-popover.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-progress.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-property.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-radio-group.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-radio.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-row.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-select.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-sortable-item.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-sortable.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-switch.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-tab.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-table-body.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-table-cell.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-table-head-cell.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-table-head.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-table-row.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-table.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-tabpanel.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-tabs.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-text.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-textarea.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-toast.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-tooltip.entry.cjs.js.map +0 -1
- package/dist/cjs/pine-core.cjs.js.map +0 -1
- package/dist/cjs/scroll-2XcoE_6Q.js.map +0 -1
- package/dist/cjs/truncation-tooltip-CVzAha5B.js.map +0 -1
- package/dist/cjs/utils-7jx8T2mW.js.map +0 -1
- package/dist/collection/components/_internal/pds-label/pds-label.js.map +0 -1
- package/dist/collection/components/pds-accordion/pds-accordion.js.map +0 -1
- package/dist/collection/components/pds-alert/pds-alert.js.map +0 -1
- package/dist/collection/components/pds-avatar/pds-avatar.js.map +0 -1
- package/dist/collection/components/pds-box/pds-box.js.map +0 -1
- package/dist/collection/components/pds-button/pds-button.js.map +0 -1
- package/dist/collection/components/pds-checkbox/checkbox-interface.js.map +0 -1
- package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +0 -1
- package/dist/collection/components/pds-chip/pds-chip.js.map +0 -1
- package/dist/collection/components/pds-combobox/combobox-interface.js.map +0 -1
- package/dist/collection/components/pds-combobox/pds-combobox.js.map +0 -1
- package/dist/collection/components/pds-container/pds-container.js.map +0 -1
- package/dist/collection/components/pds-copytext/pds-copytext.js.map +0 -1
- package/dist/collection/components/pds-divider/pds-divider.js.map +0 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js.map +0 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js.map +0 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js.map +0 -1
- package/dist/collection/components/pds-filters/pds-filter/filter-interface.js.map +0 -1
- package/dist/collection/components/pds-filters/pds-filter/pds-filter.js.map +0 -1
- package/dist/collection/components/pds-filters/pds-filters.js.map +0 -1
- package/dist/collection/components/pds-image/pds-image.js.map +0 -1
- package/dist/collection/components/pds-input/input-interface.js.map +0 -1
- package/dist/collection/components/pds-input/pds-input.js.map +0 -1
- package/dist/collection/components/pds-link/pds-link.js.map +0 -1
- package/dist/collection/components/pds-loader/pds-loader.js.map +0 -1
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js.map +0 -1
- package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js.map +0 -1
- package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js.map +0 -1
- package/dist/collection/components/pds-modal/pds-modal.js.map +0 -1
- package/dist/collection/components/pds-modal/test/mock-pds-modal.js.map +0 -1
- package/dist/collection/components/pds-multiselect/multiselect-interface.js.map +0 -1
- package/dist/collection/components/pds-multiselect/pds-multiselect.js.map +0 -1
- package/dist/collection/components/pds-popover/pds-popover.js.map +0 -1
- package/dist/collection/components/pds-popover/popover-interface.js.map +0 -1
- package/dist/collection/components/pds-progress/pds-progress.js.map +0 -1
- package/dist/collection/components/pds-property/pds-property.js.map +0 -1
- package/dist/collection/components/pds-radio/pds-radio.js.map +0 -1
- package/dist/collection/components/pds-radio-group/pds-radio-group.js.map +0 -1
- package/dist/collection/components/pds-radio-group/radio-group-interface.js.map +0 -1
- package/dist/collection/components/pds-row/pds-row.js.map +0 -1
- package/dist/collection/components/pds-select/pds-select.js.map +0 -1
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js.map +0 -1
- package/dist/collection/components/pds-sortable/pds-sortable.js.map +0 -1
- package/dist/collection/components/pds-sortable/sortable-interface.js.map +0 -1
- package/dist/collection/components/pds-switch/pds-switch.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table.js.map +0 -1
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js.map +0 -1
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js.map +0 -1
- package/dist/collection/components/pds-tabs/pds-tabs.js.map +0 -1
- package/dist/collection/components/pds-text/pds-text.js.map +0 -1
- package/dist/collection/components/pds-textarea/pds-textarea.js.map +0 -1
- package/dist/collection/components/pds-textarea/textarea-interface.js.map +0 -1
- package/dist/collection/components/pds-toast/pds-toast.js.map +0 -1
- package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +0 -1
- package/dist/collection/global/pine-ui-global.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/utils/attributes.js.map +0 -1
- package/dist/collection/utils/closest.js.map +0 -1
- package/dist/collection/utils/form.js.map +0 -1
- package/dist/collection/utils/interfaces.js.map +0 -1
- package/dist/collection/utils/overlay.js.map +0 -1
- package/dist/collection/utils/scroll.js.map +0 -1
- package/dist/collection/utils/test/axe.js.map +0 -1
- package/dist/collection/utils/truncation-tooltip.js.map +0 -1
- package/dist/collection/utils/types.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/esm/attributes-C0M1gTKv.js.map +0 -1
- package/dist/esm/closest-DnUJodVd.js.map +0 -1
- package/dist/esm/floating-ui.dom-DDtwbwIl.js.map +0 -1
- package/dist/esm/form-C3xDZBme.js.map +0 -1
- package/dist/esm/index-B2f84Zog.js.map +0 -1
- package/dist/esm/index-D4ys0pep.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/mock-pds-modal.entry.js.map +0 -1
- package/dist/esm/pds-accordion.entry.js.map +0 -1
- package/dist/esm/pds-alert.entry.js.map +0 -1
- package/dist/esm/pds-avatar.entry.js.map +0 -1
- package/dist/esm/pds-box.entry.js.map +0 -1
- package/dist/esm/pds-button.entry.js.map +0 -1
- package/dist/esm/pds-checkbox.entry.js.map +0 -1
- package/dist/esm/pds-chip.entry.js.map +0 -1
- package/dist/esm/pds-combobox.entry.js.map +0 -1
- package/dist/esm/pds-container.entry.js.map +0 -1
- package/dist/esm/pds-copytext.entry.js.map +0 -1
- package/dist/esm/pds-divider.entry.js.map +0 -1
- package/dist/esm/pds-dropdown-menu-item.entry.js.map +0 -1
- package/dist/esm/pds-dropdown-menu-separator.entry.js.map +0 -1
- package/dist/esm/pds-dropdown-menu.entry.js.map +0 -1
- package/dist/esm/pds-filter.entry.js.map +0 -1
- package/dist/esm/pds-filters.entry.js.map +0 -1
- package/dist/esm/pds-icon.entry.js.map +0 -1
- package/dist/esm/pds-image.entry.js.map +0 -1
- package/dist/esm/pds-input.entry.js.map +0 -1
- package/dist/esm/pds-link.entry.js.map +0 -1
- package/dist/esm/pds-loader.entry.js.map +0 -1
- package/dist/esm/pds-modal-content.entry.js.map +0 -1
- package/dist/esm/pds-modal-footer.entry.js.map +0 -1
- package/dist/esm/pds-modal-header.entry.js.map +0 -1
- package/dist/esm/pds-modal.entry.js.map +0 -1
- package/dist/esm/pds-multiselect.entry.js.map +0 -1
- package/dist/esm/pds-popover.entry.js.map +0 -1
- package/dist/esm/pds-progress.entry.js.map +0 -1
- package/dist/esm/pds-property.entry.js.map +0 -1
- package/dist/esm/pds-radio-group.entry.js.map +0 -1
- package/dist/esm/pds-radio.entry.js.map +0 -1
- package/dist/esm/pds-row.entry.js.map +0 -1
- package/dist/esm/pds-select.entry.js.map +0 -1
- package/dist/esm/pds-sortable-item.entry.js.map +0 -1
- package/dist/esm/pds-sortable.entry.js.map +0 -1
- package/dist/esm/pds-switch.entry.js.map +0 -1
- package/dist/esm/pds-tab.entry.js.map +0 -1
- package/dist/esm/pds-table-body.entry.js.map +0 -1
- package/dist/esm/pds-table-cell.entry.js.map +0 -1
- package/dist/esm/pds-table-head-cell.entry.js.map +0 -1
- package/dist/esm/pds-table-head.entry.js.map +0 -1
- package/dist/esm/pds-table-row.entry.js.map +0 -1
- package/dist/esm/pds-table.entry.js.map +0 -1
- package/dist/esm/pds-tabpanel.entry.js.map +0 -1
- package/dist/esm/pds-tabs.entry.js.map +0 -1
- package/dist/esm/pds-text.entry.js.map +0 -1
- package/dist/esm/pds-textarea.entry.js.map +0 -1
- package/dist/esm/pds-toast.entry.js.map +0 -1
- package/dist/esm/pds-tooltip.entry.js.map +0 -1
- package/dist/esm/pine-core.js.map +0 -1
- package/dist/esm/scroll-DtgUQhjl.js.map +0 -1
- package/dist/esm/truncation-tooltip-Blk4GigP.js.map +0 -1
- package/dist/esm/utils-tJa4KYNO.js.map +0 -1
- package/dist/esm-es5/attributes-C0M1gTKv.js.map +0 -1
- package/dist/esm-es5/closest-DnUJodVd.js.map +0 -1
- package/dist/esm-es5/floating-ui.dom-DDtwbwIl.js.map +0 -1
- package/dist/esm-es5/form-C3xDZBme.js.map +0 -1
- package/dist/esm-es5/index-B2f84Zog.js +0 -3
- package/dist/esm-es5/index-B2f84Zog.js.map +0 -1
- package/dist/esm-es5/index-D4ys0pep.js.map +0 -1
- package/dist/esm-es5/index.js.map +0 -1
- package/dist/esm-es5/loader.js.map +0 -1
- package/dist/esm-es5/mock-pds-modal.entry.js.map +0 -1
- package/dist/esm-es5/pds-accordion.entry.js.map +0 -1
- package/dist/esm-es5/pds-alert.entry.js.map +0 -1
- package/dist/esm-es5/pds-avatar.entry.js.map +0 -1
- package/dist/esm-es5/pds-box.entry.js.map +0 -1
- package/dist/esm-es5/pds-button.entry.js.map +0 -1
- package/dist/esm-es5/pds-checkbox.entry.js.map +0 -1
- package/dist/esm-es5/pds-chip.entry.js.map +0 -1
- package/dist/esm-es5/pds-combobox.entry.js.map +0 -1
- package/dist/esm-es5/pds-container.entry.js.map +0 -1
- package/dist/esm-es5/pds-copytext.entry.js.map +0 -1
- package/dist/esm-es5/pds-divider.entry.js.map +0 -1
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js.map +0 -1
- package/dist/esm-es5/pds-dropdown-menu-separator.entry.js.map +0 -1
- package/dist/esm-es5/pds-dropdown-menu.entry.js.map +0 -1
- package/dist/esm-es5/pds-filter.entry.js.map +0 -1
- package/dist/esm-es5/pds-filters.entry.js.map +0 -1
- package/dist/esm-es5/pds-icon.entry.js.map +0 -1
- package/dist/esm-es5/pds-image.entry.js.map +0 -1
- package/dist/esm-es5/pds-input.entry.js.map +0 -1
- package/dist/esm-es5/pds-link.entry.js.map +0 -1
- package/dist/esm-es5/pds-loader.entry.js.map +0 -1
- package/dist/esm-es5/pds-modal-content.entry.js.map +0 -1
- package/dist/esm-es5/pds-modal-footer.entry.js.map +0 -1
- package/dist/esm-es5/pds-modal-header.entry.js.map +0 -1
- package/dist/esm-es5/pds-modal.entry.js.map +0 -1
- package/dist/esm-es5/pds-multiselect.entry.js.map +0 -1
- package/dist/esm-es5/pds-popover.entry.js.map +0 -1
- package/dist/esm-es5/pds-progress.entry.js.map +0 -1
- package/dist/esm-es5/pds-property.entry.js.map +0 -1
- package/dist/esm-es5/pds-radio-group.entry.js.map +0 -1
- package/dist/esm-es5/pds-radio.entry.js.map +0 -1
- package/dist/esm-es5/pds-row.entry.js.map +0 -1
- package/dist/esm-es5/pds-select.entry.js.map +0 -1
- package/dist/esm-es5/pds-sortable-item.entry.js.map +0 -1
- package/dist/esm-es5/pds-sortable.entry.js.map +0 -1
- package/dist/esm-es5/pds-switch.entry.js.map +0 -1
- package/dist/esm-es5/pds-tab.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-body.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-cell.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-head.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-row.entry.js.map +0 -1
- package/dist/esm-es5/pds-table.entry.js.map +0 -1
- package/dist/esm-es5/pds-tabpanel.entry.js.map +0 -1
- package/dist/esm-es5/pds-tabs.entry.js.map +0 -1
- package/dist/esm-es5/pds-text.entry.js.map +0 -1
- package/dist/esm-es5/pds-textarea.entry.js.map +0 -1
- package/dist/esm-es5/pds-toast.entry.js.map +0 -1
- package/dist/esm-es5/pds-tooltip.entry.js.map +0 -1
- package/dist/esm-es5/pine-core.js.map +0 -1
- package/dist/esm-es5/scroll-DtgUQhjl.js.map +0 -1
- package/dist/esm-es5/truncation-tooltip-Blk4GigP.js.map +0 -1
- package/dist/esm-es5/utils-tJa4KYNO.js.map +0 -1
- package/dist/pine-core/index.esm.js.map +0 -1
- package/dist/pine-core/loader.esm.js.map +0 -1
- package/dist/pine-core/mock-pds-modal.entry.esm.js.map +0 -1
- package/dist/pine-core/p-037dbdcd.system.entry.js +0 -2
- package/dist/pine-core/p-037dbdcd.system.entry.js.map +0 -1
- package/dist/pine-core/p-06713f25.entry.js +0 -2
- package/dist/pine-core/p-06713f25.entry.js.map +0 -1
- package/dist/pine-core/p-0977b2dd.entry.js +0 -2
- package/dist/pine-core/p-0977b2dd.entry.js.map +0 -1
- package/dist/pine-core/p-099e9f9b.system.entry.js +0 -2
- package/dist/pine-core/p-099e9f9b.system.entry.js.map +0 -1
- package/dist/pine-core/p-0a7115f0.entry.js +0 -2
- package/dist/pine-core/p-0a7115f0.entry.js.map +0 -1
- package/dist/pine-core/p-0c1ab384.system.entry.js +0 -2
- package/dist/pine-core/p-0c1ab384.system.entry.js.map +0 -1
- package/dist/pine-core/p-0dee7449.system.entry.js +0 -2
- package/dist/pine-core/p-0dee7449.system.entry.js.map +0 -1
- package/dist/pine-core/p-102d0dd6.system.entry.js +0 -2
- package/dist/pine-core/p-102d0dd6.system.entry.js.map +0 -1
- package/dist/pine-core/p-10ebecc5.entry.js +0 -2
- package/dist/pine-core/p-10ebecc5.entry.js.map +0 -1
- package/dist/pine-core/p-1598f3af.entry.js +0 -2
- package/dist/pine-core/p-1598f3af.entry.js.map +0 -1
- package/dist/pine-core/p-1c32102e.system.entry.js +0 -2
- package/dist/pine-core/p-1c32102e.system.entry.js.map +0 -1
- package/dist/pine-core/p-2258b31b.system.entry.js +0 -2
- package/dist/pine-core/p-2258b31b.system.entry.js.map +0 -1
- package/dist/pine-core/p-275fa74c.system.entry.js +0 -2
- package/dist/pine-core/p-275fa74c.system.entry.js.map +0 -1
- package/dist/pine-core/p-27fc0737.system.entry.js +0 -2
- package/dist/pine-core/p-27fc0737.system.entry.js.map +0 -1
- package/dist/pine-core/p-32ad2807.system.entry.js +0 -2
- package/dist/pine-core/p-32ad2807.system.entry.js.map +0 -1
- package/dist/pine-core/p-33544ed1.system.entry.js +0 -2
- package/dist/pine-core/p-33544ed1.system.entry.js.map +0 -1
- package/dist/pine-core/p-34763aae.system.entry.js +0 -2
- package/dist/pine-core/p-34763aae.system.entry.js.map +0 -1
- package/dist/pine-core/p-36070380.system.entry.js +0 -2
- package/dist/pine-core/p-36070380.system.entry.js.map +0 -1
- package/dist/pine-core/p-3625bc45.entry.js +0 -2
- package/dist/pine-core/p-3625bc45.entry.js.map +0 -1
- package/dist/pine-core/p-3b087f24.entry.js +0 -2
- package/dist/pine-core/p-3b087f24.entry.js.map +0 -1
- package/dist/pine-core/p-3f66c070.entry.js +0 -2
- package/dist/pine-core/p-3f66c070.entry.js.map +0 -1
- package/dist/pine-core/p-407aad2b.system.entry.js +0 -2
- package/dist/pine-core/p-407aad2b.system.entry.js.map +0 -1
- package/dist/pine-core/p-44ca9b92.entry.js +0 -2
- package/dist/pine-core/p-44ca9b92.entry.js.map +0 -1
- package/dist/pine-core/p-476db791.entry.js +0 -2
- package/dist/pine-core/p-476db791.entry.js.map +0 -1
- package/dist/pine-core/p-4780403d.system.entry.js +0 -2
- package/dist/pine-core/p-4780403d.system.entry.js.map +0 -1
- package/dist/pine-core/p-48ac6873.entry.js +0 -2
- package/dist/pine-core/p-48ac6873.entry.js.map +0 -1
- package/dist/pine-core/p-4FBDaIH3.system.js.map +0 -1
- package/dist/pine-core/p-4ede20e6.entry.js +0 -2
- package/dist/pine-core/p-4ede20e6.entry.js.map +0 -1
- package/dist/pine-core/p-4f2a48cb.system.entry.js +0 -2
- package/dist/pine-core/p-4f2a48cb.system.entry.js.map +0 -1
- package/dist/pine-core/p-4f440dd4.entry.js +0 -2
- package/dist/pine-core/p-4f440dd4.entry.js.map +0 -1
- package/dist/pine-core/p-4jrX5aRd.system.js.map +0 -1
- package/dist/pine-core/p-51e47e6e.system.entry.js +0 -2
- package/dist/pine-core/p-51e47e6e.system.entry.js.map +0 -1
- package/dist/pine-core/p-52411757.system.entry.js +0 -2
- package/dist/pine-core/p-52411757.system.entry.js.map +0 -1
- package/dist/pine-core/p-557005a0.entry.js +0 -2
- package/dist/pine-core/p-557005a0.entry.js.map +0 -1
- package/dist/pine-core/p-5e117b98.entry.js +0 -2
- package/dist/pine-core/p-5e117b98.entry.js.map +0 -1
- package/dist/pine-core/p-639012b9.system.entry.js +0 -2
- package/dist/pine-core/p-639012b9.system.entry.js.map +0 -1
- package/dist/pine-core/p-643b01ad.entry.js +0 -2
- package/dist/pine-core/p-643b01ad.entry.js.map +0 -1
- package/dist/pine-core/p-6623b257.system.entry.js +0 -2
- package/dist/pine-core/p-6623b257.system.entry.js.map +0 -1
- package/dist/pine-core/p-74ff4d96.system.entry.js +0 -2
- package/dist/pine-core/p-74ff4d96.system.entry.js.map +0 -1
- package/dist/pine-core/p-77327e1b.system.entry.js +0 -2
- package/dist/pine-core/p-77327e1b.system.entry.js.map +0 -1
- package/dist/pine-core/p-774ecbd4.entry.js +0 -2
- package/dist/pine-core/p-774ecbd4.entry.js.map +0 -1
- package/dist/pine-core/p-7926dc93.entry.js +0 -2
- package/dist/pine-core/p-7926dc93.entry.js.map +0 -1
- package/dist/pine-core/p-7a3eccef.entry.js +0 -2
- package/dist/pine-core/p-7a3eccef.entry.js.map +0 -1
- package/dist/pine-core/p-7acb131c.system.entry.js +0 -2
- package/dist/pine-core/p-7acb131c.system.entry.js.map +0 -1
- package/dist/pine-core/p-81a3e32b.entry.js +0 -2
- package/dist/pine-core/p-81a3e32b.entry.js.map +0 -1
- package/dist/pine-core/p-848763b6.system.entry.js +0 -2
- package/dist/pine-core/p-848763b6.system.entry.js.map +0 -1
- package/dist/pine-core/p-85e889c3.system.entry.js.map +0 -1
- package/dist/pine-core/p-8669e0e3.system.entry.js +0 -2
- package/dist/pine-core/p-8669e0e3.system.entry.js.map +0 -1
- package/dist/pine-core/p-8735cb58.entry.js +0 -2
- package/dist/pine-core/p-8735cb58.entry.js.map +0 -1
- package/dist/pine-core/p-8b3aeaf9.system.entry.js +0 -2
- package/dist/pine-core/p-8b3aeaf9.system.entry.js.map +0 -1
- package/dist/pine-core/p-8b7aa53d.entry.js +0 -2
- package/dist/pine-core/p-8b7aa53d.entry.js.map +0 -1
- package/dist/pine-core/p-8c97fcb1.entry.js +0 -2
- package/dist/pine-core/p-8c97fcb1.entry.js.map +0 -1
- package/dist/pine-core/p-8c9f8ca6.entry.js +0 -2
- package/dist/pine-core/p-8c9f8ca6.entry.js.map +0 -1
- package/dist/pine-core/p-904e8d9d.system.entry.js +0 -2
- package/dist/pine-core/p-904e8d9d.system.entry.js.map +0 -1
- package/dist/pine-core/p-91bea052.entry.js +0 -2
- package/dist/pine-core/p-91bea052.entry.js.map +0 -1
- package/dist/pine-core/p-9230df2a.system.entry.js +0 -2
- package/dist/pine-core/p-9230df2a.system.entry.js.map +0 -1
- package/dist/pine-core/p-94a09b06.entry.js +0 -2
- package/dist/pine-core/p-94a09b06.entry.js.map +0 -1
- package/dist/pine-core/p-94d4d1de.entry.js +0 -3
- package/dist/pine-core/p-94d4d1de.entry.js.map +0 -1
- package/dist/pine-core/p-984db3fc.entry.js +0 -2
- package/dist/pine-core/p-984db3fc.entry.js.map +0 -1
- package/dist/pine-core/p-988d1723.system.entry.js +0 -2
- package/dist/pine-core/p-988d1723.system.entry.js.map +0 -1
- package/dist/pine-core/p-98dabbbf.entry.js +0 -2
- package/dist/pine-core/p-98dabbbf.entry.js.map +0 -1
- package/dist/pine-core/p-9a3c9d15.system.entry.js +0 -2
- package/dist/pine-core/p-9a3c9d15.system.entry.js.map +0 -1
- package/dist/pine-core/p-9b3aedeb.system.entry.js +0 -2
- package/dist/pine-core/p-9b3aedeb.system.entry.js.map +0 -1
- package/dist/pine-core/p-9ce56712.system.entry.js +0 -2
- package/dist/pine-core/p-9ce56712.system.entry.js.map +0 -1
- package/dist/pine-core/p-9e48d1ea.system.entry.js +0 -2
- package/dist/pine-core/p-9e48d1ea.system.entry.js.map +0 -1
- package/dist/pine-core/p-9e5c58c6.entry.js +0 -8
- package/dist/pine-core/p-9e5c58c6.entry.js.map +0 -1
- package/dist/pine-core/p-B-I9BXj1.system.js.map +0 -1
- package/dist/pine-core/p-B-nnQT8K.system.js.map +0 -1
- package/dist/pine-core/p-B1u-QvFn.system.js.map +0 -1
- package/dist/pine-core/p-B2f84Zog.js +0 -3
- package/dist/pine-core/p-B2f84Zog.js.map +0 -1
- package/dist/pine-core/p-BC7kndqW.system.js.map +0 -1
- package/dist/pine-core/p-BFAhunk3.system.js.map +0 -1
- package/dist/pine-core/p-BG6uGRQj.system.js.map +0 -1
- package/dist/pine-core/p-BJQiqlL7.system.js.map +0 -1
- package/dist/pine-core/p-BLg534X3.system.js.map +0 -1
- package/dist/pine-core/p-BNSGedhN.js.map +0 -1
- package/dist/pine-core/p-BT-iITx_.system.js.map +0 -1
- package/dist/pine-core/p-BTsajr3h.system.js.map +0 -1
- package/dist/pine-core/p-BcCpTdwz.system.js.map +0 -1
- package/dist/pine-core/p-BhQhw0S3.system.js.map +0 -1
- package/dist/pine-core/p-Bkk7A0W9.system.js.map +0 -1
- package/dist/pine-core/p-BmOvsRx7.system.js.map +0 -1
- package/dist/pine-core/p-BrLs99ML.system.js.map +0 -1
- package/dist/pine-core/p-BtfqzsXS.system.js.map +0 -1
- package/dist/pine-core/p-BvJkwltO.system.js.map +0 -1
- package/dist/pine-core/p-BvV4-w8H.system.js.map +0 -1
- package/dist/pine-core/p-C0M1gTKv.js.map +0 -1
- package/dist/pine-core/p-C3TuSlI7.system.js.map +0 -1
- package/dist/pine-core/p-C3xDZBme.js.map +0 -1
- package/dist/pine-core/p-C5jXV4WJ.system.js.map +0 -1
- package/dist/pine-core/p-C5qxTQb1.system.js.map +0 -1
- package/dist/pine-core/p-C62JIZmE.system.js.map +0 -1
- package/dist/pine-core/p-C6yvFUy3.system.js.map +0 -1
- package/dist/pine-core/p-CCRLZO4N.system.js.map +0 -1
- package/dist/pine-core/p-CD-PjU09.system.js.map +0 -1
- package/dist/pine-core/p-CI-oL5TR.system.js.map +0 -1
- package/dist/pine-core/p-CIbXcB4O.system.js.map +0 -1
- package/dist/pine-core/p-CIe6-SsT.system.js.map +0 -1
- package/dist/pine-core/p-CRCxGYgw.system.js.map +0 -1
- package/dist/pine-core/p-CSVND2Gt.system.js.map +0 -1
- package/dist/pine-core/p-CUEE9EMe.system.js.map +0 -1
- package/dist/pine-core/p-CXImmjF5.system.js.map +0 -1
- package/dist/pine-core/p-C_g3FnvJ.system.js.map +0 -1
- package/dist/pine-core/p-CmNZDo8q.system.js.map +0 -1
- package/dist/pine-core/p-Cn98QWqb.system.js.map +0 -1
- package/dist/pine-core/p-Cqgvmo2o.system.js +0 -2
- package/dist/pine-core/p-Cqgvmo2o.system.js.map +0 -1
- package/dist/pine-core/p-Cu24FhMY.system.js.map +0 -1
- package/dist/pine-core/p-CwEjYXkp.system.js.map +0 -1
- package/dist/pine-core/p-D4ys0pep.js.map +0 -1
- package/dist/pine-core/p-DA3fC_kX.system.js.map +0 -1
- package/dist/pine-core/p-DDtwbwIl.js.map +0 -1
- package/dist/pine-core/p-DG_z5J3G.system.js.map +0 -1
- package/dist/pine-core/p-DL3JCnpO.system.js.map +0 -1
- package/dist/pine-core/p-DSlRwx2e.system.js.map +0 -1
- package/dist/pine-core/p-DVra397g.system.js.map +0 -1
- package/dist/pine-core/p-DYlgS5d7.system.js +0 -3
- package/dist/pine-core/p-DYlgS5d7.system.js.map +0 -1
- package/dist/pine-core/p-DeVgpUr5.system.js.map +0 -1
- package/dist/pine-core/p-DnUJodVd.js.map +0 -1
- package/dist/pine-core/p-DtgUQhjl.js.map +0 -1
- package/dist/pine-core/p-Dxrjs-vy.system.js.map +0 -1
- package/dist/pine-core/p-H7VDsgsr.system.js.map +0 -1
- package/dist/pine-core/p-JwuGXyPc.system.js.map +0 -1
- package/dist/pine-core/p-U1PewsWZ.system.js.map +0 -1
- package/dist/pine-core/p-UILRZV99.system.js.map +0 -1
- package/dist/pine-core/p-V-ORMWaS.system.js.map +0 -1
- package/dist/pine-core/p-W7E5TRNL.system.js.map +0 -1
- package/dist/pine-core/p-YWpyar7R.system.js.map +0 -1
- package/dist/pine-core/p-Yfy85hdp.system.js.map +0 -1
- package/dist/pine-core/p-ZrPaY2bh.system.js.map +0 -1
- package/dist/pine-core/p-a30b386f.entry.js +0 -2
- package/dist/pine-core/p-a30b386f.entry.js.map +0 -1
- package/dist/pine-core/p-a5014407.system.entry.js +0 -2
- package/dist/pine-core/p-a5014407.system.entry.js.map +0 -1
- package/dist/pine-core/p-a695ff4c.system.entry.js +0 -2
- package/dist/pine-core/p-a695ff4c.system.entry.js.map +0 -1
- package/dist/pine-core/p-a8c49f8e.entry.js +0 -2
- package/dist/pine-core/p-a8c49f8e.entry.js.map +0 -1
- package/dist/pine-core/p-ae74a4b6.system.entry.js +0 -2
- package/dist/pine-core/p-ae74a4b6.system.entry.js.map +0 -1
- package/dist/pine-core/p-b1cde22a.entry.js +0 -2
- package/dist/pine-core/p-b1cde22a.entry.js.map +0 -1
- package/dist/pine-core/p-b9340fb1.system.entry.js +0 -2
- package/dist/pine-core/p-b9340fb1.system.entry.js.map +0 -1
- package/dist/pine-core/p-b9fcc3f8.system.entry.js +0 -2
- package/dist/pine-core/p-b9fcc3f8.system.entry.js.map +0 -1
- package/dist/pine-core/p-bIvjoz7p.system.js.map +0 -1
- package/dist/pine-core/p-bc8f61d1.entry.js +0 -2
- package/dist/pine-core/p-bc8f61d1.entry.js.map +0 -1
- package/dist/pine-core/p-bea013d1.entry.js +0 -2
- package/dist/pine-core/p-bea013d1.entry.js.map +0 -1
- package/dist/pine-core/p-c026479a.system.entry.js +0 -2
- package/dist/pine-core/p-c026479a.system.entry.js.map +0 -1
- package/dist/pine-core/p-c9784d20.system.entry.js +0 -4
- package/dist/pine-core/p-c9784d20.system.entry.js.map +0 -1
- package/dist/pine-core/p-c9b06db1.system.entry.js +0 -2
- package/dist/pine-core/p-c9b06db1.system.entry.js.map +0 -1
- package/dist/pine-core/p-cab14421.entry.js +0 -2
- package/dist/pine-core/p-cab14421.entry.js.map +0 -1
- package/dist/pine-core/p-d5fcdcdd.entry.js +0 -2
- package/dist/pine-core/p-d5fcdcdd.entry.js.map +0 -1
- package/dist/pine-core/p-d86e20b5.system.entry.js +0 -2
- package/dist/pine-core/p-d86e20b5.system.entry.js.map +0 -1
- package/dist/pine-core/p-d9354ad3.system.entry.js +0 -2
- package/dist/pine-core/p-d9354ad3.system.entry.js.map +0 -1
- package/dist/pine-core/p-dab76f15.entry.js +0 -2
- package/dist/pine-core/p-dab76f15.entry.js.map +0 -1
- package/dist/pine-core/p-db16d1fe.entry.js +0 -2
- package/dist/pine-core/p-db16d1fe.entry.js.map +0 -1
- package/dist/pine-core/p-db63f83b.system.entry.js +0 -2
- package/dist/pine-core/p-db63f83b.system.entry.js.map +0 -1
- package/dist/pine-core/p-dd3ea74e.system.entry.js +0 -2
- package/dist/pine-core/p-dd3ea74e.system.entry.js.map +0 -1
- package/dist/pine-core/p-ddb48534.entry.js +0 -2
- package/dist/pine-core/p-ddb48534.entry.js.map +0 -1
- package/dist/pine-core/p-de9f43b6.entry.js +0 -2
- package/dist/pine-core/p-de9f43b6.entry.js.map +0 -1
- package/dist/pine-core/p-e25da259.entry.js +0 -2
- package/dist/pine-core/p-e25da259.entry.js.map +0 -1
- package/dist/pine-core/p-e288dc89.system.entry.js +0 -2
- package/dist/pine-core/p-e288dc89.system.entry.js.map +0 -1
- package/dist/pine-core/p-ea5c42b8.system.entry.js +0 -2
- package/dist/pine-core/p-ea5c42b8.system.entry.js.map +0 -1
- package/dist/pine-core/p-ed5d5be6.entry.js +0 -2
- package/dist/pine-core/p-ed5d5be6.entry.js.map +0 -1
- package/dist/pine-core/p-ef081f0f.entry.js +0 -2
- package/dist/pine-core/p-ef081f0f.entry.js.map +0 -1
- package/dist/pine-core/p-f09c5021.entry.js +0 -2
- package/dist/pine-core/p-f09c5021.entry.js.map +0 -1
- package/dist/pine-core/p-f201cf57.entry.js +0 -2
- package/dist/pine-core/p-f201cf57.entry.js.map +0 -1
- package/dist/pine-core/p-f20ab351.entry.js +0 -2
- package/dist/pine-core/p-f20ab351.entry.js.map +0 -1
- package/dist/pine-core/p-f2798581.entry.js +0 -2
- package/dist/pine-core/p-f2798581.entry.js.map +0 -1
- package/dist/pine-core/p-f2ca0cf8.entry.js +0 -2
- package/dist/pine-core/p-f2ca0cf8.entry.js.map +0 -1
- package/dist/pine-core/p-f77fad86.system.entry.js +0 -2
- package/dist/pine-core/p-f77fad86.system.entry.js.map +0 -1
- package/dist/pine-core/p-ff472f7c.system.entry.js +0 -2
- package/dist/pine-core/p-ff472f7c.system.entry.js.map +0 -1
- package/dist/pine-core/p-ff5b2c90.entry.js +0 -2
- package/dist/pine-core/p-ff5b2c90.entry.js.map +0 -1
- package/dist/pine-core/p-g4mFEadi.system.js.map +0 -1
- package/dist/pine-core/p-kYMYDfJY.system.js.map +0 -1
- package/dist/pine-core/p-tJa4KYNO.js.map +0 -1
- package/dist/pine-core/p-vLxlRu4_.system.js.map +0 -1
- package/dist/pine-core/p-ziMh7dwl.system.js.map +0 -1
- package/dist/pine-core/pds-accordion.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-alert.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-avatar.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-box.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-button.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-checkbox.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-chip.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-combobox.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-container.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-copytext.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-divider.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-dropdown-menu-item.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-dropdown-menu-separator.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-dropdown-menu.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-filter.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-filters.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-icon.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-image.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-input.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-link.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-loader.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-modal-content.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-modal-footer.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-modal-header.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-modal.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-multiselect.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-popover.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-progress.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-property.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-radio-group.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-radio.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-row.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-select.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-sortable-item.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-sortable.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-switch.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-tab.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-table-body.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-table-cell.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-table-head-cell.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-table-head.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-table-row.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-table.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-tabpanel.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-tabs.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-text.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-textarea.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-toast.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-tooltip.entry.esm.js.map +0 -1
- package/dist/pine-core/pine-core.esm.js.map +0 -1
- package/dist/scripts/vscode-custom-data-generator.js.map +0 -1
- package/dist/vscode.html-data.json +0 -10551
|
@@ -1,1631 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom positioning reference element.
|
|
3
|
-
* @see https://floating-ui.com/docs/virtual-elements
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
const min = Math.min;
|
|
7
|
-
const max = Math.max;
|
|
8
|
-
const round = Math.round;
|
|
9
|
-
const floor = Math.floor;
|
|
10
|
-
const createCoords = v => ({
|
|
11
|
-
x: v,
|
|
12
|
-
y: v
|
|
13
|
-
});
|
|
14
|
-
const oppositeSideMap = {
|
|
15
|
-
left: 'right',
|
|
16
|
-
right: 'left',
|
|
17
|
-
bottom: 'top',
|
|
18
|
-
top: 'bottom'
|
|
19
|
-
};
|
|
20
|
-
function clamp(start, value, end) {
|
|
21
|
-
return max(start, min(value, end));
|
|
22
|
-
}
|
|
23
|
-
function evaluate(value, param) {
|
|
24
|
-
return typeof value === 'function' ? value(param) : value;
|
|
25
|
-
}
|
|
26
|
-
function getSide(placement) {
|
|
27
|
-
return placement.split('-')[0];
|
|
28
|
-
}
|
|
29
|
-
function getAlignment(placement) {
|
|
30
|
-
return placement.split('-')[1];
|
|
31
|
-
}
|
|
32
|
-
function getOppositeAxis(axis) {
|
|
33
|
-
return axis === 'x' ? 'y' : 'x';
|
|
34
|
-
}
|
|
35
|
-
function getAxisLength(axis) {
|
|
36
|
-
return axis === 'y' ? 'height' : 'width';
|
|
37
|
-
}
|
|
38
|
-
function getSideAxis(placement) {
|
|
39
|
-
const firstChar = placement[0];
|
|
40
|
-
return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
|
|
41
|
-
}
|
|
42
|
-
function getAlignmentAxis(placement) {
|
|
43
|
-
return getOppositeAxis(getSideAxis(placement));
|
|
44
|
-
}
|
|
45
|
-
function getAlignmentSides(placement, rects, rtl) {
|
|
46
|
-
if (rtl === void 0) {
|
|
47
|
-
rtl = false;
|
|
48
|
-
}
|
|
49
|
-
const alignment = getAlignment(placement);
|
|
50
|
-
const alignmentAxis = getAlignmentAxis(placement);
|
|
51
|
-
const length = getAxisLength(alignmentAxis);
|
|
52
|
-
let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
|
53
|
-
if (rects.reference[length] > rects.floating[length]) {
|
|
54
|
-
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
55
|
-
}
|
|
56
|
-
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
57
|
-
}
|
|
58
|
-
function getExpandedPlacements(placement) {
|
|
59
|
-
const oppositePlacement = getOppositePlacement(placement);
|
|
60
|
-
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
61
|
-
}
|
|
62
|
-
function getOppositeAlignmentPlacement(placement) {
|
|
63
|
-
return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
|
|
64
|
-
}
|
|
65
|
-
const lrPlacement = ['left', 'right'];
|
|
66
|
-
const rlPlacement = ['right', 'left'];
|
|
67
|
-
const tbPlacement = ['top', 'bottom'];
|
|
68
|
-
const btPlacement = ['bottom', 'top'];
|
|
69
|
-
function getSideList(side, isStart, rtl) {
|
|
70
|
-
switch (side) {
|
|
71
|
-
case 'top':
|
|
72
|
-
case 'bottom':
|
|
73
|
-
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
74
|
-
return isStart ? lrPlacement : rlPlacement;
|
|
75
|
-
case 'left':
|
|
76
|
-
case 'right':
|
|
77
|
-
return isStart ? tbPlacement : btPlacement;
|
|
78
|
-
default:
|
|
79
|
-
return [];
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
83
|
-
const alignment = getAlignment(placement);
|
|
84
|
-
let list = getSideList(getSide(placement), direction === 'start', rtl);
|
|
85
|
-
if (alignment) {
|
|
86
|
-
list = list.map(side => side + "-" + alignment);
|
|
87
|
-
if (flipAlignment) {
|
|
88
|
-
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return list;
|
|
92
|
-
}
|
|
93
|
-
function getOppositePlacement(placement) {
|
|
94
|
-
const side = getSide(placement);
|
|
95
|
-
return oppositeSideMap[side] + placement.slice(side.length);
|
|
96
|
-
}
|
|
97
|
-
function expandPaddingObject(padding) {
|
|
98
|
-
return {
|
|
99
|
-
top: 0,
|
|
100
|
-
right: 0,
|
|
101
|
-
bottom: 0,
|
|
102
|
-
left: 0,
|
|
103
|
-
...padding
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
function getPaddingObject(padding) {
|
|
107
|
-
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
|
108
|
-
top: padding,
|
|
109
|
-
right: padding,
|
|
110
|
-
bottom: padding,
|
|
111
|
-
left: padding
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
function rectToClientRect(rect) {
|
|
115
|
-
const {
|
|
116
|
-
x,
|
|
117
|
-
y,
|
|
118
|
-
width,
|
|
119
|
-
height
|
|
120
|
-
} = rect;
|
|
121
|
-
return {
|
|
122
|
-
width,
|
|
123
|
-
height,
|
|
124
|
-
top: y,
|
|
125
|
-
left: x,
|
|
126
|
-
right: x + width,
|
|
127
|
-
bottom: y + height,
|
|
128
|
-
x,
|
|
129
|
-
y
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
134
|
-
let {
|
|
135
|
-
reference,
|
|
136
|
-
floating
|
|
137
|
-
} = _ref;
|
|
138
|
-
const sideAxis = getSideAxis(placement);
|
|
139
|
-
const alignmentAxis = getAlignmentAxis(placement);
|
|
140
|
-
const alignLength = getAxisLength(alignmentAxis);
|
|
141
|
-
const side = getSide(placement);
|
|
142
|
-
const isVertical = sideAxis === 'y';
|
|
143
|
-
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
|
144
|
-
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
|
145
|
-
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
|
146
|
-
let coords;
|
|
147
|
-
switch (side) {
|
|
148
|
-
case 'top':
|
|
149
|
-
coords = {
|
|
150
|
-
x: commonX,
|
|
151
|
-
y: reference.y - floating.height
|
|
152
|
-
};
|
|
153
|
-
break;
|
|
154
|
-
case 'bottom':
|
|
155
|
-
coords = {
|
|
156
|
-
x: commonX,
|
|
157
|
-
y: reference.y + reference.height
|
|
158
|
-
};
|
|
159
|
-
break;
|
|
160
|
-
case 'right':
|
|
161
|
-
coords = {
|
|
162
|
-
x: reference.x + reference.width,
|
|
163
|
-
y: commonY
|
|
164
|
-
};
|
|
165
|
-
break;
|
|
166
|
-
case 'left':
|
|
167
|
-
coords = {
|
|
168
|
-
x: reference.x - floating.width,
|
|
169
|
-
y: commonY
|
|
170
|
-
};
|
|
171
|
-
break;
|
|
172
|
-
default:
|
|
173
|
-
coords = {
|
|
174
|
-
x: reference.x,
|
|
175
|
-
y: reference.y
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
switch (getAlignment(placement)) {
|
|
179
|
-
case 'start':
|
|
180
|
-
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
181
|
-
break;
|
|
182
|
-
case 'end':
|
|
183
|
-
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
184
|
-
break;
|
|
185
|
-
}
|
|
186
|
-
return coords;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Resolves with an object of overflow side offsets that determine how much the
|
|
191
|
-
* element is overflowing a given clipping boundary on each side.
|
|
192
|
-
* - positive = overflowing the boundary by that number of pixels
|
|
193
|
-
* - negative = how many pixels left before it will overflow
|
|
194
|
-
* - 0 = lies flush with the boundary
|
|
195
|
-
* @see https://floating-ui.com/docs/detectOverflow
|
|
196
|
-
*/
|
|
197
|
-
async function detectOverflow(state, options) {
|
|
198
|
-
var _await$platform$isEle;
|
|
199
|
-
if (options === void 0) {
|
|
200
|
-
options = {};
|
|
201
|
-
}
|
|
202
|
-
const {
|
|
203
|
-
x,
|
|
204
|
-
y,
|
|
205
|
-
platform,
|
|
206
|
-
rects,
|
|
207
|
-
elements,
|
|
208
|
-
strategy
|
|
209
|
-
} = state;
|
|
210
|
-
const {
|
|
211
|
-
boundary = 'clippingAncestors',
|
|
212
|
-
rootBoundary = 'viewport',
|
|
213
|
-
elementContext = 'floating',
|
|
214
|
-
altBoundary = false,
|
|
215
|
-
padding = 0
|
|
216
|
-
} = evaluate(options, state);
|
|
217
|
-
const paddingObject = getPaddingObject(padding);
|
|
218
|
-
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
219
|
-
const element = elements[altBoundary ? altContext : elementContext];
|
|
220
|
-
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
221
|
-
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))),
|
|
222
|
-
boundary,
|
|
223
|
-
rootBoundary,
|
|
224
|
-
strategy
|
|
225
|
-
}));
|
|
226
|
-
const rect = elementContext === 'floating' ? {
|
|
227
|
-
x,
|
|
228
|
-
y,
|
|
229
|
-
width: rects.floating.width,
|
|
230
|
-
height: rects.floating.height
|
|
231
|
-
} : rects.reference;
|
|
232
|
-
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
233
|
-
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
234
|
-
x: 1,
|
|
235
|
-
y: 1
|
|
236
|
-
} : {
|
|
237
|
-
x: 1,
|
|
238
|
-
y: 1
|
|
239
|
-
};
|
|
240
|
-
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
241
|
-
elements,
|
|
242
|
-
rect,
|
|
243
|
-
offsetParent,
|
|
244
|
-
strategy
|
|
245
|
-
}) : rect);
|
|
246
|
-
return {
|
|
247
|
-
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
248
|
-
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
249
|
-
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
250
|
-
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
// Maximum number of resets that can occur before bailing to avoid infinite reset loops.
|
|
255
|
-
const MAX_RESET_COUNT = 50;
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* Computes the `x` and `y` coordinates that will place the floating element
|
|
259
|
-
* next to a given reference element.
|
|
260
|
-
*
|
|
261
|
-
* This export does not have any `platform` interface logic. You will need to
|
|
262
|
-
* write one for the platform you are using Floating UI with.
|
|
263
|
-
*/
|
|
264
|
-
const computePosition$1 = async (reference, floating, config) => {
|
|
265
|
-
const {
|
|
266
|
-
placement = 'bottom',
|
|
267
|
-
strategy = 'absolute',
|
|
268
|
-
middleware = [],
|
|
269
|
-
platform
|
|
270
|
-
} = config;
|
|
271
|
-
const platformWithDetectOverflow = platform.detectOverflow ? platform : {
|
|
272
|
-
...platform,
|
|
273
|
-
detectOverflow
|
|
274
|
-
};
|
|
275
|
-
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
276
|
-
let rects = await platform.getElementRects({
|
|
277
|
-
reference,
|
|
278
|
-
floating,
|
|
279
|
-
strategy
|
|
280
|
-
});
|
|
281
|
-
let {
|
|
282
|
-
x,
|
|
283
|
-
y
|
|
284
|
-
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
285
|
-
let statefulPlacement = placement;
|
|
286
|
-
let resetCount = 0;
|
|
287
|
-
const middlewareData = {};
|
|
288
|
-
for (let i = 0; i < middleware.length; i++) {
|
|
289
|
-
const currentMiddleware = middleware[i];
|
|
290
|
-
if (!currentMiddleware) {
|
|
291
|
-
continue;
|
|
292
|
-
}
|
|
293
|
-
const {
|
|
294
|
-
name,
|
|
295
|
-
fn
|
|
296
|
-
} = currentMiddleware;
|
|
297
|
-
const {
|
|
298
|
-
x: nextX,
|
|
299
|
-
y: nextY,
|
|
300
|
-
data,
|
|
301
|
-
reset
|
|
302
|
-
} = await fn({
|
|
303
|
-
x,
|
|
304
|
-
y,
|
|
305
|
-
initialPlacement: placement,
|
|
306
|
-
placement: statefulPlacement,
|
|
307
|
-
strategy,
|
|
308
|
-
middlewareData,
|
|
309
|
-
rects,
|
|
310
|
-
platform: platformWithDetectOverflow,
|
|
311
|
-
elements: {
|
|
312
|
-
reference,
|
|
313
|
-
floating
|
|
314
|
-
}
|
|
315
|
-
});
|
|
316
|
-
x = nextX != null ? nextX : x;
|
|
317
|
-
y = nextY != null ? nextY : y;
|
|
318
|
-
middlewareData[name] = {
|
|
319
|
-
...middlewareData[name],
|
|
320
|
-
...data
|
|
321
|
-
};
|
|
322
|
-
if (reset && resetCount < MAX_RESET_COUNT) {
|
|
323
|
-
resetCount++;
|
|
324
|
-
if (typeof reset === 'object') {
|
|
325
|
-
if (reset.placement) {
|
|
326
|
-
statefulPlacement = reset.placement;
|
|
327
|
-
}
|
|
328
|
-
if (reset.rects) {
|
|
329
|
-
rects = reset.rects === true ? await platform.getElementRects({
|
|
330
|
-
reference,
|
|
331
|
-
floating,
|
|
332
|
-
strategy
|
|
333
|
-
}) : reset.rects;
|
|
334
|
-
}
|
|
335
|
-
({
|
|
336
|
-
x,
|
|
337
|
-
y
|
|
338
|
-
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
339
|
-
}
|
|
340
|
-
i = -1;
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
return {
|
|
344
|
-
x,
|
|
345
|
-
y,
|
|
346
|
-
placement: statefulPlacement,
|
|
347
|
-
strategy,
|
|
348
|
-
middlewareData
|
|
349
|
-
};
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
354
|
-
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
355
|
-
* clipping boundary. Alternative to `autoPlacement`.
|
|
356
|
-
* @see https://floating-ui.com/docs/flip
|
|
357
|
-
*/
|
|
358
|
-
const flip$1 = function (options) {
|
|
359
|
-
if (options === void 0) {
|
|
360
|
-
options = {};
|
|
361
|
-
}
|
|
362
|
-
return {
|
|
363
|
-
name: 'flip',
|
|
364
|
-
options,
|
|
365
|
-
async fn(state) {
|
|
366
|
-
var _middlewareData$arrow, _middlewareData$flip;
|
|
367
|
-
const {
|
|
368
|
-
placement,
|
|
369
|
-
middlewareData,
|
|
370
|
-
rects,
|
|
371
|
-
initialPlacement,
|
|
372
|
-
platform,
|
|
373
|
-
elements
|
|
374
|
-
} = state;
|
|
375
|
-
const {
|
|
376
|
-
mainAxis: checkMainAxis = true,
|
|
377
|
-
crossAxis: checkCrossAxis = true,
|
|
378
|
-
fallbackPlacements: specifiedFallbackPlacements,
|
|
379
|
-
fallbackStrategy = 'bestFit',
|
|
380
|
-
fallbackAxisSideDirection = 'none',
|
|
381
|
-
flipAlignment = true,
|
|
382
|
-
...detectOverflowOptions
|
|
383
|
-
} = evaluate(options, state);
|
|
384
|
-
|
|
385
|
-
// If a reset by the arrow was caused due to an alignment offset being
|
|
386
|
-
// added, we should skip any logic now since `flip()` has already done its
|
|
387
|
-
// work.
|
|
388
|
-
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
|
389
|
-
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
390
|
-
return {};
|
|
391
|
-
}
|
|
392
|
-
const side = getSide(placement);
|
|
393
|
-
const initialSideAxis = getSideAxis(initialPlacement);
|
|
394
|
-
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
395
|
-
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
396
|
-
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
397
|
-
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
|
398
|
-
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
399
|
-
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
400
|
-
}
|
|
401
|
-
const placements = [initialPlacement, ...fallbackPlacements];
|
|
402
|
-
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
403
|
-
const overflows = [];
|
|
404
|
-
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
405
|
-
if (checkMainAxis) {
|
|
406
|
-
overflows.push(overflow[side]);
|
|
407
|
-
}
|
|
408
|
-
if (checkCrossAxis) {
|
|
409
|
-
const sides = getAlignmentSides(placement, rects, rtl);
|
|
410
|
-
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
|
411
|
-
}
|
|
412
|
-
overflowsData = [...overflowsData, {
|
|
413
|
-
placement,
|
|
414
|
-
overflows
|
|
415
|
-
}];
|
|
416
|
-
|
|
417
|
-
// One or more sides is overflowing.
|
|
418
|
-
if (!overflows.every(side => side <= 0)) {
|
|
419
|
-
var _middlewareData$flip2, _overflowsData$filter;
|
|
420
|
-
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
421
|
-
const nextPlacement = placements[nextIndex];
|
|
422
|
-
if (nextPlacement) {
|
|
423
|
-
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
424
|
-
if (!ignoreCrossAxisOverflow ||
|
|
425
|
-
// We leave the current main axis only if every placement on that axis
|
|
426
|
-
// overflows the main axis.
|
|
427
|
-
overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
|
|
428
|
-
// Try next placement and re-run the lifecycle.
|
|
429
|
-
return {
|
|
430
|
-
data: {
|
|
431
|
-
index: nextIndex,
|
|
432
|
-
overflows: overflowsData
|
|
433
|
-
},
|
|
434
|
-
reset: {
|
|
435
|
-
placement: nextPlacement
|
|
436
|
-
}
|
|
437
|
-
};
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
442
|
-
// then find the placement that fits the best on the main crossAxis side.
|
|
443
|
-
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;
|
|
444
|
-
|
|
445
|
-
// Otherwise fallback.
|
|
446
|
-
if (!resetPlacement) {
|
|
447
|
-
switch (fallbackStrategy) {
|
|
448
|
-
case 'bestFit':
|
|
449
|
-
{
|
|
450
|
-
var _overflowsData$filter2;
|
|
451
|
-
const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
|
|
452
|
-
if (hasFallbackAxisSideDirection) {
|
|
453
|
-
const currentSideAxis = getSideAxis(d.placement);
|
|
454
|
-
return currentSideAxis === initialSideAxis ||
|
|
455
|
-
// Create a bias to the `y` side axis due to horizontal
|
|
456
|
-
// reading directions favoring greater width.
|
|
457
|
-
currentSideAxis === 'y';
|
|
458
|
-
}
|
|
459
|
-
return true;
|
|
460
|
-
}).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$filter2[0];
|
|
461
|
-
if (placement) {
|
|
462
|
-
resetPlacement = placement;
|
|
463
|
-
}
|
|
464
|
-
break;
|
|
465
|
-
}
|
|
466
|
-
case 'initialPlacement':
|
|
467
|
-
resetPlacement = initialPlacement;
|
|
468
|
-
break;
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
if (placement !== resetPlacement) {
|
|
472
|
-
return {
|
|
473
|
-
reset: {
|
|
474
|
-
placement: resetPlacement
|
|
475
|
-
}
|
|
476
|
-
};
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
return {};
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
|
-
};
|
|
483
|
-
|
|
484
|
-
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
485
|
-
|
|
486
|
-
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
487
|
-
// Derivable.
|
|
488
|
-
|
|
489
|
-
async function convertValueToCoords(state, options) {
|
|
490
|
-
const {
|
|
491
|
-
placement,
|
|
492
|
-
platform,
|
|
493
|
-
elements
|
|
494
|
-
} = state;
|
|
495
|
-
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
496
|
-
const side = getSide(placement);
|
|
497
|
-
const alignment = getAlignment(placement);
|
|
498
|
-
const isVertical = getSideAxis(placement) === 'y';
|
|
499
|
-
const mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
500
|
-
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
501
|
-
const rawValue = evaluate(options, state);
|
|
502
|
-
|
|
503
|
-
// eslint-disable-next-line prefer-const
|
|
504
|
-
let {
|
|
505
|
-
mainAxis,
|
|
506
|
-
crossAxis,
|
|
507
|
-
alignmentAxis
|
|
508
|
-
} = typeof rawValue === 'number' ? {
|
|
509
|
-
mainAxis: rawValue,
|
|
510
|
-
crossAxis: 0,
|
|
511
|
-
alignmentAxis: null
|
|
512
|
-
} : {
|
|
513
|
-
mainAxis: rawValue.mainAxis || 0,
|
|
514
|
-
crossAxis: rawValue.crossAxis || 0,
|
|
515
|
-
alignmentAxis: rawValue.alignmentAxis
|
|
516
|
-
};
|
|
517
|
-
if (alignment && typeof alignmentAxis === 'number') {
|
|
518
|
-
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
|
519
|
-
}
|
|
520
|
-
return isVertical ? {
|
|
521
|
-
x: crossAxis * crossAxisMulti,
|
|
522
|
-
y: mainAxis * mainAxisMulti
|
|
523
|
-
} : {
|
|
524
|
-
x: mainAxis * mainAxisMulti,
|
|
525
|
-
y: crossAxis * crossAxisMulti
|
|
526
|
-
};
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* Modifies the placement by translating the floating element along the
|
|
531
|
-
* specified axes.
|
|
532
|
-
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
533
|
-
* object may be passed.
|
|
534
|
-
* @see https://floating-ui.com/docs/offset
|
|
535
|
-
*/
|
|
536
|
-
const offset$1 = function (options) {
|
|
537
|
-
if (options === void 0) {
|
|
538
|
-
options = 0;
|
|
539
|
-
}
|
|
540
|
-
return {
|
|
541
|
-
name: 'offset',
|
|
542
|
-
options,
|
|
543
|
-
async fn(state) {
|
|
544
|
-
var _middlewareData$offse, _middlewareData$arrow;
|
|
545
|
-
const {
|
|
546
|
-
x,
|
|
547
|
-
y,
|
|
548
|
-
placement,
|
|
549
|
-
middlewareData
|
|
550
|
-
} = state;
|
|
551
|
-
const diffCoords = await convertValueToCoords(state, options);
|
|
552
|
-
|
|
553
|
-
// If the placement is the same and the arrow caused an alignment offset
|
|
554
|
-
// then we don't need to change the positioning coordinates.
|
|
555
|
-
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
556
|
-
return {};
|
|
557
|
-
}
|
|
558
|
-
return {
|
|
559
|
-
x: x + diffCoords.x,
|
|
560
|
-
y: y + diffCoords.y,
|
|
561
|
-
data: {
|
|
562
|
-
...diffCoords,
|
|
563
|
-
placement
|
|
564
|
-
}
|
|
565
|
-
};
|
|
566
|
-
}
|
|
567
|
-
};
|
|
568
|
-
};
|
|
569
|
-
|
|
570
|
-
/**
|
|
571
|
-
* Optimizes the visibility of the floating element by shifting it in order to
|
|
572
|
-
* keep it in view when it will overflow the clipping boundary.
|
|
573
|
-
* @see https://floating-ui.com/docs/shift
|
|
574
|
-
*/
|
|
575
|
-
const shift$1 = function (options) {
|
|
576
|
-
if (options === void 0) {
|
|
577
|
-
options = {};
|
|
578
|
-
}
|
|
579
|
-
return {
|
|
580
|
-
name: 'shift',
|
|
581
|
-
options,
|
|
582
|
-
async fn(state) {
|
|
583
|
-
const {
|
|
584
|
-
x,
|
|
585
|
-
y,
|
|
586
|
-
placement,
|
|
587
|
-
platform
|
|
588
|
-
} = state;
|
|
589
|
-
const {
|
|
590
|
-
mainAxis: checkMainAxis = true,
|
|
591
|
-
crossAxis: checkCrossAxis = false,
|
|
592
|
-
limiter = {
|
|
593
|
-
fn: _ref => {
|
|
594
|
-
let {
|
|
595
|
-
x,
|
|
596
|
-
y
|
|
597
|
-
} = _ref;
|
|
598
|
-
return {
|
|
599
|
-
x,
|
|
600
|
-
y
|
|
601
|
-
};
|
|
602
|
-
}
|
|
603
|
-
},
|
|
604
|
-
...detectOverflowOptions
|
|
605
|
-
} = evaluate(options, state);
|
|
606
|
-
const coords = {
|
|
607
|
-
x,
|
|
608
|
-
y
|
|
609
|
-
};
|
|
610
|
-
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
611
|
-
const crossAxis = getSideAxis(getSide(placement));
|
|
612
|
-
const mainAxis = getOppositeAxis(crossAxis);
|
|
613
|
-
let mainAxisCoord = coords[mainAxis];
|
|
614
|
-
let crossAxisCoord = coords[crossAxis];
|
|
615
|
-
if (checkMainAxis) {
|
|
616
|
-
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
|
617
|
-
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
|
618
|
-
const min = mainAxisCoord + overflow[minSide];
|
|
619
|
-
const max = mainAxisCoord - overflow[maxSide];
|
|
620
|
-
mainAxisCoord = clamp(min, mainAxisCoord, max);
|
|
621
|
-
}
|
|
622
|
-
if (checkCrossAxis) {
|
|
623
|
-
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
|
624
|
-
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
|
625
|
-
const min = crossAxisCoord + overflow[minSide];
|
|
626
|
-
const max = crossAxisCoord - overflow[maxSide];
|
|
627
|
-
crossAxisCoord = clamp(min, crossAxisCoord, max);
|
|
628
|
-
}
|
|
629
|
-
const limitedCoords = limiter.fn({
|
|
630
|
-
...state,
|
|
631
|
-
[mainAxis]: mainAxisCoord,
|
|
632
|
-
[crossAxis]: crossAxisCoord
|
|
633
|
-
});
|
|
634
|
-
return {
|
|
635
|
-
...limitedCoords,
|
|
636
|
-
data: {
|
|
637
|
-
x: limitedCoords.x - x,
|
|
638
|
-
y: limitedCoords.y - y,
|
|
639
|
-
enabled: {
|
|
640
|
-
[mainAxis]: checkMainAxis,
|
|
641
|
-
[crossAxis]: checkCrossAxis
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
|
-
};
|
|
647
|
-
};
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
* Provides data that allows you to change the size of the floating element —
|
|
651
|
-
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
652
|
-
* width of the reference element.
|
|
653
|
-
* @see https://floating-ui.com/docs/size
|
|
654
|
-
*/
|
|
655
|
-
const size$1 = function (options) {
|
|
656
|
-
if (options === void 0) {
|
|
657
|
-
options = {};
|
|
658
|
-
}
|
|
659
|
-
return {
|
|
660
|
-
name: 'size',
|
|
661
|
-
options,
|
|
662
|
-
async fn(state) {
|
|
663
|
-
var _state$middlewareData, _state$middlewareData2;
|
|
664
|
-
const {
|
|
665
|
-
placement,
|
|
666
|
-
rects,
|
|
667
|
-
platform,
|
|
668
|
-
elements
|
|
669
|
-
} = state;
|
|
670
|
-
const {
|
|
671
|
-
apply = () => {},
|
|
672
|
-
...detectOverflowOptions
|
|
673
|
-
} = evaluate(options, state);
|
|
674
|
-
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
675
|
-
const side = getSide(placement);
|
|
676
|
-
const alignment = getAlignment(placement);
|
|
677
|
-
const isYAxis = getSideAxis(placement) === 'y';
|
|
678
|
-
const {
|
|
679
|
-
width,
|
|
680
|
-
height
|
|
681
|
-
} = rects.floating;
|
|
682
|
-
let heightSide;
|
|
683
|
-
let widthSide;
|
|
684
|
-
if (side === 'top' || side === 'bottom') {
|
|
685
|
-
heightSide = side;
|
|
686
|
-
widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
|
|
687
|
-
} else {
|
|
688
|
-
widthSide = side;
|
|
689
|
-
heightSide = alignment === 'end' ? 'top' : 'bottom';
|
|
690
|
-
}
|
|
691
|
-
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
692
|
-
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
693
|
-
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
|
694
|
-
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
|
695
|
-
const noShift = !state.middlewareData.shift;
|
|
696
|
-
let availableHeight = overflowAvailableHeight;
|
|
697
|
-
let availableWidth = overflowAvailableWidth;
|
|
698
|
-
if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
|
|
699
|
-
availableWidth = maximumClippingWidth;
|
|
700
|
-
}
|
|
701
|
-
if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
|
|
702
|
-
availableHeight = maximumClippingHeight;
|
|
703
|
-
}
|
|
704
|
-
if (noShift && !alignment) {
|
|
705
|
-
const xMin = max(overflow.left, 0);
|
|
706
|
-
const xMax = max(overflow.right, 0);
|
|
707
|
-
const yMin = max(overflow.top, 0);
|
|
708
|
-
const yMax = max(overflow.bottom, 0);
|
|
709
|
-
if (isYAxis) {
|
|
710
|
-
availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
|
|
711
|
-
} else {
|
|
712
|
-
availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
await apply({
|
|
716
|
-
...state,
|
|
717
|
-
availableWidth,
|
|
718
|
-
availableHeight
|
|
719
|
-
});
|
|
720
|
-
const nextDimensions = await platform.getDimensions(elements.floating);
|
|
721
|
-
if (width !== nextDimensions.width || height !== nextDimensions.height) {
|
|
722
|
-
return {
|
|
723
|
-
reset: {
|
|
724
|
-
rects: true
|
|
725
|
-
}
|
|
726
|
-
};
|
|
727
|
-
}
|
|
728
|
-
return {};
|
|
729
|
-
}
|
|
730
|
-
};
|
|
731
|
-
};
|
|
732
|
-
|
|
733
|
-
function hasWindow() {
|
|
734
|
-
return typeof window !== 'undefined';
|
|
735
|
-
}
|
|
736
|
-
function getNodeName(node) {
|
|
737
|
-
if (isNode(node)) {
|
|
738
|
-
return (node.nodeName || '').toLowerCase();
|
|
739
|
-
}
|
|
740
|
-
// Mocked nodes in testing environments may not be instances of Node. By
|
|
741
|
-
// returning `#document` an infinite loop won't occur.
|
|
742
|
-
// https://github.com/floating-ui/floating-ui/issues/2317
|
|
743
|
-
return '#document';
|
|
744
|
-
}
|
|
745
|
-
function getWindow(node) {
|
|
746
|
-
var _node$ownerDocument;
|
|
747
|
-
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
748
|
-
}
|
|
749
|
-
function getDocumentElement(node) {
|
|
750
|
-
var _ref;
|
|
751
|
-
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
752
|
-
}
|
|
753
|
-
function isNode(value) {
|
|
754
|
-
if (!hasWindow()) {
|
|
755
|
-
return false;
|
|
756
|
-
}
|
|
757
|
-
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
758
|
-
}
|
|
759
|
-
function isElement(value) {
|
|
760
|
-
if (!hasWindow()) {
|
|
761
|
-
return false;
|
|
762
|
-
}
|
|
763
|
-
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
764
|
-
}
|
|
765
|
-
function isHTMLElement(value) {
|
|
766
|
-
if (!hasWindow()) {
|
|
767
|
-
return false;
|
|
768
|
-
}
|
|
769
|
-
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
770
|
-
}
|
|
771
|
-
function isShadowRoot(value) {
|
|
772
|
-
if (!hasWindow() || typeof ShadowRoot === 'undefined') {
|
|
773
|
-
return false;
|
|
774
|
-
}
|
|
775
|
-
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
776
|
-
}
|
|
777
|
-
function isOverflowElement(element) {
|
|
778
|
-
const {
|
|
779
|
-
overflow,
|
|
780
|
-
overflowX,
|
|
781
|
-
overflowY,
|
|
782
|
-
display
|
|
783
|
-
} = getComputedStyle$1(element);
|
|
784
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
|
|
785
|
-
}
|
|
786
|
-
function isTableElement(element) {
|
|
787
|
-
return /^(table|td|th)$/.test(getNodeName(element));
|
|
788
|
-
}
|
|
789
|
-
function isTopLayer(element) {
|
|
790
|
-
try {
|
|
791
|
-
if (element.matches(':popover-open')) {
|
|
792
|
-
return true;
|
|
793
|
-
}
|
|
794
|
-
} catch (_e) {
|
|
795
|
-
// no-op
|
|
796
|
-
}
|
|
797
|
-
try {
|
|
798
|
-
return element.matches(':modal');
|
|
799
|
-
} catch (_e) {
|
|
800
|
-
return false;
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
|
|
804
|
-
const containRe = /paint|layout|strict|content/;
|
|
805
|
-
const isNotNone = value => !!value && value !== 'none';
|
|
806
|
-
let isWebKitValue;
|
|
807
|
-
function isContainingBlock(elementOrCss) {
|
|
808
|
-
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
809
|
-
|
|
810
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
811
|
-
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
812
|
-
return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');
|
|
813
|
-
}
|
|
814
|
-
function getContainingBlock(element) {
|
|
815
|
-
let currentNode = getParentNode(element);
|
|
816
|
-
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
817
|
-
if (isContainingBlock(currentNode)) {
|
|
818
|
-
return currentNode;
|
|
819
|
-
} else if (isTopLayer(currentNode)) {
|
|
820
|
-
return null;
|
|
821
|
-
}
|
|
822
|
-
currentNode = getParentNode(currentNode);
|
|
823
|
-
}
|
|
824
|
-
return null;
|
|
825
|
-
}
|
|
826
|
-
function isWebKit() {
|
|
827
|
-
if (isWebKitValue == null) {
|
|
828
|
-
isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
|
|
829
|
-
}
|
|
830
|
-
return isWebKitValue;
|
|
831
|
-
}
|
|
832
|
-
function isLastTraversableNode(node) {
|
|
833
|
-
return /^(html|body|#document)$/.test(getNodeName(node));
|
|
834
|
-
}
|
|
835
|
-
function getComputedStyle$1(element) {
|
|
836
|
-
return getWindow(element).getComputedStyle(element);
|
|
837
|
-
}
|
|
838
|
-
function getNodeScroll(element) {
|
|
839
|
-
if (isElement(element)) {
|
|
840
|
-
return {
|
|
841
|
-
scrollLeft: element.scrollLeft,
|
|
842
|
-
scrollTop: element.scrollTop
|
|
843
|
-
};
|
|
844
|
-
}
|
|
845
|
-
return {
|
|
846
|
-
scrollLeft: element.scrollX,
|
|
847
|
-
scrollTop: element.scrollY
|
|
848
|
-
};
|
|
849
|
-
}
|
|
850
|
-
function getParentNode(node) {
|
|
851
|
-
if (getNodeName(node) === 'html') {
|
|
852
|
-
return node;
|
|
853
|
-
}
|
|
854
|
-
const result =
|
|
855
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
856
|
-
node.assignedSlot ||
|
|
857
|
-
// DOM Element detected.
|
|
858
|
-
node.parentNode ||
|
|
859
|
-
// ShadowRoot detected.
|
|
860
|
-
isShadowRoot(node) && node.host ||
|
|
861
|
-
// Fallback.
|
|
862
|
-
getDocumentElement(node);
|
|
863
|
-
return isShadowRoot(result) ? result.host : result;
|
|
864
|
-
}
|
|
865
|
-
function getNearestOverflowAncestor(node) {
|
|
866
|
-
const parentNode = getParentNode(node);
|
|
867
|
-
if (isLastTraversableNode(parentNode)) {
|
|
868
|
-
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
869
|
-
}
|
|
870
|
-
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
871
|
-
return parentNode;
|
|
872
|
-
}
|
|
873
|
-
return getNearestOverflowAncestor(parentNode);
|
|
874
|
-
}
|
|
875
|
-
function getOverflowAncestors(node, list, traverseIframes) {
|
|
876
|
-
var _node$ownerDocument2;
|
|
877
|
-
if (list === void 0) {
|
|
878
|
-
list = [];
|
|
879
|
-
}
|
|
880
|
-
if (traverseIframes === void 0) {
|
|
881
|
-
traverseIframes = true;
|
|
882
|
-
}
|
|
883
|
-
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
884
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
885
|
-
const win = getWindow(scrollableAncestor);
|
|
886
|
-
if (isBody) {
|
|
887
|
-
const frameElement = getFrameElement(win);
|
|
888
|
-
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
889
|
-
} else {
|
|
890
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
function getFrameElement(win) {
|
|
894
|
-
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
function getCssDimensions(element) {
|
|
898
|
-
const css = getComputedStyle$1(element);
|
|
899
|
-
// In testing environments, the `width` and `height` properties are empty
|
|
900
|
-
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
|
901
|
-
let width = parseFloat(css.width) || 0;
|
|
902
|
-
let height = parseFloat(css.height) || 0;
|
|
903
|
-
const hasOffset = isHTMLElement(element);
|
|
904
|
-
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
905
|
-
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
906
|
-
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
907
|
-
if (shouldFallback) {
|
|
908
|
-
width = offsetWidth;
|
|
909
|
-
height = offsetHeight;
|
|
910
|
-
}
|
|
911
|
-
return {
|
|
912
|
-
width,
|
|
913
|
-
height,
|
|
914
|
-
$: shouldFallback
|
|
915
|
-
};
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
function unwrapElement(element) {
|
|
919
|
-
return !isElement(element) ? element.contextElement : element;
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
function getScale(element) {
|
|
923
|
-
const domElement = unwrapElement(element);
|
|
924
|
-
if (!isHTMLElement(domElement)) {
|
|
925
|
-
return createCoords(1);
|
|
926
|
-
}
|
|
927
|
-
const rect = domElement.getBoundingClientRect();
|
|
928
|
-
const {
|
|
929
|
-
width,
|
|
930
|
-
height,
|
|
931
|
-
$
|
|
932
|
-
} = getCssDimensions(domElement);
|
|
933
|
-
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
934
|
-
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
935
|
-
|
|
936
|
-
// 0, NaN, or Infinity should always fallback to 1.
|
|
937
|
-
|
|
938
|
-
if (!x || !Number.isFinite(x)) {
|
|
939
|
-
x = 1;
|
|
940
|
-
}
|
|
941
|
-
if (!y || !Number.isFinite(y)) {
|
|
942
|
-
y = 1;
|
|
943
|
-
}
|
|
944
|
-
return {
|
|
945
|
-
x,
|
|
946
|
-
y
|
|
947
|
-
};
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
const noOffsets = /*#__PURE__*/createCoords(0);
|
|
951
|
-
function getVisualOffsets(element) {
|
|
952
|
-
const win = getWindow(element);
|
|
953
|
-
if (!isWebKit() || !win.visualViewport) {
|
|
954
|
-
return noOffsets;
|
|
955
|
-
}
|
|
956
|
-
return {
|
|
957
|
-
x: win.visualViewport.offsetLeft,
|
|
958
|
-
y: win.visualViewport.offsetTop
|
|
959
|
-
};
|
|
960
|
-
}
|
|
961
|
-
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
962
|
-
if (isFixed === void 0) {
|
|
963
|
-
isFixed = false;
|
|
964
|
-
}
|
|
965
|
-
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
966
|
-
return false;
|
|
967
|
-
}
|
|
968
|
-
return isFixed;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
972
|
-
if (includeScale === void 0) {
|
|
973
|
-
includeScale = false;
|
|
974
|
-
}
|
|
975
|
-
if (isFixedStrategy === void 0) {
|
|
976
|
-
isFixedStrategy = false;
|
|
977
|
-
}
|
|
978
|
-
const clientRect = element.getBoundingClientRect();
|
|
979
|
-
const domElement = unwrapElement(element);
|
|
980
|
-
let scale = createCoords(1);
|
|
981
|
-
if (includeScale) {
|
|
982
|
-
if (offsetParent) {
|
|
983
|
-
if (isElement(offsetParent)) {
|
|
984
|
-
scale = getScale(offsetParent);
|
|
985
|
-
}
|
|
986
|
-
} else {
|
|
987
|
-
scale = getScale(element);
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
991
|
-
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
992
|
-
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
993
|
-
let width = clientRect.width / scale.x;
|
|
994
|
-
let height = clientRect.height / scale.y;
|
|
995
|
-
if (domElement) {
|
|
996
|
-
const win = getWindow(domElement);
|
|
997
|
-
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
998
|
-
let currentWin = win;
|
|
999
|
-
let currentIFrame = getFrameElement(currentWin);
|
|
1000
|
-
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
1001
|
-
const iframeScale = getScale(currentIFrame);
|
|
1002
|
-
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
1003
|
-
const css = getComputedStyle$1(currentIFrame);
|
|
1004
|
-
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
1005
|
-
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
1006
|
-
x *= iframeScale.x;
|
|
1007
|
-
y *= iframeScale.y;
|
|
1008
|
-
width *= iframeScale.x;
|
|
1009
|
-
height *= iframeScale.y;
|
|
1010
|
-
x += left;
|
|
1011
|
-
y += top;
|
|
1012
|
-
currentWin = getWindow(currentIFrame);
|
|
1013
|
-
currentIFrame = getFrameElement(currentWin);
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
return rectToClientRect({
|
|
1017
|
-
width,
|
|
1018
|
-
height,
|
|
1019
|
-
x,
|
|
1020
|
-
y
|
|
1021
|
-
});
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
// If <html> has a CSS width greater than the viewport, then this will be
|
|
1025
|
-
// incorrect for RTL.
|
|
1026
|
-
function getWindowScrollBarX(element, rect) {
|
|
1027
|
-
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
1028
|
-
if (!rect) {
|
|
1029
|
-
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
1030
|
-
}
|
|
1031
|
-
return rect.left + leftScroll;
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
function getHTMLOffset(documentElement, scroll) {
|
|
1035
|
-
const htmlRect = documentElement.getBoundingClientRect();
|
|
1036
|
-
const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
1037
|
-
const y = htmlRect.top + scroll.scrollTop;
|
|
1038
|
-
return {
|
|
1039
|
-
x,
|
|
1040
|
-
y
|
|
1041
|
-
};
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
1045
|
-
let {
|
|
1046
|
-
elements,
|
|
1047
|
-
rect,
|
|
1048
|
-
offsetParent,
|
|
1049
|
-
strategy
|
|
1050
|
-
} = _ref;
|
|
1051
|
-
const isFixed = strategy === 'fixed';
|
|
1052
|
-
const documentElement = getDocumentElement(offsetParent);
|
|
1053
|
-
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
|
1054
|
-
if (offsetParent === documentElement || topLayer && isFixed) {
|
|
1055
|
-
return rect;
|
|
1056
|
-
}
|
|
1057
|
-
let scroll = {
|
|
1058
|
-
scrollLeft: 0,
|
|
1059
|
-
scrollTop: 0
|
|
1060
|
-
};
|
|
1061
|
-
let scale = createCoords(1);
|
|
1062
|
-
const offsets = createCoords(0);
|
|
1063
|
-
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1064
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1065
|
-
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1066
|
-
scroll = getNodeScroll(offsetParent);
|
|
1067
|
-
}
|
|
1068
|
-
if (isOffsetParentAnElement) {
|
|
1069
|
-
const offsetRect = getBoundingClientRect(offsetParent);
|
|
1070
|
-
scale = getScale(offsetParent);
|
|
1071
|
-
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1072
|
-
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
1076
|
-
return {
|
|
1077
|
-
width: rect.width * scale.x,
|
|
1078
|
-
height: rect.height * scale.y,
|
|
1079
|
-
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
|
|
1080
|
-
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
|
|
1081
|
-
};
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
|
-
function getClientRects(element) {
|
|
1085
|
-
return Array.from(element.getClientRects());
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
// Gets the entire size of the scrollable document area, even extending outside
|
|
1089
|
-
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
1090
|
-
function getDocumentRect(element) {
|
|
1091
|
-
const html = getDocumentElement(element);
|
|
1092
|
-
const scroll = getNodeScroll(element);
|
|
1093
|
-
const body = element.ownerDocument.body;
|
|
1094
|
-
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
1095
|
-
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
1096
|
-
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
1097
|
-
const y = -scroll.scrollTop;
|
|
1098
|
-
if (getComputedStyle$1(body).direction === 'rtl') {
|
|
1099
|
-
x += max(html.clientWidth, body.clientWidth) - width;
|
|
1100
|
-
}
|
|
1101
|
-
return {
|
|
1102
|
-
width,
|
|
1103
|
-
height,
|
|
1104
|
-
x,
|
|
1105
|
-
y
|
|
1106
|
-
};
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
// Safety check: ensure the scrollbar space is reasonable in case this
|
|
1110
|
-
// calculation is affected by unusual styles.
|
|
1111
|
-
// Most scrollbars leave 15-18px of space.
|
|
1112
|
-
const SCROLLBAR_MAX = 25;
|
|
1113
|
-
function getViewportRect(element, strategy) {
|
|
1114
|
-
const win = getWindow(element);
|
|
1115
|
-
const html = getDocumentElement(element);
|
|
1116
|
-
const visualViewport = win.visualViewport;
|
|
1117
|
-
let width = html.clientWidth;
|
|
1118
|
-
let height = html.clientHeight;
|
|
1119
|
-
let x = 0;
|
|
1120
|
-
let y = 0;
|
|
1121
|
-
if (visualViewport) {
|
|
1122
|
-
width = visualViewport.width;
|
|
1123
|
-
height = visualViewport.height;
|
|
1124
|
-
const visualViewportBased = isWebKit();
|
|
1125
|
-
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
|
1126
|
-
x = visualViewport.offsetLeft;
|
|
1127
|
-
y = visualViewport.offsetTop;
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
const windowScrollbarX = getWindowScrollBarX(html);
|
|
1131
|
-
// <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the
|
|
1132
|
-
// visual width of the <html> but this is not considered in the size
|
|
1133
|
-
// of `html.clientWidth`.
|
|
1134
|
-
if (windowScrollbarX <= 0) {
|
|
1135
|
-
const doc = html.ownerDocument;
|
|
1136
|
-
const body = doc.body;
|
|
1137
|
-
const bodyStyles = getComputedStyle(body);
|
|
1138
|
-
const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
|
|
1139
|
-
const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
|
|
1140
|
-
if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
|
|
1141
|
-
width -= clippingStableScrollbarWidth;
|
|
1142
|
-
}
|
|
1143
|
-
} else if (windowScrollbarX <= SCROLLBAR_MAX) {
|
|
1144
|
-
// If the <body> scrollbar is on the left, the width needs to be extended
|
|
1145
|
-
// by the scrollbar amount so there isn't extra space on the right.
|
|
1146
|
-
width += windowScrollbarX;
|
|
1147
|
-
}
|
|
1148
|
-
return {
|
|
1149
|
-
width,
|
|
1150
|
-
height,
|
|
1151
|
-
x,
|
|
1152
|
-
y
|
|
1153
|
-
};
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
// Returns the inner client rect, subtracting scrollbars if present.
|
|
1157
|
-
function getInnerBoundingClientRect(element, strategy) {
|
|
1158
|
-
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
1159
|
-
const top = clientRect.top + element.clientTop;
|
|
1160
|
-
const left = clientRect.left + element.clientLeft;
|
|
1161
|
-
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
|
1162
|
-
const width = element.clientWidth * scale.x;
|
|
1163
|
-
const height = element.clientHeight * scale.y;
|
|
1164
|
-
const x = left * scale.x;
|
|
1165
|
-
const y = top * scale.y;
|
|
1166
|
-
return {
|
|
1167
|
-
width,
|
|
1168
|
-
height,
|
|
1169
|
-
x,
|
|
1170
|
-
y
|
|
1171
|
-
};
|
|
1172
|
-
}
|
|
1173
|
-
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
1174
|
-
let rect;
|
|
1175
|
-
if (clippingAncestor === 'viewport') {
|
|
1176
|
-
rect = getViewportRect(element, strategy);
|
|
1177
|
-
} else if (clippingAncestor === 'document') {
|
|
1178
|
-
rect = getDocumentRect(getDocumentElement(element));
|
|
1179
|
-
} else if (isElement(clippingAncestor)) {
|
|
1180
|
-
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
1181
|
-
} else {
|
|
1182
|
-
const visualOffsets = getVisualOffsets(element);
|
|
1183
|
-
rect = {
|
|
1184
|
-
x: clippingAncestor.x - visualOffsets.x,
|
|
1185
|
-
y: clippingAncestor.y - visualOffsets.y,
|
|
1186
|
-
width: clippingAncestor.width,
|
|
1187
|
-
height: clippingAncestor.height
|
|
1188
|
-
};
|
|
1189
|
-
}
|
|
1190
|
-
return rectToClientRect(rect);
|
|
1191
|
-
}
|
|
1192
|
-
function hasFixedPositionAncestor(element, stopNode) {
|
|
1193
|
-
const parentNode = getParentNode(element);
|
|
1194
|
-
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
1195
|
-
return false;
|
|
1196
|
-
}
|
|
1197
|
-
return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
1201
|
-
// clipping (or hiding) child elements. This returns all clipping ancestors
|
|
1202
|
-
// of the given element up the tree.
|
|
1203
|
-
function getClippingElementAncestors(element, cache) {
|
|
1204
|
-
const cachedResult = cache.get(element);
|
|
1205
|
-
if (cachedResult) {
|
|
1206
|
-
return cachedResult;
|
|
1207
|
-
}
|
|
1208
|
-
let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
1209
|
-
let currentContainingBlockComputedStyle = null;
|
|
1210
|
-
const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
|
|
1211
|
-
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1212
|
-
|
|
1213
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
1214
|
-
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1215
|
-
const computedStyle = getComputedStyle$1(currentNode);
|
|
1216
|
-
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
1217
|
-
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
1218
|
-
currentContainingBlockComputedStyle = null;
|
|
1219
|
-
}
|
|
1220
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === 'absolute' || currentContainingBlockComputedStyle.position === 'fixed') || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
1221
|
-
if (shouldDropCurrentNode) {
|
|
1222
|
-
// Drop non-containing blocks.
|
|
1223
|
-
result = result.filter(ancestor => ancestor !== currentNode);
|
|
1224
|
-
} else {
|
|
1225
|
-
// Record last containing block for next iteration.
|
|
1226
|
-
currentContainingBlockComputedStyle = computedStyle;
|
|
1227
|
-
}
|
|
1228
|
-
currentNode = getParentNode(currentNode);
|
|
1229
|
-
}
|
|
1230
|
-
cache.set(element, result);
|
|
1231
|
-
return result;
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
// Gets the maximum area that the element is visible in due to any number of
|
|
1235
|
-
// clipping ancestors.
|
|
1236
|
-
function getClippingRect(_ref) {
|
|
1237
|
-
let {
|
|
1238
|
-
element,
|
|
1239
|
-
boundary,
|
|
1240
|
-
rootBoundary,
|
|
1241
|
-
strategy
|
|
1242
|
-
} = _ref;
|
|
1243
|
-
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
1244
|
-
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
1245
|
-
const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
|
|
1246
|
-
let top = firstRect.top;
|
|
1247
|
-
let right = firstRect.right;
|
|
1248
|
-
let bottom = firstRect.bottom;
|
|
1249
|
-
let left = firstRect.left;
|
|
1250
|
-
for (let i = 1; i < clippingAncestors.length; i++) {
|
|
1251
|
-
const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
|
|
1252
|
-
top = max(rect.top, top);
|
|
1253
|
-
right = min(rect.right, right);
|
|
1254
|
-
bottom = min(rect.bottom, bottom);
|
|
1255
|
-
left = max(rect.left, left);
|
|
1256
|
-
}
|
|
1257
|
-
return {
|
|
1258
|
-
width: right - left,
|
|
1259
|
-
height: bottom - top,
|
|
1260
|
-
x: left,
|
|
1261
|
-
y: top
|
|
1262
|
-
};
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
function getDimensions(element) {
|
|
1266
|
-
const {
|
|
1267
|
-
width,
|
|
1268
|
-
height
|
|
1269
|
-
} = getCssDimensions(element);
|
|
1270
|
-
return {
|
|
1271
|
-
width,
|
|
1272
|
-
height
|
|
1273
|
-
};
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
1277
|
-
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1278
|
-
const documentElement = getDocumentElement(offsetParent);
|
|
1279
|
-
const isFixed = strategy === 'fixed';
|
|
1280
|
-
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
1281
|
-
let scroll = {
|
|
1282
|
-
scrollLeft: 0,
|
|
1283
|
-
scrollTop: 0
|
|
1284
|
-
};
|
|
1285
|
-
const offsets = createCoords(0);
|
|
1286
|
-
|
|
1287
|
-
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
1288
|
-
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
1289
|
-
function setLeftRTLScrollbarOffset() {
|
|
1290
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
1291
|
-
}
|
|
1292
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1293
|
-
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1294
|
-
scroll = getNodeScroll(offsetParent);
|
|
1295
|
-
}
|
|
1296
|
-
if (isOffsetParentAnElement) {
|
|
1297
|
-
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
1298
|
-
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1299
|
-
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1300
|
-
} else if (documentElement) {
|
|
1301
|
-
setLeftRTLScrollbarOffset();
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
1305
|
-
setLeftRTLScrollbarOffset();
|
|
1306
|
-
}
|
|
1307
|
-
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
1308
|
-
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
1309
|
-
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
1310
|
-
return {
|
|
1311
|
-
x,
|
|
1312
|
-
y,
|
|
1313
|
-
width: rect.width,
|
|
1314
|
-
height: rect.height
|
|
1315
|
-
};
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
function isStaticPositioned(element) {
|
|
1319
|
-
return getComputedStyle$1(element).position === 'static';
|
|
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
|
-
let rawOffsetParent = element.offsetParent;
|
|
1330
|
-
|
|
1331
|
-
// Firefox returns the <html> element as the offsetParent if it's non-static,
|
|
1332
|
-
// while Chrome and Safari return the <body> element. The <body> element must
|
|
1333
|
-
// be used to perform the correct calculations even if the <html> element is
|
|
1334
|
-
// non-static.
|
|
1335
|
-
if (getDocumentElement(element) === rawOffsetParent) {
|
|
1336
|
-
rawOffsetParent = rawOffsetParent.ownerDocument.body;
|
|
1337
|
-
}
|
|
1338
|
-
return rawOffsetParent;
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
1342
|
-
// such as table ancestors and cross browser bugs.
|
|
1343
|
-
function getOffsetParent(element, polyfill) {
|
|
1344
|
-
const win = getWindow(element);
|
|
1345
|
-
if (isTopLayer(element)) {
|
|
1346
|
-
return win;
|
|
1347
|
-
}
|
|
1348
|
-
if (!isHTMLElement(element)) {
|
|
1349
|
-
let svgOffsetParent = getParentNode(element);
|
|
1350
|
-
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
1351
|
-
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
1352
|
-
return svgOffsetParent;
|
|
1353
|
-
}
|
|
1354
|
-
svgOffsetParent = getParentNode(svgOffsetParent);
|
|
1355
|
-
}
|
|
1356
|
-
return win;
|
|
1357
|
-
}
|
|
1358
|
-
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
1359
|
-
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
|
1360
|
-
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
1361
|
-
}
|
|
1362
|
-
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
|
1363
|
-
return win;
|
|
1364
|
-
}
|
|
1365
|
-
return offsetParent || getContainingBlock(element) || win;
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
const getElementRects = async function (data) {
|
|
1369
|
-
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
1370
|
-
const getDimensionsFn = this.getDimensions;
|
|
1371
|
-
const floatingDimensions = await getDimensionsFn(data.floating);
|
|
1372
|
-
return {
|
|
1373
|
-
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
|
1374
|
-
floating: {
|
|
1375
|
-
x: 0,
|
|
1376
|
-
y: 0,
|
|
1377
|
-
width: floatingDimensions.width,
|
|
1378
|
-
height: floatingDimensions.height
|
|
1379
|
-
}
|
|
1380
|
-
};
|
|
1381
|
-
};
|
|
1382
|
-
|
|
1383
|
-
function isRTL(element) {
|
|
1384
|
-
return getComputedStyle$1(element).direction === 'rtl';
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
const platform = {
|
|
1388
|
-
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
1389
|
-
getDocumentElement,
|
|
1390
|
-
getClippingRect,
|
|
1391
|
-
getOffsetParent,
|
|
1392
|
-
getElementRects,
|
|
1393
|
-
getClientRects,
|
|
1394
|
-
getDimensions,
|
|
1395
|
-
getScale,
|
|
1396
|
-
isElement,
|
|
1397
|
-
isRTL
|
|
1398
|
-
};
|
|
1399
|
-
|
|
1400
|
-
function rectsAreEqual(a, b) {
|
|
1401
|
-
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
1402
|
-
}
|
|
1403
|
-
|
|
1404
|
-
// https://samthor.au/2021/observing-dom/
|
|
1405
|
-
function observeMove(element, onMove) {
|
|
1406
|
-
let io = null;
|
|
1407
|
-
let timeoutId;
|
|
1408
|
-
const root = getDocumentElement(element);
|
|
1409
|
-
function cleanup() {
|
|
1410
|
-
var _io;
|
|
1411
|
-
clearTimeout(timeoutId);
|
|
1412
|
-
(_io = io) == null || _io.disconnect();
|
|
1413
|
-
io = null;
|
|
1414
|
-
}
|
|
1415
|
-
function refresh(skip, threshold) {
|
|
1416
|
-
if (skip === void 0) {
|
|
1417
|
-
skip = false;
|
|
1418
|
-
}
|
|
1419
|
-
if (threshold === void 0) {
|
|
1420
|
-
threshold = 1;
|
|
1421
|
-
}
|
|
1422
|
-
cleanup();
|
|
1423
|
-
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
1424
|
-
const {
|
|
1425
|
-
left,
|
|
1426
|
-
top,
|
|
1427
|
-
width,
|
|
1428
|
-
height
|
|
1429
|
-
} = elementRectForRootMargin;
|
|
1430
|
-
if (!skip) {
|
|
1431
|
-
onMove();
|
|
1432
|
-
}
|
|
1433
|
-
if (!width || !height) {
|
|
1434
|
-
return;
|
|
1435
|
-
}
|
|
1436
|
-
const insetTop = floor(top);
|
|
1437
|
-
const insetRight = floor(root.clientWidth - (left + width));
|
|
1438
|
-
const insetBottom = floor(root.clientHeight - (top + height));
|
|
1439
|
-
const insetLeft = floor(left);
|
|
1440
|
-
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
1441
|
-
const options = {
|
|
1442
|
-
rootMargin,
|
|
1443
|
-
threshold: max(0, min(1, threshold)) || 1
|
|
1444
|
-
};
|
|
1445
|
-
let isFirstUpdate = true;
|
|
1446
|
-
function handleObserve(entries) {
|
|
1447
|
-
const ratio = entries[0].intersectionRatio;
|
|
1448
|
-
if (ratio !== threshold) {
|
|
1449
|
-
if (!isFirstUpdate) {
|
|
1450
|
-
return refresh();
|
|
1451
|
-
}
|
|
1452
|
-
if (!ratio) {
|
|
1453
|
-
// If the reference is clipped, the ratio is 0. Throttle the refresh
|
|
1454
|
-
// to prevent an infinite loop of updates.
|
|
1455
|
-
timeoutId = setTimeout(() => {
|
|
1456
|
-
refresh(false, 1e-7);
|
|
1457
|
-
}, 1000);
|
|
1458
|
-
} else {
|
|
1459
|
-
refresh(false, ratio);
|
|
1460
|
-
}
|
|
1461
|
-
}
|
|
1462
|
-
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
1463
|
-
// It's possible that even though the ratio is reported as 1, the
|
|
1464
|
-
// element is not actually fully within the IntersectionObserver's root
|
|
1465
|
-
// area anymore. This can happen under performance constraints. This may
|
|
1466
|
-
// be a bug in the browser's IntersectionObserver implementation. To
|
|
1467
|
-
// work around this, we compare the element's bounding rect now with
|
|
1468
|
-
// what it was at the time we created the IntersectionObserver. If they
|
|
1469
|
-
// are not equal then the element moved, so we refresh.
|
|
1470
|
-
refresh();
|
|
1471
|
-
}
|
|
1472
|
-
isFirstUpdate = false;
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
// Older browsers don't support a `document` as the root and will throw an
|
|
1476
|
-
// error.
|
|
1477
|
-
try {
|
|
1478
|
-
io = new IntersectionObserver(handleObserve, {
|
|
1479
|
-
...options,
|
|
1480
|
-
// Handle <iframe>s
|
|
1481
|
-
root: root.ownerDocument
|
|
1482
|
-
});
|
|
1483
|
-
} catch (_e) {
|
|
1484
|
-
io = new IntersectionObserver(handleObserve, options);
|
|
1485
|
-
}
|
|
1486
|
-
io.observe(element);
|
|
1487
|
-
}
|
|
1488
|
-
refresh(true);
|
|
1489
|
-
return cleanup;
|
|
1490
|
-
}
|
|
1491
|
-
|
|
1492
|
-
/**
|
|
1493
|
-
* Automatically updates the position of the floating element when necessary.
|
|
1494
|
-
* Should only be called when the floating element is mounted on the DOM or
|
|
1495
|
-
* visible on the screen.
|
|
1496
|
-
* @returns cleanup function that should be invoked when the floating element is
|
|
1497
|
-
* removed from the DOM or hidden from the screen.
|
|
1498
|
-
* @see https://floating-ui.com/docs/autoUpdate
|
|
1499
|
-
*/
|
|
1500
|
-
function autoUpdate(reference, floating, update, options) {
|
|
1501
|
-
if (options === void 0) {
|
|
1502
|
-
options = {};
|
|
1503
|
-
}
|
|
1504
|
-
const {
|
|
1505
|
-
ancestorScroll = true,
|
|
1506
|
-
ancestorResize = true,
|
|
1507
|
-
elementResize = typeof ResizeObserver === 'function',
|
|
1508
|
-
layoutShift = typeof IntersectionObserver === 'function',
|
|
1509
|
-
animationFrame = false
|
|
1510
|
-
} = options;
|
|
1511
|
-
const referenceEl = unwrapElement(reference);
|
|
1512
|
-
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...(floating ? getOverflowAncestors(floating) : [])] : [];
|
|
1513
|
-
ancestors.forEach(ancestor => {
|
|
1514
|
-
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
1515
|
-
passive: true
|
|
1516
|
-
});
|
|
1517
|
-
ancestorResize && ancestor.addEventListener('resize', update);
|
|
1518
|
-
});
|
|
1519
|
-
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
1520
|
-
let reobserveFrame = -1;
|
|
1521
|
-
let resizeObserver = null;
|
|
1522
|
-
if (elementResize) {
|
|
1523
|
-
resizeObserver = new ResizeObserver(_ref => {
|
|
1524
|
-
let [firstEntry] = _ref;
|
|
1525
|
-
if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
|
|
1526
|
-
// Prevent update loops when using the `size` middleware.
|
|
1527
|
-
// https://github.com/floating-ui/floating-ui/issues/1740
|
|
1528
|
-
resizeObserver.unobserve(floating);
|
|
1529
|
-
cancelAnimationFrame(reobserveFrame);
|
|
1530
|
-
reobserveFrame = requestAnimationFrame(() => {
|
|
1531
|
-
var _resizeObserver;
|
|
1532
|
-
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
|
1533
|
-
});
|
|
1534
|
-
}
|
|
1535
|
-
update();
|
|
1536
|
-
});
|
|
1537
|
-
if (referenceEl && !animationFrame) {
|
|
1538
|
-
resizeObserver.observe(referenceEl);
|
|
1539
|
-
}
|
|
1540
|
-
if (floating) {
|
|
1541
|
-
resizeObserver.observe(floating);
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1544
|
-
let frameId;
|
|
1545
|
-
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
1546
|
-
if (animationFrame) {
|
|
1547
|
-
frameLoop();
|
|
1548
|
-
}
|
|
1549
|
-
function frameLoop() {
|
|
1550
|
-
const nextRefRect = getBoundingClientRect(reference);
|
|
1551
|
-
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
1552
|
-
update();
|
|
1553
|
-
}
|
|
1554
|
-
prevRefRect = nextRefRect;
|
|
1555
|
-
frameId = requestAnimationFrame(frameLoop);
|
|
1556
|
-
}
|
|
1557
|
-
update();
|
|
1558
|
-
return () => {
|
|
1559
|
-
var _resizeObserver2;
|
|
1560
|
-
ancestors.forEach(ancestor => {
|
|
1561
|
-
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
1562
|
-
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
1563
|
-
});
|
|
1564
|
-
cleanupIo == null || cleanupIo();
|
|
1565
|
-
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
|
1566
|
-
resizeObserver = null;
|
|
1567
|
-
if (animationFrame) {
|
|
1568
|
-
cancelAnimationFrame(frameId);
|
|
1569
|
-
}
|
|
1570
|
-
};
|
|
1571
|
-
}
|
|
1572
|
-
|
|
1573
|
-
/**
|
|
1574
|
-
* Modifies the placement by translating the floating element along the
|
|
1575
|
-
* specified axes.
|
|
1576
|
-
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
1577
|
-
* object may be passed.
|
|
1578
|
-
* @see https://floating-ui.com/docs/offset
|
|
1579
|
-
*/
|
|
1580
|
-
const offset = offset$1;
|
|
1581
|
-
|
|
1582
|
-
/**
|
|
1583
|
-
* Optimizes the visibility of the floating element by shifting it in order to
|
|
1584
|
-
* keep it in view when it will overflow the clipping boundary.
|
|
1585
|
-
* @see https://floating-ui.com/docs/shift
|
|
1586
|
-
*/
|
|
1587
|
-
const shift = shift$1;
|
|
1588
|
-
|
|
1589
|
-
/**
|
|
1590
|
-
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
1591
|
-
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
1592
|
-
* clipping boundary. Alternative to `autoPlacement`.
|
|
1593
|
-
* @see https://floating-ui.com/docs/flip
|
|
1594
|
-
*/
|
|
1595
|
-
const flip = flip$1;
|
|
1596
|
-
|
|
1597
|
-
/**
|
|
1598
|
-
* Provides data that allows you to change the size of the floating element —
|
|
1599
|
-
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
1600
|
-
* width of the reference element.
|
|
1601
|
-
* @see https://floating-ui.com/docs/size
|
|
1602
|
-
*/
|
|
1603
|
-
const size = size$1;
|
|
1604
|
-
|
|
1605
|
-
/**
|
|
1606
|
-
* Computes the `x` and `y` coordinates that will place the floating element
|
|
1607
|
-
* next to a given reference element.
|
|
1608
|
-
*/
|
|
1609
|
-
const computePosition = (reference, floating, options) => {
|
|
1610
|
-
// This caches the expensive `getClippingElementAncestors` function so that
|
|
1611
|
-
// multiple lifecycle resets re-use the same result. It only lives for a
|
|
1612
|
-
// single call. If other functions become expensive, we can add them as well.
|
|
1613
|
-
const cache = new Map();
|
|
1614
|
-
const mergedOptions = {
|
|
1615
|
-
platform,
|
|
1616
|
-
...options
|
|
1617
|
-
};
|
|
1618
|
-
const platformWithCache = {
|
|
1619
|
-
...mergedOptions.platform,
|
|
1620
|
-
_c: cache
|
|
1621
|
-
};
|
|
1622
|
-
return computePosition$1(reference, floating, {
|
|
1623
|
-
...mergedOptions,
|
|
1624
|
-
platform: platformWithCache
|
|
1625
|
-
});
|
|
1626
|
-
};
|
|
1627
|
-
|
|
1628
|
-
export { autoUpdate as a, size as b, computePosition as c, flip as f, offset as o, shift as s };
|
|
1629
|
-
//# sourceMappingURL=floating-ui.dom.js.map
|
|
1630
|
-
|
|
1631
|
-
//# sourceMappingURL=floating-ui.dom.js.map
|
|
1
|
+
const t=Math.min,n=Math.max,e=Math.round,o=Math.floor,r=t=>({x:t,y:t}),i={left:"right",right:"left",bottom:"top",top:"bottom"};function c(e,o,r){return n(e,t(o,r))}function l(t,n){return"function"==typeof t?t(n):t}function a(t){return t.split("-")[0]}function s(t){return t.split("-")[1]}function u(t){return"x"===t?"y":"x"}function f(t){return"y"===t?"height":"width"}function d(t){const n=t[0];return"t"===n||"b"===n?"y":"x"}function m(t){return u(d(t))}function y(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const h=["left","right"],p=["right","left"],w=["top","bottom"],x=["bottom","top"];function g(t){const n=a(t);return i[n]+t.slice(n.length)}function v(t){const{x:n,y:e,width:o,height:r}=t;return{width:o,height:r,top:e,left:n,right:n+o,bottom:e+r,x:n,y:e}}function b(t,n,e){let{reference:o,floating:r}=t;const i=d(n),c=m(n),l=f(c),u=a(n),y="y"===i,h=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,w=o[l]/2-r[l]/2;let x;switch(u){case"top":x={x:h,y:o.y-r.height};break;case"bottom":x={x:h,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:p};break;case"left":x={x:o.x-r.width,y:p};break;default:x={x:o.x,y:o.y}}switch(s(n)){case"start":x[c]-=w*(e&&y?-1:1);break;case"end":x[c]+=w*(e&&y?-1:1)}return x}async function A(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:c,elements:a,strategy:s}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:y=0}=l(n,t),h=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(y),p=a[m?"floating"===d?"reference":"floating":d],w=v(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(p)))||e?p:p.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:s})),x="floating"===d?{x:o,y:r,width:c.floating.width,height:c.floating.height}:c.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},A=v(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:g,strategy:s}):x);return{top:(w.top-A.top+h.top)/b.y,bottom:(A.bottom-w.bottom+h.bottom)/b.y,left:(w.left-A.left+h.left)/b.x,right:(A.right-w.right+h.right)/b.x}}const S=new Set(["left","top"]);function R(){return"undefined"!=typeof window}function F(t){return O(t)?(t.nodeName||"").toLowerCase():"#document"}function k(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function C(t){var n;return null==(n=(O(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function O(t){return!!R()&&(t instanceof Node||t instanceof k(t).Node)}function T(t){return!!R()&&(t instanceof Element||t instanceof k(t).Element)}function M(t){return!!R()&&(t instanceof HTMLElement||t instanceof k(t).HTMLElement)}function P(t){return!(!R()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof k(t).ShadowRoot)}function z(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=H(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&"inline"!==r&&"contents"!==r}function D(t){return/^(table|td|th)$/.test(F(t))}function L(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const E=/transform|translate|scale|rotate|perspective|filter/,B=/paint|layout|strict|content/,$=t=>!!t&&"none"!==t;let I;function N(t){const n=T(t)?H(t):t;return $(n.transform)||$(n.translate)||$(n.scale)||$(n.rotate)||$(n.perspective)||!j()&&($(n.backdropFilter)||$(n.filter))||E.test(n.willChange||"")||B.test(n.contain||"")}function j(){return null==I&&(I="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),I}function q(t){return/^(html|body|#document)$/.test(F(t))}function H(t){return k(t).getComputedStyle(t)}function V(t){return T(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function W(t){if("html"===F(t))return t;const n=t.assignedSlot||t.parentNode||P(t)&&t.host||C(t);return P(n)?n.host:n}function X(t){const n=W(t);return q(n)?t.ownerDocument?t.ownerDocument.body:t.body:M(n)&&z(n)?n:X(n)}function Y(t,n,e){var o;void 0===n&&(n=[]),void 0===e&&(e=!0);const r=X(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),c=k(r);if(i){const t=_(c);return n.concat(c,c.visualViewport||[],z(r)?r:[],t&&e?Y(t):[])}return n.concat(r,Y(r,[],e))}function _(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function G(t){const n=H(t);let o=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const i=M(t),c=i?t.offsetWidth:o,l=i?t.offsetHeight:r,a=e(o)!==c||e(r)!==l;return a&&(o=c,r=l),{width:o,height:r,$:a}}function J(t){return T(t)?t:t.contextElement}function K(t){const n=J(t);if(!M(n))return r(1);const o=n.getBoundingClientRect(),{width:i,height:c,$:l}=G(n);let a=(l?e(o.width):o.width)/i,s=(l?e(o.height):o.height)/c;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Q=r(0);function U(t){const n=k(t);return j()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:Q}function Z(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),c=J(t);let l=r(1);n&&(o?T(o)&&(l=K(o)):l=K(t));const a=function(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==k(t))&&n}(c,e,o)?U(c):r(0);let s=(i.left+a.x)/l.x,u=(i.top+a.y)/l.y,f=i.width/l.x,d=i.height/l.y;if(c){const t=k(c),n=o&&T(o)?k(o):o;let e=t,r=_(e);for(;r&&o&&n!==e;){const t=K(r),n=r.getBoundingClientRect(),o=H(r),i=n.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,c=n.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;s*=t.x,u*=t.y,f*=t.x,d*=t.y,s+=i,u+=c,e=k(r),r=_(e)}}return v({width:f,height:d,x:s,y:u})}function tt(t,n){const e=V(t).scrollLeft;return n?n.left+e:Z(C(t)).left+e}function nt(t,n){const e=t.getBoundingClientRect();return{x:e.left+n.scrollLeft-tt(t,e),y:e.top+n.scrollTop}}function et(t,e,o){let i;if("viewport"===e)i=function(t,n){const e=k(t),o=C(t),r=e.visualViewport;let i=o.clientWidth,c=o.clientHeight,l=0,a=0;if(r){i=r.width,c=r.height;const t=j();(!t||t&&"fixed"===n)&&(l=r.offsetLeft,a=r.offsetTop)}const s=tt(o);if(s<=0){const t=o.ownerDocument,n=t.body,e=getComputedStyle(n),r="CSS1Compat"===t.compatMode&&parseFloat(e.marginLeft)+parseFloat(e.marginRight)||0,c=Math.abs(o.clientWidth-n.clientWidth-r);c<=25&&(i-=c)}else s<=25&&(i+=s);return{width:i,height:c,x:l,y:a}}(t,o);else if("document"===e)i=function(t){const e=C(t),o=V(t),r=t.ownerDocument.body,i=n(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),c=n(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let l=-o.scrollLeft+tt(t);const a=-o.scrollTop;return"rtl"===H(r).direction&&(l+=n(e.clientWidth,r.clientWidth)-i),{width:i,height:c,x:l,y:a}}(C(t));else if(T(e))i=function(t,n){const e=Z(t,!0,"fixed"===n),o=e.top+t.clientTop,i=e.left+t.clientLeft,c=M(t)?K(t):r(1);return{width:t.clientWidth*c.x,height:t.clientHeight*c.y,x:i*c.x,y:o*c.y}}(e,o);else{const n=U(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return v(i)}function ot(t,n){const e=W(t);return!(e===n||!T(e)||q(e))&&("fixed"===H(e).position||ot(e,n))}function rt(t,n,e){const o=M(n),i=C(n),c="fixed"===e,l=Z(t,!0,c,n);let a={scrollLeft:0,scrollTop:0};const s=r(0);function u(){s.x=tt(i)}if(o||!o&&!c)if(("body"!==F(n)||z(i))&&(a=V(n)),o){const t=Z(n,!0,c,n);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}else i&&u();c&&!o&&i&&u();const f=!i||o||c?r(0):nt(i,a);return{x:l.left+a.scrollLeft-s.x-f.x,y:l.top+a.scrollTop-s.y-f.y,width:l.width,height:l.height}}function it(t){return"static"===H(t).position}function ct(t,n){if(!M(t)||"fixed"===H(t).position)return null;if(n)return n(t);let e=t.offsetParent;return C(t)===e&&(e=e.ownerDocument.body),e}function lt(t,n){const e=k(t);if(L(t))return e;if(!M(t)){let n=W(t);for(;n&&!q(n);){if(T(n)&&!it(n))return n;n=W(n)}return e}let o=ct(t,n);for(;o&&D(o)&&it(o);)o=ct(o,n);return o&&q(o)&&it(o)&&!N(o)?e:o||function(t){let n=W(t);for(;M(n)&&!q(n);){if(N(n))return n;if(L(n))return null;n=W(n)}return null}(t)||e}const at={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:n,rect:e,offsetParent:o,strategy:i}=t;const c="fixed"===i,l=C(o),a=!!n&&L(n.floating);if(o===l||a&&c)return e;let s={scrollLeft:0,scrollTop:0},u=r(1);const f=r(0),d=M(o);if((d||!d&&!c)&&(("body"!==F(o)||z(l))&&(s=V(o)),d)){const t=Z(o);u=K(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}const m=!l||d||c?r(0):nt(l,s);return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-s.scrollLeft*u.x+f.x+m.x,y:e.y*u.y-s.scrollTop*u.y+f.y+m.y}},getDocumentElement:C,getClippingRect:function(e){let{element:o,boundary:r,rootBoundary:i,strategy:c}=e;const l=[..."clippingAncestors"===r?L(o)?[]:function(t,n){const e=n.get(t);if(e)return e;let o=Y(t,[],!1).filter((t=>T(t)&&"body"!==F(t))),r=null;const i="fixed"===H(t).position;let c=i?W(t):t;for(;T(c)&&!q(c);){const n=H(c),e=N(c);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&("absolute"===r.position||"fixed"===r.position)||z(c)&&!e&&ot(t,c))?o=o.filter((t=>t!==c)):r=n,c=W(c)}return n.set(t,o),o}(o,this._c):[].concat(r),i],a=et(o,l[0],c);let s=a.top,u=a.right,f=a.bottom,d=a.left;for(let e=1;e<l.length;e++){const r=et(o,l[e],c);s=n(r.top,s),u=t(r.right,u),f=t(r.bottom,f),d=n(r.left,d)}return{width:u-d,height:f-s,x:d,y:s}},getOffsetParent:lt,getElementRects:async function(t){const n=this.getOffsetParent||lt,e=this.getDimensions,o=await e(t.floating);return{reference:rt(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:n,height:e}=G(t);return{width:n,height:e}},getScale:K,isElement:T,isRTL:function(t){return"rtl"===H(t).direction}};function st(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function ut(e,r,i,c){void 0===c&&(c={});const{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=c,d=J(e),m=l||a?[...d?Y(d):[],...r?Y(r):[]]:[];m.forEach((t=>{l&&t.addEventListener("scroll",i,{passive:!0}),a&&t.addEventListener("resize",i)}));const y=d&&u?function(e,r){let i,c=null;const l=C(e);function a(){var t;clearTimeout(i),null==(t=c)||t.disconnect(),c=null}return function s(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),a();const d=e.getBoundingClientRect(),{left:m,top:y,width:h,height:p}=d;if(u||r(),!h||!p)return;const w={rootMargin:-o(y)+"px "+-o(l.clientWidth-(m+h))+"px "+-o(l.clientHeight-(y+p))+"px "+-o(m)+"px",threshold:n(0,t(1,f))||1};let x=!0;function g(t){const n=t[0].intersectionRatio;if(n!==f){if(!x)return s();n?s(!1,n):i=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==n||st(d,e.getBoundingClientRect())||s(),x=!1}try{c=new IntersectionObserver(g,{...w,root:l.ownerDocument})}catch(t){c=new IntersectionObserver(g,w)}c.observe(e)}(!0),a}(d,i):null;let h,p=-1,w=null;s&&(w=new ResizeObserver((t=>{let[n]=t;n&&n.target===d&&w&&r&&(w.unobserve(r),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(r)}))),i()})),d&&!f&&w.observe(d),r&&w.observe(r));let x=f?Z(e):null;return f&&function t(){const n=Z(e);x&&!st(x,n)&&i(),x=n,h=requestAnimationFrame(t)}(),i(),()=>{var t;m.forEach((t=>{l&&t.removeEventListener("scroll",i),a&&t.removeEventListener("resize",i)})),null==y||y(),null==(t=w)||t.disconnect(),w=null,f&&cancelAnimationFrame(h)}}const ft=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var e,o;const{x:r,y:i,placement:c,middlewareData:u}=n,f=await async function(t,n){const{placement:e,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),c=a(e),u=s(e),f="y"===d(e),m=S.has(c)?-1:1,y=i&&f?-1:1,h=l(n,t);let{mainAxis:p,crossAxis:w,alignmentAxis:x}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return u&&"number"==typeof x&&(w="end"===u?-1*x:x),f?{x:w*y,y:p*m}:{x:p*m,y:w*y}}(n,t);return c===(null==(e=u.offset)?void 0:e.placement)&&null!=(o=u.arrow)&&o.alignmentOffset?{}:{x:r+f.x,y:i+f.y,data:{...f,placement:c}}}}},dt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:e,y:o,placement:r,platform:i}=n,{mainAxis:s=!0,crossAxis:f=!1,limiter:m={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...y}=l(t,n),h={x:e,y:o},p=await i.detectOverflow(n,y),w=d(a(r)),x=u(w);let g=h[x],v=h[w];s&&(g=c(g+p["y"===x?"top":"left"],g,g-p["y"===x?"bottom":"right"])),f&&(v=c(v+p["y"===w?"top":"left"],v,v-p["y"===w?"bottom":"right"]));const b=m.fn({...n,[x]:g,[w]:v});return{...b,data:{x:b.x-e,y:b.y-o,enabled:{[x]:s,[w]:f}}}}}},mt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e,o;const{placement:r,middlewareData:i,rects:c,initialPlacement:u,platform:v,elements:b}=n,{mainAxis:A=!0,crossAxis:S=!0,fallbackPlacements:R,fallbackStrategy:F="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:C=!0,...O}=l(t,n);if(null!=(e=i.arrow)&&e.alignmentOffset)return{};const T=a(r),M=d(u),P=a(u)===u,z=await(null==v.isRTL?void 0:v.isRTL(b.floating)),D=R||(P||!C?[g(u)]:function(t){const n=g(t);return[y(t),n,y(n)]}(u)),L="none"!==k;!R&&L&&D.push(...function(t,n,e,o){const r=s(t);let i=function(t,n,e){switch(t){case"top":case"bottom":return e?n?p:h:n?h:p;case"left":case"right":return n?w:x;default:return[]}}(a(t),"start"===e,o);return r&&(i=i.map((t=>t+"-"+r)),n&&(i=i.concat(i.map(y)))),i}(u,C,k,z));const E=[u,...D],B=await v.detectOverflow(n,O),$=[];let I=(null==(o=i.flip)?void 0:o.overflows)||[];if(A&&$.push(B[T]),S){const t=function(t,n,e){void 0===e&&(e=!1);const o=s(t),r=m(t),i=f(r);let c="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(c=g(c)),[c,g(c)]}(r,c,z);$.push(B[t[0]],B[t[1]])}if(I=[...I,{placement:r,overflows:$}],!$.every((t=>t<=0))){var N,j;const t=((null==(N=i.flip)?void 0:N.index)||0)+1,n=E[t];if(n&&("alignment"!==S||M===d(n)||I.every((t=>d(t.placement)!==M||t.overflows[0]>0))))return{data:{index:t,overflows:I},reset:{placement:n}};let e=null==(j=I.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:j.placement;if(!e)switch(F){case"bestFit":{var q;const t=null==(q=I.filter((t=>{if(L){const n=d(t.placement);return n===M||"y"===n}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:q[0];t&&(e=t);break}case"initialPlacement":e=u}if(r!==e)return{reset:{placement:e}}}return{}}}},yt=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(o){var r,i;const{placement:c,rects:u,platform:f,elements:m}=o,{apply:y=()=>{},...h}=l(e,o),p=await f.detectOverflow(o,h),w=a(c),x=s(c),g="y"===d(c),{width:v,height:b}=u.floating;let A,S;"top"===w||"bottom"===w?(A=w,S=x===(await(null==f.isRTL?void 0:f.isRTL(m.floating))?"start":"end")?"left":"right"):(S=w,A="end"===x?"top":"bottom");const R=b-p.top-p.bottom,F=v-p.left-p.right;let k=t(b-p[A],R),C=t(v-p[S],F);if(null!=(r=o.middlewareData.shift)&&r.enabled.x&&(C=F),null!=(i=o.middlewareData.shift)&&i.enabled.y&&(k=R),!o.middlewareData.shift&&!x){const t=n(p.left,0),e=n(p.right,0),o=n(p.top,0),r=n(p.bottom,0);g?C=v-2*(0!==t||0!==e?t+e:n(p.left,p.right)):k=b-2*(0!==o||0!==r?o+r:n(p.top,p.bottom))}await y({...o,availableWidth:C,availableHeight:k});const O=await f.getDimensions(m.floating);return v!==O.width||b!==O.height?{reset:{rects:!0}}:{}}}},ht=(t,n,e)=>{const o=new Map,r={platform:at,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:c}=e,l=c.detectOverflow?c:{...c,detectOverflow:A},a=await(null==c.isRTL?void 0:c.isRTL(n));let s=await c.getElementRects({reference:t,floating:n,strategy:r}),{x:u,y:f}=b(s,o,a),d=o,m=0;const y={};for(let e=0;e<i.length;e++){const h=i[e];if(!h)continue;const{name:p,fn:w}=h,{x,y:g,data:v,reset:A}=await w({x:u,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:y,rects:s,platform:l,elements:{reference:t,floating:n}});u=null!=x?x:u,f=null!=g?g:f,y[p]={...y[p],...v},A&&m<50&&(m++,"object"==typeof A&&(A.placement&&(d=A.placement),A.rects&&(s=!0===A.rects?await c.getElementRects({reference:t,floating:n,strategy:r}):A.rects),({x:u,y:f}=b(s,d,a))),e=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:y}})(t,n,{...r,platform:i})};export{ut as a,yt as b,ht as c,mt as f,ft as o,dt as s}
|