@esri/solutions-components 0.10.27 → 0.10.28
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/ExpandToggle-2cdd9a8e.js +115 -0
- package/dist/cjs/FloatingArrow-91a71a80.js +48 -0
- package/dist/cjs/Heading-a3e36113.js +25 -0
- package/dist/cjs/Validation-55fc2417.js +20 -0
- package/dist/cjs/app-globals-3ff4b752.js +67 -0
- package/dist/cjs/ar-76c21e64.js +106 -0
- package/dist/cjs/arcgis-login.cjs.entry.js +1 -1
- package/dist/cjs/array-286e5a3b.js +17 -0
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
- package/dist/cjs/bg-14c9b066.js +84 -0
- package/dist/cjs/browser-333a21c5.js +35 -0
- package/dist/cjs/bs-af03a828.js +53 -0
- package/dist/cjs/buffer-tools_3.cjs.entry.js +9 -9
- package/dist/cjs/ca-ae8e24ac.js +73 -0
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +20 -20
- package/dist/cjs/calcite-action-bar.cjs.entry.js +17 -20
- package/dist/cjs/calcite-action-group.cjs.entry.js +18 -16
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js +27 -24
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +20 -21
- package/dist/cjs/calcite-action_2.cjs.entry.js +32 -30
- package/dist/cjs/calcite-alert_5.cjs.entry.js +25 -27
- package/dist/cjs/calcite-avatar.cjs.entry.js +10 -10
- package/dist/cjs/calcite-block-section.cjs.entry.js +12 -12
- package/dist/cjs/calcite-block_5.cjs.entry.js +45 -47
- package/dist/cjs/calcite-button.cjs.entry.js +24 -22
- package/dist/cjs/calcite-card-group.cjs.entry.js +9 -15
- package/dist/cjs/calcite-card.cjs.entry.js +50 -31
- package/dist/cjs/calcite-carousel_2.cjs.entry.js +92 -37
- package/dist/cjs/calcite-checkbox.cjs.entry.js +15 -17
- package/dist/cjs/calcite-chip-group.cjs.entry.js +8 -12
- package/dist/cjs/calcite-chip_2.cjs.entry.js +22 -26
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +37 -20
- package/dist/cjs/calcite-color-picker.cjs.entry.js +15 -17
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +36 -42
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +16 -22
- package/dist/cjs/calcite-dialog.cjs.entry.js +20 -23
- package/dist/cjs/calcite-dropdown_2.cjs.entry.js +50 -51
- package/dist/cjs/calcite-fab.cjs.entry.js +9 -15
- package/dist/cjs/calcite-filter_5.cjs.entry.js +58 -61
- package/dist/cjs/calcite-flow_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-graph_2.cjs.entry.js +23 -25
- package/dist/cjs/calcite-icon_2.cjs.entry.js +24 -23
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +17 -19
- package/dist/cjs/calcite-input-number.cjs.entry.js +31 -33
- package/dist/cjs/calcite-input-text.cjs.entry.js +25 -27
- package/dist/cjs/calcite-input-time-picker-74396a94.js +1870 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +21 -21
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +100 -66
- package/dist/cjs/calcite-input_2.cjs.entry.js +33 -35
- package/dist/cjs/calcite-label.cjs.entry.js +8 -8
- package/dist/cjs/calcite-link.cjs.entry.js +15 -17
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +5 -12
- package/dist/cjs/calcite-menu-item.cjs.entry.js +13 -13
- package/dist/cjs/calcite-menu.cjs.entry.js +12 -12
- package/dist/cjs/calcite-meter.cjs.entry.js +12 -12
- package/dist/cjs/calcite-modal_3.cjs.entry.js +25 -25
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +6 -6
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +5 -5
- package/dist/cjs/calcite-navigation.cjs.entry.js +9 -9
- package/dist/cjs/calcite-notice.cjs.entry.js +17 -17
- package/dist/cjs/calcite-option-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-option_2.cjs.entry.js +15 -17
- package/dist/cjs/calcite-pagination.cjs.entry.js +20 -52
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +12 -12
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +17 -19
- package/dist/cjs/calcite-pick-list.cjs.entry.js +15 -17
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +10 -10
- package/dist/cjs/calcite-radio-button.cjs.entry.js +13 -15
- package/dist/cjs/calcite-rating.cjs.entry.js +18 -22
- package/dist/cjs/calcite-scrim.cjs.entry.js +11 -11
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +43 -47
- package/dist/cjs/calcite-sheet.cjs.entry.js +14 -14
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +10 -10
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +47 -54
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +11 -13
- package/dist/cjs/calcite-split-button.cjs.entry.js +6 -12
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +14 -16
- package/dist/cjs/calcite-stepper.cjs.entry.js +12 -12
- package/dist/cjs/calcite-switch.cjs.entry.js +14 -16
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +18 -20
- package/dist/cjs/calcite-table-row.cjs.entry.js +9 -16
- package/dist/cjs/calcite-table.cjs.entry.js +18 -18
- package/dist/cjs/calcite-text-area.cjs.entry.js +26 -28
- package/dist/cjs/calcite-tile-group.cjs.entry.js +9 -11
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +5 -12
- package/dist/cjs/calcite-tile-select.cjs.entry.js +10 -12
- package/dist/cjs/calcite-tile.cjs.entry.js +9 -15
- package/dist/cjs/calcite-time-picker.cjs.entry.js +32 -38
- package/dist/cjs/calcite-tip-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +13 -13
- package/dist/cjs/calcite-tip.cjs.entry.js +15 -15
- package/dist/cjs/calcite-tooltip.cjs.entry.js +20 -15
- package/dist/cjs/calcite-tree_2.cjs.entry.js +18 -20
- package/dist/cjs/card-manager_3.cjs.entry.js +3 -3
- package/dist/cjs/component-5d190962.js +33 -0
- package/dist/cjs/conditionalSlot-37ff4832.js +54 -0
- package/dist/cjs/config-e76d9931.js +40 -0
- package/dist/cjs/consent-manager.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-manager.cjs.entry.js +3 -3
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +2 -2
- package/dist/cjs/cs-5c693156.js +149 -0
- package/dist/cjs/da-1a406d67.js +69 -0
- package/dist/cjs/date-bb8f971c.js +264 -0
- package/dist/cjs/de-11376da8.js +93 -0
- package/dist/cjs/de-at-a7437de2.js +92 -0
- package/dist/cjs/de-ch-862dfe8d.js +92 -0
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/dom-795d4a33.js +1200 -0
- package/dist/cjs/downloadUtils-20637f89.js +3239 -0
- package/dist/cjs/el-69fd471f.js +68 -0
- package/dist/cjs/en-au-4af4c244.js +68 -0
- package/dist/cjs/en-ca-dd0f74b8.js +67 -0
- package/dist/cjs/en-gb-d9916a0a.js +71 -0
- package/dist/cjs/es-b96f4aa7.js +68 -0
- package/dist/cjs/es-mx-7ce9a959.js +67 -0
- package/dist/cjs/et-ed1f6381.js +94 -0
- package/dist/cjs/feature-comments.cjs.entry.js +1 -1
- package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/feature-list.cjs.entry.js +4 -4
- package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/fi-16433386.js +117 -0
- package/dist/cjs/filter-e600c2fe.js +778 -0
- package/dist/cjs/floating-ui-0f85d59c.js +2413 -0
- package/dist/cjs/focusTrapComponent-b19fd5d5.js +1013 -0
- package/dist/cjs/form-6dd8050a.js +381 -0
- package/dist/cjs/fr-32b252ad.js +70 -0
- package/dist/cjs/fr-ch-368648e3.js +68 -0
- package/dist/cjs/guid-e84a8375.js +26 -0
- package/dist/cjs/he-d139901b.js +107 -0
- package/dist/cjs/helpers-415179ad.js +940 -0
- package/dist/cjs/hi-ba5e377e.js +67 -0
- package/dist/cjs/hr-87b5a9d8.js +82 -0
- package/dist/cjs/hu-3b80d082.js +90 -0
- package/dist/cjs/id-09dfbe6e.js +68 -0
- package/dist/cjs/index-0fb00064.js +15 -0
- package/dist/cjs/index-2b13a4d5.js +201 -0
- package/dist/cjs/index-4b68e4b4.js +1770 -0
- package/dist/cjs/index-89a62dc9.js +58 -0
- package/dist/cjs/index-c134f2f6.js +128 -0
- package/dist/cjs/index-p4VH55K1-8a6a97cb.js +4111 -0
- package/dist/cjs/index.es-a242cb45.js +11307 -0
- package/dist/cjs/input-8c28213d.js +60 -0
- package/dist/cjs/instant-apps-app-guide.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-create.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-export.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-popover.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-splash.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +9 -9
- package/dist/cjs/interactive-a128ac30.js +85 -0
- package/dist/cjs/it-ch-00a4c4b4.js +68 -0
- package/dist/cjs/it-da71aa25.js +68 -0
- package/dist/cjs/ja-c3519ced.js +74 -0
- package/dist/cjs/key-47c9469a.js +19 -0
- package/dist/cjs/ko-ea8cd08b.js +74 -0
- package/dist/cjs/label-726fc287.js +186 -0
- package/dist/cjs/layout-manager.cjs.entry.js +2 -2
- package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/loadable-1c888c87.js +98 -0
- package/dist/cjs/loader.cjs.js +6 -6
- package/dist/cjs/locale-339b55f0.js +160 -0
- package/dist/cjs/locale-4a18a858.js +120 -0
- package/dist/cjs/locale-da840314.js +605 -0
- package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/logger-f177776b.js +61 -0
- package/dist/cjs/lt-4e8161c8.js +99 -0
- package/dist/cjs/lv-b976ad37.js +68 -0
- package/dist/cjs/map-select-tools_3.cjs.entry.js +5 -5
- package/dist/cjs/math-089392ef.js +60 -0
- package/dist/cjs/mk-e2ea18b4.js +68 -0
- package/dist/cjs/nb-d81f921b.js +69 -0
- package/dist/cjs/nl-7249cded.js +69 -0
- package/dist/cjs/observers-18d87cb5.js +58 -0
- package/dist/cjs/openCloseComponent-3c540d25.js +65 -0
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/pl-d93521bd.js +116 -0
- package/dist/cjs/popupUtils-d477705b.js +121 -0
- package/dist/cjs/pt-bf297919.js +69 -0
- package/dist/cjs/pt-br-2c9c4ba2.js +67 -0
- package/dist/cjs/public-notification.cjs.entry.js +5 -5
- package/dist/cjs/publicNotificationStore-570204c1.js +47 -0
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/region-26804632.js +36 -0
- package/dist/cjs/resources-18f799c7.js +39 -0
- package/dist/cjs/resources-388efec5.js +27 -0
- package/dist/cjs/resources-535f936c.js +68 -0
- package/dist/cjs/resources-7aaf489b.js +39 -0
- package/dist/cjs/resources-9c07e2ea.js +26 -0
- package/dist/cjs/resources-b3dc59f7.js +29 -0
- package/dist/cjs/resources-cf1791da.js +69 -0
- package/dist/cjs/resources-eeda5acf.js +23 -0
- package/dist/cjs/resources-f895ff54.js +23 -0
- package/dist/cjs/resources-f9ab74c4.js +21 -0
- package/dist/cjs/responsive-a61585b1.js +39 -0
- package/dist/cjs/ro-b770ba3d.js +68 -0
- package/dist/cjs/ru-f70d0afe.js +128 -0
- package/dist/cjs/share-item.cjs.entry.js +1 -1
- package/dist/cjs/shared-list-render-546c7296.js +361 -0
- package/dist/cjs/sk-67e2fd96.js +150 -0
- package/dist/cjs/sl-cf79e6c6.js +170 -0
- package/dist/cjs/solution-configuration.cjs.entry.js +4 -4
- package/dist/cjs/solution-contents_3.cjs.entry.js +4 -4
- package/dist/cjs/solution-item-accordion.cjs.entry.js +42 -24
- package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
- package/dist/cjs/solution-store-4de89072.js +1354 -0
- package/dist/cjs/solutions-components.cjs.js +6 -6
- package/dist/cjs/sortableComponent-5dfc7ff8.js +2746 -0
- package/dist/cjs/spatial-ref.cjs.entry.js +2 -2
- package/dist/cjs/sr-02a5153e.js +103 -0
- package/dist/cjs/store-manager.cjs.entry.js +3 -3
- package/dist/cjs/sv-1c32f9ba.js +73 -0
- package/dist/cjs/t9n-ed5c03a7.js +108 -0
- package/dist/cjs/th-ddd7073f.js +67 -0
- package/dist/cjs/time-a92ca33f.js +301 -0
- package/dist/cjs/time-zones-a7e83971.js +52 -0
- package/dist/cjs/tr-31fcd3f7.js +68 -0
- package/dist/cjs/uk-a0f9e2bc.js +106 -0
- package/dist/cjs/utils-51a793a5.js +2304 -0
- package/dist/cjs/utils-7e5609ab.js +78 -0
- package/dist/cjs/utils-fa7ad44b.js +153 -0
- package/dist/cjs/vi-d484e1b9.js +72 -0
- package/dist/cjs/zh-cn-3d843268.js +96 -0
- package/dist/cjs/zh-hk-4aacd6d2.js +94 -0
- package/dist/cjs/zh-tw-cbd770ad.js +94 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +1 -1
- package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +40 -22
- package/dist/collection/demos/solution-item-accordion.html +425 -292
- package/dist/components/ExpandToggle.js +2 -2
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +2 -2
- package/dist/components/Validation.js +1 -1
- package/dist/components/accordion-item.js +8 -8
- package/dist/components/accordion.js +3 -3
- package/dist/components/action-bar.js +3 -6
- package/dist/components/action-group.js +8 -4
- package/dist/components/action-menu.js +2 -2
- package/dist/components/action-pad.js +6 -7
- package/dist/components/action.js +4 -6
- package/dist/components/alert.js +5 -5
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +5 -5
- package/dist/components/block.js +12 -9
- package/dist/components/browser.js +1 -1
- package/dist/components/button.js +12 -10
- package/dist/components/calcite-block-section.js +2 -2
- package/dist/components/calcite-card-group.js +4 -10
- package/dist/components/calcite-card.js +48 -22
- package/dist/components/calcite-chip-group.js +3 -7
- package/dist/components/calcite-color-picker.js +3 -5
- package/dist/components/calcite-dialog.js +5 -8
- package/dist/components/calcite-fab.js +3 -9
- package/dist/components/calcite-inline-editable.js +5 -7
- package/dist/components/calcite-input-time-picker.js +26 -16
- package/dist/components/calcite-input-time-zone.js +82 -48
- package/dist/components/calcite-list-item-group.js +3 -9
- package/dist/components/calcite-menu-item.js +4 -4
- package/dist/components/calcite-meter.js +2 -2
- package/dist/components/calcite-navigation-logo.js +2 -2
- package/dist/components/calcite-navigation.js +3 -3
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list.js +4 -5
- package/dist/components/calcite-radio-button-group.js +2 -2
- package/dist/components/calcite-rating.js +5 -9
- package/dist/components/calcite-sheet.js +4 -4
- package/dist/components/calcite-shell-center-row.js +3 -3
- package/dist/components/calcite-sortable-list.js +4 -6
- package/dist/components/calcite-split-button.js +3 -9
- package/dist/components/calcite-stepper-item.js +4 -6
- package/dist/components/calcite-stepper.js +3 -3
- package/dist/components/calcite-table-row.js +4 -10
- package/dist/components/calcite-table.js +8 -8
- package/dist/components/calcite-text-area.js +11 -13
- package/dist/components/calcite-tile-group.js +3 -5
- package/dist/components/calcite-tile-select-group.js +2 -8
- package/dist/components/calcite-tile-select.js +4 -6
- package/dist/components/calcite-tile.js +3 -9
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +2 -2
- package/dist/components/carousel-item.js +2 -2
- package/dist/components/carousel.js +81 -24
- package/dist/components/checkbox.js +5 -7
- package/dist/components/chip.js +6 -8
- package/dist/components/color-picker-hex-input.js +2 -2
- package/dist/components/color-picker-swatch.js +28 -11
- package/dist/components/combobox-item-group.js +2 -2
- package/dist/components/combobox-item.js +4 -6
- package/dist/components/combobox.js +13 -19
- package/dist/components/component.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/config.js +1 -1
- package/dist/components/crowdsource-manager.js +1 -1
- package/dist/components/date-picker-day.js +2 -8
- package/dist/components/date-picker-month-header.js +2 -2
- package/dist/components/date-picker.js +3 -3
- package/dist/components/date.js +1 -1
- package/dist/components/dom.js +24 -39
- package/dist/components/dropdown-group.js +2 -2
- package/dist/components/dropdown-item.js +4 -4
- package/dist/components/dropdown.js +36 -37
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +5 -10
- package/dist/components/floating-ui.js +54 -15
- package/dist/components/flow-item.js +3 -5
- package/dist/components/flow.js +2 -2
- package/dist/components/focusTrapComponent.js +43 -48
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +5 -9
- package/dist/components/icon.js +3 -3
- package/dist/components/index-p4VH55K1.js +4107 -0
- package/dist/components/index.js +2 -2
- package/dist/components/index4.js +1 -1
- package/dist/components/index5.js +5 -10
- package/dist/components/index6.js +5 -5
- package/dist/components/input-date-picker.js +12 -14
- package/dist/components/input-message.js +2 -2
- package/dist/components/input-number.js +16 -18
- package/dist/components/input-text.js +10 -12
- package/dist/components/input.js +16 -18
- package/dist/components/input2.js +1 -1
- package/dist/components/instant-apps-time-filter.js +6 -6
- package/dist/components/interactive.js +3 -83
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +2 -2
- package/dist/components/link.js +9 -11
- package/dist/components/list-item.js +7 -6
- package/dist/components/list.js +26 -22
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +15 -12
- package/dist/components/locale2.js +2 -2
- package/dist/components/logger.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/menu.js +2 -2
- package/dist/components/modal.js +5 -5
- package/dist/components/navigation-user.js +2 -2
- package/dist/components/notice.js +3 -3
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/option.js +1 -1
- package/dist/components/pagination.js +5 -37
- package/dist/components/panel.js +14 -10
- package/dist/components/pick-list-item.js +3 -5
- package/dist/components/popover.js +11 -7
- package/dist/components/progress.js +2 -2
- package/dist/components/radio-button.js +3 -5
- package/dist/components/region.js +32 -0
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/resources4.js +2 -1
- package/dist/components/resources5.js +1 -1
- package/dist/components/resources6.js +1 -1
- package/dist/components/responsive.js +37 -0
- package/dist/components/scrim.js +2 -2
- package/dist/components/segmented-control-item.js +2 -2
- package/dist/components/segmented-control.js +32 -36
- package/dist/components/select.js +3 -5
- package/dist/components/shared-list-render.js +6 -6
- package/dist/components/shell-panel.js +4 -4
- package/dist/components/shell.js +3 -3
- package/dist/components/slider.js +9 -11
- package/dist/components/solution-item-accordion.js +40 -22
- package/dist/components/sortableComponent.js +27 -29
- package/dist/components/stack.js +2 -2
- package/dist/components/switch.js +4 -6
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +4 -4
- package/dist/components/tab-title.js +6 -9
- package/dist/components/tab.js +2 -2
- package/dist/components/table-cell.js +4 -6
- package/dist/components/table-header.js +3 -3
- package/dist/components/tabs.js +2 -2
- package/dist/components/time-picker.js +21 -27
- package/dist/components/time-zones.js +41 -357
- package/dist/components/tooltip.js +12 -7
- package/dist/components/tree-item.js +7 -9
- package/dist/components/tree.js +4 -4
- package/dist/components/utils.js +2 -2
- package/dist/components/utils2.js +2 -2
- package/dist/components/utils3.js +5 -3
- package/dist/components/value-list-item.js +3 -5
- package/dist/components/value-list.js +6 -8
- package/dist/esm/ExpandToggle-4d440eb0.js +108 -0
- package/dist/esm/FloatingArrow-4f645ccd.js +46 -0
- package/dist/esm/Heading-80b3be96.js +22 -0
- package/dist/esm/Validation-cf136c56.js +18 -0
- package/dist/esm/app-globals-4aab2132.js +65 -0
- package/dist/esm/ar-d4e9c6ca.js +104 -0
- package/dist/esm/arcgis-login.entry.js +1 -1
- package/dist/esm/array-0e780f6f.js +15 -0
- package/dist/esm/basemap-gallery_7.entry.js +2 -2
- package/dist/esm/bg-e7db3070.js +82 -0
- package/dist/esm/browser-b67d8df6.js +32 -0
- package/dist/esm/bs-154d0540.js +51 -0
- package/dist/esm/buffer-tools_3.entry.js +9 -9
- package/dist/esm/ca-403d9586.js +71 -0
- package/dist/esm/calcite-accordion_2.entry.js +20 -20
- package/dist/esm/calcite-action-bar.entry.js +17 -20
- package/dist/esm/calcite-action-group.entry.js +18 -16
- package/dist/esm/calcite-action-menu_2.entry.js +27 -24
- package/dist/esm/calcite-action-pad_2.entry.js +20 -21
- package/dist/esm/calcite-action_2.entry.js +32 -30
- package/dist/esm/calcite-alert_5.entry.js +25 -27
- package/dist/esm/calcite-avatar.entry.js +10 -10
- package/dist/esm/calcite-block-section.entry.js +12 -12
- package/dist/esm/calcite-block_5.entry.js +45 -47
- package/dist/esm/calcite-button.entry.js +24 -22
- package/dist/esm/calcite-card-group.entry.js +9 -15
- package/dist/esm/calcite-card.entry.js +50 -31
- package/dist/esm/calcite-carousel_2.entry.js +92 -37
- package/dist/esm/calcite-checkbox.entry.js +15 -17
- package/dist/esm/calcite-chip-group.entry.js +8 -12
- package/dist/esm/calcite-chip_2.entry.js +22 -26
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +37 -20
- package/dist/esm/calcite-color-picker.entry.js +15 -17
- package/dist/esm/calcite-combobox-item-group.entry.js +8 -8
- package/dist/esm/calcite-combobox_3.entry.js +36 -42
- package/dist/esm/calcite-date-picker-day_3.entry.js +16 -22
- package/dist/esm/calcite-dialog.entry.js +20 -23
- package/dist/esm/calcite-dropdown_2.entry.js +50 -51
- package/dist/esm/calcite-fab.entry.js +9 -15
- package/dist/esm/calcite-filter_5.entry.js +58 -61
- package/dist/esm/calcite-flow_4.entry.js +7 -7
- package/dist/esm/calcite-graph_2.entry.js +23 -25
- package/dist/esm/calcite-icon_2.entry.js +24 -23
- package/dist/esm/calcite-inline-editable.entry.js +17 -19
- package/dist/esm/calcite-input-number.entry.js +31 -33
- package/dist/esm/calcite-input-text.entry.js +25 -27
- package/dist/esm/calcite-input-time-picker-cc675f33.js +1867 -0
- package/dist/esm/calcite-input-time-picker.entry.js +21 -21
- package/dist/esm/calcite-input-time-zone.entry.js +100 -66
- package/dist/esm/calcite-input_2.entry.js +33 -35
- package/dist/esm/calcite-label.entry.js +8 -8
- package/dist/esm/calcite-link.entry.js +15 -17
- package/dist/esm/calcite-list-item-group.entry.js +5 -12
- package/dist/esm/calcite-menu-item.entry.js +13 -13
- package/dist/esm/calcite-menu.entry.js +12 -12
- package/dist/esm/calcite-meter.entry.js +12 -12
- package/dist/esm/calcite-modal_3.entry.js +25 -25
- package/dist/esm/calcite-navigation-logo.entry.js +6 -6
- package/dist/esm/calcite-navigation-user.entry.js +5 -5
- package/dist/esm/calcite-navigation.entry.js +9 -9
- package/dist/esm/calcite-notice.entry.js +17 -17
- package/dist/esm/calcite-option-group.entry.js +2 -2
- package/dist/esm/calcite-option_2.entry.js +15 -17
- package/dist/esm/calcite-pagination.entry.js +15 -47
- package/dist/esm/calcite-pick-list-group.entry.js +12 -12
- package/dist/esm/calcite-pick-list-item.entry.js +17 -19
- package/dist/esm/calcite-pick-list.entry.js +15 -17
- package/dist/esm/calcite-radio-button-group.entry.js +10 -10
- package/dist/esm/calcite-radio-button.entry.js +13 -15
- package/dist/esm/calcite-rating.entry.js +18 -22
- package/dist/esm/calcite-scrim.entry.js +11 -11
- package/dist/esm/calcite-segmented-control_2.entry.js +43 -47
- package/dist/esm/calcite-sheet.entry.js +14 -14
- package/dist/esm/calcite-shell-center-row.entry.js +10 -10
- package/dist/esm/calcite-shell-panel_14.entry.js +47 -54
- package/dist/esm/calcite-sortable-list.entry.js +11 -13
- package/dist/esm/calcite-split-button.entry.js +6 -12
- package/dist/esm/calcite-stepper-item.entry.js +14 -16
- package/dist/esm/calcite-stepper.entry.js +12 -12
- package/dist/esm/calcite-switch.entry.js +14 -16
- package/dist/esm/calcite-table-cell_2.entry.js +18 -20
- package/dist/esm/calcite-table-row.entry.js +9 -16
- package/dist/esm/calcite-table.entry.js +18 -18
- package/dist/esm/calcite-text-area.entry.js +26 -28
- package/dist/esm/calcite-tile-group.entry.js +9 -11
- package/dist/esm/calcite-tile-select-group.entry.js +5 -12
- package/dist/esm/calcite-tile-select.entry.js +10 -12
- package/dist/esm/calcite-tile.entry.js +9 -15
- package/dist/esm/calcite-time-picker.entry.js +32 -38
- package/dist/esm/calcite-tip-group.entry.js +4 -4
- package/dist/esm/calcite-tip-manager.entry.js +13 -13
- package/dist/esm/calcite-tip.entry.js +15 -15
- package/dist/esm/calcite-tooltip.entry.js +20 -15
- package/dist/esm/calcite-tree_2.entry.js +18 -20
- package/dist/esm/card-manager_3.entry.js +3 -3
- package/dist/esm/component-83541c88.js +30 -0
- package/dist/esm/conditionalSlot-8a0b08ef.js +51 -0
- package/dist/esm/config-16813c92.js +36 -0
- package/dist/esm/consent-manager.entry.js +2 -2
- package/dist/esm/crowdsource-manager.entry.js +3 -3
- package/dist/esm/crowdsource-reporter.entry.js +2 -2
- package/dist/esm/cs-4687cf9f.js +147 -0
- package/dist/esm/da-27cb521d.js +67 -0
- package/dist/esm/date-4fc03f44.js +248 -0
- package/dist/esm/de-1fcb8b55.js +91 -0
- package/dist/esm/de-at-621e3161.js +90 -0
- package/dist/esm/de-ch-dbe106ba.js +90 -0
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/dom-75c641a7.js +1165 -0
- package/dist/esm/downloadUtils-e266e98d.js +3232 -0
- package/dist/esm/el-60cb7e8e.js +66 -0
- package/dist/esm/en-au-6b31eadf.js +66 -0
- package/dist/esm/en-ca-c62e2c29.js +65 -0
- package/dist/esm/en-gb-7b86a861.js +69 -0
- package/dist/esm/es-b048cf9a.js +66 -0
- package/dist/esm/es-mx-a469d043.js +65 -0
- package/dist/esm/et-09e59731.js +92 -0
- package/dist/esm/feature-comments.entry.js +1 -1
- package/dist/esm/feature-form-flow-item.entry.js +1 -1
- package/dist/esm/feature-list.entry.js +4 -4
- package/dist/esm/features-flow-item.entry.js +1 -1
- package/dist/esm/fi-98448a04.js +115 -0
- package/dist/esm/filter-c0066fe2.js +775 -0
- package/dist/esm/floating-ui-93b345b1.js +2404 -0
- package/dist/esm/focusTrapComponent-35b3348c.js +1008 -0
- package/dist/esm/form-d45062d8.js +372 -0
- package/dist/esm/fr-3a6bc75f.js +68 -0
- package/dist/esm/fr-ch-dd9aa577.js +66 -0
- package/dist/esm/guid-b0fb1de3.js +24 -0
- package/dist/esm/he-510944f3.js +105 -0
- package/dist/esm/helpers-f9bf9c0b.js +913 -0
- package/dist/esm/hi-b7f35ddc.js +65 -0
- package/dist/esm/hr-91d6e89b.js +80 -0
- package/dist/esm/hu-ab576bec.js +88 -0
- package/dist/esm/id-5ebe99df.js +66 -0
- package/dist/esm/index-19dc829d.js +126 -0
- package/dist/esm/index-39bc2e6d.js +199 -0
- package/dist/esm/index-3aaf8d41.js +13 -0
- package/dist/esm/index-46fa2a72.js +56 -0
- package/dist/esm/index-904bc599.js +1736 -0
- package/dist/esm/index-p4VH55K1-881b80d8.js +4107 -0
- package/dist/esm/index.es-c5f258e2.js +11220 -0
- package/dist/esm/input-e01adc49.js +58 -0
- package/dist/esm/instant-apps-app-guide.entry.js +2 -2
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +4 -4
- package/dist/esm/instant-apps-control-panel.entry.js +1 -1
- package/dist/esm/instant-apps-create.entry.js +2 -2
- package/dist/esm/instant-apps-export-views.entry.js +2 -2
- package/dist/esm/instant-apps-export.entry.js +2 -2
- package/dist/esm/instant-apps-header.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend.entry.js +4 -4
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +2 -2
- package/dist/esm/instant-apps-landing-page.entry.js +1 -1
- package/dist/esm/instant-apps-language-switcher.entry.js +4 -4
- package/dist/esm/instant-apps-language-translator.entry.js +4 -4
- package/dist/esm/instant-apps-measurement.entry.js +2 -2
- package/dist/esm/instant-apps-popover.entry.js +2 -2
- package/dist/esm/instant-apps-popovers.entry.js +1 -1
- package/dist/esm/instant-apps-scoreboard.entry.js +2 -2
- package/dist/esm/instant-apps-sign-in.entry.js +2 -2
- package/dist/esm/instant-apps-splash.entry.js +2 -2
- package/dist/esm/instant-apps-time-filter.entry.js +9 -9
- package/dist/esm/interactive-98ed6b6f.js +82 -0
- package/dist/esm/it-62f24385.js +66 -0
- package/dist/esm/it-ch-11bc01ef.js +66 -0
- package/dist/esm/ja-4073b97b.js +72 -0
- package/dist/esm/key-e6b442de.js +16 -0
- package/dist/esm/ko-c1f9c746.js +72 -0
- package/dist/esm/label-272c5973.js +179 -0
- package/dist/esm/layout-manager.entry.js +2 -2
- package/dist/esm/list-flow-item.entry.js +1 -1
- package/dist/esm/loadable-7cb2fc6f.js +93 -0
- package/dist/esm/loader.js +7 -7
- package/dist/esm/locale-0d06fca0.js +155 -0
- package/dist/esm/locale-24516fec.js +591 -0
- package/dist/esm/locale-ce177eb8.js +115 -0
- package/dist/esm/location-flow-item.entry.js +1 -1
- package/dist/esm/logger-f75712ce.js +59 -0
- package/dist/esm/lt-f293ef90.js +97 -0
- package/dist/esm/lv-cc60dc4f.js +66 -0
- package/dist/esm/map-select-tools_3.entry.js +5 -5
- package/dist/esm/math-d7c8823c.js +54 -0
- package/dist/esm/mk-90d4457e.js +66 -0
- package/dist/esm/nb-3d8eb4cc.js +67 -0
- package/dist/esm/nl-a2e0732f.js +67 -0
- package/dist/esm/observers-c83631e8.js +56 -0
- package/dist/esm/openCloseComponent-f642bffd.js +63 -0
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/pl-1e1abb9b.js +114 -0
- package/dist/esm/popupUtils-4570096e.js +119 -0
- package/dist/esm/pt-1bc85b37.js +67 -0
- package/dist/esm/pt-br-bd78f1f2.js +65 -0
- package/dist/esm/public-notification.entry.js +5 -5
- package/dist/esm/publicNotificationStore-8f6b0f93.js +45 -0
- package/dist/esm/refine-results-flow-item.entry.js +1 -1
- package/dist/esm/region-a37e45f7.js +32 -0
- package/dist/esm/resources-14a1713f.js +20 -0
- package/dist/esm/resources-29590c8b.js +24 -0
- package/dist/esm/resources-35208c6c.js +63 -0
- package/dist/esm/resources-5956d3f9.js +35 -0
- package/dist/esm/resources-8e2ed936.js +34 -0
- package/dist/esm/resources-aa7bb7b6.js +22 -0
- package/dist/esm/resources-bc1429eb.js +63 -0
- package/dist/esm/resources-be1618c8.js +19 -0
- package/dist/esm/resources-c1a8d628.js +21 -0
- package/dist/esm/resources-de1ba6bb.js +23 -0
- package/dist/esm/responsive-b2be423e.js +37 -0
- package/dist/esm/ro-c1cb4571.js +66 -0
- package/dist/esm/ru-deb7b95b.js +126 -0
- package/dist/esm/share-item.entry.js +1 -1
- package/dist/esm/shared-list-render-0d3e719c.js +339 -0
- package/dist/esm/sk-e86a1a74.js +148 -0
- package/dist/esm/sl-4f70ce5c.js +168 -0
- package/dist/esm/solution-configuration.entry.js +4 -4
- package/dist/esm/solution-contents_3.entry.js +4 -4
- package/dist/esm/solution-item-accordion.entry.js +42 -24
- package/dist/esm/solution-item-icon.entry.js +1 -1
- package/dist/esm/solution-store-ff13861b.js +1352 -0
- package/dist/esm/solutions-components.js +7 -7
- package/dist/esm/sortableComponent-7f184466.js +2743 -0
- package/dist/esm/spatial-ref.entry.js +2 -2
- package/dist/esm/sr-bcde0bb0.js +101 -0
- package/dist/esm/store-manager.entry.js +3 -3
- package/dist/esm/sv-e585fbb5.js +71 -0
- package/dist/esm/t9n-9a5d28cf.js +103 -0
- package/dist/esm/th-f1746070.js +65 -0
- package/dist/esm/time-fbe17659.js +286 -0
- package/dist/esm/time-zones-044d518b.js +49 -0
- package/dist/esm/tr-065767bb.js +66 -0
- package/dist/esm/uk-96e72322.js +104 -0
- package/dist/esm/utils-3fc29543.js +142 -0
- package/dist/esm/utils-b5a6dbcd.js +65 -0
- package/dist/esm/utils-dadbd166.js +2274 -0
- package/dist/esm/vi-667fe4b6.js +70 -0
- package/dist/esm/zh-cn-fbbbe429.js +94 -0
- package/dist/esm/zh-hk-d11430a1.js +92 -0
- package/dist/esm/zh-tw-4a1b522b.js +92 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion/accordion.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion-item/accordion-item.css +35 -22
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action/action.css +20 -7
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-bar/action-bar.css +6 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-group/action-group.css +9 -9
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-menu/action-menu.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-pad/action-pad.css +8 -8
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/alert/alert.css +63 -52
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/avatar/avatar.css +42 -32
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block/block.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block-section/block-section.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/button/button.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card/card.css +46 -51
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card-group/card-group.css +16 -16
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel/carousel.css +25 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel-item/carousel-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/checkbox/checkbox.css +23 -19
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip/chip.css +273 -334
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip-group/chip-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker/color-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-swatch/color-picker-swatch.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox/combobox.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item/combobox-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item-group/combobox-item-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker/date-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-day/date-picker-day.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month/date-picker-month.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month-header/date-picker-month-header.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dialog/dialog.css +7 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown/dropdown.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-group/dropdown-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-item/dropdown-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/fab/fab.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/filter/filter.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow/flow.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow-item/flow-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/graph/graph.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/handle/handle.css +24 -11
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/icon/icon.css +7 -7
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/inline-editable/inline-editable.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input/input.css +15 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-date-picker/input-date-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-message/input-message.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-number/input-number.css +15 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-text/input-text.css +15 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-picker/input-time-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-zone/input-time-zone.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/label/label.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/link/link.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list/list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item/list-item.css +10 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item-group/list-item-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/loader/loader.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu/menu.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu-item/menu-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/meter/meter.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/modal/modal.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation/navigation.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-logo/navigation-logo.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-user/navigation-user.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/notice/notice.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option/option.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option-group/option-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pagination/pagination.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/panel/panel.css +8 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list/pick-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-group/pick-list-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-item/pick-list-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/popover/popover.css +28 -22
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/progress/progress.css +17 -8
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button/radio-button.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button-group/radio-button-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/rating/rating.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/scrim/scrim.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control/segmented-control.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control-item/segmented-control-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/select/select.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sheet/sheet.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell/shell.css +5 -10
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-center-row/shell-center-row.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-panel/shell-panel.css +8 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/slider/slider.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sortable-list/sortable-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/split-button/split-button.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stack/stack.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper/stepper.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper-item/stepper-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/switch/switch.css +7 -7
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab/tab.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-nav/tab-nav.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-title/tab-title.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table/table.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-cell/table-cell.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-header/table-header.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-row/table-row.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tabs/tabs.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/text-area/text-area.css +130 -105
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile/tile.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-group/tile-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select/tile-select.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select-group/tile-select-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/time-picker/time-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip/tip.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-group/tip-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-manager/tip-manager.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tooltip/tooltip.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree/tree.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree-item/tree-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list/value-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list-item/value-list-item.css +5 -5
- package/dist/solutions-components/assets/action/t9n/index.d.ts +1 -0
- package/dist/solutions-components/assets/action/t9n/messages.json +2 -1
- package/dist/solutions-components/assets/action/t9n/messages_en.json +2 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_ar.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_bg.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_bs.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_ca.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_cs.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_da.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_de.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_el.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_es.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_et.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_fi.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_fr.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_he.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_hr.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_hu.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_id.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_it.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_ja.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_ko.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_lt.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_lv.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_nl.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_no.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_pl.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_pt-BR.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_pt-PT.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_ro.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_ru.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_sk.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_sl.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_sr.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_sv.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_th.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_tr.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_uk.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_vi.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_zh-CN.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_zh-HK.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_zh-TW.json +3 -1
- package/dist/solutions-components/assets/icon/connectionEndLeft16.json +1 -0
- package/dist/solutions-components/assets/icon/connectionEndLeft24.json +1 -0
- package/dist/solutions-components/assets/icon/connectionEndLeft32.json +1 -0
- package/dist/solutions-components/assets/icon/connectionEndRight16.json +1 -0
- package/dist/solutions-components/assets/icon/connectionEndRight24.json +1 -0
- package/dist/solutions-components/assets/icon/connectionEndRight32.json +1 -0
- package/dist/solutions-components/assets/icon/connectionMiddle16.json +1 -0
- package/dist/solutions-components/assets/icon/connectionMiddle24.json +1 -0
- package/dist/solutions-components/assets/icon/connectionMiddle32.json +1 -0
- package/dist/solutions-components/assets/icon/connectionToConnection16.json +1 -0
- package/dist/solutions-components/assets/icon/connectionToConnection24.json +1 -0
- package/dist/solutions-components/assets/icon/connectionToConnection32.json +1 -0
- package/dist/solutions-components/assets/icon/contentInlineRight16.json +1 -0
- package/dist/solutions-components/assets/icon/contentInlineRight24.json +1 -0
- package/dist/solutions-components/assets/icon/contentInlineRight32.json +1 -0
- package/dist/solutions-components/assets/icon/dashboardGraph16.json +1 -0
- package/dist/solutions-components/assets/icon/dashboardGraph24.json +1 -0
- package/dist/solutions-components/assets/icon/dashboardGraph32.json +1 -0
- package/dist/solutions-components/assets/icon/divide16.json +1 -0
- package/dist/solutions-components/assets/icon/divide24.json +1 -0
- package/dist/solutions-components/assets/icon/divide32.json +1 -0
- package/dist/solutions-components/assets/icon/i3DBuilding16.json +1 -0
- package/dist/solutions-components/assets/icon/i3DBuilding24.json +1 -0
- package/dist/solutions-components/assets/icon/i3DBuilding32.json +1 -0
- package/dist/solutions-components/assets/icon/i3DBuildingParameter16.json +1 -0
- package/dist/solutions-components/assets/icon/i3DBuildingParameter24.json +1 -0
- package/dist/solutions-components/assets/icon/i3DBuildingParameter32.json +1 -0
- package/dist/solutions-components/assets/icon/justify16.json +1 -0
- package/dist/solutions-components/assets/icon/justify24.json +1 -0
- package/dist/solutions-components/assets/icon/justify32.json +1 -0
- package/dist/solutions-components/assets/icon/layers16F.json +1 -0
- package/dist/solutions-components/assets/icon/layers24F.json +1 -0
- package/dist/solutions-components/assets/icon/layers32F.json +1 -0
- package/dist/solutions-components/assets/icon/modelHistory16.json +1 -0
- package/dist/solutions-components/assets/icon/modelHistory24.json +1 -0
- package/dist/solutions-components/assets/icon/modelHistory32.json +1 -0
- package/dist/solutions-components/assets/icon/nVariable16.json +1 -0
- package/dist/solutions-components/assets/icon/nVariable24.json +1 -0
- package/dist/solutions-components/assets/icon/nVariable32.json +1 -0
- package/dist/solutions-components/assets/icon/parcel16.json +1 -0
- package/dist/solutions-components/assets/icon/parcel24.json +1 -0
- package/dist/solutions-components/assets/icon/parcel32.json +1 -0
- package/dist/solutions-components/assets/icon/parcelParameter16.json +1 -0
- package/dist/solutions-components/assets/icon/parcelParameter24.json +1 -0
- package/dist/solutions-components/assets/icon/parcelParameter32.json +1 -0
- package/dist/solutions-components/assets/icon/rasterFunctionHistory16.json +1 -0
- package/dist/solutions-components/assets/icon/rasterFunctionHistory24.json +1 -0
- package/dist/solutions-components/assets/icon/rasterFunctionHistory32.json +1 -0
- package/dist/solutions-components/assets/icon/rasterFunctionTemplateHistory16.json +1 -0
- package/dist/solutions-components/assets/icon/rasterFunctionTemplateHistory24.json +1 -0
- package/dist/solutions-components/assets/icon/rasterFunctionTemplateHistory32.json +1 -0
- package/dist/solutions-components/assets/icon/rasterToolHistory16.json +1 -0
- package/dist/solutions-components/assets/icon/rasterToolHistory24.json +1 -0
- package/dist/solutions-components/assets/icon/rasterToolHistory32.json +1 -0
- package/dist/solutions-components/assets/icon/refresh16F.json +1 -0
- package/dist/solutions-components/assets/icon/refresh24F.json +1 -0
- package/dist/solutions-components/assets/icon/refresh32F.json +1 -0
- package/dist/solutions-components/assets/icon/rss16F.json +1 -0
- package/dist/solutions-components/assets/icon/rss24F.json +1 -0
- package/dist/solutions-components/assets/icon/rss32F.json +1 -0
- package/dist/solutions-components/assets/icon/spaces16.json +1 -0
- package/dist/solutions-components/assets/icon/spaces24.json +1 -0
- package/dist/solutions-components/assets/icon/spaces32.json +1 -0
- package/dist/solutions-components/assets/icon/spacesParameter16.json +1 -0
- package/dist/solutions-components/assets/icon/spacesParameter24.json +1 -0
- package/dist/solutions-components/assets/icon/spacesParameter32.json +1 -0
- package/dist/solutions-components/assets/icon/squareBracketsX16.json +1 -0
- package/dist/solutions-components/assets/icon/squareBracketsX24.json +1 -0
- package/dist/solutions-components/assets/icon/squareBracketsX32.json +1 -0
- package/dist/solutions-components/assets/icon/toolHistory16.json +1 -0
- package/dist/solutions-components/assets/icon/toolHistory24.json +1 -0
- package/dist/solutions-components/assets/icon/toolHistory32.json +1 -0
- package/dist/solutions-components/assets/icon/tracePath16.json +1 -0
- package/dist/solutions-components/assets/icon/tracePath24.json +1 -0
- package/dist/solutions-components/assets/icon/tracePath32.json +1 -0
- package/dist/solutions-components/assets/icon/tracePathComplete16.json +1 -0
- package/dist/solutions-components/assets/icon/tracePathComplete24.json +1 -0
- package/dist/solutions-components/assets/icon/tracePathComplete32.json +1 -0
- package/dist/solutions-components/assets/icon/validate16.json +1 -0
- package/dist/solutions-components/assets/icon/validate24.json +1 -0
- package/dist/solutions-components/assets/icon/validate32.json +1 -0
- package/dist/solutions-components/assets/icon/webAdaptor16.json +1 -0
- package/dist/solutions-components/assets/icon/webAdaptor24.json +1 -0
- package/dist/solutions-components/assets/icon/webAdaptor32.json +1 -0
- package/dist/solutions-components/assets/icon/zoningParameter16.json +1 -0
- package/dist/solutions-components/assets/icon/zoningParameter24.json +1 -0
- package/dist/solutions-components/assets/icon/zoningParameter32.json +1 -0
- package/dist/solutions-components/assets/input-time-zone/t9n/index.d.ts +45 -0
- package/dist/solutions-components/assets/input-time-zone/t9n/messages.json +46 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_ar.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_bg.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_bs.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_ca.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_cs.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_da.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_de.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_el.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_en.json +46 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_es.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_et.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_fi.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_fr.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_he.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_hr.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_hu.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_id.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_it.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_ja.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_ko.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_lt.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_lv.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_nl.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_no.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_pl.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_pt-BR.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_pt-PT.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_ro.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_ru.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_sk.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_sl.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_sr.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_sv.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_th.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_tr.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_uk.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_vi.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_zh-CN.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_zh-HK.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_zh-TW.json +262 -1
- package/dist/solutions-components/demos/solution-item-accordion.html +425 -292
- package/dist/solutions-components/p-017f63c5.js +6 -0
- package/dist/solutions-components/p-020143eb.entry.js +11 -0
- package/dist/solutions-components/p-0374291c.js +6 -0
- package/dist/solutions-components/p-05ae2b11.entry.js +6 -0
- package/dist/solutions-components/p-065e678f.js +6 -0
- package/dist/solutions-components/p-07a194e6.entry.js +6 -0
- package/dist/solutions-components/p-086f8bbb.js +6 -0
- package/dist/solutions-components/p-08e9cb30.entry.js +11 -0
- package/dist/solutions-components/p-097bf845.entry.js +11 -0
- package/dist/solutions-components/p-0bfef9c6.entry.js +11 -0
- package/dist/solutions-components/p-13d2e3cb.js +6 -0
- package/dist/solutions-components/p-143f9e99.entry.js +17 -0
- package/dist/solutions-components/p-144b7a4d.js +6 -0
- package/dist/solutions-components/p-146acd9a.entry.js +6 -0
- package/dist/solutions-components/p-14d78748.entry.js +6 -0
- package/dist/solutions-components/p-15410144.js +11 -0
- package/dist/solutions-components/p-1588fad8.entry.js +6 -0
- package/dist/solutions-components/p-16f52a67.js +6 -0
- package/dist/solutions-components/p-1726f46c.js +6 -0
- package/dist/solutions-components/p-181ac808.entry.js +11 -0
- package/dist/solutions-components/p-1862084a.entry.js +11 -0
- package/dist/solutions-components/p-1c2d0e90.entry.js +6 -0
- package/dist/solutions-components/p-1c9db4df.entry.js +6 -0
- package/dist/solutions-components/p-1dbef451.entry.js +6 -0
- package/dist/solutions-components/p-1effd2f3.entry.js +11 -0
- package/dist/solutions-components/p-1fc9919b.entry.js +17 -0
- package/dist/solutions-components/p-2105e658.entry.js +6 -0
- package/dist/solutions-components/p-2154a0f9.entry.js +6 -0
- package/dist/solutions-components/p-233f219c.js +11 -0
- package/dist/solutions-components/p-2360802a.js +21 -0
- package/dist/solutions-components/p-24ab8211.entry.js +11 -0
- package/dist/solutions-components/p-24ae549d.entry.js +6 -0
- package/dist/solutions-components/p-24e3f09f.entry.js +6 -0
- package/dist/solutions-components/p-2506309d.entry.js +11 -0
- package/dist/solutions-components/p-2714a658.entry.js +6 -0
- package/dist/solutions-components/p-27a4a537.js +11 -0
- package/dist/solutions-components/p-27bcce86.entry.js +11 -0
- package/dist/solutions-components/p-29047e77.entry.js +29 -0
- package/dist/solutions-components/p-296bd1c0.js +6 -0
- package/dist/solutions-components/p-2bb1b8a8.entry.js +6 -0
- package/dist/solutions-components/p-2daeb1fe.js +11 -0
- package/dist/solutions-components/p-2ebd8a9b.entry.js +11 -0
- package/dist/solutions-components/p-319f79c2.js +6 -0
- package/dist/solutions-components/p-33d732d7.entry.js +11 -0
- package/dist/solutions-components/p-347f341e.js +11 -0
- package/dist/solutions-components/p-347fa724.js +6 -0
- package/dist/solutions-components/p-3517faab.entry.js +11 -0
- package/dist/solutions-components/p-353312fc.entry.js +23 -0
- package/dist/solutions-components/p-3776809a.js +11 -0
- package/dist/solutions-components/p-39678a7e.js +6 -0
- package/dist/solutions-components/p-399dc933.entry.js +17 -0
- package/dist/solutions-components/p-3a33ef72.entry.js +6 -0
- package/dist/solutions-components/p-3bcdf332.entry.js +6 -0
- package/dist/solutions-components/p-3c775d00.js +6 -0
- package/dist/solutions-components/p-3cadb18d.js +11 -0
- package/dist/solutions-components/p-3cfc1e2e.js +11 -0
- package/dist/solutions-components/p-3d7643a5.entry.js +6 -0
- package/dist/solutions-components/p-3df0c310.entry.js +11 -0
- package/dist/solutions-components/p-3ec0ab00.entry.js +11 -0
- package/dist/solutions-components/p-402301cb.js +6 -0
- package/dist/solutions-components/p-40bfb158.entry.js +11 -0
- package/dist/solutions-components/p-41a6f03d.entry.js +6 -0
- package/dist/solutions-components/p-4253e9f1.js +16 -0
- package/dist/solutions-components/p-43165ebd.entry.js +6 -0
- package/dist/solutions-components/p-44d04914.entry.js +11 -0
- package/dist/solutions-components/p-46c8015c.js +488 -0
- package/dist/solutions-components/p-471c6630.js +6 -0
- package/dist/solutions-components/p-47f85755.entry.js +16 -0
- package/dist/solutions-components/p-49fbb67d.js +6 -0
- package/dist/solutions-components/p-4a02fd45.entry.js +6 -0
- package/dist/solutions-components/p-4a291f79.js +11 -0
- package/dist/solutions-components/p-4af0e4bd.entry.js +47 -0
- package/dist/solutions-components/p-4bb08a47.entry.js +11 -0
- package/dist/solutions-components/p-4db86c5e.entry.js +6 -0
- package/dist/solutions-components/p-4e0045d5.entry.js +6 -0
- package/dist/solutions-components/p-4e6eb06e.js +7 -0
- package/dist/solutions-components/p-4f82eb55.js +11 -0
- package/dist/solutions-components/p-50fb7f47.js +6 -0
- package/dist/solutions-components/p-51c6e6fe.js +21 -0
- package/dist/solutions-components/p-52094fca.entry.js +6 -0
- package/dist/solutions-components/p-52280e10.entry.js +17 -0
- package/dist/solutions-components/p-5230c9ff.entry.js +11 -0
- package/dist/solutions-components/p-549cdc87.entry.js +11 -0
- package/dist/solutions-components/p-54a3d9b8.js +6 -0
- package/dist/solutions-components/p-54e5a55d.js +11 -0
- package/dist/solutions-components/p-57ccfe47.entry.js +12 -0
- package/dist/solutions-components/p-58338ff8.entry.js +11 -0
- package/dist/solutions-components/p-5949dd38.js +6 -0
- package/dist/solutions-components/p-5b0e8838.entry.js +6 -0
- package/dist/solutions-components/p-5d2cd0a4.js +11 -0
- package/dist/solutions-components/p-5d8592e0.js +6 -0
- package/dist/solutions-components/p-5e25a0b8.js +11 -0
- package/dist/solutions-components/p-5e406ad0.entry.js +12 -0
- package/dist/solutions-components/p-5f63be31.entry.js +17 -0
- package/dist/solutions-components/p-5f6d9950.js +6 -0
- package/dist/solutions-components/p-5ff711ee.js +6 -0
- package/dist/solutions-components/p-60412359.js +6 -0
- package/dist/solutions-components/p-61aebbb5.js +11 -0
- package/dist/solutions-components/p-621ad249.js +17 -0
- package/dist/solutions-components/p-634f86e5.entry.js +11 -0
- package/dist/solutions-components/p-662aa94e.entry.js +6 -0
- package/dist/solutions-components/p-67ca4a64.entry.js +6 -0
- package/dist/solutions-components/p-67e7f047.entry.js +29 -0
- package/dist/solutions-components/p-685091db.js +6 -0
- package/dist/solutions-components/p-6aab07ba.entry.js +6 -0
- package/dist/solutions-components/p-6adaac20.js +11 -0
- package/dist/solutions-components/p-6e1685bd.entry.js +6 -0
- package/dist/solutions-components/p-6e93a997.entry.js +6 -0
- package/dist/solutions-components/p-706cddd1.entry.js +22 -0
- package/dist/solutions-components/p-70ecc979.entry.js +6 -0
- package/dist/solutions-components/p-710bd9ec.entry.js +6 -0
- package/dist/solutions-components/p-713949f2.js +6 -0
- package/dist/solutions-components/p-72522a67.js +11 -0
- package/dist/solutions-components/p-72ab74b8.entry.js +11 -0
- package/dist/solutions-components/p-739ce6f3.entry.js +6 -0
- package/dist/solutions-components/p-745efeab.js +11 -0
- package/dist/solutions-components/p-750f234e.entry.js +6 -0
- package/dist/solutions-components/p-759d0beb.entry.js +6 -0
- package/dist/solutions-components/p-790af200.entry.js +6 -0
- package/dist/solutions-components/p-794d1b98.js +6 -0
- package/dist/solutions-components/p-7b862835.js +6 -0
- package/dist/solutions-components/p-7b8d7eef.entry.js +11 -0
- package/dist/solutions-components/p-7cc351f6.js +6 -0
- package/dist/solutions-components/p-7d542581.js +11 -0
- package/dist/solutions-components/p-7d974838.js +11 -0
- package/dist/solutions-components/p-7e6a8c06.entry.js +6 -0
- package/dist/solutions-components/p-7e97d4d6.entry.js +6 -0
- package/dist/solutions-components/p-7fdb374f.js +6 -0
- package/dist/solutions-components/p-7ffa7eae.entry.js +11 -0
- package/dist/solutions-components/p-81681ba0.entry.js +11 -0
- package/dist/solutions-components/p-866cc732.js +6 -0
- package/dist/solutions-components/p-876c3f5f.js +11 -0
- package/dist/solutions-components/p-89334c32.js +6 -0
- package/dist/solutions-components/p-895e7b9c.js +16 -0
- package/dist/solutions-components/p-89a4ce79.entry.js +11 -0
- package/dist/solutions-components/p-89b27ae3.entry.js +20 -0
- package/dist/solutions-components/p-89f86585.js +18 -0
- package/dist/solutions-components/p-8ac08cc3.entry.js +17 -0
- package/dist/solutions-components/p-8cdeed09.entry.js +11 -0
- package/dist/solutions-components/p-8d0d5a69.js +6 -0
- package/dist/solutions-components/p-8d48a13f.js +6 -0
- package/dist/solutions-components/p-8d59545b.js +6 -0
- package/dist/solutions-components/p-8e0a95ff.js +16 -0
- package/dist/solutions-components/p-8e6081e0.entry.js +6 -0
- package/dist/solutions-components/p-8f556cfc.entry.js +6 -0
- package/dist/solutions-components/p-904a670f.js +6 -0
- package/dist/solutions-components/p-90d2aadc.entry.js +6 -0
- package/dist/solutions-components/p-91371f97.js +11 -0
- package/dist/solutions-components/p-91e05c99.js +11 -0
- package/dist/solutions-components/p-91f0f556.entry.js +17 -0
- package/dist/solutions-components/p-93b87dd4.entry.js +11 -0
- package/dist/solutions-components/p-94a5d59f.entry.js +6 -0
- package/dist/solutions-components/p-96385535.entry.js +17 -0
- package/dist/solutions-components/p-96a983ab.entry.js +6 -0
- package/dist/solutions-components/p-971b67d7.entry.js +6 -0
- package/dist/solutions-components/p-986dd5b2.js +17 -0
- package/dist/solutions-components/p-988c0d5e.entry.js +6 -0
- package/dist/solutions-components/p-9e862c85.js +6 -0
- package/dist/solutions-components/p-9f98f213.js +6 -0
- package/dist/solutions-components/p-9ff02b5e.js +6 -0
- package/dist/solutions-components/p-a02e2069.js +11 -0
- package/dist/solutions-components/p-a25c73c8.entry.js +6 -0
- package/dist/solutions-components/p-a568af9f.js +61 -0
- package/dist/solutions-components/p-a584543f.js +6 -0
- package/dist/solutions-components/p-a922f993.entry.js +11 -0
- package/dist/solutions-components/p-a9742ffc.entry.js +11 -0
- package/dist/solutions-components/p-ad9d1221.js +11 -0
- package/dist/solutions-components/p-adabe68e.entry.js +6 -0
- package/dist/solutions-components/p-af0e57e2.js +11 -0
- package/dist/solutions-components/p-b034e287.entry.js +17 -0
- package/dist/solutions-components/p-b0b1c672.entry.js +17 -0
- package/dist/solutions-components/p-b10d9165.entry.js +22 -0
- package/dist/solutions-components/p-b13aca6a.js +11 -0
- package/dist/solutions-components/p-b3e498bd.js +6 -0
- package/dist/solutions-components/p-b5ddeee9.js +6 -0
- package/dist/solutions-components/p-b658f264.js +6 -0
- package/dist/solutions-components/p-b739f26d.entry.js +6 -0
- package/dist/solutions-components/p-b78a4ce7.entry.js +6 -0
- package/dist/solutions-components/p-b79f296d.entry.js +11 -0
- package/dist/solutions-components/p-b90ed430.entry.js +11 -0
- package/dist/solutions-components/p-bb1de7a0.entry.js +11 -0
- package/dist/solutions-components/p-bb630f8c.entry.js +6 -0
- package/dist/solutions-components/p-be2c7d0c.entry.js +6 -0
- package/dist/solutions-components/p-be9a6a87.entry.js +17 -0
- package/dist/solutions-components/p-bf187297.js +6 -0
- package/dist/solutions-components/p-c0c6f4b2.js +6 -0
- package/dist/solutions-components/p-c350eacb.js +143 -0
- package/dist/solutions-components/p-c551ffc5.entry.js +6 -0
- package/dist/solutions-components/p-c64d61d9.entry.js +6 -0
- package/dist/solutions-components/p-c6dac8d2.js +16 -0
- package/dist/solutions-components/p-c7f8b7f0.js +11 -0
- package/dist/solutions-components/p-c97472e4.js +6 -0
- package/dist/solutions-components/p-c9f94a25.js +6 -0
- package/dist/solutions-components/p-cbb86cf2.entry.js +6 -0
- package/dist/solutions-components/p-cd8e711f.entry.js +6 -0
- package/dist/solutions-components/p-cf4273a0.js +6 -0
- package/dist/solutions-components/p-d0f16cd3.entry.js +11 -0
- package/dist/solutions-components/p-d25fc2c2.js +11 -0
- package/dist/solutions-components/p-d3338131.entry.js +11 -0
- package/dist/solutions-components/p-d4e07230.entry.js +11 -0
- package/dist/solutions-components/p-d4f16e41.js +6 -0
- package/dist/solutions-components/p-d6902512.js +11 -0
- package/dist/solutions-components/p-d751e255.entry.js +11 -0
- package/dist/solutions-components/p-da2fd30a.js +6 -0
- package/dist/solutions-components/p-dac93fa8.js +6 -0
- package/dist/solutions-components/p-daff208e.js +6 -0
- package/dist/solutions-components/p-dc9d4be3.js +6 -0
- package/dist/solutions-components/p-e01d27aa.entry.js +6 -0
- package/dist/solutions-components/p-e070ef82.entry.js +11 -0
- package/dist/solutions-components/p-e72e2dcc.entry.js +21 -0
- package/dist/solutions-components/p-e799935e.js +6 -0
- package/dist/solutions-components/p-e7acd771.entry.js +11 -0
- package/dist/solutions-components/p-e93184af.entry.js +6 -0
- package/dist/solutions-components/p-ea822f6e.js +6 -0
- package/dist/solutions-components/p-ec56afaa.js +6 -0
- package/dist/solutions-components/p-ed844e16.entry.js +11 -0
- package/dist/solutions-components/p-efaa77a0.js +11 -0
- package/dist/solutions-components/p-efdd44e3.js +6 -0
- package/dist/solutions-components/p-efe845d9.js +6 -0
- package/dist/solutions-components/p-f0c96a6a.js +11 -0
- package/dist/solutions-components/p-f4aadb3b.js +36 -0
- package/dist/solutions-components/p-f61fdfc6.entry.js +12 -0
- package/dist/solutions-components/p-f62b8031.js +6 -0
- package/dist/solutions-components/p-f746ec20.js +11 -0
- package/dist/solutions-components/p-f76d3cfe.js +6 -0
- package/dist/solutions-components/p-f7e7b830.entry.js +6 -0
- package/dist/solutions-components/p-f898b163.js +11 -0
- package/dist/solutions-components/p-f8ee16f3.entry.js +6 -0
- package/dist/solutions-components/p-f966fadb.entry.js +11 -0
- package/dist/solutions-components/p-fa80bc7e.js +11 -0
- package/dist/solutions-components/p-fae4708b.js +11 -0
- package/dist/solutions-components/p-faf3343c.entry.js +11 -0
- package/dist/solutions-components/p-fb4f7ace.js +6 -0
- package/dist/solutions-components/p-fc243a76.entry.js +11 -0
- package/dist/solutions-components/p-fca48d30.entry.js +6 -0
- package/dist/solutions-components/p-fdbb52ca.js +6 -0
- package/dist/solutions-components/p-fe3aea1a.entry.js +6 -0
- package/dist/solutions-components/p-fe58f3f0.entry.js +11 -0
- package/dist/solutions-components/p-ff336351.js +11 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +17 -3
- package/dist/types/preact.d.ts +1 -3
- package/package.json +4 -4
- package/dist/cjs/ExpandToggle-54ca6b91.js +0 -115
- package/dist/cjs/FloatingArrow-28f6bb91.js +0 -48
- package/dist/cjs/Heading-63b5c82c.js +0 -25
- package/dist/cjs/Validation-9bab9a69.js +0 -20
- package/dist/cjs/app-globals-d2085e28.js +0 -67
- package/dist/cjs/ar-ce94723b.js +0 -106
- package/dist/cjs/array-708fd433.js +0 -17
- package/dist/cjs/bg-8ab5661c.js +0 -84
- package/dist/cjs/browser-2893460e.js +0 -35
- package/dist/cjs/bs-f15b7a3d.js +0 -53
- package/dist/cjs/ca-321e7e4f.js +0 -73
- package/dist/cjs/calcite-input-time-picker-d63d914b.js +0 -1861
- package/dist/cjs/component-7f2bd646.js +0 -33
- package/dist/cjs/conditionalSlot-2d2541f4.js +0 -54
- package/dist/cjs/config-7c16c710.js +0 -40
- package/dist/cjs/continent-cdee1112.js +0 -34
- package/dist/cjs/country-a8539532.js +0 -446
- package/dist/cjs/cs-66742e3a.js +0 -149
- package/dist/cjs/da-933e7031.js +0 -69
- package/dist/cjs/date-e01a99aa.js +0 -264
- package/dist/cjs/de-87706bda.js +0 -93
- package/dist/cjs/de-at-752f7be1.js +0 -92
- package/dist/cjs/de-ch-41dc3fef.js +0 -92
- package/dist/cjs/dom-3d3a8f25.js +0 -1215
- package/dist/cjs/downloadUtils-17f08e5e.js +0 -3239
- package/dist/cjs/el-23b7e02b.js +0 -68
- package/dist/cjs/en-au-4f9fe083.js +0 -68
- package/dist/cjs/en-ca-afba9508.js +0 -67
- package/dist/cjs/en-gb-78a49c6a.js +0 -71
- package/dist/cjs/es-ea5faae0.js +0 -68
- package/dist/cjs/es-mx-47a5667a.js +0 -67
- package/dist/cjs/et-72505ea1.js +0 -94
- package/dist/cjs/fi-7b4ac88c.js +0 -117
- package/dist/cjs/filter-a9429bde.js +0 -778
- package/dist/cjs/floating-ui-9ff03df8.js +0 -2373
- package/dist/cjs/focusTrapComponent-86ebd41d.js +0 -1018
- package/dist/cjs/form-8132060d.js +0 -381
- package/dist/cjs/fr-8077e2e8.js +0 -70
- package/dist/cjs/fr-ch-04f427a0.js +0 -68
- package/dist/cjs/guid-42cda8c9.js +0 -26
- package/dist/cjs/he-93b37a58.js +0 -107
- package/dist/cjs/helpers-3cfcbb0d.js +0 -940
- package/dist/cjs/hi-cb320ba3.js +0 -67
- package/dist/cjs/hr-15e455d9.js +0 -82
- package/dist/cjs/hu-10c42dd5.js +0 -90
- package/dist/cjs/id-813844ef.js +0 -68
- package/dist/cjs/index-5a0af791.js +0 -1782
- package/dist/cjs/index-6189d0bb.js +0 -62
- package/dist/cjs/index-866b8a4c.js +0 -127
- package/dist/cjs/index-d21e03cd.js +0 -14
- package/dist/cjs/index-da709a10.js +0 -201
- package/dist/cjs/index.es-2518dd41.js +0 -11307
- package/dist/cjs/input-3efc5a5e.js +0 -60
- package/dist/cjs/interactive-3b85d8df.js +0 -167
- package/dist/cjs/it-090375c5.js +0 -68
- package/dist/cjs/it-ch-6cc91215.js +0 -68
- package/dist/cjs/ja-e6697420.js +0 -74
- package/dist/cjs/key-82084ef6.js +0 -19
- package/dist/cjs/ko-522250be.js +0 -74
- package/dist/cjs/label-e7d3c371.js +0 -186
- package/dist/cjs/loadable-0e357195.js +0 -98
- package/dist/cjs/locale-351282c5.js +0 -605
- package/dist/cjs/locale-a09603ee.js +0 -160
- package/dist/cjs/locale-a965a573.js +0 -120
- package/dist/cjs/logger-309df5d9.js +0 -61
- package/dist/cjs/lt-c2f9fd21.js +0 -99
- package/dist/cjs/lv-a1930986.js +0 -68
- package/dist/cjs/math-14740338.js +0 -60
- package/dist/cjs/mk-deb11706.js +0 -68
- package/dist/cjs/nb-3859b631.js +0 -69
- package/dist/cjs/nl-6c2c838d.js +0 -69
- package/dist/cjs/observers-5f9f67ee.js +0 -58
- package/dist/cjs/openCloseComponent-b66f10f5.js +0 -65
- package/dist/cjs/pl-fcb7899e.js +0 -116
- package/dist/cjs/popupUtils-24306e6b.js +0 -121
- package/dist/cjs/pt-416d2cf8.js +0 -69
- package/dist/cjs/pt-br-bae3d576.js +0 -67
- package/dist/cjs/publicNotificationStore-f229e839.js +0 -47
- package/dist/cjs/resources-4446499e.js +0 -39
- package/dist/cjs/resources-4c3e1c50.js +0 -68
- package/dist/cjs/resources-6f65a67f.js +0 -29
- package/dist/cjs/resources-87ed79dd.js +0 -23
- package/dist/cjs/resources-9b04cd8c.js +0 -23
- package/dist/cjs/resources-a1ca0958.js +0 -27
- package/dist/cjs/resources-c5f09989.js +0 -68
- package/dist/cjs/resources-dbc687b5.js +0 -26
- package/dist/cjs/resources-f11e9bd6.js +0 -39
- package/dist/cjs/resources-f8785f51.js +0 -21
- package/dist/cjs/ro-bda94f37.js +0 -68
- package/dist/cjs/ru-7258ce51.js +0 -128
- package/dist/cjs/shared-list-render-d4b7311f.js +0 -361
- package/dist/cjs/sk-3a398547.js +0 -150
- package/dist/cjs/sl-bfb5a728.js +0 -170
- package/dist/cjs/solution-store-2cd6a8c3.js +0 -1354
- package/dist/cjs/sortableComponent-8684e273.js +0 -2748
- package/dist/cjs/sr-58554054.js +0 -103
- package/dist/cjs/sv-335a4402.js +0 -73
- package/dist/cjs/t9n-e41672d2.js +0 -108
- package/dist/cjs/th-14ebad2e.js +0 -67
- package/dist/cjs/time-9a5e2f2d.js +0 -301
- package/dist/cjs/time-zones-cd027b1e.js +0 -367
- package/dist/cjs/tr-36bcc20f.js +0 -68
- package/dist/cjs/uk-dcff92bd.js +0 -106
- package/dist/cjs/utils-29c97686.js +0 -2304
- package/dist/cjs/utils-62072741.js +0 -153
- package/dist/cjs/utils-edb4e372.js +0 -78
- package/dist/cjs/vi-284fec96.js +0 -72
- package/dist/cjs/zh-cn-1f4ab46b.js +0 -96
- package/dist/cjs/zh-hk-39cf1fdd.js +0 -94
- package/dist/cjs/zh-tw-e0b3117d.js +0 -94
- package/dist/components/continent.js +0 -31
- package/dist/components/country.js +0 -444
- package/dist/esm/ExpandToggle-076b4360.js +0 -108
- package/dist/esm/FloatingArrow-9a505e89.js +0 -46
- package/dist/esm/Heading-cae0b34c.js +0 -22
- package/dist/esm/Validation-bd0a53ec.js +0 -18
- package/dist/esm/app-globals-530c75ff.js +0 -65
- package/dist/esm/ar-3e3c0d14.js +0 -104
- package/dist/esm/array-ddb2593b.js +0 -15
- package/dist/esm/bg-a872736b.js +0 -82
- package/dist/esm/browser-a791205e.js +0 -32
- package/dist/esm/bs-fe545c28.js +0 -51
- package/dist/esm/ca-8a2abdaa.js +0 -71
- package/dist/esm/calcite-input-time-picker-2fbabd28.js +0 -1858
- package/dist/esm/component-d35983a4.js +0 -30
- package/dist/esm/conditionalSlot-0cbc7172.js +0 -51
- package/dist/esm/config-8d1c3431.js +0 -36
- package/dist/esm/continent-125eb777.js +0 -31
- package/dist/esm/country-2d5661ee.js +0 -444
- package/dist/esm/cs-f9bfb6dd.js +0 -147
- package/dist/esm/da-0528de8d.js +0 -67
- package/dist/esm/date-f0c83d13.js +0 -248
- package/dist/esm/de-at-c7c45014.js +0 -90
- package/dist/esm/de-ch-e9338f1b.js +0 -90
- package/dist/esm/de-d149b983.js +0 -91
- package/dist/esm/dom-42a638f6.js +0 -1180
- package/dist/esm/downloadUtils-4a34c86a.js +0 -3232
- package/dist/esm/el-d86fff8e.js +0 -66
- package/dist/esm/en-au-e722c119.js +0 -66
- package/dist/esm/en-ca-8f38a3b8.js +0 -65
- package/dist/esm/en-gb-24dd064c.js +0 -69
- package/dist/esm/es-39a9e113.js +0 -66
- package/dist/esm/es-mx-fa0cbd42.js +0 -65
- package/dist/esm/et-51eabe80.js +0 -92
- package/dist/esm/fi-64ca8666.js +0 -115
- package/dist/esm/filter-6ee02739.js +0 -775
- package/dist/esm/floating-ui-a14930d0.js +0 -2365
- package/dist/esm/focusTrapComponent-c1def619.js +0 -1013
- package/dist/esm/form-46367137.js +0 -372
- package/dist/esm/fr-ch-6fe6a6e6.js +0 -66
- package/dist/esm/fr-e20306bf.js +0 -68
- package/dist/esm/guid-42656051.js +0 -24
- package/dist/esm/he-32ec6cce.js +0 -105
- package/dist/esm/helpers-22ae4484.js +0 -913
- package/dist/esm/hi-da2b085c.js +0 -65
- package/dist/esm/hr-5a52222a.js +0 -80
- package/dist/esm/hu-d3bbacef.js +0 -88
- package/dist/esm/id-dcdac250.js +0 -66
- package/dist/esm/index-2c724afd.js +0 -199
- package/dist/esm/index-ad182a71.js +0 -125
- package/dist/esm/index-b793d9aa.js +0 -1748
- package/dist/esm/index-f5d562b1.js +0 -60
- package/dist/esm/index-f8c935d6.js +0 -12
- package/dist/esm/index.es-5f44061b.js +0 -11220
- package/dist/esm/input-7f3fc18b.js +0 -58
- package/dist/esm/interactive-b2a41b8b.js +0 -162
- package/dist/esm/it-360f430f.js +0 -66
- package/dist/esm/it-ch-0ec68776.js +0 -66
- package/dist/esm/ja-a95cae4c.js +0 -72
- package/dist/esm/key-d6dfb50e.js +0 -16
- package/dist/esm/ko-f0edd78f.js +0 -72
- package/dist/esm/label-f2ec1100.js +0 -179
- package/dist/esm/loadable-1a9b14b8.js +0 -93
- package/dist/esm/locale-a34f9f04.js +0 -115
- package/dist/esm/locale-a53a7bc6.js +0 -591
- package/dist/esm/locale-b1d53fb1.js +0 -155
- package/dist/esm/logger-3188b9c3.js +0 -59
- package/dist/esm/lt-bff432da.js +0 -97
- package/dist/esm/lv-0c7edf32.js +0 -66
- package/dist/esm/math-9afe1f6d.js +0 -54
- package/dist/esm/mk-876446b8.js +0 -66
- package/dist/esm/nb-25537e87.js +0 -67
- package/dist/esm/nl-8be84da3.js +0 -67
- package/dist/esm/observers-6cac5525.js +0 -56
- package/dist/esm/openCloseComponent-9d44719e.js +0 -63
- package/dist/esm/pl-8d4fe5a7.js +0 -114
- package/dist/esm/popupUtils-3ccb86bd.js +0 -119
- package/dist/esm/pt-br-3015e62b.js +0 -65
- package/dist/esm/pt-dcc887b4.js +0 -67
- package/dist/esm/publicNotificationStore-7b0b97b6.js +0 -45
- package/dist/esm/resources-119ae117.js +0 -23
- package/dist/esm/resources-244d70ca.js +0 -22
- package/dist/esm/resources-3f56d4e7.js +0 -19
- package/dist/esm/resources-57625076.js +0 -63
- package/dist/esm/resources-5b213c89.js +0 -35
- package/dist/esm/resources-61eab899.js +0 -20
- package/dist/esm/resources-745dec87.js +0 -34
- package/dist/esm/resources-9494c015.js +0 -21
- package/dist/esm/resources-d6566b8a.js +0 -62
- package/dist/esm/resources-d7e0fbbf.js +0 -24
- package/dist/esm/ro-b973c654.js +0 -66
- package/dist/esm/ru-59a7f10b.js +0 -126
- package/dist/esm/shared-list-render-097ee366.js +0 -339
- package/dist/esm/sk-a00e5b97.js +0 -148
- package/dist/esm/sl-55c8a748.js +0 -168
- package/dist/esm/solution-store-ca4d55de.js +0 -1352
- package/dist/esm/sortableComponent-52b99f0f.js +0 -2745
- package/dist/esm/sr-e4fc3293.js +0 -101
- package/dist/esm/sv-f0782d2a.js +0 -71
- package/dist/esm/t9n-b33c486a.js +0 -103
- package/dist/esm/th-d2abb499.js +0 -65
- package/dist/esm/time-f99aceff.js +0 -286
- package/dist/esm/time-zones-211c88e3.js +0 -365
- package/dist/esm/tr-512413e1.js +0 -66
- package/dist/esm/uk-79fe44f1.js +0 -104
- package/dist/esm/utils-6f13e31e.js +0 -142
- package/dist/esm/utils-d2524a35.js +0 -2274
- package/dist/esm/utils-d67a6d71.js +0 -65
- package/dist/esm/vi-53b51e7a.js +0 -70
- package/dist/esm/zh-cn-7d19a53a.js +0 -94
- package/dist/esm/zh-hk-4fb6c3eb.js +0 -92
- package/dist/esm/zh-tw-6a5d2c2b.js +0 -92
- package/dist/solutions-components/p-022d51db.js +0 -6
- package/dist/solutions-components/p-03f3cf77.js +0 -6
- package/dist/solutions-components/p-03ffbb1b.js +0 -6
- package/dist/solutions-components/p-07d30a6b.entry.js +0 -11
- package/dist/solutions-components/p-0a165419.js +0 -18
- package/dist/solutions-components/p-0a1a9ff1.js +0 -6
- package/dist/solutions-components/p-0a311862.entry.js +0 -6
- package/dist/solutions-components/p-0a64be62.js +0 -6
- package/dist/solutions-components/p-0ded20f0.js +0 -6
- package/dist/solutions-components/p-0ef9d36b.js +0 -11
- package/dist/solutions-components/p-100bf9eb.entry.js +0 -6
- package/dist/solutions-components/p-12be6545.js +0 -11
- package/dist/solutions-components/p-14f027b5.js +0 -11
- package/dist/solutions-components/p-150394be.js +0 -11
- package/dist/solutions-components/p-1692858b.entry.js +0 -11
- package/dist/solutions-components/p-16b24981.entry.js +0 -11
- package/dist/solutions-components/p-174aa4da.js +0 -16
- package/dist/solutions-components/p-1826154b.entry.js +0 -11
- package/dist/solutions-components/p-1a047db6.js +0 -6
- package/dist/solutions-components/p-1b229454.js +0 -11
- package/dist/solutions-components/p-1c249530.js +0 -11
- package/dist/solutions-components/p-1ce2608d.js +0 -12
- package/dist/solutions-components/p-1df2d94d.js +0 -6
- package/dist/solutions-components/p-1e4aca17.js +0 -6
- package/dist/solutions-components/p-2058b5d9.js +0 -36
- package/dist/solutions-components/p-216ae423.entry.js +0 -11
- package/dist/solutions-components/p-219f0273.entry.js +0 -6
- package/dist/solutions-components/p-2230d4cc.js +0 -11
- package/dist/solutions-components/p-27d462c0.js +0 -11
- package/dist/solutions-components/p-283e344a.entry.js +0 -6
- package/dist/solutions-components/p-2868a42b.js +0 -11
- package/dist/solutions-components/p-290dee0b.js +0 -21
- package/dist/solutions-components/p-2a059548.entry.js +0 -11
- package/dist/solutions-components/p-2bb9b365.entry.js +0 -11
- package/dist/solutions-components/p-2c423f9c.js +0 -6
- package/dist/solutions-components/p-2caf1f94.js +0 -11
- package/dist/solutions-components/p-2cb47eff.entry.js +0 -11
- package/dist/solutions-components/p-2cc624c3.entry.js +0 -21
- package/dist/solutions-components/p-2d2b06db.entry.js +0 -6
- package/dist/solutions-components/p-2d2dcf8a.js +0 -6
- package/dist/solutions-components/p-2d5e428d.js +0 -6
- package/dist/solutions-components/p-2e7d005f.js +0 -6
- package/dist/solutions-components/p-3016bf77.entry.js +0 -11
- package/dist/solutions-components/p-313fcf40.entry.js +0 -6
- package/dist/solutions-components/p-31524836.entry.js +0 -6
- package/dist/solutions-components/p-3244e59a.js +0 -11
- package/dist/solutions-components/p-3305a61f.entry.js +0 -6
- package/dist/solutions-components/p-365169c2.js +0 -11
- package/dist/solutions-components/p-36e59391.js +0 -143
- package/dist/solutions-components/p-372e4640.js +0 -6
- package/dist/solutions-components/p-3792492a.js +0 -11
- package/dist/solutions-components/p-38a87c63.js +0 -11
- package/dist/solutions-components/p-3a4fbcf6.entry.js +0 -6
- package/dist/solutions-components/p-3d0e9be4.js +0 -6
- package/dist/solutions-components/p-3d6f8c9e.entry.js +0 -29
- package/dist/solutions-components/p-3de85f54.entry.js +0 -6
- package/dist/solutions-components/p-3e3b7172.entry.js +0 -6
- package/dist/solutions-components/p-3e828614.js +0 -11
- package/dist/solutions-components/p-42710186.entry.js +0 -11
- package/dist/solutions-components/p-44270ade.entry.js +0 -6
- package/dist/solutions-components/p-47398e76.entry.js +0 -11
- package/dist/solutions-components/p-47a0be20.js +0 -11
- package/dist/solutions-components/p-4881885b.entry.js +0 -23
- package/dist/solutions-components/p-4920ee12.js +0 -11
- package/dist/solutions-components/p-496b7a1f.entry.js +0 -6
- package/dist/solutions-components/p-4aafcac7.entry.js +0 -6
- package/dist/solutions-components/p-4b9b7778.js +0 -11
- package/dist/solutions-components/p-4cfe3d80.entry.js +0 -11
- package/dist/solutions-components/p-4feaf7db.entry.js +0 -11
- package/dist/solutions-components/p-50323300.entry.js +0 -6
- package/dist/solutions-components/p-50ab7903.js +0 -6
- package/dist/solutions-components/p-50c2d3e5.entry.js +0 -6
- package/dist/solutions-components/p-50e2a33b.js +0 -6
- package/dist/solutions-components/p-51abfcb7.js +0 -6
- package/dist/solutions-components/p-524a996f.js +0 -6
- package/dist/solutions-components/p-52dad11d.entry.js +0 -6
- package/dist/solutions-components/p-54879c84.entry.js +0 -11
- package/dist/solutions-components/p-5550f101.entry.js +0 -17
- package/dist/solutions-components/p-565bc712.entry.js +0 -12
- package/dist/solutions-components/p-5714f5ca.entry.js +0 -6
- package/dist/solutions-components/p-57be85fb.entry.js +0 -11
- package/dist/solutions-components/p-58d8ee47.js +0 -6
- package/dist/solutions-components/p-5959580d.js +0 -6
- package/dist/solutions-components/p-59695ccc.js +0 -6
- package/dist/solutions-components/p-59b3e946.entry.js +0 -17
- package/dist/solutions-components/p-5ba9df82.js +0 -17
- package/dist/solutions-components/p-5d398871.entry.js +0 -6
- package/dist/solutions-components/p-5dcec135.js +0 -21
- package/dist/solutions-components/p-5de67b86.js +0 -11
- package/dist/solutions-components/p-5ee4ba5c.js +0 -6
- package/dist/solutions-components/p-6147cfb4.entry.js +0 -6
- package/dist/solutions-components/p-62dadb51.js +0 -6
- package/dist/solutions-components/p-62ed6a7a.entry.js +0 -6
- package/dist/solutions-components/p-63f9004a.js +0 -6
- package/dist/solutions-components/p-64906bb5.entry.js +0 -11
- package/dist/solutions-components/p-64a34d92.js +0 -11
- package/dist/solutions-components/p-65fe42ef.js +0 -6
- package/dist/solutions-components/p-66cee72b.js +0 -17
- package/dist/solutions-components/p-6b21efce.js +0 -6
- package/dist/solutions-components/p-6cf1225a.entry.js +0 -11
- package/dist/solutions-components/p-6d4db88b.entry.js +0 -17
- package/dist/solutions-components/p-6d894d47.entry.js +0 -11
- package/dist/solutions-components/p-6e0439fa.entry.js +0 -6
- package/dist/solutions-components/p-6e118057.js +0 -11
- package/dist/solutions-components/p-6eb37ed2.js +0 -7
- package/dist/solutions-components/p-6f594492.entry.js +0 -11
- package/dist/solutions-components/p-6fdbdfdd.entry.js +0 -6
- package/dist/solutions-components/p-70b46ea4.js +0 -6
- package/dist/solutions-components/p-70f2898c.entry.js +0 -6
- package/dist/solutions-components/p-720a12c0.js +0 -6
- package/dist/solutions-components/p-72bce122.entry.js +0 -6
- package/dist/solutions-components/p-72ee63b0.entry.js +0 -16
- package/dist/solutions-components/p-744d9575.js +0 -11
- package/dist/solutions-components/p-754a5334.js +0 -6
- package/dist/solutions-components/p-76efd680.entry.js +0 -11
- package/dist/solutions-components/p-77052872.entry.js +0 -6
- package/dist/solutions-components/p-7758a533.entry.js +0 -17
- package/dist/solutions-components/p-776995b1.entry.js +0 -6
- package/dist/solutions-components/p-7987d73b.entry.js +0 -6
- package/dist/solutions-components/p-7a641e36.entry.js +0 -6
- package/dist/solutions-components/p-7a820f38.js +0 -6
- package/dist/solutions-components/p-7b122a6e.entry.js +0 -6
- package/dist/solutions-components/p-7e762fa7.js +0 -6
- package/dist/solutions-components/p-7f147e8b.entry.js +0 -6
- package/dist/solutions-components/p-8208ba6c.entry.js +0 -6
- package/dist/solutions-components/p-82185ebf.entry.js +0 -12
- package/dist/solutions-components/p-8267d344.entry.js +0 -11
- package/dist/solutions-components/p-827037ce.entry.js +0 -16
- package/dist/solutions-components/p-88c6ece3.entry.js +0 -11
- package/dist/solutions-components/p-8a683cdc.js +0 -6
- package/dist/solutions-components/p-8bce991a.js +0 -11
- package/dist/solutions-components/p-8be24ce9.entry.js +0 -6
- package/dist/solutions-components/p-8bfa18b7.js +0 -11
- package/dist/solutions-components/p-8d0f6824.entry.js +0 -6
- package/dist/solutions-components/p-8d453a3a.js +0 -16
- package/dist/solutions-components/p-8ef003ec.entry.js +0 -6
- package/dist/solutions-components/p-8fb651e5.entry.js +0 -6
- package/dist/solutions-components/p-92008b90.js +0 -6
- package/dist/solutions-components/p-926664d9.js +0 -61
- package/dist/solutions-components/p-94397114.js +0 -6
- package/dist/solutions-components/p-94805d7f.entry.js +0 -11
- package/dist/solutions-components/p-94c518ff.entry.js +0 -6
- package/dist/solutions-components/p-97aa6766.js +0 -6
- package/dist/solutions-components/p-984ce9da.js +0 -11
- package/dist/solutions-components/p-9850998d.entry.js +0 -6
- package/dist/solutions-components/p-99e6cb74.js +0 -6
- package/dist/solutions-components/p-9d12b3f1.entry.js +0 -17
- package/dist/solutions-components/p-9ee72dba.entry.js +0 -22
- package/dist/solutions-components/p-9f3aebd0.entry.js +0 -11
- package/dist/solutions-components/p-a095dadb.entry.js +0 -17
- package/dist/solutions-components/p-a0a77f45.entry.js +0 -20
- package/dist/solutions-components/p-a1093fee.entry.js +0 -6
- package/dist/solutions-components/p-a2a2c6a2.entry.js +0 -11
- package/dist/solutions-components/p-a2dbc38b.entry.js +0 -11
- package/dist/solutions-components/p-a4255b97.js +0 -6
- package/dist/solutions-components/p-a471ceb6.js +0 -11
- package/dist/solutions-components/p-a4e73041.js +0 -6
- package/dist/solutions-components/p-a5fc6ab7.js +0 -11
- package/dist/solutions-components/p-a60a2c8b.entry.js +0 -11
- package/dist/solutions-components/p-a6a0df5c.entry.js +0 -6
- package/dist/solutions-components/p-a7395caf.js +0 -6
- package/dist/solutions-components/p-a7761371.js +0 -6
- package/dist/solutions-components/p-a8b70e9a.js +0 -6
- package/dist/solutions-components/p-a8d83bc3.entry.js +0 -11
- package/dist/solutions-components/p-aa36f70e.entry.js +0 -6
- package/dist/solutions-components/p-aaa56cbf.js +0 -11
- package/dist/solutions-components/p-abd68931.entry.js +0 -6
- package/dist/solutions-components/p-ac92679c.js +0 -6
- package/dist/solutions-components/p-ad1c27ef.entry.js +0 -6
- package/dist/solutions-components/p-ad441ffa.entry.js +0 -11
- package/dist/solutions-components/p-add869b6.entry.js +0 -11
- package/dist/solutions-components/p-b310402f.entry.js +0 -11
- package/dist/solutions-components/p-b4d708cd.entry.js +0 -6
- package/dist/solutions-components/p-b5575639.js +0 -11
- package/dist/solutions-components/p-b5b66530.js +0 -11
- package/dist/solutions-components/p-b7e63ac2.js +0 -6
- package/dist/solutions-components/p-b8eee32e.js +0 -6
- package/dist/solutions-components/p-b9b2f7a9.entry.js +0 -6
- package/dist/solutions-components/p-bb040eab.entry.js +0 -29
- package/dist/solutions-components/p-bcc2d4ff.js +0 -6
- package/dist/solutions-components/p-bcce9d28.entry.js +0 -17
- package/dist/solutions-components/p-c151da98.entry.js +0 -11
- package/dist/solutions-components/p-c1fa5dae.entry.js +0 -11
- package/dist/solutions-components/p-c346ca43.entry.js +0 -6
- package/dist/solutions-components/p-c60c5991.entry.js +0 -11
- package/dist/solutions-components/p-c6255e3c.entry.js +0 -6
- package/dist/solutions-components/p-c66faddf.entry.js +0 -6
- package/dist/solutions-components/p-c6ef8cca.js +0 -6
- package/dist/solutions-components/p-c718930a.entry.js +0 -6
- package/dist/solutions-components/p-c7bfe120.entry.js +0 -6
- package/dist/solutions-components/p-c94b0e1a.js +0 -16
- package/dist/solutions-components/p-c976ac3b.entry.js +0 -47
- package/dist/solutions-components/p-cadbe907.entry.js +0 -11
- package/dist/solutions-components/p-cba6953c.js +0 -6
- package/dist/solutions-components/p-d00ca970.entry.js +0 -6
- package/dist/solutions-components/p-d2033cfa.entry.js +0 -6
- package/dist/solutions-components/p-d2ee8b82.js +0 -6
- package/dist/solutions-components/p-d301b8fd.js +0 -6
- package/dist/solutions-components/p-d4ab82e3.entry.js +0 -17
- package/dist/solutions-components/p-d7711a84.entry.js +0 -11
- package/dist/solutions-components/p-d7871f0d.entry.js +0 -11
- package/dist/solutions-components/p-d9b8b4e2.entry.js +0 -6
- package/dist/solutions-components/p-d9e930c8.js +0 -11
- package/dist/solutions-components/p-dc264663.entry.js +0 -17
- package/dist/solutions-components/p-dcaae1e9.entry.js +0 -11
- package/dist/solutions-components/p-dcebc541.js +0 -6
- package/dist/solutions-components/p-de3719f2.entry.js +0 -22
- package/dist/solutions-components/p-dec62e5d.js +0 -488
- package/dist/solutions-components/p-e068dfb9.entry.js +0 -11
- package/dist/solutions-components/p-e0b65115.js +0 -11
- package/dist/solutions-components/p-e0f10596.entry.js +0 -6
- package/dist/solutions-components/p-e0fd4006.js +0 -6
- package/dist/solutions-components/p-e26cf5f5.entry.js +0 -11
- package/dist/solutions-components/p-e378184f.entry.js +0 -6
- package/dist/solutions-components/p-e6798e38.js +0 -6
- package/dist/solutions-components/p-ea8d2558.js +0 -6
- package/dist/solutions-components/p-ef187f1d.js +0 -6
- package/dist/solutions-components/p-ef67c743.js +0 -11
- package/dist/solutions-components/p-efca5cea.entry.js +0 -6
- package/dist/solutions-components/p-f359c162.entry.js +0 -11
- package/dist/solutions-components/p-f3e3a4d5.entry.js +0 -6
- package/dist/solutions-components/p-f4360468.entry.js +0 -11
- package/dist/solutions-components/p-f4d7f757.js +0 -6
- package/dist/solutions-components/p-f550ebc1.entry.js +0 -6
- package/dist/solutions-components/p-f69ca69c.js +0 -6
- package/dist/solutions-components/p-f6c3501c.js +0 -16
- package/dist/solutions-components/p-f6eeac1b.entry.js +0 -17
- package/dist/solutions-components/p-f72fa647.entry.js +0 -12
- package/dist/solutions-components/p-f7e45464.js +0 -6
- package/dist/solutions-components/p-f7ffcd95.js +0 -6
- package/dist/solutions-components/p-f8d23498.js +0 -11
- package/dist/solutions-components/p-fa56b7c2.js +0 -11
- package/dist/solutions-components/p-fa7c50f8.entry.js +0 -6
- package/dist/solutions-components/p-fd9fb1ba.entry.js +0 -11
- package/dist/solutions-components/p-fdb201ff.entry.js +0 -17
- package/dist/solutions-components/p-fe0add26.js +0 -6
- package/dist/solutions-components/p-ff105078.entry.js +0 -11
- package/dist/solutions-components/p-ff639390.entry.js +0 -6
- /package/dist/cjs/{index-04255c05.js → index-c44fa2e4.js} +0 -0
- /package/dist/esm/{index-87ec7c0a.js → index-8fda18f5.js} +0 -0
- /package/dist/solutions-components/{p-fc17754b.js → p-33ff2b9e.js} +0 -0
@@ -0,0 +1,2404 @@
|
|
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 { D as DEBOUNCE } from './resources-8e2ed936.js';
|
7
|
+
import { g as getElementDir } from './dom-75c641a7.js';
|
8
|
+
import { i as isBrowser } from './browser-b67d8df6.js';
|
9
|
+
import { d as debounce } from './debounce-6e9ade8c.js';
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Custom positioning reference element.
|
13
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
14
|
+
*/
|
15
|
+
|
16
|
+
const sides = ['top', 'right', 'bottom', 'left'];
|
17
|
+
const alignments = ['start', 'end'];
|
18
|
+
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
19
|
+
const min = Math.min;
|
20
|
+
const max = Math.max;
|
21
|
+
const round = Math.round;
|
22
|
+
const floor = Math.floor;
|
23
|
+
const createCoords = v => ({
|
24
|
+
x: v,
|
25
|
+
y: v
|
26
|
+
});
|
27
|
+
const oppositeSideMap = {
|
28
|
+
left: 'right',
|
29
|
+
right: 'left',
|
30
|
+
bottom: 'top',
|
31
|
+
top: 'bottom'
|
32
|
+
};
|
33
|
+
const oppositeAlignmentMap = {
|
34
|
+
start: 'end',
|
35
|
+
end: 'start'
|
36
|
+
};
|
37
|
+
function clamp(start, value, end) {
|
38
|
+
return max(start, min(value, end));
|
39
|
+
}
|
40
|
+
function evaluate(value, param) {
|
41
|
+
return typeof value === 'function' ? value(param) : value;
|
42
|
+
}
|
43
|
+
function getSide(placement) {
|
44
|
+
return placement.split('-')[0];
|
45
|
+
}
|
46
|
+
function getAlignment(placement) {
|
47
|
+
return placement.split('-')[1];
|
48
|
+
}
|
49
|
+
function getOppositeAxis(axis) {
|
50
|
+
return axis === 'x' ? 'y' : 'x';
|
51
|
+
}
|
52
|
+
function getAxisLength(axis) {
|
53
|
+
return axis === 'y' ? 'height' : 'width';
|
54
|
+
}
|
55
|
+
function getSideAxis(placement) {
|
56
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
57
|
+
}
|
58
|
+
function getAlignmentAxis(placement) {
|
59
|
+
return getOppositeAxis(getSideAxis(placement));
|
60
|
+
}
|
61
|
+
function getAlignmentSides(placement, rects, rtl) {
|
62
|
+
if (rtl === void 0) {
|
63
|
+
rtl = false;
|
64
|
+
}
|
65
|
+
const alignment = getAlignment(placement);
|
66
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
67
|
+
const length = getAxisLength(alignmentAxis);
|
68
|
+
let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
69
|
+
if (rects.reference[length] > rects.floating[length]) {
|
70
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
71
|
+
}
|
72
|
+
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
73
|
+
}
|
74
|
+
function getExpandedPlacements(placement) {
|
75
|
+
const oppositePlacement = getOppositePlacement(placement);
|
76
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
77
|
+
}
|
78
|
+
function getOppositeAlignmentPlacement(placement) {
|
79
|
+
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
80
|
+
}
|
81
|
+
function getSideList(side, isStart, rtl) {
|
82
|
+
const lr = ['left', 'right'];
|
83
|
+
const rl = ['right', 'left'];
|
84
|
+
const tb = ['top', 'bottom'];
|
85
|
+
const bt = ['bottom', 'top'];
|
86
|
+
switch (side) {
|
87
|
+
case 'top':
|
88
|
+
case 'bottom':
|
89
|
+
if (rtl) return isStart ? rl : lr;
|
90
|
+
return isStart ? lr : rl;
|
91
|
+
case 'left':
|
92
|
+
case 'right':
|
93
|
+
return isStart ? tb : bt;
|
94
|
+
default:
|
95
|
+
return [];
|
96
|
+
}
|
97
|
+
}
|
98
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
99
|
+
const alignment = getAlignment(placement);
|
100
|
+
let list = getSideList(getSide(placement), direction === 'start', rtl);
|
101
|
+
if (alignment) {
|
102
|
+
list = list.map(side => side + "-" + alignment);
|
103
|
+
if (flipAlignment) {
|
104
|
+
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
105
|
+
}
|
106
|
+
}
|
107
|
+
return list;
|
108
|
+
}
|
109
|
+
function getOppositePlacement(placement) {
|
110
|
+
return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
|
111
|
+
}
|
112
|
+
function expandPaddingObject(padding) {
|
113
|
+
return {
|
114
|
+
top: 0,
|
115
|
+
right: 0,
|
116
|
+
bottom: 0,
|
117
|
+
left: 0,
|
118
|
+
...padding
|
119
|
+
};
|
120
|
+
}
|
121
|
+
function getPaddingObject(padding) {
|
122
|
+
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
123
|
+
top: padding,
|
124
|
+
right: padding,
|
125
|
+
bottom: padding,
|
126
|
+
left: padding
|
127
|
+
};
|
128
|
+
}
|
129
|
+
function rectToClientRect(rect) {
|
130
|
+
const {
|
131
|
+
x,
|
132
|
+
y,
|
133
|
+
width,
|
134
|
+
height
|
135
|
+
} = rect;
|
136
|
+
return {
|
137
|
+
width,
|
138
|
+
height,
|
139
|
+
top: y,
|
140
|
+
left: x,
|
141
|
+
right: x + width,
|
142
|
+
bottom: y + height,
|
143
|
+
x,
|
144
|
+
y
|
145
|
+
};
|
146
|
+
}
|
147
|
+
|
148
|
+
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
149
|
+
let {
|
150
|
+
reference,
|
151
|
+
floating
|
152
|
+
} = _ref;
|
153
|
+
const sideAxis = getSideAxis(placement);
|
154
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
155
|
+
const alignLength = getAxisLength(alignmentAxis);
|
156
|
+
const side = getSide(placement);
|
157
|
+
const isVertical = sideAxis === 'y';
|
158
|
+
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
159
|
+
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
160
|
+
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
161
|
+
let coords;
|
162
|
+
switch (side) {
|
163
|
+
case 'top':
|
164
|
+
coords = {
|
165
|
+
x: commonX,
|
166
|
+
y: reference.y - floating.height
|
167
|
+
};
|
168
|
+
break;
|
169
|
+
case 'bottom':
|
170
|
+
coords = {
|
171
|
+
x: commonX,
|
172
|
+
y: reference.y + reference.height
|
173
|
+
};
|
174
|
+
break;
|
175
|
+
case 'right':
|
176
|
+
coords = {
|
177
|
+
x: reference.x + reference.width,
|
178
|
+
y: commonY
|
179
|
+
};
|
180
|
+
break;
|
181
|
+
case 'left':
|
182
|
+
coords = {
|
183
|
+
x: reference.x - floating.width,
|
184
|
+
y: commonY
|
185
|
+
};
|
186
|
+
break;
|
187
|
+
default:
|
188
|
+
coords = {
|
189
|
+
x: reference.x,
|
190
|
+
y: reference.y
|
191
|
+
};
|
192
|
+
}
|
193
|
+
switch (getAlignment(placement)) {
|
194
|
+
case 'start':
|
195
|
+
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
196
|
+
break;
|
197
|
+
case 'end':
|
198
|
+
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
199
|
+
break;
|
200
|
+
}
|
201
|
+
return coords;
|
202
|
+
}
|
203
|
+
|
204
|
+
/**
|
205
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
206
|
+
* next to a given reference element.
|
207
|
+
*
|
208
|
+
* This export does not have any `platform` interface logic. You will need to
|
209
|
+
* write one for the platform you are using Floating UI with.
|
210
|
+
*/
|
211
|
+
const computePosition$1 = async (reference, floating, config) => {
|
212
|
+
const {
|
213
|
+
placement = 'bottom',
|
214
|
+
strategy = 'absolute',
|
215
|
+
middleware = [],
|
216
|
+
platform
|
217
|
+
} = config;
|
218
|
+
const validMiddleware = middleware.filter(Boolean);
|
219
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
220
|
+
let rects = await platform.getElementRects({
|
221
|
+
reference,
|
222
|
+
floating,
|
223
|
+
strategy
|
224
|
+
});
|
225
|
+
let {
|
226
|
+
x,
|
227
|
+
y
|
228
|
+
} = computeCoordsFromPlacement(rects, placement, rtl);
|
229
|
+
let statefulPlacement = placement;
|
230
|
+
let middlewareData = {};
|
231
|
+
let resetCount = 0;
|
232
|
+
for (let i = 0; i < validMiddleware.length; i++) {
|
233
|
+
const {
|
234
|
+
name,
|
235
|
+
fn
|
236
|
+
} = validMiddleware[i];
|
237
|
+
const {
|
238
|
+
x: nextX,
|
239
|
+
y: nextY,
|
240
|
+
data,
|
241
|
+
reset
|
242
|
+
} = await fn({
|
243
|
+
x,
|
244
|
+
y,
|
245
|
+
initialPlacement: placement,
|
246
|
+
placement: statefulPlacement,
|
247
|
+
strategy,
|
248
|
+
middlewareData,
|
249
|
+
rects,
|
250
|
+
platform,
|
251
|
+
elements: {
|
252
|
+
reference,
|
253
|
+
floating
|
254
|
+
}
|
255
|
+
});
|
256
|
+
x = nextX != null ? nextX : x;
|
257
|
+
y = nextY != null ? nextY : y;
|
258
|
+
middlewareData = {
|
259
|
+
...middlewareData,
|
260
|
+
[name]: {
|
261
|
+
...middlewareData[name],
|
262
|
+
...data
|
263
|
+
}
|
264
|
+
};
|
265
|
+
if (reset && resetCount <= 50) {
|
266
|
+
resetCount++;
|
267
|
+
if (typeof reset === 'object') {
|
268
|
+
if (reset.placement) {
|
269
|
+
statefulPlacement = reset.placement;
|
270
|
+
}
|
271
|
+
if (reset.rects) {
|
272
|
+
rects = reset.rects === true ? await platform.getElementRects({
|
273
|
+
reference,
|
274
|
+
floating,
|
275
|
+
strategy
|
276
|
+
}) : reset.rects;
|
277
|
+
}
|
278
|
+
({
|
279
|
+
x,
|
280
|
+
y
|
281
|
+
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
282
|
+
}
|
283
|
+
i = -1;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
return {
|
287
|
+
x,
|
288
|
+
y,
|
289
|
+
placement: statefulPlacement,
|
290
|
+
strategy,
|
291
|
+
middlewareData
|
292
|
+
};
|
293
|
+
};
|
294
|
+
|
295
|
+
/**
|
296
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
297
|
+
* element is overflowing a given clipping boundary on each side.
|
298
|
+
* - positive = overflowing the boundary by that number of pixels
|
299
|
+
* - negative = how many pixels left before it will overflow
|
300
|
+
* - 0 = lies flush with the boundary
|
301
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
302
|
+
*/
|
303
|
+
async function detectOverflow(state, options) {
|
304
|
+
var _await$platform$isEle;
|
305
|
+
if (options === void 0) {
|
306
|
+
options = {};
|
307
|
+
}
|
308
|
+
const {
|
309
|
+
x,
|
310
|
+
y,
|
311
|
+
platform,
|
312
|
+
rects,
|
313
|
+
elements,
|
314
|
+
strategy
|
315
|
+
} = state;
|
316
|
+
const {
|
317
|
+
boundary = 'clippingAncestors',
|
318
|
+
rootBoundary = 'viewport',
|
319
|
+
elementContext = 'floating',
|
320
|
+
altBoundary = false,
|
321
|
+
padding = 0
|
322
|
+
} = evaluate(options, state);
|
323
|
+
const paddingObject = getPaddingObject(padding);
|
324
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
325
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
326
|
+
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
327
|
+
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))),
|
328
|
+
boundary,
|
329
|
+
rootBoundary,
|
330
|
+
strategy
|
331
|
+
}));
|
332
|
+
const rect = elementContext === 'floating' ? {
|
333
|
+
x,
|
334
|
+
y,
|
335
|
+
width: rects.floating.width,
|
336
|
+
height: rects.floating.height
|
337
|
+
} : rects.reference;
|
338
|
+
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
339
|
+
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
340
|
+
x: 1,
|
341
|
+
y: 1
|
342
|
+
} : {
|
343
|
+
x: 1,
|
344
|
+
y: 1
|
345
|
+
};
|
346
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
347
|
+
elements,
|
348
|
+
rect,
|
349
|
+
offsetParent,
|
350
|
+
strategy
|
351
|
+
}) : rect);
|
352
|
+
return {
|
353
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
354
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
355
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
356
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
357
|
+
};
|
358
|
+
}
|
359
|
+
|
360
|
+
/**
|
361
|
+
* Provides data to position an inner element of the floating element so that it
|
362
|
+
* appears centered to the reference element.
|
363
|
+
* @see https://floating-ui.com/docs/arrow
|
364
|
+
*/
|
365
|
+
const arrow$1 = options => ({
|
366
|
+
name: 'arrow',
|
367
|
+
options,
|
368
|
+
async fn(state) {
|
369
|
+
const {
|
370
|
+
x,
|
371
|
+
y,
|
372
|
+
placement,
|
373
|
+
rects,
|
374
|
+
platform,
|
375
|
+
elements,
|
376
|
+
middlewareData
|
377
|
+
} = state;
|
378
|
+
// Since `element` is required, we don't Partial<> the type.
|
379
|
+
const {
|
380
|
+
element,
|
381
|
+
padding = 0
|
382
|
+
} = evaluate(options, state) || {};
|
383
|
+
if (element == null) {
|
384
|
+
return {};
|
385
|
+
}
|
386
|
+
const paddingObject = getPaddingObject(padding);
|
387
|
+
const coords = {
|
388
|
+
x,
|
389
|
+
y
|
390
|
+
};
|
391
|
+
const axis = getAlignmentAxis(placement);
|
392
|
+
const length = getAxisLength(axis);
|
393
|
+
const arrowDimensions = await platform.getDimensions(element);
|
394
|
+
const isYAxis = axis === 'y';
|
395
|
+
const minProp = isYAxis ? 'top' : 'left';
|
396
|
+
const maxProp = isYAxis ? 'bottom' : 'right';
|
397
|
+
const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
|
398
|
+
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
399
|
+
const startDiff = coords[axis] - rects.reference[axis];
|
400
|
+
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
401
|
+
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
402
|
+
|
403
|
+
// DOM platform can return `window` as the `offsetParent`.
|
404
|
+
if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
|
405
|
+
clientSize = elements.floating[clientProp] || rects.floating[length];
|
406
|
+
}
|
407
|
+
const centerToReference = endDiff / 2 - startDiff / 2;
|
408
|
+
|
409
|
+
// If the padding is large enough that it causes the arrow to no longer be
|
410
|
+
// centered, modify the padding so that it is centered.
|
411
|
+
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
412
|
+
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
413
|
+
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
414
|
+
|
415
|
+
// Make sure the arrow doesn't overflow the floating element if the center
|
416
|
+
// point is outside the floating element's bounds.
|
417
|
+
const min$1 = minPadding;
|
418
|
+
const max = clientSize - arrowDimensions[length] - maxPadding;
|
419
|
+
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
420
|
+
const offset = clamp(min$1, center, max);
|
421
|
+
|
422
|
+
// If the reference is small enough that the arrow's padding causes it to
|
423
|
+
// to point to nothing for an aligned placement, adjust the offset of the
|
424
|
+
// floating element itself. To ensure `shift()` continues to take action,
|
425
|
+
// a single reset is performed when this is true.
|
426
|
+
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
427
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
428
|
+
return {
|
429
|
+
[axis]: coords[axis] + alignmentOffset,
|
430
|
+
data: {
|
431
|
+
[axis]: offset,
|
432
|
+
centerOffset: center - offset - alignmentOffset,
|
433
|
+
...(shouldAddOffset && {
|
434
|
+
alignmentOffset
|
435
|
+
})
|
436
|
+
},
|
437
|
+
reset: shouldAddOffset
|
438
|
+
};
|
439
|
+
}
|
440
|
+
});
|
441
|
+
|
442
|
+
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
443
|
+
const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
|
444
|
+
return allowedPlacementsSortedByAlignment.filter(placement => {
|
445
|
+
if (alignment) {
|
446
|
+
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
447
|
+
}
|
448
|
+
return true;
|
449
|
+
});
|
450
|
+
}
|
451
|
+
/**
|
452
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
453
|
+
* that has the most space available automatically, without needing to specify a
|
454
|
+
* preferred placement. Alternative to `flip`.
|
455
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
456
|
+
*/
|
457
|
+
const autoPlacement$1 = function (options) {
|
458
|
+
if (options === void 0) {
|
459
|
+
options = {};
|
460
|
+
}
|
461
|
+
return {
|
462
|
+
name: 'autoPlacement',
|
463
|
+
options,
|
464
|
+
async fn(state) {
|
465
|
+
var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
|
466
|
+
const {
|
467
|
+
rects,
|
468
|
+
middlewareData,
|
469
|
+
placement,
|
470
|
+
platform,
|
471
|
+
elements
|
472
|
+
} = state;
|
473
|
+
const {
|
474
|
+
crossAxis = false,
|
475
|
+
alignment,
|
476
|
+
allowedPlacements = placements,
|
477
|
+
autoAlignment = true,
|
478
|
+
...detectOverflowOptions
|
479
|
+
} = evaluate(options, state);
|
480
|
+
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
481
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
482
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
|
483
|
+
const currentPlacement = placements$1[currentIndex];
|
484
|
+
if (currentPlacement == null) {
|
485
|
+
return {};
|
486
|
+
}
|
487
|
+
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
488
|
+
|
489
|
+
// Make `computeCoords` start from the right place.
|
490
|
+
if (placement !== currentPlacement) {
|
491
|
+
return {
|
492
|
+
reset: {
|
493
|
+
placement: placements$1[0]
|
494
|
+
}
|
495
|
+
};
|
496
|
+
}
|
497
|
+
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
498
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
|
499
|
+
placement: currentPlacement,
|
500
|
+
overflows: currentOverflows
|
501
|
+
}];
|
502
|
+
const nextPlacement = placements$1[currentIndex + 1];
|
503
|
+
|
504
|
+
// There are more placements to check.
|
505
|
+
if (nextPlacement) {
|
506
|
+
return {
|
507
|
+
data: {
|
508
|
+
index: currentIndex + 1,
|
509
|
+
overflows: allOverflows
|
510
|
+
},
|
511
|
+
reset: {
|
512
|
+
placement: nextPlacement
|
513
|
+
}
|
514
|
+
};
|
515
|
+
}
|
516
|
+
const placementsSortedByMostSpace = allOverflows.map(d => {
|
517
|
+
const alignment = getAlignment(d.placement);
|
518
|
+
return [d.placement, alignment && crossAxis ?
|
519
|
+
// Check along the mainAxis and main crossAxis side.
|
520
|
+
d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
|
521
|
+
// Check only the mainAxis.
|
522
|
+
d.overflows[0], d.overflows];
|
523
|
+
}).sort((a, b) => a[1] - b[1]);
|
524
|
+
const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
|
525
|
+
// Aligned placements should not check their opposite crossAxis
|
526
|
+
// side.
|
527
|
+
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
528
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
529
|
+
if (resetPlacement !== placement) {
|
530
|
+
return {
|
531
|
+
data: {
|
532
|
+
index: currentIndex + 1,
|
533
|
+
overflows: allOverflows
|
534
|
+
},
|
535
|
+
reset: {
|
536
|
+
placement: resetPlacement
|
537
|
+
}
|
538
|
+
};
|
539
|
+
}
|
540
|
+
return {};
|
541
|
+
}
|
542
|
+
};
|
543
|
+
};
|
544
|
+
|
545
|
+
/**
|
546
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
547
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
548
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
549
|
+
* @see https://floating-ui.com/docs/flip
|
550
|
+
*/
|
551
|
+
const flip$1 = function (options) {
|
552
|
+
if (options === void 0) {
|
553
|
+
options = {};
|
554
|
+
}
|
555
|
+
return {
|
556
|
+
name: 'flip',
|
557
|
+
options,
|
558
|
+
async fn(state) {
|
559
|
+
var _middlewareData$arrow, _middlewareData$flip;
|
560
|
+
const {
|
561
|
+
placement,
|
562
|
+
middlewareData,
|
563
|
+
rects,
|
564
|
+
initialPlacement,
|
565
|
+
platform,
|
566
|
+
elements
|
567
|
+
} = state;
|
568
|
+
const {
|
569
|
+
mainAxis: checkMainAxis = true,
|
570
|
+
crossAxis: checkCrossAxis = true,
|
571
|
+
fallbackPlacements: specifiedFallbackPlacements,
|
572
|
+
fallbackStrategy = 'bestFit',
|
573
|
+
fallbackAxisSideDirection = 'none',
|
574
|
+
flipAlignment = true,
|
575
|
+
...detectOverflowOptions
|
576
|
+
} = evaluate(options, state);
|
577
|
+
|
578
|
+
// If a reset by the arrow was caused due to an alignment offset being
|
579
|
+
// added, we should skip any logic now since `flip()` has already done its
|
580
|
+
// work.
|
581
|
+
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
582
|
+
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
583
|
+
return {};
|
584
|
+
}
|
585
|
+
const side = getSide(placement);
|
586
|
+
const initialSideAxis = getSideAxis(initialPlacement);
|
587
|
+
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
588
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
589
|
+
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
590
|
+
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
591
|
+
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
592
|
+
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
593
|
+
}
|
594
|
+
const placements = [initialPlacement, ...fallbackPlacements];
|
595
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
596
|
+
const overflows = [];
|
597
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
598
|
+
if (checkMainAxis) {
|
599
|
+
overflows.push(overflow[side]);
|
600
|
+
}
|
601
|
+
if (checkCrossAxis) {
|
602
|
+
const sides = getAlignmentSides(placement, rects, rtl);
|
603
|
+
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
604
|
+
}
|
605
|
+
overflowsData = [...overflowsData, {
|
606
|
+
placement,
|
607
|
+
overflows
|
608
|
+
}];
|
609
|
+
|
610
|
+
// One or more sides is overflowing.
|
611
|
+
if (!overflows.every(side => side <= 0)) {
|
612
|
+
var _middlewareData$flip2, _overflowsData$filter;
|
613
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
614
|
+
const nextPlacement = placements[nextIndex];
|
615
|
+
if (nextPlacement) {
|
616
|
+
// Try next placement and re-run the lifecycle.
|
617
|
+
return {
|
618
|
+
data: {
|
619
|
+
index: nextIndex,
|
620
|
+
overflows: overflowsData
|
621
|
+
},
|
622
|
+
reset: {
|
623
|
+
placement: nextPlacement
|
624
|
+
}
|
625
|
+
};
|
626
|
+
}
|
627
|
+
|
628
|
+
// First, find the candidates that fit on the mainAxis side of overflow,
|
629
|
+
// then find the placement that fits the best on the main crossAxis side.
|
630
|
+
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;
|
631
|
+
|
632
|
+
// Otherwise fallback.
|
633
|
+
if (!resetPlacement) {
|
634
|
+
switch (fallbackStrategy) {
|
635
|
+
case 'bestFit':
|
636
|
+
{
|
637
|
+
var _overflowsData$filter2;
|
638
|
+
const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
|
639
|
+
if (hasFallbackAxisSideDirection) {
|
640
|
+
const currentSideAxis = getSideAxis(d.placement);
|
641
|
+
return currentSideAxis === initialSideAxis ||
|
642
|
+
// Create a bias to the `y` side axis due to horizontal
|
643
|
+
// reading directions favoring greater width.
|
644
|
+
currentSideAxis === 'y';
|
645
|
+
}
|
646
|
+
return true;
|
647
|
+
}).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
648
|
+
if (placement) {
|
649
|
+
resetPlacement = placement;
|
650
|
+
}
|
651
|
+
break;
|
652
|
+
}
|
653
|
+
case 'initialPlacement':
|
654
|
+
resetPlacement = initialPlacement;
|
655
|
+
break;
|
656
|
+
}
|
657
|
+
}
|
658
|
+
if (placement !== resetPlacement) {
|
659
|
+
return {
|
660
|
+
reset: {
|
661
|
+
placement: resetPlacement
|
662
|
+
}
|
663
|
+
};
|
664
|
+
}
|
665
|
+
}
|
666
|
+
return {};
|
667
|
+
}
|
668
|
+
};
|
669
|
+
};
|
670
|
+
|
671
|
+
function getSideOffsets(overflow, rect) {
|
672
|
+
return {
|
673
|
+
top: overflow.top - rect.height,
|
674
|
+
right: overflow.right - rect.width,
|
675
|
+
bottom: overflow.bottom - rect.height,
|
676
|
+
left: overflow.left - rect.width
|
677
|
+
};
|
678
|
+
}
|
679
|
+
function isAnySideFullyClipped(overflow) {
|
680
|
+
return sides.some(side => overflow[side] >= 0);
|
681
|
+
}
|
682
|
+
/**
|
683
|
+
* Provides data to hide the floating element in applicable situations, such as
|
684
|
+
* when it is not in the same clipping context as the reference element.
|
685
|
+
* @see https://floating-ui.com/docs/hide
|
686
|
+
*/
|
687
|
+
const hide$1 = function (options) {
|
688
|
+
if (options === void 0) {
|
689
|
+
options = {};
|
690
|
+
}
|
691
|
+
return {
|
692
|
+
name: 'hide',
|
693
|
+
options,
|
694
|
+
async fn(state) {
|
695
|
+
const {
|
696
|
+
rects
|
697
|
+
} = state;
|
698
|
+
const {
|
699
|
+
strategy = 'referenceHidden',
|
700
|
+
...detectOverflowOptions
|
701
|
+
} = evaluate(options, state);
|
702
|
+
switch (strategy) {
|
703
|
+
case 'referenceHidden':
|
704
|
+
{
|
705
|
+
const overflow = await detectOverflow(state, {
|
706
|
+
...detectOverflowOptions,
|
707
|
+
elementContext: 'reference'
|
708
|
+
});
|
709
|
+
const offsets = getSideOffsets(overflow, rects.reference);
|
710
|
+
return {
|
711
|
+
data: {
|
712
|
+
referenceHiddenOffsets: offsets,
|
713
|
+
referenceHidden: isAnySideFullyClipped(offsets)
|
714
|
+
}
|
715
|
+
};
|
716
|
+
}
|
717
|
+
case 'escaped':
|
718
|
+
{
|
719
|
+
const overflow = await detectOverflow(state, {
|
720
|
+
...detectOverflowOptions,
|
721
|
+
altBoundary: true
|
722
|
+
});
|
723
|
+
const offsets = getSideOffsets(overflow, rects.floating);
|
724
|
+
return {
|
725
|
+
data: {
|
726
|
+
escapedOffsets: offsets,
|
727
|
+
escaped: isAnySideFullyClipped(offsets)
|
728
|
+
}
|
729
|
+
};
|
730
|
+
}
|
731
|
+
default:
|
732
|
+
{
|
733
|
+
return {};
|
734
|
+
}
|
735
|
+
}
|
736
|
+
}
|
737
|
+
};
|
738
|
+
};
|
739
|
+
|
740
|
+
function getBoundingRect(rects) {
|
741
|
+
const minX = min(...rects.map(rect => rect.left));
|
742
|
+
const minY = min(...rects.map(rect => rect.top));
|
743
|
+
const maxX = max(...rects.map(rect => rect.right));
|
744
|
+
const maxY = max(...rects.map(rect => rect.bottom));
|
745
|
+
return {
|
746
|
+
x: minX,
|
747
|
+
y: minY,
|
748
|
+
width: maxX - minX,
|
749
|
+
height: maxY - minY
|
750
|
+
};
|
751
|
+
}
|
752
|
+
function getRectsByLine(rects) {
|
753
|
+
const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
|
754
|
+
const groups = [];
|
755
|
+
let prevRect = null;
|
756
|
+
for (let i = 0; i < sortedRects.length; i++) {
|
757
|
+
const rect = sortedRects[i];
|
758
|
+
if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
|
759
|
+
groups.push([rect]);
|
760
|
+
} else {
|
761
|
+
groups[groups.length - 1].push(rect);
|
762
|
+
}
|
763
|
+
prevRect = rect;
|
764
|
+
}
|
765
|
+
return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
|
766
|
+
}
|
767
|
+
/**
|
768
|
+
* Provides improved positioning for inline reference elements that can span
|
769
|
+
* over multiple lines, such as hyperlinks or range selections.
|
770
|
+
* @see https://floating-ui.com/docs/inline
|
771
|
+
*/
|
772
|
+
const inline = function (options) {
|
773
|
+
if (options === void 0) {
|
774
|
+
options = {};
|
775
|
+
}
|
776
|
+
return {
|
777
|
+
name: 'inline',
|
778
|
+
options,
|
779
|
+
async fn(state) {
|
780
|
+
const {
|
781
|
+
placement,
|
782
|
+
elements,
|
783
|
+
rects,
|
784
|
+
platform,
|
785
|
+
strategy
|
786
|
+
} = state;
|
787
|
+
// A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
|
788
|
+
// ClientRect's bounds, despite the event listener being triggered. A
|
789
|
+
// padding of 2 seems to handle this issue.
|
790
|
+
const {
|
791
|
+
padding = 2,
|
792
|
+
x,
|
793
|
+
y
|
794
|
+
} = evaluate(options, state);
|
795
|
+
const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
|
796
|
+
const clientRects = getRectsByLine(nativeClientRects);
|
797
|
+
const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
|
798
|
+
const paddingObject = getPaddingObject(padding);
|
799
|
+
function getBoundingClientRect() {
|
800
|
+
// There are two rects and they are disjoined.
|
801
|
+
if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
|
802
|
+
// Find the first rect in which the point is fully inside.
|
803
|
+
return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
|
804
|
+
}
|
805
|
+
|
806
|
+
// There are 2 or more connected rects.
|
807
|
+
if (clientRects.length >= 2) {
|
808
|
+
if (getSideAxis(placement) === 'y') {
|
809
|
+
const firstRect = clientRects[0];
|
810
|
+
const lastRect = clientRects[clientRects.length - 1];
|
811
|
+
const isTop = getSide(placement) === 'top';
|
812
|
+
const top = firstRect.top;
|
813
|
+
const bottom = lastRect.bottom;
|
814
|
+
const left = isTop ? firstRect.left : lastRect.left;
|
815
|
+
const right = isTop ? firstRect.right : lastRect.right;
|
816
|
+
const width = right - left;
|
817
|
+
const height = bottom - top;
|
818
|
+
return {
|
819
|
+
top,
|
820
|
+
bottom,
|
821
|
+
left,
|
822
|
+
right,
|
823
|
+
width,
|
824
|
+
height,
|
825
|
+
x: left,
|
826
|
+
y: top
|
827
|
+
};
|
828
|
+
}
|
829
|
+
const isLeftSide = getSide(placement) === 'left';
|
830
|
+
const maxRight = max(...clientRects.map(rect => rect.right));
|
831
|
+
const minLeft = min(...clientRects.map(rect => rect.left));
|
832
|
+
const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
|
833
|
+
const top = measureRects[0].top;
|
834
|
+
const bottom = measureRects[measureRects.length - 1].bottom;
|
835
|
+
const left = minLeft;
|
836
|
+
const right = maxRight;
|
837
|
+
const width = right - left;
|
838
|
+
const height = bottom - top;
|
839
|
+
return {
|
840
|
+
top,
|
841
|
+
bottom,
|
842
|
+
left,
|
843
|
+
right,
|
844
|
+
width,
|
845
|
+
height,
|
846
|
+
x: left,
|
847
|
+
y: top
|
848
|
+
};
|
849
|
+
}
|
850
|
+
return fallback;
|
851
|
+
}
|
852
|
+
const resetRects = await platform.getElementRects({
|
853
|
+
reference: {
|
854
|
+
getBoundingClientRect
|
855
|
+
},
|
856
|
+
floating: elements.floating,
|
857
|
+
strategy
|
858
|
+
});
|
859
|
+
if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {
|
860
|
+
return {
|
861
|
+
reset: {
|
862
|
+
rects: resetRects
|
863
|
+
}
|
864
|
+
};
|
865
|
+
}
|
866
|
+
return {};
|
867
|
+
}
|
868
|
+
};
|
869
|
+
};
|
870
|
+
|
871
|
+
// For type backwards-compatibility, the `OffsetOptions` type was also
|
872
|
+
// Derivable.
|
873
|
+
|
874
|
+
async function convertValueToCoords(state, options) {
|
875
|
+
const {
|
876
|
+
placement,
|
877
|
+
platform,
|
878
|
+
elements
|
879
|
+
} = state;
|
880
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
881
|
+
const side = getSide(placement);
|
882
|
+
const alignment = getAlignment(placement);
|
883
|
+
const isVertical = getSideAxis(placement) === 'y';
|
884
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
885
|
+
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
886
|
+
const rawValue = evaluate(options, state);
|
887
|
+
|
888
|
+
// eslint-disable-next-line prefer-const
|
889
|
+
let {
|
890
|
+
mainAxis,
|
891
|
+
crossAxis,
|
892
|
+
alignmentAxis
|
893
|
+
} = typeof rawValue === 'number' ? {
|
894
|
+
mainAxis: rawValue,
|
895
|
+
crossAxis: 0,
|
896
|
+
alignmentAxis: null
|
897
|
+
} : {
|
898
|
+
mainAxis: 0,
|
899
|
+
crossAxis: 0,
|
900
|
+
alignmentAxis: null,
|
901
|
+
...rawValue
|
902
|
+
};
|
903
|
+
if (alignment && typeof alignmentAxis === 'number') {
|
904
|
+
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
905
|
+
}
|
906
|
+
return isVertical ? {
|
907
|
+
x: crossAxis * crossAxisMulti,
|
908
|
+
y: mainAxis * mainAxisMulti
|
909
|
+
} : {
|
910
|
+
x: mainAxis * mainAxisMulti,
|
911
|
+
y: crossAxis * crossAxisMulti
|
912
|
+
};
|
913
|
+
}
|
914
|
+
|
915
|
+
/**
|
916
|
+
* Modifies the placement by translating the floating element along the
|
917
|
+
* specified axes.
|
918
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
919
|
+
* object may be passed.
|
920
|
+
* @see https://floating-ui.com/docs/offset
|
921
|
+
*/
|
922
|
+
const offset$1 = function (options) {
|
923
|
+
if (options === void 0) {
|
924
|
+
options = 0;
|
925
|
+
}
|
926
|
+
return {
|
927
|
+
name: 'offset',
|
928
|
+
options,
|
929
|
+
async fn(state) {
|
930
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
931
|
+
const {
|
932
|
+
x,
|
933
|
+
y,
|
934
|
+
placement,
|
935
|
+
middlewareData
|
936
|
+
} = state;
|
937
|
+
const diffCoords = await convertValueToCoords(state, options);
|
938
|
+
|
939
|
+
// If the placement is the same and the arrow caused an alignment offset
|
940
|
+
// then we don't need to change the positioning coordinates.
|
941
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
942
|
+
return {};
|
943
|
+
}
|
944
|
+
return {
|
945
|
+
x: x + diffCoords.x,
|
946
|
+
y: y + diffCoords.y,
|
947
|
+
data: {
|
948
|
+
...diffCoords,
|
949
|
+
placement
|
950
|
+
}
|
951
|
+
};
|
952
|
+
}
|
953
|
+
};
|
954
|
+
};
|
955
|
+
|
956
|
+
/**
|
957
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
958
|
+
* keep it in view when it will overflow the clipping boundary.
|
959
|
+
* @see https://floating-ui.com/docs/shift
|
960
|
+
*/
|
961
|
+
const shift$1 = function (options) {
|
962
|
+
if (options === void 0) {
|
963
|
+
options = {};
|
964
|
+
}
|
965
|
+
return {
|
966
|
+
name: 'shift',
|
967
|
+
options,
|
968
|
+
async fn(state) {
|
969
|
+
const {
|
970
|
+
x,
|
971
|
+
y,
|
972
|
+
placement
|
973
|
+
} = state;
|
974
|
+
const {
|
975
|
+
mainAxis: checkMainAxis = true,
|
976
|
+
crossAxis: checkCrossAxis = false,
|
977
|
+
limiter = {
|
978
|
+
fn: _ref => {
|
979
|
+
let {
|
980
|
+
x,
|
981
|
+
y
|
982
|
+
} = _ref;
|
983
|
+
return {
|
984
|
+
x,
|
985
|
+
y
|
986
|
+
};
|
987
|
+
}
|
988
|
+
},
|
989
|
+
...detectOverflowOptions
|
990
|
+
} = evaluate(options, state);
|
991
|
+
const coords = {
|
992
|
+
x,
|
993
|
+
y
|
994
|
+
};
|
995
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
996
|
+
const crossAxis = getSideAxis(getSide(placement));
|
997
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
998
|
+
let mainAxisCoord = coords[mainAxis];
|
999
|
+
let crossAxisCoord = coords[crossAxis];
|
1000
|
+
if (checkMainAxis) {
|
1001
|
+
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
1002
|
+
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
1003
|
+
const min = mainAxisCoord + overflow[minSide];
|
1004
|
+
const max = mainAxisCoord - overflow[maxSide];
|
1005
|
+
mainAxisCoord = clamp(min, mainAxisCoord, max);
|
1006
|
+
}
|
1007
|
+
if (checkCrossAxis) {
|
1008
|
+
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
1009
|
+
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
1010
|
+
const min = crossAxisCoord + overflow[minSide];
|
1011
|
+
const max = crossAxisCoord - overflow[maxSide];
|
1012
|
+
crossAxisCoord = clamp(min, crossAxisCoord, max);
|
1013
|
+
}
|
1014
|
+
const limitedCoords = limiter.fn({
|
1015
|
+
...state,
|
1016
|
+
[mainAxis]: mainAxisCoord,
|
1017
|
+
[crossAxis]: crossAxisCoord
|
1018
|
+
});
|
1019
|
+
return {
|
1020
|
+
...limitedCoords,
|
1021
|
+
data: {
|
1022
|
+
x: limitedCoords.x - x,
|
1023
|
+
y: limitedCoords.y - y
|
1024
|
+
}
|
1025
|
+
};
|
1026
|
+
}
|
1027
|
+
};
|
1028
|
+
};
|
1029
|
+
/**
|
1030
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
1031
|
+
*/
|
1032
|
+
const limitShift = function (options) {
|
1033
|
+
if (options === void 0) {
|
1034
|
+
options = {};
|
1035
|
+
}
|
1036
|
+
return {
|
1037
|
+
options,
|
1038
|
+
fn(state) {
|
1039
|
+
const {
|
1040
|
+
x,
|
1041
|
+
y,
|
1042
|
+
placement,
|
1043
|
+
rects,
|
1044
|
+
middlewareData
|
1045
|
+
} = state;
|
1046
|
+
const {
|
1047
|
+
offset = 0,
|
1048
|
+
mainAxis: checkMainAxis = true,
|
1049
|
+
crossAxis: checkCrossAxis = true
|
1050
|
+
} = evaluate(options, state);
|
1051
|
+
const coords = {
|
1052
|
+
x,
|
1053
|
+
y
|
1054
|
+
};
|
1055
|
+
const crossAxis = getSideAxis(placement);
|
1056
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
1057
|
+
let mainAxisCoord = coords[mainAxis];
|
1058
|
+
let crossAxisCoord = coords[crossAxis];
|
1059
|
+
const rawOffset = evaluate(offset, state);
|
1060
|
+
const computedOffset = typeof rawOffset === 'number' ? {
|
1061
|
+
mainAxis: rawOffset,
|
1062
|
+
crossAxis: 0
|
1063
|
+
} : {
|
1064
|
+
mainAxis: 0,
|
1065
|
+
crossAxis: 0,
|
1066
|
+
...rawOffset
|
1067
|
+
};
|
1068
|
+
if (checkMainAxis) {
|
1069
|
+
const len = mainAxis === 'y' ? 'height' : 'width';
|
1070
|
+
const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
|
1071
|
+
const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
1072
|
+
if (mainAxisCoord < limitMin) {
|
1073
|
+
mainAxisCoord = limitMin;
|
1074
|
+
} else if (mainAxisCoord > limitMax) {
|
1075
|
+
mainAxisCoord = limitMax;
|
1076
|
+
}
|
1077
|
+
}
|
1078
|
+
if (checkCrossAxis) {
|
1079
|
+
var _middlewareData$offse, _middlewareData$offse2;
|
1080
|
+
const len = mainAxis === 'y' ? 'width' : 'height';
|
1081
|
+
const isOriginSide = ['top', 'left'].includes(getSide(placement));
|
1082
|
+
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
1083
|
+
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
1084
|
+
if (crossAxisCoord < limitMin) {
|
1085
|
+
crossAxisCoord = limitMin;
|
1086
|
+
} else if (crossAxisCoord > limitMax) {
|
1087
|
+
crossAxisCoord = limitMax;
|
1088
|
+
}
|
1089
|
+
}
|
1090
|
+
return {
|
1091
|
+
[mainAxis]: mainAxisCoord,
|
1092
|
+
[crossAxis]: crossAxisCoord
|
1093
|
+
};
|
1094
|
+
}
|
1095
|
+
};
|
1096
|
+
};
|
1097
|
+
|
1098
|
+
/**
|
1099
|
+
* Provides data that allows you to change the size of the floating element —
|
1100
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
1101
|
+
* width of the reference element.
|
1102
|
+
* @see https://floating-ui.com/docs/size
|
1103
|
+
*/
|
1104
|
+
const size = function (options) {
|
1105
|
+
if (options === void 0) {
|
1106
|
+
options = {};
|
1107
|
+
}
|
1108
|
+
return {
|
1109
|
+
name: 'size',
|
1110
|
+
options,
|
1111
|
+
async fn(state) {
|
1112
|
+
const {
|
1113
|
+
placement,
|
1114
|
+
rects,
|
1115
|
+
platform,
|
1116
|
+
elements
|
1117
|
+
} = state;
|
1118
|
+
const {
|
1119
|
+
apply = () => {},
|
1120
|
+
...detectOverflowOptions
|
1121
|
+
} = evaluate(options, state);
|
1122
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
1123
|
+
const side = getSide(placement);
|
1124
|
+
const alignment = getAlignment(placement);
|
1125
|
+
const isYAxis = getSideAxis(placement) === 'y';
|
1126
|
+
const {
|
1127
|
+
width,
|
1128
|
+
height
|
1129
|
+
} = rects.floating;
|
1130
|
+
let heightSide;
|
1131
|
+
let widthSide;
|
1132
|
+
if (side === 'top' || side === 'bottom') {
|
1133
|
+
heightSide = side;
|
1134
|
+
widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
|
1135
|
+
} else {
|
1136
|
+
widthSide = side;
|
1137
|
+
heightSide = alignment === 'end' ? 'top' : 'bottom';
|
1138
|
+
}
|
1139
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
1140
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
1141
|
+
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
1142
|
+
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
1143
|
+
const noShift = !state.middlewareData.shift;
|
1144
|
+
let availableHeight = overflowAvailableHeight;
|
1145
|
+
let availableWidth = overflowAvailableWidth;
|
1146
|
+
if (isYAxis) {
|
1147
|
+
availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
1148
|
+
} else {
|
1149
|
+
availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
1150
|
+
}
|
1151
|
+
if (noShift && !alignment) {
|
1152
|
+
const xMin = max(overflow.left, 0);
|
1153
|
+
const xMax = max(overflow.right, 0);
|
1154
|
+
const yMin = max(overflow.top, 0);
|
1155
|
+
const yMax = max(overflow.bottom, 0);
|
1156
|
+
if (isYAxis) {
|
1157
|
+
availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
|
1158
|
+
} else {
|
1159
|
+
availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
1160
|
+
}
|
1161
|
+
}
|
1162
|
+
await apply({
|
1163
|
+
...state,
|
1164
|
+
availableWidth,
|
1165
|
+
availableHeight
|
1166
|
+
});
|
1167
|
+
const nextDimensions = await platform.getDimensions(elements.floating);
|
1168
|
+
if (width !== nextDimensions.width || height !== nextDimensions.height) {
|
1169
|
+
return {
|
1170
|
+
reset: {
|
1171
|
+
rects: true
|
1172
|
+
}
|
1173
|
+
};
|
1174
|
+
}
|
1175
|
+
return {};
|
1176
|
+
}
|
1177
|
+
};
|
1178
|
+
};
|
1179
|
+
|
1180
|
+
function hasWindow() {
|
1181
|
+
return typeof window !== 'undefined';
|
1182
|
+
}
|
1183
|
+
function getNodeName(node) {
|
1184
|
+
if (isNode(node)) {
|
1185
|
+
return (node.nodeName || '').toLowerCase();
|
1186
|
+
}
|
1187
|
+
// Mocked nodes in testing environments may not be instances of Node. By
|
1188
|
+
// returning `#document` an infinite loop won't occur.
|
1189
|
+
// https://github.com/floating-ui/floating-ui/issues/2317
|
1190
|
+
return '#document';
|
1191
|
+
}
|
1192
|
+
function getWindow(node) {
|
1193
|
+
var _node$ownerDocument;
|
1194
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
1195
|
+
}
|
1196
|
+
function getDocumentElement(node) {
|
1197
|
+
var _ref;
|
1198
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
1199
|
+
}
|
1200
|
+
function isNode(value) {
|
1201
|
+
if (!hasWindow()) {
|
1202
|
+
return false;
|
1203
|
+
}
|
1204
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
1205
|
+
}
|
1206
|
+
function isElement(value) {
|
1207
|
+
if (!hasWindow()) {
|
1208
|
+
return false;
|
1209
|
+
}
|
1210
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
1211
|
+
}
|
1212
|
+
function isHTMLElement(value) {
|
1213
|
+
if (!hasWindow()) {
|
1214
|
+
return false;
|
1215
|
+
}
|
1216
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
1217
|
+
}
|
1218
|
+
function isShadowRoot(value) {
|
1219
|
+
if (!hasWindow() || typeof ShadowRoot === 'undefined') {
|
1220
|
+
return false;
|
1221
|
+
}
|
1222
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
1223
|
+
}
|
1224
|
+
function isOverflowElement(element) {
|
1225
|
+
const {
|
1226
|
+
overflow,
|
1227
|
+
overflowX,
|
1228
|
+
overflowY,
|
1229
|
+
display
|
1230
|
+
} = getComputedStyle$1(element);
|
1231
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
1232
|
+
}
|
1233
|
+
function isTableElement(element) {
|
1234
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
1235
|
+
}
|
1236
|
+
function isTopLayer(element) {
|
1237
|
+
return [':popover-open', ':modal'].some(selector => {
|
1238
|
+
try {
|
1239
|
+
return element.matches(selector);
|
1240
|
+
} catch (e) {
|
1241
|
+
return false;
|
1242
|
+
}
|
1243
|
+
});
|
1244
|
+
}
|
1245
|
+
function isContainingBlock(elementOrCss) {
|
1246
|
+
const webkit = isWebKit();
|
1247
|
+
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
1248
|
+
|
1249
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
1250
|
+
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));
|
1251
|
+
}
|
1252
|
+
function getContainingBlock(element) {
|
1253
|
+
let currentNode = getParentNode(element);
|
1254
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
1255
|
+
if (isContainingBlock(currentNode)) {
|
1256
|
+
return currentNode;
|
1257
|
+
} else if (isTopLayer(currentNode)) {
|
1258
|
+
return null;
|
1259
|
+
}
|
1260
|
+
currentNode = getParentNode(currentNode);
|
1261
|
+
}
|
1262
|
+
return null;
|
1263
|
+
}
|
1264
|
+
function isWebKit() {
|
1265
|
+
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
1266
|
+
return CSS.supports('-webkit-backdrop-filter', 'none');
|
1267
|
+
}
|
1268
|
+
function isLastTraversableNode(node) {
|
1269
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
1270
|
+
}
|
1271
|
+
function getComputedStyle$1(element) {
|
1272
|
+
return getWindow(element).getComputedStyle(element);
|
1273
|
+
}
|
1274
|
+
function getNodeScroll(element) {
|
1275
|
+
if (isElement(element)) {
|
1276
|
+
return {
|
1277
|
+
scrollLeft: element.scrollLeft,
|
1278
|
+
scrollTop: element.scrollTop
|
1279
|
+
};
|
1280
|
+
}
|
1281
|
+
return {
|
1282
|
+
scrollLeft: element.scrollX,
|
1283
|
+
scrollTop: element.scrollY
|
1284
|
+
};
|
1285
|
+
}
|
1286
|
+
function getParentNode(node) {
|
1287
|
+
if (getNodeName(node) === 'html') {
|
1288
|
+
return node;
|
1289
|
+
}
|
1290
|
+
const result =
|
1291
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
1292
|
+
node.assignedSlot ||
|
1293
|
+
// DOM Element detected.
|
1294
|
+
node.parentNode ||
|
1295
|
+
// ShadowRoot detected.
|
1296
|
+
isShadowRoot(node) && node.host ||
|
1297
|
+
// Fallback.
|
1298
|
+
getDocumentElement(node);
|
1299
|
+
return isShadowRoot(result) ? result.host : result;
|
1300
|
+
}
|
1301
|
+
function getNearestOverflowAncestor(node) {
|
1302
|
+
const parentNode = getParentNode(node);
|
1303
|
+
if (isLastTraversableNode(parentNode)) {
|
1304
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
1305
|
+
}
|
1306
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
1307
|
+
return parentNode;
|
1308
|
+
}
|
1309
|
+
return getNearestOverflowAncestor(parentNode);
|
1310
|
+
}
|
1311
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
1312
|
+
var _node$ownerDocument2;
|
1313
|
+
if (list === void 0) {
|
1314
|
+
list = [];
|
1315
|
+
}
|
1316
|
+
if (traverseIframes === void 0) {
|
1317
|
+
traverseIframes = true;
|
1318
|
+
}
|
1319
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
1320
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
1321
|
+
const win = getWindow(scrollableAncestor);
|
1322
|
+
if (isBody) {
|
1323
|
+
const frameElement = getFrameElement(win);
|
1324
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
1325
|
+
}
|
1326
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
1327
|
+
}
|
1328
|
+
function getFrameElement(win) {
|
1329
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
1330
|
+
}
|
1331
|
+
|
1332
|
+
function getCssDimensions(element) {
|
1333
|
+
const css = getComputedStyle$1(element);
|
1334
|
+
// In testing environments, the `width` and `height` properties are empty
|
1335
|
+
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
1336
|
+
let width = parseFloat(css.width) || 0;
|
1337
|
+
let height = parseFloat(css.height) || 0;
|
1338
|
+
const hasOffset = isHTMLElement(element);
|
1339
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
1340
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
1341
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
1342
|
+
if (shouldFallback) {
|
1343
|
+
width = offsetWidth;
|
1344
|
+
height = offsetHeight;
|
1345
|
+
}
|
1346
|
+
return {
|
1347
|
+
width,
|
1348
|
+
height,
|
1349
|
+
$: shouldFallback
|
1350
|
+
};
|
1351
|
+
}
|
1352
|
+
|
1353
|
+
function unwrapElement(element) {
|
1354
|
+
return !isElement(element) ? element.contextElement : element;
|
1355
|
+
}
|
1356
|
+
|
1357
|
+
function getScale(element) {
|
1358
|
+
const domElement = unwrapElement(element);
|
1359
|
+
if (!isHTMLElement(domElement)) {
|
1360
|
+
return createCoords(1);
|
1361
|
+
}
|
1362
|
+
const rect = domElement.getBoundingClientRect();
|
1363
|
+
const {
|
1364
|
+
width,
|
1365
|
+
height,
|
1366
|
+
$
|
1367
|
+
} = getCssDimensions(domElement);
|
1368
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
1369
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
1370
|
+
|
1371
|
+
// 0, NaN, or Infinity should always fallback to 1.
|
1372
|
+
|
1373
|
+
if (!x || !Number.isFinite(x)) {
|
1374
|
+
x = 1;
|
1375
|
+
}
|
1376
|
+
if (!y || !Number.isFinite(y)) {
|
1377
|
+
y = 1;
|
1378
|
+
}
|
1379
|
+
return {
|
1380
|
+
x,
|
1381
|
+
y
|
1382
|
+
};
|
1383
|
+
}
|
1384
|
+
|
1385
|
+
const noOffsets = /*#__PURE__*/createCoords(0);
|
1386
|
+
function getVisualOffsets(element) {
|
1387
|
+
const win = getWindow(element);
|
1388
|
+
if (!isWebKit() || !win.visualViewport) {
|
1389
|
+
return noOffsets;
|
1390
|
+
}
|
1391
|
+
return {
|
1392
|
+
x: win.visualViewport.offsetLeft,
|
1393
|
+
y: win.visualViewport.offsetTop
|
1394
|
+
};
|
1395
|
+
}
|
1396
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
1397
|
+
if (isFixed === void 0) {
|
1398
|
+
isFixed = false;
|
1399
|
+
}
|
1400
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
1401
|
+
return false;
|
1402
|
+
}
|
1403
|
+
return isFixed;
|
1404
|
+
}
|
1405
|
+
|
1406
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
1407
|
+
if (includeScale === void 0) {
|
1408
|
+
includeScale = false;
|
1409
|
+
}
|
1410
|
+
if (isFixedStrategy === void 0) {
|
1411
|
+
isFixedStrategy = false;
|
1412
|
+
}
|
1413
|
+
const clientRect = element.getBoundingClientRect();
|
1414
|
+
const domElement = unwrapElement(element);
|
1415
|
+
let scale = createCoords(1);
|
1416
|
+
if (includeScale) {
|
1417
|
+
if (offsetParent) {
|
1418
|
+
if (isElement(offsetParent)) {
|
1419
|
+
scale = getScale(offsetParent);
|
1420
|
+
}
|
1421
|
+
} else {
|
1422
|
+
scale = getScale(element);
|
1423
|
+
}
|
1424
|
+
}
|
1425
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
1426
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
1427
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
1428
|
+
let width = clientRect.width / scale.x;
|
1429
|
+
let height = clientRect.height / scale.y;
|
1430
|
+
if (domElement) {
|
1431
|
+
const win = getWindow(domElement);
|
1432
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
1433
|
+
let currentWin = win;
|
1434
|
+
let currentIFrame = getFrameElement(currentWin);
|
1435
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
1436
|
+
const iframeScale = getScale(currentIFrame);
|
1437
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
1438
|
+
const css = getComputedStyle$1(currentIFrame);
|
1439
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
1440
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
1441
|
+
x *= iframeScale.x;
|
1442
|
+
y *= iframeScale.y;
|
1443
|
+
width *= iframeScale.x;
|
1444
|
+
height *= iframeScale.y;
|
1445
|
+
x += left;
|
1446
|
+
y += top;
|
1447
|
+
currentWin = getWindow(currentIFrame);
|
1448
|
+
currentIFrame = getFrameElement(currentWin);
|
1449
|
+
}
|
1450
|
+
}
|
1451
|
+
return rectToClientRect({
|
1452
|
+
width,
|
1453
|
+
height,
|
1454
|
+
x,
|
1455
|
+
y
|
1456
|
+
});
|
1457
|
+
}
|
1458
|
+
|
1459
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
1460
|
+
let {
|
1461
|
+
elements,
|
1462
|
+
rect,
|
1463
|
+
offsetParent,
|
1464
|
+
strategy
|
1465
|
+
} = _ref;
|
1466
|
+
const isFixed = strategy === 'fixed';
|
1467
|
+
const documentElement = getDocumentElement(offsetParent);
|
1468
|
+
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
1469
|
+
if (offsetParent === documentElement || topLayer && isFixed) {
|
1470
|
+
return rect;
|
1471
|
+
}
|
1472
|
+
let scroll = {
|
1473
|
+
scrollLeft: 0,
|
1474
|
+
scrollTop: 0
|
1475
|
+
};
|
1476
|
+
let scale = createCoords(1);
|
1477
|
+
const offsets = createCoords(0);
|
1478
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
1479
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
1480
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
1481
|
+
scroll = getNodeScroll(offsetParent);
|
1482
|
+
}
|
1483
|
+
if (isHTMLElement(offsetParent)) {
|
1484
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
1485
|
+
scale = getScale(offsetParent);
|
1486
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
1487
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
1488
|
+
}
|
1489
|
+
}
|
1490
|
+
return {
|
1491
|
+
width: rect.width * scale.x,
|
1492
|
+
height: rect.height * scale.y,
|
1493
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
1494
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
1495
|
+
};
|
1496
|
+
}
|
1497
|
+
|
1498
|
+
function getClientRects(element) {
|
1499
|
+
return Array.from(element.getClientRects());
|
1500
|
+
}
|
1501
|
+
|
1502
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
1503
|
+
// incorrect for RTL.
|
1504
|
+
function getWindowScrollBarX(element, rect) {
|
1505
|
+
const leftScroll = getNodeScroll(element).scrollLeft;
|
1506
|
+
if (!rect) {
|
1507
|
+
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
1508
|
+
}
|
1509
|
+
return rect.left + leftScroll;
|
1510
|
+
}
|
1511
|
+
|
1512
|
+
// Gets the entire size of the scrollable document area, even extending outside
|
1513
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
1514
|
+
function getDocumentRect(element) {
|
1515
|
+
const html = getDocumentElement(element);
|
1516
|
+
const scroll = getNodeScroll(element);
|
1517
|
+
const body = element.ownerDocument.body;
|
1518
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
1519
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
1520
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
1521
|
+
const y = -scroll.scrollTop;
|
1522
|
+
if (getComputedStyle$1(body).direction === 'rtl') {
|
1523
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
1524
|
+
}
|
1525
|
+
return {
|
1526
|
+
width,
|
1527
|
+
height,
|
1528
|
+
x,
|
1529
|
+
y
|
1530
|
+
};
|
1531
|
+
}
|
1532
|
+
|
1533
|
+
function getViewportRect(element, strategy) {
|
1534
|
+
const win = getWindow(element);
|
1535
|
+
const html = getDocumentElement(element);
|
1536
|
+
const visualViewport = win.visualViewport;
|
1537
|
+
let width = html.clientWidth;
|
1538
|
+
let height = html.clientHeight;
|
1539
|
+
let x = 0;
|
1540
|
+
let y = 0;
|
1541
|
+
if (visualViewport) {
|
1542
|
+
width = visualViewport.width;
|
1543
|
+
height = visualViewport.height;
|
1544
|
+
const visualViewportBased = isWebKit();
|
1545
|
+
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
1546
|
+
x = visualViewport.offsetLeft;
|
1547
|
+
y = visualViewport.offsetTop;
|
1548
|
+
}
|
1549
|
+
}
|
1550
|
+
return {
|
1551
|
+
width,
|
1552
|
+
height,
|
1553
|
+
x,
|
1554
|
+
y
|
1555
|
+
};
|
1556
|
+
}
|
1557
|
+
|
1558
|
+
// Returns the inner client rect, subtracting scrollbars if present.
|
1559
|
+
function getInnerBoundingClientRect(element, strategy) {
|
1560
|
+
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
1561
|
+
const top = clientRect.top + element.clientTop;
|
1562
|
+
const left = clientRect.left + element.clientLeft;
|
1563
|
+
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
1564
|
+
const width = element.clientWidth * scale.x;
|
1565
|
+
const height = element.clientHeight * scale.y;
|
1566
|
+
const x = left * scale.x;
|
1567
|
+
const y = top * scale.y;
|
1568
|
+
return {
|
1569
|
+
width,
|
1570
|
+
height,
|
1571
|
+
x,
|
1572
|
+
y
|
1573
|
+
};
|
1574
|
+
}
|
1575
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
1576
|
+
let rect;
|
1577
|
+
if (clippingAncestor === 'viewport') {
|
1578
|
+
rect = getViewportRect(element, strategy);
|
1579
|
+
} else if (clippingAncestor === 'document') {
|
1580
|
+
rect = getDocumentRect(getDocumentElement(element));
|
1581
|
+
} else if (isElement(clippingAncestor)) {
|
1582
|
+
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
1583
|
+
} else {
|
1584
|
+
const visualOffsets = getVisualOffsets(element);
|
1585
|
+
rect = {
|
1586
|
+
...clippingAncestor,
|
1587
|
+
x: clippingAncestor.x - visualOffsets.x,
|
1588
|
+
y: clippingAncestor.y - visualOffsets.y
|
1589
|
+
};
|
1590
|
+
}
|
1591
|
+
return rectToClientRect(rect);
|
1592
|
+
}
|
1593
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
1594
|
+
const parentNode = getParentNode(element);
|
1595
|
+
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
1596
|
+
return false;
|
1597
|
+
}
|
1598
|
+
return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
1599
|
+
}
|
1600
|
+
|
1601
|
+
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
1602
|
+
// clipping (or hiding) child elements. This returns all clipping ancestors
|
1603
|
+
// of the given element up the tree.
|
1604
|
+
function getClippingElementAncestors(element, cache) {
|
1605
|
+
const cachedResult = cache.get(element);
|
1606
|
+
if (cachedResult) {
|
1607
|
+
return cachedResult;
|
1608
|
+
}
|
1609
|
+
let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
1610
|
+
let currentContainingBlockComputedStyle = null;
|
1611
|
+
const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
|
1612
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
1613
|
+
|
1614
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
1615
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
1616
|
+
const computedStyle = getComputedStyle$1(currentNode);
|
1617
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
1618
|
+
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
1619
|
+
currentContainingBlockComputedStyle = null;
|
1620
|
+
}
|
1621
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
1622
|
+
if (shouldDropCurrentNode) {
|
1623
|
+
// Drop non-containing blocks.
|
1624
|
+
result = result.filter(ancestor => ancestor !== currentNode);
|
1625
|
+
} else {
|
1626
|
+
// Record last containing block for next iteration.
|
1627
|
+
currentContainingBlockComputedStyle = computedStyle;
|
1628
|
+
}
|
1629
|
+
currentNode = getParentNode(currentNode);
|
1630
|
+
}
|
1631
|
+
cache.set(element, result);
|
1632
|
+
return result;
|
1633
|
+
}
|
1634
|
+
|
1635
|
+
// Gets the maximum area that the element is visible in due to any number of
|
1636
|
+
// clipping ancestors.
|
1637
|
+
function getClippingRect(_ref) {
|
1638
|
+
let {
|
1639
|
+
element,
|
1640
|
+
boundary,
|
1641
|
+
rootBoundary,
|
1642
|
+
strategy
|
1643
|
+
} = _ref;
|
1644
|
+
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
1645
|
+
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
1646
|
+
const firstClippingAncestor = clippingAncestors[0];
|
1647
|
+
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
1648
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
1649
|
+
accRect.top = max(rect.top, accRect.top);
|
1650
|
+
accRect.right = min(rect.right, accRect.right);
|
1651
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
1652
|
+
accRect.left = max(rect.left, accRect.left);
|
1653
|
+
return accRect;
|
1654
|
+
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
1655
|
+
return {
|
1656
|
+
width: clippingRect.right - clippingRect.left,
|
1657
|
+
height: clippingRect.bottom - clippingRect.top,
|
1658
|
+
x: clippingRect.left,
|
1659
|
+
y: clippingRect.top
|
1660
|
+
};
|
1661
|
+
}
|
1662
|
+
|
1663
|
+
function getDimensions(element) {
|
1664
|
+
const {
|
1665
|
+
width,
|
1666
|
+
height
|
1667
|
+
} = getCssDimensions(element);
|
1668
|
+
return {
|
1669
|
+
width,
|
1670
|
+
height
|
1671
|
+
};
|
1672
|
+
}
|
1673
|
+
|
1674
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
1675
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
1676
|
+
const documentElement = getDocumentElement(offsetParent);
|
1677
|
+
const isFixed = strategy === 'fixed';
|
1678
|
+
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
1679
|
+
let scroll = {
|
1680
|
+
scrollLeft: 0,
|
1681
|
+
scrollTop: 0
|
1682
|
+
};
|
1683
|
+
const offsets = createCoords(0);
|
1684
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
1685
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
1686
|
+
scroll = getNodeScroll(offsetParent);
|
1687
|
+
}
|
1688
|
+
if (isOffsetParentAnElement) {
|
1689
|
+
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
1690
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
1691
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
1692
|
+
} else if (documentElement) {
|
1693
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
1694
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
1695
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
1696
|
+
}
|
1697
|
+
}
|
1698
|
+
let htmlX = 0;
|
1699
|
+
let htmlY = 0;
|
1700
|
+
if (documentElement && !isOffsetParentAnElement && !isFixed) {
|
1701
|
+
const htmlRect = documentElement.getBoundingClientRect();
|
1702
|
+
htmlY = htmlRect.top + scroll.scrollTop;
|
1703
|
+
htmlX = htmlRect.left + scroll.scrollLeft -
|
1704
|
+
// RTL <body> scrollbar.
|
1705
|
+
getWindowScrollBarX(documentElement, htmlRect);
|
1706
|
+
}
|
1707
|
+
const x = rect.left + scroll.scrollLeft - offsets.x - htmlX;
|
1708
|
+
const y = rect.top + scroll.scrollTop - offsets.y - htmlY;
|
1709
|
+
return {
|
1710
|
+
x,
|
1711
|
+
y,
|
1712
|
+
width: rect.width,
|
1713
|
+
height: rect.height
|
1714
|
+
};
|
1715
|
+
}
|
1716
|
+
|
1717
|
+
function isStaticPositioned(element) {
|
1718
|
+
return getComputedStyle$1(element).position === 'static';
|
1719
|
+
}
|
1720
|
+
|
1721
|
+
function getTrueOffsetParent(element, polyfill) {
|
1722
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
|
1723
|
+
return null;
|
1724
|
+
}
|
1725
|
+
if (polyfill) {
|
1726
|
+
return polyfill(element);
|
1727
|
+
}
|
1728
|
+
let rawOffsetParent = element.offsetParent;
|
1729
|
+
|
1730
|
+
// Firefox returns the <html> element as the offsetParent if it's non-static,
|
1731
|
+
// while Chrome and Safari return the <body> element. The <body> element must
|
1732
|
+
// be used to perform the correct calculations even if the <html> element is
|
1733
|
+
// non-static.
|
1734
|
+
if (getDocumentElement(element) === rawOffsetParent) {
|
1735
|
+
rawOffsetParent = rawOffsetParent.ownerDocument.body;
|
1736
|
+
}
|
1737
|
+
return rawOffsetParent;
|
1738
|
+
}
|
1739
|
+
|
1740
|
+
// Gets the closest ancestor positioned element. Handles some edge cases,
|
1741
|
+
// such as table ancestors and cross browser bugs.
|
1742
|
+
function getOffsetParent(element, polyfill) {
|
1743
|
+
const win = getWindow(element);
|
1744
|
+
if (isTopLayer(element)) {
|
1745
|
+
return win;
|
1746
|
+
}
|
1747
|
+
if (!isHTMLElement(element)) {
|
1748
|
+
let svgOffsetParent = getParentNode(element);
|
1749
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
1750
|
+
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
1751
|
+
return svgOffsetParent;
|
1752
|
+
}
|
1753
|
+
svgOffsetParent = getParentNode(svgOffsetParent);
|
1754
|
+
}
|
1755
|
+
return win;
|
1756
|
+
}
|
1757
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
1758
|
+
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
1759
|
+
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
1760
|
+
}
|
1761
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
1762
|
+
return win;
|
1763
|
+
}
|
1764
|
+
return offsetParent || getContainingBlock(element) || win;
|
1765
|
+
}
|
1766
|
+
|
1767
|
+
const getElementRects = async function (data) {
|
1768
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
1769
|
+
const getDimensionsFn = this.getDimensions;
|
1770
|
+
const floatingDimensions = await getDimensionsFn(data.floating);
|
1771
|
+
return {
|
1772
|
+
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
1773
|
+
floating: {
|
1774
|
+
x: 0,
|
1775
|
+
y: 0,
|
1776
|
+
width: floatingDimensions.width,
|
1777
|
+
height: floatingDimensions.height
|
1778
|
+
}
|
1779
|
+
};
|
1780
|
+
};
|
1781
|
+
|
1782
|
+
function isRTL(element) {
|
1783
|
+
return getComputedStyle$1(element).direction === 'rtl';
|
1784
|
+
}
|
1785
|
+
|
1786
|
+
const platform = {
|
1787
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
1788
|
+
getDocumentElement,
|
1789
|
+
getClippingRect,
|
1790
|
+
getOffsetParent,
|
1791
|
+
getElementRects,
|
1792
|
+
getClientRects,
|
1793
|
+
getDimensions,
|
1794
|
+
getScale,
|
1795
|
+
isElement,
|
1796
|
+
isRTL
|
1797
|
+
};
|
1798
|
+
|
1799
|
+
// https://samthor.au/2021/observing-dom/
|
1800
|
+
function observeMove(element, onMove) {
|
1801
|
+
let io = null;
|
1802
|
+
let timeoutId;
|
1803
|
+
const root = getDocumentElement(element);
|
1804
|
+
function cleanup() {
|
1805
|
+
var _io;
|
1806
|
+
clearTimeout(timeoutId);
|
1807
|
+
(_io = io) == null || _io.disconnect();
|
1808
|
+
io = null;
|
1809
|
+
}
|
1810
|
+
function refresh(skip, threshold) {
|
1811
|
+
if (skip === void 0) {
|
1812
|
+
skip = false;
|
1813
|
+
}
|
1814
|
+
if (threshold === void 0) {
|
1815
|
+
threshold = 1;
|
1816
|
+
}
|
1817
|
+
cleanup();
|
1818
|
+
const {
|
1819
|
+
left,
|
1820
|
+
top,
|
1821
|
+
width,
|
1822
|
+
height
|
1823
|
+
} = element.getBoundingClientRect();
|
1824
|
+
if (!skip) {
|
1825
|
+
onMove();
|
1826
|
+
}
|
1827
|
+
if (!width || !height) {
|
1828
|
+
return;
|
1829
|
+
}
|
1830
|
+
const insetTop = floor(top);
|
1831
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
1832
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
1833
|
+
const insetLeft = floor(left);
|
1834
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
1835
|
+
const options = {
|
1836
|
+
rootMargin,
|
1837
|
+
threshold: max(0, min(1, threshold)) || 1
|
1838
|
+
};
|
1839
|
+
let isFirstUpdate = true;
|
1840
|
+
function handleObserve(entries) {
|
1841
|
+
const ratio = entries[0].intersectionRatio;
|
1842
|
+
if (ratio !== threshold) {
|
1843
|
+
if (!isFirstUpdate) {
|
1844
|
+
return refresh();
|
1845
|
+
}
|
1846
|
+
if (!ratio) {
|
1847
|
+
// If the reference is clipped, the ratio is 0. Throttle the refresh
|
1848
|
+
// to prevent an infinite loop of updates.
|
1849
|
+
timeoutId = setTimeout(() => {
|
1850
|
+
refresh(false, 1e-7);
|
1851
|
+
}, 1000);
|
1852
|
+
} else {
|
1853
|
+
refresh(false, ratio);
|
1854
|
+
}
|
1855
|
+
}
|
1856
|
+
isFirstUpdate = false;
|
1857
|
+
}
|
1858
|
+
|
1859
|
+
// Older browsers don't support a `document` as the root and will throw an
|
1860
|
+
// error.
|
1861
|
+
try {
|
1862
|
+
io = new IntersectionObserver(handleObserve, {
|
1863
|
+
...options,
|
1864
|
+
// Handle <iframe>s
|
1865
|
+
root: root.ownerDocument
|
1866
|
+
});
|
1867
|
+
} catch (e) {
|
1868
|
+
io = new IntersectionObserver(handleObserve, options);
|
1869
|
+
}
|
1870
|
+
io.observe(element);
|
1871
|
+
}
|
1872
|
+
refresh(true);
|
1873
|
+
return cleanup;
|
1874
|
+
}
|
1875
|
+
|
1876
|
+
/**
|
1877
|
+
* Automatically updates the position of the floating element when necessary.
|
1878
|
+
* Should only be called when the floating element is mounted on the DOM or
|
1879
|
+
* visible on the screen.
|
1880
|
+
* @returns cleanup function that should be invoked when the floating element is
|
1881
|
+
* removed from the DOM or hidden from the screen.
|
1882
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
1883
|
+
*/
|
1884
|
+
function autoUpdate(reference, floating, update, options) {
|
1885
|
+
if (options === void 0) {
|
1886
|
+
options = {};
|
1887
|
+
}
|
1888
|
+
const {
|
1889
|
+
ancestorScroll = true,
|
1890
|
+
ancestorResize = true,
|
1891
|
+
elementResize = typeof ResizeObserver === 'function',
|
1892
|
+
layoutShift = typeof IntersectionObserver === 'function',
|
1893
|
+
animationFrame = false
|
1894
|
+
} = options;
|
1895
|
+
const referenceEl = unwrapElement(reference);
|
1896
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
1897
|
+
ancestors.forEach(ancestor => {
|
1898
|
+
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
1899
|
+
passive: true
|
1900
|
+
});
|
1901
|
+
ancestorResize && ancestor.addEventListener('resize', update);
|
1902
|
+
});
|
1903
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
1904
|
+
let reobserveFrame = -1;
|
1905
|
+
let resizeObserver = null;
|
1906
|
+
if (elementResize) {
|
1907
|
+
resizeObserver = new ResizeObserver(_ref => {
|
1908
|
+
let [firstEntry] = _ref;
|
1909
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
1910
|
+
// Prevent update loops when using the `size` middleware.
|
1911
|
+
// https://github.com/floating-ui/floating-ui/issues/1740
|
1912
|
+
resizeObserver.unobserve(floating);
|
1913
|
+
cancelAnimationFrame(reobserveFrame);
|
1914
|
+
reobserveFrame = requestAnimationFrame(() => {
|
1915
|
+
var _resizeObserver;
|
1916
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
1917
|
+
});
|
1918
|
+
}
|
1919
|
+
update();
|
1920
|
+
});
|
1921
|
+
if (referenceEl && !animationFrame) {
|
1922
|
+
resizeObserver.observe(referenceEl);
|
1923
|
+
}
|
1924
|
+
resizeObserver.observe(floating);
|
1925
|
+
}
|
1926
|
+
let frameId;
|
1927
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
1928
|
+
if (animationFrame) {
|
1929
|
+
frameLoop();
|
1930
|
+
}
|
1931
|
+
function frameLoop() {
|
1932
|
+
const nextRefRect = getBoundingClientRect(reference);
|
1933
|
+
if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
|
1934
|
+
update();
|
1935
|
+
}
|
1936
|
+
prevRefRect = nextRefRect;
|
1937
|
+
frameId = requestAnimationFrame(frameLoop);
|
1938
|
+
}
|
1939
|
+
update();
|
1940
|
+
return () => {
|
1941
|
+
var _resizeObserver2;
|
1942
|
+
ancestors.forEach(ancestor => {
|
1943
|
+
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
1944
|
+
ancestorResize && ancestor.removeEventListener('resize', update);
|
1945
|
+
});
|
1946
|
+
cleanupIo == null || cleanupIo();
|
1947
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
1948
|
+
resizeObserver = null;
|
1949
|
+
if (animationFrame) {
|
1950
|
+
cancelAnimationFrame(frameId);
|
1951
|
+
}
|
1952
|
+
};
|
1953
|
+
}
|
1954
|
+
|
1955
|
+
/**
|
1956
|
+
* Modifies the placement by translating the floating element along the
|
1957
|
+
* specified axes.
|
1958
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
1959
|
+
* object may be passed.
|
1960
|
+
* @see https://floating-ui.com/docs/offset
|
1961
|
+
*/
|
1962
|
+
const offset = offset$1;
|
1963
|
+
|
1964
|
+
/**
|
1965
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
1966
|
+
* that has the most space available automatically, without needing to specify a
|
1967
|
+
* preferred placement. Alternative to `flip`.
|
1968
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
1969
|
+
*/
|
1970
|
+
const autoPlacement = autoPlacement$1;
|
1971
|
+
|
1972
|
+
/**
|
1973
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
1974
|
+
* keep it in view when it will overflow the clipping boundary.
|
1975
|
+
* @see https://floating-ui.com/docs/shift
|
1976
|
+
*/
|
1977
|
+
const shift = shift$1;
|
1978
|
+
|
1979
|
+
/**
|
1980
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
1981
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
1982
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
1983
|
+
* @see https://floating-ui.com/docs/flip
|
1984
|
+
*/
|
1985
|
+
const flip = flip$1;
|
1986
|
+
|
1987
|
+
/**
|
1988
|
+
* Provides data that allows you to change the size of the floating element —
|
1989
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
1990
|
+
* width of the reference element.
|
1991
|
+
* @see https://floating-ui.com/docs/size
|
1992
|
+
*/
|
1993
|
+
size;
|
1994
|
+
|
1995
|
+
/**
|
1996
|
+
* Provides data to hide the floating element in applicable situations, such as
|
1997
|
+
* when it is not in the same clipping context as the reference element.
|
1998
|
+
* @see https://floating-ui.com/docs/hide
|
1999
|
+
*/
|
2000
|
+
const hide = hide$1;
|
2001
|
+
|
2002
|
+
/**
|
2003
|
+
* Provides data to position an inner element of the floating element so that it
|
2004
|
+
* appears centered to the reference element.
|
2005
|
+
* @see https://floating-ui.com/docs/arrow
|
2006
|
+
*/
|
2007
|
+
const arrow = arrow$1;
|
2008
|
+
|
2009
|
+
/**
|
2010
|
+
* Provides improved positioning for inline reference elements that can span
|
2011
|
+
* over multiple lines, such as hyperlinks or range selections.
|
2012
|
+
* @see https://floating-ui.com/docs/inline
|
2013
|
+
*/
|
2014
|
+
inline;
|
2015
|
+
|
2016
|
+
/**
|
2017
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
2018
|
+
*/
|
2019
|
+
limitShift;
|
2020
|
+
|
2021
|
+
/**
|
2022
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
2023
|
+
* next to a given reference element.
|
2024
|
+
*/
|
2025
|
+
const computePosition = (reference, floating, options) => {
|
2026
|
+
// This caches the expensive `getClippingElementAncestors` function so that
|
2027
|
+
// multiple lifecycle resets re-use the same result. It only lives for a
|
2028
|
+
// single call. If other functions become expensive, we can add them as well.
|
2029
|
+
const cache = new Map();
|
2030
|
+
const mergedOptions = {
|
2031
|
+
platform,
|
2032
|
+
...options
|
2033
|
+
};
|
2034
|
+
const platformWithCache = {
|
2035
|
+
...mergedOptions.platform,
|
2036
|
+
_c: cache
|
2037
|
+
};
|
2038
|
+
return computePosition$1(reference, floating, {
|
2039
|
+
...mergedOptions,
|
2040
|
+
platform: platformWithCache
|
2041
|
+
});
|
2042
|
+
};
|
2043
|
+
|
2044
|
+
function offsetParent(element) {
|
2045
|
+
return offsetParentPolyfill(element);
|
2046
|
+
}
|
2047
|
+
function flatTreeParent(element) {
|
2048
|
+
if (element.assignedSlot) {
|
2049
|
+
return element.assignedSlot;
|
2050
|
+
}
|
2051
|
+
if (element.parentNode instanceof ShadowRoot) {
|
2052
|
+
return element.parentNode.host;
|
2053
|
+
}
|
2054
|
+
return element.parentNode;
|
2055
|
+
}
|
2056
|
+
function offsetParentPolyfill(element) {
|
2057
|
+
// Do an initial walk to check for display:none ancestors.
|
2058
|
+
for (let ancestor = element; ancestor; ancestor = flatTreeParent(ancestor)) {
|
2059
|
+
if (!(ancestor instanceof Element)) {
|
2060
|
+
continue;
|
2061
|
+
}
|
2062
|
+
if (getComputedStyle(ancestor).display === 'none') {
|
2063
|
+
return null;
|
2064
|
+
}
|
2065
|
+
}
|
2066
|
+
for (let ancestor = flatTreeParent(element); ancestor; ancestor = flatTreeParent(ancestor)) {
|
2067
|
+
if (!(ancestor instanceof Element)) {
|
2068
|
+
continue;
|
2069
|
+
}
|
2070
|
+
const style = getComputedStyle(ancestor);
|
2071
|
+
// Display:contents nodes aren't in the layout tree, so they should be skipped.
|
2072
|
+
if (style.display === 'contents') {
|
2073
|
+
continue;
|
2074
|
+
}
|
2075
|
+
if (style.position !== 'static' || isContainingBlock(style)) {
|
2076
|
+
return ancestor;
|
2077
|
+
}
|
2078
|
+
if (ancestor.tagName === 'BODY') {
|
2079
|
+
return ancestor;
|
2080
|
+
}
|
2081
|
+
}
|
2082
|
+
return null;
|
2083
|
+
}
|
2084
|
+
|
2085
|
+
/*!
|
2086
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
2087
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
2088
|
+
* v2.13.0
|
2089
|
+
*/
|
2090
|
+
(function setUpFloatingUiForShadowDomPositioning() {
|
2091
|
+
if (isBrowser()) {
|
2092
|
+
const originalGetOffsetParent = platform.getOffsetParent;
|
2093
|
+
platform.getOffsetParent = (element) => originalGetOffsetParent(element, offsetParent);
|
2094
|
+
}
|
2095
|
+
})();
|
2096
|
+
function roundByDPR(value) {
|
2097
|
+
const dpr = window.devicePixelRatio || 1;
|
2098
|
+
return Math.round(value * dpr) / dpr;
|
2099
|
+
}
|
2100
|
+
/**
|
2101
|
+
* Positions the floating element relative to the reference element.
|
2102
|
+
*
|
2103
|
+
* **Note:** exported for testing purposes only
|
2104
|
+
*
|
2105
|
+
* @param root0
|
2106
|
+
* @param root0.referenceEl
|
2107
|
+
* @param root0.floatingEl
|
2108
|
+
* @param root0.overlayPositioning
|
2109
|
+
* @param root0.placement
|
2110
|
+
* @param root0.flipDisabled
|
2111
|
+
* @param root0.flipPlacements
|
2112
|
+
* @param root0.offsetDistance
|
2113
|
+
* @param root0.offsetSkidding
|
2114
|
+
* @param root0.arrowEl
|
2115
|
+
* @param root0.type
|
2116
|
+
* @param component
|
2117
|
+
* @param root0.referenceEl.referenceEl
|
2118
|
+
* @param root0.referenceEl.floatingEl
|
2119
|
+
* @param root0.referenceEl.overlayPositioning
|
2120
|
+
* @param root0.referenceEl.placement
|
2121
|
+
* @param root0.referenceEl.flipDisabled
|
2122
|
+
* @param root0.referenceEl.flipPlacements
|
2123
|
+
* @param root0.referenceEl.offsetDistance
|
2124
|
+
* @param root0.referenceEl.offsetSkidding
|
2125
|
+
* @param root0.referenceEl.arrowEl
|
2126
|
+
* @param root0.referenceEl.type
|
2127
|
+
* @param component.referenceEl
|
2128
|
+
* @param component.floatingEl
|
2129
|
+
* @param component.overlayPositioning
|
2130
|
+
* @param component.placement
|
2131
|
+
* @param component.flipDisabled
|
2132
|
+
* @param component.flipPlacements
|
2133
|
+
* @param component.offsetDistance
|
2134
|
+
* @param component.offsetSkidding
|
2135
|
+
* @param component.arrowEl
|
2136
|
+
* @param component.type
|
2137
|
+
*/
|
2138
|
+
const positionFloatingUI =
|
2139
|
+
/* we export arrow function to allow us to spy on it during testing */
|
2140
|
+
async (component, { referenceEl, floatingEl, overlayPositioning = "absolute", placement, flipDisabled, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type, }) => {
|
2141
|
+
if (!referenceEl || !floatingEl) {
|
2142
|
+
return null;
|
2143
|
+
}
|
2144
|
+
const isRTL = getElementDir(floatingEl) === "rtl";
|
2145
|
+
const { x, y, placement: effectivePlacement, strategy: position, middlewareData, } = await computePosition(referenceEl, floatingEl, {
|
2146
|
+
strategy: overlayPositioning,
|
2147
|
+
placement: placement === "auto" || placement === "auto-start" || placement === "auto-end"
|
2148
|
+
? undefined
|
2149
|
+
: getEffectivePlacement(placement, isRTL),
|
2150
|
+
middleware: getMiddleware({
|
2151
|
+
placement,
|
2152
|
+
flipDisabled,
|
2153
|
+
flipPlacements: flipPlacements?.map((placement) => getEffectivePlacement(placement, isRTL)),
|
2154
|
+
offsetDistance,
|
2155
|
+
offsetSkidding,
|
2156
|
+
arrowEl,
|
2157
|
+
type,
|
2158
|
+
}),
|
2159
|
+
});
|
2160
|
+
if (arrowEl && middlewareData.arrow) {
|
2161
|
+
const { x, y } = middlewareData.arrow;
|
2162
|
+
const side = effectivePlacement.split("-")[0];
|
2163
|
+
const alignment = x != null ? "left" : "top";
|
2164
|
+
const transform = ARROW_CSS_TRANSFORM[side];
|
2165
|
+
const reset = { left: "", top: "", bottom: "", right: "" };
|
2166
|
+
if ("floatingLayout" in component) {
|
2167
|
+
component.floatingLayout = side === "left" || side === "right" ? "horizontal" : "vertical";
|
2168
|
+
}
|
2169
|
+
Object.assign(arrowEl.style, {
|
2170
|
+
...reset,
|
2171
|
+
[alignment]: `${alignment == "left" ? x : y}px`,
|
2172
|
+
[side]: "100%",
|
2173
|
+
transform,
|
2174
|
+
});
|
2175
|
+
}
|
2176
|
+
const referenceHidden = middlewareData.hide?.referenceHidden;
|
2177
|
+
const visibility = referenceHidden ? "hidden" : null;
|
2178
|
+
const pointerEvents = visibility ? "none" : null;
|
2179
|
+
floatingEl.setAttribute(placementDataAttribute, effectivePlacement);
|
2180
|
+
const { open } = component;
|
2181
|
+
Object.assign(floatingEl.style, {
|
2182
|
+
visibility,
|
2183
|
+
pointerEvents,
|
2184
|
+
position,
|
2185
|
+
transform: open ? `translate(${roundByDPR(x)}px,${roundByDPR(y)}px)` : "",
|
2186
|
+
top: 0,
|
2187
|
+
left: 0,
|
2188
|
+
});
|
2189
|
+
};
|
2190
|
+
/**
|
2191
|
+
* Exported for testing purposes only
|
2192
|
+
*/
|
2193
|
+
const placementDataAttribute = "data-placement";
|
2194
|
+
const flipPlacements = [
|
2195
|
+
"top",
|
2196
|
+
"bottom",
|
2197
|
+
"right",
|
2198
|
+
"left",
|
2199
|
+
"top-start",
|
2200
|
+
"top-end",
|
2201
|
+
"bottom-start",
|
2202
|
+
"bottom-end",
|
2203
|
+
"right-start",
|
2204
|
+
"right-end",
|
2205
|
+
"left-start",
|
2206
|
+
"left-end",
|
2207
|
+
"leading",
|
2208
|
+
"trailing",
|
2209
|
+
"leading-start",
|
2210
|
+
"leading-end",
|
2211
|
+
"trailing-start",
|
2212
|
+
"trailing-end",
|
2213
|
+
];
|
2214
|
+
const defaultMenuPlacement = "bottom-start";
|
2215
|
+
const defaultEndMenuPlacement = "bottom-end";
|
2216
|
+
const FloatingCSS = {
|
2217
|
+
animation: "calcite-floating-ui-anim",
|
2218
|
+
animationActive: "calcite-floating-ui-anim--active",
|
2219
|
+
arrow: "calcite-floating-ui-arrow",
|
2220
|
+
arrowStroke: "calcite-floating-ui-arrow__stroke",
|
2221
|
+
};
|
2222
|
+
function getMiddleware({ placement, flipDisabled, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type, }) {
|
2223
|
+
const defaultMiddleware = [shift(), hide()];
|
2224
|
+
if (type === "menu") {
|
2225
|
+
return [
|
2226
|
+
...defaultMiddleware,
|
2227
|
+
flip({
|
2228
|
+
fallbackPlacements: flipPlacements || ["top-start", "top", "top-end", "bottom-start", "bottom", "bottom-end"],
|
2229
|
+
}),
|
2230
|
+
];
|
2231
|
+
}
|
2232
|
+
if (type === "popover" || type === "tooltip") {
|
2233
|
+
const middleware = [
|
2234
|
+
...defaultMiddleware,
|
2235
|
+
offset({
|
2236
|
+
mainAxis: typeof offsetDistance === "number" ? offsetDistance : 0,
|
2237
|
+
crossAxis: typeof offsetSkidding === "number" ? offsetSkidding : 0,
|
2238
|
+
}),
|
2239
|
+
];
|
2240
|
+
if (placement === "auto" || placement === "auto-start" || placement === "auto-end") {
|
2241
|
+
middleware.push(autoPlacement({ alignment: placement === "auto-start" ? "start" : placement === "auto-end" ? "end" : null }));
|
2242
|
+
}
|
2243
|
+
else if (!flipDisabled) {
|
2244
|
+
middleware.push(flip(flipPlacements ? { fallbackPlacements: flipPlacements } : {}));
|
2245
|
+
}
|
2246
|
+
if (arrowEl) {
|
2247
|
+
middleware.push(arrow({
|
2248
|
+
element: arrowEl,
|
2249
|
+
}));
|
2250
|
+
}
|
2251
|
+
return middleware;
|
2252
|
+
}
|
2253
|
+
return [];
|
2254
|
+
}
|
2255
|
+
function filterValidFlipPlacements(placements, el) {
|
2256
|
+
const filteredPlacements = placements.filter((placement) => flipPlacements.includes(placement));
|
2257
|
+
if (filteredPlacements.length !== placements.length) {
|
2258
|
+
console.warn(`${el.tagName}: Invalid value found in: flipPlacements. Try any of these: ${flipPlacements
|
2259
|
+
.map((placement) => `"${placement}"`)
|
2260
|
+
.join(", ")
|
2261
|
+
.trim()}`, { el });
|
2262
|
+
}
|
2263
|
+
return filteredPlacements;
|
2264
|
+
}
|
2265
|
+
function getEffectivePlacement(placement, isRTL = false) {
|
2266
|
+
const placements = ["left", "right"];
|
2267
|
+
if (isRTL) {
|
2268
|
+
placements.reverse();
|
2269
|
+
}
|
2270
|
+
return placement.replace(/leading/gi, placements[0]).replace(/trailing/gi, placements[1]);
|
2271
|
+
}
|
2272
|
+
/**
|
2273
|
+
* Convenience function to manage `reposition` calls for FloatingUIComponents that use `positionFloatingUI.
|
2274
|
+
*
|
2275
|
+
* Note: this is not needed for components that use `calcite-popover`.
|
2276
|
+
*
|
2277
|
+
* @param component - A floating-ui component.
|
2278
|
+
* @param options - Reposition parameters.
|
2279
|
+
* @param options.referenceEl - The `referenceElement` used to position the component according to its `placement` value.
|
2280
|
+
* @param options.floatingEl - The `floatingElement` containing the floating ui.
|
2281
|
+
* @param options.overlayPositioning - type of positioning to use for the overlaid content.
|
2282
|
+
* @param options.placement - Determines where the component will be positioned relative to the `referenceElement`.
|
2283
|
+
* @param options.flipDisabled - Prevents flipping the component's placement when overlapping its `referenceElement`.
|
2284
|
+
* @param options.flipPlacements - Defines the available placements that can be used when a flip occurs.
|
2285
|
+
* @param options.offsetDistance - Offsets the position of the popover away from the `referenceElement`.
|
2286
|
+
* @param options.offsetSkidding - Offsets the position of the component along the `referenceElement`.
|
2287
|
+
* @param options.arrowEl - A customizable arrow element.
|
2288
|
+
* @param options.type - The type of floating UI.
|
2289
|
+
* @param delayed - Reposition the component after a delay.
|
2290
|
+
* @returns {Promise<void>}
|
2291
|
+
*/
|
2292
|
+
async function reposition(component, options, delayed = false) {
|
2293
|
+
if (!component.open || !options.floatingEl || !options.referenceEl) {
|
2294
|
+
return;
|
2295
|
+
}
|
2296
|
+
const trackedState = autoUpdatingComponentMap.get(component);
|
2297
|
+
if (!trackedState) {
|
2298
|
+
return runAutoUpdate(component, options.referenceEl, options.floatingEl);
|
2299
|
+
}
|
2300
|
+
const positionFunction = delayed ? getDebouncedReposition(component) : positionFloatingUI;
|
2301
|
+
await positionFunction(component, options);
|
2302
|
+
}
|
2303
|
+
function getDebouncedReposition(component) {
|
2304
|
+
let debounced = componentToDebouncedRepositionMap.get(component);
|
2305
|
+
if (debounced) {
|
2306
|
+
return debounced;
|
2307
|
+
}
|
2308
|
+
debounced = debounce(positionFloatingUI, DEBOUNCE.reposition, {
|
2309
|
+
leading: true,
|
2310
|
+
maxWait: DEBOUNCE.reposition,
|
2311
|
+
});
|
2312
|
+
componentToDebouncedRepositionMap.set(component, debounced);
|
2313
|
+
return debounced;
|
2314
|
+
}
|
2315
|
+
const ARROW_CSS_TRANSFORM = {
|
2316
|
+
top: "",
|
2317
|
+
left: "rotate(-90deg)",
|
2318
|
+
bottom: "rotate(180deg)",
|
2319
|
+
right: "rotate(90deg)",
|
2320
|
+
};
|
2321
|
+
/**
|
2322
|
+
* Exported for testing purposes only
|
2323
|
+
*
|
2324
|
+
* @internal
|
2325
|
+
*/
|
2326
|
+
const autoUpdatingComponentMap = new WeakMap();
|
2327
|
+
const componentToDebouncedRepositionMap = new WeakMap();
|
2328
|
+
async function runAutoUpdate(component, referenceEl, floatingEl) {
|
2329
|
+
if (!floatingEl.isConnected) {
|
2330
|
+
return;
|
2331
|
+
}
|
2332
|
+
const effectiveAutoUpdate = isBrowser()
|
2333
|
+
? autoUpdate
|
2334
|
+
: (_refEl, _floatingEl, updateCallback) => {
|
2335
|
+
updateCallback();
|
2336
|
+
return () => {
|
2337
|
+
/* noop */
|
2338
|
+
};
|
2339
|
+
};
|
2340
|
+
// we set initial state here to make it available for `reposition` calls
|
2341
|
+
autoUpdatingComponentMap.set(component, { state: "pending" });
|
2342
|
+
let repositionPromise;
|
2343
|
+
const cleanUp = effectiveAutoUpdate(referenceEl, floatingEl,
|
2344
|
+
// callback is invoked immediately
|
2345
|
+
() => {
|
2346
|
+
const promise = component.reposition();
|
2347
|
+
if (!repositionPromise) {
|
2348
|
+
repositionPromise = promise;
|
2349
|
+
}
|
2350
|
+
});
|
2351
|
+
autoUpdatingComponentMap.set(component, { state: "active", cleanUp });
|
2352
|
+
return repositionPromise;
|
2353
|
+
}
|
2354
|
+
/**
|
2355
|
+
* Helper to set up floating element interactions on connectedCallback.
|
2356
|
+
*
|
2357
|
+
* @param component - A floating-ui component.
|
2358
|
+
* @param referenceEl - The `referenceElement` used to position the component according to its `placement` value.
|
2359
|
+
* @param floatingEl - The `floatingElement` containing the floating ui.
|
2360
|
+
*/
|
2361
|
+
async function connectFloatingUI(component, referenceEl, floatingEl) {
|
2362
|
+
if (!floatingEl || !referenceEl) {
|
2363
|
+
return;
|
2364
|
+
}
|
2365
|
+
disconnectFloatingUI(component, referenceEl, floatingEl);
|
2366
|
+
Object.assign(floatingEl.style, {
|
2367
|
+
visibility: "hidden",
|
2368
|
+
pointerEvents: "none",
|
2369
|
+
// initial positioning based on https://floating-ui.com/docs/computePosition#initial-layout
|
2370
|
+
position: component.overlayPositioning,
|
2371
|
+
});
|
2372
|
+
if (!component.open) {
|
2373
|
+
return;
|
2374
|
+
}
|
2375
|
+
return runAutoUpdate(component, referenceEl, floatingEl);
|
2376
|
+
}
|
2377
|
+
/**
|
2378
|
+
* Helper to tear down floating element interactions on disconnectedCallback.
|
2379
|
+
*
|
2380
|
+
* @param component - A floating-ui component.
|
2381
|
+
* @param referenceEl - The `referenceElement` used to position the component according to its `placement` value.
|
2382
|
+
* @param floatingEl - The `floatingElement` containing the floating ui.
|
2383
|
+
*/
|
2384
|
+
function disconnectFloatingUI(component, referenceEl, floatingEl) {
|
2385
|
+
if (!floatingEl || !referenceEl) {
|
2386
|
+
return;
|
2387
|
+
}
|
2388
|
+
const trackedState = autoUpdatingComponentMap.get(component);
|
2389
|
+
if (trackedState?.state === "active") {
|
2390
|
+
trackedState.cleanUp();
|
2391
|
+
}
|
2392
|
+
autoUpdatingComponentMap.delete(component);
|
2393
|
+
componentToDebouncedRepositionMap.get(component)?.cancel();
|
2394
|
+
componentToDebouncedRepositionMap.delete(component);
|
2395
|
+
}
|
2396
|
+
const visiblePointerSize = 4;
|
2397
|
+
/**
|
2398
|
+
* Default offset the position of the floating element away from the reference element.
|
2399
|
+
*
|
2400
|
+
* @default 6
|
2401
|
+
*/
|
2402
|
+
const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePointerSize));
|
2403
|
+
|
2404
|
+
export { FloatingCSS as F, defaultMenuPlacement as a, disconnectFloatingUI as b, connectFloatingUI as c, defaultEndMenuPlacement as d, defaultOffsetDistance as e, filterValidFlipPlacements as f, reposition as r };
|