@esri/solutions-components 0.10.18 → 0.10.20
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/ExpandToggle-54ca6b91.js +115 -0
- package/dist/cjs/FloatingArrow-28f6bb91.js +48 -0
- package/dist/cjs/Heading-63b5c82c.js +25 -0
- package/dist/cjs/Validation-9bab9a69.js +20 -0
- package/dist/cjs/app-globals-d2085e28.js +67 -0
- package/dist/cjs/ar-ce94723b.js +106 -0
- package/dist/cjs/array-708fd433.js +17 -0
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +15 -7
- package/dist/cjs/bg-8ab5661c.js +84 -0
- package/dist/cjs/browser-2893460e.js +35 -0
- package/dist/cjs/bs-f15b7a3d.js +53 -0
- package/dist/cjs/buffer-tools_3.cjs.entry.js +5 -5
- package/dist/cjs/ca-321e7e4f.js +73 -0
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +9 -9
- package/dist/cjs/calcite-accordion.cjs.entry.js +3 -3
- package/dist/cjs/calcite-action-bar.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action-group.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js +15 -15
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action_2.cjs.entry.js +20 -20
- package/dist/cjs/calcite-alert_5.cjs.entry.js +55 -27
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block-section.cjs.entry.js +10 -10
- package/dist/cjs/calcite-block_5.cjs.entry.js +27 -27
- package/dist/cjs/calcite-button.cjs.entry.js +14 -14
- package/dist/cjs/calcite-card-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-card.cjs.entry.js +11 -11
- package/dist/cjs/calcite-carousel-item.cjs.entry.js +2 -2
- package/dist/cjs/calcite-carousel.cjs.entry.js +12 -12
- package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -11
- package/dist/cjs/calcite-chip-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-chip_2.cjs.entry.js +15 -15
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-color-picker.cjs.entry.js +12 -12
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +21 -21
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-dialog.cjs.entry.js +15 -15
- package/dist/cjs/calcite-dropdown_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
- package/dist/cjs/calcite-filter_5.cjs.entry.js +18 -18
- package/dist/cjs/calcite-flow_4.cjs.entry.js +49 -17
- package/dist/cjs/calcite-graph_2.cjs.entry.js +15 -15
- package/dist/cjs/calcite-icon_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-number.cjs.entry.js +16 -16
- package/dist/cjs/calcite-input-text.cjs.entry.js +16 -16
- package/dist/cjs/calcite-input-time-picker-d63d914b.js +1861 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +20 -20
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +23 -17
- package/dist/cjs/calcite-input_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +6 -6
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-menu-item.cjs.entry.js +10 -10
- package/dist/cjs/calcite-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
- package/dist/cjs/calcite-modal_3.cjs.entry.js +19 -19
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +4 -4
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +3 -3
- package/dist/cjs/calcite-navigation.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +14 -14
- package/dist/cjs/calcite-option_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-pagination.cjs.entry.js +12 -12
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +15 -15
- package/dist/cjs/calcite-pick-list.cjs.entry.js +13 -13
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -11
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -14
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-sheet.cjs.entry.js +10 -10
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +7 -7
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +40 -39
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +8 -8
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +11 -11
- package/dist/cjs/calcite-stepper.cjs.entry.js +10 -10
- package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-table-row.cjs.entry.js +8 -8
- package/dist/cjs/calcite-table.cjs.entry.js +10 -10
- package/dist/cjs/calcite-text-area.cjs.entry.js +16 -16
- package/dist/cjs/calcite-tile-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile-select.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
- package/dist/cjs/calcite-time-picker.cjs.entry.js +13 -13
- package/dist/cjs/calcite-tip-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +12 -12
- package/dist/cjs/calcite-tip.cjs.entry.js +13 -13
- package/dist/cjs/calcite-tooltip.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tree_3.cjs.entry.js +11 -11
- package/dist/cjs/card-manager_3.cjs.entry.js +8 -7
- package/dist/cjs/common-eee0c33f.js +38 -0
- package/dist/cjs/component-7f2bd646.js +33 -0
- package/dist/cjs/conditionalSlot-2d2541f4.js +54 -0
- package/dist/cjs/config-7c16c710.js +40 -0
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +71 -32
- package/dist/cjs/cs-66742e3a.js +149 -0
- package/dist/cjs/da-933e7031.js +69 -0
- package/dist/cjs/date-e01a99aa.js +264 -0
- package/dist/cjs/de-87706bda.js +93 -0
- package/dist/cjs/de-at-752f7be1.js +92 -0
- package/dist/cjs/de-ch-41dc3fef.js +92 -0
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/dom-3d3a8f25.js +1215 -0
- package/dist/cjs/downloadUtils-470f6a27.js +3164 -0
- package/dist/cjs/el-23b7e02b.js +68 -0
- package/dist/cjs/en-au-4f9fe083.js +68 -0
- package/dist/cjs/en-ca-afba9508.js +67 -0
- package/dist/cjs/en-gb-78a49c6a.js +71 -0
- package/dist/cjs/es-ea5faae0.js +68 -0
- package/dist/cjs/es-mx-47a5667a.js +67 -0
- package/dist/cjs/et-72505ea1.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 +25 -12
- package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/fi-7b4ac88c.js +117 -0
- package/dist/cjs/filter-a9429bde.js +778 -0
- package/dist/cjs/floating-ui-9ff03df8.js +2373 -0
- package/dist/cjs/focusTrapComponent-86ebd41d.js +1018 -0
- package/dist/cjs/form-8132060d.js +381 -0
- package/dist/cjs/fr-8077e2e8.js +70 -0
- package/dist/cjs/fr-ch-04f427a0.js +68 -0
- package/dist/cjs/guid-42cda8c9.js +26 -0
- package/dist/cjs/he-93b37a58.js +107 -0
- package/dist/cjs/hi-cb320ba3.js +67 -0
- package/dist/cjs/hr-15e455d9.js +82 -0
- package/dist/cjs/hu-10c42dd5.js +90 -0
- package/dist/cjs/id-813844ef.js +68 -0
- package/dist/cjs/index.es-6387d8fb.js +11318 -0
- package/dist/cjs/input-3efc5a5e.js +60 -0
- package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-splash.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +9 -9
- package/dist/cjs/interactive-3b85d8df.js +167 -0
- package/dist/cjs/it-090375c5.js +68 -0
- package/dist/cjs/it-ch-6cc91215.js +68 -0
- package/dist/cjs/ja-e6697420.js +74 -0
- package/dist/cjs/key-82084ef6.js +19 -0
- package/dist/cjs/ko-522250be.js +74 -0
- package/dist/cjs/label-e7d3c371.js +186 -0
- package/dist/cjs/layout-manager.cjs.entry.js +1 -1
- package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/loadable-0e357195.js +98 -0
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/locale-351282c5.js +605 -0
- package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/logger-309df5d9.js +61 -0
- package/dist/cjs/lt-c2f9fd21.js +99 -0
- package/dist/cjs/lv-a1930986.js +68 -0
- package/dist/cjs/map-select-tools_3.cjs.entry.js +7 -6
- package/dist/cjs/math-14740338.js +60 -0
- package/dist/cjs/mk-deb11706.js +68 -0
- package/dist/cjs/nb-3859b631.js +69 -0
- package/dist/cjs/nl-6c2c838d.js +69 -0
- package/dist/cjs/observers-5f9f67ee.js +58 -0
- package/dist/cjs/openCloseComponent-b66f10f5.js +65 -0
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/pl-fcb7899e.js +116 -0
- package/dist/cjs/popupUtils-c38f840d.js +121 -0
- package/dist/cjs/pt-416d2cf8.js +69 -0
- package/dist/cjs/pt-br-bae3d576.js +67 -0
- package/dist/cjs/public-notification.cjs.entry.js +6 -5
- package/dist/cjs/purify-0805e9f8.js +1562 -0
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/resources-4446499e.js +39 -0
- package/dist/cjs/resources-4c3e1c50.js +68 -0
- package/dist/cjs/resources-6f65a67f.js +29 -0
- package/dist/cjs/resources-87ed79dd.js +23 -0
- package/dist/cjs/resources-9b04cd8c.js +23 -0
- package/dist/cjs/resources-a1ca0958.js +27 -0
- package/dist/cjs/resources-c5f09989.js +68 -0
- package/dist/cjs/resources-dbc687b5.js +26 -0
- package/dist/cjs/resources-f11e9bd6.js +39 -0
- package/dist/cjs/resources-f8785f51.js +21 -0
- package/dist/cjs/restHelpersGet-5c2245a3.js +991 -0
- package/dist/cjs/ro-bda94f37.js +68 -0
- package/dist/cjs/ru-7258ce51.js +128 -0
- package/dist/cjs/share-item.cjs.entry.js +1 -1
- package/dist/cjs/shared-list-render-d4b7311f.js +361 -0
- package/dist/cjs/sk-3a398547.js +150 -0
- package/dist/cjs/sl-bfb5a728.js +170 -0
- package/dist/cjs/solution-configuration.cjs.entry.js +31 -30
- package/dist/cjs/solution-contents_3.cjs.entry.js +8 -7
- package/dist/cjs/solution-resource-40e70253.js +145 -0
- package/dist/cjs/solution-store-2cd6a8c3.js +1354 -0
- package/dist/cjs/solutions-components.cjs.js +5 -5
- package/dist/cjs/sortableComponent-8684e273.js +2748 -0
- package/dist/cjs/spatial-ref.cjs.entry.js +4 -3
- package/dist/cjs/sr-58554054.js +103 -0
- package/dist/cjs/store-manager.cjs.entry.js +5 -4
- package/dist/cjs/sv-335a4402.js +73 -0
- package/dist/cjs/t9n-e41672d2.js +108 -0
- package/dist/cjs/templates-0b7f886f.js +408 -0
- package/dist/cjs/th-14ebad2e.js +67 -0
- package/dist/cjs/time-9a5e2f2d.js +301 -0
- package/dist/cjs/tr-36bcc20f.js +68 -0
- package/dist/cjs/uk-dcff92bd.js +106 -0
- package/dist/cjs/utils-29c97686.js +2304 -0
- package/dist/cjs/utils-edb4e372.js +78 -0
- package/dist/cjs/vi-284fec96.js +72 -0
- package/dist/cjs/zh-cn-1f4ab46b.js +96 -0
- package/dist/cjs/zh-hk-39cf1fdd.js +94 -0
- package/dist/cjs/zh-tw-e0b3117d.js +94 -0
- package/dist/collection/assets/t9n/card-manager/resources_ar.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_bg.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_bs.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_ca.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_cs.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_da.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_de.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_el.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_es.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_et.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_fi.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_fr.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_he.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_hr.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_hu.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_id.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_it.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_ja.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_ko.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_lt.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_lv.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_nb.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_nl.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_pl.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_pt-BR.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_pt-PT.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_ro.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_ru.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_sk.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_sl.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_sr.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_sv.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_th.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_tr.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_uk.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_vi.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_zh-CN.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_zh-HK.json +4 -1
- package/dist/collection/assets/t9n/card-manager/resources_zh-TW.json +4 -1
- package/dist/collection/assets/t9n/create-feature/resources.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_en.json +5 -0
- package/dist/collection/assets/t9n/create-related-feature/resources.json +3 -0
- package/dist/collection/assets/t9n/create-related-feature/resources_en.json +3 -0
- package/dist/collection/assets/t9n/crowdsource-reporter/resources.json +0 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_en.json +0 -1
- package/dist/collection/assets/t9n/layer-table/resources_ar.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_bg.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_bs.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_ca.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_cs.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_da.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_de.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_el.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_es.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_et.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_fi.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_fr.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_he.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_hr.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_hu.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_id.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_it.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_ja.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_ko.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_lt.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_lv.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_nb.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_nl.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_pl.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_pt-BR.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_pt-PT.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_ro.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_ru.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_sk.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_sl.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_sr.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_sv.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_th.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_tr.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_uk.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_vi.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_zh-CN.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_zh-HK.json +2 -1
- package/dist/collection/assets/t9n/layer-table/resources_zh-TW.json +2 -1
- package/dist/collection/components/basemap-gallery/basemap-gallery.js +11 -1
- package/dist/collection/components/create-feature/create-feature.css +6 -1
- package/dist/collection/components/create-feature/create-feature.js +50 -3
- package/dist/collection/components/create-related-feature/create-related-feature.css +10 -0
- package/dist/collection/components/create-related-feature/create-related-feature.js +35 -3
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +1 -1
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +72 -31
- package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
- package/dist/collection/components/delete-button/delete-button.js +1 -1
- package/dist/collection/components/edit-card/edit-card.js +1 -1
- package/dist/collection/components/feature-comments/feature-comments.js +1 -1
- package/dist/collection/components/feature-details/feature-details.css +0 -8
- package/dist/collection/components/feature-details/feature-details.js +58 -10
- package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
- package/dist/collection/components/feature-list/feature-list.js +29 -10
- package/dist/collection/components/features-flow-item/features-flow-item.js +1 -1
- package/dist/collection/components/floor-filter/floor-filter.js +1 -1
- package/dist/collection/components/info-card/info-card.js +2 -2
- package/dist/collection/components/json-editor/json-editor.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +3 -3
- package/dist/collection/components/layout-manager/layout-manager.js +1 -1
- package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
- package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
- package/dist/collection/components/map-card/map-card.js +1 -1
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.js +1 -1
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
- package/dist/collection/components/map-tools/map-tools.js +1 -1
- package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
- package/dist/collection/components/pdf-download/pdf-download.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +2 -2
- package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/components/share-item/share-item.js +1 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
- package/dist/collection/components/solution-contents/solution-contents.js +1 -1
- package/dist/collection/components/solution-item/solution-item.js +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
- package/dist/collection/components/solution-variables/solution-variables.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
- package/dist/collection/demos/crowdsource-reporter.html +24 -25
- package/dist/collection/utils/pdfUtils.js +1 -1
- package/dist/collection/utils/pdfUtils.ts +1 -1
- package/dist/components/ExpandToggle.js +2 -2
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/Validation.js +1 -1
- package/dist/components/action-bar.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action-pad.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/alert.js +2 -2
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +2 -2
- package/dist/components/basemap-gallery2.js +10 -1
- package/dist/components/block.js +1 -1
- package/dist/components/browser.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-carousel-item.js +1 -1
- package/dist/components/calcite-carousel.js +1 -1
- package/dist/components/calcite-dialog.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input-time-zone.js +11 -4
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-menu-item.js +1 -1
- package/dist/components/calcite-meter.js +1 -1
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-sheet.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +2 -2
- package/dist/components/calcite-table-row.js +1 -1
- package/dist/components/calcite-table.js +1 -1
- package/dist/components/calcite-text-area.js +1 -1
- package/dist/components/calcite-tile-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item-group.js +1 -1
- package/dist/components/combobox-item.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/common.js +1 -0
- package/dist/components/component.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/config.js +1 -1
- package/dist/components/create-feature2.js +47 -5
- package/dist/components/create-related-feature2.js +32 -5
- package/dist/components/crowdsource-manager.js +1 -1
- package/dist/components/crowdsource-reporter.js +73 -33
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker.js +2 -2
- package/dist/components/date.js +1 -1
- package/dist/components/deduct-calculator2.js +1 -1
- package/dist/components/delete-button2.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/downloadUtils.js +28 -27
- package/dist/components/dropdown.js +1 -1
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/feature-comments.js +1 -1
- package/dist/components/feature-details2.js +31 -11
- package/dist/components/feature-form-flow-item.js +1 -1
- package/dist/components/feature-list2.js +20 -8
- package/dist/components/features-flow-item.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/flow-item.js +1 -1
- package/dist/components/flow.js +1 -1
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +2 -2
- package/dist/components/index.js +2 -2
- package/dist/components/index2.js +2117 -162
- package/dist/components/index3.js +162 -2117
- package/dist/components/info-card2.js +2 -2
- package/dist/components/input-date-picker.js +2 -2
- package/dist/components/input-message.js +1 -1
- package/dist/components/input-number.js +1 -1
- package/dist/components/input-text.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/input2.js +1 -1
- package/dist/components/instant-apps-header2.js +1 -1
- package/dist/components/instant-apps-splash.js +1 -1
- package/dist/components/instant-apps-time-filter.js +10 -10
- package/dist/components/interactive.js +1 -1
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/layer-table2.js +3 -3
- package/dist/components/layout-manager.js +1 -1
- package/dist/components/list-flow-item.js +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale2.js +2 -2
- package/dist/components/location-flow-item.js +1 -1
- package/dist/components/logger.js +1 -1
- package/dist/components/map-card2.js +1 -1
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +1 -1
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +1 -1
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/map-tools2.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/modal.js +1 -1
- package/dist/components/navigation-user.js +1 -1
- package/dist/components/notice.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/pagination.js +2 -2
- package/dist/components/panel.js +2 -2
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +2 -2
- package/dist/components/public-notification.js +2 -2
- package/dist/components/publicNotificationStore.js +1 -1
- package/dist/components/purify.js +275 -429
- package/dist/components/radio-button.js +1 -1
- package/dist/components/refine-results-flow-item.js +1 -1
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/resources4.js +1 -1
- package/dist/components/resources5.js +1 -1
- package/dist/components/resources6.js +1 -1
- package/dist/components/restHelpersGet.js +16 -0
- package/dist/components/scrim.js +1 -1
- package/dist/components/segmented-control-item.js +1 -1
- package/dist/components/segmented-control.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/share-item.js +1 -1
- package/dist/components/shared-list-render.js +2 -2
- package/dist/components/shell-panel.js +1 -1
- package/dist/components/shell.js +2 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/solution-configuration.js +27 -26
- package/dist/components/solution-contents2.js +1 -1
- package/dist/components/solution-item-details2.js +1 -1
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +1 -1
- package/dist/components/solution-item2.js +1 -1
- package/dist/components/solution-organization-variables2.js +1 -1
- package/dist/components/solution-resource-item2.js +2 -1
- package/dist/components/solution-resource.js +1 -1699
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-store.js +2 -1
- package/dist/components/solution-template-data2.js +1 -1
- package/dist/components/solution-variables2.js +1 -1
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/spatial-ref.js +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/store.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/table-cell.js +1 -1
- package/dist/components/table-header.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/templates.js +1 -0
- package/dist/components/time-picker.js +2 -2
- package/dist/components/tooltip.js +3 -3
- package/dist/components/tree-item.js +1 -1
- package/dist/components/tree.js +1 -1
- package/dist/components/utils.js +2 -2
- package/dist/components/utils2.js +2 -2
- package/dist/components/utils3.js +1 -1
- package/dist/components/utils4.js +1 -1
- package/dist/components/value-list-item.js +1 -1
- package/dist/components/value-list.js +2 -2
- package/dist/esm/ExpandToggle-b5147279.js +108 -0
- package/dist/esm/FloatingArrow-9a505e89.js +46 -0
- package/dist/esm/Heading-cae0b34c.js +22 -0
- package/dist/esm/Validation-bd0a53ec.js +18 -0
- package/dist/esm/app-globals-530c75ff.js +65 -0
- package/dist/esm/ar-e0e64e78.js +104 -0
- package/dist/esm/array-ddb2593b.js +15 -0
- package/dist/esm/basemap-gallery_7.entry.js +15 -7
- package/dist/esm/bg-d2d8dbe0.js +82 -0
- package/dist/esm/browser-a791205e.js +32 -0
- package/dist/esm/bs-d883901d.js +51 -0
- package/dist/esm/buffer-tools_3.entry.js +5 -5
- package/dist/esm/ca-064729ad.js +71 -0
- package/dist/esm/calcite-accordion-item.entry.js +9 -9
- package/dist/esm/calcite-accordion.entry.js +3 -3
- package/dist/esm/calcite-action-bar.entry.js +14 -14
- package/dist/esm/calcite-action-group.entry.js +12 -12
- package/dist/esm/calcite-action-menu_2.entry.js +15 -15
- package/dist/esm/calcite-action-pad_2.entry.js +14 -14
- package/dist/esm/calcite-action_2.entry.js +20 -20
- package/dist/esm/calcite-alert_5.entry.js +55 -27
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block-section.entry.js +10 -10
- package/dist/esm/calcite-block_5.entry.js +27 -27
- package/dist/esm/calcite-button.entry.js +14 -14
- package/dist/esm/calcite-card-group.entry.js +6 -6
- package/dist/esm/calcite-card.entry.js +11 -11
- package/dist/esm/calcite-carousel-item.entry.js +2 -2
- package/dist/esm/calcite-carousel.entry.js +12 -12
- package/dist/esm/calcite-checkbox.entry.js +11 -11
- package/dist/esm/calcite-chip-group.entry.js +6 -6
- package/dist/esm/calcite-chip_2.entry.js +15 -15
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +8 -8
- package/dist/esm/calcite-color-picker.entry.js +12 -12
- package/dist/esm/calcite-combobox-item-group.entry.js +6 -6
- package/dist/esm/calcite-combobox_3.entry.js +21 -21
- package/dist/esm/calcite-date-picker-day_3.entry.js +13 -13
- package/dist/esm/calcite-dialog.entry.js +15 -15
- package/dist/esm/calcite-dropdown_2.entry.js +13 -13
- package/dist/esm/calcite-fab.entry.js +7 -7
- package/dist/esm/calcite-filter_5.entry.js +18 -18
- package/dist/esm/calcite-flow_4.entry.js +50 -18
- package/dist/esm/calcite-graph_2.entry.js +15 -15
- package/dist/esm/calcite-icon_2.entry.js +10 -10
- package/dist/esm/calcite-inline-editable.entry.js +13 -13
- package/dist/esm/calcite-input-number.entry.js +16 -16
- package/dist/esm/calcite-input-text.entry.js +16 -16
- package/dist/esm/calcite-input-time-picker-66e7a9f3.js +1858 -0
- package/dist/esm/calcite-input-time-picker.entry.js +20 -20
- package/dist/esm/calcite-input-time-zone.entry.js +23 -17
- package/dist/esm/calcite-input_2.entry.js +16 -16
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +6 -6
- package/dist/esm/calcite-list-item-group.entry.js +4 -4
- package/dist/esm/calcite-menu-item.entry.js +10 -10
- package/dist/esm/calcite-menu.entry.js +9 -9
- package/dist/esm/calcite-meter.entry.js +10 -10
- package/dist/esm/calcite-modal_3.entry.js +19 -19
- package/dist/esm/calcite-navigation-logo.entry.js +4 -4
- package/dist/esm/calcite-navigation-user.entry.js +3 -3
- package/dist/esm/calcite-navigation.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +14 -14
- package/dist/esm/calcite-option_2.entry.js +12 -12
- package/dist/esm/calcite-pagination.entry.js +12 -12
- package/dist/esm/calcite-pick-list-group.entry.js +10 -10
- package/dist/esm/calcite-pick-list-item.entry.js +15 -15
- package/dist/esm/calcite-pick-list.entry.js +13 -13
- package/dist/esm/calcite-radio-button-group.entry.js +8 -8
- package/dist/esm/calcite-radio-button.entry.js +11 -11
- package/dist/esm/calcite-rating.entry.js +14 -14
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +13 -13
- package/dist/esm/calcite-sheet.entry.js +10 -10
- package/dist/esm/calcite-shell-center-row.entry.js +7 -7
- package/dist/esm/calcite-shell-panel_14.entry.js +40 -39
- package/dist/esm/calcite-sortable-list.entry.js +8 -8
- package/dist/esm/calcite-split-button.entry.js +4 -4
- package/dist/esm/calcite-stepper-item.entry.js +11 -11
- package/dist/esm/calcite-stepper.entry.js +10 -10
- package/dist/esm/calcite-switch.entry.js +11 -11
- package/dist/esm/calcite-table-cell_2.entry.js +13 -13
- package/dist/esm/calcite-table-row.entry.js +8 -8
- package/dist/esm/calcite-table.entry.js +10 -10
- package/dist/esm/calcite-text-area.entry.js +16 -16
- package/dist/esm/calcite-tile-group.entry.js +7 -7
- package/dist/esm/calcite-tile-select-group.entry.js +4 -4
- package/dist/esm/calcite-tile-select.entry.js +7 -7
- package/dist/esm/calcite-tile.entry.js +7 -7
- package/dist/esm/calcite-time-picker.entry.js +13 -13
- package/dist/esm/calcite-tip-group.entry.js +2 -2
- package/dist/esm/calcite-tip-manager.entry.js +12 -12
- package/dist/esm/calcite-tip.entry.js +13 -13
- package/dist/esm/calcite-tooltip.entry.js +10 -10
- package/dist/esm/calcite-tree_3.entry.js +11 -11
- package/dist/esm/card-manager_3.entry.js +8 -7
- package/dist/esm/common-c3bbba83.js +36 -0
- package/dist/esm/component-d35983a4.js +30 -0
- package/dist/esm/conditionalSlot-0cbc7172.js +51 -0
- package/dist/esm/config-8d1c3431.js +36 -0
- package/dist/esm/crowdsource-manager.entry.js +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +71 -32
- package/dist/esm/cs-3751e560.js +147 -0
- package/dist/esm/da-227f8ad5.js +67 -0
- package/dist/esm/date-87a67cb4.js +248 -0
- package/dist/esm/de-a5d2b25b.js +91 -0
- package/dist/esm/de-at-66232b80.js +90 -0
- package/dist/esm/de-ch-1264ed4c.js +90 -0
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/dom-63d2d41c.js +1180 -0
- package/dist/esm/downloadUtils-d1f791c5.js +3157 -0
- package/dist/esm/el-f5bf7ca3.js +66 -0
- package/dist/esm/en-au-2ac8f62e.js +66 -0
- package/dist/esm/en-ca-a1602b49.js +65 -0
- package/dist/esm/en-gb-28354b2e.js +69 -0
- package/dist/esm/es-feb7aad2.js +66 -0
- package/dist/esm/es-mx-5d64f899.js +65 -0
- package/dist/esm/et-173d2f49.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 +25 -12
- package/dist/esm/features-flow-item.entry.js +1 -1
- package/dist/esm/fi-ff9bb719.js +115 -0
- package/dist/esm/filter-6ee02739.js +775 -0
- package/dist/esm/floating-ui-c7ae81d9.js +2365 -0
- package/dist/esm/focusTrapComponent-833b1234.js +1013 -0
- package/dist/esm/form-08e1bcb7.js +372 -0
- package/dist/esm/fr-ch-491f1abe.js +66 -0
- package/dist/esm/fr-e3af6835.js +68 -0
- package/dist/esm/guid-42656051.js +24 -0
- package/dist/esm/he-47aa8dde.js +105 -0
- package/dist/esm/hi-1700df3e.js +65 -0
- package/dist/esm/hr-68b828f5.js +80 -0
- package/dist/esm/hu-df6a8f29.js +88 -0
- package/dist/esm/id-8091582d.js +66 -0
- package/dist/esm/index.es-decad494.js +11231 -0
- package/dist/esm/input-7f3fc18b.js +58 -0
- package/dist/esm/instant-apps-header.entry.js +1 -1
- package/dist/esm/instant-apps-splash.entry.js +1 -1
- package/dist/esm/instant-apps-time-filter.entry.js +9 -9
- package/dist/esm/interactive-b2a41b8b.js +162 -0
- package/dist/esm/it-1f5e149d.js +66 -0
- package/dist/esm/it-ch-bf7fcac6.js +66 -0
- package/dist/esm/ja-a5117166.js +72 -0
- package/dist/esm/key-d6dfb50e.js +16 -0
- package/dist/esm/ko-9d7a9e79.js +72 -0
- package/dist/esm/label-4c4e06d6.js +179 -0
- package/dist/esm/layout-manager.entry.js +1 -1
- package/dist/esm/list-flow-item.entry.js +1 -1
- package/dist/esm/loadable-1a9b14b8.js +93 -0
- package/dist/esm/loader.js +5 -5
- package/dist/esm/locale-4441c976.js +591 -0
- package/dist/esm/location-flow-item.entry.js +1 -1
- package/dist/esm/logger-3188b9c3.js +59 -0
- package/dist/esm/lt-2e1c53de.js +97 -0
- package/dist/esm/lv-ca1ba866.js +66 -0
- package/dist/esm/map-select-tools_3.entry.js +7 -6
- package/dist/esm/math-9afe1f6d.js +54 -0
- package/dist/esm/mk-421d0d41.js +66 -0
- package/dist/esm/nb-5b103e32.js +67 -0
- package/dist/esm/nl-eac33461.js +67 -0
- package/dist/esm/observers-6cac5525.js +56 -0
- package/dist/esm/openCloseComponent-c8c8645b.js +63 -0
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/pl-03531ccb.js +114 -0
- package/dist/esm/popupUtils-4e0a103f.js +119 -0
- package/dist/esm/pt-b5d8bffc.js +67 -0
- package/dist/esm/pt-br-dee45728.js +65 -0
- package/dist/esm/public-notification.entry.js +6 -5
- package/dist/esm/purify-cb56797a.js +1560 -0
- package/dist/esm/refine-results-flow-item.entry.js +1 -1
- package/dist/esm/resources-119ae117.js +23 -0
- package/dist/esm/resources-244d70ca.js +22 -0
- package/dist/esm/resources-3f56d4e7.js +19 -0
- package/dist/esm/resources-57625076.js +63 -0
- package/dist/esm/resources-5b213c89.js +35 -0
- package/dist/esm/resources-61eab899.js +20 -0
- package/dist/esm/resources-745dec87.js +34 -0
- package/dist/esm/resources-9494c015.js +21 -0
- package/dist/esm/resources-d6566b8a.js +62 -0
- package/dist/esm/resources-d7e0fbbf.js +24 -0
- package/dist/esm/restHelpersGet-48113381.js +976 -0
- package/dist/esm/ro-df6cb584.js +66 -0
- package/dist/esm/ru-e7c02faa.js +126 -0
- package/dist/esm/share-item.entry.js +1 -1
- package/dist/esm/shared-list-render-cadae2eb.js +339 -0
- package/dist/esm/sk-cae387d2.js +148 -0
- package/dist/esm/sl-2892ad87.js +168 -0
- package/dist/esm/solution-configuration.entry.js +31 -30
- package/dist/esm/solution-contents_3.entry.js +8 -7
- package/dist/esm/solution-resource-f5809979.js +142 -0
- package/dist/esm/solution-store-ca4d55de.js +1352 -0
- package/dist/esm/solutions-components.js +5 -5
- package/dist/esm/sortableComponent-52b99f0f.js +2745 -0
- package/dist/esm/spatial-ref.entry.js +4 -3
- package/dist/esm/sr-11e6839f.js +101 -0
- package/dist/esm/store-manager.entry.js +5 -4
- package/dist/esm/sv-fd5c6ca5.js +71 -0
- package/dist/esm/t9n-b7ea1a61.js +103 -0
- package/dist/esm/templates-0b442208.js +402 -0
- package/dist/esm/th-170cf6b1.js +65 -0
- package/dist/esm/time-a7f1020b.js +286 -0
- package/dist/esm/tr-1d6ca382.js +66 -0
- package/dist/esm/uk-35eec84e.js +104 -0
- package/dist/esm/utils-62514064.js +65 -0
- package/dist/esm/utils-d2524a35.js +2274 -0
- package/dist/esm/vi-2713ee26.js +70 -0
- package/dist/esm/zh-cn-ed066014.js +94 -0
- package/dist/esm/zh-hk-a118dced.js +92 -0
- package/dist/esm/zh-tw-c9bbf220.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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action/action.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-bar/action-bar.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-group/action-group.css +5 -5
- 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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/alert/alert.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/avatar/avatar.css +5 -5
- 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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card-group/card-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel/carousel.css +5 -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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip/chip.css +5 -5
- 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 +5 -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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/icon/icon.css +5 -5
- 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 +5 -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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-text/input-text.css +5 -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 +5 -5
- 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 +6 -22
- 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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/progress/progress.css +5 -5
- 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 +6 -6
- 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 +5 -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 +5 -5
- 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 +5 -5
- 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/t9n/card-manager/resources_ar.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_bg.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_bs.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_ca.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_cs.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_da.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_de.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_el.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_es.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_et.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_fi.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_fr.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_he.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_hr.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_hu.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_id.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_it.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_ja.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_ko.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_lt.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_lv.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_nb.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_nl.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_pl.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_pt-BR.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_pt-PT.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_ro.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_ru.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_sk.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_sl.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_sr.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_sv.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_th.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_tr.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_uk.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_vi.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_zh-CN.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_zh-HK.json +4 -1
- package/dist/solutions-components/assets/t9n/card-manager/resources_zh-TW.json +4 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_en.json +5 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources.json +3 -0
- package/dist/solutions-components/assets/t9n/create-related-feature/resources_en.json +3 -0
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources.json +0 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_en.json +0 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ar.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_bg.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_bs.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ca.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_cs.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_da.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_de.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_el.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_es.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_et.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_fi.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_fr.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_he.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_hr.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_hu.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_id.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_it.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ja.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ko.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_lt.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_lv.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_nb.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_nl.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_pl.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_pt-BR.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_pt-PT.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ro.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ru.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_sk.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_sl.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_sr.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_sv.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_th.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_tr.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_uk.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_vi.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_zh-CN.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_zh-HK.json +2 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_zh-TW.json +2 -1
- package/dist/solutions-components/demos/crowdsource-reporter.html +24 -25
- package/dist/solutions-components/p-01dae909.js +6 -0
- package/dist/solutions-components/p-02ea30d1.entry.js +11 -0
- package/dist/solutions-components/p-040b6e44.entry.js +6 -0
- package/dist/solutions-components/p-04294b8e.js +6 -0
- package/dist/solutions-components/p-062e5705.entry.js +6 -0
- package/dist/solutions-components/p-062f4457.js +6 -0
- package/dist/solutions-components/p-07d30a6b.entry.js +11 -0
- package/dist/solutions-components/p-08d1cc1f.js +11 -0
- package/dist/solutions-components/p-0a165419.js +18 -0
- package/dist/solutions-components/p-0b6e5486.js +6 -0
- package/dist/solutions-components/p-0d6b3f44.js +6 -0
- package/dist/solutions-components/p-0dc73313.js +6 -0
- package/dist/solutions-components/p-0e851a4b.js +6 -0
- package/dist/solutions-components/p-0ef9d36b.js +11 -0
- package/dist/solutions-components/p-1017609e.js +11 -0
- package/dist/solutions-components/p-1490c752.js +61 -0
- package/dist/solutions-components/p-14f027b5.js +11 -0
- package/dist/solutions-components/p-150394be.js +11 -0
- package/dist/solutions-components/p-16a3f7ca.entry.js +6 -0
- package/dist/solutions-components/p-16b24981.entry.js +11 -0
- package/dist/solutions-components/p-19b466d0.js +6 -0
- package/dist/solutions-components/p-1a06bf01.js +6 -0
- package/dist/solutions-components/p-1b0fe5b1.entry.js +6 -0
- package/dist/solutions-components/p-1b229454.js +11 -0
- package/dist/solutions-components/p-1c249530.js +11 -0
- package/dist/solutions-components/p-1ce2608d.js +12 -0
- package/dist/solutions-components/p-1ef6a1c2.entry.js +6 -0
- package/dist/solutions-components/p-2007eaa4.entry.js +6 -0
- package/dist/solutions-components/p-222e0445.entry.js +11 -0
- package/dist/solutions-components/p-2230d4cc.js +11 -0
- package/dist/solutions-components/p-2264e8d5.entry.js +11 -0
- package/dist/solutions-components/p-23ce9afa.entry.js +11 -0
- package/dist/solutions-components/p-23dd68de.entry.js +17 -0
- package/dist/solutions-components/p-245c35ce.js +6 -0
- package/dist/solutions-components/p-24a813a4.entry.js +6 -0
- package/dist/solutions-components/p-25b5ffea.js +6 -0
- package/dist/solutions-components/p-267ef1b8.entry.js +11 -0
- package/dist/solutions-components/p-270ead49.js +16 -0
- package/dist/solutions-components/p-27d462c0.js +11 -0
- package/dist/solutions-components/p-2868a42b.js +11 -0
- package/dist/solutions-components/p-29a09798.js +17 -0
- package/dist/solutions-components/p-2aa44a02.entry.js +11 -0
- package/dist/solutions-components/p-2d17790c.js +6 -0
- package/dist/solutions-components/p-2e06ec97.js +6 -0
- package/dist/solutions-components/p-304cef31.js +16 -0
- package/dist/solutions-components/p-33db098c.js +6 -0
- package/dist/solutions-components/p-347d9ce0.js +6 -0
- package/dist/solutions-components/p-36e59391.js +143 -0
- package/dist/solutions-components/p-3792492a.js +11 -0
- package/dist/solutions-components/p-38a87c63.js +11 -0
- package/dist/solutions-components/p-3a47fde6.entry.js +11 -0
- package/dist/solutions-components/p-3c1ecf85.entry.js +29 -0
- package/dist/solutions-components/p-3c89bfe5.entry.js +6 -0
- package/dist/solutions-components/p-3e828614.js +11 -0
- package/dist/solutions-components/p-40175313.entry.js +11 -0
- package/dist/solutions-components/p-40f5df15.entry.js +11 -0
- package/dist/solutions-components/p-42cd083f.entry.js +20 -0
- package/dist/solutions-components/p-47a0be20.js +11 -0
- package/dist/solutions-components/p-4920ee12.js +11 -0
- package/dist/solutions-components/p-49bbe45e.js +6 -0
- package/dist/solutions-components/p-4b9b7778.js +11 -0
- package/dist/solutions-components/p-4c179300.entry.js +11 -0
- package/dist/solutions-components/p-4c88578a.entry.js +6 -0
- package/dist/solutions-components/p-4e7aa926.js +6 -0
- package/dist/solutions-components/p-4fe5e9c3.entry.js +22 -0
- package/dist/solutions-components/p-508b2b7b.js +6 -0
- package/dist/solutions-components/p-52f19286.entry.js +11 -0
- package/dist/solutions-components/p-53b5a39e.js +6 -0
- package/dist/solutions-components/p-5440c8dd.js +6 -0
- package/dist/solutions-components/p-54a9017c.entry.js +11 -0
- package/dist/solutions-components/p-54b7e680.js +6 -0
- package/dist/solutions-components/p-550da58b.js +6 -0
- package/dist/solutions-components/p-5612aa0c.entry.js +6 -0
- package/dist/solutions-components/p-57025491.entry.js +6 -0
- package/dist/solutions-components/p-5a3cab12.entry.js +17 -0
- package/dist/solutions-components/p-5de67b86.js +11 -0
- package/dist/solutions-components/p-5e71e72a.js +21 -0
- package/dist/solutions-components/p-5f705984.js +6 -0
- package/dist/solutions-components/p-5f7c1e49.js +6 -0
- package/dist/solutions-components/p-6147cfb4.entry.js +6 -0
- package/dist/solutions-components/p-6319ca20.js +6 -0
- package/dist/solutions-components/p-64a34d92.js +11 -0
- package/dist/solutions-components/p-64bf4d2e.entry.js +11 -0
- package/dist/solutions-components/p-66afdfdd.entry.js +17 -0
- package/dist/solutions-components/p-66b01781.js +11 -0
- package/dist/solutions-components/p-67c34d05.entry.js +16 -0
- package/dist/solutions-components/p-691cb5f4.js +21 -0
- package/dist/solutions-components/p-6b0fa1eb.entry.js +17 -0
- package/dist/solutions-components/p-6c080ac7.entry.js +11 -0
- package/dist/solutions-components/p-707ee1d1.entry.js +11 -0
- package/dist/solutions-components/p-712873f0.js +6 -0
- package/dist/solutions-components/p-732bb88c.entry.js +6 -0
- package/dist/solutions-components/p-744d9575.js +11 -0
- package/dist/solutions-components/p-74fbad1c.js +489 -0
- package/dist/solutions-components/p-7586e1de.entry.js +6 -0
- package/dist/solutions-components/p-770a0e12.js +6 -0
- package/dist/solutions-components/p-793f1b14.entry.js +11 -0
- package/dist/solutions-components/p-798b9928.entry.js +11 -0
- package/dist/solutions-components/p-79f5a8be.js +11 -0
- package/dist/solutions-components/p-79f78acc.entry.js +11 -0
- package/dist/solutions-components/p-7ae41cd8.js +6 -0
- package/dist/solutions-components/p-7b2ef872.entry.js +11 -0
- package/dist/solutions-components/p-7c854814.js +11 -0
- package/dist/solutions-components/p-7fce703f.entry.js +12 -0
- package/dist/solutions-components/p-80f49acc.js +6 -0
- package/dist/solutions-components/p-8537518d.entry.js +11 -0
- package/dist/solutions-components/p-8614d1a0.entry.js +11 -0
- package/dist/solutions-components/p-87f928a5.entry.js +17 -0
- package/dist/solutions-components/p-8bb2c169.js +11 -0
- package/dist/solutions-components/p-8bce991a.js +11 -0
- package/dist/solutions-components/p-8bfa18b7.js +11 -0
- package/dist/solutions-components/p-8c6a301f.entry.js +47 -0
- package/dist/solutions-components/p-8da5aeea.entry.js +11 -0
- package/dist/solutions-components/p-8fb06a85.entry.js +11 -0
- package/dist/solutions-components/p-919e9de7.entry.js +11 -0
- package/dist/solutions-components/p-91b7a7dc.entry.js +11 -0
- package/dist/solutions-components/p-924ec704.js +6 -0
- package/dist/solutions-components/p-9277a339.entry.js +22 -0
- package/dist/solutions-components/p-92ba99ff.js +6 -0
- package/dist/solutions-components/p-936037e4.js +6 -0
- package/dist/solutions-components/p-9384cc65.entry.js +11 -0
- package/dist/solutions-components/p-94ae78d6.js +6 -0
- package/dist/solutions-components/p-9524e5e4.js +6 -0
- package/dist/solutions-components/p-9560a1fd.entry.js +6 -0
- package/dist/solutions-components/p-95c3b305.entry.js +12 -0
- package/dist/solutions-components/p-986ff43b.entry.js +17 -0
- package/dist/solutions-components/p-990d8b4b.js +6 -0
- package/dist/solutions-components/p-996daf05.entry.js +6 -0
- package/dist/solutions-components/p-9bb44f57.js +65 -0
- package/dist/solutions-components/p-9bc84681.js +6 -0
- package/dist/solutions-components/p-9c5f4347.js +6 -0
- package/dist/solutions-components/p-9db30b19.entry.js +6 -0
- package/dist/solutions-components/p-9fa7a7ad.entry.js +6 -0
- package/dist/solutions-components/p-9fed495d.entry.js +17 -0
- package/dist/solutions-components/p-a37d1b17.entry.js +6 -0
- package/dist/solutions-components/p-a471ceb6.js +11 -0
- package/dist/solutions-components/p-a4e35c2d.entry.js +6 -0
- package/dist/solutions-components/p-a5e64f6b.entry.js +6 -0
- package/dist/solutions-components/p-a79f4c52.entry.js +12 -0
- package/dist/solutions-components/p-a8b42e35.entry.js +6 -0
- package/dist/solutions-components/p-aa341d46.entry.js +11 -0
- package/dist/solutions-components/p-aa68a36e.entry.js +11 -0
- package/dist/solutions-components/p-aa85b136.entry.js +6 -0
- package/dist/solutions-components/p-aaa56cbf.js +11 -0
- package/dist/solutions-components/p-ac11cf8f.entry.js +11 -0
- package/dist/solutions-components/p-aef41a6d.entry.js +11 -0
- package/dist/solutions-components/p-b3e8da19.entry.js +11 -0
- package/dist/solutions-components/p-b5575639.js +11 -0
- package/dist/solutions-components/p-b5b66530.js +11 -0
- package/dist/solutions-components/p-b75c4db2.entry.js +6 -0
- package/dist/solutions-components/p-b76ed1c7.entry.js +11 -0
- package/dist/solutions-components/p-b8b78283.entry.js +29 -0
- package/dist/solutions-components/p-b8ce880d.js +6 -0
- package/dist/solutions-components/p-b8f33145.js +6 -0
- package/dist/solutions-components/p-b96233e3.entry.js +6 -0
- package/dist/solutions-components/p-bae65813.entry.js +6 -0
- package/dist/solutions-components/p-bb0f549a.js +6 -0
- package/dist/solutions-components/p-bc6cf10f.entry.js +11 -0
- package/dist/solutions-components/p-bde2619f.entry.js +6 -0
- package/dist/solutions-components/p-c0d25be5.entry.js +21 -0
- package/dist/solutions-components/p-c151da98.entry.js +11 -0
- package/dist/solutions-components/p-c163b67f.js +6 -0
- package/dist/solutions-components/p-c1fa5dae.entry.js +11 -0
- package/dist/solutions-components/p-c25e8c35.js +17 -0
- package/dist/solutions-components/p-c40b0ec5.js +16 -0
- package/dist/solutions-components/p-c4953b5e.entry.js +11 -0
- package/dist/solutions-components/p-c5facecd.entry.js +6 -0
- package/dist/solutions-components/p-c6255e3c.entry.js +6 -0
- package/dist/solutions-components/p-c7eaade6.entry.js +11 -0
- package/dist/solutions-components/p-ca6055a3.js +6 -0
- package/dist/solutions-components/p-cadbe907.entry.js +11 -0
- package/dist/solutions-components/p-cb07016a.entry.js +11 -0
- package/dist/solutions-components/p-cd6eee11.js +6 -0
- package/dist/solutions-components/p-cf9e6515.entry.js +11 -0
- package/dist/solutions-components/p-d0d020a5.js +37 -0
- package/dist/solutions-components/p-d1cc620f.entry.js +11 -0
- package/dist/solutions-components/p-d36878db.js +11 -0
- package/dist/solutions-components/p-d47abf9b.entry.js +16 -0
- package/dist/solutions-components/p-d75ef009.entry.js +11 -0
- package/dist/solutions-components/p-d784f756.entry.js +23 -0
- package/dist/solutions-components/p-d9e930c8.js +11 -0
- package/dist/solutions-components/p-da80cfbc.entry.js +11 -0
- package/dist/solutions-components/p-de3ee7a6.entry.js +17 -0
- package/dist/solutions-components/p-de8121a4.js +6 -0
- package/dist/solutions-components/p-dfeb6a2e.entry.js +11 -0
- package/dist/solutions-components/p-e0ee0556.entry.js +11 -0
- package/dist/solutions-components/p-e378184f.entry.js +6 -0
- package/dist/solutions-components/p-e3fe81ae.js +7 -0
- package/dist/solutions-components/p-e4ef6f49.js +6 -0
- package/dist/solutions-components/p-e74bc7b3.js +6 -0
- package/dist/solutions-components/p-e9d3365f.js +22 -0
- package/dist/solutions-components/p-eb2859d6.js +6 -0
- package/dist/solutions-components/p-ee9b7fab.js +6 -0
- package/dist/solutions-components/p-ef67c743.js +11 -0
- package/dist/solutions-components/p-f3166d51.entry.js +6 -0
- package/dist/solutions-components/p-f550ebc1.entry.js +6 -0
- package/dist/solutions-components/p-f6c3501c.js +16 -0
- package/dist/solutions-components/p-f6f2018a.js +11 -0
- package/dist/solutions-components/p-f7bc99fb.entry.js +17 -0
- package/dist/solutions-components/p-f88c3477.entry.js +6 -0
- package/dist/solutions-components/p-f8d23498.js +11 -0
- package/dist/solutions-components/p-fa56b7c2.js +11 -0
- package/dist/solutions-components/p-fa68f43a.entry.js +6 -0
- package/dist/solutions-components/p-fb3e0eae.js +6 -0
- package/dist/solutions-components/p-fcd33b4f.js +6 -0
- package/dist/solutions-components/p-fd79adec.entry.js +6 -0
- package/dist/solutions-components/p-fedbf657.entry.js +11 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/pdfUtils.ts +1 -1
- package/dist/types/components/basemap-gallery/basemap-gallery.d.ts +1 -0
- package/dist/types/components/create-feature/create-feature.d.ts +20 -0
- package/dist/types/components/create-related-feature/create-related-feature.d.ts +16 -0
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +19 -3
- package/dist/types/components/feature-details/feature-details.d.ts +8 -0
- package/dist/types/components/feature-list/feature-list.d.ts +3 -1
- package/dist/types/components/layer-table/layer-table.d.ts +1 -1
- package/dist/types/components.d.ts +28 -1
- package/dist/types/preact.d.ts +3 -1
- package/package.json +8 -7
- package/dist/cjs/ExpandToggle-63855ea7.js +0 -115
- package/dist/cjs/FloatingArrow-4afc0a27.js +0 -48
- package/dist/cjs/Heading-f01dc40c.js +0 -25
- package/dist/cjs/Validation-c52e0b30.js +0 -20
- package/dist/cjs/app-globals-587d5fc5.js +0 -67
- package/dist/cjs/ar-406e323c.js +0 -106
- package/dist/cjs/array-7ee883b3.js +0 -17
- package/dist/cjs/bg-56abe1a2.js +0 -84
- package/dist/cjs/browser-e9eb8b2e.js +0 -35
- package/dist/cjs/bs-43ed4dcb.js +0 -53
- package/dist/cjs/ca-ad58f302.js +0 -73
- package/dist/cjs/calcite-input-time-picker-83bcd60f.js +0 -1861
- package/dist/cjs/common-4d4cf291.js +0 -37
- package/dist/cjs/component-ab59efe0.js +0 -33
- package/dist/cjs/conditionalSlot-e7b1e80b.js +0 -54
- package/dist/cjs/config-90915d7e.js +0 -40
- package/dist/cjs/cs-eef992e9.js +0 -149
- package/dist/cjs/da-4957191f.js +0 -69
- package/dist/cjs/date-09eabd7c.js +0 -264
- package/dist/cjs/de-64947d33.js +0 -93
- package/dist/cjs/de-at-976bd625.js +0 -92
- package/dist/cjs/de-ch-9c2f85be.js +0 -92
- package/dist/cjs/dom-5fd0c11a.js +0 -1215
- package/dist/cjs/downloadUtils-b1bc6031.js +0 -3163
- package/dist/cjs/el-17064e96.js +0 -68
- package/dist/cjs/en-au-bf34aa99.js +0 -68
- package/dist/cjs/en-ca-20b7aeab.js +0 -67
- package/dist/cjs/en-gb-72ebc333.js +0 -71
- package/dist/cjs/es-996df974.js +0 -68
- package/dist/cjs/es-mx-cf34d408.js +0 -67
- package/dist/cjs/et-fe1aba97.js +0 -94
- package/dist/cjs/fi-154d8730.js +0 -117
- package/dist/cjs/filter-1906ce7b.js +0 -778
- package/dist/cjs/floating-ui-b477f602.js +0 -2373
- package/dist/cjs/focusTrapComponent-01de8e72.js +0 -1018
- package/dist/cjs/form-fba99326.js +0 -381
- package/dist/cjs/fr-21a56733.js +0 -70
- package/dist/cjs/fr-ch-66f7a5c9.js +0 -68
- package/dist/cjs/guid-81a8c49f.js +0 -26
- package/dist/cjs/he-249d58b9.js +0 -107
- package/dist/cjs/hi-7015dbc4.js +0 -67
- package/dist/cjs/hr-e57553fd.js +0 -82
- package/dist/cjs/hu-e0a32fbd.js +0 -90
- package/dist/cjs/id-6eeb6f33.js +0 -68
- package/dist/cjs/index.es-5ad1b7be.js +0 -11317
- package/dist/cjs/input-cb7565cc.js +0 -60
- package/dist/cjs/interactive-d349d0f0.js +0 -167
- package/dist/cjs/it-21b9179c.js +0 -68
- package/dist/cjs/it-ch-ed862b1c.js +0 -68
- package/dist/cjs/ja-a5d93dac.js +0 -74
- package/dist/cjs/key-a0f7c4f3.js +0 -19
- package/dist/cjs/ko-1913cf25.js +0 -74
- package/dist/cjs/label-dc906a73.js +0 -186
- package/dist/cjs/loadable-d9a2a731.js +0 -98
- package/dist/cjs/locale-4d172288.js +0 -605
- package/dist/cjs/logger-dc99f85b.js +0 -61
- package/dist/cjs/lt-aeec2286.js +0 -99
- package/dist/cjs/lv-9055202a.js +0 -68
- package/dist/cjs/math-8d9588b6.js +0 -60
- package/dist/cjs/mk-98948b48.js +0 -68
- package/dist/cjs/nb-d88ea8dc.js +0 -69
- package/dist/cjs/nl-a8df29cd.js +0 -69
- package/dist/cjs/observers-b83abbfc.js +0 -58
- package/dist/cjs/openCloseComponent-a2a2a773.js +0 -65
- package/dist/cjs/pl-0c9cc2cf.js +0 -116
- package/dist/cjs/popupUtils-948e8990.js +0 -121
- package/dist/cjs/pt-5d70043e.js +0 -69
- package/dist/cjs/pt-br-fed6323a.js +0 -67
- package/dist/cjs/purify-17c0fc4a.js +0 -1716
- package/dist/cjs/resources-03698411.js +0 -39
- package/dist/cjs/resources-085b5a9c.js +0 -23
- package/dist/cjs/resources-08ceff44.js +0 -21
- package/dist/cjs/resources-32b7c652.js +0 -23
- package/dist/cjs/resources-3e7e7fb7.js +0 -26
- package/dist/cjs/resources-44438f5c.js +0 -68
- package/dist/cjs/resources-b4193681.js +0 -27
- package/dist/cjs/resources-bcc3f2b2.js +0 -68
- package/dist/cjs/resources-e3a7e2f5.js +0 -29
- package/dist/cjs/resources-e5bab826.js +0 -39
- package/dist/cjs/restHelpersGet-88ba0e25.js +0 -975
- package/dist/cjs/ro-021065c9.js +0 -68
- package/dist/cjs/ru-9ec3c8de.js +0 -128
- package/dist/cjs/shared-list-render-79567fc0.js +0 -361
- package/dist/cjs/sk-09cbe5ba.js +0 -150
- package/dist/cjs/sl-3a4381a4.js +0 -170
- package/dist/cjs/solution-resource-16c7510c.js +0 -1843
- package/dist/cjs/solution-store-1218246d.js +0 -1353
- package/dist/cjs/sortableComponent-abdb9e28.js +0 -2748
- package/dist/cjs/sr-c18bc63a.js +0 -103
- package/dist/cjs/sv-e721be29.js +0 -73
- package/dist/cjs/t9n-c8d7a2ec.js +0 -108
- package/dist/cjs/templates-2f44c01b.js +0 -407
- package/dist/cjs/th-baa740bc.js +0 -67
- package/dist/cjs/time-087f0346.js +0 -301
- package/dist/cjs/tr-c0b17a53.js +0 -68
- package/dist/cjs/uk-68a75a5a.js +0 -106
- package/dist/cjs/utils-8f400dfd.js +0 -78
- package/dist/cjs/utils-9a063f23.js +0 -2304
- package/dist/cjs/vi-bf3bf360.js +0 -72
- package/dist/cjs/zh-cn-f36908e8.js +0 -96
- package/dist/cjs/zh-hk-79863fdd.js +0 -94
- package/dist/cjs/zh-tw-eb1f3b17.js +0 -94
- package/dist/esm/ExpandToggle-f909e195.js +0 -108
- package/dist/esm/FloatingArrow-4dbed45e.js +0 -46
- package/dist/esm/Heading-19e46a14.js +0 -22
- package/dist/esm/Validation-0b8675a8.js +0 -18
- package/dist/esm/app-globals-0fc0d343.js +0 -65
- package/dist/esm/ar-2b7701c9.js +0 -104
- package/dist/esm/array-0d5d845c.js +0 -15
- package/dist/esm/bg-cfd918d6.js +0 -82
- package/dist/esm/browser-d0009bfe.js +0 -32
- package/dist/esm/bs-6e26541f.js +0 -51
- package/dist/esm/ca-3edf7b06.js +0 -71
- package/dist/esm/calcite-input-time-picker-c5ee10a4.js +0 -1858
- package/dist/esm/common-3b99e350.js +0 -35
- package/dist/esm/component-0f26d27a.js +0 -30
- package/dist/esm/conditionalSlot-56fa9723.js +0 -51
- package/dist/esm/config-e0237f7c.js +0 -36
- package/dist/esm/cs-93a3355b.js +0 -147
- package/dist/esm/da-f4d05bf2.js +0 -67
- package/dist/esm/date-dd3d9d2f.js +0 -248
- package/dist/esm/de-04f477b6.js +0 -91
- package/dist/esm/de-at-1b4e56b9.js +0 -90
- package/dist/esm/de-ch-59c96703.js +0 -90
- package/dist/esm/dom-9e8610a2.js +0 -1180
- package/dist/esm/downloadUtils-ee2d6a99.js +0 -3156
- package/dist/esm/el-134dd039.js +0 -66
- package/dist/esm/en-au-ec33ef70.js +0 -66
- package/dist/esm/en-ca-ab1fbea4.js +0 -65
- package/dist/esm/en-gb-ceb65f79.js +0 -69
- package/dist/esm/es-e023cfc8.js +0 -66
- package/dist/esm/es-mx-e0a5ee8c.js +0 -65
- package/dist/esm/et-572b1e56.js +0 -92
- package/dist/esm/fi-f13fae4c.js +0 -115
- package/dist/esm/filter-3c649b00.js +0 -775
- package/dist/esm/floating-ui-9d9558a6.js +0 -2365
- package/dist/esm/focusTrapComponent-a9be9a5f.js +0 -1013
- package/dist/esm/form-a992bc7e.js +0 -372
- package/dist/esm/fr-ch-a1f8ebbf.js +0 -66
- package/dist/esm/fr-e9b456c3.js +0 -68
- package/dist/esm/guid-52aae62c.js +0 -24
- package/dist/esm/he-dfaa7ea1.js +0 -105
- package/dist/esm/hi-efa0d8e7.js +0 -65
- package/dist/esm/hr-7c04c969.js +0 -80
- package/dist/esm/hu-fc6efaba.js +0 -88
- package/dist/esm/id-2d884294.js +0 -66
- package/dist/esm/index.es-6d52a4cf.js +0 -11230
- package/dist/esm/input-b18c3393.js +0 -58
- package/dist/esm/interactive-353bf495.js +0 -162
- package/dist/esm/it-913dabbb.js +0 -66
- package/dist/esm/it-ch-d4c2b23e.js +0 -66
- package/dist/esm/ja-b6c332b1.js +0 -72
- package/dist/esm/key-a9ffa61d.js +0 -16
- package/dist/esm/ko-b220c903.js +0 -72
- package/dist/esm/label-026b99b7.js +0 -179
- package/dist/esm/loadable-4841127f.js +0 -93
- package/dist/esm/locale-8a2aae09.js +0 -591
- package/dist/esm/logger-29d1dc0e.js +0 -59
- package/dist/esm/lt-e97a19a7.js +0 -97
- package/dist/esm/lv-c4e1d066.js +0 -66
- package/dist/esm/math-dd484f87.js +0 -54
- package/dist/esm/mk-fec9b21d.js +0 -66
- package/dist/esm/nb-28189f31.js +0 -67
- package/dist/esm/nl-194a064e.js +0 -67
- package/dist/esm/observers-3af27a40.js +0 -56
- package/dist/esm/openCloseComponent-00e6186d.js +0 -63
- package/dist/esm/pl-c0a7eacf.js +0 -114
- package/dist/esm/popupUtils-75294be5.js +0 -119
- package/dist/esm/pt-48180eaa.js +0 -67
- package/dist/esm/pt-br-e378640f.js +0 -65
- package/dist/esm/purify-72515357.js +0 -1714
- package/dist/esm/resources-0b9430f0.js +0 -21
- package/dist/esm/resources-2117aee0.js +0 -63
- package/dist/esm/resources-29504413.js +0 -34
- package/dist/esm/resources-37d6b520.js +0 -35
- package/dist/esm/resources-75518fcf.js +0 -23
- package/dist/esm/resources-8e7f2865.js +0 -22
- package/dist/esm/resources-8fe9ef4a.js +0 -20
- package/dist/esm/resources-966e32ad.js +0 -62
- package/dist/esm/resources-a1cc283e.js +0 -24
- package/dist/esm/resources-f4406546.js +0 -19
- package/dist/esm/restHelpersGet-788d7f7b.js +0 -960
- package/dist/esm/ro-a116f43c.js +0 -66
- package/dist/esm/ru-53b48473.js +0 -126
- package/dist/esm/shared-list-render-7df95a79.js +0 -339
- package/dist/esm/sk-6e16e781.js +0 -148
- package/dist/esm/sl-0b5a108a.js +0 -168
- package/dist/esm/solution-resource-966f8511.js +0 -1840
- package/dist/esm/solution-store-61fd39ea.js +0 -1351
- package/dist/esm/sortableComponent-fc3d2fcf.js +0 -2745
- package/dist/esm/sr-c91ad375.js +0 -101
- package/dist/esm/sv-99a8436f.js +0 -71
- package/dist/esm/t9n-d5539b3a.js +0 -103
- package/dist/esm/templates-9330d7b8.js +0 -401
- package/dist/esm/th-f448c101.js +0 -65
- package/dist/esm/time-8f4af53a.js +0 -286
- package/dist/esm/tr-1c4d126e.js +0 -66
- package/dist/esm/uk-afcd7307.js +0 -104
- package/dist/esm/utils-057404c5.js +0 -2274
- package/dist/esm/utils-6391b35c.js +0 -65
- package/dist/esm/vi-13e0626d.js +0 -70
- package/dist/esm/zh-cn-80512388.js +0 -94
- package/dist/esm/zh-hk-220c6f50.js +0 -92
- package/dist/esm/zh-tw-f9a73c0d.js +0 -92
- package/dist/solutions-components/p-0129abe8.entry.js +0 -11
- package/dist/solutions-components/p-0238f68c.js +0 -6
- package/dist/solutions-components/p-034291c9.entry.js +0 -11
- package/dist/solutions-components/p-042c0134.entry.js +0 -11
- package/dist/solutions-components/p-052d1165.js +0 -11
- package/dist/solutions-components/p-0558fbc7.js +0 -143
- package/dist/solutions-components/p-06c581b3.js +0 -6
- package/dist/solutions-components/p-071a80fb.js +0 -11
- package/dist/solutions-components/p-0ac3d6fb.js +0 -6
- package/dist/solutions-components/p-0afbf455.js +0 -11
- package/dist/solutions-components/p-0b0d30a9.entry.js +0 -11
- package/dist/solutions-components/p-0c8cf779.js +0 -6
- package/dist/solutions-components/p-0cdda3a9.js +0 -6
- package/dist/solutions-components/p-10a4512a.entry.js +0 -6
- package/dist/solutions-components/p-11149179.js +0 -6
- package/dist/solutions-components/p-111ff298.entry.js +0 -29
- package/dist/solutions-components/p-131ca2b1.js +0 -11
- package/dist/solutions-components/p-13ac2814.js +0 -6
- package/dist/solutions-components/p-14ac7f32.js +0 -17
- package/dist/solutions-components/p-15105f4c.js +0 -6
- package/dist/solutions-components/p-15cbdc2c.entry.js +0 -6
- package/dist/solutions-components/p-16af273f.entry.js +0 -6
- package/dist/solutions-components/p-17f35552.entry.js +0 -6
- package/dist/solutions-components/p-1803e66b.entry.js +0 -21
- package/dist/solutions-components/p-18103eee.entry.js +0 -11
- package/dist/solutions-components/p-190de825.js +0 -6
- package/dist/solutions-components/p-19879c48.entry.js +0 -6
- package/dist/solutions-components/p-1b147794.js +0 -11
- package/dist/solutions-components/p-1c45b737.entry.js +0 -6
- package/dist/solutions-components/p-1fcd444d.entry.js +0 -6
- package/dist/solutions-components/p-23c70a46.entry.js +0 -17
- package/dist/solutions-components/p-2483d087.entry.js +0 -11
- package/dist/solutions-components/p-26ccfcc6.entry.js +0 -6
- package/dist/solutions-components/p-27bc7520.js +0 -6
- package/dist/solutions-components/p-27eca753.js +0 -6
- package/dist/solutions-components/p-2866ef30.js +0 -11
- package/dist/solutions-components/p-288599db.entry.js +0 -16
- package/dist/solutions-components/p-28b4de12.js +0 -6
- package/dist/solutions-components/p-29a24832.entry.js +0 -6
- package/dist/solutions-components/p-2c7a600b.js +0 -6
- package/dist/solutions-components/p-2cff27c5.js +0 -22
- package/dist/solutions-components/p-2df01fbd.js +0 -6
- package/dist/solutions-components/p-30448906.entry.js +0 -6
- package/dist/solutions-components/p-32539121.js +0 -16
- package/dist/solutions-components/p-32b1bb0a.entry.js +0 -11
- package/dist/solutions-components/p-33601437.js +0 -6
- package/dist/solutions-components/p-351b4ea6.js +0 -61
- package/dist/solutions-components/p-363c89e1.js +0 -6
- package/dist/solutions-components/p-3795ce25.js +0 -18
- package/dist/solutions-components/p-3832f6b0.js +0 -11
- package/dist/solutions-components/p-38346d75.js +0 -6
- package/dist/solutions-components/p-39bc5b60.js +0 -6
- package/dist/solutions-components/p-3a4f0ef6.js +0 -6
- package/dist/solutions-components/p-3a839252.entry.js +0 -6
- package/dist/solutions-components/p-3ab1d999.js +0 -6
- package/dist/solutions-components/p-3ae3fb2d.entry.js +0 -6
- package/dist/solutions-components/p-3edf491f.js +0 -11
- package/dist/solutions-components/p-3f23fa58.js +0 -6
- package/dist/solutions-components/p-4115fcd2.entry.js +0 -6
- package/dist/solutions-components/p-416c0818.js +0 -11
- package/dist/solutions-components/p-42903dc4.entry.js +0 -11
- package/dist/solutions-components/p-432d7aac.entry.js +0 -11
- package/dist/solutions-components/p-443bb48a.js +0 -6
- package/dist/solutions-components/p-44b455ac.js +0 -21
- package/dist/solutions-components/p-461d72a9.entry.js +0 -11
- package/dist/solutions-components/p-4a5f4c12.js +0 -6
- package/dist/solutions-components/p-4a8da1a3.entry.js +0 -6
- package/dist/solutions-components/p-4dd4e1f5.js +0 -11
- package/dist/solutions-components/p-4e44d681.entry.js +0 -6
- package/dist/solutions-components/p-4ebde78c.entry.js +0 -6
- package/dist/solutions-components/p-517bc39b.entry.js +0 -6
- package/dist/solutions-components/p-51b004f6.js +0 -11
- package/dist/solutions-components/p-51eb6427.entry.js +0 -11
- package/dist/solutions-components/p-51f2cd4b.entry.js +0 -6
- package/dist/solutions-components/p-53e0faf4.js +0 -12
- package/dist/solutions-components/p-54713c54.js +0 -11
- package/dist/solutions-components/p-5501cb25.entry.js +0 -17
- package/dist/solutions-components/p-57729067.entry.js +0 -11
- package/dist/solutions-components/p-58d0a9e8.js +0 -11
- package/dist/solutions-components/p-5ae7ca10.js +0 -6
- package/dist/solutions-components/p-5cd51ba9.js +0 -6
- package/dist/solutions-components/p-5e901f4d.js +0 -6
- package/dist/solutions-components/p-5ea0c09b.js +0 -6
- package/dist/solutions-components/p-5fcdc5af.entry.js +0 -12
- package/dist/solutions-components/p-632a3328.js +0 -6
- package/dist/solutions-components/p-64e8c883.js +0 -11
- package/dist/solutions-components/p-659678f1.js +0 -43
- package/dist/solutions-components/p-667f4b68.js +0 -6
- package/dist/solutions-components/p-6b2ea220.entry.js +0 -11
- package/dist/solutions-components/p-6c44ba5f.js +0 -16
- package/dist/solutions-components/p-6d369f32.entry.js +0 -22
- package/dist/solutions-components/p-6d4f59df.js +0 -6
- package/dist/solutions-components/p-6def4549.js +0 -11
- package/dist/solutions-components/p-6df7b770.js +0 -11
- package/dist/solutions-components/p-6eaba85e.js +0 -11
- package/dist/solutions-components/p-6eba7557.entry.js +0 -11
- package/dist/solutions-components/p-6ef00d3c.js +0 -6
- package/dist/solutions-components/p-6f98db75.entry.js +0 -11
- package/dist/solutions-components/p-7090b8bc.entry.js +0 -11
- package/dist/solutions-components/p-72b4bf7a.entry.js +0 -23
- package/dist/solutions-components/p-74bd8ced.entry.js +0 -11
- package/dist/solutions-components/p-76c08334.js +0 -16
- package/dist/solutions-components/p-792a8e91.entry.js +0 -17
- package/dist/solutions-components/p-7b0448b1.js +0 -6
- package/dist/solutions-components/p-7c19f274.js +0 -6
- package/dist/solutions-components/p-7c583516.js +0 -50
- package/dist/solutions-components/p-7fa53f88.entry.js +0 -6
- package/dist/solutions-components/p-81012aaa.entry.js +0 -6
- package/dist/solutions-components/p-8145011e.entry.js +0 -11
- package/dist/solutions-components/p-8343f841.entry.js +0 -17
- package/dist/solutions-components/p-85002390.js +0 -11
- package/dist/solutions-components/p-860452b5.entry.js +0 -11
- package/dist/solutions-components/p-8704c6df.entry.js +0 -11
- package/dist/solutions-components/p-871b9b39.entry.js +0 -6
- package/dist/solutions-components/p-873a5fd1.entry.js +0 -29
- package/dist/solutions-components/p-8817162f.js +0 -17
- package/dist/solutions-components/p-88934d2b.js +0 -11
- package/dist/solutions-components/p-88e391ab.entry.js +0 -6
- package/dist/solutions-components/p-89bd8016.entry.js +0 -22
- package/dist/solutions-components/p-8ad16e95.js +0 -16
- package/dist/solutions-components/p-8b54465a.js +0 -11
- package/dist/solutions-components/p-8e85d818.js +0 -6
- package/dist/solutions-components/p-8feb21be.entry.js +0 -17
- package/dist/solutions-components/p-9099acb6.js +0 -6
- package/dist/solutions-components/p-93c9be09.entry.js +0 -17
- package/dist/solutions-components/p-941ec574.entry.js +0 -6
- package/dist/solutions-components/p-949a8cb7.entry.js +0 -11
- package/dist/solutions-components/p-952a4ed2.js +0 -6
- package/dist/solutions-components/p-960baebc.entry.js +0 -6
- package/dist/solutions-components/p-96a7e73d.js +0 -11
- package/dist/solutions-components/p-9905a2cd.js +0 -6
- package/dist/solutions-components/p-9a4f0ae3.entry.js +0 -11
- package/dist/solutions-components/p-9ab5fbed.entry.js +0 -17
- package/dist/solutions-components/p-9bfb0a88.entry.js +0 -17
- package/dist/solutions-components/p-9edd6de9.entry.js +0 -16
- package/dist/solutions-components/p-9f943f1a.js +0 -6
- package/dist/solutions-components/p-a2613102.entry.js +0 -11
- package/dist/solutions-components/p-a2c467d7.js +0 -6
- package/dist/solutions-components/p-a6aba7d4.entry.js +0 -6
- package/dist/solutions-components/p-a704be29.js +0 -6
- package/dist/solutions-components/p-a7ca67b9.js +0 -11
- package/dist/solutions-components/p-a8638d44.entry.js +0 -11
- package/dist/solutions-components/p-abafd987.entry.js +0 -47
- package/dist/solutions-components/p-abd443e4.entry.js +0 -11
- package/dist/solutions-components/p-abd99f2b.entry.js +0 -11
- package/dist/solutions-components/p-ac40d2a6.entry.js +0 -11
- package/dist/solutions-components/p-ade4a0c0.entry.js +0 -6
- package/dist/solutions-components/p-ae53daf0.js +0 -11
- package/dist/solutions-components/p-b134cc53.entry.js +0 -11
- package/dist/solutions-components/p-b1a053c7.entry.js +0 -6
- package/dist/solutions-components/p-b1b88bb9.entry.js +0 -11
- package/dist/solutions-components/p-b24985b0.entry.js +0 -11
- package/dist/solutions-components/p-b4f15b86.entry.js +0 -11
- package/dist/solutions-components/p-b51111e1.js +0 -11
- package/dist/solutions-components/p-b6ac459a.entry.js +0 -11
- package/dist/solutions-components/p-b715fe7e.entry.js +0 -11
- package/dist/solutions-components/p-bd989e41.js +0 -11
- package/dist/solutions-components/p-c58a3ade.entry.js +0 -11
- package/dist/solutions-components/p-c6296ee6.js +0 -11
- package/dist/solutions-components/p-c62bd2a0.entry.js +0 -17
- package/dist/solutions-components/p-c6fe3b6c.js +0 -6
- package/dist/solutions-components/p-c897ea6a.entry.js +0 -11
- package/dist/solutions-components/p-c9193d36.entry.js +0 -6
- package/dist/solutions-components/p-caa665a4.js +0 -11
- package/dist/solutions-components/p-cb860e39.js +0 -11
- package/dist/solutions-components/p-cc5e8fec.entry.js +0 -11
- package/dist/solutions-components/p-ccc3f0c4.entry.js +0 -6
- package/dist/solutions-components/p-cde4f891.entry.js +0 -11
- package/dist/solutions-components/p-cefb0487.js +0 -489
- package/dist/solutions-components/p-d29843c1.js +0 -6
- package/dist/solutions-components/p-d34db378.entry.js +0 -21
- package/dist/solutions-components/p-d3b61974.entry.js +0 -11
- package/dist/solutions-components/p-d7f00451.entry.js +0 -11
- package/dist/solutions-components/p-d81f19b5.js +0 -6
- package/dist/solutions-components/p-d9110df1.entry.js +0 -11
- package/dist/solutions-components/p-e060bbf4.entry.js +0 -6
- package/dist/solutions-components/p-e191b864.entry.js +0 -11
- package/dist/solutions-components/p-e2263afa.entry.js +0 -11
- package/dist/solutions-components/p-e2d9c1e4.entry.js +0 -12
- package/dist/solutions-components/p-e46f6b68.js +0 -11
- package/dist/solutions-components/p-e683e142.js +0 -6
- package/dist/solutions-components/p-e6ac93e5.entry.js +0 -11
- package/dist/solutions-components/p-e7ce7ab5.entry.js +0 -11
- package/dist/solutions-components/p-e85ca9f5.entry.js +0 -11
- package/dist/solutions-components/p-e9488a2a.js +0 -6
- package/dist/solutions-components/p-eacb5b05.js +0 -11
- package/dist/solutions-components/p-ed000576.js +0 -6
- package/dist/solutions-components/p-eec49294.entry.js +0 -11
- package/dist/solutions-components/p-f067a46c.js +0 -21
- package/dist/solutions-components/p-f123e913.entry.js +0 -6
- package/dist/solutions-components/p-f2139e1f.js +0 -11
- package/dist/solutions-components/p-f2e30760.entry.js +0 -11
- package/dist/solutions-components/p-f3cd6339.entry.js +0 -11
- package/dist/solutions-components/p-f42cdeb6.entry.js +0 -6
- package/dist/solutions-components/p-f44c8764.js +0 -6
- package/dist/solutions-components/p-f6a94b55.js +0 -11
- package/dist/solutions-components/p-f6c2f78c.js +0 -6
- package/dist/solutions-components/p-f97b2291.js +0 -6
- package/dist/solutions-components/p-fbd8a250.entry.js +0 -12
- package/dist/solutions-components/p-fc62c04b.entry.js +0 -6
- package/dist/solutions-components/p-fc68aaf4.js +0 -6
- package/dist/solutions-components/p-fc8d6dcf.js +0 -11
- package/dist/solutions-components/p-fc9301a3.entry.js +0 -6
- package/dist/solutions-components/p-fde2ea30.entry.js +0 -6
- package/dist/solutions-components/p-fe82bd8a.js +0 -11
- package/dist/solutions-components/p-ff87b9de.js +0 -7
- package/dist/solutions-components/p-ffbe2075.js +0 -11
- /package/dist/cjs/{index-5f864f65.js → index-f052f656.js} +0 -0
- /package/dist/esm/{index-dc62418d.js → index-e14fade9.js} +0 -0
- /package/dist/solutions-components/{p-36c1c370.js → p-7530a02f.js} +0 -0
@@ -0,0 +1,2365 @@
|
|
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-745dec87.js';
|
7
|
+
import { a as getElementDir } from './dom-63d2d41c.js';
|
8
|
+
import { i as isBrowser } from './browser-a791205e.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 getNodeName(node) {
|
1181
|
+
if (isNode(node)) {
|
1182
|
+
return (node.nodeName || '').toLowerCase();
|
1183
|
+
}
|
1184
|
+
// Mocked nodes in testing environments may not be instances of Node. By
|
1185
|
+
// returning `#document` an infinite loop won't occur.
|
1186
|
+
// https://github.com/floating-ui/floating-ui/issues/2317
|
1187
|
+
return '#document';
|
1188
|
+
}
|
1189
|
+
function getWindow(node) {
|
1190
|
+
var _node$ownerDocument;
|
1191
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
1192
|
+
}
|
1193
|
+
function getDocumentElement(node) {
|
1194
|
+
var _ref;
|
1195
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
1196
|
+
}
|
1197
|
+
function isNode(value) {
|
1198
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
1199
|
+
}
|
1200
|
+
function isElement(value) {
|
1201
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
1202
|
+
}
|
1203
|
+
function isHTMLElement(value) {
|
1204
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
1205
|
+
}
|
1206
|
+
function isShadowRoot(value) {
|
1207
|
+
// Browsers without `ShadowRoot` support.
|
1208
|
+
if (typeof ShadowRoot === 'undefined') {
|
1209
|
+
return false;
|
1210
|
+
}
|
1211
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
1212
|
+
}
|
1213
|
+
function isOverflowElement(element) {
|
1214
|
+
const {
|
1215
|
+
overflow,
|
1216
|
+
overflowX,
|
1217
|
+
overflowY,
|
1218
|
+
display
|
1219
|
+
} = getComputedStyle$1(element);
|
1220
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
1221
|
+
}
|
1222
|
+
function isTableElement(element) {
|
1223
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
1224
|
+
}
|
1225
|
+
function isTopLayer(element) {
|
1226
|
+
return [':popover-open', ':modal'].some(selector => {
|
1227
|
+
try {
|
1228
|
+
return element.matches(selector);
|
1229
|
+
} catch (e) {
|
1230
|
+
return false;
|
1231
|
+
}
|
1232
|
+
});
|
1233
|
+
}
|
1234
|
+
function isContainingBlock(elementOrCss) {
|
1235
|
+
const webkit = isWebKit();
|
1236
|
+
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
1237
|
+
|
1238
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
1239
|
+
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));
|
1240
|
+
}
|
1241
|
+
function getContainingBlock(element) {
|
1242
|
+
let currentNode = getParentNode(element);
|
1243
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
1244
|
+
if (isContainingBlock(currentNode)) {
|
1245
|
+
return currentNode;
|
1246
|
+
} else if (isTopLayer(currentNode)) {
|
1247
|
+
return null;
|
1248
|
+
}
|
1249
|
+
currentNode = getParentNode(currentNode);
|
1250
|
+
}
|
1251
|
+
return null;
|
1252
|
+
}
|
1253
|
+
function isWebKit() {
|
1254
|
+
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
1255
|
+
return CSS.supports('-webkit-backdrop-filter', 'none');
|
1256
|
+
}
|
1257
|
+
function isLastTraversableNode(node) {
|
1258
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
1259
|
+
}
|
1260
|
+
function getComputedStyle$1(element) {
|
1261
|
+
return getWindow(element).getComputedStyle(element);
|
1262
|
+
}
|
1263
|
+
function getNodeScroll(element) {
|
1264
|
+
if (isElement(element)) {
|
1265
|
+
return {
|
1266
|
+
scrollLeft: element.scrollLeft,
|
1267
|
+
scrollTop: element.scrollTop
|
1268
|
+
};
|
1269
|
+
}
|
1270
|
+
return {
|
1271
|
+
scrollLeft: element.scrollX,
|
1272
|
+
scrollTop: element.scrollY
|
1273
|
+
};
|
1274
|
+
}
|
1275
|
+
function getParentNode(node) {
|
1276
|
+
if (getNodeName(node) === 'html') {
|
1277
|
+
return node;
|
1278
|
+
}
|
1279
|
+
const result =
|
1280
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
1281
|
+
node.assignedSlot ||
|
1282
|
+
// DOM Element detected.
|
1283
|
+
node.parentNode ||
|
1284
|
+
// ShadowRoot detected.
|
1285
|
+
isShadowRoot(node) && node.host ||
|
1286
|
+
// Fallback.
|
1287
|
+
getDocumentElement(node);
|
1288
|
+
return isShadowRoot(result) ? result.host : result;
|
1289
|
+
}
|
1290
|
+
function getNearestOverflowAncestor(node) {
|
1291
|
+
const parentNode = getParentNode(node);
|
1292
|
+
if (isLastTraversableNode(parentNode)) {
|
1293
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
1294
|
+
}
|
1295
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
1296
|
+
return parentNode;
|
1297
|
+
}
|
1298
|
+
return getNearestOverflowAncestor(parentNode);
|
1299
|
+
}
|
1300
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
1301
|
+
var _node$ownerDocument2;
|
1302
|
+
if (list === void 0) {
|
1303
|
+
list = [];
|
1304
|
+
}
|
1305
|
+
if (traverseIframes === void 0) {
|
1306
|
+
traverseIframes = true;
|
1307
|
+
}
|
1308
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
1309
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
1310
|
+
const win = getWindow(scrollableAncestor);
|
1311
|
+
if (isBody) {
|
1312
|
+
const frameElement = getFrameElement(win);
|
1313
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
1314
|
+
}
|
1315
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
1316
|
+
}
|
1317
|
+
function getFrameElement(win) {
|
1318
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
1319
|
+
}
|
1320
|
+
|
1321
|
+
function getCssDimensions(element) {
|
1322
|
+
const css = getComputedStyle$1(element);
|
1323
|
+
// In testing environments, the `width` and `height` properties are empty
|
1324
|
+
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
1325
|
+
let width = parseFloat(css.width) || 0;
|
1326
|
+
let height = parseFloat(css.height) || 0;
|
1327
|
+
const hasOffset = isHTMLElement(element);
|
1328
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
1329
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
1330
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
1331
|
+
if (shouldFallback) {
|
1332
|
+
width = offsetWidth;
|
1333
|
+
height = offsetHeight;
|
1334
|
+
}
|
1335
|
+
return {
|
1336
|
+
width,
|
1337
|
+
height,
|
1338
|
+
$: shouldFallback
|
1339
|
+
};
|
1340
|
+
}
|
1341
|
+
|
1342
|
+
function unwrapElement(element) {
|
1343
|
+
return !isElement(element) ? element.contextElement : element;
|
1344
|
+
}
|
1345
|
+
|
1346
|
+
function getScale(element) {
|
1347
|
+
const domElement = unwrapElement(element);
|
1348
|
+
if (!isHTMLElement(domElement)) {
|
1349
|
+
return createCoords(1);
|
1350
|
+
}
|
1351
|
+
const rect = domElement.getBoundingClientRect();
|
1352
|
+
const {
|
1353
|
+
width,
|
1354
|
+
height,
|
1355
|
+
$
|
1356
|
+
} = getCssDimensions(domElement);
|
1357
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
1358
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
1359
|
+
|
1360
|
+
// 0, NaN, or Infinity should always fallback to 1.
|
1361
|
+
|
1362
|
+
if (!x || !Number.isFinite(x)) {
|
1363
|
+
x = 1;
|
1364
|
+
}
|
1365
|
+
if (!y || !Number.isFinite(y)) {
|
1366
|
+
y = 1;
|
1367
|
+
}
|
1368
|
+
return {
|
1369
|
+
x,
|
1370
|
+
y
|
1371
|
+
};
|
1372
|
+
}
|
1373
|
+
|
1374
|
+
const noOffsets = /*#__PURE__*/createCoords(0);
|
1375
|
+
function getVisualOffsets(element) {
|
1376
|
+
const win = getWindow(element);
|
1377
|
+
if (!isWebKit() || !win.visualViewport) {
|
1378
|
+
return noOffsets;
|
1379
|
+
}
|
1380
|
+
return {
|
1381
|
+
x: win.visualViewport.offsetLeft,
|
1382
|
+
y: win.visualViewport.offsetTop
|
1383
|
+
};
|
1384
|
+
}
|
1385
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
1386
|
+
if (isFixed === void 0) {
|
1387
|
+
isFixed = false;
|
1388
|
+
}
|
1389
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
1390
|
+
return false;
|
1391
|
+
}
|
1392
|
+
return isFixed;
|
1393
|
+
}
|
1394
|
+
|
1395
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
1396
|
+
if (includeScale === void 0) {
|
1397
|
+
includeScale = false;
|
1398
|
+
}
|
1399
|
+
if (isFixedStrategy === void 0) {
|
1400
|
+
isFixedStrategy = false;
|
1401
|
+
}
|
1402
|
+
const clientRect = element.getBoundingClientRect();
|
1403
|
+
const domElement = unwrapElement(element);
|
1404
|
+
let scale = createCoords(1);
|
1405
|
+
if (includeScale) {
|
1406
|
+
if (offsetParent) {
|
1407
|
+
if (isElement(offsetParent)) {
|
1408
|
+
scale = getScale(offsetParent);
|
1409
|
+
}
|
1410
|
+
} else {
|
1411
|
+
scale = getScale(element);
|
1412
|
+
}
|
1413
|
+
}
|
1414
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
1415
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
1416
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
1417
|
+
let width = clientRect.width / scale.x;
|
1418
|
+
let height = clientRect.height / scale.y;
|
1419
|
+
if (domElement) {
|
1420
|
+
const win = getWindow(domElement);
|
1421
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
1422
|
+
let currentWin = win;
|
1423
|
+
let currentIFrame = getFrameElement(currentWin);
|
1424
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
1425
|
+
const iframeScale = getScale(currentIFrame);
|
1426
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
1427
|
+
const css = getComputedStyle$1(currentIFrame);
|
1428
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
1429
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
1430
|
+
x *= iframeScale.x;
|
1431
|
+
y *= iframeScale.y;
|
1432
|
+
width *= iframeScale.x;
|
1433
|
+
height *= iframeScale.y;
|
1434
|
+
x += left;
|
1435
|
+
y += top;
|
1436
|
+
currentWin = getWindow(currentIFrame);
|
1437
|
+
currentIFrame = getFrameElement(currentWin);
|
1438
|
+
}
|
1439
|
+
}
|
1440
|
+
return rectToClientRect({
|
1441
|
+
width,
|
1442
|
+
height,
|
1443
|
+
x,
|
1444
|
+
y
|
1445
|
+
});
|
1446
|
+
}
|
1447
|
+
|
1448
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
1449
|
+
let {
|
1450
|
+
elements,
|
1451
|
+
rect,
|
1452
|
+
offsetParent,
|
1453
|
+
strategy
|
1454
|
+
} = _ref;
|
1455
|
+
const isFixed = strategy === 'fixed';
|
1456
|
+
const documentElement = getDocumentElement(offsetParent);
|
1457
|
+
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
1458
|
+
if (offsetParent === documentElement || topLayer && isFixed) {
|
1459
|
+
return rect;
|
1460
|
+
}
|
1461
|
+
let scroll = {
|
1462
|
+
scrollLeft: 0,
|
1463
|
+
scrollTop: 0
|
1464
|
+
};
|
1465
|
+
let scale = createCoords(1);
|
1466
|
+
const offsets = createCoords(0);
|
1467
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
1468
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
1469
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
1470
|
+
scroll = getNodeScroll(offsetParent);
|
1471
|
+
}
|
1472
|
+
if (isHTMLElement(offsetParent)) {
|
1473
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
1474
|
+
scale = getScale(offsetParent);
|
1475
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
1476
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
1477
|
+
}
|
1478
|
+
}
|
1479
|
+
return {
|
1480
|
+
width: rect.width * scale.x,
|
1481
|
+
height: rect.height * scale.y,
|
1482
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
1483
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
1484
|
+
};
|
1485
|
+
}
|
1486
|
+
|
1487
|
+
function getClientRects(element) {
|
1488
|
+
return Array.from(element.getClientRects());
|
1489
|
+
}
|
1490
|
+
|
1491
|
+
function getWindowScrollBarX(element) {
|
1492
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
1493
|
+
// incorrect for RTL.
|
1494
|
+
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
1495
|
+
}
|
1496
|
+
|
1497
|
+
// Gets the entire size of the scrollable document area, even extending outside
|
1498
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
1499
|
+
function getDocumentRect(element) {
|
1500
|
+
const html = getDocumentElement(element);
|
1501
|
+
const scroll = getNodeScroll(element);
|
1502
|
+
const body = element.ownerDocument.body;
|
1503
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
1504
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
1505
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
1506
|
+
const y = -scroll.scrollTop;
|
1507
|
+
if (getComputedStyle$1(body).direction === 'rtl') {
|
1508
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
1509
|
+
}
|
1510
|
+
return {
|
1511
|
+
width,
|
1512
|
+
height,
|
1513
|
+
x,
|
1514
|
+
y
|
1515
|
+
};
|
1516
|
+
}
|
1517
|
+
|
1518
|
+
function getViewportRect(element, strategy) {
|
1519
|
+
const win = getWindow(element);
|
1520
|
+
const html = getDocumentElement(element);
|
1521
|
+
const visualViewport = win.visualViewport;
|
1522
|
+
let width = html.clientWidth;
|
1523
|
+
let height = html.clientHeight;
|
1524
|
+
let x = 0;
|
1525
|
+
let y = 0;
|
1526
|
+
if (visualViewport) {
|
1527
|
+
width = visualViewport.width;
|
1528
|
+
height = visualViewport.height;
|
1529
|
+
const visualViewportBased = isWebKit();
|
1530
|
+
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
1531
|
+
x = visualViewport.offsetLeft;
|
1532
|
+
y = visualViewport.offsetTop;
|
1533
|
+
}
|
1534
|
+
}
|
1535
|
+
return {
|
1536
|
+
width,
|
1537
|
+
height,
|
1538
|
+
x,
|
1539
|
+
y
|
1540
|
+
};
|
1541
|
+
}
|
1542
|
+
|
1543
|
+
// Returns the inner client rect, subtracting scrollbars if present.
|
1544
|
+
function getInnerBoundingClientRect(element, strategy) {
|
1545
|
+
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
1546
|
+
const top = clientRect.top + element.clientTop;
|
1547
|
+
const left = clientRect.left + element.clientLeft;
|
1548
|
+
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
1549
|
+
const width = element.clientWidth * scale.x;
|
1550
|
+
const height = element.clientHeight * scale.y;
|
1551
|
+
const x = left * scale.x;
|
1552
|
+
const y = top * scale.y;
|
1553
|
+
return {
|
1554
|
+
width,
|
1555
|
+
height,
|
1556
|
+
x,
|
1557
|
+
y
|
1558
|
+
};
|
1559
|
+
}
|
1560
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
1561
|
+
let rect;
|
1562
|
+
if (clippingAncestor === 'viewport') {
|
1563
|
+
rect = getViewportRect(element, strategy);
|
1564
|
+
} else if (clippingAncestor === 'document') {
|
1565
|
+
rect = getDocumentRect(getDocumentElement(element));
|
1566
|
+
} else if (isElement(clippingAncestor)) {
|
1567
|
+
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
1568
|
+
} else {
|
1569
|
+
const visualOffsets = getVisualOffsets(element);
|
1570
|
+
rect = {
|
1571
|
+
...clippingAncestor,
|
1572
|
+
x: clippingAncestor.x - visualOffsets.x,
|
1573
|
+
y: clippingAncestor.y - visualOffsets.y
|
1574
|
+
};
|
1575
|
+
}
|
1576
|
+
return rectToClientRect(rect);
|
1577
|
+
}
|
1578
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
1579
|
+
const parentNode = getParentNode(element);
|
1580
|
+
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
1581
|
+
return false;
|
1582
|
+
}
|
1583
|
+
return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
1584
|
+
}
|
1585
|
+
|
1586
|
+
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
1587
|
+
// clipping (or hiding) child elements. This returns all clipping ancestors
|
1588
|
+
// of the given element up the tree.
|
1589
|
+
function getClippingElementAncestors(element, cache) {
|
1590
|
+
const cachedResult = cache.get(element);
|
1591
|
+
if (cachedResult) {
|
1592
|
+
return cachedResult;
|
1593
|
+
}
|
1594
|
+
let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
1595
|
+
let currentContainingBlockComputedStyle = null;
|
1596
|
+
const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
|
1597
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
1598
|
+
|
1599
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
1600
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
1601
|
+
const computedStyle = getComputedStyle$1(currentNode);
|
1602
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
1603
|
+
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
1604
|
+
currentContainingBlockComputedStyle = null;
|
1605
|
+
}
|
1606
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
1607
|
+
if (shouldDropCurrentNode) {
|
1608
|
+
// Drop non-containing blocks.
|
1609
|
+
result = result.filter(ancestor => ancestor !== currentNode);
|
1610
|
+
} else {
|
1611
|
+
// Record last containing block for next iteration.
|
1612
|
+
currentContainingBlockComputedStyle = computedStyle;
|
1613
|
+
}
|
1614
|
+
currentNode = getParentNode(currentNode);
|
1615
|
+
}
|
1616
|
+
cache.set(element, result);
|
1617
|
+
return result;
|
1618
|
+
}
|
1619
|
+
|
1620
|
+
// Gets the maximum area that the element is visible in due to any number of
|
1621
|
+
// clipping ancestors.
|
1622
|
+
function getClippingRect(_ref) {
|
1623
|
+
let {
|
1624
|
+
element,
|
1625
|
+
boundary,
|
1626
|
+
rootBoundary,
|
1627
|
+
strategy
|
1628
|
+
} = _ref;
|
1629
|
+
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
1630
|
+
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
1631
|
+
const firstClippingAncestor = clippingAncestors[0];
|
1632
|
+
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
1633
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
1634
|
+
accRect.top = max(rect.top, accRect.top);
|
1635
|
+
accRect.right = min(rect.right, accRect.right);
|
1636
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
1637
|
+
accRect.left = max(rect.left, accRect.left);
|
1638
|
+
return accRect;
|
1639
|
+
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
1640
|
+
return {
|
1641
|
+
width: clippingRect.right - clippingRect.left,
|
1642
|
+
height: clippingRect.bottom - clippingRect.top,
|
1643
|
+
x: clippingRect.left,
|
1644
|
+
y: clippingRect.top
|
1645
|
+
};
|
1646
|
+
}
|
1647
|
+
|
1648
|
+
function getDimensions(element) {
|
1649
|
+
const {
|
1650
|
+
width,
|
1651
|
+
height
|
1652
|
+
} = getCssDimensions(element);
|
1653
|
+
return {
|
1654
|
+
width,
|
1655
|
+
height
|
1656
|
+
};
|
1657
|
+
}
|
1658
|
+
|
1659
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
1660
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
1661
|
+
const documentElement = getDocumentElement(offsetParent);
|
1662
|
+
const isFixed = strategy === 'fixed';
|
1663
|
+
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
1664
|
+
let scroll = {
|
1665
|
+
scrollLeft: 0,
|
1666
|
+
scrollTop: 0
|
1667
|
+
};
|
1668
|
+
const offsets = createCoords(0);
|
1669
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
1670
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
1671
|
+
scroll = getNodeScroll(offsetParent);
|
1672
|
+
}
|
1673
|
+
if (isOffsetParentAnElement) {
|
1674
|
+
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
1675
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
1676
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
1677
|
+
} else if (documentElement) {
|
1678
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
1679
|
+
}
|
1680
|
+
}
|
1681
|
+
const x = rect.left + scroll.scrollLeft - offsets.x;
|
1682
|
+
const y = rect.top + scroll.scrollTop - offsets.y;
|
1683
|
+
return {
|
1684
|
+
x,
|
1685
|
+
y,
|
1686
|
+
width: rect.width,
|
1687
|
+
height: rect.height
|
1688
|
+
};
|
1689
|
+
}
|
1690
|
+
|
1691
|
+
function isStaticPositioned(element) {
|
1692
|
+
return getComputedStyle$1(element).position === 'static';
|
1693
|
+
}
|
1694
|
+
|
1695
|
+
function getTrueOffsetParent(element, polyfill) {
|
1696
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
|
1697
|
+
return null;
|
1698
|
+
}
|
1699
|
+
if (polyfill) {
|
1700
|
+
return polyfill(element);
|
1701
|
+
}
|
1702
|
+
return element.offsetParent;
|
1703
|
+
}
|
1704
|
+
|
1705
|
+
// Gets the closest ancestor positioned element. Handles some edge cases,
|
1706
|
+
// such as table ancestors and cross browser bugs.
|
1707
|
+
function getOffsetParent(element, polyfill) {
|
1708
|
+
const win = getWindow(element);
|
1709
|
+
if (isTopLayer(element)) {
|
1710
|
+
return win;
|
1711
|
+
}
|
1712
|
+
if (!isHTMLElement(element)) {
|
1713
|
+
let svgOffsetParent = getParentNode(element);
|
1714
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
1715
|
+
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
1716
|
+
return svgOffsetParent;
|
1717
|
+
}
|
1718
|
+
svgOffsetParent = getParentNode(svgOffsetParent);
|
1719
|
+
}
|
1720
|
+
return win;
|
1721
|
+
}
|
1722
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
1723
|
+
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
1724
|
+
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
1725
|
+
}
|
1726
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
1727
|
+
return win;
|
1728
|
+
}
|
1729
|
+
return offsetParent || getContainingBlock(element) || win;
|
1730
|
+
}
|
1731
|
+
|
1732
|
+
const getElementRects = async function (data) {
|
1733
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
1734
|
+
const getDimensionsFn = this.getDimensions;
|
1735
|
+
const floatingDimensions = await getDimensionsFn(data.floating);
|
1736
|
+
return {
|
1737
|
+
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
1738
|
+
floating: {
|
1739
|
+
x: 0,
|
1740
|
+
y: 0,
|
1741
|
+
width: floatingDimensions.width,
|
1742
|
+
height: floatingDimensions.height
|
1743
|
+
}
|
1744
|
+
};
|
1745
|
+
};
|
1746
|
+
|
1747
|
+
function isRTL(element) {
|
1748
|
+
return getComputedStyle$1(element).direction === 'rtl';
|
1749
|
+
}
|
1750
|
+
|
1751
|
+
const platform = {
|
1752
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
1753
|
+
getDocumentElement,
|
1754
|
+
getClippingRect,
|
1755
|
+
getOffsetParent,
|
1756
|
+
getElementRects,
|
1757
|
+
getClientRects,
|
1758
|
+
getDimensions,
|
1759
|
+
getScale,
|
1760
|
+
isElement,
|
1761
|
+
isRTL
|
1762
|
+
};
|
1763
|
+
|
1764
|
+
// https://samthor.au/2021/observing-dom/
|
1765
|
+
function observeMove(element, onMove) {
|
1766
|
+
let io = null;
|
1767
|
+
let timeoutId;
|
1768
|
+
const root = getDocumentElement(element);
|
1769
|
+
function cleanup() {
|
1770
|
+
var _io;
|
1771
|
+
clearTimeout(timeoutId);
|
1772
|
+
(_io = io) == null || _io.disconnect();
|
1773
|
+
io = null;
|
1774
|
+
}
|
1775
|
+
function refresh(skip, threshold) {
|
1776
|
+
if (skip === void 0) {
|
1777
|
+
skip = false;
|
1778
|
+
}
|
1779
|
+
if (threshold === void 0) {
|
1780
|
+
threshold = 1;
|
1781
|
+
}
|
1782
|
+
cleanup();
|
1783
|
+
const {
|
1784
|
+
left,
|
1785
|
+
top,
|
1786
|
+
width,
|
1787
|
+
height
|
1788
|
+
} = element.getBoundingClientRect();
|
1789
|
+
if (!skip) {
|
1790
|
+
onMove();
|
1791
|
+
}
|
1792
|
+
if (!width || !height) {
|
1793
|
+
return;
|
1794
|
+
}
|
1795
|
+
const insetTop = floor(top);
|
1796
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
1797
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
1798
|
+
const insetLeft = floor(left);
|
1799
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
1800
|
+
const options = {
|
1801
|
+
rootMargin,
|
1802
|
+
threshold: max(0, min(1, threshold)) || 1
|
1803
|
+
};
|
1804
|
+
let isFirstUpdate = true;
|
1805
|
+
function handleObserve(entries) {
|
1806
|
+
const ratio = entries[0].intersectionRatio;
|
1807
|
+
if (ratio !== threshold) {
|
1808
|
+
if (!isFirstUpdate) {
|
1809
|
+
return refresh();
|
1810
|
+
}
|
1811
|
+
if (!ratio) {
|
1812
|
+
// If the reference is clipped, the ratio is 0. Throttle the refresh
|
1813
|
+
// to prevent an infinite loop of updates.
|
1814
|
+
timeoutId = setTimeout(() => {
|
1815
|
+
refresh(false, 1e-7);
|
1816
|
+
}, 1000);
|
1817
|
+
} else {
|
1818
|
+
refresh(false, ratio);
|
1819
|
+
}
|
1820
|
+
}
|
1821
|
+
isFirstUpdate = false;
|
1822
|
+
}
|
1823
|
+
|
1824
|
+
// Older browsers don't support a `document` as the root and will throw an
|
1825
|
+
// error.
|
1826
|
+
try {
|
1827
|
+
io = new IntersectionObserver(handleObserve, {
|
1828
|
+
...options,
|
1829
|
+
// Handle <iframe>s
|
1830
|
+
root: root.ownerDocument
|
1831
|
+
});
|
1832
|
+
} catch (e) {
|
1833
|
+
io = new IntersectionObserver(handleObserve, options);
|
1834
|
+
}
|
1835
|
+
io.observe(element);
|
1836
|
+
}
|
1837
|
+
refresh(true);
|
1838
|
+
return cleanup;
|
1839
|
+
}
|
1840
|
+
|
1841
|
+
/**
|
1842
|
+
* Automatically updates the position of the floating element when necessary.
|
1843
|
+
* Should only be called when the floating element is mounted on the DOM or
|
1844
|
+
* visible on the screen.
|
1845
|
+
* @returns cleanup function that should be invoked when the floating element is
|
1846
|
+
* removed from the DOM or hidden from the screen.
|
1847
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
1848
|
+
*/
|
1849
|
+
function autoUpdate(reference, floating, update, options) {
|
1850
|
+
if (options === void 0) {
|
1851
|
+
options = {};
|
1852
|
+
}
|
1853
|
+
const {
|
1854
|
+
ancestorScroll = true,
|
1855
|
+
ancestorResize = true,
|
1856
|
+
elementResize = typeof ResizeObserver === 'function',
|
1857
|
+
layoutShift = typeof IntersectionObserver === 'function',
|
1858
|
+
animationFrame = false
|
1859
|
+
} = options;
|
1860
|
+
const referenceEl = unwrapElement(reference);
|
1861
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
1862
|
+
ancestors.forEach(ancestor => {
|
1863
|
+
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
1864
|
+
passive: true
|
1865
|
+
});
|
1866
|
+
ancestorResize && ancestor.addEventListener('resize', update);
|
1867
|
+
});
|
1868
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
1869
|
+
let reobserveFrame = -1;
|
1870
|
+
let resizeObserver = null;
|
1871
|
+
if (elementResize) {
|
1872
|
+
resizeObserver = new ResizeObserver(_ref => {
|
1873
|
+
let [firstEntry] = _ref;
|
1874
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
1875
|
+
// Prevent update loops when using the `size` middleware.
|
1876
|
+
// https://github.com/floating-ui/floating-ui/issues/1740
|
1877
|
+
resizeObserver.unobserve(floating);
|
1878
|
+
cancelAnimationFrame(reobserveFrame);
|
1879
|
+
reobserveFrame = requestAnimationFrame(() => {
|
1880
|
+
var _resizeObserver;
|
1881
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
1882
|
+
});
|
1883
|
+
}
|
1884
|
+
update();
|
1885
|
+
});
|
1886
|
+
if (referenceEl && !animationFrame) {
|
1887
|
+
resizeObserver.observe(referenceEl);
|
1888
|
+
}
|
1889
|
+
resizeObserver.observe(floating);
|
1890
|
+
}
|
1891
|
+
let frameId;
|
1892
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
1893
|
+
if (animationFrame) {
|
1894
|
+
frameLoop();
|
1895
|
+
}
|
1896
|
+
function frameLoop() {
|
1897
|
+
const nextRefRect = getBoundingClientRect(reference);
|
1898
|
+
if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
|
1899
|
+
update();
|
1900
|
+
}
|
1901
|
+
prevRefRect = nextRefRect;
|
1902
|
+
frameId = requestAnimationFrame(frameLoop);
|
1903
|
+
}
|
1904
|
+
update();
|
1905
|
+
return () => {
|
1906
|
+
var _resizeObserver2;
|
1907
|
+
ancestors.forEach(ancestor => {
|
1908
|
+
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
1909
|
+
ancestorResize && ancestor.removeEventListener('resize', update);
|
1910
|
+
});
|
1911
|
+
cleanupIo == null || cleanupIo();
|
1912
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
1913
|
+
resizeObserver = null;
|
1914
|
+
if (animationFrame) {
|
1915
|
+
cancelAnimationFrame(frameId);
|
1916
|
+
}
|
1917
|
+
};
|
1918
|
+
}
|
1919
|
+
|
1920
|
+
/**
|
1921
|
+
* Modifies the placement by translating the floating element along the
|
1922
|
+
* specified axes.
|
1923
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
1924
|
+
* object may be passed.
|
1925
|
+
* @see https://floating-ui.com/docs/offset
|
1926
|
+
*/
|
1927
|
+
const offset = offset$1;
|
1928
|
+
|
1929
|
+
/**
|
1930
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
1931
|
+
* that has the most space available automatically, without needing to specify a
|
1932
|
+
* preferred placement. Alternative to `flip`.
|
1933
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
1934
|
+
*/
|
1935
|
+
const autoPlacement = autoPlacement$1;
|
1936
|
+
|
1937
|
+
/**
|
1938
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
1939
|
+
* keep it in view when it will overflow the clipping boundary.
|
1940
|
+
* @see https://floating-ui.com/docs/shift
|
1941
|
+
*/
|
1942
|
+
const shift = shift$1;
|
1943
|
+
|
1944
|
+
/**
|
1945
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
1946
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
1947
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
1948
|
+
* @see https://floating-ui.com/docs/flip
|
1949
|
+
*/
|
1950
|
+
const flip = flip$1;
|
1951
|
+
|
1952
|
+
/**
|
1953
|
+
* Provides data that allows you to change the size of the floating element —
|
1954
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
1955
|
+
* width of the reference element.
|
1956
|
+
* @see https://floating-ui.com/docs/size
|
1957
|
+
*/
|
1958
|
+
size;
|
1959
|
+
|
1960
|
+
/**
|
1961
|
+
* Provides data to hide the floating element in applicable situations, such as
|
1962
|
+
* when it is not in the same clipping context as the reference element.
|
1963
|
+
* @see https://floating-ui.com/docs/hide
|
1964
|
+
*/
|
1965
|
+
const hide = hide$1;
|
1966
|
+
|
1967
|
+
/**
|
1968
|
+
* Provides data to position an inner element of the floating element so that it
|
1969
|
+
* appears centered to the reference element.
|
1970
|
+
* @see https://floating-ui.com/docs/arrow
|
1971
|
+
*/
|
1972
|
+
const arrow = arrow$1;
|
1973
|
+
|
1974
|
+
/**
|
1975
|
+
* Provides improved positioning for inline reference elements that can span
|
1976
|
+
* over multiple lines, such as hyperlinks or range selections.
|
1977
|
+
* @see https://floating-ui.com/docs/inline
|
1978
|
+
*/
|
1979
|
+
inline;
|
1980
|
+
|
1981
|
+
/**
|
1982
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
1983
|
+
*/
|
1984
|
+
limitShift;
|
1985
|
+
|
1986
|
+
/**
|
1987
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
1988
|
+
* next to a given reference element.
|
1989
|
+
*/
|
1990
|
+
const computePosition = (reference, floating, options) => {
|
1991
|
+
// This caches the expensive `getClippingElementAncestors` function so that
|
1992
|
+
// multiple lifecycle resets re-use the same result. It only lives for a
|
1993
|
+
// single call. If other functions become expensive, we can add them as well.
|
1994
|
+
const cache = new Map();
|
1995
|
+
const mergedOptions = {
|
1996
|
+
platform,
|
1997
|
+
...options
|
1998
|
+
};
|
1999
|
+
const platformWithCache = {
|
2000
|
+
...mergedOptions.platform,
|
2001
|
+
_c: cache
|
2002
|
+
};
|
2003
|
+
return computePosition$1(reference, floating, {
|
2004
|
+
...mergedOptions,
|
2005
|
+
platform: platformWithCache
|
2006
|
+
});
|
2007
|
+
};
|
2008
|
+
|
2009
|
+
function offsetParent(element) {
|
2010
|
+
return offsetParentPolyfill(element);
|
2011
|
+
}
|
2012
|
+
function flatTreeParent(element) {
|
2013
|
+
if (element.assignedSlot) {
|
2014
|
+
return element.assignedSlot;
|
2015
|
+
}
|
2016
|
+
if (element.parentNode instanceof ShadowRoot) {
|
2017
|
+
return element.parentNode.host;
|
2018
|
+
}
|
2019
|
+
return element.parentNode;
|
2020
|
+
}
|
2021
|
+
function offsetParentPolyfill(element) {
|
2022
|
+
// Do an initial walk to check for display:none ancestors.
|
2023
|
+
for (let ancestor = element; ancestor; ancestor = flatTreeParent(ancestor)) {
|
2024
|
+
if (!(ancestor instanceof Element)) {
|
2025
|
+
continue;
|
2026
|
+
}
|
2027
|
+
if (getComputedStyle(ancestor).display === 'none') {
|
2028
|
+
return null;
|
2029
|
+
}
|
2030
|
+
}
|
2031
|
+
for (let ancestor = flatTreeParent(element); ancestor; ancestor = flatTreeParent(ancestor)) {
|
2032
|
+
if (!(ancestor instanceof Element)) {
|
2033
|
+
continue;
|
2034
|
+
}
|
2035
|
+
const style = getComputedStyle(ancestor);
|
2036
|
+
// Display:contents nodes aren't in the layout tree, so they should be skipped.
|
2037
|
+
if (style.display === 'contents') {
|
2038
|
+
continue;
|
2039
|
+
}
|
2040
|
+
if (style.position !== 'static' || isContainingBlock(style)) {
|
2041
|
+
return ancestor;
|
2042
|
+
}
|
2043
|
+
if (ancestor.tagName === 'BODY') {
|
2044
|
+
return ancestor;
|
2045
|
+
}
|
2046
|
+
}
|
2047
|
+
return null;
|
2048
|
+
}
|
2049
|
+
|
2050
|
+
/*!
|
2051
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
2052
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
2053
|
+
* v2.12.2
|
2054
|
+
*/
|
2055
|
+
(function setUpFloatingUiForShadowDomPositioning() {
|
2056
|
+
if (isBrowser()) {
|
2057
|
+
const originalGetOffsetParent = platform.getOffsetParent;
|
2058
|
+
platform.getOffsetParent = (element) => originalGetOffsetParent(element, offsetParent);
|
2059
|
+
}
|
2060
|
+
})();
|
2061
|
+
function roundByDPR(value) {
|
2062
|
+
const dpr = window.devicePixelRatio || 1;
|
2063
|
+
return Math.round(value * dpr) / dpr;
|
2064
|
+
}
|
2065
|
+
/**
|
2066
|
+
* Positions the floating element relative to the reference element.
|
2067
|
+
*
|
2068
|
+
* **Note:** exported for testing purposes only
|
2069
|
+
*
|
2070
|
+
* @param root0
|
2071
|
+
* @param root0.referenceEl
|
2072
|
+
* @param root0.floatingEl
|
2073
|
+
* @param root0.overlayPositioning
|
2074
|
+
* @param root0.placement
|
2075
|
+
* @param root0.flipDisabled
|
2076
|
+
* @param root0.flipPlacements
|
2077
|
+
* @param root0.offsetDistance
|
2078
|
+
* @param root0.offsetSkidding
|
2079
|
+
* @param root0.arrowEl
|
2080
|
+
* @param root0.type
|
2081
|
+
* @param component
|
2082
|
+
* @param root0.referenceEl.referenceEl
|
2083
|
+
* @param root0.referenceEl.floatingEl
|
2084
|
+
* @param root0.referenceEl.overlayPositioning
|
2085
|
+
* @param root0.referenceEl.placement
|
2086
|
+
* @param root0.referenceEl.flipDisabled
|
2087
|
+
* @param root0.referenceEl.flipPlacements
|
2088
|
+
* @param root0.referenceEl.offsetDistance
|
2089
|
+
* @param root0.referenceEl.offsetSkidding
|
2090
|
+
* @param root0.referenceEl.arrowEl
|
2091
|
+
* @param root0.referenceEl.type
|
2092
|
+
* @param component.referenceEl
|
2093
|
+
* @param component.floatingEl
|
2094
|
+
* @param component.overlayPositioning
|
2095
|
+
* @param component.placement
|
2096
|
+
* @param component.flipDisabled
|
2097
|
+
* @param component.flipPlacements
|
2098
|
+
* @param component.offsetDistance
|
2099
|
+
* @param component.offsetSkidding
|
2100
|
+
* @param component.arrowEl
|
2101
|
+
* @param component.type
|
2102
|
+
*/
|
2103
|
+
const positionFloatingUI =
|
2104
|
+
/* we export arrow function to allow us to spy on it during testing */
|
2105
|
+
async (component, { referenceEl, floatingEl, overlayPositioning = "absolute", placement, flipDisabled, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type, }) => {
|
2106
|
+
if (!referenceEl || !floatingEl) {
|
2107
|
+
return null;
|
2108
|
+
}
|
2109
|
+
const { x, y, placement: effectivePlacement, strategy: position, middlewareData, } = await computePosition(referenceEl, floatingEl, {
|
2110
|
+
strategy: overlayPositioning,
|
2111
|
+
placement: placement === "auto" || placement === "auto-start" || placement === "auto-end"
|
2112
|
+
? undefined
|
2113
|
+
: getEffectivePlacement(floatingEl, placement),
|
2114
|
+
middleware: getMiddleware({
|
2115
|
+
placement,
|
2116
|
+
flipDisabled,
|
2117
|
+
flipPlacements: flipPlacements?.map((placement) => getEffectivePlacement(floatingEl, placement)),
|
2118
|
+
offsetDistance,
|
2119
|
+
offsetSkidding,
|
2120
|
+
arrowEl,
|
2121
|
+
type,
|
2122
|
+
}),
|
2123
|
+
});
|
2124
|
+
if (arrowEl && middlewareData.arrow) {
|
2125
|
+
const { x, y } = middlewareData.arrow;
|
2126
|
+
const side = effectivePlacement.split("-")[0];
|
2127
|
+
const alignment = x != null ? "left" : "top";
|
2128
|
+
const transform = ARROW_CSS_TRANSFORM[side];
|
2129
|
+
const reset = { left: "", top: "", bottom: "", right: "" };
|
2130
|
+
if ("floatingLayout" in component) {
|
2131
|
+
component.floatingLayout = side === "left" || side === "right" ? "horizontal" : "vertical";
|
2132
|
+
}
|
2133
|
+
Object.assign(arrowEl.style, {
|
2134
|
+
...reset,
|
2135
|
+
[alignment]: `${alignment == "left" ? x : y}px`,
|
2136
|
+
[side]: "100%",
|
2137
|
+
transform,
|
2138
|
+
});
|
2139
|
+
}
|
2140
|
+
const referenceHidden = middlewareData.hide?.referenceHidden;
|
2141
|
+
const visibility = referenceHidden ? "hidden" : null;
|
2142
|
+
const pointerEvents = visibility ? "none" : null;
|
2143
|
+
floatingEl.setAttribute(placementDataAttribute, effectivePlacement);
|
2144
|
+
const { open } = component;
|
2145
|
+
Object.assign(floatingEl.style, {
|
2146
|
+
visibility,
|
2147
|
+
pointerEvents,
|
2148
|
+
position,
|
2149
|
+
transform: open ? `translate(${roundByDPR(x)}px,${roundByDPR(y)}px)` : "",
|
2150
|
+
top: 0,
|
2151
|
+
left: 0,
|
2152
|
+
});
|
2153
|
+
};
|
2154
|
+
/**
|
2155
|
+
* Exported for testing purposes only
|
2156
|
+
*/
|
2157
|
+
const placementDataAttribute = "data-placement";
|
2158
|
+
const flipPlacements = [
|
2159
|
+
"top",
|
2160
|
+
"bottom",
|
2161
|
+
"right",
|
2162
|
+
"left",
|
2163
|
+
"top-start",
|
2164
|
+
"top-end",
|
2165
|
+
"bottom-start",
|
2166
|
+
"bottom-end",
|
2167
|
+
"right-start",
|
2168
|
+
"right-end",
|
2169
|
+
"left-start",
|
2170
|
+
"left-end",
|
2171
|
+
"leading",
|
2172
|
+
"trailing",
|
2173
|
+
"leading-start",
|
2174
|
+
"leading-end",
|
2175
|
+
"trailing-start",
|
2176
|
+
"trailing-end",
|
2177
|
+
];
|
2178
|
+
const defaultMenuPlacement = "bottom-start";
|
2179
|
+
const FloatingCSS = {
|
2180
|
+
animation: "calcite-floating-ui-anim",
|
2181
|
+
animationActive: "calcite-floating-ui-anim--active",
|
2182
|
+
};
|
2183
|
+
function getMiddleware({ placement, flipDisabled, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type, }) {
|
2184
|
+
const defaultMiddleware = [shift(), hide()];
|
2185
|
+
if (type === "menu") {
|
2186
|
+
return [
|
2187
|
+
...defaultMiddleware,
|
2188
|
+
flip({
|
2189
|
+
fallbackPlacements: flipPlacements || ["top-start", "top", "top-end", "bottom-start", "bottom", "bottom-end"],
|
2190
|
+
}),
|
2191
|
+
];
|
2192
|
+
}
|
2193
|
+
if (type === "popover" || type === "tooltip") {
|
2194
|
+
const middleware = [
|
2195
|
+
...defaultMiddleware,
|
2196
|
+
offset({
|
2197
|
+
mainAxis: typeof offsetDistance === "number" ? offsetDistance : 0,
|
2198
|
+
crossAxis: typeof offsetSkidding === "number" ? offsetSkidding : 0,
|
2199
|
+
}),
|
2200
|
+
];
|
2201
|
+
if (placement === "auto" || placement === "auto-start" || placement === "auto-end") {
|
2202
|
+
middleware.push(autoPlacement({ alignment: placement === "auto-start" ? "start" : placement === "auto-end" ? "end" : null }));
|
2203
|
+
}
|
2204
|
+
else if (!flipDisabled) {
|
2205
|
+
middleware.push(flip(flipPlacements ? { fallbackPlacements: flipPlacements } : {}));
|
2206
|
+
}
|
2207
|
+
if (arrowEl) {
|
2208
|
+
middleware.push(arrow({
|
2209
|
+
element: arrowEl,
|
2210
|
+
}));
|
2211
|
+
}
|
2212
|
+
return middleware;
|
2213
|
+
}
|
2214
|
+
return [];
|
2215
|
+
}
|
2216
|
+
function filterValidFlipPlacements(placements, el) {
|
2217
|
+
const filteredPlacements = placements.filter((placement) => flipPlacements.includes(placement));
|
2218
|
+
if (filteredPlacements.length !== placements.length) {
|
2219
|
+
console.warn(`${el.tagName}: Invalid value found in: flipPlacements. Try any of these: ${flipPlacements
|
2220
|
+
.map((placement) => `"${placement}"`)
|
2221
|
+
.join(", ")
|
2222
|
+
.trim()}`, { el });
|
2223
|
+
}
|
2224
|
+
return filteredPlacements;
|
2225
|
+
}
|
2226
|
+
function getEffectivePlacement(floatingEl, placement) {
|
2227
|
+
const placements = ["left", "right"];
|
2228
|
+
if (getElementDir(floatingEl) === "rtl") {
|
2229
|
+
placements.reverse();
|
2230
|
+
}
|
2231
|
+
return placement.replace(/leading/gi, placements[0]).replace(/trailing/gi, placements[1]);
|
2232
|
+
}
|
2233
|
+
/**
|
2234
|
+
* Convenience function to manage `reposition` calls for FloatingUIComponents that use `positionFloatingUI.
|
2235
|
+
*
|
2236
|
+
* Note: this is not needed for components that use `calcite-popover`.
|
2237
|
+
*
|
2238
|
+
* @param component - A floating-ui component.
|
2239
|
+
* @param options - Reposition parameters.
|
2240
|
+
* @param options.referenceEl - The `referenceElement` used to position the component according to its `placement` value.
|
2241
|
+
* @param options.floatingEl - The `floatingElement` containing the floating ui.
|
2242
|
+
* @param options.overlayPositioning - type of positioning to use for the overlaid content.
|
2243
|
+
* @param options.placement - Determines where the component will be positioned relative to the `referenceElement`.
|
2244
|
+
* @param options.flipDisabled - Prevents flipping the component's placement when overlapping its `referenceElement`.
|
2245
|
+
* @param options.flipPlacements - Defines the available placements that can be used when a flip occurs.
|
2246
|
+
* @param options.offsetDistance - Offsets the position of the popover away from the `referenceElement`.
|
2247
|
+
* @param options.offsetSkidding - Offsets the position of the component along the `referenceElement`.
|
2248
|
+
* @param options.arrowEl - A customizable arrow element.
|
2249
|
+
* @param options.type - The type of floating UI.
|
2250
|
+
* @param delayed - Reposition the component after a delay.
|
2251
|
+
* @returns {Promise<void>}
|
2252
|
+
*/
|
2253
|
+
async function reposition(component, options, delayed = false) {
|
2254
|
+
if (!component.open || !options.floatingEl || !options.referenceEl) {
|
2255
|
+
return;
|
2256
|
+
}
|
2257
|
+
const trackedState = autoUpdatingComponentMap.get(component);
|
2258
|
+
if (!trackedState) {
|
2259
|
+
return runAutoUpdate(component, options.referenceEl, options.floatingEl);
|
2260
|
+
}
|
2261
|
+
const positionFunction = delayed ? getDebouncedReposition(component) : positionFloatingUI;
|
2262
|
+
await positionFunction(component, options);
|
2263
|
+
}
|
2264
|
+
function getDebouncedReposition(component) {
|
2265
|
+
let debounced = componentToDebouncedRepositionMap.get(component);
|
2266
|
+
if (debounced) {
|
2267
|
+
return debounced;
|
2268
|
+
}
|
2269
|
+
debounced = debounce(positionFloatingUI, DEBOUNCE.reposition, {
|
2270
|
+
leading: true,
|
2271
|
+
maxWait: DEBOUNCE.reposition,
|
2272
|
+
});
|
2273
|
+
componentToDebouncedRepositionMap.set(component, debounced);
|
2274
|
+
return debounced;
|
2275
|
+
}
|
2276
|
+
const ARROW_CSS_TRANSFORM = {
|
2277
|
+
top: "",
|
2278
|
+
left: "rotate(-90deg)",
|
2279
|
+
bottom: "rotate(180deg)",
|
2280
|
+
right: "rotate(90deg)",
|
2281
|
+
};
|
2282
|
+
/**
|
2283
|
+
* Exported for testing purposes only
|
2284
|
+
*
|
2285
|
+
* @internal
|
2286
|
+
*/
|
2287
|
+
const autoUpdatingComponentMap = new WeakMap();
|
2288
|
+
const componentToDebouncedRepositionMap = new WeakMap();
|
2289
|
+
async function runAutoUpdate(component, referenceEl, floatingEl) {
|
2290
|
+
if (!floatingEl.isConnected) {
|
2291
|
+
return;
|
2292
|
+
}
|
2293
|
+
const effectiveAutoUpdate = isBrowser()
|
2294
|
+
? autoUpdate
|
2295
|
+
: (_refEl, _floatingEl, updateCallback) => {
|
2296
|
+
updateCallback();
|
2297
|
+
return () => {
|
2298
|
+
/* noop */
|
2299
|
+
};
|
2300
|
+
};
|
2301
|
+
// we set initial state here to make it available for `reposition` calls
|
2302
|
+
autoUpdatingComponentMap.set(component, { state: "pending" });
|
2303
|
+
let repositionPromise;
|
2304
|
+
const cleanUp = effectiveAutoUpdate(referenceEl, floatingEl,
|
2305
|
+
// callback is invoked immediately
|
2306
|
+
() => {
|
2307
|
+
const promise = component.reposition();
|
2308
|
+
if (!repositionPromise) {
|
2309
|
+
repositionPromise = promise;
|
2310
|
+
}
|
2311
|
+
});
|
2312
|
+
autoUpdatingComponentMap.set(component, { state: "active", cleanUp });
|
2313
|
+
return repositionPromise;
|
2314
|
+
}
|
2315
|
+
/**
|
2316
|
+
* Helper to set up floating element interactions on connectedCallback.
|
2317
|
+
*
|
2318
|
+
* @param component - A floating-ui component.
|
2319
|
+
* @param referenceEl - The `referenceElement` used to position the component according to its `placement` value.
|
2320
|
+
* @param floatingEl - The `floatingElement` containing the floating ui.
|
2321
|
+
*/
|
2322
|
+
async function connectFloatingUI(component, referenceEl, floatingEl) {
|
2323
|
+
if (!floatingEl || !referenceEl) {
|
2324
|
+
return;
|
2325
|
+
}
|
2326
|
+
disconnectFloatingUI(component, referenceEl, floatingEl);
|
2327
|
+
Object.assign(floatingEl.style, {
|
2328
|
+
visibility: "hidden",
|
2329
|
+
pointerEvents: "none",
|
2330
|
+
// initial positioning based on https://floating-ui.com/docs/computePosition#initial-layout
|
2331
|
+
position: component.overlayPositioning,
|
2332
|
+
});
|
2333
|
+
if (!component.open) {
|
2334
|
+
return;
|
2335
|
+
}
|
2336
|
+
return runAutoUpdate(component, referenceEl, floatingEl);
|
2337
|
+
}
|
2338
|
+
/**
|
2339
|
+
* Helper to tear down floating element interactions on disconnectedCallback.
|
2340
|
+
*
|
2341
|
+
* @param component - A floating-ui component.
|
2342
|
+
* @param referenceEl - The `referenceElement` used to position the component according to its `placement` value.
|
2343
|
+
* @param floatingEl - The `floatingElement` containing the floating ui.
|
2344
|
+
*/
|
2345
|
+
function disconnectFloatingUI(component, referenceEl, floatingEl) {
|
2346
|
+
if (!floatingEl || !referenceEl) {
|
2347
|
+
return;
|
2348
|
+
}
|
2349
|
+
const trackedState = autoUpdatingComponentMap.get(component);
|
2350
|
+
if (trackedState?.state === "active") {
|
2351
|
+
trackedState.cleanUp();
|
2352
|
+
}
|
2353
|
+
autoUpdatingComponentMap.delete(component);
|
2354
|
+
componentToDebouncedRepositionMap.get(component)?.cancel();
|
2355
|
+
componentToDebouncedRepositionMap.delete(component);
|
2356
|
+
}
|
2357
|
+
const visiblePointerSize = 4;
|
2358
|
+
/**
|
2359
|
+
* Default offset the position of the floating element away from the reference element.
|
2360
|
+
*
|
2361
|
+
* @default 6
|
2362
|
+
*/
|
2363
|
+
const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePointerSize));
|
2364
|
+
|
2365
|
+
export { FloatingCSS as F, disconnectFloatingUI as a, defaultOffsetDistance as b, connectFloatingUI as c, defaultMenuPlacement as d, filterValidFlipPlacements as f, reposition as r };
|