@esri/calcite-components 1.0.0-beta.67 → 1.0.0-beta.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1540 -0
- package/dist/calcite/assets/calcite-icon/checkExtent16.json +1 -0
- package/dist/calcite/assets/calcite-icon/checkExtent24.json +1 -0
- package/dist/calcite/assets/calcite-icon/checkExtent32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTime16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTime24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTime32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeLargest16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeLargest24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeLargest32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeSmallest16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeSmallest24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeSmallest32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeXBar16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeXBar24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeXBar32.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupItems16.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupItems24.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupItems32.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupLayoutElements16.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupLayoutElements24.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupLayoutElements32.json +1 -0
- package/dist/calcite/assets/calcite-icon/penMark16.json +1 -0
- package/dist/calcite/assets/calcite-icon/penMark24.json +1 -0
- package/dist/calcite/assets/calcite-icon/penMark32.json +1 -0
- package/dist/calcite/assets/calcite-icon/penMarkPlus16.json +1 -0
- package/dist/calcite/assets/calcite-icon/penMarkPlus24.json +1 -0
- package/dist/calcite/assets/calcite-icon/penMarkPlus32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsLargest16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsLargest24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsLargest32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsSmallest16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsSmallest24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsSmallest32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsXBar16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsXBar24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsXBar32.json +1 -0
- package/dist/calcite/assets/calcite-icon/subscript16.json +1 -0
- package/dist/calcite/assets/calcite-icon/subscript24.json +1 -0
- package/dist/calcite/assets/calcite-icon/subscript32.json +1 -0
- package/dist/calcite/assets/calcite-icon/superscript16.json +1 -0
- package/dist/calcite/assets/calcite-icon/superscript24.json +1 -0
- package/dist/calcite/assets/calcite-icon/superscript32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupItems16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupItems24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupItems32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupLayoutElements16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupLayoutElements24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupLayoutElements32.json +1 -0
- package/dist/calcite/calcite.css +1 -1
- package/dist/calcite/calcite.esm.js +5 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/index.esm.js +4 -0
- package/dist/calcite/p-004460a0.system.entry.js +5 -0
- package/dist/calcite/p-044d603d.system.entry.js +5 -0
- package/dist/calcite/p-047e1000.system.entry.js +5 -0
- package/dist/calcite/p-05bf835f.js +5 -0
- package/dist/calcite/p-05da7439.entry.js +5 -0
- package/dist/calcite/p-08d707c4.entry.js +5 -0
- package/dist/calcite/p-10708f87.system.entry.js +5 -0
- package/dist/calcite/p-109049e6.system.entry.js +5 -0
- package/dist/calcite/p-127e3513.system.entry.js +5 -0
- package/dist/calcite/p-1434e37e.entry.js +5 -0
- package/dist/calcite/p-15f3a0d7.system.entry.js +5 -0
- package/dist/calcite/p-16bb48f6.system.entry.js +5 -0
- package/dist/calcite/p-16f2d814.system.entry.js +5 -0
- package/dist/calcite/p-1942876c.js +5 -0
- package/dist/calcite/p-1a962bdd.js +5 -0
- package/dist/calcite/p-1aa89347.system.entry.js +5 -0
- package/dist/calcite/p-1c8fe17f.system.entry.js +5 -0
- package/dist/calcite/p-1d6404b5.system.js +5 -0
- package/dist/calcite/p-1dd440e6.system.entry.js +5 -0
- package/dist/calcite/p-1fb7138b.js +5 -0
- package/dist/calcite/p-243d95ab.system.entry.js +5 -0
- package/dist/calcite/p-2451da5b.entry.js +5 -0
- package/dist/calcite/p-26508b91.js +5 -0
- package/dist/calcite/p-288bc438.system.js +5 -0
- package/dist/calcite/p-289bc56f.entry.js +5 -0
- package/dist/calcite/p-29771742.entry.js +5 -0
- package/dist/calcite/p-2a714a22.entry.js +5 -0
- package/dist/calcite/p-2aa3007a.entry.js +5 -0
- package/dist/calcite/p-2d09cc25.js +5 -0
- package/dist/calcite/p-2e29554c.js +5 -0
- package/dist/calcite/p-33226317.entry.js +5 -0
- package/dist/calcite/p-33802886.entry.js +5 -0
- package/dist/calcite/p-34e5baa7.system.js +5 -0
- package/dist/calcite/p-378ffa38.system.js +5 -0
- package/dist/calcite/p-38bd222a.entry.js +5 -0
- package/dist/calcite/p-3a592bf3.system.entry.js +5 -0
- package/dist/calcite/p-3dae9da3.js +5 -0
- package/dist/calcite/p-3e6fcede.entry.js +5 -0
- package/dist/calcite/p-4035444d.system.js +5 -0
- package/dist/calcite/p-4778c5cf.system.entry.js +5 -0
- package/dist/calcite/p-477bac2c.system.js +5 -0
- package/dist/calcite/p-4acfb654.entry.js +5 -0
- package/dist/calcite/p-4d11efdb.system.entry.js +5 -0
- package/dist/calcite/p-4de6f4fd.system.js +5 -0
- package/dist/calcite/p-4e16515a.system.entry.js +5 -0
- package/dist/calcite/p-4f1f83d2.entry.js +5 -0
- package/dist/calcite/p-502ea583.entry.js +5 -0
- package/dist/calcite/p-523bc291.system.js +5 -0
- package/dist/calcite/p-52cc870b.js +5 -0
- package/dist/calcite/p-54394dfe.system.entry.js +5 -0
- package/dist/calcite/p-56b352bf.system.js +5 -0
- package/dist/calcite/p-578509a8.entry.js +5 -0
- package/dist/calcite/p-592da79d.system.entry.js +5 -0
- package/dist/calcite/p-59a285d8.system.entry.js +5 -0
- package/dist/calcite/p-5c0c29bc.entry.js +5 -0
- package/dist/calcite/p-5eee672a.system.entry.js +5 -0
- package/dist/calcite/p-5efd81e1.entry.js +5 -0
- package/dist/calcite/p-5f2a9710.system.entry.js +5 -0
- package/dist/calcite/p-5f817b79.entry.js +5 -0
- package/dist/calcite/p-6296644b.entry.js +5 -0
- package/dist/calcite/p-63da2e34.system.entry.js +5 -0
- package/dist/calcite/p-63e60894.entry.js +5 -0
- package/dist/calcite/p-6484ffb7.system.entry.js +5 -0
- package/dist/calcite/p-659898bf.entry.js +5 -0
- package/dist/calcite/p-6a541e77.system.js +5 -0
- package/dist/calcite/p-6cc23c39.system.js +5 -0
- package/dist/calcite/p-6d44b7d9.system.js +5 -0
- package/dist/calcite/p-714ae4f6.entry.js +5 -0
- package/dist/calcite/p-72563742.js +5 -0
- package/dist/calcite/p-74f390e1.system.entry.js +5 -0
- package/dist/calcite/p-75264173.entry.js +5 -0
- package/dist/calcite/p-75955cef.entry.js +5 -0
- package/dist/calcite/p-765fb8ed.entry.js +5 -0
- package/dist/calcite/p-7ba971b5.system.entry.js +5 -0
- package/dist/calcite/p-7bb94bfa.entry.js +5 -0
- package/dist/calcite/p-7cbc72b6.system.entry.js +5 -0
- package/dist/calcite/p-7ed4c551.system.js +5 -0
- package/dist/calcite/p-81ab443c.entry.js +5 -0
- package/dist/calcite/p-82c6cd9a.entry.js +5 -0
- package/dist/calcite/p-8340b572.js +5 -0
- package/dist/calcite/p-840f2937.system.entry.js +5 -0
- package/dist/calcite/p-8445bc9c.system.entry.js +5 -0
- package/dist/calcite/p-85032edc.system.entry.js +5 -0
- package/dist/calcite/p-8603b2e1.entry.js +5 -0
- package/dist/calcite/p-8a63221d.js +5 -0
- package/dist/calcite/p-8b2ead09.system.entry.js +5 -0
- package/dist/calcite/p-8baa9ba4.entry.js +5 -0
- package/dist/calcite/p-8e252799.system.js +5 -0
- package/dist/calcite/p-8fef13ca.system.entry.js +5 -0
- package/dist/calcite/p-91645bf7.system.js +5 -0
- package/dist/calcite/p-9338b0bc.entry.js +5 -0
- package/dist/calcite/p-9577dfd9.entry.js +5 -0
- package/dist/calcite/p-95b9a0f2.system.entry.js +5 -0
- package/dist/calcite/p-968ea270.entry.js +5 -0
- package/dist/calcite/p-9abbbcbd.system.entry.js +5 -0
- package/dist/calcite/p-9be6633a.entry.js +5 -0
- package/dist/calcite/p-a0c02648.system.js +5 -0
- package/dist/calcite/p-a5269f14.system.entry.js +5 -0
- package/dist/calcite/p-a61d85db.system.entry.js +5 -0
- package/dist/calcite/p-a62de092.js +5 -0
- package/dist/calcite/p-a8dc2982.system.entry.js +5 -0
- package/dist/calcite/p-aa47308a.entry.js +5 -0
- package/dist/calcite/p-ac9607f2.system.js +11 -0
- package/dist/calcite/p-accdb0ce.js +5 -0
- package/dist/calcite/p-ace12b8d.entry.js +5 -0
- package/dist/calcite/p-aced5f01.entry.js +5 -0
- package/dist/calcite/p-aec398f3.system.entry.js +5 -0
- package/dist/calcite/p-b06207bb.js +5 -0
- package/dist/calcite/p-b1351c3e.system.entry.js +5 -0
- package/dist/calcite/p-b1a96c72.system.entry.js +5 -0
- package/dist/calcite/p-b1f88d45.system.js +5 -0
- package/dist/calcite/p-b2ab0485.js +5 -0
- package/dist/calcite/p-b4b1081f.system.entry.js +5 -0
- package/dist/calcite/p-b94bf8ac.system.entry.js +5 -0
- package/dist/calcite/p-c0e35328.entry.js +5 -0
- package/dist/calcite/p-c34c4414.system.js +5 -0
- package/dist/calcite/p-c3ba61ea.entry.js +5 -0
- package/dist/calcite/p-c4cb4fab.system.entry.js +5 -0
- package/dist/calcite/p-c5ec8d74.js +11 -0
- package/dist/calcite/p-c61ebee9.entry.js +5 -0
- package/dist/calcite/p-c87c04a9.entry.js +5 -0
- package/dist/calcite/p-ca3bb147.entry.js +5 -0
- package/dist/calcite/p-caf7085a.system.js +5 -0
- package/dist/calcite/p-cbe9f1a2.system.entry.js +5 -0
- package/dist/calcite/p-cbf6bb04.system.js +5 -0
- package/dist/calcite/p-cc788d2e.entry.js +5 -0
- package/dist/calcite/p-cced5508.system.entry.js +5 -0
- package/dist/calcite/p-cf03b144.system.entry.js +5 -0
- package/dist/calcite/p-d53cc958.js +5 -0
- package/dist/calcite/p-d550ee4d.entry.js +5 -0
- package/dist/calcite/p-d6e30c54.entry.js +5 -0
- package/dist/calcite/p-d6f20229.js +5 -0
- package/dist/calcite/p-db10485b.system.js +5 -0
- package/dist/calcite/p-dbe899c6.system.entry.js +5 -0
- package/dist/calcite/p-dd464e44.system.entry.js +5 -0
- package/dist/calcite/p-deb36fde.system.entry.js +5 -0
- package/dist/calcite/p-defcee80.system.entry.js +5 -0
- package/dist/calcite/p-dff7dc90.system.js +5 -0
- package/dist/calcite/p-e020662f.system.js +5 -0
- package/dist/calcite/p-e095517f.system.js +5 -0
- package/dist/calcite/p-e33fe285.system.entry.js +5 -0
- package/dist/calcite/p-e4acb5a8.js +5 -0
- package/dist/calcite/p-e52495d3.system.entry.js +5 -0
- package/dist/calcite/p-e5e3b591.entry.js +5 -0
- package/dist/calcite/p-e616f9b5.entry.js +5 -0
- package/dist/calcite/p-e6d05ad6.system.entry.js +5 -0
- package/dist/calcite/p-e70cb594.system.entry.js +5 -0
- package/dist/calcite/p-e956e279.js +5 -0
- package/dist/calcite/p-eada9cef.entry.js +5 -0
- package/dist/calcite/p-ecc00ef0.entry.js +5 -0
- package/dist/calcite/p-ed15771f.system.entry.js +5 -0
- package/dist/calcite/p-ed453bfb.entry.js +5 -0
- package/dist/calcite/p-ef39847e.entry.js +5 -0
- package/dist/calcite/p-efb2169a.entry.js +5 -0
- package/dist/calcite/p-f0338acf.system.entry.js +5 -0
- package/dist/calcite/p-f07d3627.js +5 -0
- package/dist/calcite/p-f1c5e7cf.entry.js +5 -0
- package/dist/calcite/p-f243b615.js +5 -0
- package/dist/calcite/p-f278dd53.entry.js +5 -0
- package/dist/calcite/p-f9c46578.entry.js +5 -0
- package/dist/calcite/p-fc47547f.system.entry.js +5 -0
- package/dist/calcite/p-fc643963.entry.js +5 -0
- package/dist/cjs/CalciteExpandToggle-5f60c98b.js +94 -0
- package/dist/cjs/CalciteHeading-112c19f9.js +19 -0
- package/dist/cjs/array-a5dedf5a.js +11 -0
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +11 -4
- package/dist/cjs/calcite-action-bar.cjs.entry.js +12 -8
- package/dist/cjs/calcite-action-group.cjs.entry.js +9 -5
- package/dist/cjs/calcite-action-menu.cjs.entry.js +14 -8
- package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -6
- package/dist/cjs/calcite-action.cjs.entry.js +11 -11
- package/dist/cjs/calcite-alert.cjs.entry.js +9 -5
- package/dist/cjs/calcite-avatar.cjs.entry.js +8 -4
- package/dist/cjs/calcite-block_2.cjs.entry.js +22 -17
- package/dist/cjs/calcite-button.cjs.entry.js +60 -39
- package/dist/cjs/calcite-card.cjs.entry.js +9 -5
- package/dist/cjs/calcite-checkbox.cjs.entry.js +38 -83
- package/dist/cjs/calcite-chip.cjs.entry.js +7 -3
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +39 -38
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +87 -24
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +40 -18
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +47 -38
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -3
- package/dist/cjs/calcite-filter.cjs.entry.js +52 -19
- package/dist/cjs/calcite-flow.cjs.entry.js +6 -2
- package/dist/cjs/calcite-graph_2.cjs.entry.js +62 -34
- package/dist/cjs/calcite-handle.cjs.entry.js +5 -1
- package/dist/cjs/calcite-icon.cjs.entry.js +8 -4
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +58 -44
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +87 -30
- package/dist/cjs/calcite-input-message.cjs.entry.js +7 -3
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +31 -18
- package/dist/cjs/calcite-input.cjs.entry.js +121 -80
- package/dist/cjs/calcite-label.cjs.entry.js +7 -3
- package/dist/cjs/calcite-link.cjs.entry.js +13 -3
- package/dist/cjs/calcite-list_3.cjs.entry.js +31 -6
- package/dist/cjs/calcite-loader.cjs.entry.js +7 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +9 -5
- package/dist/cjs/calcite-notice.cjs.entry.js +9 -5
- package/dist/cjs/calcite-option_3.cjs.entry.js +46 -16
- package/dist/cjs/calcite-pagination.cjs.entry.js +7 -3
- package/dist/cjs/calcite-panel.cjs.entry.js +12 -7
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +12 -8
- package/dist/cjs/calcite-popover_2.cjs.entry.js +11 -7
- package/dist/cjs/calcite-progress.cjs.entry.js +5 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +5 -1
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +37 -37
- package/dist/cjs/calcite-radio_2.cjs.entry.js +103 -97
- package/dist/cjs/calcite-rating.cjs.entry.js +27 -14
- package/dist/cjs/calcite-scrim.cjs.entry.js +5 -1
- package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -6
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +7 -3
- package/dist/cjs/calcite-split-button.cjs.entry.js +7 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +8 -4
- package/dist/cjs/calcite-switch.cjs.entry.js +31 -46
- package/dist/cjs/calcite-tab_4.cjs.entry.js +10 -6
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +9 -7
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -4
- package/dist/cjs/calcite-tip_3.cjs.entry.js +9 -5
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +13 -8
- package/dist/cjs/calcite-tree_2.cjs.entry.js +24 -13
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +12 -8
- package/dist/cjs/calcite.cjs.js +7 -3
- package/dist/cjs/debounce-95979061.js +495 -0
- package/dist/cjs/dom-19822169.js +170 -0
- package/dist/cjs/forIn-a5d553af.js +622 -0
- package/dist/cjs/form-a5b44a1f.js +179 -0
- package/dist/cjs/guid-b270f0db.js +20 -0
- package/dist/cjs/index-6b5d2de5.js +1718 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/interfaces-54651c1c.js +13 -0
- package/dist/cjs/key-8bfb93ec.js +37 -0
- package/dist/cjs/label-8e3552b2.js +87 -0
- package/dist/cjs/loader.cjs.js +7 -3
- package/dist/cjs/locale-69dc9583.js +123 -0
- package/dist/cjs/math-145c80e2.js +21 -0
- package/dist/cjs/number-e6448e15.js +45 -0
- package/dist/cjs/observers-41837607.js +22 -0
- package/dist/cjs/popper-87bf13e6.js +1790 -0
- package/dist/cjs/resources-3f7b51c8.js +232 -0
- package/dist/cjs/resources-407a4290.js +20 -0
- package/dist/cjs/resources-cd25dbae.js +346 -0
- package/dist/cjs/resources-ffe563a2.js +21 -0
- package/dist/cjs/sortable.esm-d7a4560b.js +3019 -0
- package/dist/cjs/utils-55d67711.js +123 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/calcite-accordion/calcite-accordion.js +6 -2
- package/dist/collection/components/calcite-accordion/interfaces.js +4 -0
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +15 -8
- package/dist/collection/components/calcite-action/calcite-action.css +17 -68
- package/dist/collection/components/calcite-action/calcite-action.js +38 -35
- package/dist/collection/components/calcite-action/resources.js +4 -0
- package/dist/collection/components/calcite-action-bar/calcite-action-bar.js +4 -0
- package/dist/collection/components/calcite-action-bar/resources.js +4 -0
- package/dist/collection/components/calcite-action-bar/utils.js +4 -0
- package/dist/collection/components/calcite-action-group/calcite-action-group.js +4 -0
- package/dist/collection/components/calcite-action-group/resources.js +4 -0
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +10 -4
- package/dist/collection/components/calcite-action-menu/resources.js +4 -0
- package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +4 -0
- package/dist/collection/components/calcite-action-pad/resources.js +4 -0
- package/dist/collection/components/calcite-alert/calcite-alert.css +0 -62
- package/dist/collection/components/calcite-alert/calcite-alert.js +10 -6
- package/dist/collection/components/calcite-alert/interfaces.js +4 -0
- package/dist/collection/components/calcite-alert/resources.js +4 -0
- package/dist/collection/components/calcite-avatar/calcite-avatar.js +4 -0
- package/dist/collection/components/calcite-avatar/utils.js +4 -0
- package/dist/collection/components/calcite-block/calcite-block.css +25 -22
- package/dist/collection/components/calcite-block/calcite-block.js +17 -15
- package/dist/collection/components/calcite-block/resources.js +8 -2
- package/dist/collection/components/calcite-block-section/calcite-block-section.css +1 -0
- package/dist/collection/components/calcite-block-section/calcite-block-section.js +4 -0
- package/dist/collection/components/calcite-block-section/interfaces.js +4 -0
- package/dist/collection/components/calcite-block-section/resources.js +4 -0
- package/dist/collection/components/calcite-button/calcite-button.css +20 -14
- package/dist/collection/components/calcite-button/calcite-button.js +37 -37
- package/dist/collection/components/calcite-button/interfaces.js +4 -0
- package/dist/collection/components/calcite-button/resources.js +4 -0
- package/dist/collection/components/calcite-card/calcite-card.js +12 -8
- package/dist/collection/components/calcite-card/resources.js +4 -0
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +26 -12
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +72 -117
- package/dist/collection/components/calcite-chip/calcite-chip.js +6 -2
- package/dist/collection/components/calcite-chip/interfaces.js +4 -0
- package/dist/collection/components/calcite-chip/resources.js +4 -0
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +67 -62
- package/dist/collection/components/calcite-color-picker/interfaces.js +4 -0
- package/dist/collection/components/calcite-color-picker/resources.js +4 -0
- package/dist/collection/components/calcite-color-picker/utils.js +4 -0
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +19 -19
- package/dist/collection/components/calcite-color-picker-hex-input/resources.js +4 -0
- package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.js +6 -2
- package/dist/collection/components/calcite-color-picker-swatch/resources.js +4 -0
- package/dist/collection/components/calcite-combobox/calcite-combobox.css +32 -4
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +149 -24
- package/dist/collection/components/calcite-combobox/interfaces.js +4 -0
- package/dist/collection/components/calcite-combobox/resources.js +4 -0
- package/dist/collection/components/calcite-combobox/utils.js +4 -0
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.css +1 -1
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +4 -0
- package/dist/collection/components/calcite-combobox-item/resources.js +4 -0
- package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.js +4 -0
- package/dist/collection/components/calcite-combobox-item-group/resources.js +4 -0
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +55 -21
- package/dist/collection/components/calcite-date-picker/interfaces.js +4 -0
- package/dist/collection/components/calcite-date-picker/resources.js +4 -0
- package/dist/collection/components/calcite-date-picker/utils.js +4 -0
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +1 -1
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +6 -2
- package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.css +1 -1
- package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +10 -6
- package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css +1 -1
- package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.js +4 -0
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +47 -36
- package/dist/collection/components/calcite-dropdown/interfaces.js +4 -0
- package/dist/collection/components/calcite-dropdown/resources.js +4 -0
- package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.js +6 -2
- package/dist/collection/components/calcite-dropdown-group/interfaces.js +4 -0
- package/dist/collection/components/calcite-dropdown-group/resources.js +4 -0
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.css +33 -27
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +10 -6
- package/dist/collection/components/calcite-dropdown-item/resources.js +4 -0
- package/dist/collection/components/calcite-fab/calcite-fab.js +6 -2
- package/dist/collection/components/calcite-fab/resources.js +4 -0
- package/dist/collection/components/calcite-filter/calcite-filter.js +113 -20
- package/dist/collection/components/calcite-filter/resources.js +4 -0
- package/dist/collection/components/calcite-flow/calcite-flow.js +4 -0
- package/dist/collection/components/calcite-flow/interfaces.js +4 -0
- package/dist/collection/components/calcite-flow/resources.js +4 -0
- package/dist/collection/components/calcite-graph/calcite-graph.js +52 -6
- package/dist/collection/components/calcite-graph/interfaces.js +4 -0
- package/dist/collection/components/calcite-graph/util.js +5 -1
- package/dist/collection/components/calcite-handle/calcite-handle.js +6 -2
- package/dist/collection/components/calcite-handle/resources.js +4 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements32.json +1 -0
- package/dist/collection/components/calcite-icon/calcite-icon.js +4 -0
- package/dist/collection/components/calcite-icon/resources.js +4 -0
- package/dist/collection/components/calcite-icon/utils.js +4 -0
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.css +8 -54
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +61 -45
- package/dist/collection/components/calcite-inline-editable/resources.js +11 -7
- package/dist/collection/components/calcite-input/calcite-input.css +102 -68
- package/dist/collection/components/calcite-input/calcite-input.js +159 -90
- package/dist/collection/components/calcite-input/interfaces.js +4 -0
- package/dist/collection/components/calcite-input/resources.js +18 -12
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.css +15 -0
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +186 -59
- package/dist/collection/components/calcite-input-message/calcite-input-message.js +6 -2
- package/dist/collection/components/calcite-input-message/interfaces.js +4 -0
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.css +15 -0
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +50 -15
- package/dist/collection/components/calcite-label/calcite-label.js +6 -2
- package/dist/collection/components/calcite-label/resources.js +4 -0
- package/dist/collection/components/calcite-link/calcite-link.js +15 -1
- package/dist/collection/components/calcite-list/calcite-list.js +37 -1
- package/dist/collection/components/calcite-list/resources.js +4 -0
- package/dist/collection/components/calcite-list-item/calcite-list-item.css +7 -0
- package/dist/collection/components/calcite-list-item/calcite-list-item.js +34 -2
- package/dist/collection/components/calcite-list-item/resources.js +4 -0
- package/dist/collection/components/calcite-list-item-group/calcite-list-item-group.js +4 -0
- package/dist/collection/components/calcite-list-item-group/resources.js +4 -0
- package/dist/collection/components/calcite-loader/calcite-loader.css +3 -6
- package/dist/collection/components/calcite-loader/calcite-loader.js +4 -0
- package/dist/collection/components/calcite-modal/calcite-modal.js +6 -2
- package/dist/collection/components/calcite-modal/interfaces.js +4 -0
- package/dist/collection/components/calcite-modal/resources.js +4 -0
- package/dist/collection/components/calcite-notice/calcite-notice.css +18 -6
- package/dist/collection/components/calcite-notice/calcite-notice.js +6 -2
- package/dist/collection/components/calcite-notice/resources.js +4 -0
- package/dist/collection/components/calcite-option/calcite-option.js +6 -2
- package/dist/collection/components/calcite-option-group/calcite-option-group.js +6 -2
- package/dist/collection/components/calcite-pagination/calcite-pagination.js +12 -8
- package/dist/collection/components/calcite-pagination/resources.js +4 -0
- package/dist/collection/components/calcite-panel/calcite-panel.css +16 -6
- package/dist/collection/components/calcite-panel/calcite-panel.js +7 -2
- package/dist/collection/components/calcite-panel/resources.js +5 -0
- package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +4 -0
- package/dist/collection/components/calcite-pick-list/resources.js +4 -0
- package/dist/collection/components/calcite-pick-list/shared-list-logic.js +4 -0
- package/dist/collection/components/calcite-pick-list/shared-list-render.js +4 -0
- package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +4 -0
- package/dist/collection/components/calcite-pick-list-group/resources.js +4 -0
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +14 -10
- package/dist/collection/components/calcite-pick-list-item/resources.js +4 -0
- package/dist/collection/components/calcite-popover/calcite-popover.css +1 -0
- package/dist/collection/components/calcite-popover/calcite-popover.js +13 -9
- package/dist/collection/components/calcite-popover/resources.js +4 -0
- package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +6 -2
- package/dist/collection/components/calcite-progress/calcite-progress.js +4 -0
- package/dist/collection/components/calcite-radio/calcite-radio.js +8 -4
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +18 -1
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +115 -116
- package/dist/collection/components/calcite-radio-button/resources.js +5 -1
- package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.js +4 -0
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.css +15 -0
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +70 -30
- package/dist/collection/components/calcite-radio-group/interfaces.js +4 -0
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.css +1 -5
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +6 -2
- package/dist/collection/components/calcite-radio-group-item/resources.js +4 -0
- package/dist/collection/components/calcite-rating/calcite-rating.css +15 -0
- package/dist/collection/components/calcite-rating/calcite-rating.js +65 -13
- package/dist/collection/components/calcite-rating/resources.js +4 -0
- package/dist/collection/components/calcite-scrim/calcite-scrim.js +6 -2
- package/dist/collection/components/calcite-scrim/resources.js +4 -0
- package/dist/collection/components/calcite-select/calcite-select.css +15 -0
- package/dist/collection/components/calcite-select/calcite-select.js +103 -13
- package/dist/collection/components/calcite-select/resources.js +4 -0
- package/dist/collection/components/calcite-shell/calcite-shell.css +11 -11
- package/dist/collection/components/calcite-shell/calcite-shell.js +4 -0
- package/dist/collection/components/calcite-shell/resources.js +4 -0
- package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +4 -0
- package/dist/collection/components/calcite-shell-center-row/resources.js +4 -0
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +38 -21
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +6 -2
- package/dist/collection/components/calcite-shell-panel/resources.js +5 -0
- package/dist/collection/components/calcite-slider/calcite-slider.css +18 -4
- package/dist/collection/components/calcite-slider/calcite-slider.js +85 -24
- package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.js +4 -0
- package/dist/collection/components/calcite-sortable-list/resources.js +4 -0
- package/dist/collection/components/calcite-split-button/calcite-split-button.js +6 -2
- package/dist/collection/components/calcite-split-button/resources.js +4 -0
- package/dist/collection/components/calcite-stepper/calcite-stepper.js +8 -4
- package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +18 -14
- package/dist/collection/components/calcite-switch/calcite-switch.css +15 -0
- package/dist/collection/components/calcite-switch/calcite-switch.js +35 -62
- package/dist/collection/components/calcite-tab/calcite-tab.css +5 -0
- package/dist/collection/components/calcite-tab/calcite-tab.js +8 -4
- package/dist/collection/components/calcite-tab/interfaces.js +4 -0
- package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.js +18 -14
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +20 -16
- package/dist/collection/components/calcite-tabs/calcite-tabs.js +4 -0
- package/dist/collection/components/calcite-tabs/interfaces.js +4 -0
- package/dist/collection/components/calcite-tabs/resources.js +4 -0
- package/dist/collection/components/calcite-tile/calcite-tile.css +4 -0
- package/dist/collection/components/calcite-tile/calcite-tile.js +6 -2
- package/dist/collection/components/calcite-tile/resources.js +4 -0
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +24 -11
- package/dist/collection/components/calcite-tile-select/interfaces.js +4 -0
- package/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.js +4 -0
- package/dist/collection/components/calcite-tile-select-group/interfaces.js +4 -0
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +34 -30
- package/dist/collection/components/calcite-time-picker/resources.js +4 -0
- package/dist/collection/components/calcite-tip/calcite-tip.js +4 -0
- package/dist/collection/components/calcite-tip/resources.js +4 -0
- package/dist/collection/components/calcite-tip-group/calcite-tip-group.js +4 -0
- package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.js +4 -0
- package/dist/collection/components/calcite-tip-manager/resources.js +4 -0
- package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +9 -5
- package/dist/collection/components/calcite-tooltip/resources.js +4 -0
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +9 -4
- package/dist/collection/components/calcite-tree/calcite-tree.js +14 -10
- package/dist/collection/components/calcite-tree/interfaces.js +4 -0
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.css +47 -69
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +39 -28
- package/dist/collection/components/calcite-tree-item/interfaces.js +4 -0
- package/dist/collection/components/calcite-tree-item/resources.js +4 -0
- package/dist/collection/components/calcite-value-list/calcite-value-list.js +4 -0
- package/dist/collection/components/calcite-value-list/resources.js +4 -0
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +10 -6
- package/dist/collection/components/calcite-value-list-item/resources.js +4 -0
- package/dist/collection/components/functional/CalciteExpandToggle.js +4 -0
- package/dist/collection/components/functional/CalciteHeading.js +4 -0
- package/dist/collection/components/interfaces.js +4 -0
- package/dist/collection/utils/array.js +4 -0
- package/dist/collection/utils/date.js +4 -0
- package/dist/collection/utils/dom.js +4 -0
- package/dist/collection/utils/filter.js +4 -0
- package/dist/collection/utils/form.js +171 -14
- package/dist/collection/utils/guid.js +4 -0
- package/dist/collection/utils/key.js +4 -0
- package/dist/collection/utils/label.js +41 -8
- package/dist/collection/utils/locale.js +4 -0
- package/dist/collection/utils/math.js +15 -0
- package/dist/collection/utils/number.js +4 -3
- package/dist/collection/utils/observers.js +4 -0
- package/dist/collection/utils/popper.js +6 -2
- package/dist/collection/utils/resources.js +4 -0
- package/dist/collection/utils/time.js +4 -0
- package/dist/components/CalciteExpandToggle.js +87 -0
- package/dist/components/CalciteHeading.js +16 -0
- package/dist/components/array.js +9 -0
- package/dist/components/calcite-accordion-item.d.ts +11 -0
- package/dist/components/calcite-accordion-item.js +159 -0
- package/dist/components/calcite-accordion.d.ts +11 -0
- package/dist/components/calcite-accordion.js +170 -0
- package/dist/components/calcite-action-bar.d.ts +11 -0
- package/dist/components/calcite-action-bar.js +269 -0
- package/dist/components/calcite-action-group.d.ts +11 -0
- package/dist/components/calcite-action-group.js +10 -0
- package/dist/components/calcite-action-group2.js +138 -0
- package/dist/components/calcite-action-menu.d.ts +11 -0
- package/dist/components/calcite-action-menu.js +10 -0
- package/dist/components/calcite-action-menu2.js +357 -0
- package/dist/components/calcite-action-pad.d.ts +11 -0
- package/dist/components/calcite-action-pad.js +201 -0
- package/dist/components/calcite-action.d.ts +11 -0
- package/dist/components/calcite-action.js +10 -0
- package/dist/components/calcite-action2.js +186 -0
- package/dist/components/calcite-alert.d.ts +11 -0
- package/dist/components/calcite-alert.js +235 -0
- package/dist/components/calcite-avatar.d.ts +11 -0
- package/dist/components/calcite-avatar.js +174 -0
- package/dist/components/calcite-block-section.d.ts +11 -0
- package/dist/components/calcite-block-section.js +142 -0
- package/dist/components/calcite-block.d.ts +11 -0
- package/dist/components/calcite-block.js +217 -0
- package/dist/components/calcite-button.d.ts +11 -0
- package/dist/components/calcite-button.js +10 -0
- package/dist/components/calcite-button2.js +246 -0
- package/dist/components/calcite-card.d.ts +11 -0
- package/dist/components/calcite-card.js +165 -0
- package/dist/components/calcite-checkbox.d.ts +11 -0
- package/dist/components/calcite-checkbox.js +10 -0
- package/dist/components/calcite-checkbox2.js +156 -0
- package/dist/components/calcite-chip.d.ts +11 -0
- package/dist/components/calcite-chip.js +10 -0
- package/dist/components/calcite-chip2.js +124 -0
- package/dist/components/calcite-color-picker-hex-input.d.ts +11 -0
- package/dist/components/calcite-color-picker-hex-input.js +10 -0
- package/dist/components/calcite-color-picker-hex-input2.js +352 -0
- package/dist/components/calcite-color-picker-swatch.d.ts +11 -0
- package/dist/components/calcite-color-picker-swatch.js +10 -0
- package/dist/components/calcite-color-picker-swatch2.js +2179 -0
- package/dist/components/calcite-color-picker.d.ts +11 -0
- package/dist/components/calcite-color-picker.js +970 -0
- package/dist/components/calcite-combobox-item-group.d.ts +11 -0
- package/dist/components/calcite-combobox-item-group.js +71 -0
- package/dist/components/calcite-combobox-item.d.ts +11 -0
- package/dist/components/calcite-combobox-item.js +171 -0
- package/dist/components/calcite-combobox.d.ts +11 -0
- package/dist/components/calcite-combobox.js +936 -0
- package/dist/components/calcite-date-picker-day.d.ts +11 -0
- package/dist/components/calcite-date-picker-day.js +10 -0
- package/dist/components/calcite-date-picker-day2.js +102 -0
- package/dist/components/calcite-date-picker-month-header.d.ts +11 -0
- package/dist/components/calcite-date-picker-month-header.js +10 -0
- package/dist/components/calcite-date-picker-month-header2.js +173 -0
- package/dist/components/calcite-date-picker-month.d.ts +11 -0
- package/dist/components/calcite-date-picker-month.js +10 -0
- package/dist/components/calcite-date-picker-month2.js +316 -0
- package/dist/components/calcite-date-picker.d.ts +11 -0
- package/dist/components/calcite-date-picker.js +10 -0
- package/dist/components/calcite-date-picker2.js +507 -0
- package/dist/components/calcite-dropdown-group.d.ts +11 -0
- package/dist/components/calcite-dropdown-group.js +93 -0
- package/dist/components/calcite-dropdown-item.d.ts +11 -0
- package/dist/components/calcite-dropdown-item.js +205 -0
- package/dist/components/calcite-dropdown.d.ts +11 -0
- package/dist/components/calcite-dropdown.js +10 -0
- package/dist/components/calcite-dropdown2.js +393 -0
- package/dist/components/calcite-fab.d.ts +11 -0
- package/dist/components/calcite-fab.js +130 -0
- package/dist/components/calcite-filter.d.ts +11 -0
- package/dist/components/calcite-filter.js +10 -0
- package/dist/components/calcite-filter2.js +199 -0
- package/dist/components/calcite-flow.d.ts +11 -0
- package/dist/components/calcite-flow.js +141 -0
- package/dist/components/calcite-graph.d.ts +11 -0
- package/dist/components/calcite-graph.js +10 -0
- package/dist/components/calcite-graph2.js +216 -0
- package/dist/components/calcite-handle.d.ts +11 -0
- package/dist/components/calcite-handle.js +10 -0
- package/dist/components/calcite-handle2.js +110 -0
- package/dist/components/calcite-icon.d.ts +11 -0
- package/dist/components/calcite-icon.js +10 -0
- package/dist/components/calcite-icon2.js +188 -0
- package/dist/components/calcite-inline-editable.d.ts +11 -0
- package/dist/components/calcite-inline-editable.js +255 -0
- package/dist/components/calcite-input-date-picker.d.ts +11 -0
- package/dist/components/calcite-input-date-picker.js +530 -0
- package/dist/components/calcite-input-message.d.ts +11 -0
- package/dist/components/calcite-input-message.js +100 -0
- package/dist/components/calcite-input-time-picker.d.ts +11 -0
- package/dist/components/calcite-input-time-picker.js +291 -0
- package/dist/components/calcite-input.d.ts +11 -0
- package/dist/components/calcite-input.js +10 -0
- package/dist/components/calcite-input2.js +542 -0
- package/dist/components/calcite-label.d.ts +11 -0
- package/dist/components/calcite-label.js +10 -0
- package/dist/components/calcite-label2.js +84 -0
- package/dist/components/calcite-link.d.ts +11 -0
- package/dist/components/calcite-link.js +10 -0
- package/dist/components/calcite-link2.js +100 -0
- package/dist/components/calcite-list-item-group.d.ts +11 -0
- package/dist/components/calcite-list-item-group.js +60 -0
- package/dist/components/calcite-list-item.d.ts +11 -0
- package/dist/components/calcite-list-item.js +120 -0
- package/dist/components/calcite-list.d.ts +11 -0
- package/dist/components/calcite-list.js +62 -0
- package/dist/components/calcite-loader.d.ts +11 -0
- package/dist/components/calcite-loader.js +10 -0
- package/dist/components/calcite-loader2.js +110 -0
- package/dist/components/calcite-modal.d.ts +11 -0
- package/dist/components/calcite-modal.js +420 -0
- package/dist/components/calcite-notice.d.ts +11 -0
- package/dist/components/calcite-notice.js +143 -0
- package/dist/components/calcite-option-group.d.ts +11 -0
- package/dist/components/calcite-option-group.js +64 -0
- package/dist/components/calcite-option.d.ts +11 -0
- package/dist/components/calcite-option.js +110 -0
- package/dist/components/calcite-pagination.d.ts +11 -0
- package/dist/components/calcite-pagination.js +210 -0
- package/dist/components/calcite-panel.d.ts +11 -0
- package/dist/components/calcite-panel.js +313 -0
- package/dist/components/calcite-pick-list-group.d.ts +11 -0
- package/dist/components/calcite-pick-list-group.js +73 -0
- package/dist/components/calcite-pick-list-item.d.ts +11 -0
- package/dist/components/calcite-pick-list-item.js +10 -0
- package/dist/components/calcite-pick-list-item2.js +233 -0
- package/dist/components/calcite-pick-list.d.ts +11 -0
- package/dist/components/calcite-pick-list.js +199 -0
- package/dist/components/calcite-popover-manager.d.ts +11 -0
- package/dist/components/calcite-popover-manager.js +96 -0
- package/dist/components/calcite-popover.d.ts +11 -0
- package/dist/components/calcite-popover.js +10 -0
- package/dist/components/calcite-popover2.js +335 -0
- package/dist/components/calcite-progress.d.ts +11 -0
- package/dist/components/calcite-progress.js +10 -0
- package/dist/components/calcite-progress2.js +55 -0
- package/dist/components/calcite-radio-button-group.d.ts +11 -0
- package/dist/components/calcite-radio-button-group.js +119 -0
- package/dist/components/calcite-radio-button.d.ts +11 -0
- package/dist/components/calcite-radio-button.js +297 -0
- package/dist/components/calcite-radio-group-item.d.ts +11 -0
- package/dist/components/calcite-radio-group-item.js +142 -0
- package/dist/components/calcite-radio-group.d.ts +11 -0
- package/dist/components/calcite-radio-group.js +234 -0
- package/dist/components/calcite-radio.d.ts +11 -0
- package/dist/components/calcite-radio.js +10 -0
- package/dist/components/calcite-radio2.js +71 -0
- package/dist/components/calcite-rating.d.ts +11 -0
- package/dist/components/calcite-rating.js +174 -0
- package/dist/components/calcite-scrim.d.ts +11 -0
- package/dist/components/calcite-scrim.js +10 -0
- package/dist/components/calcite-scrim2.js +77 -0
- package/dist/components/calcite-select.d.ts +11 -0
- package/dist/components/calcite-select.js +253 -0
- package/dist/components/calcite-shell-center-row.d.ts +11 -0
- package/dist/components/calcite-shell-center-row.js +84 -0
- package/dist/components/calcite-shell-panel.d.ts +11 -0
- package/dist/components/calcite-shell-panel.js +104 -0
- package/dist/components/calcite-shell.d.ts +11 -0
- package/dist/components/calcite-shell.js +102 -0
- package/dist/components/calcite-slider.d.ts +11 -0
- package/dist/components/calcite-slider.js +767 -0
- package/dist/components/calcite-sortable-list.d.ts +11 -0
- package/dist/components/calcite-sortable-list.js +193 -0
- package/dist/components/calcite-split-button.d.ts +11 -0
- package/dist/components/calcite-split-button.js +130 -0
- package/dist/components/calcite-stepper-item.d.ts +11 -0
- package/dist/components/calcite-stepper-item.js +192 -0
- package/dist/components/calcite-stepper.d.ts +11 -0
- package/dist/components/calcite-stepper.js +250 -0
- package/dist/components/calcite-switch.d.ts +11 -0
- package/dist/components/calcite-switch.js +10 -0
- package/dist/components/calcite-switch2.js +144 -0
- package/dist/components/calcite-tab-nav.d.ts +11 -0
- package/dist/components/calcite-tab-nav.js +10 -0
- package/dist/components/calcite-tab-nav2.js +212 -0
- package/dist/components/calcite-tab-title.d.ts +11 -0
- package/dist/components/calcite-tab-title.js +10 -0
- package/dist/components/calcite-tab-title2.js +233 -0
- package/dist/components/calcite-tab.d.ts +11 -0
- package/dist/components/calcite-tab.js +10 -0
- package/dist/components/calcite-tab2.js +125 -0
- package/dist/components/calcite-tabs.d.ts +11 -0
- package/dist/components/calcite-tabs.js +10 -0
- package/dist/components/calcite-tabs2.js +186 -0
- package/dist/components/calcite-tile-select-group.d.ts +11 -0
- package/dist/components/calcite-tile-select-group.js +48 -0
- package/dist/components/calcite-tile-select.d.ts +11 -0
- package/dist/components/calcite-tile-select.js +219 -0
- package/dist/components/calcite-tile.d.ts +11 -0
- package/dist/components/calcite-tile.js +10 -0
- package/dist/components/calcite-tile2.js +101 -0
- package/dist/components/calcite-time-picker.d.ts +11 -0
- package/dist/components/calcite-time-picker.js +10 -0
- package/dist/components/calcite-time-picker2.js +710 -0
- package/dist/components/calcite-tip-group.d.ts +11 -0
- package/dist/components/calcite-tip-group.js +41 -0
- package/dist/components/calcite-tip-manager.d.ts +11 -0
- package/dist/components/calcite-tip-manager.js +221 -0
- package/dist/components/calcite-tip.d.ts +11 -0
- package/dist/components/calcite-tip.js +143 -0
- package/dist/components/calcite-tooltip-manager.d.ts +11 -0
- package/dist/components/calcite-tooltip-manager.js +10 -0
- package/dist/components/calcite-tooltip-manager2.js +171 -0
- package/dist/components/calcite-tooltip.d.ts +11 -0
- package/dist/components/calcite-tooltip.js +227 -0
- package/dist/components/calcite-tree-item.d.ts +11 -0
- package/dist/components/calcite-tree-item.js +313 -0
- package/dist/components/calcite-tree.d.ts +11 -0
- package/dist/components/calcite-tree.js +219 -0
- package/dist/components/calcite-value-list-item.d.ts +11 -0
- package/dist/components/calcite-value-list-item.js +183 -0
- package/dist/components/calcite-value-list.d.ts +11 -0
- package/dist/components/calcite-value-list.js +274 -0
- package/dist/components/date.js +159 -0
- package/dist/components/debounce.js +486 -0
- package/dist/components/dom.js +153 -0
- package/dist/components/forIn.js +619 -0
- package/dist/components/form.js +174 -0
- package/dist/components/guid.js +18 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +5 -0
- package/dist/components/interfaces.js +13 -0
- package/dist/components/interfaces2.js +14 -0
- package/dist/components/key.js +33 -0
- package/dist/components/label.js +83 -0
- package/dist/components/locale.js +118 -0
- package/dist/components/math.js +18 -0
- package/dist/components/number.js +40 -0
- package/dist/components/observers.js +22 -0
- package/dist/components/popper.js +1785 -0
- package/dist/components/resources.js +24 -0
- package/dist/components/resources2.js +13 -0
- package/dist/components/resources3.js +18 -0
- package/dist/components/resources4.js +32 -0
- package/dist/components/shared-list-render.js +286 -0
- package/dist/components/sortable.esm.js +3017 -0
- package/dist/components/utils.js +113 -0
- package/dist/components/utils2.js +38 -0
- package/dist/custom-elements/index.js +1330 -884
- package/dist/esm/CalciteExpandToggle-677f2f8b.js +87 -0
- package/dist/esm/CalciteHeading-1d6cd311.js +16 -0
- package/dist/esm/array-91a648e2.js +9 -0
- package/dist/esm/calcite-accordion_2.entry.js +11 -4
- package/dist/esm/calcite-action-bar.entry.js +12 -8
- package/dist/esm/calcite-action-group.entry.js +9 -5
- package/dist/esm/calcite-action-menu.entry.js +14 -8
- package/dist/esm/calcite-action-pad.entry.js +10 -6
- package/dist/esm/calcite-action.entry.js +11 -11
- package/dist/esm/calcite-alert.entry.js +9 -5
- package/dist/esm/calcite-avatar.entry.js +8 -4
- package/dist/esm/calcite-block_2.entry.js +22 -17
- package/dist/esm/calcite-button.entry.js +60 -39
- package/dist/esm/calcite-card.entry.js +9 -5
- package/dist/esm/calcite-checkbox.entry.js +38 -83
- package/dist/esm/calcite-chip.entry.js +7 -3
- package/dist/esm/calcite-color-picker_3.entry.js +39 -38
- package/dist/esm/calcite-combobox_3.entry.js +87 -24
- package/dist/esm/calcite-date-picker_4.entry.js +40 -18
- package/dist/esm/calcite-dropdown_3.entry.js +47 -38
- package/dist/esm/calcite-fab.entry.js +7 -3
- package/dist/esm/calcite-filter.entry.js +52 -19
- package/dist/esm/calcite-flow.entry.js +6 -2
- package/dist/esm/calcite-graph_2.entry.js +62 -34
- package/dist/esm/calcite-handle.entry.js +5 -1
- package/dist/esm/calcite-icon.entry.js +8 -4
- package/dist/esm/calcite-inline-editable.entry.js +58 -44
- package/dist/esm/calcite-input-date-picker.entry.js +87 -30
- package/dist/esm/calcite-input-message.entry.js +7 -3
- package/dist/esm/calcite-input-time-picker_2.entry.js +31 -18
- package/dist/esm/calcite-input.entry.js +121 -80
- package/dist/esm/calcite-label.entry.js +7 -3
- package/dist/esm/calcite-link.entry.js +13 -3
- package/dist/esm/calcite-list_3.entry.js +31 -6
- package/dist/esm/calcite-loader.entry.js +7 -3
- package/dist/esm/calcite-modal.entry.js +9 -5
- package/dist/esm/calcite-notice.entry.js +9 -5
- package/dist/esm/calcite-option_3.entry.js +46 -16
- package/dist/esm/calcite-pagination.entry.js +7 -3
- package/dist/esm/calcite-panel.entry.js +12 -7
- package/dist/esm/calcite-pick-list_3.entry.js +12 -8
- package/dist/esm/calcite-popover_2.entry.js +11 -7
- package/dist/esm/calcite-progress.entry.js +5 -1
- package/dist/esm/calcite-radio-button-group.entry.js +5 -1
- package/dist/esm/calcite-radio-group_2.entry.js +37 -37
- package/dist/esm/calcite-radio_2.entry.js +103 -97
- package/dist/esm/calcite-rating.entry.js +27 -14
- package/dist/esm/calcite-scrim.entry.js +5 -1
- package/dist/esm/calcite-shell_3.entry.js +11 -6
- package/dist/esm/calcite-sortable-list.entry.js +7 -3
- package/dist/esm/calcite-split-button.entry.js +7 -3
- package/dist/esm/calcite-stepper_2.entry.js +8 -4
- package/dist/esm/calcite-switch.entry.js +31 -46
- package/dist/esm/calcite-tab_4.entry.js +10 -6
- package/dist/esm/calcite-tile-select_2.entry.js +9 -7
- package/dist/esm/calcite-tile.entry.js +8 -4
- package/dist/esm/calcite-tip_3.entry.js +9 -5
- package/dist/esm/calcite-tooltip_2.entry.js +13 -8
- package/dist/esm/calcite-tree_2.entry.js +24 -13
- package/dist/esm/calcite-value-list_2.entry.js +12 -8
- package/dist/esm/calcite.js +7 -3
- package/dist/esm/debounce-79648d42.js +486 -0
- package/dist/esm/dom-f24e866c.js +153 -0
- package/dist/esm/forIn-48d8fb84.js +619 -0
- package/dist/esm/form-160b0fb5.js +174 -0
- package/dist/esm/guid-196bd5ea.js +18 -0
- package/dist/esm/index-9de00868.js +1685 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/interfaces-51dc4e1b.js +13 -0
- package/dist/esm/key-69001a68.js +33 -0
- package/dist/esm/label-5559055d.js +83 -0
- package/dist/esm/loader.js +7 -3
- package/dist/esm/locale-6c1b85c7.js +118 -0
- package/dist/esm/math-456207f5.js +18 -0
- package/dist/esm/number-e7393766.js +40 -0
- package/dist/esm/observers-8f0bc419.js +20 -0
- package/dist/esm/popper-dc4b45cf.js +1785 -0
- package/dist/esm/resources-16a2a25a.js +325 -0
- package/dist/esm/resources-584acd9b.js +17 -0
- package/dist/esm/resources-7c6029b6.js +16 -0
- package/dist/esm/resources-bece7a88.js +216 -0
- package/dist/esm/sortable.esm-04824d33.js +3017 -0
- package/dist/esm/utils-6beb0662.js +113 -0
- package/dist/esm-es5/CalciteExpandToggle-677f2f8b.js +5 -0
- package/dist/esm-es5/CalciteHeading-1d6cd311.js +5 -0
- package/dist/esm-es5/array-91a648e2.js +5 -0
- package/dist/esm-es5/calcite-accordion_2.entry.js +5 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +5 -1
- package/dist/esm-es5/calcite-action-group.entry.js +5 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +5 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +5 -1
- package/dist/esm-es5/calcite-action.entry.js +5 -1
- package/dist/esm-es5/calcite-alert.entry.js +5 -1
- package/dist/esm-es5/calcite-avatar.entry.js +5 -1
- package/dist/esm-es5/calcite-block_2.entry.js +5 -1
- package/dist/esm-es5/calcite-button.entry.js +5 -1
- package/dist/esm-es5/calcite-card.entry.js +5 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +5 -1
- package/dist/esm-es5/calcite-chip.entry.js +5 -1
- package/dist/esm-es5/calcite-color-picker_3.entry.js +5 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +5 -1
- package/dist/esm-es5/calcite-date-picker_4.entry.js +5 -1
- package/dist/esm-es5/calcite-dropdown_3.entry.js +5 -1
- package/dist/esm-es5/calcite-fab.entry.js +5 -1
- package/dist/esm-es5/calcite-filter.entry.js +5 -1
- package/dist/esm-es5/calcite-flow.entry.js +5 -1
- package/dist/esm-es5/calcite-graph_2.entry.js +5 -1
- package/dist/esm-es5/calcite-handle.entry.js +5 -1
- package/dist/esm-es5/calcite-icon.entry.js +5 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +5 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +5 -1
- package/dist/esm-es5/calcite-input-message.entry.js +5 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +5 -1
- package/dist/esm-es5/calcite-input.entry.js +5 -1
- package/dist/esm-es5/calcite-label.entry.js +5 -1
- package/dist/esm-es5/calcite-link.entry.js +5 -1
- package/dist/esm-es5/calcite-list_3.entry.js +5 -1
- package/dist/esm-es5/calcite-loader.entry.js +5 -1
- package/dist/esm-es5/calcite-modal.entry.js +5 -1
- package/dist/esm-es5/calcite-notice.entry.js +5 -1
- package/dist/esm-es5/calcite-option_3.entry.js +5 -1
- package/dist/esm-es5/calcite-pagination.entry.js +5 -1
- package/dist/esm-es5/calcite-panel.entry.js +5 -1
- package/dist/esm-es5/calcite-pick-list_3.entry.js +5 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +5 -1
- package/dist/esm-es5/calcite-progress.entry.js +5 -1
- package/dist/esm-es5/calcite-radio-button-group.entry.js +5 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +5 -1
- package/dist/esm-es5/calcite-radio_2.entry.js +5 -1
- package/dist/esm-es5/calcite-rating.entry.js +5 -1
- package/dist/esm-es5/calcite-scrim.entry.js +5 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +5 -1
- package/dist/esm-es5/calcite-sortable-list.entry.js +5 -1
- package/dist/esm-es5/calcite-split-button.entry.js +5 -1
- package/dist/esm-es5/calcite-stepper_2.entry.js +5 -1
- package/dist/esm-es5/calcite-switch.entry.js +5 -1
- package/dist/esm-es5/calcite-tab_4.entry.js +5 -1
- package/dist/esm-es5/calcite-tile-select_2.entry.js +5 -1
- package/dist/esm-es5/calcite-tile.entry.js +5 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +5 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +5 -1
- package/dist/esm-es5/calcite-tree_2.entry.js +5 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +5 -1
- package/dist/esm-es5/calcite.js +5 -1
- package/dist/esm-es5/debounce-79648d42.js +5 -0
- package/dist/esm-es5/dom-f24e866c.js +5 -0
- package/dist/esm-es5/forIn-48d8fb84.js +5 -0
- package/dist/esm-es5/form-160b0fb5.js +5 -0
- package/dist/esm-es5/guid-196bd5ea.js +5 -0
- package/dist/esm-es5/index-9de00868.js +5 -0
- package/dist/esm-es5/index.js +4 -0
- package/dist/esm-es5/interfaces-51dc4e1b.js +5 -0
- package/dist/esm-es5/key-69001a68.js +5 -0
- package/dist/esm-es5/label-5559055d.js +5 -0
- package/dist/esm-es5/loader.js +5 -1
- package/dist/esm-es5/locale-6c1b85c7.js +5 -0
- package/dist/esm-es5/math-456207f5.js +5 -0
- package/dist/esm-es5/number-e7393766.js +5 -0
- package/dist/esm-es5/observers-8f0bc419.js +5 -0
- package/dist/esm-es5/popper-dc4b45cf.js +5 -0
- package/dist/esm-es5/resources-16a2a25a.js +5 -0
- package/dist/esm-es5/resources-584acd9b.js +5 -0
- package/dist/esm-es5/resources-7c6029b6.js +5 -0
- package/dist/esm-es5/resources-bece7a88.js +5 -0
- package/dist/esm-es5/sortable.esm-04824d33.js +11 -0
- package/dist/esm-es5/utils-6beb0662.js +5 -0
- package/dist/extras/docs-json.json +858 -491
- package/dist/loader/cdn.js +4 -1
- package/dist/loader/index.cjs.js +4 -1
- package/dist/loader/index.es2017.js +4 -1
- package/dist/loader/index.js +4 -1
- package/dist/types/components/calcite-action/calcite-action.d.ts +2 -2
- package/dist/types/components/calcite-block/resources.d.ts +2 -0
- package/dist/types/components/calcite-button/calcite-button.d.ts +10 -3
- package/dist/types/components/calcite-checkbox/calcite-checkbox.d.ts +21 -22
- package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +1 -2
- package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +20 -2
- package/dist/types/components/calcite-date-picker/calcite-date-picker.d.ts +20 -8
- package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +6 -4
- package/dist/types/components/calcite-filter/calcite-filter.d.ts +24 -1
- package/dist/types/components/calcite-graph/calcite-graph.d.ts +4 -0
- package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +5 -6
- package/dist/types/components/calcite-input/calcite-input.d.ts +23 -12
- package/dist/types/components/calcite-input/resources.d.ts +2 -0
- package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +38 -9
- package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +14 -5
- package/dist/types/components/calcite-link/calcite-link.d.ts +2 -1
- package/dist/types/components/calcite-list/calcite-list.d.ts +3 -0
- package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +3 -0
- package/dist/types/components/calcite-modal/calcite-modal.d.ts +2 -2
- package/dist/types/components/calcite-panel/resources.d.ts +1 -0
- package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +15 -16
- package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +14 -5
- package/dist/types/components/calcite-rating/calcite-rating.d.ts +13 -2
- package/dist/types/components/calcite-select/calcite-select.d.ts +20 -2
- package/dist/types/components/calcite-shell-panel/resources.d.ts +1 -0
- package/dist/types/components/calcite-slider/calcite-slider.d.ts +18 -4
- package/dist/types/components/calcite-switch/calcite-switch.d.ts +11 -10
- package/dist/types/components/calcite-tile-select/calcite-tile-select.d.ts +3 -3
- package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +2 -0
- package/dist/types/components.d.ts +223 -30
- package/dist/types/utils/form.d.ts +112 -1
- package/dist/types/utils/label.d.ts +5 -0
- package/dist/types/utils/math.d.ts +1 -0
- package/dist/types/utils/number.d.ts +0 -1
- package/dist/types/utils/popper.d.ts +1 -1
- package/hydrate/index.js +1188 -719
- package/package.json +43 -46
- package/readme.md +5 -5
- package/dist/calcite/p-00f2f64d.system.entry.js +0 -1
- package/dist/calcite/p-010e5fb9.entry.js +0 -1
- package/dist/calcite/p-03b25bb5.entry.js +0 -1
- package/dist/calcite/p-058f3354.system.entry.js +0 -1
- package/dist/calcite/p-0671d67f.entry.js +0 -1
- package/dist/calcite/p-0a465f92.entry.js +0 -1
- package/dist/calcite/p-0aa3fc7e.entry.js +0 -1
- package/dist/calcite/p-0ae16e31.js +0 -1
- package/dist/calcite/p-0b539bae.system.entry.js +0 -1
- package/dist/calcite/p-0c356cca.entry.js +0 -1
- package/dist/calcite/p-1114dae7.entry.js +0 -1
- package/dist/calcite/p-14893331.system.entry.js +0 -1
- package/dist/calcite/p-170fb8e8.system.entry.js +0 -1
- package/dist/calcite/p-18a62b5e.js +0 -1
- package/dist/calcite/p-19a2021f.entry.js +0 -1
- package/dist/calcite/p-19ac376f.js +0 -1
- package/dist/calcite/p-19d3b749.system.entry.js +0 -1
- package/dist/calcite/p-1a53829b.system.entry.js +0 -1
- package/dist/calcite/p-1c3c9e42.entry.js +0 -1
- package/dist/calcite/p-1df0fd29.system.entry.js +0 -1
- package/dist/calcite/p-203e04e5.entry.js +0 -1
- package/dist/calcite/p-23b87c6a.system.entry.js +0 -1
- package/dist/calcite/p-23edddc9.entry.js +0 -1
- package/dist/calcite/p-2a9b4a25.system.js +0 -1
- package/dist/calcite/p-2c235db8.system.js +0 -1
- package/dist/calcite/p-2e9e2b7c.entry.js +0 -1
- package/dist/calcite/p-30f1442b.js +0 -1
- package/dist/calcite/p-32a0f498.entry.js +0 -1
- package/dist/calcite/p-340e1f88.entry.js +0 -1
- package/dist/calcite/p-3426e87b.system.js +0 -1
- package/dist/calcite/p-354fbadd.js +0 -1
- package/dist/calcite/p-38b3ff5f.system.entry.js +0 -1
- package/dist/calcite/p-39b743d9.system.entry.js +0 -1
- package/dist/calcite/p-3b55b390.entry.js +0 -1
- package/dist/calcite/p-3cdef0cd.entry.js +0 -1
- package/dist/calcite/p-43a9faca.js +0 -1
- package/dist/calcite/p-44810e63.entry.js +0 -1
- package/dist/calcite/p-482ec054.system.js +0 -1
- package/dist/calcite/p-4936ee1a.entry.js +0 -1
- package/dist/calcite/p-4a69f94f.entry.js +0 -1
- package/dist/calcite/p-4bb3e49c.entry.js +0 -1
- package/dist/calcite/p-4dc4c758.entry.js +0 -1
- package/dist/calcite/p-4e3dcb60.entry.js +0 -1
- package/dist/calcite/p-4f24139e.system.entry.js +0 -1
- package/dist/calcite/p-4fce2a7a.system.js +0 -1
- package/dist/calcite/p-4fda49e6.js +0 -1
- package/dist/calcite/p-50ea2036.system.js +0 -1
- package/dist/calcite/p-53caa311.system.js +0 -1
- package/dist/calcite/p-55379ee6.system.entry.js +0 -1
- package/dist/calcite/p-559ffa87.js +0 -1
- package/dist/calcite/p-55f7adaa.system.entry.js +0 -1
- package/dist/calcite/p-58421494.js +0 -1
- package/dist/calcite/p-59f7b582.system.entry.js +0 -1
- package/dist/calcite/p-5a1b0338.system.js +0 -1
- package/dist/calcite/p-5eab55c1.entry.js +0 -1
- package/dist/calcite/p-5f50d376.system.entry.js +0 -1
- package/dist/calcite/p-62977e6b.system.entry.js +0 -1
- package/dist/calcite/p-6350bcd3.system.js +0 -1
- package/dist/calcite/p-65f4f1e9.entry.js +0 -1
- package/dist/calcite/p-674bc090.system.js +0 -1
- package/dist/calcite/p-675364da.system.entry.js +0 -1
- package/dist/calcite/p-69837b80.entry.js +0 -1
- package/dist/calcite/p-69e382de.entry.js +0 -1
- package/dist/calcite/p-6a7d2f7c.entry.js +0 -1
- package/dist/calcite/p-6cb2f24f.entry.js +0 -1
- package/dist/calcite/p-6d98d9dc.system.entry.js +0 -1
- package/dist/calcite/p-6edac967.system.entry.js +0 -1
- package/dist/calcite/p-7521b7ab.system.entry.js +0 -1
- package/dist/calcite/p-771da7ed.system.entry.js +0 -1
- package/dist/calcite/p-79e0b61b.system.entry.js +0 -1
- package/dist/calcite/p-7a241325.system.entry.js +0 -1
- package/dist/calcite/p-7b71e1d4.js +0 -1
- package/dist/calcite/p-7b856f76.system.entry.js +0 -1
- package/dist/calcite/p-7c5c2b30.js +0 -1
- package/dist/calcite/p-7e4036a3.system.entry.js +0 -1
- package/dist/calcite/p-7e4be59e.system.entry.js +0 -1
- package/dist/calcite/p-81371076.entry.js +0 -1
- package/dist/calcite/p-8242ef10.entry.js +0 -1
- package/dist/calcite/p-82a11724.system.js +0 -7
- package/dist/calcite/p-835b14f7.system.entry.js +0 -1
- package/dist/calcite/p-875b172e.entry.js +0 -1
- package/dist/calcite/p-8958d1f6.system.js +0 -1
- package/dist/calcite/p-8975e7c8.entry.js +0 -1
- package/dist/calcite/p-8a16620b.system.js +0 -1
- package/dist/calcite/p-8a30b93d.system.js +0 -1
- package/dist/calcite/p-8cfab352.entry.js +0 -1
- package/dist/calcite/p-8d5f5ebf.js +0 -1
- package/dist/calcite/p-8d9bf455.entry.js +0 -1
- package/dist/calcite/p-8dc31333.js +0 -1
- package/dist/calcite/p-8e46c987.entry.js +0 -1
- package/dist/calcite/p-8ef1afae.system.entry.js +0 -1
- package/dist/calcite/p-8fb7b17f.system.entry.js +0 -1
- package/dist/calcite/p-90b88d97.system.entry.js +0 -1
- package/dist/calcite/p-90ee6b48.entry.js +0 -1
- package/dist/calcite/p-93a7d961.system.entry.js +0 -1
- package/dist/calcite/p-950bdd5b.system.entry.js +0 -1
- package/dist/calcite/p-95dfb659.system.js +0 -1
- package/dist/calcite/p-97b06cc3.entry.js +0 -1
- package/dist/calcite/p-987310d2.system.js +0 -1
- package/dist/calcite/p-9c371694.system.entry.js +0 -1
- package/dist/calcite/p-a096738b.system.entry.js +0 -1
- package/dist/calcite/p-a09cd797.entry.js +0 -1
- package/dist/calcite/p-a0d4c79d.entry.js +0 -1
- package/dist/calcite/p-a4e6e35b.js +0 -1
- package/dist/calcite/p-a54a11ee.system.entry.js +0 -1
- package/dist/calcite/p-a57a7f49.js +0 -7
- package/dist/calcite/p-a6b26bd1.system.js +0 -1
- package/dist/calcite/p-a75f07ae.entry.js +0 -1
- package/dist/calcite/p-a83557c6.entry.js +0 -1
- package/dist/calcite/p-a8650c17.system.js +0 -1
- package/dist/calcite/p-ac44517b.system.entry.js +0 -1
- package/dist/calcite/p-ad290529.system.entry.js +0 -1
- package/dist/calcite/p-b10d0018.system.entry.js +0 -1
- package/dist/calcite/p-b2425e21.js +0 -1
- package/dist/calcite/p-b286e0a5.system.entry.js +0 -1
- package/dist/calcite/p-b2a6687b.system.js +0 -1
- package/dist/calcite/p-b2a79aa2.system.entry.js +0 -1
- package/dist/calcite/p-b4cc79dc.system.js +0 -1
- package/dist/calcite/p-bd291e00.entry.js +0 -1
- package/dist/calcite/p-be531ce4.system.entry.js +0 -1
- package/dist/calcite/p-be6b31d0.entry.js +0 -1
- package/dist/calcite/p-bfca7d51.entry.js +0 -1
- package/dist/calcite/p-c0ee1569.system.entry.js +0 -1
- package/dist/calcite/p-c15a632e.system.entry.js +0 -1
- package/dist/calcite/p-c23bfaf9.system.entry.js +0 -1
- package/dist/calcite/p-c2cd9c1d.system.entry.js +0 -1
- package/dist/calcite/p-c4953aa6.system.entry.js +0 -1
- package/dist/calcite/p-c5257119.entry.js +0 -1
- package/dist/calcite/p-c59d3bb3.system.entry.js +0 -1
- package/dist/calcite/p-c95a18d4.entry.js +0 -1
- package/dist/calcite/p-caf80cd7.js +0 -1
- package/dist/calcite/p-cd8d0dda.entry.js +0 -1
- package/dist/calcite/p-cebd4de5.js +0 -1
- package/dist/calcite/p-cfdbd2e1.entry.js +0 -1
- package/dist/calcite/p-d2907af5.entry.js +0 -1
- package/dist/calcite/p-d2b9513d.entry.js +0 -1
- package/dist/calcite/p-d53c2d2e.system.js +0 -1
- package/dist/calcite/p-d5e63242.entry.js +0 -1
- package/dist/calcite/p-d74caa31.system.entry.js +0 -1
- package/dist/calcite/p-d78a24bb.entry.js +0 -1
- package/dist/calcite/p-d7e0ef91.system.entry.js +0 -1
- package/dist/calcite/p-d858b7ab.js +0 -1
- package/dist/calcite/p-d8a015cb.system.entry.js +0 -1
- package/dist/calcite/p-dc825c55.js +0 -1
- package/dist/calcite/p-dcfa0bba.js +0 -1
- package/dist/calcite/p-dd3f7c73.system.entry.js +0 -1
- package/dist/calcite/p-dda58d1e.system.js +0 -1
- package/dist/calcite/p-ddf50685.system.entry.js +0 -1
- package/dist/calcite/p-de00c01f.entry.js +0 -1
- package/dist/calcite/p-de9b7982.system.entry.js +0 -1
- package/dist/calcite/p-defdc464.system.js +0 -1
- package/dist/calcite/p-e87acd87.system.js +0 -1
- package/dist/calcite/p-ea51eaaa.js +0 -1
- package/dist/calcite/p-ebb0ef70.entry.js +0 -1
- package/dist/calcite/p-ec397dae.entry.js +0 -1
- package/dist/calcite/p-ef0ea98b.system.entry.js +0 -1
- package/dist/calcite/p-ef38dee8.js +0 -1
- package/dist/calcite/p-efe6556c.system.entry.js +0 -1
- package/dist/calcite/p-f02d04ab.system.js +0 -1
- package/dist/calcite/p-f1eddb0f.system.entry.js +0 -1
- package/dist/calcite/p-f95c5864.entry.js +0 -1
- package/dist/calcite/p-fc725435.entry.js +0 -1
- package/dist/cjs/CalciteExpandToggle-b5735fd2.js +0 -90
- package/dist/cjs/CalciteHeading-177f59f2.js +0 -15
- package/dist/cjs/array-4fc5abfa.js +0 -7
- package/dist/cjs/debounce-11980960.js +0 -491
- package/dist/cjs/dom-c9cafa59.js +0 -166
- package/dist/cjs/forIn-46535ded.js +0 -618
- package/dist/cjs/form-432ae178.js +0 -18
- package/dist/cjs/guid-4637ad8f.js +0 -16
- package/dist/cjs/index-105d9087.js +0 -2062
- package/dist/cjs/interfaces-bc0f5779.js +0 -9
- package/dist/cjs/key-f470de4c.js +0 -33
- package/dist/cjs/label-80f9023b.js +0 -54
- package/dist/cjs/locale-eb4486ae.js +0 -119
- package/dist/cjs/math-750406eb.js +0 -5
- package/dist/cjs/number-77308374.js +0 -45
- package/dist/cjs/observers-88b3a2d4.js +0 -18
- package/dist/cjs/popper-a103e375.js +0 -1786
- package/dist/cjs/resources-41daa7d4.js +0 -228
- package/dist/cjs/resources-76637167.js +0 -17
- package/dist/cjs/resources-ae299e51.js +0 -16
- package/dist/cjs/resources-bbca3cea.js +0 -342
- package/dist/cjs/sortable.esm-bcce1d94.js +0 -3015
- package/dist/cjs/utils-d549a0a9.js +0 -119
- package/dist/collection/components/calcite-label/interfaces.js +0 -1
- package/dist/custom-elements/bundles/accordion.d.ts +0 -1
- package/dist/custom-elements/bundles/accordion.js +0 -5
- package/dist/custom-elements/bundles/action-bar.d.ts +0 -1
- package/dist/custom-elements/bundles/action-bar.js +0 -5
- package/dist/custom-elements/bundles/action-menu.d.ts +0 -1
- package/dist/custom-elements/bundles/action-menu.js +0 -5
- package/dist/custom-elements/bundles/action-pad.d.ts +0 -1
- package/dist/custom-elements/bundles/action-pad.js +0 -5
- package/dist/custom-elements/bundles/action.d.ts +0 -1
- package/dist/custom-elements/bundles/action.js +0 -5
- package/dist/custom-elements/bundles/alert.d.ts +0 -1
- package/dist/custom-elements/bundles/alert.js +0 -5
- package/dist/custom-elements/bundles/avatar.d.ts +0 -1
- package/dist/custom-elements/bundles/avatar.js +0 -5
- package/dist/custom-elements/bundles/block.d.ts +0 -1
- package/dist/custom-elements/bundles/block.js +0 -5
- package/dist/custom-elements/bundles/button.d.ts +0 -1
- package/dist/custom-elements/bundles/button.js +0 -5
- package/dist/custom-elements/bundles/card.d.ts +0 -1
- package/dist/custom-elements/bundles/card.js +0 -5
- package/dist/custom-elements/bundles/checkbox.d.ts +0 -1
- package/dist/custom-elements/bundles/checkbox.js +0 -5
- package/dist/custom-elements/bundles/chip.d.ts +0 -1
- package/dist/custom-elements/bundles/chip.js +0 -5
- package/dist/custom-elements/bundles/color-picker.d.ts +0 -1
- package/dist/custom-elements/bundles/color-picker.js +0 -5
- package/dist/custom-elements/bundles/combobox.d.ts +0 -1
- package/dist/custom-elements/bundles/combobox.js +0 -5
- package/dist/custom-elements/bundles/date-picker.d.ts +0 -1
- package/dist/custom-elements/bundles/date-picker.js +0 -5
- package/dist/custom-elements/bundles/dropdown.d.ts +0 -1
- package/dist/custom-elements/bundles/dropdown.js +0 -5
- package/dist/custom-elements/bundles/fab.d.ts +0 -1
- package/dist/custom-elements/bundles/fab.js +0 -5
- package/dist/custom-elements/bundles/flow.d.ts +0 -1
- package/dist/custom-elements/bundles/flow.js +0 -5
- package/dist/custom-elements/bundles/icon.d.ts +0 -1
- package/dist/custom-elements/bundles/icon.js +0 -5
- package/dist/custom-elements/bundles/inline-editable.d.ts +0 -1
- package/dist/custom-elements/bundles/inline-editable.js +0 -5
- package/dist/custom-elements/bundles/input-date-picker.d.ts +0 -1
- package/dist/custom-elements/bundles/input-date-picker.js +0 -5
- package/dist/custom-elements/bundles/input-message.d.ts +0 -1
- package/dist/custom-elements/bundles/input-message.js +0 -5
- package/dist/custom-elements/bundles/input-time-picker.d.ts +0 -1
- package/dist/custom-elements/bundles/input-time-picker.js +0 -5
- package/dist/custom-elements/bundles/input.d.ts +0 -1
- package/dist/custom-elements/bundles/input.js +0 -5
- package/dist/custom-elements/bundles/label.d.ts +0 -1
- package/dist/custom-elements/bundles/label.js +0 -5
- package/dist/custom-elements/bundles/link.d.ts +0 -1
- package/dist/custom-elements/bundles/link.js +0 -5
- package/dist/custom-elements/bundles/list.d.ts +0 -1
- package/dist/custom-elements/bundles/list.js +0 -5
- package/dist/custom-elements/bundles/loader.d.ts +0 -1
- package/dist/custom-elements/bundles/loader.js +0 -5
- package/dist/custom-elements/bundles/modal.d.ts +0 -1
- package/dist/custom-elements/bundles/modal.js +0 -5
- package/dist/custom-elements/bundles/notice.d.ts +0 -1
- package/dist/custom-elements/bundles/notice.js +0 -5
- package/dist/custom-elements/bundles/pagination.d.ts +0 -1
- package/dist/custom-elements/bundles/pagination.js +0 -5
- package/dist/custom-elements/bundles/panel.d.ts +0 -1
- package/dist/custom-elements/bundles/panel.js +0 -5
- package/dist/custom-elements/bundles/pick-list.d.ts +0 -1
- package/dist/custom-elements/bundles/pick-list.js +0 -5
- package/dist/custom-elements/bundles/popover.d.ts +0 -1
- package/dist/custom-elements/bundles/popover.js +0 -5
- package/dist/custom-elements/bundles/progress.d.ts +0 -1
- package/dist/custom-elements/bundles/progress.js +0 -5
- package/dist/custom-elements/bundles/radio-button-group.d.ts +0 -1
- package/dist/custom-elements/bundles/radio-button-group.js +0 -5
- package/dist/custom-elements/bundles/radio-button.d.ts +0 -1
- package/dist/custom-elements/bundles/radio-button.js +0 -5
- package/dist/custom-elements/bundles/radio-group.d.ts +0 -1
- package/dist/custom-elements/bundles/radio-group.js +0 -5
- package/dist/custom-elements/bundles/rating.d.ts +0 -1
- package/dist/custom-elements/bundles/rating.js +0 -5
- package/dist/custom-elements/bundles/scrim.d.ts +0 -1
- package/dist/custom-elements/bundles/scrim.js +0 -5
- package/dist/custom-elements/bundles/select.d.ts +0 -1
- package/dist/custom-elements/bundles/select.js +0 -5
- package/dist/custom-elements/bundles/shell.d.ts +0 -1
- package/dist/custom-elements/bundles/shell.js +0 -5
- package/dist/custom-elements/bundles/slider.d.ts +0 -1
- package/dist/custom-elements/bundles/slider.js +0 -5
- package/dist/custom-elements/bundles/sortable-list.d.ts +0 -1
- package/dist/custom-elements/bundles/sortable-list.js +0 -5
- package/dist/custom-elements/bundles/split-button.d.ts +0 -1
- package/dist/custom-elements/bundles/split-button.js +0 -5
- package/dist/custom-elements/bundles/stepper.d.ts +0 -1
- package/dist/custom-elements/bundles/stepper.js +0 -5
- package/dist/custom-elements/bundles/switch.d.ts +0 -1
- package/dist/custom-elements/bundles/switch.js +0 -5
- package/dist/custom-elements/bundles/tab.d.ts +0 -1
- package/dist/custom-elements/bundles/tab.js +0 -5
- package/dist/custom-elements/bundles/tile-select-group.d.ts +0 -1
- package/dist/custom-elements/bundles/tile-select-group.js +0 -5
- package/dist/custom-elements/bundles/tile.d.ts +0 -1
- package/dist/custom-elements/bundles/tile.js +0 -5
- package/dist/custom-elements/bundles/tip.d.ts +0 -1
- package/dist/custom-elements/bundles/tip.js +0 -5
- package/dist/custom-elements/bundles/tooltip.d.ts +0 -1
- package/dist/custom-elements/bundles/tooltip.js +0 -5
- package/dist/custom-elements/bundles/tree.d.ts +0 -1
- package/dist/custom-elements/bundles/tree.js +0 -5
- package/dist/custom-elements/bundles/value-list.d.ts +0 -1
- package/dist/custom-elements/bundles/value-list.js +0 -5
- package/dist/custom-elements/index.mjs +0 -24489
- package/dist/custom-elements/utils.d.ts +0 -2
- package/dist/custom-elements/utils.js +0 -11
- package/dist/esm/CalciteExpandToggle-a149fed4.js +0 -83
- package/dist/esm/CalciteHeading-29855e9f.js +0 -12
- package/dist/esm/array-af19adb2.js +0 -5
- package/dist/esm/debounce-047e09f4.js +0 -482
- package/dist/esm/dom-b369a031.js +0 -149
- package/dist/esm/forIn-d55260fc.js +0 -615
- package/dist/esm/form-8aa0d95b.js +0 -16
- package/dist/esm/guid-09142681.js +0 -14
- package/dist/esm/index-f8f0bea7.js +0 -2029
- package/dist/esm/interfaces-355fccb6.js +0 -9
- package/dist/esm/key-ec82f942.js +0 -29
- package/dist/esm/label-7b249c54.js +0 -50
- package/dist/esm/locale-8436bbe1.js +0 -114
- package/dist/esm/math-c8e7aa13.js +0 -3
- package/dist/esm/number-358ca1d4.js +0 -39
- package/dist/esm/observers-c93d4fe5.js +0 -16
- package/dist/esm/popper-2757192a.js +0 -1781
- package/dist/esm/resources-28d71943.js +0 -212
- package/dist/esm/resources-82817f70.js +0 -13
- package/dist/esm/resources-c651d73a.js +0 -321
- package/dist/esm/resources-c72ebfea.js +0 -12
- package/dist/esm/sortable.esm-2f5354d3.js +0 -3013
- package/dist/esm/utils-60acc1d6.js +0 -109
- package/dist/esm-es5/CalciteExpandToggle-a149fed4.js +0 -1
- package/dist/esm-es5/CalciteHeading-29855e9f.js +0 -1
- package/dist/esm-es5/array-af19adb2.js +0 -1
- package/dist/esm-es5/debounce-047e09f4.js +0 -1
- package/dist/esm-es5/dom-b369a031.js +0 -1
- package/dist/esm-es5/forIn-d55260fc.js +0 -1
- package/dist/esm-es5/form-8aa0d95b.js +0 -1
- package/dist/esm-es5/guid-09142681.js +0 -1
- package/dist/esm-es5/index-f8f0bea7.js +0 -1
- package/dist/esm-es5/interfaces-355fccb6.js +0 -1
- package/dist/esm-es5/key-ec82f942.js +0 -1
- package/dist/esm-es5/label-7b249c54.js +0 -1
- package/dist/esm-es5/locale-8436bbe1.js +0 -1
- package/dist/esm-es5/math-c8e7aa13.js +0 -1
- package/dist/esm-es5/number-358ca1d4.js +0 -1
- package/dist/esm-es5/observers-c93d4fe5.js +0 -1
- package/dist/esm-es5/popper-2757192a.js +0 -1
- package/dist/esm-es5/resources-28d71943.js +0 -1
- package/dist/esm-es5/resources-82817f70.js +0 -1
- package/dist/esm-es5/resources-c651d73a.js +0 -1
- package/dist/esm-es5/resources-c72ebfea.js +0 -1
- package/dist/esm-es5/sortable.esm-2f5354d3.js +0 -7
- package/dist/esm-es5/utils-60acc1d6.js +0 -1
|
@@ -0,0 +1,1785 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
+
*/
|
|
5
|
+
import { a as getElementDir } from './dom-f24e866c.js';
|
|
6
|
+
|
|
7
|
+
var top = 'top';
|
|
8
|
+
var bottom = 'bottom';
|
|
9
|
+
var right = 'right';
|
|
10
|
+
var left = 'left';
|
|
11
|
+
var auto = 'auto';
|
|
12
|
+
var basePlacements = [top, bottom, right, left];
|
|
13
|
+
var start = 'start';
|
|
14
|
+
var end = 'end';
|
|
15
|
+
var clippingParents = 'clippingParents';
|
|
16
|
+
var viewport = 'viewport';
|
|
17
|
+
var popper = 'popper';
|
|
18
|
+
var reference = 'reference';
|
|
19
|
+
var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
|
|
20
|
+
return acc.concat([placement + "-" + start, placement + "-" + end]);
|
|
21
|
+
}, []);
|
|
22
|
+
var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
|
|
23
|
+
return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
|
|
24
|
+
}, []); // modifiers that need to read the DOM
|
|
25
|
+
|
|
26
|
+
var beforeRead = 'beforeRead';
|
|
27
|
+
var read = 'read';
|
|
28
|
+
var afterRead = 'afterRead'; // pure-logic modifiers
|
|
29
|
+
|
|
30
|
+
var beforeMain = 'beforeMain';
|
|
31
|
+
var main = 'main';
|
|
32
|
+
var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
|
|
33
|
+
|
|
34
|
+
var beforeWrite = 'beforeWrite';
|
|
35
|
+
var write = 'write';
|
|
36
|
+
var afterWrite = 'afterWrite';
|
|
37
|
+
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
|
|
38
|
+
|
|
39
|
+
function getNodeName(element) {
|
|
40
|
+
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function getWindow(node) {
|
|
44
|
+
if (node == null) {
|
|
45
|
+
return window;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (node.toString() !== '[object Window]') {
|
|
49
|
+
var ownerDocument = node.ownerDocument;
|
|
50
|
+
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return node;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function isElement(node) {
|
|
57
|
+
var OwnElement = getWindow(node).Element;
|
|
58
|
+
return node instanceof OwnElement || node instanceof Element;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function isHTMLElement(node) {
|
|
62
|
+
var OwnElement = getWindow(node).HTMLElement;
|
|
63
|
+
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function isShadowRoot(node) {
|
|
67
|
+
// IE 11 has no ShadowRoot
|
|
68
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
var OwnElement = getWindow(node).ShadowRoot;
|
|
73
|
+
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// and applies them to the HTMLElements such as popper and arrow
|
|
77
|
+
|
|
78
|
+
function applyStyles(_ref) {
|
|
79
|
+
var state = _ref.state;
|
|
80
|
+
Object.keys(state.elements).forEach(function (name) {
|
|
81
|
+
var style = state.styles[name] || {};
|
|
82
|
+
var attributes = state.attributes[name] || {};
|
|
83
|
+
var element = state.elements[name]; // arrow is optional + virtual elements
|
|
84
|
+
|
|
85
|
+
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
86
|
+
return;
|
|
87
|
+
} // Flow doesn't support to extend this property, but it's the most
|
|
88
|
+
// effective way to apply styles to an HTMLElement
|
|
89
|
+
// $FlowFixMe[cannot-write]
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
Object.assign(element.style, style);
|
|
93
|
+
Object.keys(attributes).forEach(function (name) {
|
|
94
|
+
var value = attributes[name];
|
|
95
|
+
|
|
96
|
+
if (value === false) {
|
|
97
|
+
element.removeAttribute(name);
|
|
98
|
+
} else {
|
|
99
|
+
element.setAttribute(name, value === true ? '' : value);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function effect$2(_ref2) {
|
|
106
|
+
var state = _ref2.state;
|
|
107
|
+
var initialStyles = {
|
|
108
|
+
popper: {
|
|
109
|
+
position: state.options.strategy,
|
|
110
|
+
left: '0',
|
|
111
|
+
top: '0',
|
|
112
|
+
margin: '0'
|
|
113
|
+
},
|
|
114
|
+
arrow: {
|
|
115
|
+
position: 'absolute'
|
|
116
|
+
},
|
|
117
|
+
reference: {}
|
|
118
|
+
};
|
|
119
|
+
Object.assign(state.elements.popper.style, initialStyles.popper);
|
|
120
|
+
state.styles = initialStyles;
|
|
121
|
+
|
|
122
|
+
if (state.elements.arrow) {
|
|
123
|
+
Object.assign(state.elements.arrow.style, initialStyles.arrow);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return function () {
|
|
127
|
+
Object.keys(state.elements).forEach(function (name) {
|
|
128
|
+
var element = state.elements[name];
|
|
129
|
+
var attributes = state.attributes[name] || {};
|
|
130
|
+
var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
|
|
131
|
+
|
|
132
|
+
var style = styleProperties.reduce(function (style, property) {
|
|
133
|
+
style[property] = '';
|
|
134
|
+
return style;
|
|
135
|
+
}, {}); // arrow is optional + virtual elements
|
|
136
|
+
|
|
137
|
+
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
Object.assign(element.style, style);
|
|
142
|
+
Object.keys(attributes).forEach(function (attribute) {
|
|
143
|
+
element.removeAttribute(attribute);
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
const applyStyles$1 = {
|
|
151
|
+
name: 'applyStyles',
|
|
152
|
+
enabled: true,
|
|
153
|
+
phase: 'write',
|
|
154
|
+
fn: applyStyles,
|
|
155
|
+
effect: effect$2,
|
|
156
|
+
requires: ['computeStyles']
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
function getBasePlacement(placement) {
|
|
160
|
+
return placement.split('-')[0];
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// import { isHTMLElement } from './instanceOf';
|
|
164
|
+
function getBoundingClientRect(element, // eslint-disable-next-line unused-imports/no-unused-vars
|
|
165
|
+
includeScale) {
|
|
166
|
+
|
|
167
|
+
var rect = element.getBoundingClientRect();
|
|
168
|
+
var scaleX = 1;
|
|
169
|
+
var scaleY = 1; // FIXME:
|
|
170
|
+
// `offsetWidth` returns an integer while `getBoundingClientRect`
|
|
171
|
+
// returns a float. This results in `scaleX` or `scaleY` being
|
|
172
|
+
// non-1 when it should be for elements that aren't a full pixel in
|
|
173
|
+
// width or height.
|
|
174
|
+
// if (isHTMLElement(element) && includeScale) {
|
|
175
|
+
// const offsetHeight = element.offsetHeight;
|
|
176
|
+
// const offsetWidth = element.offsetWidth;
|
|
177
|
+
// // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
|
|
178
|
+
// // Fallback to 1 in case both values are `0`
|
|
179
|
+
// if (offsetWidth > 0) {
|
|
180
|
+
// scaleX = rect.width / offsetWidth || 1;
|
|
181
|
+
// }
|
|
182
|
+
// if (offsetHeight > 0) {
|
|
183
|
+
// scaleY = rect.height / offsetHeight || 1;
|
|
184
|
+
// }
|
|
185
|
+
// }
|
|
186
|
+
|
|
187
|
+
return {
|
|
188
|
+
width: rect.width / scaleX,
|
|
189
|
+
height: rect.height / scaleY,
|
|
190
|
+
top: rect.top / scaleY,
|
|
191
|
+
right: rect.right / scaleX,
|
|
192
|
+
bottom: rect.bottom / scaleY,
|
|
193
|
+
left: rect.left / scaleX,
|
|
194
|
+
x: rect.left / scaleX,
|
|
195
|
+
y: rect.top / scaleY
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// means it doesn't take into account transforms.
|
|
200
|
+
|
|
201
|
+
function getLayoutRect(element) {
|
|
202
|
+
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
203
|
+
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
204
|
+
|
|
205
|
+
var width = element.offsetWidth;
|
|
206
|
+
var height = element.offsetHeight;
|
|
207
|
+
|
|
208
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
209
|
+
width = clientRect.width;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
213
|
+
height = clientRect.height;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
return {
|
|
217
|
+
x: element.offsetLeft,
|
|
218
|
+
y: element.offsetTop,
|
|
219
|
+
width: width,
|
|
220
|
+
height: height
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
function contains(parent, child) {
|
|
225
|
+
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
226
|
+
|
|
227
|
+
if (parent.contains(child)) {
|
|
228
|
+
return true;
|
|
229
|
+
} // then fallback to custom implementation with Shadow DOM support
|
|
230
|
+
else if (rootNode && isShadowRoot(rootNode)) {
|
|
231
|
+
var next = child;
|
|
232
|
+
|
|
233
|
+
do {
|
|
234
|
+
if (next && parent.isSameNode(next)) {
|
|
235
|
+
return true;
|
|
236
|
+
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
next = next.parentNode || next.host;
|
|
240
|
+
} while (next);
|
|
241
|
+
} // Give up, the result is false
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
return false;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
function getComputedStyle(element) {
|
|
248
|
+
return getWindow(element).getComputedStyle(element);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
function isTableElement(element) {
|
|
252
|
+
return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
function getDocumentElement(element) {
|
|
256
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
257
|
+
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
258
|
+
element.document) || window.document).documentElement;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function getParentNode(element) {
|
|
262
|
+
if (getNodeName(element) === 'html') {
|
|
263
|
+
return element;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
267
|
+
// $FlowFixMe[incompatible-return]
|
|
268
|
+
// $FlowFixMe[prop-missing]
|
|
269
|
+
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
270
|
+
element.parentNode || ( // DOM Element detected
|
|
271
|
+
isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
|
|
272
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
273
|
+
getDocumentElement(element) // fallback
|
|
274
|
+
|
|
275
|
+
);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
function getTrueOffsetParent(element) {
|
|
279
|
+
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
280
|
+
getComputedStyle(element).position === 'fixed') {
|
|
281
|
+
return null;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
return element.offsetParent;
|
|
285
|
+
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
286
|
+
// return the containing block
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
function getContainingBlock(element) {
|
|
290
|
+
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
291
|
+
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
292
|
+
|
|
293
|
+
if (isIE && isHTMLElement(element)) {
|
|
294
|
+
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
295
|
+
var elementCss = getComputedStyle(element);
|
|
296
|
+
|
|
297
|
+
if (elementCss.position === 'fixed') {
|
|
298
|
+
return null;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
var currentNode = getParentNode(element);
|
|
303
|
+
|
|
304
|
+
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
305
|
+
var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
306
|
+
// create a containing block.
|
|
307
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
308
|
+
|
|
309
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
|
|
310
|
+
return currentNode;
|
|
311
|
+
} else {
|
|
312
|
+
currentNode = currentNode.parentNode;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
return null;
|
|
317
|
+
} // Gets the closest ancestor positioned element. Handles some edge cases,
|
|
318
|
+
// such as table ancestors and cross browser bugs.
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
function getOffsetParent(element) {
|
|
322
|
+
var window = getWindow(element);
|
|
323
|
+
var offsetParent = getTrueOffsetParent(element);
|
|
324
|
+
|
|
325
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
|
|
326
|
+
offsetParent = getTrueOffsetParent(offsetParent);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {
|
|
330
|
+
return window;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
return offsetParent || getContainingBlock(element) || window;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
function getMainAxisFromPlacement(placement) {
|
|
337
|
+
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
var max = Math.max;
|
|
341
|
+
var min = Math.min;
|
|
342
|
+
var round = Math.round;
|
|
343
|
+
|
|
344
|
+
function within(min$1, value, max$1) {
|
|
345
|
+
return max(min$1, min(value, max$1));
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
function getFreshSideObject() {
|
|
349
|
+
return {
|
|
350
|
+
top: 0,
|
|
351
|
+
right: 0,
|
|
352
|
+
bottom: 0,
|
|
353
|
+
left: 0
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
function mergePaddingObject(paddingObject) {
|
|
358
|
+
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
function expandToHashMap(value, keys) {
|
|
362
|
+
return keys.reduce(function (hashMap, key) {
|
|
363
|
+
hashMap[key] = value;
|
|
364
|
+
return hashMap;
|
|
365
|
+
}, {});
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
369
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
370
|
+
placement: state.placement
|
|
371
|
+
})) : padding;
|
|
372
|
+
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
function arrow(_ref) {
|
|
376
|
+
var _state$modifiersData$;
|
|
377
|
+
|
|
378
|
+
var state = _ref.state,
|
|
379
|
+
name = _ref.name,
|
|
380
|
+
options = _ref.options;
|
|
381
|
+
var arrowElement = state.elements.arrow;
|
|
382
|
+
var popperOffsets = state.modifiersData.popperOffsets;
|
|
383
|
+
var basePlacement = getBasePlacement(state.placement);
|
|
384
|
+
var axis = getMainAxisFromPlacement(basePlacement);
|
|
385
|
+
var isVertical = [left, right].indexOf(basePlacement) >= 0;
|
|
386
|
+
var len = isVertical ? 'height' : 'width';
|
|
387
|
+
|
|
388
|
+
if (!arrowElement || !popperOffsets) {
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
var paddingObject = toPaddingObject(options.padding, state);
|
|
393
|
+
var arrowRect = getLayoutRect(arrowElement);
|
|
394
|
+
var minProp = axis === 'y' ? top : left;
|
|
395
|
+
var maxProp = axis === 'y' ? bottom : right;
|
|
396
|
+
var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
|
|
397
|
+
var startDiff = popperOffsets[axis] - state.rects.reference[axis];
|
|
398
|
+
var arrowOffsetParent = getOffsetParent(arrowElement);
|
|
399
|
+
var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
|
|
400
|
+
var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
|
|
401
|
+
// outside of the popper bounds
|
|
402
|
+
|
|
403
|
+
var min = paddingObject[minProp];
|
|
404
|
+
var max = clientSize - arrowRect[len] - paddingObject[maxProp];
|
|
405
|
+
var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
|
|
406
|
+
var offset = within(min, center, max); // Prevents breaking syntax highlighting...
|
|
407
|
+
|
|
408
|
+
var axisProp = axis;
|
|
409
|
+
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
function effect$1(_ref2) {
|
|
413
|
+
var state = _ref2.state,
|
|
414
|
+
options = _ref2.options;
|
|
415
|
+
var _options$element = options.element,
|
|
416
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
|
417
|
+
|
|
418
|
+
if (arrowElement == null) {
|
|
419
|
+
return;
|
|
420
|
+
} // CSS selector
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
if (typeof arrowElement === 'string') {
|
|
424
|
+
arrowElement = state.elements.popper.querySelector(arrowElement);
|
|
425
|
+
|
|
426
|
+
if (!arrowElement) {
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
432
|
+
|
|
433
|
+
return;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
state.elements.arrow = arrowElement;
|
|
437
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
const arrow$1 = {
|
|
441
|
+
name: 'arrow',
|
|
442
|
+
enabled: true,
|
|
443
|
+
phase: 'main',
|
|
444
|
+
fn: arrow,
|
|
445
|
+
effect: effect$1,
|
|
446
|
+
requires: ['popperOffsets'],
|
|
447
|
+
requiresIfExists: ['preventOverflow']
|
|
448
|
+
};
|
|
449
|
+
|
|
450
|
+
function getVariation(placement) {
|
|
451
|
+
return placement.split('-')[1];
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
var unsetSides = {
|
|
455
|
+
top: 'auto',
|
|
456
|
+
right: 'auto',
|
|
457
|
+
bottom: 'auto',
|
|
458
|
+
left: 'auto'
|
|
459
|
+
}; // Round the offsets to the nearest suitable subpixel based on the DPR.
|
|
460
|
+
// Zooming can change the DPR, but it seems to report a value that will
|
|
461
|
+
// cleanly divide the values into the appropriate subpixels.
|
|
462
|
+
|
|
463
|
+
function roundOffsetsByDPR(_ref) {
|
|
464
|
+
var x = _ref.x,
|
|
465
|
+
y = _ref.y;
|
|
466
|
+
var win = window;
|
|
467
|
+
var dpr = win.devicePixelRatio || 1;
|
|
468
|
+
return {
|
|
469
|
+
x: round(round(x * dpr) / dpr) || 0,
|
|
470
|
+
y: round(round(y * dpr) / dpr) || 0
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
function mapToStyles(_ref2) {
|
|
475
|
+
var _Object$assign2;
|
|
476
|
+
|
|
477
|
+
var popper = _ref2.popper,
|
|
478
|
+
popperRect = _ref2.popperRect,
|
|
479
|
+
placement = _ref2.placement,
|
|
480
|
+
variation = _ref2.variation,
|
|
481
|
+
offsets = _ref2.offsets,
|
|
482
|
+
position = _ref2.position,
|
|
483
|
+
gpuAcceleration = _ref2.gpuAcceleration,
|
|
484
|
+
adaptive = _ref2.adaptive,
|
|
485
|
+
roundOffsets = _ref2.roundOffsets;
|
|
486
|
+
|
|
487
|
+
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
|
|
488
|
+
_ref3$x = _ref3.x,
|
|
489
|
+
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
490
|
+
_ref3$y = _ref3.y,
|
|
491
|
+
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
492
|
+
|
|
493
|
+
var hasX = offsets.hasOwnProperty('x');
|
|
494
|
+
var hasY = offsets.hasOwnProperty('y');
|
|
495
|
+
var sideX = left;
|
|
496
|
+
var sideY = top;
|
|
497
|
+
var win = window;
|
|
498
|
+
|
|
499
|
+
if (adaptive) {
|
|
500
|
+
var offsetParent = getOffsetParent(popper);
|
|
501
|
+
var heightProp = 'clientHeight';
|
|
502
|
+
var widthProp = 'clientWidth';
|
|
503
|
+
|
|
504
|
+
if (offsetParent === getWindow(popper)) {
|
|
505
|
+
offsetParent = getDocumentElement(popper);
|
|
506
|
+
|
|
507
|
+
if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {
|
|
508
|
+
heightProp = 'scrollHeight';
|
|
509
|
+
widthProp = 'scrollWidth';
|
|
510
|
+
}
|
|
511
|
+
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
offsetParent = offsetParent;
|
|
515
|
+
|
|
516
|
+
if (placement === top || (placement === left || placement === right) && variation === end) {
|
|
517
|
+
sideY = bottom; // $FlowFixMe[prop-missing]
|
|
518
|
+
|
|
519
|
+
y -= offsetParent[heightProp] - popperRect.height;
|
|
520
|
+
y *= gpuAcceleration ? 1 : -1;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
if (placement === left || (placement === top || placement === bottom) && variation === end) {
|
|
524
|
+
sideX = right; // $FlowFixMe[prop-missing]
|
|
525
|
+
|
|
526
|
+
x -= offsetParent[widthProp] - popperRect.width;
|
|
527
|
+
x *= gpuAcceleration ? 1 : -1;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
var commonStyles = Object.assign({
|
|
532
|
+
position: position
|
|
533
|
+
}, adaptive && unsetSides);
|
|
534
|
+
|
|
535
|
+
if (gpuAcceleration) {
|
|
536
|
+
var _Object$assign;
|
|
537
|
+
|
|
538
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
function computeStyles(_ref4) {
|
|
545
|
+
var state = _ref4.state,
|
|
546
|
+
options = _ref4.options;
|
|
547
|
+
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
548
|
+
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
549
|
+
_options$adaptive = options.adaptive,
|
|
550
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
551
|
+
_options$roundOffsets = options.roundOffsets,
|
|
552
|
+
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
553
|
+
|
|
554
|
+
var commonStyles = {
|
|
555
|
+
placement: getBasePlacement(state.placement),
|
|
556
|
+
variation: getVariation(state.placement),
|
|
557
|
+
popper: state.elements.popper,
|
|
558
|
+
popperRect: state.rects.popper,
|
|
559
|
+
gpuAcceleration: gpuAcceleration
|
|
560
|
+
};
|
|
561
|
+
|
|
562
|
+
if (state.modifiersData.popperOffsets != null) {
|
|
563
|
+
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
564
|
+
offsets: state.modifiersData.popperOffsets,
|
|
565
|
+
position: state.options.strategy,
|
|
566
|
+
adaptive: adaptive,
|
|
567
|
+
roundOffsets: roundOffsets
|
|
568
|
+
})));
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
if (state.modifiersData.arrow != null) {
|
|
572
|
+
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
573
|
+
offsets: state.modifiersData.arrow,
|
|
574
|
+
position: 'absolute',
|
|
575
|
+
adaptive: false,
|
|
576
|
+
roundOffsets: roundOffsets
|
|
577
|
+
})));
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
581
|
+
'data-popper-placement': state.placement
|
|
582
|
+
});
|
|
583
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
const computeStyles$1 = {
|
|
587
|
+
name: 'computeStyles',
|
|
588
|
+
enabled: true,
|
|
589
|
+
phase: 'beforeWrite',
|
|
590
|
+
fn: computeStyles,
|
|
591
|
+
data: {}
|
|
592
|
+
};
|
|
593
|
+
|
|
594
|
+
var passive = {
|
|
595
|
+
passive: true
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
function effect(_ref) {
|
|
599
|
+
var state = _ref.state,
|
|
600
|
+
instance = _ref.instance,
|
|
601
|
+
options = _ref.options;
|
|
602
|
+
var _options$scroll = options.scroll,
|
|
603
|
+
scroll = _options$scroll === void 0 ? true : _options$scroll,
|
|
604
|
+
_options$resize = options.resize,
|
|
605
|
+
resize = _options$resize === void 0 ? true : _options$resize;
|
|
606
|
+
var window = getWindow(state.elements.popper);
|
|
607
|
+
var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
|
|
608
|
+
|
|
609
|
+
if (scroll) {
|
|
610
|
+
scrollParents.forEach(function (scrollParent) {
|
|
611
|
+
scrollParent.addEventListener('scroll', instance.update, passive);
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
if (resize) {
|
|
616
|
+
window.addEventListener('resize', instance.update, passive);
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
return function () {
|
|
620
|
+
if (scroll) {
|
|
621
|
+
scrollParents.forEach(function (scrollParent) {
|
|
622
|
+
scrollParent.removeEventListener('scroll', instance.update, passive);
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
if (resize) {
|
|
627
|
+
window.removeEventListener('resize', instance.update, passive);
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
const eventListeners = {
|
|
634
|
+
name: 'eventListeners',
|
|
635
|
+
enabled: true,
|
|
636
|
+
phase: 'write',
|
|
637
|
+
fn: function fn() {},
|
|
638
|
+
effect: effect,
|
|
639
|
+
data: {}
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
var hash$1 = {
|
|
643
|
+
left: 'right',
|
|
644
|
+
right: 'left',
|
|
645
|
+
bottom: 'top',
|
|
646
|
+
top: 'bottom'
|
|
647
|
+
};
|
|
648
|
+
function getOppositePlacement(placement) {
|
|
649
|
+
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
650
|
+
return hash$1[matched];
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
var hash = {
|
|
655
|
+
start: 'end',
|
|
656
|
+
end: 'start'
|
|
657
|
+
};
|
|
658
|
+
function getOppositeVariationPlacement(placement) {
|
|
659
|
+
return placement.replace(/start|end/g, function (matched) {
|
|
660
|
+
return hash[matched];
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
function getWindowScroll(node) {
|
|
665
|
+
var win = getWindow(node);
|
|
666
|
+
var scrollLeft = win.pageXOffset;
|
|
667
|
+
var scrollTop = win.pageYOffset;
|
|
668
|
+
return {
|
|
669
|
+
scrollLeft: scrollLeft,
|
|
670
|
+
scrollTop: scrollTop
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
function getWindowScrollBarX(element) {
|
|
675
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
676
|
+
// incorrect for RTL.
|
|
677
|
+
// Popper 1 is broken in this case and never had a bug report so let's assume
|
|
678
|
+
// it's not an issue. I don't think anyone ever specifies width on <html>
|
|
679
|
+
// anyway.
|
|
680
|
+
// Browsers where the left scrollbar doesn't cause an issue report `0` for
|
|
681
|
+
// this (e.g. Edge 2019, IE11, Safari)
|
|
682
|
+
return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
function getViewportRect(element) {
|
|
686
|
+
var win = getWindow(element);
|
|
687
|
+
var html = getDocumentElement(element);
|
|
688
|
+
var visualViewport = win.visualViewport;
|
|
689
|
+
var width = html.clientWidth;
|
|
690
|
+
var height = html.clientHeight;
|
|
691
|
+
var x = 0;
|
|
692
|
+
var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
|
|
693
|
+
// can be obscured underneath it.
|
|
694
|
+
// Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
|
|
695
|
+
// if it isn't open, so if this isn't available, the popper will be detected
|
|
696
|
+
// to overflow the bottom of the screen too early.
|
|
697
|
+
|
|
698
|
+
if (visualViewport) {
|
|
699
|
+
width = visualViewport.width;
|
|
700
|
+
height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
|
|
701
|
+
// In Chrome, it returns a value very close to 0 (+/-) but contains rounding
|
|
702
|
+
// errors due to floating point numbers, so we need to check precision.
|
|
703
|
+
// Safari returns a number <= 0, usually < -1 when pinch-zoomed
|
|
704
|
+
// Feature detection fails in mobile emulation mode in Chrome.
|
|
705
|
+
// Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
|
|
706
|
+
// 0.001
|
|
707
|
+
// Fallback here: "Not Safari" userAgent
|
|
708
|
+
|
|
709
|
+
if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
|
|
710
|
+
x = visualViewport.offsetLeft;
|
|
711
|
+
y = visualViewport.offsetTop;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
return {
|
|
716
|
+
width: width,
|
|
717
|
+
height: height,
|
|
718
|
+
x: x + getWindowScrollBarX(element),
|
|
719
|
+
y: y
|
|
720
|
+
};
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
724
|
+
|
|
725
|
+
function getDocumentRect(element) {
|
|
726
|
+
var _element$ownerDocumen;
|
|
727
|
+
|
|
728
|
+
var html = getDocumentElement(element);
|
|
729
|
+
var winScroll = getWindowScroll(element);
|
|
730
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
731
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
732
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
733
|
+
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
734
|
+
var y = -winScroll.scrollTop;
|
|
735
|
+
|
|
736
|
+
if (getComputedStyle(body || html).direction === 'rtl') {
|
|
737
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
return {
|
|
741
|
+
width: width,
|
|
742
|
+
height: height,
|
|
743
|
+
x: x,
|
|
744
|
+
y: y
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
function isScrollParent(element) {
|
|
749
|
+
// Firefox wants us to check `-x` and `-y` variations as well
|
|
750
|
+
var _getComputedStyle = getComputedStyle(element),
|
|
751
|
+
overflow = _getComputedStyle.overflow,
|
|
752
|
+
overflowX = _getComputedStyle.overflowX,
|
|
753
|
+
overflowY = _getComputedStyle.overflowY;
|
|
754
|
+
|
|
755
|
+
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
function getScrollParent(node) {
|
|
759
|
+
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
760
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
761
|
+
return node.ownerDocument.body;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
if (isHTMLElement(node) && isScrollParent(node)) {
|
|
765
|
+
return node;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
return getScrollParent(getParentNode(node));
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
/*
|
|
772
|
+
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
773
|
+
until we get to the top window object. This list is what we attach scroll listeners
|
|
774
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
775
|
+
reference element's position.
|
|
776
|
+
*/
|
|
777
|
+
|
|
778
|
+
function listScrollParents(element, list) {
|
|
779
|
+
var _element$ownerDocumen;
|
|
780
|
+
|
|
781
|
+
if (list === void 0) {
|
|
782
|
+
list = [];
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
var scrollParent = getScrollParent(element);
|
|
786
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
787
|
+
var win = getWindow(scrollParent);
|
|
788
|
+
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
789
|
+
var updatedList = list.concat(target);
|
|
790
|
+
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
791
|
+
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
function rectToClientRect(rect) {
|
|
795
|
+
return Object.assign({}, rect, {
|
|
796
|
+
left: rect.x,
|
|
797
|
+
top: rect.y,
|
|
798
|
+
right: rect.x + rect.width,
|
|
799
|
+
bottom: rect.y + rect.height
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
function getInnerBoundingClientRect(element) {
|
|
804
|
+
var rect = getBoundingClientRect(element);
|
|
805
|
+
rect.top = rect.top + element.clientTop;
|
|
806
|
+
rect.left = rect.left + element.clientLeft;
|
|
807
|
+
rect.bottom = rect.top + element.clientHeight;
|
|
808
|
+
rect.right = rect.left + element.clientWidth;
|
|
809
|
+
rect.width = element.clientWidth;
|
|
810
|
+
rect.height = element.clientHeight;
|
|
811
|
+
rect.x = rect.left;
|
|
812
|
+
rect.y = rect.top;
|
|
813
|
+
return rect;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
function getClientRectFromMixedType(element, clippingParent) {
|
|
817
|
+
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
818
|
+
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
819
|
+
// clipping (or hiding) overflowing elements with a position different from
|
|
820
|
+
// `initial`
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
function getClippingParents(element) {
|
|
824
|
+
var clippingParents = listScrollParents(getParentNode(element));
|
|
825
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
|
|
826
|
+
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
827
|
+
|
|
828
|
+
if (!isElement(clipperElement)) {
|
|
829
|
+
return [];
|
|
830
|
+
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
return clippingParents.filter(function (clippingParent) {
|
|
834
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
835
|
+
});
|
|
836
|
+
} // Gets the maximum area that the element is visible in due to any number of
|
|
837
|
+
// clipping parents
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
function getClippingRect(element, boundary, rootBoundary) {
|
|
841
|
+
var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
|
|
842
|
+
var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
|
|
843
|
+
var firstClippingParent = clippingParents[0];
|
|
844
|
+
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
845
|
+
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
846
|
+
accRect.top = max(rect.top, accRect.top);
|
|
847
|
+
accRect.right = min(rect.right, accRect.right);
|
|
848
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
849
|
+
accRect.left = max(rect.left, accRect.left);
|
|
850
|
+
return accRect;
|
|
851
|
+
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
852
|
+
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
853
|
+
clippingRect.height = clippingRect.bottom - clippingRect.top;
|
|
854
|
+
clippingRect.x = clippingRect.left;
|
|
855
|
+
clippingRect.y = clippingRect.top;
|
|
856
|
+
return clippingRect;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
function computeOffsets(_ref) {
|
|
860
|
+
var reference = _ref.reference,
|
|
861
|
+
element = _ref.element,
|
|
862
|
+
placement = _ref.placement;
|
|
863
|
+
var basePlacement = placement ? getBasePlacement(placement) : null;
|
|
864
|
+
var variation = placement ? getVariation(placement) : null;
|
|
865
|
+
var commonX = reference.x + reference.width / 2 - element.width / 2;
|
|
866
|
+
var commonY = reference.y + reference.height / 2 - element.height / 2;
|
|
867
|
+
var offsets;
|
|
868
|
+
|
|
869
|
+
switch (basePlacement) {
|
|
870
|
+
case top:
|
|
871
|
+
offsets = {
|
|
872
|
+
x: commonX,
|
|
873
|
+
y: reference.y - element.height
|
|
874
|
+
};
|
|
875
|
+
break;
|
|
876
|
+
|
|
877
|
+
case bottom:
|
|
878
|
+
offsets = {
|
|
879
|
+
x: commonX,
|
|
880
|
+
y: reference.y + reference.height
|
|
881
|
+
};
|
|
882
|
+
break;
|
|
883
|
+
|
|
884
|
+
case right:
|
|
885
|
+
offsets = {
|
|
886
|
+
x: reference.x + reference.width,
|
|
887
|
+
y: commonY
|
|
888
|
+
};
|
|
889
|
+
break;
|
|
890
|
+
|
|
891
|
+
case left:
|
|
892
|
+
offsets = {
|
|
893
|
+
x: reference.x - element.width,
|
|
894
|
+
y: commonY
|
|
895
|
+
};
|
|
896
|
+
break;
|
|
897
|
+
|
|
898
|
+
default:
|
|
899
|
+
offsets = {
|
|
900
|
+
x: reference.x,
|
|
901
|
+
y: reference.y
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
|
|
906
|
+
|
|
907
|
+
if (mainAxis != null) {
|
|
908
|
+
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
909
|
+
|
|
910
|
+
switch (variation) {
|
|
911
|
+
case start:
|
|
912
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
913
|
+
break;
|
|
914
|
+
|
|
915
|
+
case end:
|
|
916
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
917
|
+
break;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
return offsets;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
function detectOverflow(state, options) {
|
|
925
|
+
if (options === void 0) {
|
|
926
|
+
options = {};
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
var _options = options,
|
|
930
|
+
_options$placement = _options.placement,
|
|
931
|
+
placement = _options$placement === void 0 ? state.placement : _options$placement,
|
|
932
|
+
_options$boundary = _options.boundary,
|
|
933
|
+
boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
|
|
934
|
+
_options$rootBoundary = _options.rootBoundary,
|
|
935
|
+
rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
|
|
936
|
+
_options$elementConte = _options.elementContext,
|
|
937
|
+
elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
|
|
938
|
+
_options$altBoundary = _options.altBoundary,
|
|
939
|
+
altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
|
|
940
|
+
_options$padding = _options.padding,
|
|
941
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
942
|
+
var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
943
|
+
var altContext = elementContext === popper ? reference : popper;
|
|
944
|
+
var popperRect = state.rects.popper;
|
|
945
|
+
var element = state.elements[altBoundary ? altContext : elementContext];
|
|
946
|
+
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
|
|
947
|
+
var referenceClientRect = getBoundingClientRect(state.elements.reference);
|
|
948
|
+
var popperOffsets = computeOffsets({
|
|
949
|
+
reference: referenceClientRect,
|
|
950
|
+
element: popperRect,
|
|
951
|
+
strategy: 'absolute',
|
|
952
|
+
placement: placement
|
|
953
|
+
});
|
|
954
|
+
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
955
|
+
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
956
|
+
// 0 or negative = within the clipping rect
|
|
957
|
+
|
|
958
|
+
var overflowOffsets = {
|
|
959
|
+
top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
|
|
960
|
+
bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
|
|
961
|
+
left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
|
|
962
|
+
right: elementClientRect.right - clippingClientRect.right + paddingObject.right
|
|
963
|
+
};
|
|
964
|
+
var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
|
|
965
|
+
|
|
966
|
+
if (elementContext === popper && offsetData) {
|
|
967
|
+
var offset = offsetData[placement];
|
|
968
|
+
Object.keys(overflowOffsets).forEach(function (key) {
|
|
969
|
+
var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
|
|
970
|
+
var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
|
|
971
|
+
overflowOffsets[key] += offset[axis] * multiply;
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
return overflowOffsets;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
function computeAutoPlacement(state, options) {
|
|
979
|
+
if (options === void 0) {
|
|
980
|
+
options = {};
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
var _options = options,
|
|
984
|
+
placement = _options.placement,
|
|
985
|
+
boundary = _options.boundary,
|
|
986
|
+
rootBoundary = _options.rootBoundary,
|
|
987
|
+
padding = _options.padding,
|
|
988
|
+
flipVariations = _options.flipVariations,
|
|
989
|
+
_options$allowedAutoP = _options.allowedAutoPlacements,
|
|
990
|
+
allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP;
|
|
991
|
+
var variation = getVariation(placement);
|
|
992
|
+
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
993
|
+
return getVariation(placement) === variation;
|
|
994
|
+
}) : basePlacements;
|
|
995
|
+
var allowedPlacements = placements$1.filter(function (placement) {
|
|
996
|
+
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
997
|
+
});
|
|
998
|
+
|
|
999
|
+
if (allowedPlacements.length === 0) {
|
|
1000
|
+
allowedPlacements = placements$1;
|
|
1001
|
+
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
1005
|
+
acc[placement] = detectOverflow(state, {
|
|
1006
|
+
placement: placement,
|
|
1007
|
+
boundary: boundary,
|
|
1008
|
+
rootBoundary: rootBoundary,
|
|
1009
|
+
padding: padding
|
|
1010
|
+
})[getBasePlacement(placement)];
|
|
1011
|
+
return acc;
|
|
1012
|
+
}, {});
|
|
1013
|
+
return Object.keys(overflows).sort(function (a, b) {
|
|
1014
|
+
return overflows[a] - overflows[b];
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
function getExpandedFallbackPlacements(placement) {
|
|
1019
|
+
if (getBasePlacement(placement) === auto) {
|
|
1020
|
+
return [];
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
var oppositePlacement = getOppositePlacement(placement);
|
|
1024
|
+
return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
function flip(_ref) {
|
|
1028
|
+
var state = _ref.state,
|
|
1029
|
+
options = _ref.options,
|
|
1030
|
+
name = _ref.name;
|
|
1031
|
+
|
|
1032
|
+
if (state.modifiersData[name]._skip) {
|
|
1033
|
+
return;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
var _options$mainAxis = options.mainAxis,
|
|
1037
|
+
checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
|
|
1038
|
+
_options$altAxis = options.altAxis,
|
|
1039
|
+
checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,
|
|
1040
|
+
specifiedFallbackPlacements = options.fallbackPlacements,
|
|
1041
|
+
padding = options.padding,
|
|
1042
|
+
boundary = options.boundary,
|
|
1043
|
+
rootBoundary = options.rootBoundary,
|
|
1044
|
+
altBoundary = options.altBoundary,
|
|
1045
|
+
_options$flipVariatio = options.flipVariations,
|
|
1046
|
+
flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,
|
|
1047
|
+
allowedAutoPlacements = options.allowedAutoPlacements;
|
|
1048
|
+
var preferredPlacement = state.options.placement;
|
|
1049
|
+
var basePlacement = getBasePlacement(preferredPlacement);
|
|
1050
|
+
var isBasePlacement = basePlacement === preferredPlacement;
|
|
1051
|
+
var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
|
|
1052
|
+
var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
|
|
1053
|
+
return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {
|
|
1054
|
+
placement: placement,
|
|
1055
|
+
boundary: boundary,
|
|
1056
|
+
rootBoundary: rootBoundary,
|
|
1057
|
+
padding: padding,
|
|
1058
|
+
flipVariations: flipVariations,
|
|
1059
|
+
allowedAutoPlacements: allowedAutoPlacements
|
|
1060
|
+
}) : placement);
|
|
1061
|
+
}, []);
|
|
1062
|
+
var referenceRect = state.rects.reference;
|
|
1063
|
+
var popperRect = state.rects.popper;
|
|
1064
|
+
var checksMap = new Map();
|
|
1065
|
+
var makeFallbackChecks = true;
|
|
1066
|
+
var firstFittingPlacement = placements[0];
|
|
1067
|
+
|
|
1068
|
+
for (var i = 0; i < placements.length; i++) {
|
|
1069
|
+
var placement = placements[i];
|
|
1070
|
+
|
|
1071
|
+
var _basePlacement = getBasePlacement(placement);
|
|
1072
|
+
|
|
1073
|
+
var isStartVariation = getVariation(placement) === start;
|
|
1074
|
+
var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;
|
|
1075
|
+
var len = isVertical ? 'width' : 'height';
|
|
1076
|
+
var overflow = detectOverflow(state, {
|
|
1077
|
+
placement: placement,
|
|
1078
|
+
boundary: boundary,
|
|
1079
|
+
rootBoundary: rootBoundary,
|
|
1080
|
+
altBoundary: altBoundary,
|
|
1081
|
+
padding: padding
|
|
1082
|
+
});
|
|
1083
|
+
var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
|
|
1084
|
+
|
|
1085
|
+
if (referenceRect[len] > popperRect[len]) {
|
|
1086
|
+
mainVariationSide = getOppositePlacement(mainVariationSide);
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
var altVariationSide = getOppositePlacement(mainVariationSide);
|
|
1090
|
+
var checks = [];
|
|
1091
|
+
|
|
1092
|
+
if (checkMainAxis) {
|
|
1093
|
+
checks.push(overflow[_basePlacement] <= 0);
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
if (checkAltAxis) {
|
|
1097
|
+
checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
if (checks.every(function (check) {
|
|
1101
|
+
return check;
|
|
1102
|
+
})) {
|
|
1103
|
+
firstFittingPlacement = placement;
|
|
1104
|
+
makeFallbackChecks = false;
|
|
1105
|
+
break;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
checksMap.set(placement, checks);
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
if (makeFallbackChecks) {
|
|
1112
|
+
// `2` may be desired in some cases – research later
|
|
1113
|
+
var numberOfChecks = flipVariations ? 3 : 1;
|
|
1114
|
+
|
|
1115
|
+
var _loop = function _loop(_i) {
|
|
1116
|
+
var fittingPlacement = placements.find(function (placement) {
|
|
1117
|
+
var checks = checksMap.get(placement);
|
|
1118
|
+
|
|
1119
|
+
if (checks) {
|
|
1120
|
+
return checks.slice(0, _i).every(function (check) {
|
|
1121
|
+
return check;
|
|
1122
|
+
});
|
|
1123
|
+
}
|
|
1124
|
+
});
|
|
1125
|
+
|
|
1126
|
+
if (fittingPlacement) {
|
|
1127
|
+
firstFittingPlacement = fittingPlacement;
|
|
1128
|
+
return "break";
|
|
1129
|
+
}
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1132
|
+
for (var _i = numberOfChecks; _i > 0; _i--) {
|
|
1133
|
+
var _ret = _loop(_i);
|
|
1134
|
+
|
|
1135
|
+
if (_ret === "break") break;
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
if (state.placement !== firstFittingPlacement) {
|
|
1140
|
+
state.modifiersData[name]._skip = true;
|
|
1141
|
+
state.placement = firstFittingPlacement;
|
|
1142
|
+
state.reset = true;
|
|
1143
|
+
}
|
|
1144
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
const flip$1 = {
|
|
1148
|
+
name: 'flip',
|
|
1149
|
+
enabled: true,
|
|
1150
|
+
phase: 'main',
|
|
1151
|
+
fn: flip,
|
|
1152
|
+
requiresIfExists: ['offset'],
|
|
1153
|
+
data: {
|
|
1154
|
+
_skip: false
|
|
1155
|
+
}
|
|
1156
|
+
};
|
|
1157
|
+
|
|
1158
|
+
function getSideOffsets(overflow, rect, preventedOffsets) {
|
|
1159
|
+
if (preventedOffsets === void 0) {
|
|
1160
|
+
preventedOffsets = {
|
|
1161
|
+
x: 0,
|
|
1162
|
+
y: 0
|
|
1163
|
+
};
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
return {
|
|
1167
|
+
top: overflow.top - rect.height - preventedOffsets.y,
|
|
1168
|
+
right: overflow.right - rect.width + preventedOffsets.x,
|
|
1169
|
+
bottom: overflow.bottom - rect.height + preventedOffsets.y,
|
|
1170
|
+
left: overflow.left - rect.width - preventedOffsets.x
|
|
1171
|
+
};
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
function isAnySideFullyClipped(overflow) {
|
|
1175
|
+
return [top, right, bottom, left].some(function (side) {
|
|
1176
|
+
return overflow[side] >= 0;
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
function hide(_ref) {
|
|
1181
|
+
var state = _ref.state,
|
|
1182
|
+
name = _ref.name;
|
|
1183
|
+
var referenceRect = state.rects.reference;
|
|
1184
|
+
var popperRect = state.rects.popper;
|
|
1185
|
+
var preventedOffsets = state.modifiersData.preventOverflow;
|
|
1186
|
+
var referenceOverflow = detectOverflow(state, {
|
|
1187
|
+
elementContext: 'reference'
|
|
1188
|
+
});
|
|
1189
|
+
var popperAltOverflow = detectOverflow(state, {
|
|
1190
|
+
altBoundary: true
|
|
1191
|
+
});
|
|
1192
|
+
var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
|
|
1193
|
+
var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
|
|
1194
|
+
var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
|
|
1195
|
+
var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
|
|
1196
|
+
state.modifiersData[name] = {
|
|
1197
|
+
referenceClippingOffsets: referenceClippingOffsets,
|
|
1198
|
+
popperEscapeOffsets: popperEscapeOffsets,
|
|
1199
|
+
isReferenceHidden: isReferenceHidden,
|
|
1200
|
+
hasPopperEscaped: hasPopperEscaped
|
|
1201
|
+
};
|
|
1202
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
1203
|
+
'data-popper-reference-hidden': isReferenceHidden,
|
|
1204
|
+
'data-popper-escaped': hasPopperEscaped
|
|
1205
|
+
});
|
|
1206
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
const hide$1 = {
|
|
1210
|
+
name: 'hide',
|
|
1211
|
+
enabled: true,
|
|
1212
|
+
phase: 'main',
|
|
1213
|
+
requiresIfExists: ['preventOverflow'],
|
|
1214
|
+
fn: hide
|
|
1215
|
+
};
|
|
1216
|
+
|
|
1217
|
+
function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
1218
|
+
var basePlacement = getBasePlacement(placement);
|
|
1219
|
+
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
1220
|
+
|
|
1221
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
1222
|
+
placement: placement
|
|
1223
|
+
})) : offset,
|
|
1224
|
+
skidding = _ref[0],
|
|
1225
|
+
distance = _ref[1];
|
|
1226
|
+
|
|
1227
|
+
skidding = skidding || 0;
|
|
1228
|
+
distance = (distance || 0) * invertDistance;
|
|
1229
|
+
return [left, right].indexOf(basePlacement) >= 0 ? {
|
|
1230
|
+
x: distance,
|
|
1231
|
+
y: skidding
|
|
1232
|
+
} : {
|
|
1233
|
+
x: skidding,
|
|
1234
|
+
y: distance
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
function offset(_ref2) {
|
|
1239
|
+
var state = _ref2.state,
|
|
1240
|
+
options = _ref2.options,
|
|
1241
|
+
name = _ref2.name;
|
|
1242
|
+
var _options$offset = options.offset,
|
|
1243
|
+
offset = _options$offset === void 0 ? [0, 0] : _options$offset;
|
|
1244
|
+
var data = placements.reduce(function (acc, placement) {
|
|
1245
|
+
acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
|
|
1246
|
+
return acc;
|
|
1247
|
+
}, {});
|
|
1248
|
+
var _data$state$placement = data[state.placement],
|
|
1249
|
+
x = _data$state$placement.x,
|
|
1250
|
+
y = _data$state$placement.y;
|
|
1251
|
+
|
|
1252
|
+
if (state.modifiersData.popperOffsets != null) {
|
|
1253
|
+
state.modifiersData.popperOffsets.x += x;
|
|
1254
|
+
state.modifiersData.popperOffsets.y += y;
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
state.modifiersData[name] = data;
|
|
1258
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
const offset$1 = {
|
|
1262
|
+
name: 'offset',
|
|
1263
|
+
enabled: true,
|
|
1264
|
+
phase: 'main',
|
|
1265
|
+
requires: ['popperOffsets'],
|
|
1266
|
+
fn: offset
|
|
1267
|
+
};
|
|
1268
|
+
|
|
1269
|
+
function popperOffsets(_ref) {
|
|
1270
|
+
var state = _ref.state,
|
|
1271
|
+
name = _ref.name;
|
|
1272
|
+
// Offsets are the actual position the popper needs to have to be
|
|
1273
|
+
// properly positioned near its reference element
|
|
1274
|
+
// This is the most basic placement, and will be adjusted by
|
|
1275
|
+
// the modifiers in the next step
|
|
1276
|
+
state.modifiersData[name] = computeOffsets({
|
|
1277
|
+
reference: state.rects.reference,
|
|
1278
|
+
element: state.rects.popper,
|
|
1279
|
+
strategy: 'absolute',
|
|
1280
|
+
placement: state.placement
|
|
1281
|
+
});
|
|
1282
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
const popperOffsets$1 = {
|
|
1286
|
+
name: 'popperOffsets',
|
|
1287
|
+
enabled: true,
|
|
1288
|
+
phase: 'read',
|
|
1289
|
+
fn: popperOffsets,
|
|
1290
|
+
data: {}
|
|
1291
|
+
};
|
|
1292
|
+
|
|
1293
|
+
function getAltAxis(axis) {
|
|
1294
|
+
return axis === 'x' ? 'y' : 'x';
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
function preventOverflow(_ref) {
|
|
1298
|
+
var state = _ref.state,
|
|
1299
|
+
options = _ref.options,
|
|
1300
|
+
name = _ref.name;
|
|
1301
|
+
var _options$mainAxis = options.mainAxis,
|
|
1302
|
+
checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
|
|
1303
|
+
_options$altAxis = options.altAxis,
|
|
1304
|
+
checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
|
|
1305
|
+
boundary = options.boundary,
|
|
1306
|
+
rootBoundary = options.rootBoundary,
|
|
1307
|
+
altBoundary = options.altBoundary,
|
|
1308
|
+
padding = options.padding,
|
|
1309
|
+
_options$tether = options.tether,
|
|
1310
|
+
tether = _options$tether === void 0 ? true : _options$tether,
|
|
1311
|
+
_options$tetherOffset = options.tetherOffset,
|
|
1312
|
+
tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
|
|
1313
|
+
var overflow = detectOverflow(state, {
|
|
1314
|
+
boundary: boundary,
|
|
1315
|
+
rootBoundary: rootBoundary,
|
|
1316
|
+
padding: padding,
|
|
1317
|
+
altBoundary: altBoundary
|
|
1318
|
+
});
|
|
1319
|
+
var basePlacement = getBasePlacement(state.placement);
|
|
1320
|
+
var variation = getVariation(state.placement);
|
|
1321
|
+
var isBasePlacement = !variation;
|
|
1322
|
+
var mainAxis = getMainAxisFromPlacement(basePlacement);
|
|
1323
|
+
var altAxis = getAltAxis(mainAxis);
|
|
1324
|
+
var popperOffsets = state.modifiersData.popperOffsets;
|
|
1325
|
+
var referenceRect = state.rects.reference;
|
|
1326
|
+
var popperRect = state.rects.popper;
|
|
1327
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
1328
|
+
placement: state.placement
|
|
1329
|
+
})) : tetherOffset;
|
|
1330
|
+
var data = {
|
|
1331
|
+
x: 0,
|
|
1332
|
+
y: 0
|
|
1333
|
+
};
|
|
1334
|
+
|
|
1335
|
+
if (!popperOffsets) {
|
|
1336
|
+
return;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
if (checkMainAxis || checkAltAxis) {
|
|
1340
|
+
var mainSide = mainAxis === 'y' ? top : left;
|
|
1341
|
+
var altSide = mainAxis === 'y' ? bottom : right;
|
|
1342
|
+
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
1343
|
+
var offset = popperOffsets[mainAxis];
|
|
1344
|
+
var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
|
|
1345
|
+
var max$1 = popperOffsets[mainAxis] - overflow[altSide];
|
|
1346
|
+
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
1347
|
+
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
1348
|
+
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
1349
|
+
// outside the reference bounds
|
|
1350
|
+
|
|
1351
|
+
var arrowElement = state.elements.arrow;
|
|
1352
|
+
var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
|
|
1353
|
+
width: 0,
|
|
1354
|
+
height: 0
|
|
1355
|
+
};
|
|
1356
|
+
var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
|
|
1357
|
+
var arrowPaddingMin = arrowPaddingObject[mainSide];
|
|
1358
|
+
var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
|
|
1359
|
+
// to include its full size in the calculation. If the reference is small
|
|
1360
|
+
// and near the edge of a boundary, the popper can overflow even if the
|
|
1361
|
+
// reference is not overflowing as well (e.g. virtual elements with no
|
|
1362
|
+
// width or height)
|
|
1363
|
+
|
|
1364
|
+
var arrowLen = within(0, referenceRect[len], arrowRect[len]);
|
|
1365
|
+
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
|
|
1366
|
+
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
|
|
1367
|
+
var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
|
|
1368
|
+
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
|
1369
|
+
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
1370
|
+
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
1371
|
+
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
1372
|
+
|
|
1373
|
+
if (checkMainAxis) {
|
|
1374
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
1375
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
1376
|
+
data[mainAxis] = preventedOffset - offset;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
if (checkAltAxis) {
|
|
1380
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
1381
|
+
|
|
1382
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
1383
|
+
|
|
1384
|
+
var _offset = popperOffsets[altAxis];
|
|
1385
|
+
|
|
1386
|
+
var _min = _offset + overflow[_mainSide];
|
|
1387
|
+
|
|
1388
|
+
var _max = _offset - overflow[_altSide];
|
|
1389
|
+
|
|
1390
|
+
var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
|
|
1391
|
+
|
|
1392
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
1393
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
state.modifiersData[name] = data;
|
|
1398
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
1399
|
+
|
|
1400
|
+
|
|
1401
|
+
const preventOverflow$1 = {
|
|
1402
|
+
name: 'preventOverflow',
|
|
1403
|
+
enabled: true,
|
|
1404
|
+
phase: 'main',
|
|
1405
|
+
fn: preventOverflow,
|
|
1406
|
+
requiresIfExists: ['offset']
|
|
1407
|
+
};
|
|
1408
|
+
|
|
1409
|
+
function getHTMLElementScroll(element) {
|
|
1410
|
+
return {
|
|
1411
|
+
scrollLeft: element.scrollLeft,
|
|
1412
|
+
scrollTop: element.scrollTop
|
|
1413
|
+
};
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
function getNodeScroll(node) {
|
|
1417
|
+
if (node === getWindow(node) || !isHTMLElement(node)) {
|
|
1418
|
+
return getWindowScroll(node);
|
|
1419
|
+
} else {
|
|
1420
|
+
return getHTMLElementScroll(node);
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
function isElementScaled(element) {
|
|
1425
|
+
var rect = element.getBoundingClientRect();
|
|
1426
|
+
var scaleX = rect.width / element.offsetWidth || 1;
|
|
1427
|
+
var scaleY = rect.height / element.offsetHeight || 1;
|
|
1428
|
+
return scaleX !== 1 || scaleY !== 1;
|
|
1429
|
+
} // Returns the composite rect of an element relative to its offsetParent.
|
|
1430
|
+
// Composite means it takes into account transforms as well as layout.
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
1434
|
+
if (isFixed === void 0) {
|
|
1435
|
+
isFixed = false;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1439
|
+
isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
1440
|
+
var documentElement = getDocumentElement(offsetParent);
|
|
1441
|
+
var rect = getBoundingClientRect(elementOrVirtualElement);
|
|
1442
|
+
var scroll = {
|
|
1443
|
+
scrollLeft: 0,
|
|
1444
|
+
scrollTop: 0
|
|
1445
|
+
};
|
|
1446
|
+
var offsets = {
|
|
1447
|
+
x: 0,
|
|
1448
|
+
y: 0
|
|
1449
|
+
};
|
|
1450
|
+
|
|
1451
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1452
|
+
if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
|
|
1453
|
+
isScrollParent(documentElement)) {
|
|
1454
|
+
scroll = getNodeScroll(offsetParent);
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
if (isHTMLElement(offsetParent)) {
|
|
1458
|
+
offsets = getBoundingClientRect(offsetParent);
|
|
1459
|
+
offsets.x += offsetParent.clientLeft;
|
|
1460
|
+
offsets.y += offsetParent.clientTop;
|
|
1461
|
+
} else if (documentElement) {
|
|
1462
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
return {
|
|
1467
|
+
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
1468
|
+
y: rect.top + scroll.scrollTop - offsets.y,
|
|
1469
|
+
width: rect.width,
|
|
1470
|
+
height: rect.height
|
|
1471
|
+
};
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
function order(modifiers) {
|
|
1475
|
+
var map = new Map();
|
|
1476
|
+
var visited = new Set();
|
|
1477
|
+
var result = [];
|
|
1478
|
+
modifiers.forEach(function (modifier) {
|
|
1479
|
+
map.set(modifier.name, modifier);
|
|
1480
|
+
}); // On visiting object, check for its dependencies and visit them recursively
|
|
1481
|
+
|
|
1482
|
+
function sort(modifier) {
|
|
1483
|
+
visited.add(modifier.name);
|
|
1484
|
+
var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
|
|
1485
|
+
requires.forEach(function (dep) {
|
|
1486
|
+
if (!visited.has(dep)) {
|
|
1487
|
+
var depModifier = map.get(dep);
|
|
1488
|
+
|
|
1489
|
+
if (depModifier) {
|
|
1490
|
+
sort(depModifier);
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
});
|
|
1494
|
+
result.push(modifier);
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
modifiers.forEach(function (modifier) {
|
|
1498
|
+
if (!visited.has(modifier.name)) {
|
|
1499
|
+
// check for visited object
|
|
1500
|
+
sort(modifier);
|
|
1501
|
+
}
|
|
1502
|
+
});
|
|
1503
|
+
return result;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
function orderModifiers(modifiers) {
|
|
1507
|
+
// order based on dependencies
|
|
1508
|
+
var orderedModifiers = order(modifiers); // order based on phase
|
|
1509
|
+
|
|
1510
|
+
return modifierPhases.reduce(function (acc, phase) {
|
|
1511
|
+
return acc.concat(orderedModifiers.filter(function (modifier) {
|
|
1512
|
+
return modifier.phase === phase;
|
|
1513
|
+
}));
|
|
1514
|
+
}, []);
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
function debounce(fn) {
|
|
1518
|
+
var pending;
|
|
1519
|
+
return function () {
|
|
1520
|
+
if (!pending) {
|
|
1521
|
+
pending = new Promise(function (resolve) {
|
|
1522
|
+
Promise.resolve().then(function () {
|
|
1523
|
+
pending = undefined;
|
|
1524
|
+
resolve(fn());
|
|
1525
|
+
});
|
|
1526
|
+
});
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
return pending;
|
|
1530
|
+
};
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
function mergeByName(modifiers) {
|
|
1534
|
+
var merged = modifiers.reduce(function (merged, current) {
|
|
1535
|
+
var existing = merged[current.name];
|
|
1536
|
+
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
1537
|
+
options: Object.assign({}, existing.options, current.options),
|
|
1538
|
+
data: Object.assign({}, existing.data, current.data)
|
|
1539
|
+
}) : current;
|
|
1540
|
+
return merged;
|
|
1541
|
+
}, {}); // IE11 does not support Object.values
|
|
1542
|
+
|
|
1543
|
+
return Object.keys(merged).map(function (key) {
|
|
1544
|
+
return merged[key];
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
var DEFAULT_OPTIONS = {
|
|
1549
|
+
placement: 'bottom',
|
|
1550
|
+
modifiers: [],
|
|
1551
|
+
strategy: 'absolute'
|
|
1552
|
+
};
|
|
1553
|
+
|
|
1554
|
+
function areValidElements() {
|
|
1555
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1556
|
+
args[_key] = arguments[_key];
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
return !args.some(function (element) {
|
|
1560
|
+
return !(element && typeof element.getBoundingClientRect === 'function');
|
|
1561
|
+
});
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
function popperGenerator(generatorOptions) {
|
|
1565
|
+
if (generatorOptions === void 0) {
|
|
1566
|
+
generatorOptions = {};
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
var _generatorOptions = generatorOptions,
|
|
1570
|
+
_generatorOptions$def = _generatorOptions.defaultModifiers,
|
|
1571
|
+
defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
|
|
1572
|
+
_generatorOptions$def2 = _generatorOptions.defaultOptions,
|
|
1573
|
+
defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
|
|
1574
|
+
return function createPopper(reference, popper, options) {
|
|
1575
|
+
if (options === void 0) {
|
|
1576
|
+
options = defaultOptions;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
var state = {
|
|
1580
|
+
placement: 'bottom',
|
|
1581
|
+
orderedModifiers: [],
|
|
1582
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
1583
|
+
modifiersData: {},
|
|
1584
|
+
elements: {
|
|
1585
|
+
reference: reference,
|
|
1586
|
+
popper: popper
|
|
1587
|
+
},
|
|
1588
|
+
attributes: {},
|
|
1589
|
+
styles: {}
|
|
1590
|
+
};
|
|
1591
|
+
var effectCleanupFns = [];
|
|
1592
|
+
var isDestroyed = false;
|
|
1593
|
+
var instance = {
|
|
1594
|
+
state: state,
|
|
1595
|
+
setOptions: function setOptions(setOptionsAction) {
|
|
1596
|
+
var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
|
|
1597
|
+
cleanupModifierEffects();
|
|
1598
|
+
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
1599
|
+
state.scrollParents = {
|
|
1600
|
+
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
1601
|
+
popper: listScrollParents(popper)
|
|
1602
|
+
}; // Orders the modifiers based on their dependencies and `phase`
|
|
1603
|
+
// properties
|
|
1604
|
+
|
|
1605
|
+
var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
|
|
1606
|
+
|
|
1607
|
+
state.orderedModifiers = orderedModifiers.filter(function (m) {
|
|
1608
|
+
return m.enabled;
|
|
1609
|
+
}); // Validate the provided modifiers so that the consumer will get warned
|
|
1610
|
+
|
|
1611
|
+
runModifierEffects();
|
|
1612
|
+
return instance.update();
|
|
1613
|
+
},
|
|
1614
|
+
// Sync update – it will always be executed, even if not necessary. This
|
|
1615
|
+
// is useful for low frequency updates where sync behavior simplifies the
|
|
1616
|
+
// logic.
|
|
1617
|
+
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
1618
|
+
// prefer the async Popper#update method
|
|
1619
|
+
forceUpdate: function forceUpdate() {
|
|
1620
|
+
if (isDestroyed) {
|
|
1621
|
+
return;
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
var _state$elements = state.elements,
|
|
1625
|
+
reference = _state$elements.reference,
|
|
1626
|
+
popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
|
|
1627
|
+
// anymore
|
|
1628
|
+
|
|
1629
|
+
if (!areValidElements(reference, popper)) {
|
|
1630
|
+
|
|
1631
|
+
return;
|
|
1632
|
+
} // Store the reference and popper rects to be read by modifiers
|
|
1633
|
+
|
|
1634
|
+
|
|
1635
|
+
state.rects = {
|
|
1636
|
+
reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
|
|
1637
|
+
popper: getLayoutRect(popper)
|
|
1638
|
+
}; // Modifiers have the ability to reset the current update cycle. The
|
|
1639
|
+
// most common use case for this is the `flip` modifier changing the
|
|
1640
|
+
// placement, which then needs to re-run all the modifiers, because the
|
|
1641
|
+
// logic was previously ran for the previous placement and is therefore
|
|
1642
|
+
// stale/incorrect
|
|
1643
|
+
|
|
1644
|
+
state.reset = false;
|
|
1645
|
+
state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
|
|
1646
|
+
// is filled with the initial data specified by the modifier. This means
|
|
1647
|
+
// it doesn't persist and is fresh on each update.
|
|
1648
|
+
// To ensure persistent data, use `${name}#persistent`
|
|
1649
|
+
|
|
1650
|
+
state.orderedModifiers.forEach(function (modifier) {
|
|
1651
|
+
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
1652
|
+
});
|
|
1653
|
+
|
|
1654
|
+
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
1655
|
+
|
|
1656
|
+
if (state.reset === true) {
|
|
1657
|
+
state.reset = false;
|
|
1658
|
+
index = -1;
|
|
1659
|
+
continue;
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
var _state$orderedModifie = state.orderedModifiers[index],
|
|
1663
|
+
fn = _state$orderedModifie.fn,
|
|
1664
|
+
_state$orderedModifie2 = _state$orderedModifie.options,
|
|
1665
|
+
_options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
|
|
1666
|
+
name = _state$orderedModifie.name;
|
|
1667
|
+
|
|
1668
|
+
if (typeof fn === 'function') {
|
|
1669
|
+
state = fn({
|
|
1670
|
+
state: state,
|
|
1671
|
+
options: _options,
|
|
1672
|
+
name: name,
|
|
1673
|
+
instance: instance
|
|
1674
|
+
}) || state;
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
},
|
|
1678
|
+
// Async and optimistically optimized update – it will not be executed if
|
|
1679
|
+
// not necessary (debounced to run at most once-per-tick)
|
|
1680
|
+
update: debounce(function () {
|
|
1681
|
+
return new Promise(function (resolve) {
|
|
1682
|
+
instance.forceUpdate();
|
|
1683
|
+
resolve(state);
|
|
1684
|
+
});
|
|
1685
|
+
}),
|
|
1686
|
+
destroy: function destroy() {
|
|
1687
|
+
cleanupModifierEffects();
|
|
1688
|
+
isDestroyed = true;
|
|
1689
|
+
}
|
|
1690
|
+
};
|
|
1691
|
+
|
|
1692
|
+
if (!areValidElements(reference, popper)) {
|
|
1693
|
+
|
|
1694
|
+
return instance;
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
instance.setOptions(options).then(function (state) {
|
|
1698
|
+
if (!isDestroyed && options.onFirstUpdate) {
|
|
1699
|
+
options.onFirstUpdate(state);
|
|
1700
|
+
}
|
|
1701
|
+
}); // Modifiers have the ability to execute arbitrary code before the first
|
|
1702
|
+
// update cycle runs. They will be executed in the same order as the update
|
|
1703
|
+
// cycle. This is useful when a modifier adds some persistent data that
|
|
1704
|
+
// other modifiers need to use, but the modifier is run after the dependent
|
|
1705
|
+
// one.
|
|
1706
|
+
|
|
1707
|
+
function runModifierEffects() {
|
|
1708
|
+
state.orderedModifiers.forEach(function (_ref3) {
|
|
1709
|
+
var name = _ref3.name,
|
|
1710
|
+
_ref3$options = _ref3.options,
|
|
1711
|
+
options = _ref3$options === void 0 ? {} : _ref3$options,
|
|
1712
|
+
effect = _ref3.effect;
|
|
1713
|
+
|
|
1714
|
+
if (typeof effect === 'function') {
|
|
1715
|
+
var cleanupFn = effect({
|
|
1716
|
+
state: state,
|
|
1717
|
+
name: name,
|
|
1718
|
+
instance: instance,
|
|
1719
|
+
options: options
|
|
1720
|
+
});
|
|
1721
|
+
|
|
1722
|
+
var noopFn = function noopFn() {};
|
|
1723
|
+
|
|
1724
|
+
effectCleanupFns.push(cleanupFn || noopFn);
|
|
1725
|
+
}
|
|
1726
|
+
});
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
function cleanupModifierEffects() {
|
|
1730
|
+
effectCleanupFns.forEach(function (fn) {
|
|
1731
|
+
return fn();
|
|
1732
|
+
});
|
|
1733
|
+
effectCleanupFns = [];
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
return instance;
|
|
1737
|
+
};
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
|
|
1741
|
+
var createPopper$1 = /*#__PURE__*/popperGenerator({
|
|
1742
|
+
defaultModifiers: defaultModifiers
|
|
1743
|
+
}); // eslint-disable-next-line import/no-unused-modules
|
|
1744
|
+
|
|
1745
|
+
const CSS = {
|
|
1746
|
+
animation: "calcite-popper-anim",
|
|
1747
|
+
animationActive: "calcite-popper-anim--active"
|
|
1748
|
+
};
|
|
1749
|
+
function getPlacement(el, placement) {
|
|
1750
|
+
const placements = ["left", "right"];
|
|
1751
|
+
const variations = ["start", "end"];
|
|
1752
|
+
if (getElementDir(el) === "rtl") {
|
|
1753
|
+
placements.reverse();
|
|
1754
|
+
variations.reverse();
|
|
1755
|
+
}
|
|
1756
|
+
return placement
|
|
1757
|
+
.replace(/-leading/gi, `-${variations[0]}`)
|
|
1758
|
+
.replace(/-trailing/gi, `-${variations[1]}`)
|
|
1759
|
+
.replace(/leading/gi, placements[0])
|
|
1760
|
+
.replace(/trailing/gi, placements[1]);
|
|
1761
|
+
}
|
|
1762
|
+
function createPopper({ referenceEl, el, placement, overlayPositioning = "absolute", modifiers }) {
|
|
1763
|
+
if (!referenceEl) {
|
|
1764
|
+
return null;
|
|
1765
|
+
}
|
|
1766
|
+
return createPopper$1(referenceEl, el, {
|
|
1767
|
+
strategy: overlayPositioning,
|
|
1768
|
+
placement: getPlacement(el, placement),
|
|
1769
|
+
modifiers
|
|
1770
|
+
});
|
|
1771
|
+
}
|
|
1772
|
+
async function updatePopper({ el, modifiers, placement: PopperPlacement, popper }) {
|
|
1773
|
+
const placement = getPlacement(el, PopperPlacement);
|
|
1774
|
+
await popper.setOptions({
|
|
1775
|
+
modifiers,
|
|
1776
|
+
placement
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
function hypotenuse(sideA, sideB) {
|
|
1780
|
+
return Math.sqrt(Math.pow(sideA, 2) + Math.pow(sideB, 2));
|
|
1781
|
+
}
|
|
1782
|
+
const visiblePointerSize = 4;
|
|
1783
|
+
const defaultOffsetDistance = Math.ceil(hypotenuse(visiblePointerSize, visiblePointerSize));
|
|
1784
|
+
|
|
1785
|
+
export { CSS as C, createPopper as c, defaultOffsetDistance as d, updatePopper as u };
|