@esri/solutions-components 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/layer-table/resources.json +1 -0
- package/dist/assets/t9n/layer-table/resources_en.json +1 -0
- package/dist/cjs/ExpandToggle-7ca802d2.js +118 -0
- package/dist/cjs/FloatingArrow-f4896a36.js +50 -0
- package/dist/cjs/Heading-ef796c7e.js +25 -0
- package/dist/cjs/app-globals-9541aa87.js +69 -0
- package/dist/cjs/ar-4ea5cf50.js +104 -0
- package/dist/cjs/array-967ea191.js +17 -0
- package/dist/cjs/bg-bbb11dad.js +82 -0
- package/dist/cjs/browser-abd0e2fa.js +23 -0
- package/dist/cjs/bs-0c7323f3.js +51 -0
- package/dist/cjs/buffer-tools_4.cjs.entry.js +14 -14
- package/dist/cjs/ca-8c132b5c.js +71 -0
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +11 -10
- package/dist/cjs/calcite-accordion.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-bar_3.cjs.entry.js +74 -29
- package/dist/cjs/calcite-action-group_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action-pad.cjs.entry.js +13 -13
- package/dist/cjs/calcite-action_2.cjs.entry.js +19 -17
- package/dist/cjs/calcite-alert_3.cjs.entry.js +18 -33
- package/dist/cjs/calcite-avatar.cjs.entry.js +5 -5
- package/dist/cjs/calcite-block-section.cjs.entry.js +10 -10
- package/dist/cjs/calcite-block.cjs.entry.js +16 -16
- package/dist/cjs/calcite-button.cjs.entry.js +22 -19
- package/dist/cjs/calcite-card.cjs.entry.js +9 -9
- package/dist/cjs/calcite-checkbox_3.cjs.entry.js +17 -16
- package/dist/cjs/calcite-chip-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-chip.cjs.entry.js +16 -15
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-color-picker.cjs.entry.js +13 -13
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +5 -5
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +272 -72
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +17 -18
- package/dist/cjs/calcite-date-picker.cjs.entry.js +12 -12
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
- package/dist/cjs/calcite-filter_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-flow-item.cjs.entry.js +14 -13
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph.cjs.entry.js +3 -3
- package/dist/cjs/calcite-icon.cjs.entry.js +13 -8
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +26 -25
- package/dist/cjs/calcite-input-number.cjs.entry.js +593 -0
- package/dist/cjs/calcite-input-text.cjs.entry.js +356 -0
- package/dist/cjs/calcite-input-time-picker-07edd190.js +1849 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +18 -17
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +53 -16
- package/dist/cjs/calcite-input_2.cjs.entry.js +20 -19
- package/dist/cjs/calcite-label.cjs.entry.js +5 -5
- package/dist/cjs/calcite-link.cjs.entry.js +6 -6
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +5 -5
- package/dist/cjs/calcite-menu-item.cjs.entry.js +9 -9
- package/dist/cjs/calcite-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-meter.cjs.entry.js +9 -9
- package/dist/cjs/calcite-modal.cjs.entry.js +14 -13
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +11 -4
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +2 -2
- package/dist/cjs/calcite-navigation.cjs.entry.js +5 -5
- package/dist/cjs/calcite-notice_2.cjs.entry.js +20 -19
- package/dist/cjs/calcite-option_2.cjs.entry.js +12 -11
- package/dist/cjs/calcite-pagination.cjs.entry.js +120 -55
- package/dist/cjs/calcite-panel_2.cjs.entry.js +17 -17
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +13 -13
- package/dist/cjs/calcite-pick-list.cjs.entry.js +11 -11
- package/dist/cjs/calcite-popover.cjs.entry.js +17 -16
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
- package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
- package/dist/cjs/calcite-scrim.cjs.entry.js +11 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sheet.cjs.entry.js +8 -8
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +6 -6
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +120 -61
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +8 -8
- package/dist/cjs/calcite-split-button.cjs.entry.js +9 -15
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +38 -21
- package/dist/cjs/calcite-stepper.cjs.entry.js +197 -35
- package/dist/cjs/calcite-switch.cjs.entry.js +9 -9
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +14 -13
- package/dist/cjs/calcite-table-row.cjs.entry.js +8 -7
- package/dist/cjs/calcite-table.cjs.entry.js +11 -11
- package/dist/cjs/calcite-text-area.cjs.entry.js +13 -13
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tile-select.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-time-picker.cjs.entry.js +13 -12
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tip.cjs.entry.js +10 -10
- package/dist/cjs/card-manager_3.cjs.entry.js +15 -3
- package/dist/cjs/component-98c27d5f.js +17 -0
- package/dist/cjs/conditionalSlot-1efd1f30.js +63 -0
- package/dist/cjs/crowdsource-manager.cjs.entry.js +2 -1
- package/dist/cjs/cs-beb23778.js +147 -0
- package/dist/cjs/da-d2413a66.js +66 -0
- package/dist/cjs/date-628b8529.js +261 -0
- package/dist/cjs/de-73c09fa5.js +91 -0
- package/dist/cjs/de-at-c80ba65c.js +90 -0
- package/dist/cjs/de-ch-07611a55.js +90 -0
- package/dist/cjs/dom-5c1fefc1.js +1077 -0
- package/dist/cjs/el-85562376.js +66 -0
- package/dist/cjs/en-au-46f6054b.js +66 -0
- package/dist/cjs/en-ca-0c0a3c9b.js +65 -0
- package/dist/cjs/en-gb-60b63416.js +69 -0
- package/dist/cjs/es-699e9ab7.js +66 -0
- package/dist/cjs/es-mx-0a692d1b.js +65 -0
- package/dist/cjs/et-7120f20c.js +92 -0
- package/dist/cjs/fi-48d50457.js +115 -0
- package/dist/cjs/filter-6d5fdb8c.js +765 -0
- package/dist/cjs/floating-ui-b601790a.js +1902 -0
- package/dist/cjs/focusTrapComponent-21d85ddf.js +1028 -0
- package/dist/cjs/form-81cf84d1.js +260 -0
- package/dist/cjs/fr-181ff7ad.js +68 -0
- package/dist/cjs/fr-ch-be3e8d46.js +66 -0
- package/dist/cjs/globalAttributes-b155944a.js +77 -0
- package/dist/cjs/guid-c95a49d2.js +26 -0
- package/dist/cjs/he-e3d579f4.js +105 -0
- package/dist/cjs/hi-330caf2c.js +65 -0
- package/dist/cjs/hr-dc91d7f6.js +80 -0
- package/dist/cjs/hu-20d2f283.js +88 -0
- package/dist/cjs/id-621968dc.js +66 -0
- package/dist/cjs/index-4c1b0d3c.js +73 -0
- package/dist/cjs/index-c0ee2715.js +206 -0
- package/dist/cjs/interactive-85d0402d.js +147 -0
- package/dist/cjs/it-68cc02eb.js +66 -0
- package/dist/cjs/it-ch-125ed733.js +66 -0
- package/dist/cjs/ja-42400345.js +72 -0
- package/dist/cjs/key-cdf99d14.js +19 -0
- package/dist/cjs/ko-af71930f.js +72 -0
- package/dist/cjs/label-8a389916.js +154 -0
- package/dist/cjs/loadable-3358bfc7.js +94 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/locale-44d38e1a.js +607 -0
- package/dist/cjs/lt-7fed7d9b.js +97 -0
- package/dist/cjs/lv-69552dce.js +66 -0
- package/dist/cjs/math-950b6ada.js +60 -0
- package/dist/cjs/mk-d7e02da4.js +66 -0
- package/dist/cjs/nb-bd55eaf3.js +67 -0
- package/dist/cjs/nl-cd98d891.js +67 -0
- package/dist/cjs/observers-0f180f88.js +53 -0
- package/dist/cjs/openCloseComponent-7afeb520.js +92 -0
- package/dist/cjs/pl-2d3c3597.js +114 -0
- package/dist/cjs/pt-93b5d4f4.js +67 -0
- package/dist/cjs/pt-br-839d5879.js +65 -0
- package/dist/cjs/resources-19f11bde.js +29 -0
- package/dist/cjs/resources-1f09ad7f.js +20 -0
- package/dist/cjs/resources-854eafcd.js +2062 -0
- package/dist/cjs/resources-87f6e576.js +39 -0
- package/dist/cjs/resources-89626d92.js +32 -0
- package/dist/cjs/resources-a95a6548.js +26 -0
- package/dist/cjs/resources-b4f2bec2.js +27 -0
- package/dist/cjs/resources-b89c3642.js +52 -0
- package/dist/cjs/resources-d3562a7e.js +29 -0
- package/dist/cjs/resources-e1672ba5.js +23 -0
- package/dist/cjs/ro-faf4d226.js +66 -0
- package/dist/cjs/ru-52c88060.js +126 -0
- package/dist/cjs/shared-list-render-6939bcac.js +364 -0
- package/dist/cjs/sk-3d496fd7.js +148 -0
- package/dist/cjs/sl-5422921c.js +168 -0
- package/dist/cjs/solutions-components.cjs.js +3 -3
- package/dist/cjs/sortableComponent-f5f88018.js +3107 -0
- package/dist/cjs/sr-23a8f847.js +101 -0
- package/dist/cjs/sv-22b72d3a.js +71 -0
- package/dist/cjs/t9n-02f62c58.js +100 -0
- package/dist/cjs/th-73ce9bbd.js +65 -0
- package/dist/cjs/time-bfaa8f38.js +289 -0
- package/dist/cjs/tr-f4530a05.js +66 -0
- package/dist/cjs/uk-117902c4.js +104 -0
- package/dist/cjs/utils-4d5934ab.js +95 -0
- package/dist/cjs/utils-75231cf1.js +221 -0
- package/dist/cjs/utils-90ce30aa.js +64 -0
- package/dist/cjs/utils-b6e28e37.js +62 -0
- package/dist/cjs/vi-6ef0f273.js +70 -0
- package/dist/cjs/zh-cn-e801dfdd.js +94 -0
- package/dist/cjs/zh-hk-b4793c58.js +71 -0
- package/dist/cjs/zh-tw-f7e62c05.js +92 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +20 -1
- package/dist/collection/components/layer-table/layer-table.css +5 -0
- package/dist/collection/components/layer-table/layer-table.js +45 -2
- package/dist/components/ExpandToggle.js +2 -2
- package/dist/components/FloatingArrow.js +4 -2
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-bar.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +9 -7
- package/dist/components/alert.js +8 -25
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/button.js +9 -6
- package/dist/components/calcite-accordion-item.js +6 -5
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-block-section.js +2 -2
- package/dist/components/calcite-block.js +3 -3
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-flow-item.js +3 -2
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +12 -11
- package/dist/components/calcite-input-time-picker.js +8 -7
- package/dist/components/calcite-input-time-zone.js +39 -2
- package/dist/components/calcite-list-item-group.js +2 -2
- package/dist/components/calcite-menu-item.js +1 -1
- package/dist/components/calcite-meter.js +1 -1
- package/dist/components/calcite-navigation-logo.js +19 -4
- package/dist/components/calcite-navigation-user.js +1 -1
- package/dist/components/calcite-navigation.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-sheet.js +2 -2
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +6 -12
- package/dist/components/calcite-stepper-item.js +34 -12
- package/dist/components/calcite-stepper.js +224 -34
- package/dist/components/calcite-table-row.js +2 -1
- package/dist/components/calcite-table.js +2 -2
- package/dist/components/calcite-text-area.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +5 -4
- package/dist/components/color-picker-hex-input.js +2 -2
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item.js +6 -6
- package/dist/components/combobox.js +252 -47
- package/dist/components/component.js +15 -0
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/crowdsource-manager.js +3 -1
- package/dist/components/date-picker-day.js +3 -5
- package/dist/components/date-picker-month-header.js +4 -4
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +3 -3
- package/dist/components/date.js +1 -1
- package/dist/components/dom.js +26 -11
- package/dist/components/dropdown-item.js +4 -3
- package/dist/components/dropdown.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +2 -2
- package/dist/components/floating-ui.js +21 -23
- package/dist/components/focusTrapComponent.js +46 -27
- package/dist/components/form.js +1 -29
- package/dist/components/globalAttributes.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +9 -4
- package/dist/components/index.js +2 -2
- package/dist/components/index4.js +40 -6
- package/dist/components/index5.js +15 -15
- package/dist/components/input-message.js +1 -1
- package/dist/components/input-number.js +12 -7
- package/dist/components/input-text.js +5 -4
- package/dist/components/input.js +8 -7
- package/dist/components/interactive.js +3 -3
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/layer-table2.js +16 -3
- package/dist/components/list-item.js +29 -9
- package/dist/components/list.js +28 -2
- package/dist/components/loadable.js +1 -1
- package/dist/components/locale2.js +2 -2
- package/dist/components/math.js +1 -1
- package/dist/components/modal.js +4 -3
- package/dist/components/notice.js +4 -3
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/pagination.js +120 -51
- package/dist/components/panel.js +5 -5
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +4 -3
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/resources4.js +1 -1
- package/dist/components/resources5.js +1 -1
- package/dist/components/scrim.js +4 -2
- package/dist/components/segmented-control-item.js +2 -2
- package/dist/components/select.js +3 -2
- package/dist/components/shared-list-render.js +2 -2
- package/dist/components/shell-panel.js +1 -1
- package/dist/components/shell.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/stack.js +2 -2
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +21 -10
- package/dist/components/tab-title.js +13 -18
- package/dist/components/tab.js +13 -7
- package/dist/components/table-cell.js +1 -1
- package/dist/components/table-header.js +3 -2
- package/dist/components/tabs.js +51 -2
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +4 -3
- package/dist/components/tooltip.js +4 -4
- package/dist/components/tree-item.js +5 -4
- package/dist/components/tree.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +6 -3
- package/dist/components/utils3.js +4 -2
- package/dist/components/value-list-item.js +4 -2
- package/dist/components/value-list.js +2 -2
- package/dist/esm/ExpandToggle-c3ebdd3b.js +110 -0
- package/dist/esm/FloatingArrow-b38b7259.js +48 -0
- package/dist/esm/Heading-272fcae6.js +22 -0
- package/dist/esm/app-globals-7b136f05.js +67 -0
- package/dist/esm/ar-1d739ee3.js +102 -0
- package/dist/esm/array-5ed5be45.js +15 -0
- package/dist/esm/bg-5aa64085.js +80 -0
- package/dist/esm/browser-aaebde6b.js +21 -0
- package/dist/esm/bs-6fe73bc9.js +49 -0
- package/dist/esm/buffer-tools_4.entry.js +14 -14
- package/dist/esm/ca-78e2432d.js +69 -0
- package/dist/esm/calcite-accordion-item.entry.js +11 -10
- package/dist/esm/calcite-accordion.entry.js +1 -1
- package/dist/esm/calcite-action-bar_3.entry.js +74 -29
- package/dist/esm/calcite-action-group_2.entry.js +12 -12
- package/dist/esm/calcite-action-pad.entry.js +13 -13
- package/dist/esm/calcite-action_2.entry.js +19 -17
- package/dist/esm/calcite-alert_3.entry.js +18 -33
- package/dist/esm/calcite-avatar.entry.js +5 -5
- package/dist/esm/calcite-block-section.entry.js +10 -10
- package/dist/esm/calcite-block.entry.js +16 -16
- package/dist/esm/calcite-button.entry.js +22 -19
- package/dist/esm/calcite-card.entry.js +9 -9
- package/dist/esm/calcite-checkbox_3.entry.js +17 -16
- package/dist/esm/calcite-chip-group.entry.js +7 -7
- package/dist/esm/calcite-chip.entry.js +16 -15
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +8 -8
- package/dist/esm/calcite-color-picker.entry.js +13 -13
- package/dist/esm/calcite-combobox-item-group.entry.js +5 -5
- package/dist/esm/calcite-combobox_6.entry.js +272 -72
- package/dist/esm/calcite-date-picker-day_3.entry.js +17 -18
- package/dist/esm/calcite-date-picker.entry.js +12 -12
- package/dist/esm/calcite-fab.entry.js +7 -7
- package/dist/esm/calcite-filter_3.entry.js +16 -16
- package/dist/esm/calcite-flow-item.entry.js +14 -13
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph.entry.js +3 -3
- package/dist/esm/calcite-icon.entry.js +13 -8
- package/dist/esm/calcite-inline-editable.entry.js +12 -12
- package/dist/esm/calcite-input-date-picker.entry.js +26 -25
- package/dist/esm/calcite-input-number.entry.js +589 -0
- package/dist/esm/calcite-input-text.entry.js +352 -0
- package/dist/esm/calcite-input-time-picker-b0e9c281.js +1846 -0
- package/dist/esm/calcite-input-time-picker.entry.js +18 -17
- package/dist/esm/calcite-input-time-zone.entry.js +53 -16
- package/dist/esm/calcite-input_2.entry.js +20 -19
- package/dist/esm/calcite-label.entry.js +5 -5
- package/dist/esm/calcite-link.entry.js +6 -6
- package/dist/esm/calcite-list-item-group.entry.js +5 -5
- package/dist/esm/calcite-menu-item.entry.js +9 -9
- package/dist/esm/calcite-menu.entry.js +9 -9
- package/dist/esm/calcite-meter.entry.js +9 -9
- package/dist/esm/calcite-modal.entry.js +14 -13
- package/dist/esm/calcite-navigation-logo.entry.js +11 -4
- package/dist/esm/calcite-navigation-user.entry.js +2 -2
- package/dist/esm/calcite-navigation.entry.js +5 -5
- package/dist/esm/calcite-notice_2.entry.js +20 -19
- package/dist/esm/calcite-option_2.entry.js +12 -11
- package/dist/esm/calcite-pagination.entry.js +120 -55
- package/dist/esm/calcite-panel_2.entry.js +17 -17
- package/dist/esm/calcite-pick-list-group.entry.js +7 -7
- package/dist/esm/calcite-pick-list-item.entry.js +13 -13
- package/dist/esm/calcite-pick-list.entry.js +11 -11
- package/dist/esm/calcite-popover.entry.js +17 -16
- package/dist/esm/calcite-radio-button-group.entry.js +2 -2
- package/dist/esm/calcite-radio-button.entry.js +10 -10
- package/dist/esm/calcite-rating.entry.js +13 -13
- package/dist/esm/calcite-scrim.entry.js +11 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +11 -11
- package/dist/esm/calcite-sheet.entry.js +8 -8
- package/dist/esm/calcite-shell-center-row.entry.js +6 -6
- package/dist/esm/calcite-shell-panel_14.entry.js +122 -63
- package/dist/esm/calcite-sortable-list.entry.js +8 -8
- package/dist/esm/calcite-split-button.entry.js +9 -15
- package/dist/esm/calcite-stepper-item.entry.js +38 -21
- package/dist/esm/calcite-stepper.entry.js +198 -36
- package/dist/esm/calcite-switch.entry.js +9 -9
- package/dist/esm/calcite-table-cell_2.entry.js +14 -13
- package/dist/esm/calcite-table-row.entry.js +8 -7
- package/dist/esm/calcite-table.entry.js +11 -11
- package/dist/esm/calcite-text-area.entry.js +13 -13
- package/dist/esm/calcite-tile-select-group.entry.js +2 -2
- package/dist/esm/calcite-tile-select.entry.js +5 -5
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-time-picker.entry.js +13 -12
- package/dist/esm/calcite-tip-manager.entry.js +9 -9
- package/dist/esm/calcite-tip.entry.js +10 -10
- package/dist/esm/card-manager_3.entry.js +15 -3
- package/dist/esm/component-7a1690e7.js +15 -0
- package/dist/esm/conditionalSlot-ea10aa41.js +60 -0
- package/dist/esm/crowdsource-manager.entry.js +2 -1
- package/dist/esm/cs-e623da5b.js +145 -0
- package/dist/esm/da-b065ea31.js +64 -0
- package/dist/esm/date-713af2d5.js +245 -0
- package/dist/esm/de-674a391a.js +89 -0
- package/dist/esm/de-at-94f5df4e.js +88 -0
- package/dist/esm/de-ch-977042ef.js +88 -0
- package/dist/esm/dom-7b3caf49.js +1047 -0
- package/dist/esm/el-3bf5add5.js +64 -0
- package/dist/esm/en-au-b012c4f1.js +64 -0
- package/dist/esm/en-ca-e94b72aa.js +63 -0
- package/dist/esm/en-gb-f01e285d.js +67 -0
- package/dist/esm/es-b0a092b5.js +64 -0
- package/dist/esm/es-mx-318553ae.js +63 -0
- package/dist/esm/et-4b370a83.js +90 -0
- package/dist/esm/fi-01e2268c.js +113 -0
- package/dist/esm/filter-77954777.js +763 -0
- package/dist/esm/floating-ui-5f9b22b5.js +1894 -0
- package/dist/esm/focusTrapComponent-971a945b.js +1023 -0
- package/dist/esm/form-e5d8cf1d.js +252 -0
- package/dist/esm/fr-c98a937e.js +66 -0
- package/dist/esm/fr-ch-32c7c9be.js +64 -0
- package/dist/esm/globalAttributes-8f64aaf3.js +74 -0
- package/dist/esm/guid-abceb248.js +24 -0
- package/dist/esm/he-bea2cda9.js +103 -0
- package/dist/esm/hi-88b336f9.js +63 -0
- package/dist/esm/hr-1ba83f9d.js +78 -0
- package/dist/esm/hu-cb7c9b7d.js +86 -0
- package/dist/esm/id-401c4f4b.js +64 -0
- package/dist/esm/index-5110a27a.js +71 -0
- package/dist/esm/index-d8ff08ed.js +204 -0
- package/dist/esm/interactive-53ef126b.js +143 -0
- package/dist/esm/it-aee1b55c.js +64 -0
- package/dist/esm/it-ch-2bacdd40.js +64 -0
- package/dist/esm/ja-14a21ba5.js +70 -0
- package/dist/esm/key-242646ba.js +16 -0
- package/dist/esm/ko-a451f6de.js +70 -0
- package/dist/esm/label-be72bd90.js +148 -0
- package/dist/esm/loadable-a9b6b87e.js +89 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/locale-f23b92b1.js +594 -0
- package/dist/esm/lt-97185284.js +95 -0
- package/dist/esm/lv-742b3967.js +64 -0
- package/dist/esm/math-7162ad13.js +54 -0
- package/dist/esm/mk-d63a58c3.js +64 -0
- package/dist/esm/nb-a9b71f26.js +65 -0
- package/dist/esm/nl-88f97550.js +65 -0
- package/dist/esm/observers-4ec1ca0a.js +51 -0
- package/dist/esm/openCloseComponent-79521e6e.js +90 -0
- package/dist/esm/pl-6d408a9c.js +112 -0
- package/dist/esm/pt-bfc774aa.js +65 -0
- package/dist/esm/pt-br-bef64ce0.js +63 -0
- package/dist/esm/resources-120cdd90.js +35 -0
- package/dist/esm/resources-6a27a5e7.js +26 -0
- package/dist/esm/resources-7de224d3.js +24 -0
- package/dist/esm/resources-8c00c1ef.js +24 -0
- package/dist/esm/resources-91b0f96d.js +20 -0
- package/dist/esm/resources-99ae29ef.js +28 -0
- package/dist/esm/resources-b1d1efb3.js +48 -0
- package/dist/esm/resources-b56d35f9.js +22 -0
- package/dist/esm/resources-b994d084.js +20 -0
- package/dist/esm/resources-d9c39906.js +2051 -0
- package/dist/esm/ro-6b678231.js +64 -0
- package/dist/esm/ru-4f0974b4.js +124 -0
- package/dist/esm/shared-list-render-0fe2fe03.js +342 -0
- package/dist/esm/sk-4694961f.js +146 -0
- package/dist/esm/sl-abe686d3.js +166 -0
- package/dist/esm/solutions-components.js +3 -3
- package/dist/esm/sortableComponent-0b6eef97.js +3103 -0
- package/dist/esm/sr-a7201cef.js +99 -0
- package/dist/esm/sv-8cba5484.js +69 -0
- package/dist/esm/t9n-9d03f26d.js +95 -0
- package/dist/esm/th-b1c38718.js +63 -0
- package/dist/esm/time-1361fac3.js +274 -0
- package/dist/esm/tr-069d2eb8.js +64 -0
- package/dist/esm/uk-7f9ed1d7.js +102 -0
- package/dist/esm/utils-2cd02be4.js +61 -0
- package/dist/esm/utils-404ac39d.js +87 -0
- package/dist/esm/utils-93bb7d2c.js +203 -0
- package/dist/esm/utils-c0f61fc0.js +51 -0
- package/dist/esm/vi-94474938.js +68 -0
- package/dist/esm/zh-cn-4428e0d5.js +92 -0
- package/dist/esm/zh-hk-07262583.js +69 -0
- package/dist/esm/zh-tw-43ddb906.js +90 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion/accordion.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion-item/accordion-item.css +2 -7
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action/action.css +37 -42
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-bar/action-bar.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-group/action-group.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-menu/action-menu.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-pad/action-pad.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/alert/alert.css +17 -64
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/avatar/avatar.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block/block.css +2 -2
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block-section/block-section.css +6 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/button/button.css +7 -7
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card/card.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/checkbox/checkbox.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip/chip.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip-group/chip-group.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker/color-picker.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-swatch/color-picker-swatch.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox/combobox.css +36 -10
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item/combobox-item.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item-group/combobox-item-group.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker/date-picker.css +22 -7
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-day/date-picker-day.css +116 -243
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month/date-picker-month.css +4 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month-header/date-picker-month-header.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-group/dropdown-group.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-item/dropdown-item.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/fab/fab.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/filter/filter.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow/flow.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow-item/flow-item.css +1 -2
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/graph/graph.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/handle/handle.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/icon/icon.css +13 -13
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/inline-editable/inline-editable.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input/input.css +36 -25
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-date-picker/input-date-picker.css +4 -16
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-message/input-message.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-number/input-number.css +27 -12
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-text/input-text.css +39 -10
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-picker/input-time-picker.css +4 -2
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-zone/input-time-zone.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/label/label.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/link/link.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list/list.css +12 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item/list-item.css +23 -4
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item-group/list-item-group.css +6 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/loader/loader.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu/menu.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu-item/menu-item.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/meter/meter.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/modal/modal.css +3 -3
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation/navigation.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-logo/navigation-logo.css +9 -3
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-user/navigation-user.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/notice/notice.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option/option.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option-group/option-group.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pagination/pagination.css +13 -20
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/panel/panel.css +1 -2
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list/pick-list.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-group/pick-list-group.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-item/pick-list-item.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/popover/popover.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/progress/progress.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button/radio-button.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button-group/radio-button-group.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/rating/rating.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/scrim/scrim.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control/segmented-control.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control-item/segmented-control-item.css +2 -2
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/select/select.css +3 -3
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sheet/sheet.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell/shell.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-center-row/shell-center-row.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-panel/shell-panel.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/slider/slider.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sortable-list/sortable-list.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/split-button/split-button.css +27 -27
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stack/stack.css +8 -2
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper/stepper.css +96 -3
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper-item/stepper-item.css +36 -14
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/switch/switch.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab/tab.css +28 -28
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-nav/tab-nav.css +24 -7
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-title/tab-title.css +26 -27
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table/table.css +7 -2
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-cell/table-cell.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-header/table-header.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-row/table-row.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tabs/tabs.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/text-area/text-area.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile/tile.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select/tile-select.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select-group/tile-select-group.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/time-picker/time-picker.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip/tip.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-group/tip-group.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-manager/tip-manager.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree/tree.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree-item/tree-item.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list/value-list.css +1 -1
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list-item/value-list-item.css +1 -1
- package/dist/solutions-components/assets/combobox/t9n/index.d.ts +3 -0
- package/dist/solutions-components/assets/combobox/t9n/messages.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_en.json +4 -1
- package/dist/solutions-components/assets/icon/boxChartSeries16.json +1 -0
- package/dist/solutions-components/assets/icon/boxChartSeries24.json +1 -0
- package/dist/solutions-components/assets/icon/boxChartSeries32.json +1 -0
- package/dist/solutions-components/assets/icon/breakRecurrence16.json +1 -0
- package/dist/solutions-components/assets/icon/breakRecurrence24.json +1 -0
- package/dist/solutions-components/assets/icon/breakRecurrence32.json +1 -0
- package/dist/solutions-components/assets/icon/chevronEnd16.json +1 -0
- package/dist/solutions-components/assets/icon/chevronEnd24.json +1 -0
- package/dist/solutions-components/assets/icon/chevronEnd32.json +1 -0
- package/dist/solutions-components/assets/icon/chevronStart16.json +1 -0
- package/dist/solutions-components/assets/icon/chevronStart24.json +1 -0
- package/dist/solutions-components/assets/icon/chevronStart32.json +1 -0
- package/dist/solutions-components/assets/icon/collaborationUser16.json +1 -0
- package/dist/solutions-components/assets/icon/collaborationUser24.json +1 -0
- package/dist/solutions-components/assets/icon/collaborationUser32.json +1 -0
- package/dist/solutions-components/assets/icon/configureGridUnit16.json +1 -0
- package/dist/solutions-components/assets/icon/configureGridUnit24.json +1 -0
- package/dist/solutions-components/assets/icon/configureGridUnit32.json +1 -0
- package/dist/solutions-components/assets/icon/dimensionsUnit16.json +1 -0
- package/dist/solutions-components/assets/icon/dimensionsUnit24.json +1 -0
- package/dist/solutions-components/assets/icon/dimensionsUnit32.json +1 -0
- package/dist/solutions-components/assets/icon/dimensionsWall16.json +1 -0
- package/dist/solutions-components/assets/icon/dimensionsWall24.json +1 -0
- package/dist/solutions-components/assets/icon/dimensionsWall32.json +1 -0
- package/dist/solutions-components/assets/icon/employeeId16.json +1 -0
- package/dist/solutions-components/assets/icon/employeeId24.json +1 -0
- package/dist/solutions-components/assets/icon/employeeId32.json +1 -0
- package/dist/solutions-components/assets/icon/fileUser16.json +1 -0
- package/dist/solutions-components/assets/icon/fileUser24.json +1 -0
- package/dist/solutions-components/assets/icon/fileUser32.json +1 -0
- package/dist/solutions-components/assets/icon/flipVertical16.json +1 -0
- package/dist/solutions-components/assets/icon/flipVertical24.json +1 -0
- package/dist/solutions-components/assets/icon/flipVertical32.json +1 -0
- package/dist/solutions-components/assets/icon/groundControlPoint16.json +1 -0
- package/dist/solutions-components/assets/icon/groundControlPoint24.json +1 -0
- package/dist/solutions-components/assets/icon/groundControlPoint32.json +1 -0
- package/dist/solutions-components/assets/icon/imageCollectionExplorer16.json +1 -0
- package/dist/solutions-components/assets/icon/imageCollectionExplorer24.json +1 -0
- package/dist/solutions-components/assets/icon/imageCollectionExplorer32.json +1 -0
- package/dist/solutions-components/assets/icon/imageMagnifyingGlass16.json +1 -0
- package/dist/solutions-components/assets/icon/imageMagnifyingGlass24.json +1 -0
- package/dist/solutions-components/assets/icon/imageMagnifyingGlass32.json +1 -0
- package/dist/solutions-components/assets/icon/layoutCompact16.json +1 -0
- package/dist/solutions-components/assets/icon/layoutCompact24.json +1 -0
- package/dist/solutions-components/assets/icon/layoutCompact32.json +1 -0
- package/dist/solutions-components/assets/icon/layoutSpacious16.json +1 -0
- package/dist/solutions-components/assets/icon/layoutSpacious24.json +1 -0
- package/dist/solutions-components/assets/icon/layoutSpacious32.json +1 -0
- package/dist/solutions-components/assets/icon/mergeDetails16.json +1 -0
- package/dist/solutions-components/assets/icon/mergeDetails24.json +1 -0
- package/dist/solutions-components/assets/icon/mergeDetails32.json +1 -0
- package/dist/solutions-components/assets/icon/mergeUnits16.json +1 -0
- package/dist/solutions-components/assets/icon/mergeUnits24.json +1 -0
- package/dist/solutions-components/assets/icon/mergeUnits32.json +1 -0
- package/dist/solutions-components/assets/icon/partner16.json +1 -0
- package/dist/solutions-components/assets/icon/partner24.json +1 -0
- package/dist/solutions-components/assets/icon/partner32.json +1 -0
- package/dist/solutions-components/assets/icon/polygonSelect16.json +1 -0
- package/dist/solutions-components/assets/icon/polygonSelect24.json +1 -0
- package/dist/solutions-components/assets/icon/polygonSelect32.json +1 -0
- package/dist/solutions-components/assets/icon/presentationX16.json +1 -0
- package/dist/solutions-components/assets/icon/presentationX24.json +1 -0
- package/dist/solutions-components/assets/icon/presentationX32.json +1 -0
- package/dist/solutions-components/assets/icon/scanArea16.json +1 -0
- package/dist/solutions-components/assets/icon/scanArea24.json +1 -0
- package/dist/solutions-components/assets/icon/scanArea32.json +1 -0
- package/dist/solutions-components/assets/icon/scanCorridor16.json +1 -0
- package/dist/solutions-components/assets/icon/scanCorridor24.json +1 -0
- package/dist/solutions-components/assets/icon/scanCorridor32.json +1 -0
- package/dist/solutions-components/assets/icon/scanCrosshatch16.json +1 -0
- package/dist/solutions-components/assets/icon/scanCrosshatch24.json +1 -0
- package/dist/solutions-components/assets/icon/scanCrosshatch32.json +1 -0
- package/dist/solutions-components/assets/icon/scanPerimeter16.json +1 -0
- package/dist/solutions-components/assets/icon/scanPerimeter24.json +1 -0
- package/dist/solutions-components/assets/icon/scanPerimeter32.json +1 -0
- package/dist/solutions-components/assets/icon/scanVertical16.json +1 -0
- package/dist/solutions-components/assets/icon/scanVertical24.json +1 -0
- package/dist/solutions-components/assets/icon/scanVertical32.json +1 -0
- package/dist/solutions-components/assets/icon/speechBubbleLike16.json +1 -0
- package/dist/solutions-components/assets/icon/speechBubbleLike24.json +1 -0
- package/dist/solutions-components/assets/icon/speechBubbleLike32.json +1 -0
- package/dist/solutions-components/assets/icon/splitUnits16.json +1 -0
- package/dist/solutions-components/assets/icon/splitUnits24.json +1 -0
- package/dist/solutions-components/assets/icon/splitUnits32.json +1 -0
- package/dist/solutions-components/assets/icon/storage16.json +1 -0
- package/dist/solutions-components/assets/icon/storage24.json +1 -0
- package/dist/solutions-components/assets/icon/storage32.json +1 -0
- package/dist/solutions-components/assets/input-time-zone/t9n/messages.json +4 -4
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_en.json +4 -4
- package/dist/solutions-components/assets/pagination/t9n/index.d.ts +2 -0
- package/dist/solutions-components/assets/pagination/t9n/messages.json +3 -1
- package/dist/solutions-components/assets/pagination/t9n/messages_en.json +3 -1
- package/dist/solutions-components/assets/panel/t9n/messages_nl.json +2 -2
- package/dist/solutions-components/assets/stepper/t9n/index.d.ts +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_ar.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_bg.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_bs.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_ca.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_cs.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_da.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_de.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_el.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_en.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_es.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_et.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_fi.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_fr.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_he.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_hr.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_hu.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_id.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_it.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_ja.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_ko.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_lt.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_lv.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_nl.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_no.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_pl.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_pt-BR.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_pt-PT.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_ro.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_ru.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_sk.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_sl.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_sr.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_sv.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_th.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_tr.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_uk.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_vi.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_zh-CN.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_zh-HK.json +5 -0
- package/dist/solutions-components/assets/stepper/t9n/messages_zh-TW.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/index.d.ts +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_ar.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_bg.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_bs.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_ca.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_cs.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_da.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_de.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_el.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_en.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_es.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_et.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_fi.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_fr.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_he.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_hr.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_hu.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_id.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_it.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_ja.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_ko.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_lt.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_lv.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_nl.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_no.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_pl.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_pt-BR.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_pt-PT.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_ro.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_ru.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_sk.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_sl.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_sr.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_sv.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_th.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_tr.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_uk.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_vi.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_zh-CN.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_zh-HK.json +5 -0
- package/dist/solutions-components/assets/stepper-item/t9n/messages_zh-TW.json +5 -0
- package/dist/solutions-components/p-00778753.entry.js +28 -0
- package/dist/solutions-components/p-014bea09.entry.js +11 -0
- package/dist/solutions-components/p-01835985.js +11 -0
- package/dist/solutions-components/p-0303091f.entry.js +11 -0
- package/dist/solutions-components/p-037ab3c5.entry.js +11 -0
- package/dist/solutions-components/p-039e518a.entry.js +11 -0
- package/dist/solutions-components/p-03ddee7e.entry.js +11 -0
- package/dist/solutions-components/p-08916647.entry.js +12 -0
- package/dist/solutions-components/p-0c322ca5.entry.js +6 -0
- package/dist/solutions-components/p-0c43e485.js +6 -0
- package/dist/solutions-components/p-0ed276ee.js +6 -0
- package/dist/solutions-components/p-0fc9b854.entry.js +11 -0
- package/dist/solutions-components/p-118bcff3.js +11 -0
- package/dist/solutions-components/p-132a0716.js +6 -0
- package/dist/solutions-components/p-1539a6fa.entry.js +11 -0
- package/dist/solutions-components/p-156f2d47.js +6 -0
- package/dist/solutions-components/p-16adafcb.js +6 -0
- package/dist/solutions-components/p-1814d28b.js +11 -0
- package/dist/solutions-components/p-1a8e8246.js +16 -0
- package/dist/solutions-components/p-1af5af80.js +11 -0
- package/dist/solutions-components/p-1be88141.entry.js +12 -0
- package/dist/solutions-components/p-1bf91a04.js +11 -0
- package/dist/solutions-components/p-1e50346e.entry.js +11 -0
- package/dist/solutions-components/p-1f283ddb.js +11 -0
- package/dist/solutions-components/p-2295c2dd.entry.js +6 -0
- package/dist/solutions-components/p-23328381.entry.js +6 -0
- package/dist/solutions-components/p-2dfb4e56.entry.js +16 -0
- package/dist/solutions-components/p-2e730210.entry.js +6 -0
- package/dist/solutions-components/p-2f268d5b.entry.js +16 -0
- package/dist/solutions-components/p-308024dc.js +11 -0
- package/dist/solutions-components/p-3124eab2.entry.js +17 -0
- package/dist/solutions-components/p-31c65694.entry.js +6 -0
- package/dist/solutions-components/p-32d25bcb.js +11 -0
- package/dist/solutions-components/p-3640823f.entry.js +17 -0
- package/dist/solutions-components/p-367c73f3.entry.js +6 -0
- package/dist/solutions-components/p-37f44acc.js +11 -0
- package/dist/solutions-components/p-3870751d.js +6 -0
- package/dist/solutions-components/p-3a8f5449.entry.js +11 -0
- package/dist/solutions-components/p-3f0a680f.js +6 -0
- package/dist/solutions-components/p-4031b480.js +6 -0
- package/dist/solutions-components/p-406c320e.js +11 -0
- package/dist/solutions-components/p-40827722.js +11 -0
- package/dist/solutions-components/p-4147ecf0.js +11 -0
- package/dist/solutions-components/p-430908f8.js +6 -0
- package/dist/solutions-components/p-44b3bbf8.entry.js +11 -0
- package/dist/solutions-components/p-46a7caf2.js +6 -0
- package/dist/solutions-components/p-470345d6.js +11 -0
- package/dist/solutions-components/p-483a5477.js +6 -0
- package/dist/solutions-components/p-49bb8952.js +11 -0
- package/dist/solutions-components/p-4c365c5e.entry.js +11 -0
- package/dist/solutions-components/p-4c70b352.entry.js +6 -0
- package/dist/solutions-components/p-4f6aa2f6.js +11 -0
- package/dist/solutions-components/p-50002c2f.js +6 -0
- package/dist/solutions-components/p-504bb19e.entry.js +11 -0
- package/dist/solutions-components/p-5119d274.js +11 -0
- package/dist/solutions-components/p-533b0d64.js +6 -0
- package/dist/solutions-components/p-5467780a.entry.js +11 -0
- package/dist/solutions-components/p-54ff0119.entry.js +11 -0
- package/dist/solutions-components/p-55a07c2a.js +11 -0
- package/dist/solutions-components/p-56a43beb.entry.js +11 -0
- package/dist/solutions-components/p-579bdb57.js +6 -0
- package/dist/solutions-components/p-58ccddc5.entry.js +11 -0
- package/dist/solutions-components/p-598c64f7.entry.js +29 -0
- package/dist/solutions-components/p-5a075f65.entry.js +11 -0
- package/dist/solutions-components/p-5bb19185.entry.js +11 -0
- package/dist/solutions-components/p-5e1ecb54.js +6 -0
- package/dist/solutions-components/p-60dba4a9.entry.js +11 -0
- package/dist/solutions-components/p-6373d5e2.js +6 -0
- package/dist/solutions-components/p-659f82a2.js +11 -0
- package/dist/solutions-components/p-65f230f4.js +6 -0
- package/dist/solutions-components/p-6d5a1566.js +17 -0
- package/dist/solutions-components/p-6ecce676.entry.js +11 -0
- package/dist/solutions-components/p-6ff04b6a.entry.js +11 -0
- package/dist/solutions-components/p-7203026b.entry.js +11 -0
- package/dist/solutions-components/p-74062e42.js +6 -0
- package/dist/solutions-components/p-76809845.js +6 -0
- package/dist/solutions-components/p-779f46eb.js +11 -0
- package/dist/solutions-components/p-77c3fb52.js +6 -0
- package/dist/solutions-components/p-79bb2b4d.entry.js +11 -0
- package/dist/solutions-components/p-7ab4c1e1.js +6 -0
- package/dist/solutions-components/p-7afb5491.js +6 -0
- package/dist/solutions-components/p-7bd4e7bf.js +6 -0
- package/dist/solutions-components/p-7c9cfa11.js +11 -0
- package/dist/solutions-components/p-7d79a255.entry.js +11 -0
- package/dist/solutions-components/p-7d94c28d.js +6 -0
- package/dist/solutions-components/p-7e4238d2.js +6 -0
- package/dist/solutions-components/p-7f3f99de.entry.js +6 -0
- package/dist/solutions-components/p-7ff4a852.js +6 -0
- package/dist/solutions-components/p-822d9606.entry.js +18 -0
- package/dist/solutions-components/p-82da0de5.js +12 -0
- package/dist/solutions-components/p-83153df0.js +18 -0
- package/dist/solutions-components/p-86a2d317.entry.js +11 -0
- package/dist/solutions-components/p-8837c151.entry.js +6 -0
- package/dist/solutions-components/p-88dac03a.js +11 -0
- package/dist/solutions-components/p-8a15f8aa.js +6 -0
- package/dist/solutions-components/p-8a9d80e2.js +6 -0
- package/dist/solutions-components/p-8b05cb55.entry.js +18 -0
- package/dist/solutions-components/p-8cbb4062.js +11 -0
- package/dist/solutions-components/p-8e26eb6f.js +22 -0
- package/dist/solutions-components/p-90a57fcf.js +6 -0
- package/dist/solutions-components/p-91d4bef4.js +6 -0
- package/dist/solutions-components/p-920709db.entry.js +11 -0
- package/dist/solutions-components/p-9283b5f2.entry.js +11 -0
- package/dist/solutions-components/p-931e1ce1.js +6 -0
- package/dist/solutions-components/p-9507e2ce.js +11 -0
- package/dist/solutions-components/p-950b82c8.entry.js +11 -0
- package/dist/solutions-components/p-956d3175.entry.js +6 -0
- package/dist/solutions-components/p-998671c9.entry.js +11 -0
- package/dist/solutions-components/p-99d06856.js +6 -0
- package/dist/solutions-components/p-9bbe962a.entry.js +11 -0
- package/dist/solutions-components/p-9e64167e.js +6 -0
- package/dist/solutions-components/p-9eaa2050.js +6 -0
- package/dist/solutions-components/p-a013accc.js +6 -0
- package/dist/solutions-components/p-a23a07b4.entry.js +17 -0
- package/dist/solutions-components/p-a2c636db.entry.js +12 -0
- package/dist/solutions-components/p-a302baed.js +6 -0
- package/dist/solutions-components/p-a41dfa26.entry.js +6 -0
- package/dist/solutions-components/p-a4d81864.js +16 -0
- package/dist/solutions-components/p-a6db296e.js +6 -0
- package/dist/solutions-components/p-a7ff08e7.js +11 -0
- package/dist/solutions-components/p-a825403b.js +6 -0
- package/dist/solutions-components/p-a85f10d5.js +6 -0
- package/dist/solutions-components/p-aaa1209e.js +11 -0
- package/dist/solutions-components/p-abe3df4d.entry.js +6 -0
- package/dist/solutions-components/p-adcf36e0.js +11 -0
- package/dist/solutions-components/p-b2862cb2.js +6 -0
- package/dist/solutions-components/p-b2a7416b.entry.js +11 -0
- package/dist/solutions-components/p-b2d1b625.entry.js +6 -0
- package/dist/solutions-components/p-b4912a5e.js +6 -0
- package/dist/solutions-components/p-b69d8edc.js +6 -0
- package/dist/solutions-components/p-b6bf2256.entry.js +17 -0
- package/dist/solutions-components/p-b95a7bb1.entry.js +11 -0
- package/dist/solutions-components/p-b9c16f28.js +6 -0
- package/dist/solutions-components/p-ba717eb2.entry.js +6 -0
- package/dist/solutions-components/p-bdd2d1b3.js +6 -0
- package/dist/solutions-components/p-be7add87.js +6 -0
- package/dist/solutions-components/p-bfda0e4c.js +6 -0
- package/dist/solutions-components/p-c147c7ee.js +11 -0
- package/dist/solutions-components/p-c3f4cb87.entry.js +11 -0
- package/dist/solutions-components/p-c758e011.js +6 -0
- package/dist/solutions-components/p-c75af332.js +11 -0
- package/dist/solutions-components/p-c94937f6.entry.js +6 -0
- package/dist/solutions-components/p-c95cf6b6.entry.js +17 -0
- package/dist/solutions-components/p-c9fc3253.js +6 -0
- package/dist/solutions-components/p-ca391de0.js +6 -0
- package/dist/solutions-components/p-caa4ef57.js +17 -0
- package/dist/solutions-components/p-cadf1546.entry.js +11 -0
- package/dist/solutions-components/p-cb57efe6.entry.js +11 -0
- package/dist/solutions-components/p-cc6b57c6.entry.js +11 -0
- package/dist/solutions-components/p-d34397ef.entry.js +17 -0
- package/dist/solutions-components/p-d52bc7dd.entry.js +11 -0
- package/dist/solutions-components/p-d607ab3d.entry.js +47 -0
- package/dist/solutions-components/p-d93e3745.entry.js +11 -0
- package/dist/solutions-components/p-d943947f.js +11 -0
- package/dist/solutions-components/p-ddb3bc15.js +11 -0
- package/dist/solutions-components/p-ddd5afde.js +11 -0
- package/dist/solutions-components/p-dea5e302.entry.js +11 -0
- package/dist/solutions-components/p-e2336324.js +11 -0
- package/dist/solutions-components/p-e2d2cb89.entry.js +11 -0
- package/dist/solutions-components/p-e58ffef6.entry.js +11 -0
- package/dist/solutions-components/p-e91c5763.js +16 -0
- package/dist/solutions-components/p-ea22826b.js +11 -0
- package/dist/solutions-components/p-eace7ab0.entry.js +11 -0
- package/dist/solutions-components/p-ec1f28a7.entry.js +11 -0
- package/dist/solutions-components/p-ef0b06ac.entry.js +6 -0
- package/dist/solutions-components/p-f0547cac.entry.js +6 -0
- package/dist/solutions-components/p-f0b83721.js +6 -0
- package/dist/solutions-components/p-f1979b5c.entry.js +11 -0
- package/dist/solutions-components/p-f2723f08.js +6 -0
- package/dist/solutions-components/p-f3f1e27e.js +11 -0
- package/dist/solutions-components/p-f70e8ca1.js +11 -0
- package/dist/solutions-components/p-ff3f307a.entry.js +11 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -0
- package/dist/types/components/layer-table/layer-table.d.ts +16 -0
- package/dist/types/components.d.ts +21 -0
- package/dist/types/preact.d.ts +2 -1
- package/package.json +2 -2
- package/dist/cjs/ExpandToggle-965987de.js +0 -118
- package/dist/cjs/FloatingArrow-5aba7af1.js +0 -48
- package/dist/cjs/Heading-b0970391.js +0 -25
- package/dist/cjs/app-globals-8afc8fa0.js +0 -69
- package/dist/cjs/ar-e86d748c.js +0 -103
- package/dist/cjs/array-d55de2d5.js +0 -17
- package/dist/cjs/bg-6f72f34d.js +0 -81
- package/dist/cjs/browser-09760f9f.js +0 -23
- package/dist/cjs/bs-290f2e0c.js +0 -50
- package/dist/cjs/ca-d9261215.js +0 -70
- package/dist/cjs/calcite-input-number_2.cjs.entry.js +0 -920
- package/dist/cjs/calcite-input-time-picker-b809da0b.js +0 -1848
- package/dist/cjs/conditionalSlot-f577ba32.js +0 -63
- package/dist/cjs/cs-b250298e.js +0 -146
- package/dist/cjs/da-8715f736.js +0 -65
- package/dist/cjs/date-60e18f3e.js +0 -261
- package/dist/cjs/de-9289461a.js +0 -90
- package/dist/cjs/de-at-e7ef417f.js +0 -89
- package/dist/cjs/de-ch-de539200.js +0 -89
- package/dist/cjs/dom-c585dfa7.js +0 -1061
- package/dist/cjs/el-7701d486.js +0 -65
- package/dist/cjs/en-au-6e2f2f4b.js +0 -65
- package/dist/cjs/en-ca-8bc8ae5b.js +0 -64
- package/dist/cjs/en-gb-6e0fd6a4.js +0 -68
- package/dist/cjs/es-dd9fcddf.js +0 -65
- package/dist/cjs/es-mx-32e3b2ce.js +0 -64
- package/dist/cjs/et-9c241f89.js +0 -91
- package/dist/cjs/fi-946c7e09.js +0 -114
- package/dist/cjs/filter-a4465208.js +0 -765
- package/dist/cjs/floating-ui-3625f253.js +0 -1904
- package/dist/cjs/focusTrapComponent-919e5636.js +0 -1009
- package/dist/cjs/form-da1bc377.js +0 -288
- package/dist/cjs/fr-1a8ac01d.js +0 -67
- package/dist/cjs/fr-ch-02594f06.js +0 -65
- package/dist/cjs/globalAttributes-bb9603f4.js +0 -77
- package/dist/cjs/guid-5ef151a6.js +0 -26
- package/dist/cjs/he-e3dd7687.js +0 -104
- package/dist/cjs/hi-66fc4798.js +0 -64
- package/dist/cjs/hr-2dbffa4f.js +0 -79
- package/dist/cjs/hu-22732855.js +0 -87
- package/dist/cjs/id-40469057.js +0 -65
- package/dist/cjs/index-22e2d297.js +0 -172
- package/dist/cjs/index-6b21a03f.js +0 -73
- package/dist/cjs/interactive-17168f1c.js +0 -147
- package/dist/cjs/it-72244e1f.js +0 -65
- package/dist/cjs/it-ch-111e0a76.js +0 -65
- package/dist/cjs/ja-64c49fbb.js +0 -71
- package/dist/cjs/key-29076628.js +0 -19
- package/dist/cjs/ko-ba039889.js +0 -71
- package/dist/cjs/label-a44d17b9.js +0 -154
- package/dist/cjs/loadable-53fa41ac.js +0 -94
- package/dist/cjs/locale-62c20bcc.js +0 -607
- package/dist/cjs/lt-14caf6e3.js +0 -96
- package/dist/cjs/lv-90627da7.js +0 -65
- package/dist/cjs/math-1e2752e6.js +0 -60
- package/dist/cjs/mk-43da0937.js +0 -65
- package/dist/cjs/nb-6e84fe55.js +0 -66
- package/dist/cjs/nl-b09e824f.js +0 -66
- package/dist/cjs/observers-ee7eadc4.js +0 -53
- package/dist/cjs/openCloseComponent-56419b32.js +0 -92
- package/dist/cjs/pl-acc3eed9.js +0 -113
- package/dist/cjs/pt-445d1df2.js +0 -66
- package/dist/cjs/pt-br-63d38ff8.js +0 -64
- package/dist/cjs/resources-3a88b7d8.js +0 -2062
- package/dist/cjs/resources-4548c1f4.js +0 -29
- package/dist/cjs/resources-4671a126.js +0 -20
- package/dist/cjs/resources-49866a7a.js +0 -52
- package/dist/cjs/resources-85c1ae6a.js +0 -27
- package/dist/cjs/resources-876c9b89.js +0 -29
- package/dist/cjs/resources-9dcc553a.js +0 -39
- package/dist/cjs/resources-be3c1b4b.js +0 -26
- package/dist/cjs/resources-d8917c46.js +0 -32
- package/dist/cjs/resources-d89b020a.js +0 -23
- package/dist/cjs/responsive-b6e86bcb.js +0 -44
- package/dist/cjs/ro-3d33dcc0.js +0 -65
- package/dist/cjs/ru-6d33bd42.js +0 -125
- package/dist/cjs/shared-list-render-44ea9d69.js +0 -364
- package/dist/cjs/sk-8e7343e5.js +0 -147
- package/dist/cjs/sl-b2721e1d.js +0 -167
- package/dist/cjs/sortableComponent-f9fbabf1.js +0 -3107
- package/dist/cjs/sr-6c42e7fd.js +0 -100
- package/dist/cjs/sv-09355347.js +0 -70
- package/dist/cjs/t9n-78efea01.js +0 -100
- package/dist/cjs/th-b011dfda.js +0 -64
- package/dist/cjs/time-5c558990.js +0 -289
- package/dist/cjs/tr-64095398.js +0 -65
- package/dist/cjs/uk-942a3963.js +0 -103
- package/dist/cjs/utils-a3c937c3.js +0 -59
- package/dist/cjs/utils-bad1a9c3.js +0 -64
- package/dist/cjs/utils-bbda4ba3.js +0 -93
- package/dist/cjs/utils-e99ff998.js +0 -221
- package/dist/cjs/vi-1f4b147c.js +0 -69
- package/dist/cjs/zh-cn-d312b710.js +0 -93
- package/dist/cjs/zh-hk-8237d0e3.js +0 -70
- package/dist/cjs/zh-tw-f28548c8.js +0 -91
- package/dist/components/responsive.js +0 -42
- package/dist/esm/ExpandToggle-e107f9b4.js +0 -110
- package/dist/esm/FloatingArrow-3bcbf69c.js +0 -46
- package/dist/esm/Heading-d54e4e64.js +0 -22
- package/dist/esm/app-globals-d6e155e2.js +0 -67
- package/dist/esm/ar-6024936e.js +0 -101
- package/dist/esm/array-3a471981.js +0 -15
- package/dist/esm/bg-0aaf375e.js +0 -79
- package/dist/esm/browser-b8a2c2d7.js +0 -21
- package/dist/esm/bs-a29d4263.js +0 -48
- package/dist/esm/ca-7025e8bd.js +0 -68
- package/dist/esm/calcite-input-number_2.entry.js +0 -915
- package/dist/esm/calcite-input-time-picker-970d2da4.js +0 -1845
- package/dist/esm/conditionalSlot-2966afcc.js +0 -60
- package/dist/esm/cs-e75d4f0f.js +0 -144
- package/dist/esm/da-7ef2ef83.js +0 -63
- package/dist/esm/date-05688c80.js +0 -245
- package/dist/esm/de-8c937192.js +0 -88
- package/dist/esm/de-at-2d6f27fb.js +0 -87
- package/dist/esm/de-ch-94e48c2e.js +0 -87
- package/dist/esm/dom-923ca11d.js +0 -1032
- package/dist/esm/el-a2fbe5ed.js +0 -63
- package/dist/esm/en-au-e41b88d1.js +0 -63
- package/dist/esm/en-ca-87be65a9.js +0 -62
- package/dist/esm/en-gb-83952182.js +0 -66
- package/dist/esm/es-141e8350.js +0 -63
- package/dist/esm/es-mx-b6a7e8b9.js +0 -62
- package/dist/esm/et-938a5466.js +0 -89
- package/dist/esm/fi-b2c86fbe.js +0 -112
- package/dist/esm/filter-a4d7ecd2.js +0 -763
- package/dist/esm/floating-ui-9c3f29d1.js +0 -1896
- package/dist/esm/focusTrapComponent-d703f459.js +0 -1004
- package/dist/esm/form-77fd19cb.js +0 -280
- package/dist/esm/fr-38f2377b.js +0 -65
- package/dist/esm/fr-ch-f0aa93c8.js +0 -63
- package/dist/esm/globalAttributes-43f1d649.js +0 -74
- package/dist/esm/guid-99d025c6.js +0 -24
- package/dist/esm/he-c4b286cd.js +0 -102
- package/dist/esm/hi-78cb42a0.js +0 -62
- package/dist/esm/hr-a4637cfd.js +0 -77
- package/dist/esm/hu-54c88160.js +0 -85
- package/dist/esm/id-059e47c6.js +0 -63
- package/dist/esm/index-7bd8186c.js +0 -71
- package/dist/esm/index-9d64f551.js +0 -170
- package/dist/esm/interactive-e95bbf6b.js +0 -143
- package/dist/esm/it-015c5cc3.js +0 -63
- package/dist/esm/it-ch-f345a8fe.js +0 -63
- package/dist/esm/ja-f6c91a37.js +0 -69
- package/dist/esm/key-5ab69c42.js +0 -16
- package/dist/esm/ko-7b0bfdfa.js +0 -69
- package/dist/esm/label-be61f66c.js +0 -148
- package/dist/esm/loadable-9617e31c.js +0 -89
- package/dist/esm/locale-76c0c1d9.js +0 -594
- package/dist/esm/lt-ebe0d73b.js +0 -94
- package/dist/esm/lv-f7cb8ecf.js +0 -63
- package/dist/esm/math-26607e9b.js +0 -54
- package/dist/esm/mk-fdcc6d81.js +0 -63
- package/dist/esm/nb-44fa5d1f.js +0 -64
- package/dist/esm/nl-72a97244.js +0 -64
- package/dist/esm/observers-115d1b4b.js +0 -51
- package/dist/esm/openCloseComponent-ecc80ec6.js +0 -90
- package/dist/esm/pl-6594cf3b.js +0 -111
- package/dist/esm/pt-a7407eb8.js +0 -64
- package/dist/esm/pt-br-83e7fa27.js +0 -62
- package/dist/esm/resources-0fa1514d.js +0 -22
- package/dist/esm/resources-19e558e7.js +0 -48
- package/dist/esm/resources-27261bc6.js +0 -24
- package/dist/esm/resources-4100c616.js +0 -35
- package/dist/esm/resources-55ef6d44.js +0 -2051
- package/dist/esm/resources-9158321b.js +0 -20
- package/dist/esm/resources-936a5f2d.js +0 -26
- package/dist/esm/resources-bb8600a6.js +0 -28
- package/dist/esm/resources-c8f83593.js +0 -20
- package/dist/esm/resources-ee6e347f.js +0 -24
- package/dist/esm/responsive-4d7ef153.js +0 -42
- package/dist/esm/ro-455d4855.js +0 -63
- package/dist/esm/ru-afedf1c0.js +0 -123
- package/dist/esm/shared-list-render-086be7e0.js +0 -342
- package/dist/esm/sk-593b7042.js +0 -145
- package/dist/esm/sl-738e75ca.js +0 -165
- package/dist/esm/sortableComponent-4a933f2e.js +0 -3103
- package/dist/esm/sr-46d78867.js +0 -98
- package/dist/esm/sv-a5afd0c2.js +0 -68
- package/dist/esm/t9n-709a2605.js +0 -95
- package/dist/esm/th-0e794832.js +0 -62
- package/dist/esm/time-a725be63.js +0 -274
- package/dist/esm/tr-c520e117.js +0 -63
- package/dist/esm/uk-98d8c935.js +0 -101
- package/dist/esm/utils-186d9d5e.js +0 -48
- package/dist/esm/utils-1c26ea1b.js +0 -61
- package/dist/esm/utils-3ad366fc.js +0 -85
- package/dist/esm/utils-9f44f942.js +0 -203
- package/dist/esm/vi-d6022534.js +0 -67
- package/dist/esm/zh-cn-c112d022.js +0 -91
- package/dist/esm/zh-hk-2d857989.js +0 -68
- package/dist/esm/zh-tw-196abcd0.js +0 -89
- package/dist/solutions-components/p-00026bea.js +0 -6
- package/dist/solutions-components/p-024c2016.js +0 -11
- package/dist/solutions-components/p-024ff2f9.js +0 -11
- package/dist/solutions-components/p-02e84287.entry.js +0 -11
- package/dist/solutions-components/p-039ac222.js +0 -11
- package/dist/solutions-components/p-071d92ec.entry.js +0 -18
- package/dist/solutions-components/p-091f2e4a.entry.js +0 -11
- package/dist/solutions-components/p-0a95c999.js +0 -11
- package/dist/solutions-components/p-0a976cf8.js +0 -6
- package/dist/solutions-components/p-0bd702b0.entry.js +0 -11
- package/dist/solutions-components/p-0c77262e.entry.js +0 -11
- package/dist/solutions-components/p-0ca9f9b0.js +0 -6
- package/dist/solutions-components/p-109dcfef.entry.js +0 -6
- package/dist/solutions-components/p-11a5efc8.entry.js +0 -11
- package/dist/solutions-components/p-1229516f.js +0 -11
- package/dist/solutions-components/p-123257b4.js +0 -6
- package/dist/solutions-components/p-139ff4ab.js +0 -6
- package/dist/solutions-components/p-1406bcc4.js +0 -18
- package/dist/solutions-components/p-151c5d71.js +0 -11
- package/dist/solutions-components/p-16d0f5e7.js +0 -6
- package/dist/solutions-components/p-1738c574.entry.js +0 -6
- package/dist/solutions-components/p-18bdcb54.js +0 -6
- package/dist/solutions-components/p-1abf4a98.entry.js +0 -12
- package/dist/solutions-components/p-1b606a4e.js +0 -6
- package/dist/solutions-components/p-1d8b5383.entry.js +0 -17
- package/dist/solutions-components/p-1efb6f5e.js +0 -6
- package/dist/solutions-components/p-1f8b3c22.js +0 -6
- package/dist/solutions-components/p-244fe501.js +0 -6
- package/dist/solutions-components/p-25736760.entry.js +0 -6
- package/dist/solutions-components/p-27431aa6.js +0 -11
- package/dist/solutions-components/p-27c3142d.js +0 -6
- package/dist/solutions-components/p-28657abb.entry.js +0 -11
- package/dist/solutions-components/p-29f22e76.entry.js +0 -11
- package/dist/solutions-components/p-2a8e0824.entry.js +0 -11
- package/dist/solutions-components/p-2c095772.entry.js +0 -11
- package/dist/solutions-components/p-2c49fea8.entry.js +0 -11
- package/dist/solutions-components/p-2c676869.entry.js +0 -11
- package/dist/solutions-components/p-2d34a885.entry.js +0 -6
- package/dist/solutions-components/p-2ee3afea.js +0 -12
- package/dist/solutions-components/p-2f9bab49.js +0 -11
- package/dist/solutions-components/p-3003e56a.js +0 -11
- package/dist/solutions-components/p-319e672e.js +0 -6
- package/dist/solutions-components/p-3324bc9c.js +0 -6
- package/dist/solutions-components/p-33833cea.js +0 -6
- package/dist/solutions-components/p-34fb2a6e.js +0 -11
- package/dist/solutions-components/p-353ff6c3.js +0 -17
- package/dist/solutions-components/p-3556a164.entry.js +0 -11
- package/dist/solutions-components/p-361b44ed.js +0 -11
- package/dist/solutions-components/p-369e28ed.js +0 -11
- package/dist/solutions-components/p-37551e19.entry.js +0 -28
- package/dist/solutions-components/p-3760847f.js +0 -11
- package/dist/solutions-components/p-3a712812.js +0 -6
- package/dist/solutions-components/p-3ca5956e.entry.js +0 -6
- package/dist/solutions-components/p-3e1346f4.js +0 -6
- package/dist/solutions-components/p-42472527.entry.js +0 -11
- package/dist/solutions-components/p-427f8955.js +0 -6
- package/dist/solutions-components/p-4349f3f7.js +0 -6
- package/dist/solutions-components/p-44ddfacf.entry.js +0 -6
- package/dist/solutions-components/p-455f4ed8.entry.js +0 -17
- package/dist/solutions-components/p-4879d789.js +0 -11
- package/dist/solutions-components/p-48a44c8d.js +0 -6
- package/dist/solutions-components/p-49dc53cb.js +0 -11
- package/dist/solutions-components/p-4b9ba22d.js +0 -17
- package/dist/solutions-components/p-4ce32f39.js +0 -6
- package/dist/solutions-components/p-4daf1755.entry.js +0 -11
- package/dist/solutions-components/p-4e58893d.js +0 -11
- package/dist/solutions-components/p-4eb21769.js +0 -11
- package/dist/solutions-components/p-50a7927d.entry.js +0 -11
- package/dist/solutions-components/p-524078d6.entry.js +0 -11
- package/dist/solutions-components/p-528116a5.js +0 -6
- package/dist/solutions-components/p-52d5d2c7.js +0 -6
- package/dist/solutions-components/p-53368491.js +0 -11
- package/dist/solutions-components/p-5507d527.entry.js +0 -17
- package/dist/solutions-components/p-59d706b4.js +0 -11
- package/dist/solutions-components/p-59f96664.js +0 -6
- package/dist/solutions-components/p-5f4fba81.entry.js +0 -11
- package/dist/solutions-components/p-60336409.entry.js +0 -17
- package/dist/solutions-components/p-640de6e2.js +0 -11
- package/dist/solutions-components/p-64106e73.js +0 -6
- package/dist/solutions-components/p-6536a858.js +0 -6
- package/dist/solutions-components/p-69925ee2.entry.js +0 -12
- package/dist/solutions-components/p-69b7a4da.js +0 -6
- package/dist/solutions-components/p-6acf6258.js +0 -6
- package/dist/solutions-components/p-6b7be761.entry.js +0 -11
- package/dist/solutions-components/p-6e779398.entry.js +0 -11
- package/dist/solutions-components/p-73e7af57.entry.js +0 -11
- package/dist/solutions-components/p-761adec1.js +0 -6
- package/dist/solutions-components/p-76384a24.js +0 -6
- package/dist/solutions-components/p-788f3c1c.js +0 -11
- package/dist/solutions-components/p-799ba781.js +0 -6
- package/dist/solutions-components/p-7c937dad.entry.js +0 -11
- package/dist/solutions-components/p-7d7e6744.js +0 -11
- package/dist/solutions-components/p-7fea302e.js +0 -6
- package/dist/solutions-components/p-800d0291.entry.js +0 -11
- package/dist/solutions-components/p-8239ee0e.entry.js +0 -6
- package/dist/solutions-components/p-83208f15.js +0 -6
- package/dist/solutions-components/p-857c255c.js +0 -6
- package/dist/solutions-components/p-866837f6.js +0 -11
- package/dist/solutions-components/p-86f482ca.js +0 -11
- package/dist/solutions-components/p-87e51c05.entry.js +0 -11
- package/dist/solutions-components/p-8a2ae571.js +0 -11
- package/dist/solutions-components/p-8f535590.entry.js +0 -6
- package/dist/solutions-components/p-8f650f5a.entry.js +0 -6
- package/dist/solutions-components/p-940c447c.js +0 -6
- package/dist/solutions-components/p-9640d89a.entry.js +0 -6
- package/dist/solutions-components/p-98d82820.entry.js +0 -11
- package/dist/solutions-components/p-9b5df16f.js +0 -6
- package/dist/solutions-components/p-9d54d7a0.entry.js +0 -29
- package/dist/solutions-components/p-9ddb9445.entry.js +0 -11
- package/dist/solutions-components/p-9e10d371.js +0 -6
- package/dist/solutions-components/p-9fd9dab0.entry.js +0 -35
- package/dist/solutions-components/p-a30bf8f8.entry.js +0 -11
- package/dist/solutions-components/p-a3538132.js +0 -6
- package/dist/solutions-components/p-a47c8ae2.js +0 -22
- package/dist/solutions-components/p-a525e175.entry.js +0 -11
- package/dist/solutions-components/p-a6774162.entry.js +0 -11
- package/dist/solutions-components/p-a678b2d3.js +0 -6
- package/dist/solutions-components/p-a99967f5.js +0 -6
- package/dist/solutions-components/p-abfec82b.js +0 -6
- package/dist/solutions-components/p-acd7494a.js +0 -6
- package/dist/solutions-components/p-b0e67c32.entry.js +0 -11
- package/dist/solutions-components/p-b3622a4e.js +0 -11
- package/dist/solutions-components/p-b41915d9.js +0 -16
- package/dist/solutions-components/p-b48e8dd1.js +0 -11
- package/dist/solutions-components/p-b587b224.entry.js +0 -6
- package/dist/solutions-components/p-b80631c4.js +0 -11
- package/dist/solutions-components/p-bc965d47.js +0 -12
- package/dist/solutions-components/p-bdc6be4b.entry.js +0 -11
- package/dist/solutions-components/p-bf9d3381.js +0 -16
- package/dist/solutions-components/p-c0ec94af.js +0 -6
- package/dist/solutions-components/p-c191d28c.entry.js +0 -17
- package/dist/solutions-components/p-c24040ec.js +0 -11
- package/dist/solutions-components/p-c4a448a3.js +0 -6
- package/dist/solutions-components/p-c69ba9db.entry.js +0 -11
- package/dist/solutions-components/p-c8e772fb.js +0 -6
- package/dist/solutions-components/p-c9ba6598.js +0 -6
- package/dist/solutions-components/p-c9d9ac15.entry.js +0 -6
- package/dist/solutions-components/p-ca37ebd0.entry.js +0 -6
- package/dist/solutions-components/p-ca53679d.entry.js +0 -11
- package/dist/solutions-components/p-cb8e599c.js +0 -6
- package/dist/solutions-components/p-cbe3b9ee.js +0 -6
- package/dist/solutions-components/p-cdfe141e.entry.js +0 -11
- package/dist/solutions-components/p-cefde738.entry.js +0 -11
- package/dist/solutions-components/p-d0e59d62.js +0 -6
- package/dist/solutions-components/p-d16db4eb.entry.js +0 -11
- package/dist/solutions-components/p-d4278729.js +0 -11
- package/dist/solutions-components/p-d6f51bea.entry.js +0 -11
- package/dist/solutions-components/p-d78136be.entry.js +0 -11
- package/dist/solutions-components/p-d7953124.entry.js +0 -11
- package/dist/solutions-components/p-d85e1fbe.entry.js +0 -11
- package/dist/solutions-components/p-dcf0f0c8.entry.js +0 -12
- package/dist/solutions-components/p-dd36af4f.js +0 -11
- package/dist/solutions-components/p-dd4e5f64.js +0 -11
- package/dist/solutions-components/p-dd6b827e.entry.js +0 -16
- package/dist/solutions-components/p-e004e8e2.js +0 -16
- package/dist/solutions-components/p-e1e22909.entry.js +0 -11
- package/dist/solutions-components/p-e1f1e124.entry.js +0 -11
- package/dist/solutions-components/p-e416078b.entry.js +0 -6
- package/dist/solutions-components/p-e592e744.entry.js +0 -6
- package/dist/solutions-components/p-e6371690.entry.js +0 -6
- package/dist/solutions-components/p-ed3bd9b8.entry.js +0 -17
- package/dist/solutions-components/p-ed95f634.entry.js +0 -6
- package/dist/solutions-components/p-ee13cafa.entry.js +0 -11
- package/dist/solutions-components/p-ee839f28.entry.js +0 -11
- package/dist/solutions-components/p-efc041d0.js +0 -11
- package/dist/solutions-components/p-f20097e5.js +0 -6
- package/dist/solutions-components/p-f3f83c1e.js +0 -6
- package/dist/solutions-components/p-f52ee45d.js +0 -11
- package/dist/solutions-components/p-fb67a388.entry.js +0 -17
- package/dist/solutions-components/p-fbbfed75.entry.js +0 -18
- package/dist/solutions-components/p-fe9cdc3d.entry.js +0 -6
@@ -0,0 +1,1894 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import { a as getElementDir } from './dom-7b3caf49.js';
|
7
|
+
import { d as debounce } from './debounce-229b1a22.js';
|
8
|
+
|
9
|
+
const sides = ['top', 'right', 'bottom', 'left'];
|
10
|
+
const alignments = ['start', 'end'];
|
11
|
+
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
12
|
+
const min = Math.min;
|
13
|
+
const max = Math.max;
|
14
|
+
const round = Math.round;
|
15
|
+
const floor = Math.floor;
|
16
|
+
const createCoords = v => ({
|
17
|
+
x: v,
|
18
|
+
y: v
|
19
|
+
});
|
20
|
+
const oppositeSideMap = {
|
21
|
+
left: 'right',
|
22
|
+
right: 'left',
|
23
|
+
bottom: 'top',
|
24
|
+
top: 'bottom'
|
25
|
+
};
|
26
|
+
const oppositeAlignmentMap = {
|
27
|
+
start: 'end',
|
28
|
+
end: 'start'
|
29
|
+
};
|
30
|
+
function clamp(start, value, end) {
|
31
|
+
return max(start, min(value, end));
|
32
|
+
}
|
33
|
+
function evaluate(value, param) {
|
34
|
+
return typeof value === 'function' ? value(param) : value;
|
35
|
+
}
|
36
|
+
function getSide(placement) {
|
37
|
+
return placement.split('-')[0];
|
38
|
+
}
|
39
|
+
function getAlignment(placement) {
|
40
|
+
return placement.split('-')[1];
|
41
|
+
}
|
42
|
+
function getOppositeAxis(axis) {
|
43
|
+
return axis === 'x' ? 'y' : 'x';
|
44
|
+
}
|
45
|
+
function getAxisLength(axis) {
|
46
|
+
return axis === 'y' ? 'height' : 'width';
|
47
|
+
}
|
48
|
+
function getSideAxis(placement) {
|
49
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
50
|
+
}
|
51
|
+
function getAlignmentAxis(placement) {
|
52
|
+
return getOppositeAxis(getSideAxis(placement));
|
53
|
+
}
|
54
|
+
function getAlignmentSides(placement, rects, rtl) {
|
55
|
+
if (rtl === void 0) {
|
56
|
+
rtl = false;
|
57
|
+
}
|
58
|
+
const alignment = getAlignment(placement);
|
59
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
60
|
+
const length = getAxisLength(alignmentAxis);
|
61
|
+
let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
62
|
+
if (rects.reference[length] > rects.floating[length]) {
|
63
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
64
|
+
}
|
65
|
+
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
66
|
+
}
|
67
|
+
function getExpandedPlacements(placement) {
|
68
|
+
const oppositePlacement = getOppositePlacement(placement);
|
69
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
70
|
+
}
|
71
|
+
function getOppositeAlignmentPlacement(placement) {
|
72
|
+
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
73
|
+
}
|
74
|
+
function getSideList(side, isStart, rtl) {
|
75
|
+
const lr = ['left', 'right'];
|
76
|
+
const rl = ['right', 'left'];
|
77
|
+
const tb = ['top', 'bottom'];
|
78
|
+
const bt = ['bottom', 'top'];
|
79
|
+
switch (side) {
|
80
|
+
case 'top':
|
81
|
+
case 'bottom':
|
82
|
+
if (rtl) return isStart ? rl : lr;
|
83
|
+
return isStart ? lr : rl;
|
84
|
+
case 'left':
|
85
|
+
case 'right':
|
86
|
+
return isStart ? tb : bt;
|
87
|
+
default:
|
88
|
+
return [];
|
89
|
+
}
|
90
|
+
}
|
91
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
92
|
+
const alignment = getAlignment(placement);
|
93
|
+
let list = getSideList(getSide(placement), direction === 'start', rtl);
|
94
|
+
if (alignment) {
|
95
|
+
list = list.map(side => side + "-" + alignment);
|
96
|
+
if (flipAlignment) {
|
97
|
+
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
98
|
+
}
|
99
|
+
}
|
100
|
+
return list;
|
101
|
+
}
|
102
|
+
function getOppositePlacement(placement) {
|
103
|
+
return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
|
104
|
+
}
|
105
|
+
function expandPaddingObject(padding) {
|
106
|
+
return {
|
107
|
+
top: 0,
|
108
|
+
right: 0,
|
109
|
+
bottom: 0,
|
110
|
+
left: 0,
|
111
|
+
...padding
|
112
|
+
};
|
113
|
+
}
|
114
|
+
function getPaddingObject(padding) {
|
115
|
+
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
116
|
+
top: padding,
|
117
|
+
right: padding,
|
118
|
+
bottom: padding,
|
119
|
+
left: padding
|
120
|
+
};
|
121
|
+
}
|
122
|
+
function rectToClientRect(rect) {
|
123
|
+
return {
|
124
|
+
...rect,
|
125
|
+
top: rect.y,
|
126
|
+
left: rect.x,
|
127
|
+
right: rect.x + rect.width,
|
128
|
+
bottom: rect.y + rect.height
|
129
|
+
};
|
130
|
+
}
|
131
|
+
|
132
|
+
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
133
|
+
let {
|
134
|
+
reference,
|
135
|
+
floating
|
136
|
+
} = _ref;
|
137
|
+
const sideAxis = getSideAxis(placement);
|
138
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
139
|
+
const alignLength = getAxisLength(alignmentAxis);
|
140
|
+
const side = getSide(placement);
|
141
|
+
const isVertical = sideAxis === 'y';
|
142
|
+
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
143
|
+
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
144
|
+
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
145
|
+
let coords;
|
146
|
+
switch (side) {
|
147
|
+
case 'top':
|
148
|
+
coords = {
|
149
|
+
x: commonX,
|
150
|
+
y: reference.y - floating.height
|
151
|
+
};
|
152
|
+
break;
|
153
|
+
case 'bottom':
|
154
|
+
coords = {
|
155
|
+
x: commonX,
|
156
|
+
y: reference.y + reference.height
|
157
|
+
};
|
158
|
+
break;
|
159
|
+
case 'right':
|
160
|
+
coords = {
|
161
|
+
x: reference.x + reference.width,
|
162
|
+
y: commonY
|
163
|
+
};
|
164
|
+
break;
|
165
|
+
case 'left':
|
166
|
+
coords = {
|
167
|
+
x: reference.x - floating.width,
|
168
|
+
y: commonY
|
169
|
+
};
|
170
|
+
break;
|
171
|
+
default:
|
172
|
+
coords = {
|
173
|
+
x: reference.x,
|
174
|
+
y: reference.y
|
175
|
+
};
|
176
|
+
}
|
177
|
+
switch (getAlignment(placement)) {
|
178
|
+
case 'start':
|
179
|
+
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
180
|
+
break;
|
181
|
+
case 'end':
|
182
|
+
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
183
|
+
break;
|
184
|
+
}
|
185
|
+
return coords;
|
186
|
+
}
|
187
|
+
|
188
|
+
/**
|
189
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
190
|
+
* next to a reference element when it is given a certain positioning strategy.
|
191
|
+
*
|
192
|
+
* This export does not have any `platform` interface logic. You will need to
|
193
|
+
* write one for the platform you are using Floating UI with.
|
194
|
+
*/
|
195
|
+
const computePosition$1 = async (reference, floating, config) => {
|
196
|
+
const {
|
197
|
+
placement = 'bottom',
|
198
|
+
strategy = 'absolute',
|
199
|
+
middleware = [],
|
200
|
+
platform
|
201
|
+
} = config;
|
202
|
+
const validMiddleware = middleware.filter(Boolean);
|
203
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
204
|
+
let rects = await platform.getElementRects({
|
205
|
+
reference,
|
206
|
+
floating,
|
207
|
+
strategy
|
208
|
+
});
|
209
|
+
let {
|
210
|
+
x,
|
211
|
+
y
|
212
|
+
} = computeCoordsFromPlacement(rects, placement, rtl);
|
213
|
+
let statefulPlacement = placement;
|
214
|
+
let middlewareData = {};
|
215
|
+
let resetCount = 0;
|
216
|
+
for (let i = 0; i < validMiddleware.length; i++) {
|
217
|
+
const {
|
218
|
+
name,
|
219
|
+
fn
|
220
|
+
} = validMiddleware[i];
|
221
|
+
const {
|
222
|
+
x: nextX,
|
223
|
+
y: nextY,
|
224
|
+
data,
|
225
|
+
reset
|
226
|
+
} = await fn({
|
227
|
+
x,
|
228
|
+
y,
|
229
|
+
initialPlacement: placement,
|
230
|
+
placement: statefulPlacement,
|
231
|
+
strategy,
|
232
|
+
middlewareData,
|
233
|
+
rects,
|
234
|
+
platform,
|
235
|
+
elements: {
|
236
|
+
reference,
|
237
|
+
floating
|
238
|
+
}
|
239
|
+
});
|
240
|
+
x = nextX != null ? nextX : x;
|
241
|
+
y = nextY != null ? nextY : y;
|
242
|
+
middlewareData = {
|
243
|
+
...middlewareData,
|
244
|
+
[name]: {
|
245
|
+
...middlewareData[name],
|
246
|
+
...data
|
247
|
+
}
|
248
|
+
};
|
249
|
+
if (reset && resetCount <= 50) {
|
250
|
+
resetCount++;
|
251
|
+
if (typeof reset === 'object') {
|
252
|
+
if (reset.placement) {
|
253
|
+
statefulPlacement = reset.placement;
|
254
|
+
}
|
255
|
+
if (reset.rects) {
|
256
|
+
rects = reset.rects === true ? await platform.getElementRects({
|
257
|
+
reference,
|
258
|
+
floating,
|
259
|
+
strategy
|
260
|
+
}) : reset.rects;
|
261
|
+
}
|
262
|
+
({
|
263
|
+
x,
|
264
|
+
y
|
265
|
+
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
266
|
+
}
|
267
|
+
i = -1;
|
268
|
+
continue;
|
269
|
+
}
|
270
|
+
}
|
271
|
+
return {
|
272
|
+
x,
|
273
|
+
y,
|
274
|
+
placement: statefulPlacement,
|
275
|
+
strategy,
|
276
|
+
middlewareData
|
277
|
+
};
|
278
|
+
};
|
279
|
+
|
280
|
+
/**
|
281
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
282
|
+
* element is overflowing a given clipping boundary on each side.
|
283
|
+
* - positive = overflowing the boundary by that number of pixels
|
284
|
+
* - negative = how many pixels left before it will overflow
|
285
|
+
* - 0 = lies flush with the boundary
|
286
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
287
|
+
*/
|
288
|
+
async function detectOverflow(state, options) {
|
289
|
+
var _await$platform$isEle;
|
290
|
+
if (options === void 0) {
|
291
|
+
options = {};
|
292
|
+
}
|
293
|
+
const {
|
294
|
+
x,
|
295
|
+
y,
|
296
|
+
platform,
|
297
|
+
rects,
|
298
|
+
elements,
|
299
|
+
strategy
|
300
|
+
} = state;
|
301
|
+
const {
|
302
|
+
boundary = 'clippingAncestors',
|
303
|
+
rootBoundary = 'viewport',
|
304
|
+
elementContext = 'floating',
|
305
|
+
altBoundary = false,
|
306
|
+
padding = 0
|
307
|
+
} = evaluate(options, state);
|
308
|
+
const paddingObject = getPaddingObject(padding);
|
309
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
310
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
311
|
+
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
312
|
+
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))),
|
313
|
+
boundary,
|
314
|
+
rootBoundary,
|
315
|
+
strategy
|
316
|
+
}));
|
317
|
+
const rect = elementContext === 'floating' ? {
|
318
|
+
...rects.floating,
|
319
|
+
x,
|
320
|
+
y
|
321
|
+
} : rects.reference;
|
322
|
+
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
323
|
+
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
324
|
+
x: 1,
|
325
|
+
y: 1
|
326
|
+
} : {
|
327
|
+
x: 1,
|
328
|
+
y: 1
|
329
|
+
};
|
330
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
331
|
+
rect,
|
332
|
+
offsetParent,
|
333
|
+
strategy
|
334
|
+
}) : rect);
|
335
|
+
return {
|
336
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
337
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
338
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
339
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
340
|
+
};
|
341
|
+
}
|
342
|
+
|
343
|
+
/**
|
344
|
+
* Provides data to position an inner element of the floating element so that it
|
345
|
+
* appears centered to the reference element.
|
346
|
+
* @see https://floating-ui.com/docs/arrow
|
347
|
+
*/
|
348
|
+
const arrow = options => ({
|
349
|
+
name: 'arrow',
|
350
|
+
options,
|
351
|
+
async fn(state) {
|
352
|
+
const {
|
353
|
+
x,
|
354
|
+
y,
|
355
|
+
placement,
|
356
|
+
rects,
|
357
|
+
platform,
|
358
|
+
elements,
|
359
|
+
middlewareData
|
360
|
+
} = state;
|
361
|
+
// Since `element` is required, we don't Partial<> the type.
|
362
|
+
const {
|
363
|
+
element,
|
364
|
+
padding = 0
|
365
|
+
} = evaluate(options, state) || {};
|
366
|
+
if (element == null) {
|
367
|
+
return {};
|
368
|
+
}
|
369
|
+
const paddingObject = getPaddingObject(padding);
|
370
|
+
const coords = {
|
371
|
+
x,
|
372
|
+
y
|
373
|
+
};
|
374
|
+
const axis = getAlignmentAxis(placement);
|
375
|
+
const length = getAxisLength(axis);
|
376
|
+
const arrowDimensions = await platform.getDimensions(element);
|
377
|
+
const isYAxis = axis === 'y';
|
378
|
+
const minProp = isYAxis ? 'top' : 'left';
|
379
|
+
const maxProp = isYAxis ? 'bottom' : 'right';
|
380
|
+
const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
|
381
|
+
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
382
|
+
const startDiff = coords[axis] - rects.reference[axis];
|
383
|
+
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
384
|
+
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
385
|
+
|
386
|
+
// DOM platform can return `window` as the `offsetParent`.
|
387
|
+
if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
|
388
|
+
clientSize = elements.floating[clientProp] || rects.floating[length];
|
389
|
+
}
|
390
|
+
const centerToReference = endDiff / 2 - startDiff / 2;
|
391
|
+
|
392
|
+
// If the padding is large enough that it causes the arrow to no longer be
|
393
|
+
// centered, modify the padding so that it is centered.
|
394
|
+
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
395
|
+
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
396
|
+
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
397
|
+
|
398
|
+
// Make sure the arrow doesn't overflow the floating element if the center
|
399
|
+
// point is outside the floating element's bounds.
|
400
|
+
const min$1 = minPadding;
|
401
|
+
const max = clientSize - arrowDimensions[length] - maxPadding;
|
402
|
+
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
403
|
+
const offset = clamp(min$1, center, max);
|
404
|
+
|
405
|
+
// If the reference is small enough that the arrow's padding causes it to
|
406
|
+
// to point to nothing for an aligned placement, adjust the offset of the
|
407
|
+
// floating element itself. To ensure `shift()` continues to take action,
|
408
|
+
// a single reset is performed when this is true.
|
409
|
+
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
410
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
411
|
+
return {
|
412
|
+
[axis]: coords[axis] + alignmentOffset,
|
413
|
+
data: {
|
414
|
+
[axis]: offset,
|
415
|
+
centerOffset: center - offset - alignmentOffset,
|
416
|
+
...(shouldAddOffset && {
|
417
|
+
alignmentOffset
|
418
|
+
})
|
419
|
+
},
|
420
|
+
reset: shouldAddOffset
|
421
|
+
};
|
422
|
+
}
|
423
|
+
});
|
424
|
+
|
425
|
+
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
426
|
+
const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
|
427
|
+
return allowedPlacementsSortedByAlignment.filter(placement => {
|
428
|
+
if (alignment) {
|
429
|
+
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
430
|
+
}
|
431
|
+
return true;
|
432
|
+
});
|
433
|
+
}
|
434
|
+
/**
|
435
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
436
|
+
* that has the most space available automatically, without needing to specify a
|
437
|
+
* preferred placement. Alternative to `flip`.
|
438
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
439
|
+
*/
|
440
|
+
const autoPlacement = function (options) {
|
441
|
+
if (options === void 0) {
|
442
|
+
options = {};
|
443
|
+
}
|
444
|
+
return {
|
445
|
+
name: 'autoPlacement',
|
446
|
+
options,
|
447
|
+
async fn(state) {
|
448
|
+
var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
|
449
|
+
const {
|
450
|
+
rects,
|
451
|
+
middlewareData,
|
452
|
+
placement,
|
453
|
+
platform,
|
454
|
+
elements
|
455
|
+
} = state;
|
456
|
+
const {
|
457
|
+
crossAxis = false,
|
458
|
+
alignment,
|
459
|
+
allowedPlacements = placements,
|
460
|
+
autoAlignment = true,
|
461
|
+
...detectOverflowOptions
|
462
|
+
} = evaluate(options, state);
|
463
|
+
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
464
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
465
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
|
466
|
+
const currentPlacement = placements$1[currentIndex];
|
467
|
+
if (currentPlacement == null) {
|
468
|
+
return {};
|
469
|
+
}
|
470
|
+
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
471
|
+
|
472
|
+
// Make `computeCoords` start from the right place.
|
473
|
+
if (placement !== currentPlacement) {
|
474
|
+
return {
|
475
|
+
reset: {
|
476
|
+
placement: placements$1[0]
|
477
|
+
}
|
478
|
+
};
|
479
|
+
}
|
480
|
+
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
481
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
|
482
|
+
placement: currentPlacement,
|
483
|
+
overflows: currentOverflows
|
484
|
+
}];
|
485
|
+
const nextPlacement = placements$1[currentIndex + 1];
|
486
|
+
|
487
|
+
// There are more placements to check.
|
488
|
+
if (nextPlacement) {
|
489
|
+
return {
|
490
|
+
data: {
|
491
|
+
index: currentIndex + 1,
|
492
|
+
overflows: allOverflows
|
493
|
+
},
|
494
|
+
reset: {
|
495
|
+
placement: nextPlacement
|
496
|
+
}
|
497
|
+
};
|
498
|
+
}
|
499
|
+
const placementsSortedByMostSpace = allOverflows.map(d => {
|
500
|
+
const alignment = getAlignment(d.placement);
|
501
|
+
return [d.placement, alignment && crossAxis ?
|
502
|
+
// Check along the mainAxis and main crossAxis side.
|
503
|
+
d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
|
504
|
+
// Check only the mainAxis.
|
505
|
+
d.overflows[0], d.overflows];
|
506
|
+
}).sort((a, b) => a[1] - b[1]);
|
507
|
+
const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
|
508
|
+
// Aligned placements should not check their opposite crossAxis
|
509
|
+
// side.
|
510
|
+
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
511
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
512
|
+
if (resetPlacement !== placement) {
|
513
|
+
return {
|
514
|
+
data: {
|
515
|
+
index: currentIndex + 1,
|
516
|
+
overflows: allOverflows
|
517
|
+
},
|
518
|
+
reset: {
|
519
|
+
placement: resetPlacement
|
520
|
+
}
|
521
|
+
};
|
522
|
+
}
|
523
|
+
return {};
|
524
|
+
}
|
525
|
+
};
|
526
|
+
};
|
527
|
+
|
528
|
+
/**
|
529
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
530
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
531
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
532
|
+
* @see https://floating-ui.com/docs/flip
|
533
|
+
*/
|
534
|
+
const flip = function (options) {
|
535
|
+
if (options === void 0) {
|
536
|
+
options = {};
|
537
|
+
}
|
538
|
+
return {
|
539
|
+
name: 'flip',
|
540
|
+
options,
|
541
|
+
async fn(state) {
|
542
|
+
var _middlewareData$arrow, _middlewareData$flip;
|
543
|
+
const {
|
544
|
+
placement,
|
545
|
+
middlewareData,
|
546
|
+
rects,
|
547
|
+
initialPlacement,
|
548
|
+
platform,
|
549
|
+
elements
|
550
|
+
} = state;
|
551
|
+
const {
|
552
|
+
mainAxis: checkMainAxis = true,
|
553
|
+
crossAxis: checkCrossAxis = true,
|
554
|
+
fallbackPlacements: specifiedFallbackPlacements,
|
555
|
+
fallbackStrategy = 'bestFit',
|
556
|
+
fallbackAxisSideDirection = 'none',
|
557
|
+
flipAlignment = true,
|
558
|
+
...detectOverflowOptions
|
559
|
+
} = evaluate(options, state);
|
560
|
+
|
561
|
+
// If a reset by the arrow was caused due to an alignment offset being
|
562
|
+
// added, we should skip any logic now since `flip()` has already done its
|
563
|
+
// work.
|
564
|
+
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
565
|
+
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
566
|
+
return {};
|
567
|
+
}
|
568
|
+
const side = getSide(placement);
|
569
|
+
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
570
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
571
|
+
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
572
|
+
if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {
|
573
|
+
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
574
|
+
}
|
575
|
+
const placements = [initialPlacement, ...fallbackPlacements];
|
576
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
577
|
+
const overflows = [];
|
578
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
579
|
+
if (checkMainAxis) {
|
580
|
+
overflows.push(overflow[side]);
|
581
|
+
}
|
582
|
+
if (checkCrossAxis) {
|
583
|
+
const sides = getAlignmentSides(placement, rects, rtl);
|
584
|
+
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
585
|
+
}
|
586
|
+
overflowsData = [...overflowsData, {
|
587
|
+
placement,
|
588
|
+
overflows
|
589
|
+
}];
|
590
|
+
|
591
|
+
// One or more sides is overflowing.
|
592
|
+
if (!overflows.every(side => side <= 0)) {
|
593
|
+
var _middlewareData$flip2, _overflowsData$filter;
|
594
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
595
|
+
const nextPlacement = placements[nextIndex];
|
596
|
+
if (nextPlacement) {
|
597
|
+
// Try next placement and re-run the lifecycle.
|
598
|
+
return {
|
599
|
+
data: {
|
600
|
+
index: nextIndex,
|
601
|
+
overflows: overflowsData
|
602
|
+
},
|
603
|
+
reset: {
|
604
|
+
placement: nextPlacement
|
605
|
+
}
|
606
|
+
};
|
607
|
+
}
|
608
|
+
|
609
|
+
// First, find the candidates that fit on the mainAxis side of overflow,
|
610
|
+
// then find the placement that fits the best on the main crossAxis side.
|
611
|
+
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;
|
612
|
+
|
613
|
+
// Otherwise fallback.
|
614
|
+
if (!resetPlacement) {
|
615
|
+
switch (fallbackStrategy) {
|
616
|
+
case 'bestFit':
|
617
|
+
{
|
618
|
+
var _overflowsData$map$so;
|
619
|
+
const placement = (_overflowsData$map$so = overflowsData.map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
|
620
|
+
if (placement) {
|
621
|
+
resetPlacement = placement;
|
622
|
+
}
|
623
|
+
break;
|
624
|
+
}
|
625
|
+
case 'initialPlacement':
|
626
|
+
resetPlacement = initialPlacement;
|
627
|
+
break;
|
628
|
+
}
|
629
|
+
}
|
630
|
+
if (placement !== resetPlacement) {
|
631
|
+
return {
|
632
|
+
reset: {
|
633
|
+
placement: resetPlacement
|
634
|
+
}
|
635
|
+
};
|
636
|
+
}
|
637
|
+
}
|
638
|
+
return {};
|
639
|
+
}
|
640
|
+
};
|
641
|
+
};
|
642
|
+
|
643
|
+
function getSideOffsets(overflow, rect) {
|
644
|
+
return {
|
645
|
+
top: overflow.top - rect.height,
|
646
|
+
right: overflow.right - rect.width,
|
647
|
+
bottom: overflow.bottom - rect.height,
|
648
|
+
left: overflow.left - rect.width
|
649
|
+
};
|
650
|
+
}
|
651
|
+
function isAnySideFullyClipped(overflow) {
|
652
|
+
return sides.some(side => overflow[side] >= 0);
|
653
|
+
}
|
654
|
+
/**
|
655
|
+
* Provides data to hide the floating element in applicable situations, such as
|
656
|
+
* when it is not in the same clipping context as the reference element.
|
657
|
+
* @see https://floating-ui.com/docs/hide
|
658
|
+
*/
|
659
|
+
const hide = function (options) {
|
660
|
+
if (options === void 0) {
|
661
|
+
options = {};
|
662
|
+
}
|
663
|
+
return {
|
664
|
+
name: 'hide',
|
665
|
+
options,
|
666
|
+
async fn(state) {
|
667
|
+
const {
|
668
|
+
rects
|
669
|
+
} = state;
|
670
|
+
const {
|
671
|
+
strategy = 'referenceHidden',
|
672
|
+
...detectOverflowOptions
|
673
|
+
} = evaluate(options, state);
|
674
|
+
switch (strategy) {
|
675
|
+
case 'referenceHidden':
|
676
|
+
{
|
677
|
+
const overflow = await detectOverflow(state, {
|
678
|
+
...detectOverflowOptions,
|
679
|
+
elementContext: 'reference'
|
680
|
+
});
|
681
|
+
const offsets = getSideOffsets(overflow, rects.reference);
|
682
|
+
return {
|
683
|
+
data: {
|
684
|
+
referenceHiddenOffsets: offsets,
|
685
|
+
referenceHidden: isAnySideFullyClipped(offsets)
|
686
|
+
}
|
687
|
+
};
|
688
|
+
}
|
689
|
+
case 'escaped':
|
690
|
+
{
|
691
|
+
const overflow = await detectOverflow(state, {
|
692
|
+
...detectOverflowOptions,
|
693
|
+
altBoundary: true
|
694
|
+
});
|
695
|
+
const offsets = getSideOffsets(overflow, rects.floating);
|
696
|
+
return {
|
697
|
+
data: {
|
698
|
+
escapedOffsets: offsets,
|
699
|
+
escaped: isAnySideFullyClipped(offsets)
|
700
|
+
}
|
701
|
+
};
|
702
|
+
}
|
703
|
+
default:
|
704
|
+
{
|
705
|
+
return {};
|
706
|
+
}
|
707
|
+
}
|
708
|
+
}
|
709
|
+
};
|
710
|
+
};
|
711
|
+
|
712
|
+
// For type backwards-compatibility, the `OffsetOptions` type was also
|
713
|
+
// Derivable.
|
714
|
+
async function convertValueToCoords(state, options) {
|
715
|
+
const {
|
716
|
+
placement,
|
717
|
+
platform,
|
718
|
+
elements
|
719
|
+
} = state;
|
720
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
721
|
+
const side = getSide(placement);
|
722
|
+
const alignment = getAlignment(placement);
|
723
|
+
const isVertical = getSideAxis(placement) === 'y';
|
724
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
725
|
+
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
726
|
+
const rawValue = evaluate(options, state);
|
727
|
+
|
728
|
+
// eslint-disable-next-line prefer-const
|
729
|
+
let {
|
730
|
+
mainAxis,
|
731
|
+
crossAxis,
|
732
|
+
alignmentAxis
|
733
|
+
} = typeof rawValue === 'number' ? {
|
734
|
+
mainAxis: rawValue,
|
735
|
+
crossAxis: 0,
|
736
|
+
alignmentAxis: null
|
737
|
+
} : {
|
738
|
+
mainAxis: 0,
|
739
|
+
crossAxis: 0,
|
740
|
+
alignmentAxis: null,
|
741
|
+
...rawValue
|
742
|
+
};
|
743
|
+
if (alignment && typeof alignmentAxis === 'number') {
|
744
|
+
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
745
|
+
}
|
746
|
+
return isVertical ? {
|
747
|
+
x: crossAxis * crossAxisMulti,
|
748
|
+
y: mainAxis * mainAxisMulti
|
749
|
+
} : {
|
750
|
+
x: mainAxis * mainAxisMulti,
|
751
|
+
y: crossAxis * crossAxisMulti
|
752
|
+
};
|
753
|
+
}
|
754
|
+
|
755
|
+
/**
|
756
|
+
* Modifies the placement by translating the floating element along the
|
757
|
+
* specified axes.
|
758
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
759
|
+
* object may be passed.
|
760
|
+
* @see https://floating-ui.com/docs/offset
|
761
|
+
*/
|
762
|
+
const offset = function (options) {
|
763
|
+
if (options === void 0) {
|
764
|
+
options = 0;
|
765
|
+
}
|
766
|
+
return {
|
767
|
+
name: 'offset',
|
768
|
+
options,
|
769
|
+
async fn(state) {
|
770
|
+
const {
|
771
|
+
x,
|
772
|
+
y
|
773
|
+
} = state;
|
774
|
+
const diffCoords = await convertValueToCoords(state, options);
|
775
|
+
return {
|
776
|
+
x: x + diffCoords.x,
|
777
|
+
y: y + diffCoords.y,
|
778
|
+
data: diffCoords
|
779
|
+
};
|
780
|
+
}
|
781
|
+
};
|
782
|
+
};
|
783
|
+
|
784
|
+
/**
|
785
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
786
|
+
* keep it in view when it will overflow the clipping boundary.
|
787
|
+
* @see https://floating-ui.com/docs/shift
|
788
|
+
*/
|
789
|
+
const shift = function (options) {
|
790
|
+
if (options === void 0) {
|
791
|
+
options = {};
|
792
|
+
}
|
793
|
+
return {
|
794
|
+
name: 'shift',
|
795
|
+
options,
|
796
|
+
async fn(state) {
|
797
|
+
const {
|
798
|
+
x,
|
799
|
+
y,
|
800
|
+
placement
|
801
|
+
} = state;
|
802
|
+
const {
|
803
|
+
mainAxis: checkMainAxis = true,
|
804
|
+
crossAxis: checkCrossAxis = false,
|
805
|
+
limiter = {
|
806
|
+
fn: _ref => {
|
807
|
+
let {
|
808
|
+
x,
|
809
|
+
y
|
810
|
+
} = _ref;
|
811
|
+
return {
|
812
|
+
x,
|
813
|
+
y
|
814
|
+
};
|
815
|
+
}
|
816
|
+
},
|
817
|
+
...detectOverflowOptions
|
818
|
+
} = evaluate(options, state);
|
819
|
+
const coords = {
|
820
|
+
x,
|
821
|
+
y
|
822
|
+
};
|
823
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
824
|
+
const crossAxis = getSideAxis(getSide(placement));
|
825
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
826
|
+
let mainAxisCoord = coords[mainAxis];
|
827
|
+
let crossAxisCoord = coords[crossAxis];
|
828
|
+
if (checkMainAxis) {
|
829
|
+
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
830
|
+
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
831
|
+
const min = mainAxisCoord + overflow[minSide];
|
832
|
+
const max = mainAxisCoord - overflow[maxSide];
|
833
|
+
mainAxisCoord = clamp(min, mainAxisCoord, max);
|
834
|
+
}
|
835
|
+
if (checkCrossAxis) {
|
836
|
+
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
837
|
+
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
838
|
+
const min = crossAxisCoord + overflow[minSide];
|
839
|
+
const max = crossAxisCoord - overflow[maxSide];
|
840
|
+
crossAxisCoord = clamp(min, crossAxisCoord, max);
|
841
|
+
}
|
842
|
+
const limitedCoords = limiter.fn({
|
843
|
+
...state,
|
844
|
+
[mainAxis]: mainAxisCoord,
|
845
|
+
[crossAxis]: crossAxisCoord
|
846
|
+
});
|
847
|
+
return {
|
848
|
+
...limitedCoords,
|
849
|
+
data: {
|
850
|
+
x: limitedCoords.x - x,
|
851
|
+
y: limitedCoords.y - y
|
852
|
+
}
|
853
|
+
};
|
854
|
+
}
|
855
|
+
};
|
856
|
+
};
|
857
|
+
|
858
|
+
function getNodeName(node) {
|
859
|
+
if (isNode(node)) {
|
860
|
+
return (node.nodeName || '').toLowerCase();
|
861
|
+
}
|
862
|
+
// Mocked nodes in testing environments may not be instances of Node. By
|
863
|
+
// returning `#document` an infinite loop won't occur.
|
864
|
+
// https://github.com/floating-ui/floating-ui/issues/2317
|
865
|
+
return '#document';
|
866
|
+
}
|
867
|
+
function getWindow(node) {
|
868
|
+
var _node$ownerDocument;
|
869
|
+
return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
870
|
+
}
|
871
|
+
function getDocumentElement(node) {
|
872
|
+
var _ref;
|
873
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
874
|
+
}
|
875
|
+
function isNode(value) {
|
876
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
877
|
+
}
|
878
|
+
function isElement(value) {
|
879
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
880
|
+
}
|
881
|
+
function isHTMLElement(value) {
|
882
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
883
|
+
}
|
884
|
+
function isShadowRoot(value) {
|
885
|
+
// Browsers without `ShadowRoot` support.
|
886
|
+
if (typeof ShadowRoot === 'undefined') {
|
887
|
+
return false;
|
888
|
+
}
|
889
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
890
|
+
}
|
891
|
+
function isOverflowElement(element) {
|
892
|
+
const {
|
893
|
+
overflow,
|
894
|
+
overflowX,
|
895
|
+
overflowY,
|
896
|
+
display
|
897
|
+
} = getComputedStyle$1(element);
|
898
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
899
|
+
}
|
900
|
+
function isTableElement(element) {
|
901
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
902
|
+
}
|
903
|
+
function isContainingBlock(element) {
|
904
|
+
const webkit = isWebKit();
|
905
|
+
const css = getComputedStyle$1(element);
|
906
|
+
|
907
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
908
|
+
return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
909
|
+
}
|
910
|
+
function getContainingBlock(element) {
|
911
|
+
let currentNode = getParentNode(element);
|
912
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
913
|
+
if (isContainingBlock(currentNode)) {
|
914
|
+
return currentNode;
|
915
|
+
} else {
|
916
|
+
currentNode = getParentNode(currentNode);
|
917
|
+
}
|
918
|
+
}
|
919
|
+
return null;
|
920
|
+
}
|
921
|
+
function isWebKit() {
|
922
|
+
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
923
|
+
return CSS.supports('-webkit-backdrop-filter', 'none');
|
924
|
+
}
|
925
|
+
function isLastTraversableNode(node) {
|
926
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
927
|
+
}
|
928
|
+
function getComputedStyle$1(element) {
|
929
|
+
return getWindow(element).getComputedStyle(element);
|
930
|
+
}
|
931
|
+
function getNodeScroll(element) {
|
932
|
+
if (isElement(element)) {
|
933
|
+
return {
|
934
|
+
scrollLeft: element.scrollLeft,
|
935
|
+
scrollTop: element.scrollTop
|
936
|
+
};
|
937
|
+
}
|
938
|
+
return {
|
939
|
+
scrollLeft: element.pageXOffset,
|
940
|
+
scrollTop: element.pageYOffset
|
941
|
+
};
|
942
|
+
}
|
943
|
+
function getParentNode(node) {
|
944
|
+
if (getNodeName(node) === 'html') {
|
945
|
+
return node;
|
946
|
+
}
|
947
|
+
const result =
|
948
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
949
|
+
node.assignedSlot ||
|
950
|
+
// DOM Element detected.
|
951
|
+
node.parentNode ||
|
952
|
+
// ShadowRoot detected.
|
953
|
+
isShadowRoot(node) && node.host ||
|
954
|
+
// Fallback.
|
955
|
+
getDocumentElement(node);
|
956
|
+
return isShadowRoot(result) ? result.host : result;
|
957
|
+
}
|
958
|
+
function getNearestOverflowAncestor(node) {
|
959
|
+
const parentNode = getParentNode(node);
|
960
|
+
if (isLastTraversableNode(parentNode)) {
|
961
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
962
|
+
}
|
963
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
964
|
+
return parentNode;
|
965
|
+
}
|
966
|
+
return getNearestOverflowAncestor(parentNode);
|
967
|
+
}
|
968
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
969
|
+
var _node$ownerDocument2;
|
970
|
+
if (list === void 0) {
|
971
|
+
list = [];
|
972
|
+
}
|
973
|
+
if (traverseIframes === void 0) {
|
974
|
+
traverseIframes = true;
|
975
|
+
}
|
976
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
977
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
978
|
+
const win = getWindow(scrollableAncestor);
|
979
|
+
if (isBody) {
|
980
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
981
|
+
}
|
982
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
983
|
+
}
|
984
|
+
|
985
|
+
function getCssDimensions(element) {
|
986
|
+
const css = getComputedStyle$1(element);
|
987
|
+
// In testing environments, the `width` and `height` properties are empty
|
988
|
+
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
989
|
+
let width = parseFloat(css.width) || 0;
|
990
|
+
let height = parseFloat(css.height) || 0;
|
991
|
+
const hasOffset = isHTMLElement(element);
|
992
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
993
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
994
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
995
|
+
if (shouldFallback) {
|
996
|
+
width = offsetWidth;
|
997
|
+
height = offsetHeight;
|
998
|
+
}
|
999
|
+
return {
|
1000
|
+
width,
|
1001
|
+
height,
|
1002
|
+
$: shouldFallback
|
1003
|
+
};
|
1004
|
+
}
|
1005
|
+
|
1006
|
+
function unwrapElement(element) {
|
1007
|
+
return !isElement(element) ? element.contextElement : element;
|
1008
|
+
}
|
1009
|
+
|
1010
|
+
function getScale(element) {
|
1011
|
+
const domElement = unwrapElement(element);
|
1012
|
+
if (!isHTMLElement(domElement)) {
|
1013
|
+
return createCoords(1);
|
1014
|
+
}
|
1015
|
+
const rect = domElement.getBoundingClientRect();
|
1016
|
+
const {
|
1017
|
+
width,
|
1018
|
+
height,
|
1019
|
+
$
|
1020
|
+
} = getCssDimensions(domElement);
|
1021
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
1022
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
1023
|
+
|
1024
|
+
// 0, NaN, or Infinity should always fallback to 1.
|
1025
|
+
|
1026
|
+
if (!x || !Number.isFinite(x)) {
|
1027
|
+
x = 1;
|
1028
|
+
}
|
1029
|
+
if (!y || !Number.isFinite(y)) {
|
1030
|
+
y = 1;
|
1031
|
+
}
|
1032
|
+
return {
|
1033
|
+
x,
|
1034
|
+
y
|
1035
|
+
};
|
1036
|
+
}
|
1037
|
+
|
1038
|
+
const noOffsets = /*#__PURE__*/createCoords(0);
|
1039
|
+
function getVisualOffsets(element) {
|
1040
|
+
const win = getWindow(element);
|
1041
|
+
if (!isWebKit() || !win.visualViewport) {
|
1042
|
+
return noOffsets;
|
1043
|
+
}
|
1044
|
+
return {
|
1045
|
+
x: win.visualViewport.offsetLeft,
|
1046
|
+
y: win.visualViewport.offsetTop
|
1047
|
+
};
|
1048
|
+
}
|
1049
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
1050
|
+
if (isFixed === void 0) {
|
1051
|
+
isFixed = false;
|
1052
|
+
}
|
1053
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
1054
|
+
return false;
|
1055
|
+
}
|
1056
|
+
return isFixed;
|
1057
|
+
}
|
1058
|
+
|
1059
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
1060
|
+
if (includeScale === void 0) {
|
1061
|
+
includeScale = false;
|
1062
|
+
}
|
1063
|
+
if (isFixedStrategy === void 0) {
|
1064
|
+
isFixedStrategy = false;
|
1065
|
+
}
|
1066
|
+
const clientRect = element.getBoundingClientRect();
|
1067
|
+
const domElement = unwrapElement(element);
|
1068
|
+
let scale = createCoords(1);
|
1069
|
+
if (includeScale) {
|
1070
|
+
if (offsetParent) {
|
1071
|
+
if (isElement(offsetParent)) {
|
1072
|
+
scale = getScale(offsetParent);
|
1073
|
+
}
|
1074
|
+
} else {
|
1075
|
+
scale = getScale(element);
|
1076
|
+
}
|
1077
|
+
}
|
1078
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
1079
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
1080
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
1081
|
+
let width = clientRect.width / scale.x;
|
1082
|
+
let height = clientRect.height / scale.y;
|
1083
|
+
if (domElement) {
|
1084
|
+
const win = getWindow(domElement);
|
1085
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
1086
|
+
let currentIFrame = win.frameElement;
|
1087
|
+
while (currentIFrame && offsetParent && offsetWin !== win) {
|
1088
|
+
const iframeScale = getScale(currentIFrame);
|
1089
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
1090
|
+
const css = getComputedStyle$1(currentIFrame);
|
1091
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
1092
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
1093
|
+
x *= iframeScale.x;
|
1094
|
+
y *= iframeScale.y;
|
1095
|
+
width *= iframeScale.x;
|
1096
|
+
height *= iframeScale.y;
|
1097
|
+
x += left;
|
1098
|
+
y += top;
|
1099
|
+
currentIFrame = getWindow(currentIFrame).frameElement;
|
1100
|
+
}
|
1101
|
+
}
|
1102
|
+
return rectToClientRect({
|
1103
|
+
width,
|
1104
|
+
height,
|
1105
|
+
x,
|
1106
|
+
y
|
1107
|
+
});
|
1108
|
+
}
|
1109
|
+
|
1110
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
1111
|
+
let {
|
1112
|
+
rect,
|
1113
|
+
offsetParent,
|
1114
|
+
strategy
|
1115
|
+
} = _ref;
|
1116
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
1117
|
+
const documentElement = getDocumentElement(offsetParent);
|
1118
|
+
if (offsetParent === documentElement) {
|
1119
|
+
return rect;
|
1120
|
+
}
|
1121
|
+
let scroll = {
|
1122
|
+
scrollLeft: 0,
|
1123
|
+
scrollTop: 0
|
1124
|
+
};
|
1125
|
+
let scale = createCoords(1);
|
1126
|
+
const offsets = createCoords(0);
|
1127
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
1128
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
1129
|
+
scroll = getNodeScroll(offsetParent);
|
1130
|
+
}
|
1131
|
+
if (isHTMLElement(offsetParent)) {
|
1132
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
1133
|
+
scale = getScale(offsetParent);
|
1134
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
1135
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
1136
|
+
}
|
1137
|
+
}
|
1138
|
+
return {
|
1139
|
+
width: rect.width * scale.x,
|
1140
|
+
height: rect.height * scale.y,
|
1141
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
1142
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
1143
|
+
};
|
1144
|
+
}
|
1145
|
+
|
1146
|
+
function getClientRects(element) {
|
1147
|
+
return Array.from(element.getClientRects());
|
1148
|
+
}
|
1149
|
+
|
1150
|
+
function getWindowScrollBarX(element) {
|
1151
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
1152
|
+
// incorrect for RTL.
|
1153
|
+
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
1154
|
+
}
|
1155
|
+
|
1156
|
+
// Gets the entire size of the scrollable document area, even extending outside
|
1157
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
1158
|
+
function getDocumentRect(element) {
|
1159
|
+
const html = getDocumentElement(element);
|
1160
|
+
const scroll = getNodeScroll(element);
|
1161
|
+
const body = element.ownerDocument.body;
|
1162
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
1163
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
1164
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
1165
|
+
const y = -scroll.scrollTop;
|
1166
|
+
if (getComputedStyle$1(body).direction === 'rtl') {
|
1167
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
1168
|
+
}
|
1169
|
+
return {
|
1170
|
+
width,
|
1171
|
+
height,
|
1172
|
+
x,
|
1173
|
+
y
|
1174
|
+
};
|
1175
|
+
}
|
1176
|
+
|
1177
|
+
function getViewportRect(element, strategy) {
|
1178
|
+
const win = getWindow(element);
|
1179
|
+
const html = getDocumentElement(element);
|
1180
|
+
const visualViewport = win.visualViewport;
|
1181
|
+
let width = html.clientWidth;
|
1182
|
+
let height = html.clientHeight;
|
1183
|
+
let x = 0;
|
1184
|
+
let y = 0;
|
1185
|
+
if (visualViewport) {
|
1186
|
+
width = visualViewport.width;
|
1187
|
+
height = visualViewport.height;
|
1188
|
+
const visualViewportBased = isWebKit();
|
1189
|
+
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
1190
|
+
x = visualViewport.offsetLeft;
|
1191
|
+
y = visualViewport.offsetTop;
|
1192
|
+
}
|
1193
|
+
}
|
1194
|
+
return {
|
1195
|
+
width,
|
1196
|
+
height,
|
1197
|
+
x,
|
1198
|
+
y
|
1199
|
+
};
|
1200
|
+
}
|
1201
|
+
|
1202
|
+
// Returns the inner client rect, subtracting scrollbars if present.
|
1203
|
+
function getInnerBoundingClientRect(element, strategy) {
|
1204
|
+
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
1205
|
+
const top = clientRect.top + element.clientTop;
|
1206
|
+
const left = clientRect.left + element.clientLeft;
|
1207
|
+
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
1208
|
+
const width = element.clientWidth * scale.x;
|
1209
|
+
const height = element.clientHeight * scale.y;
|
1210
|
+
const x = left * scale.x;
|
1211
|
+
const y = top * scale.y;
|
1212
|
+
return {
|
1213
|
+
width,
|
1214
|
+
height,
|
1215
|
+
x,
|
1216
|
+
y
|
1217
|
+
};
|
1218
|
+
}
|
1219
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
1220
|
+
let rect;
|
1221
|
+
if (clippingAncestor === 'viewport') {
|
1222
|
+
rect = getViewportRect(element, strategy);
|
1223
|
+
} else if (clippingAncestor === 'document') {
|
1224
|
+
rect = getDocumentRect(getDocumentElement(element));
|
1225
|
+
} else if (isElement(clippingAncestor)) {
|
1226
|
+
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
1227
|
+
} else {
|
1228
|
+
const visualOffsets = getVisualOffsets(element);
|
1229
|
+
rect = {
|
1230
|
+
...clippingAncestor,
|
1231
|
+
x: clippingAncestor.x - visualOffsets.x,
|
1232
|
+
y: clippingAncestor.y - visualOffsets.y
|
1233
|
+
};
|
1234
|
+
}
|
1235
|
+
return rectToClientRect(rect);
|
1236
|
+
}
|
1237
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
1238
|
+
const parentNode = getParentNode(element);
|
1239
|
+
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
1240
|
+
return false;
|
1241
|
+
}
|
1242
|
+
return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
1243
|
+
}
|
1244
|
+
|
1245
|
+
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
1246
|
+
// clipping (or hiding) child elements. This returns all clipping ancestors
|
1247
|
+
// of the given element up the tree.
|
1248
|
+
function getClippingElementAncestors(element, cache) {
|
1249
|
+
const cachedResult = cache.get(element);
|
1250
|
+
if (cachedResult) {
|
1251
|
+
return cachedResult;
|
1252
|
+
}
|
1253
|
+
let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
1254
|
+
let currentContainingBlockComputedStyle = null;
|
1255
|
+
const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
|
1256
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
1257
|
+
|
1258
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
1259
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
1260
|
+
const computedStyle = getComputedStyle$1(currentNode);
|
1261
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
1262
|
+
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
1263
|
+
currentContainingBlockComputedStyle = null;
|
1264
|
+
}
|
1265
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
1266
|
+
if (shouldDropCurrentNode) {
|
1267
|
+
// Drop non-containing blocks.
|
1268
|
+
result = result.filter(ancestor => ancestor !== currentNode);
|
1269
|
+
} else {
|
1270
|
+
// Record last containing block for next iteration.
|
1271
|
+
currentContainingBlockComputedStyle = computedStyle;
|
1272
|
+
}
|
1273
|
+
currentNode = getParentNode(currentNode);
|
1274
|
+
}
|
1275
|
+
cache.set(element, result);
|
1276
|
+
return result;
|
1277
|
+
}
|
1278
|
+
|
1279
|
+
// Gets the maximum area that the element is visible in due to any number of
|
1280
|
+
// clipping ancestors.
|
1281
|
+
function getClippingRect(_ref) {
|
1282
|
+
let {
|
1283
|
+
element,
|
1284
|
+
boundary,
|
1285
|
+
rootBoundary,
|
1286
|
+
strategy
|
1287
|
+
} = _ref;
|
1288
|
+
const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
1289
|
+
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
1290
|
+
const firstClippingAncestor = clippingAncestors[0];
|
1291
|
+
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
1292
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
1293
|
+
accRect.top = max(rect.top, accRect.top);
|
1294
|
+
accRect.right = min(rect.right, accRect.right);
|
1295
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
1296
|
+
accRect.left = max(rect.left, accRect.left);
|
1297
|
+
return accRect;
|
1298
|
+
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
1299
|
+
return {
|
1300
|
+
width: clippingRect.right - clippingRect.left,
|
1301
|
+
height: clippingRect.bottom - clippingRect.top,
|
1302
|
+
x: clippingRect.left,
|
1303
|
+
y: clippingRect.top
|
1304
|
+
};
|
1305
|
+
}
|
1306
|
+
|
1307
|
+
function getDimensions(element) {
|
1308
|
+
return getCssDimensions(element);
|
1309
|
+
}
|
1310
|
+
|
1311
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
1312
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
1313
|
+
const documentElement = getDocumentElement(offsetParent);
|
1314
|
+
const isFixed = strategy === 'fixed';
|
1315
|
+
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
1316
|
+
let scroll = {
|
1317
|
+
scrollLeft: 0,
|
1318
|
+
scrollTop: 0
|
1319
|
+
};
|
1320
|
+
const offsets = createCoords(0);
|
1321
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
1322
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
1323
|
+
scroll = getNodeScroll(offsetParent);
|
1324
|
+
}
|
1325
|
+
if (isOffsetParentAnElement) {
|
1326
|
+
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
1327
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
1328
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
1329
|
+
} else if (documentElement) {
|
1330
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
1331
|
+
}
|
1332
|
+
}
|
1333
|
+
return {
|
1334
|
+
x: rect.left + scroll.scrollLeft - offsets.x,
|
1335
|
+
y: rect.top + scroll.scrollTop - offsets.y,
|
1336
|
+
width: rect.width,
|
1337
|
+
height: rect.height
|
1338
|
+
};
|
1339
|
+
}
|
1340
|
+
|
1341
|
+
function getTrueOffsetParent(element, polyfill) {
|
1342
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
|
1343
|
+
return null;
|
1344
|
+
}
|
1345
|
+
if (polyfill) {
|
1346
|
+
return polyfill(element);
|
1347
|
+
}
|
1348
|
+
return element.offsetParent;
|
1349
|
+
}
|
1350
|
+
|
1351
|
+
// Gets the closest ancestor positioned element. Handles some edge cases,
|
1352
|
+
// such as table ancestors and cross browser bugs.
|
1353
|
+
function getOffsetParent(element, polyfill) {
|
1354
|
+
const window = getWindow(element);
|
1355
|
+
if (!isHTMLElement(element)) {
|
1356
|
+
return window;
|
1357
|
+
}
|
1358
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
1359
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
1360
|
+
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
1361
|
+
}
|
1362
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
|
1363
|
+
return window;
|
1364
|
+
}
|
1365
|
+
return offsetParent || getContainingBlock(element) || window;
|
1366
|
+
}
|
1367
|
+
|
1368
|
+
const getElementRects = async function (_ref) {
|
1369
|
+
let {
|
1370
|
+
reference,
|
1371
|
+
floating,
|
1372
|
+
strategy
|
1373
|
+
} = _ref;
|
1374
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
1375
|
+
const getDimensionsFn = this.getDimensions;
|
1376
|
+
return {
|
1377
|
+
reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),
|
1378
|
+
floating: {
|
1379
|
+
x: 0,
|
1380
|
+
y: 0,
|
1381
|
+
...(await getDimensionsFn(floating))
|
1382
|
+
}
|
1383
|
+
};
|
1384
|
+
};
|
1385
|
+
|
1386
|
+
function isRTL(element) {
|
1387
|
+
return getComputedStyle$1(element).direction === 'rtl';
|
1388
|
+
}
|
1389
|
+
|
1390
|
+
const platform = {
|
1391
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
1392
|
+
getDocumentElement,
|
1393
|
+
getClippingRect,
|
1394
|
+
getOffsetParent,
|
1395
|
+
getElementRects,
|
1396
|
+
getClientRects,
|
1397
|
+
getDimensions,
|
1398
|
+
getScale,
|
1399
|
+
isElement,
|
1400
|
+
isRTL
|
1401
|
+
};
|
1402
|
+
|
1403
|
+
// https://samthor.au/2021/observing-dom/
|
1404
|
+
function observeMove(element, onMove) {
|
1405
|
+
let io = null;
|
1406
|
+
let timeoutId;
|
1407
|
+
const root = getDocumentElement(element);
|
1408
|
+
function cleanup() {
|
1409
|
+
clearTimeout(timeoutId);
|
1410
|
+
io && io.disconnect();
|
1411
|
+
io = null;
|
1412
|
+
}
|
1413
|
+
function refresh(skip, threshold) {
|
1414
|
+
if (skip === void 0) {
|
1415
|
+
skip = false;
|
1416
|
+
}
|
1417
|
+
if (threshold === void 0) {
|
1418
|
+
threshold = 1;
|
1419
|
+
}
|
1420
|
+
cleanup();
|
1421
|
+
const {
|
1422
|
+
left,
|
1423
|
+
top,
|
1424
|
+
width,
|
1425
|
+
height
|
1426
|
+
} = element.getBoundingClientRect();
|
1427
|
+
if (!skip) {
|
1428
|
+
onMove();
|
1429
|
+
}
|
1430
|
+
if (!width || !height) {
|
1431
|
+
return;
|
1432
|
+
}
|
1433
|
+
const insetTop = floor(top);
|
1434
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
1435
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
1436
|
+
const insetLeft = floor(left);
|
1437
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
1438
|
+
const options = {
|
1439
|
+
rootMargin,
|
1440
|
+
threshold: max(0, min(1, threshold)) || 1
|
1441
|
+
};
|
1442
|
+
let isFirstUpdate = true;
|
1443
|
+
function handleObserve(entries) {
|
1444
|
+
const ratio = entries[0].intersectionRatio;
|
1445
|
+
if (ratio !== threshold) {
|
1446
|
+
if (!isFirstUpdate) {
|
1447
|
+
return refresh();
|
1448
|
+
}
|
1449
|
+
if (!ratio) {
|
1450
|
+
timeoutId = setTimeout(() => {
|
1451
|
+
refresh(false, 1e-7);
|
1452
|
+
}, 100);
|
1453
|
+
} else {
|
1454
|
+
refresh(false, ratio);
|
1455
|
+
}
|
1456
|
+
}
|
1457
|
+
isFirstUpdate = false;
|
1458
|
+
}
|
1459
|
+
|
1460
|
+
// Older browsers don't support a `document` as the root and will throw an
|
1461
|
+
// error.
|
1462
|
+
try {
|
1463
|
+
io = new IntersectionObserver(handleObserve, {
|
1464
|
+
...options,
|
1465
|
+
// Handle <iframe>s
|
1466
|
+
root: root.ownerDocument
|
1467
|
+
});
|
1468
|
+
} catch (e) {
|
1469
|
+
io = new IntersectionObserver(handleObserve, options);
|
1470
|
+
}
|
1471
|
+
io.observe(element);
|
1472
|
+
}
|
1473
|
+
refresh(true);
|
1474
|
+
return cleanup;
|
1475
|
+
}
|
1476
|
+
|
1477
|
+
/**
|
1478
|
+
* Automatically updates the position of the floating element when necessary.
|
1479
|
+
* Should only be called when the floating element is mounted on the DOM or
|
1480
|
+
* visible on the screen.
|
1481
|
+
* @returns cleanup function that should be invoked when the floating element is
|
1482
|
+
* removed from the DOM or hidden from the screen.
|
1483
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
1484
|
+
*/
|
1485
|
+
function autoUpdate(reference, floating, update, options) {
|
1486
|
+
if (options === void 0) {
|
1487
|
+
options = {};
|
1488
|
+
}
|
1489
|
+
const {
|
1490
|
+
ancestorScroll = true,
|
1491
|
+
ancestorResize = true,
|
1492
|
+
elementResize = typeof ResizeObserver === 'function',
|
1493
|
+
layoutShift = typeof IntersectionObserver === 'function',
|
1494
|
+
animationFrame = false
|
1495
|
+
} = options;
|
1496
|
+
const referenceEl = unwrapElement(reference);
|
1497
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
1498
|
+
ancestors.forEach(ancestor => {
|
1499
|
+
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
1500
|
+
passive: true
|
1501
|
+
});
|
1502
|
+
ancestorResize && ancestor.addEventListener('resize', update);
|
1503
|
+
});
|
1504
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
1505
|
+
let reobserveFrame = -1;
|
1506
|
+
let resizeObserver = null;
|
1507
|
+
if (elementResize) {
|
1508
|
+
resizeObserver = new ResizeObserver(_ref => {
|
1509
|
+
let [firstEntry] = _ref;
|
1510
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
1511
|
+
// Prevent update loops when using the `size` middleware.
|
1512
|
+
// https://github.com/floating-ui/floating-ui/issues/1740
|
1513
|
+
resizeObserver.unobserve(floating);
|
1514
|
+
cancelAnimationFrame(reobserveFrame);
|
1515
|
+
reobserveFrame = requestAnimationFrame(() => {
|
1516
|
+
resizeObserver && resizeObserver.observe(floating);
|
1517
|
+
});
|
1518
|
+
}
|
1519
|
+
update();
|
1520
|
+
});
|
1521
|
+
if (referenceEl && !animationFrame) {
|
1522
|
+
resizeObserver.observe(referenceEl);
|
1523
|
+
}
|
1524
|
+
resizeObserver.observe(floating);
|
1525
|
+
}
|
1526
|
+
let frameId;
|
1527
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
1528
|
+
if (animationFrame) {
|
1529
|
+
frameLoop();
|
1530
|
+
}
|
1531
|
+
function frameLoop() {
|
1532
|
+
const nextRefRect = getBoundingClientRect(reference);
|
1533
|
+
if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
|
1534
|
+
update();
|
1535
|
+
}
|
1536
|
+
prevRefRect = nextRefRect;
|
1537
|
+
frameId = requestAnimationFrame(frameLoop);
|
1538
|
+
}
|
1539
|
+
update();
|
1540
|
+
return () => {
|
1541
|
+
ancestors.forEach(ancestor => {
|
1542
|
+
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
1543
|
+
ancestorResize && ancestor.removeEventListener('resize', update);
|
1544
|
+
});
|
1545
|
+
cleanupIo && cleanupIo();
|
1546
|
+
resizeObserver && resizeObserver.disconnect();
|
1547
|
+
resizeObserver = null;
|
1548
|
+
if (animationFrame) {
|
1549
|
+
cancelAnimationFrame(frameId);
|
1550
|
+
}
|
1551
|
+
};
|
1552
|
+
}
|
1553
|
+
|
1554
|
+
/**
|
1555
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
1556
|
+
* next to a reference element when it is given a certain CSS positioning
|
1557
|
+
* strategy.
|
1558
|
+
*/
|
1559
|
+
const computePosition = (reference, floating, options) => {
|
1560
|
+
// This caches the expensive `getClippingElementAncestors` function so that
|
1561
|
+
// multiple lifecycle resets re-use the same result. It only lives for a
|
1562
|
+
// single call. If other functions become expensive, we can add them as well.
|
1563
|
+
const cache = new Map();
|
1564
|
+
const mergedOptions = {
|
1565
|
+
platform,
|
1566
|
+
...options
|
1567
|
+
};
|
1568
|
+
const platformWithCache = {
|
1569
|
+
...mergedOptions.platform,
|
1570
|
+
_c: cache
|
1571
|
+
};
|
1572
|
+
return computePosition$1(reference, floating, {
|
1573
|
+
...mergedOptions,
|
1574
|
+
platform: platformWithCache
|
1575
|
+
});
|
1576
|
+
};
|
1577
|
+
|
1578
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
1579
|
+
function offsetParent(element) {
|
1580
|
+
return offsetParentPolyfill(element);
|
1581
|
+
}
|
1582
|
+
function flatTreeParent(element) {
|
1583
|
+
if (element.assignedSlot) {
|
1584
|
+
return element.assignedSlot;
|
1585
|
+
}
|
1586
|
+
if (element.parentNode instanceof ShadowRoot) {
|
1587
|
+
return element.parentNode.host;
|
1588
|
+
}
|
1589
|
+
return element.parentNode;
|
1590
|
+
}
|
1591
|
+
function offsetParentPolyfill(element) {
|
1592
|
+
// Do an initial walk to check for display:none ancestors.
|
1593
|
+
for (let ancestor = element; ancestor; ancestor = flatTreeParent(ancestor)) {
|
1594
|
+
if (!(ancestor instanceof Element)) {
|
1595
|
+
continue;
|
1596
|
+
}
|
1597
|
+
if (getComputedStyle(ancestor).display === 'none') {
|
1598
|
+
return null;
|
1599
|
+
}
|
1600
|
+
}
|
1601
|
+
for (let ancestor = flatTreeParent(element); ancestor; ancestor = flatTreeParent(ancestor)) {
|
1602
|
+
if (!(ancestor instanceof Element)) {
|
1603
|
+
continue;
|
1604
|
+
}
|
1605
|
+
const style = getComputedStyle(ancestor);
|
1606
|
+
// Display:contents nodes aren't in the layout tree so they should be skipped.
|
1607
|
+
if (style.display === 'contents') {
|
1608
|
+
continue;
|
1609
|
+
}
|
1610
|
+
if (style.position !== 'static' || style.filter !== 'none') {
|
1611
|
+
return ancestor;
|
1612
|
+
}
|
1613
|
+
if (ancestor.tagName === 'BODY') {
|
1614
|
+
return ancestor;
|
1615
|
+
}
|
1616
|
+
}
|
1617
|
+
return null;
|
1618
|
+
}
|
1619
|
+
|
1620
|
+
/*!
|
1621
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1622
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
1623
|
+
* v1.11.0
|
1624
|
+
*/
|
1625
|
+
(function setUpFloatingUiForShadowDomPositioning() {
|
1626
|
+
{
|
1627
|
+
const originalGetOffsetParent = platform.getOffsetParent;
|
1628
|
+
platform.getOffsetParent = (element) => originalGetOffsetParent(element, offsetParent);
|
1629
|
+
}
|
1630
|
+
})();
|
1631
|
+
/**
|
1632
|
+
* Positions the floating element relative to the reference element.
|
1633
|
+
*
|
1634
|
+
* **Note:** exported for testing purposes only
|
1635
|
+
*
|
1636
|
+
* @param root0
|
1637
|
+
* @param root0.referenceEl
|
1638
|
+
* @param root0.floatingEl
|
1639
|
+
* @param root0.overlayPositioning
|
1640
|
+
* @param root0.placement
|
1641
|
+
* @param root0.flipDisabled
|
1642
|
+
* @param root0.flipPlacements
|
1643
|
+
* @param root0.offsetDistance
|
1644
|
+
* @param root0.offsetSkidding
|
1645
|
+
* @param root0.arrowEl
|
1646
|
+
* @param root0.type
|
1647
|
+
* @param component
|
1648
|
+
* @param root0.referenceEl.referenceEl
|
1649
|
+
* @param root0.referenceEl.floatingEl
|
1650
|
+
* @param root0.referenceEl.overlayPositioning
|
1651
|
+
* @param root0.referenceEl.placement
|
1652
|
+
* @param root0.referenceEl.flipDisabled
|
1653
|
+
* @param root0.referenceEl.flipPlacements
|
1654
|
+
* @param root0.referenceEl.offsetDistance
|
1655
|
+
* @param root0.referenceEl.offsetSkidding
|
1656
|
+
* @param root0.referenceEl.arrowEl
|
1657
|
+
* @param root0.referenceEl.type
|
1658
|
+
* @param component.referenceEl
|
1659
|
+
* @param component.floatingEl
|
1660
|
+
* @param component.overlayPositioning
|
1661
|
+
* @param component.placement
|
1662
|
+
* @param component.flipDisabled
|
1663
|
+
* @param component.flipPlacements
|
1664
|
+
* @param component.offsetDistance
|
1665
|
+
* @param component.offsetSkidding
|
1666
|
+
* @param component.arrowEl
|
1667
|
+
* @param component.type
|
1668
|
+
*/
|
1669
|
+
const positionFloatingUI =
|
1670
|
+
/* we export arrow function to allow us to spy on it during testing */
|
1671
|
+
async (component, { referenceEl, floatingEl, overlayPositioning = "absolute", placement, flipDisabled, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type, }) => {
|
1672
|
+
if (!referenceEl || !floatingEl) {
|
1673
|
+
return null;
|
1674
|
+
}
|
1675
|
+
const { x, y, placement: effectivePlacement, strategy: position, middlewareData, } = await computePosition(referenceEl, floatingEl, {
|
1676
|
+
strategy: overlayPositioning,
|
1677
|
+
placement: placement === "auto" || placement === "auto-start" || placement === "auto-end"
|
1678
|
+
? undefined
|
1679
|
+
: getEffectivePlacement(floatingEl, placement),
|
1680
|
+
middleware: getMiddleware({
|
1681
|
+
placement,
|
1682
|
+
flipDisabled,
|
1683
|
+
flipPlacements,
|
1684
|
+
offsetDistance,
|
1685
|
+
offsetSkidding,
|
1686
|
+
arrowEl,
|
1687
|
+
type,
|
1688
|
+
}),
|
1689
|
+
});
|
1690
|
+
if (arrowEl && middlewareData.arrow) {
|
1691
|
+
const { x, y } = middlewareData.arrow;
|
1692
|
+
const side = effectivePlacement.split("-")[0];
|
1693
|
+
const alignment = x != null ? "left" : "top";
|
1694
|
+
const transform = ARROW_CSS_TRANSFORM[side];
|
1695
|
+
const reset = { left: "", top: "", bottom: "", right: "" };
|
1696
|
+
if ("floatingLayout" in component) {
|
1697
|
+
component.floatingLayout = side === "left" || side === "right" ? "horizontal" : "vertical";
|
1698
|
+
}
|
1699
|
+
Object.assign(arrowEl.style, {
|
1700
|
+
...reset,
|
1701
|
+
[alignment]: `${alignment == "left" ? x : y}px`,
|
1702
|
+
[side]: "100%",
|
1703
|
+
transform,
|
1704
|
+
});
|
1705
|
+
}
|
1706
|
+
const referenceHidden = middlewareData.hide?.referenceHidden;
|
1707
|
+
const visibility = referenceHidden ? "hidden" : null;
|
1708
|
+
const pointerEvents = visibility ? "none" : null;
|
1709
|
+
floatingEl.setAttribute(placementDataAttribute, effectivePlacement);
|
1710
|
+
const transform = `translate(${Math.round(x)}px,${Math.round(y)}px)`;
|
1711
|
+
Object.assign(floatingEl.style, {
|
1712
|
+
visibility,
|
1713
|
+
pointerEvents,
|
1714
|
+
position,
|
1715
|
+
top: "0",
|
1716
|
+
left: "0",
|
1717
|
+
transform,
|
1718
|
+
});
|
1719
|
+
};
|
1720
|
+
/**
|
1721
|
+
* Exported for testing purposes only
|
1722
|
+
*/
|
1723
|
+
const placementDataAttribute = "data-placement";
|
1724
|
+
/**
|
1725
|
+
* Exported for testing purposes only
|
1726
|
+
*/
|
1727
|
+
const repositionDebounceTimeout = 100;
|
1728
|
+
const effectivePlacements = [
|
1729
|
+
"top",
|
1730
|
+
"bottom",
|
1731
|
+
"right",
|
1732
|
+
"left",
|
1733
|
+
"top-start",
|
1734
|
+
"top-end",
|
1735
|
+
"bottom-start",
|
1736
|
+
"bottom-end",
|
1737
|
+
"right-start",
|
1738
|
+
"right-end",
|
1739
|
+
"left-start",
|
1740
|
+
"left-end",
|
1741
|
+
];
|
1742
|
+
const defaultMenuPlacement = "bottom-start";
|
1743
|
+
const FloatingCSS = {
|
1744
|
+
animation: "calcite-floating-ui-anim",
|
1745
|
+
animationActive: "calcite-floating-ui-anim--active",
|
1746
|
+
};
|
1747
|
+
function getMiddleware({ placement, flipDisabled, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type, }) {
|
1748
|
+
const defaultMiddleware = [shift(), hide()];
|
1749
|
+
if (type === "menu") {
|
1750
|
+
return [
|
1751
|
+
...defaultMiddleware,
|
1752
|
+
flip({
|
1753
|
+
fallbackPlacements: flipPlacements || ["top-start", "top", "top-end", "bottom-start", "bottom", "bottom-end"],
|
1754
|
+
}),
|
1755
|
+
];
|
1756
|
+
}
|
1757
|
+
if (type === "popover" || type === "tooltip") {
|
1758
|
+
const middleware = [
|
1759
|
+
...defaultMiddleware,
|
1760
|
+
offset({
|
1761
|
+
mainAxis: typeof offsetDistance === "number" ? offsetDistance : 0,
|
1762
|
+
crossAxis: typeof offsetSkidding === "number" ? offsetSkidding : 0,
|
1763
|
+
}),
|
1764
|
+
];
|
1765
|
+
if (placement === "auto" || placement === "auto-start" || placement === "auto-end") {
|
1766
|
+
middleware.push(autoPlacement({ alignment: placement === "auto-start" ? "start" : placement === "auto-end" ? "end" : null }));
|
1767
|
+
}
|
1768
|
+
else if (!flipDisabled) {
|
1769
|
+
middleware.push(flip(flipPlacements ? { fallbackPlacements: flipPlacements } : {}));
|
1770
|
+
}
|
1771
|
+
if (arrowEl) {
|
1772
|
+
middleware.push(arrow({
|
1773
|
+
element: arrowEl,
|
1774
|
+
}));
|
1775
|
+
}
|
1776
|
+
return middleware;
|
1777
|
+
}
|
1778
|
+
return [];
|
1779
|
+
}
|
1780
|
+
function filterComputedPlacements(placements, el) {
|
1781
|
+
const filteredPlacements = placements.filter((placement) => effectivePlacements.includes(placement));
|
1782
|
+
if (filteredPlacements.length !== placements.length) {
|
1783
|
+
console.warn(`${el.tagName}: Invalid value found in: flipPlacements. Try any of these: ${effectivePlacements
|
1784
|
+
.map((placement) => `"${placement}"`)
|
1785
|
+
.join(", ")
|
1786
|
+
.trim()}`, { el });
|
1787
|
+
}
|
1788
|
+
return filteredPlacements;
|
1789
|
+
}
|
1790
|
+
function getEffectivePlacement(floatingEl, placement) {
|
1791
|
+
const placements = ["left", "right"];
|
1792
|
+
if (getElementDir(floatingEl) === "rtl") {
|
1793
|
+
placements.reverse();
|
1794
|
+
}
|
1795
|
+
return placement.replace(/leading/gi, placements[0]).replace(/trailing/gi, placements[1]);
|
1796
|
+
}
|
1797
|
+
/**
|
1798
|
+
* Convenience function to manage `reposition` calls for FloatingUIComponents that use `positionFloatingUI.
|
1799
|
+
*
|
1800
|
+
* Note: this is not needed for components that use `calcite-popover`.
|
1801
|
+
*
|
1802
|
+
* @param component - A floating-ui component.
|
1803
|
+
* @param options - Reposition parameters.
|
1804
|
+
* @param options.referenceEl - The `referenceElement` used to position the component according to its `placement` value.
|
1805
|
+
* @param options.floatingEl - The `floatingElement` containing the floating ui.
|
1806
|
+
* @param options.overlayPositioning - type of positioning to use for the overlaid content.
|
1807
|
+
* @param options.placement - Determines where the component will be positioned relative to the `referenceElement`.
|
1808
|
+
* @param options.flipDisabled - Prevents flipping the component's placement when overlapping its `referenceElement`.
|
1809
|
+
* @param options.flipPlacements - Defines the available placements that can be used when a flip occurs.
|
1810
|
+
* @param options.offsetDistance - Offsets the position of the popover away from the `referenceElement`.
|
1811
|
+
* @param options.offsetSkidding - Offsets the position of the component along the `referenceElement`.
|
1812
|
+
* @param options.arrowEl - A customizable arrow element.
|
1813
|
+
* @param options.type - The type of floating UI.
|
1814
|
+
* @param delayed - Reposition the component after a delay.
|
1815
|
+
* @returns {Promise<void>}
|
1816
|
+
*/
|
1817
|
+
async function reposition(component, options, delayed = false) {
|
1818
|
+
const positionFunction = delayed ? getDebouncedReposition(component) : positionFloatingUI;
|
1819
|
+
return positionFunction(component, options);
|
1820
|
+
}
|
1821
|
+
function getDebouncedReposition(component) {
|
1822
|
+
let debounced = componentToDebouncedRepositionMap.get(component);
|
1823
|
+
if (debounced) {
|
1824
|
+
return debounced;
|
1825
|
+
}
|
1826
|
+
debounced = debounce(positionFloatingUI, repositionDebounceTimeout, {
|
1827
|
+
leading: true,
|
1828
|
+
maxWait: repositionDebounceTimeout,
|
1829
|
+
});
|
1830
|
+
componentToDebouncedRepositionMap.set(component, debounced);
|
1831
|
+
return debounced;
|
1832
|
+
}
|
1833
|
+
const ARROW_CSS_TRANSFORM = {
|
1834
|
+
top: "",
|
1835
|
+
left: "rotate(-90deg)",
|
1836
|
+
bottom: "rotate(180deg)",
|
1837
|
+
right: "rotate(90deg)",
|
1838
|
+
};
|
1839
|
+
/**
|
1840
|
+
* Exported for testing purposes only
|
1841
|
+
*
|
1842
|
+
* @internal
|
1843
|
+
*/
|
1844
|
+
const cleanupMap = new WeakMap();
|
1845
|
+
const componentToDebouncedRepositionMap = new WeakMap();
|
1846
|
+
/**
|
1847
|
+
* Helper to set up floating element interactions on connectedCallback.
|
1848
|
+
*
|
1849
|
+
* @param component - A floating-ui component.
|
1850
|
+
* @param referenceEl - The `referenceElement` used to position the component according to its `placement` value.
|
1851
|
+
* @param floatingEl - The `floatingElement` containing the floating ui.
|
1852
|
+
*/
|
1853
|
+
function connectFloatingUI(component, referenceEl, floatingEl) {
|
1854
|
+
if (!floatingEl || !referenceEl) {
|
1855
|
+
return;
|
1856
|
+
}
|
1857
|
+
disconnectFloatingUI(component, referenceEl, floatingEl);
|
1858
|
+
Object.assign(floatingEl.style, {
|
1859
|
+
visibility: "hidden",
|
1860
|
+
pointerEvents: "none",
|
1861
|
+
// initial positioning based on https://floating-ui.com/docs/computePosition#initial-layout
|
1862
|
+
position: component.overlayPositioning,
|
1863
|
+
top: "0",
|
1864
|
+
left: "0",
|
1865
|
+
});
|
1866
|
+
const runAutoUpdate = autoUpdate
|
1867
|
+
;
|
1868
|
+
cleanupMap.set(component, runAutoUpdate(referenceEl, floatingEl, () => component.reposition()));
|
1869
|
+
}
|
1870
|
+
/**
|
1871
|
+
* Helper to tear down floating element interactions on disconnectedCallback.
|
1872
|
+
*
|
1873
|
+
* @param component - A floating-ui component.
|
1874
|
+
* @param referenceEl - The `referenceElement` used to position the component according to its `placement` value.
|
1875
|
+
* @param floatingEl - The `floatingElement` containing the floating ui.
|
1876
|
+
*/
|
1877
|
+
function disconnectFloatingUI(component, referenceEl, floatingEl) {
|
1878
|
+
if (!floatingEl || !referenceEl) {
|
1879
|
+
return;
|
1880
|
+
}
|
1881
|
+
cleanupMap.get(component)?.();
|
1882
|
+
cleanupMap.delete(component);
|
1883
|
+
componentToDebouncedRepositionMap.get(component)?.cancel();
|
1884
|
+
componentToDebouncedRepositionMap.delete(component);
|
1885
|
+
}
|
1886
|
+
const visiblePointerSize = 4;
|
1887
|
+
/**
|
1888
|
+
* Default offset the position of the floating element away from the reference element.
|
1889
|
+
*
|
1890
|
+
* @default 6
|
1891
|
+
*/
|
1892
|
+
const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePointerSize));
|
1893
|
+
|
1894
|
+
export { FloatingCSS as F, disconnectFloatingUI as a, defaultOffsetDistance as b, connectFloatingUI as c, defaultMenuPlacement as d, filterComputedPlacements as f, reposition as r };
|