@esri/calcite-components 1.0.0-next.415 → 1.0.0-next.418
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/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/{p-02854dce.system.entry.js → p-02d7cf64.system.entry.js} +1 -1
- package/dist/calcite/p-03c92ad2.entry.js +5 -0
- package/dist/calcite/{p-847fc3a4.system.entry.js → p-052ba882.system.entry.js} +1 -1
- package/dist/calcite/{p-46c177ec.system.entry.js → p-07f1f162.system.entry.js} +1 -1
- package/dist/calcite/p-1263bcc0.entry.js +5 -0
- package/dist/calcite/p-184049cb.entry.js +5 -0
- package/dist/calcite/p-18be4438.entry.js +5 -0
- package/dist/calcite/p-193749c1.entry.js +5 -0
- package/dist/calcite/{p-129954f1.system.entry.js → p-1aded388.system.entry.js} +1 -1
- package/dist/calcite/{p-18d1b401.system.entry.js → p-1aeca42a.system.entry.js} +1 -1
- package/dist/calcite/p-1b1bca2d.entry.js +5 -0
- package/dist/calcite/{p-3c773436.system.entry.js → p-1fc943d5.system.entry.js} +1 -1
- package/dist/calcite/p-23145377.entry.js +5 -0
- package/dist/calcite/p-28c333d0.entry.js +5 -0
- package/dist/calcite/p-2bcaed33.entry.js +5 -0
- package/dist/calcite/{p-2f20293c.system.entry.js → p-2dd22e8c.system.entry.js} +1 -1
- package/dist/calcite/{p-1984c1b1.system.entry.js → p-2fae8516.system.entry.js} +1 -1
- package/dist/calcite/p-31c58f25.entry.js +5 -0
- package/dist/calcite/p-32d6b962.entry.js +5 -0
- package/dist/calcite/{p-475869c9.system.entry.js → p-32efc4cd.system.entry.js} +1 -1
- package/dist/calcite/p-34730e94.entry.js +5 -0
- package/dist/calcite/p-364db271.entry.js +5 -0
- package/dist/calcite/p-366004f7.system.entry.js +5 -0
- package/dist/calcite/p-3915705c.entry.js +5 -0
- package/dist/calcite/p-3b4662a5.entry.js +5 -0
- package/dist/calcite/{p-7375cf4f.system.entry.js → p-3b707a1c.system.entry.js} +1 -1
- package/dist/calcite/{p-41806a13.system.entry.js → p-3cdee187.system.entry.js} +1 -1
- package/dist/calcite/{p-296c1d5a.system.entry.js → p-3e149640.system.entry.js} +1 -1
- package/dist/calcite/{p-9a69d12a.system.entry.js → p-3e9d96c6.system.entry.js} +1 -1
- package/dist/calcite/p-42227a04.entry.js +5 -0
- package/dist/calcite/p-426f011a.entry.js +5 -0
- package/dist/calcite/p-4570cf6c.js +5 -0
- package/dist/calcite/p-4696e56f.entry.js +5 -0
- package/dist/calcite/{p-e01879bf.js → p-4730df46.js} +1 -1
- package/dist/calcite/p-47d38839.entry.js +5 -0
- package/dist/calcite/{p-aa336fc3.system.entry.js → p-482885ae.system.entry.js} +1 -1
- package/dist/calcite/{p-df3775ba.system.entry.js → p-48637359.system.entry.js} +1 -1
- package/dist/calcite/{p-78bb06e5.system.entry.js → p-496e907a.system.entry.js} +1 -1
- package/dist/calcite/p-4aecbaef.entry.js +5 -0
- package/dist/calcite/{p-ea32a5ac.system.entry.js → p-4afb5a1b.system.entry.js} +1 -1
- package/dist/calcite/p-4eae61c5.entry.js +5 -0
- package/dist/calcite/p-5394666a.entry.js +5 -0
- package/dist/calcite/p-54c49493.entry.js +5 -0
- package/dist/calcite/{p-0bd5bb31.system.entry.js → p-55e1a3a0.system.entry.js} +1 -1
- package/dist/calcite/{p-3543ddfe.system.entry.js → p-569150ab.system.entry.js} +1 -1
- package/dist/calcite/{p-4392cf25.system.entry.js → p-57e0428a.system.entry.js} +1 -1
- package/dist/calcite/{p-9d071e3c.system.js → p-588bfa74.system.js} +1 -1
- package/dist/calcite/p-5a8829cd.entry.js +5 -0
- package/dist/calcite/p-5bb4d012.entry.js +5 -0
- package/dist/calcite/p-5f6e35f3.entry.js +5 -0
- package/dist/calcite/p-6261469d.entry.js +5 -0
- package/dist/calcite/p-65dbbfb5.system.js +5 -0
- package/dist/calcite/{p-31c3b490.system.entry.js → p-69d2d9cf.system.entry.js} +1 -1
- package/dist/calcite/p-6ab3e489.entry.js +5 -0
- package/dist/calcite/p-6b7b23d0.js +5 -0
- package/dist/calcite/{p-a6261f6b.system.entry.js → p-6c4a7041.system.entry.js} +1 -1
- package/dist/calcite/{p-db73225f.system.entry.js → p-6e0103f5.system.entry.js} +1 -1
- package/dist/calcite/{p-579d1f1a.system.entry.js → p-6ed27595.system.entry.js} +1 -1
- package/dist/calcite/{p-bce112c4.system.entry.js → p-6fba3e1b.system.entry.js} +1 -1
- package/dist/calcite/{p-2eb067c8.system.entry.js → p-7247b667.system.entry.js} +1 -1
- package/dist/calcite/{p-58274475.system.entry.js → p-7260c869.system.entry.js} +1 -1
- package/dist/calcite/{p-467318a0.system.entry.js → p-7432e5ef.system.entry.js} +1 -1
- package/dist/calcite/p-765c9bef.entry.js +5 -0
- package/dist/calcite/p-78bc502f.entry.js +5 -0
- package/dist/calcite/{p-ee88180e.system.entry.js → p-7bee4942.system.entry.js} +1 -1
- package/dist/calcite/{p-c0e695bd.js → p-7c88d545.js} +1 -1
- package/dist/calcite/p-7dfd6480.system.entry.js +5 -0
- package/dist/calcite/p-824da4be.entry.js +5 -0
- package/dist/calcite/p-867f7b7a.system.entry.js +5 -0
- package/dist/calcite/{p-00009c01.system.entry.js → p-872e82a6.system.entry.js} +1 -1
- package/dist/calcite/p-87888359.entry.js +5 -0
- package/dist/calcite/p-895d22f3.entry.js +5 -0
- package/dist/calcite/p-8a7596e3.entry.js +5 -0
- package/dist/calcite/{p-ba2c5e07.js → p-8ab345f2.js} +1 -1
- package/dist/calcite/{p-4ff0e3a9.system.entry.js → p-8e0dd0af.system.entry.js} +1 -1
- package/dist/calcite/{p-e4c317a4.system.js → p-9385e4b4.system.js} +1 -1
- package/dist/calcite/{p-8bb762f9.system.entry.js → p-963e9aec.system.entry.js} +1 -1
- package/dist/calcite/p-97904e9a.entry.js +5 -0
- package/dist/calcite/{p-a72718b5.system.entry.js → p-9940b82a.system.entry.js} +1 -1
- package/dist/calcite/p-9ac86d6a.entry.js +5 -0
- package/dist/calcite/{p-c7f36800.system.entry.js → p-9ad8c7c5.system.entry.js} +1 -1
- package/dist/calcite/p-9c913e3a.entry.js +5 -0
- package/dist/calcite/p-9e61d89d.entry.js +5 -0
- package/dist/calcite/{p-1f82294e.system.entry.js → p-a11ee541.system.entry.js} +1 -1
- package/dist/calcite/p-a3527241.system.entry.js +5 -0
- package/dist/calcite/p-a38fe099.entry.js +5 -0
- package/dist/calcite/{p-7d937b47.entry.js → p-a7770d75.entry.js} +1 -1
- package/dist/calcite/{p-f56ce7ea.js → p-a9b3ef39.js} +1 -1
- package/dist/calcite/p-a9ea7f4f.entry.js +5 -0
- package/dist/calcite/{p-b5afe88b.system.entry.js → p-aaa21a84.system.entry.js} +1 -1
- package/dist/calcite/{p-44032496.system.entry.js → p-aad14a5d.system.entry.js} +1 -1
- package/dist/calcite/p-afe59546.entry.js +5 -0
- package/dist/calcite/p-b10af2b4.entry.js +5 -0
- package/dist/calcite/p-b2493735.entry.js +5 -0
- package/dist/calcite/{p-d74ca1cf.system.entry.js → p-b3c5247b.system.entry.js} +1 -1
- package/dist/calcite/{p-cfb7be80.system.entry.js → p-b47dc903.system.entry.js} +1 -1
- package/dist/calcite/{p-c9f280c1.system.js → p-b765d197.system.js} +1 -1
- package/dist/calcite/p-bccbf58a.entry.js +5 -0
- package/dist/calcite/{p-993a9701.system.entry.js → p-bcdc20c3.system.entry.js} +1 -1
- package/dist/calcite/{p-cd406e29.system.entry.js → p-bdcb43b1.system.entry.js} +1 -1
- package/dist/calcite/{p-66a7bd24.system.entry.js → p-bffb4da3.system.entry.js} +1 -1
- package/dist/calcite/{p-d1060fb1.system.entry.js → p-c228a1da.system.entry.js} +1 -1
- package/dist/calcite/p-c2adeae4.entry.js +5 -0
- package/dist/calcite/{p-18ea4373.system.js → p-c33f47d5.system.js} +1 -1
- package/dist/calcite/{p-42d258d4.system.entry.js → p-c4cb35ba.system.entry.js} +1 -1
- package/dist/calcite/{p-5d52246b.system.js → p-c51699d3.system.js} +1 -1
- package/dist/calcite/p-c5c42405.entry.js +5 -0
- package/dist/calcite/{p-a4cc864a.system.entry.js → p-c9fc13b9.system.entry.js} +1 -1
- package/dist/calcite/p-cafd98e8.entry.js +5 -0
- package/dist/calcite/{p-08c58589.system.js → p-cb57638c.system.js} +1 -1
- package/dist/calcite/p-cb847074.entry.js +5 -0
- package/dist/calcite/p-cbc6fee6.entry.js +5 -0
- package/dist/calcite/p-cc6e7726.entry.js +5 -0
- package/dist/calcite/{p-2277b440.js → p-cd5f5c8f.js} +1 -1
- package/dist/calcite/{p-1d345756.system.entry.js → p-cd9226a1.system.entry.js} +1 -1
- package/dist/calcite/p-da7c2542.entry.js +5 -0
- package/dist/calcite/{p-fedbc6e6.js → p-dcf33bb2.js} +1 -1
- package/dist/calcite/{p-36fa8b0f.system.entry.js → p-dd460534.system.entry.js} +1 -1
- package/dist/calcite/p-e22ab8fa.entry.js +5 -0
- package/dist/calcite/{p-04708565.system.entry.js → p-e3280a36.system.entry.js} +1 -1
- package/dist/calcite/p-e43605c5.entry.js +5 -0
- package/dist/calcite/{p-9e56f30f.system.entry.js → p-e4d1651b.system.entry.js} +1 -1
- package/dist/calcite/p-e5a7ca2a.entry.js +5 -0
- package/dist/calcite/p-e65b6bfb.entry.js +5 -0
- package/dist/calcite/{p-45dce037.system.entry.js → p-e66a8ca1.system.entry.js} +1 -1
- package/dist/calcite/{p-5be670bf.system.entry.js → p-ea4119b1.system.entry.js} +1 -1
- package/dist/calcite/{p-f5e91588.system.entry.js → p-edf1e815.system.entry.js} +1 -1
- package/dist/calcite/{p-c908ce40.system.entry.js → p-ef17447d.system.entry.js} +1 -1
- package/dist/calcite/p-f09e27b0.system.js +5 -0
- package/dist/calcite/p-f344e163.entry.js +5 -0
- package/dist/calcite/p-fe9380a0.system.js +5 -0
- package/dist/cjs/{ExpandToggle-dbdede53.js → ExpandToggle-f7682a15.js} +1 -1
- package/dist/cjs/{Heading-1870bc0e.js → Heading-ec707493.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-action-bar.cjs.entry.js +4 -4
- package/dist/cjs/calcite-action-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-action-menu.cjs.entry.js +5 -5
- package/dist/cjs/calcite-action-pad.cjs.entry.js +4 -4
- package/dist/cjs/calcite-action.cjs.entry.js +2 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +2 -2
- package/dist/cjs/calcite-avatar.cjs.entry.js +2 -2
- package/dist/cjs/calcite-block_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-button.cjs.entry.js +2 -2
- package/dist/cjs/calcite-card.cjs.entry.js +3 -3
- package/dist/cjs/calcite-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/calcite-chip.cjs.entry.js +3 -3
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +24 -35
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -9
- package/dist/cjs/calcite-fab.cjs.entry.js +2 -2
- package/dist/cjs/calcite-filter.cjs.entry.js +2 -2
- package/dist/cjs/calcite-flow.cjs.entry.js +2 -2
- package/dist/cjs/calcite-graph_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-handle.cjs.entry.js +2 -2
- package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +2 -2
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +13 -10
- package/dist/cjs/calcite-input-message.cjs.entry.js +2 -2
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input.cjs.entry.js +3 -3
- package/dist/cjs/calcite-label.cjs.entry.js +2 -2
- package/dist/cjs/calcite-link.cjs.entry.js +2 -2
- package/dist/cjs/calcite-list_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-loader.cjs.entry.js +2 -2
- package/dist/cjs/calcite-modal.cjs.entry.js +3 -3
- package/dist/cjs/calcite-notice.cjs.entry.js +3 -3
- package/dist/cjs/calcite-option_3.cjs.entry.js +5 -5
- package/dist/cjs/calcite-pagination.cjs.entry.js +2 -2
- package/dist/cjs/calcite-panel.cjs.entry.js +4 -4
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-popover_2.cjs.entry.js +12 -7
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +5 -5
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +2 -2
- package/dist/cjs/calcite-split-button.cjs.entry.js +2 -2
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-switch.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tab_4.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tile.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tip_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +9 -5
- package/dist/cjs/calcite-tree_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite.cjs.js +3 -3
- package/dist/cjs/{conditionalSlot-2917212e.js → conditionalSlot-64f9bfd3.js} +1 -1
- package/dist/cjs/{form-d540f0cb.js → form-0ef859c8.js} +1 -1
- package/dist/cjs/{index-8760acaf.js → index-1af0efd3.js} +4 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{popper-13a2bb46.js → popper-64d89ef7.js} +17 -2
- package/dist/cjs/{resources-1e94d43c.js → resources-7811eb2c.js} +1 -1
- package/dist/cjs/{resources-65327c4a.js → resources-daf15d54.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/action-menu/action-menu.js +6 -6
- package/dist/collection/components/combobox/combobox.js +41 -33
- package/dist/collection/components/combobox/resources.js +0 -1
- package/dist/collection/components/dropdown/dropdown.js +33 -9
- package/dist/collection/components/dropdown/resources.js +0 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +29 -6
- package/dist/collection/components/popover/popover.js +12 -8
- package/dist/collection/components/popover/resources.js +1 -0
- package/dist/collection/components/tooltip/tooltip.js +5 -1
- package/dist/collection/utils/popper.js +66 -0
- package/dist/components/action-group.js +3 -4
- package/dist/components/action-menu.js +5 -6
- package/dist/components/action.js +3 -4
- package/dist/components/button.js +3 -4
- package/dist/components/calcite-accordion-item.js +3 -4
- package/dist/components/calcite-accordion.js +3 -4
- package/dist/components/calcite-action-bar.js +3 -4
- package/dist/components/calcite-action-pad.js +3 -4
- package/dist/components/calcite-alert.js +3 -4
- package/dist/components/calcite-avatar.js +3 -4
- package/dist/components/calcite-block-section.js +3 -4
- package/dist/components/calcite-block.js +3 -4
- package/dist/components/calcite-card.js +3 -4
- package/dist/components/calcite-color-picker.js +3 -4
- package/dist/components/calcite-combobox-item-group.js +4 -5
- package/dist/components/calcite-combobox-item.js +4 -5
- package/dist/components/calcite-combobox.js +23 -35
- package/dist/components/calcite-dropdown-group.js +3 -4
- package/dist/components/calcite-dropdown-item.js +3 -4
- package/dist/components/calcite-fab.js +3 -4
- package/dist/components/calcite-flow.js +3 -4
- package/dist/components/calcite-inline-editable.js +3 -4
- package/dist/components/calcite-input-date-picker.js +13 -10
- package/dist/components/calcite-input-message.js +3 -4
- package/dist/components/calcite-input-time-picker.js +3 -4
- package/dist/components/calcite-list-item-group.js +3 -4
- package/dist/components/calcite-list-item.js +3 -4
- package/dist/components/calcite-list.js +3 -4
- package/dist/components/calcite-modal.js +3 -4
- package/dist/components/calcite-notice.js +3 -4
- package/dist/components/calcite-option-group.js +3 -4
- package/dist/components/calcite-option.js +3 -4
- package/dist/components/calcite-pagination.js +3 -4
- package/dist/components/calcite-panel.js +3 -4
- package/dist/components/calcite-pick-list-group.js +3 -4
- package/dist/components/calcite-pick-list.js +3 -4
- package/dist/components/calcite-popover-manager.js +3 -4
- package/dist/components/calcite-radio-button-group.js +3 -4
- package/dist/components/calcite-radio-button.js +3 -4
- package/dist/components/calcite-radio-group-item.js +3 -4
- package/dist/components/calcite-radio-group.js +3 -4
- package/dist/components/calcite-rating.js +3 -4
- package/dist/components/calcite-select.js +3 -4
- package/dist/components/calcite-shell-center-row.js +3 -4
- package/dist/components/calcite-shell-panel.js +3 -4
- package/dist/components/calcite-shell.js +3 -4
- package/dist/components/calcite-slider.js +3 -4
- package/dist/components/calcite-sortable-list.js +3 -4
- package/dist/components/calcite-split-button.js +3 -4
- package/dist/components/calcite-stepper-item.js +3 -4
- package/dist/components/calcite-stepper.js +3 -4
- package/dist/components/calcite-tile-select-group.js +3 -4
- package/dist/components/calcite-tile-select.js +3 -4
- package/dist/components/calcite-tip-group.js +3 -4
- package/dist/components/calcite-tip-manager.js +3 -4
- package/dist/components/calcite-tip.js +3 -4
- package/dist/components/calcite-tooltip.js +8 -5
- package/dist/components/calcite-tree-item.js +3 -4
- package/dist/components/calcite-tree.js +3 -4
- package/dist/components/calcite-value-list-item.js +3 -4
- package/dist/components/calcite-value-list.js +3 -4
- package/dist/components/checkbox.js +3 -4
- package/dist/components/chip.js +3 -4
- package/dist/components/color-picker-hex-input.js +3 -4
- package/dist/components/color-picker-swatch.js +3 -4
- package/dist/components/date-picker-day.js +3 -4
- package/dist/components/date-picker-month-header.js +3 -4
- package/dist/components/date-picker-month.js +3 -4
- package/dist/components/date-picker.js +3 -4
- package/dist/components/dropdown.js +12 -9
- package/dist/components/filter.js +3 -4
- package/dist/components/graph.js +3 -4
- package/dist/components/handle.js +3 -4
- package/dist/components/icon.js +3 -4
- package/dist/components/input.js +3 -4
- package/dist/components/label2.js +3 -4
- package/dist/components/link.js +3 -4
- package/dist/components/loader.js +3 -4
- package/dist/components/pick-list-item.js +3 -4
- package/dist/components/popover.js +10 -7
- package/dist/components/popper.js +16 -3
- package/dist/components/progress.js +3 -4
- package/dist/components/resources.js +2 -1
- package/dist/components/scrim.js +3 -4
- package/dist/components/switch.js +3 -4
- package/dist/components/tab-nav.js +3 -4
- package/dist/components/tab-title.js +3 -4
- package/dist/components/tab.js +3 -4
- package/dist/components/tabs.js +3 -4
- package/dist/components/tile.js +3 -4
- package/dist/components/time-picker.js +3 -4
- package/dist/components/tooltip-manager.js +3 -4
- package/dist/components/utils2.js +1 -2
- package/dist/custom-elements/index.js +154 -137
- package/dist/esm/{ExpandToggle-ed0ae55a.js → ExpandToggle-af224c1e.js} +1 -1
- package/dist/esm/{Heading-8289fa96.js → Heading-d5f1710a.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +3 -3
- package/dist/esm/calcite-action-bar.entry.js +4 -4
- package/dist/esm/calcite-action-group.entry.js +3 -3
- package/dist/esm/calcite-action-menu.entry.js +5 -5
- package/dist/esm/calcite-action-pad.entry.js +4 -4
- package/dist/esm/calcite-action.entry.js +2 -2
- package/dist/esm/calcite-alert.entry.js +2 -2
- package/dist/esm/calcite-avatar.entry.js +2 -2
- package/dist/esm/calcite-block_2.entry.js +5 -5
- package/dist/esm/calcite-button.entry.js +2 -2
- package/dist/esm/calcite-card.entry.js +3 -3
- package/dist/esm/calcite-checkbox.entry.js +3 -3
- package/dist/esm/calcite-chip.entry.js +3 -3
- package/dist/esm/calcite-color-picker_3.entry.js +4 -4
- package/dist/esm/calcite-combobox_3.entry.js +24 -35
- package/dist/esm/calcite-date-picker_4.entry.js +7 -7
- package/dist/esm/calcite-dropdown_3.entry.js +12 -9
- package/dist/esm/calcite-fab.entry.js +2 -2
- package/dist/esm/calcite-filter.entry.js +2 -2
- package/dist/esm/calcite-flow.entry.js +2 -2
- package/dist/esm/calcite-graph_2.entry.js +4 -4
- package/dist/esm/calcite-handle.entry.js +2 -2
- package/dist/esm/calcite-icon.entry.js +2 -2
- package/dist/esm/calcite-inline-editable.entry.js +2 -2
- package/dist/esm/calcite-input-date-picker.entry.js +13 -10
- package/dist/esm/calcite-input-message.entry.js +2 -2
- package/dist/esm/calcite-input-time-picker_2.entry.js +4 -4
- package/dist/esm/calcite-input.entry.js +3 -3
- package/dist/esm/calcite-label.entry.js +2 -2
- package/dist/esm/calcite-link.entry.js +2 -2
- package/dist/esm/calcite-list_3.entry.js +6 -6
- package/dist/esm/calcite-loader.entry.js +2 -2
- package/dist/esm/calcite-modal.entry.js +3 -3
- package/dist/esm/calcite-notice.entry.js +3 -3
- package/dist/esm/calcite-option_3.entry.js +5 -5
- package/dist/esm/calcite-pagination.entry.js +2 -2
- package/dist/esm/calcite-panel.entry.js +4 -4
- package/dist/esm/calcite-pick-list_3.entry.js +7 -7
- package/dist/esm/calcite-popover_2.entry.js +12 -7
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +2 -2
- package/dist/esm/calcite-radio-button.entry.js +3 -3
- package/dist/esm/calcite-radio-group_2.entry.js +4 -4
- package/dist/esm/calcite-rating.entry.js +3 -3
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +5 -5
- package/dist/esm/calcite-sortable-list.entry.js +2 -2
- package/dist/esm/calcite-split-button.entry.js +2 -2
- package/dist/esm/calcite-stepper_2.entry.js +3 -3
- package/dist/esm/calcite-switch.entry.js +3 -3
- package/dist/esm/calcite-tab_4.entry.js +5 -5
- package/dist/esm/calcite-tile-select_2.entry.js +3 -3
- package/dist/esm/calcite-tile.entry.js +3 -3
- package/dist/esm/calcite-tip_3.entry.js +6 -6
- package/dist/esm/calcite-tooltip_2.entry.js +9 -5
- package/dist/esm/calcite-tree_2.entry.js +4 -4
- package/dist/esm/calcite-value-list_2.entry.js +5 -5
- package/dist/esm/calcite.js +3 -3
- package/dist/esm/{conditionalSlot-c4b6c8b1.js → conditionalSlot-67f579ff.js} +1 -1
- package/dist/esm/{form-d07b2414.js → form-5e4609eb.js} +1 -1
- package/dist/esm/{index-0fefddd1.js → index-bd94948c.js} +4 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{popper-ae231554.js → popper-da45ec93.js} +16 -3
- package/dist/esm/{resources-431fa051.js → resources-73dac782.js} +1 -1
- package/dist/esm/{resources-77c12cea.js → resources-cbfcf4a3.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-ed0ae55a.js → ExpandToggle-af224c1e.js} +1 -1
- package/dist/esm-es5/{Heading-8289fa96.js → Heading-d5f1710a.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
- package/dist/esm-es5/calcite-action.entry.js +1 -1
- package/dist/esm-es5/calcite-alert.entry.js +1 -1
- package/dist/esm-es5/calcite-avatar.entry.js +1 -1
- package/dist/esm-es5/calcite-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-button.entry.js +1 -1
- package/dist/esm-es5/calcite-card.entry.js +1 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
- package/dist/esm-es5/calcite-chip.entry.js +1 -1
- package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
- package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
- package/dist/esm-es5/calcite-fab.entry.js +1 -1
- package/dist/esm-es5/calcite-filter.entry.js +1 -1
- package/dist/esm-es5/calcite-flow.entry.js +1 -1
- package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-handle.entry.js +1 -1
- package/dist/esm-es5/calcite-icon.entry.js +1 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
- package/dist/esm-es5/calcite-input-message.entry.js +1 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
- package/dist/esm-es5/calcite-input.entry.js +1 -1
- package/dist/esm-es5/calcite-label.entry.js +1 -1
- package/dist/esm-es5/calcite-link.entry.js +1 -1
- package/dist/esm-es5/calcite-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-loader.entry.js +1 -1
- package/dist/esm-es5/calcite-modal.entry.js +1 -1
- package/dist/esm-es5/calcite-notice.entry.js +1 -1
- package/dist/esm-es5/calcite-option_3.entry.js +1 -1
- package/dist/esm-es5/calcite-pagination.entry.js +1 -1
- package/dist/esm-es5/calcite-panel.entry.js +1 -1
- package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
- package/dist/esm-es5/calcite-progress.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
- package/dist/esm-es5/calcite-rating.entry.js +1 -1
- package/dist/esm-es5/calcite-scrim.entry.js +1 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
- package/dist/esm-es5/calcite-split-button.entry.js +1 -1
- package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
- package/dist/esm-es5/calcite-switch.entry.js +1 -1
- package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
- package/dist/esm-es5/calcite-tile-select_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tile.entry.js +1 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/{conditionalSlot-c4b6c8b1.js → conditionalSlot-67f579ff.js} +1 -1
- package/dist/esm-es5/{form-d07b2414.js → form-5e4609eb.js} +1 -1
- package/dist/esm-es5/{index-0fefddd1.js → index-bd94948c.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/popper-da45ec93.js +5 -0
- package/dist/esm-es5/{resources-431fa051.js → resources-73dac782.js} +2 -2
- package/dist/esm-es5/{resources-77c12cea.js → resources-cbfcf4a3.js} +1 -1
- package/dist/extras/docs-json.json +53 -8
- package/dist/types/components/action-menu/action-menu.d.ts +2 -3
- package/dist/types/components/combobox/combobox.d.ts +6 -4
- package/dist/types/components/combobox/resources.d.ts +0 -1
- package/dist/types/components/dropdown/dropdown.d.ts +7 -3
- package/dist/types/components/dropdown/interfaces.d.ts +0 -2
- package/dist/types/components/dropdown/resources.d.ts +0 -1
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +5 -1
- package/dist/types/components/popover/popover.d.ts +3 -3
- package/dist/types/components/popover/resources.d.ts +1 -0
- package/dist/types/components.d.ts +32 -9
- package/dist/types/utils/popper.d.ts +8 -1
- package/hydrate/index.js +68 -48
- package/package.json +9 -9
- package/readme.md +2 -2
- package/dist/calcite/p-01f877b3.entry.js +0 -5
- package/dist/calcite/p-02b4bcec.entry.js +0 -5
- package/dist/calcite/p-04859cc3.entry.js +0 -5
- package/dist/calcite/p-0a565a2a.entry.js +0 -5
- package/dist/calcite/p-1370cabf.entry.js +0 -5
- package/dist/calcite/p-190e3d04.entry.js +0 -5
- package/dist/calcite/p-1ff6776b.entry.js +0 -5
- package/dist/calcite/p-22cef177.entry.js +0 -5
- package/dist/calcite/p-24e1de98.entry.js +0 -5
- package/dist/calcite/p-26bcdb22.entry.js +0 -5
- package/dist/calcite/p-2c293ed2.entry.js +0 -5
- package/dist/calcite/p-2fcab9f8.entry.js +0 -5
- package/dist/calcite/p-362522e5.js +0 -5
- package/dist/calcite/p-38b1f6b5.entry.js +0 -5
- package/dist/calcite/p-3e522dbe.entry.js +0 -5
- package/dist/calcite/p-44dcac16.entry.js +0 -5
- package/dist/calcite/p-46741fa4.entry.js +0 -5
- package/dist/calcite/p-4a3a1b46.entry.js +0 -5
- package/dist/calcite/p-55fa7908.entry.js +0 -5
- package/dist/calcite/p-5653a345.entry.js +0 -5
- package/dist/calcite/p-5c237680.entry.js +0 -5
- package/dist/calcite/p-5d1c8466.entry.js +0 -5
- package/dist/calcite/p-6a3357f9.system.js +0 -5
- package/dist/calcite/p-71d1bfb2.entry.js +0 -5
- package/dist/calcite/p-7ab80118.entry.js +0 -5
- package/dist/calcite/p-7d9f20b8.entry.js +0 -5
- package/dist/calcite/p-807e32d8.entry.js +0 -5
- package/dist/calcite/p-80ab216e.entry.js +0 -5
- package/dist/calcite/p-84f8db8e.entry.js +0 -5
- package/dist/calcite/p-88f949f4.entry.js +0 -5
- package/dist/calcite/p-8afbcf9e.entry.js +0 -5
- package/dist/calcite/p-8dbb756d.entry.js +0 -5
- package/dist/calcite/p-8e198935.entry.js +0 -5
- package/dist/calcite/p-8f93be14.system.js +0 -5
- package/dist/calcite/p-9127d01c.entry.js +0 -5
- package/dist/calcite/p-93d9d3e7.entry.js +0 -5
- package/dist/calcite/p-98962bd9.entry.js +0 -5
- package/dist/calcite/p-9b514f77.entry.js +0 -5
- package/dist/calcite/p-9c86f528.entry.js +0 -5
- package/dist/calcite/p-a400f6dc.system.entry.js +0 -5
- package/dist/calcite/p-a5397c9d.entry.js +0 -5
- package/dist/calcite/p-a5e8d728.entry.js +0 -5
- package/dist/calcite/p-a7e2bf9b.system.entry.js +0 -5
- package/dist/calcite/p-b55643f5.entry.js +0 -5
- package/dist/calcite/p-b58cdaca.entry.js +0 -5
- package/dist/calcite/p-b84e5b34.entry.js +0 -5
- package/dist/calcite/p-b85064fc.entry.js +0 -5
- package/dist/calcite/p-c5086019.system.entry.js +0 -5
- package/dist/calcite/p-c82c4418.entry.js +0 -5
- package/dist/calcite/p-cc894f09.entry.js +0 -5
- package/dist/calcite/p-d2a1cbbf.entry.js +0 -5
- package/dist/calcite/p-d44165c7.entry.js +0 -5
- package/dist/calcite/p-d648a677.entry.js +0 -5
- package/dist/calcite/p-d74e933c.entry.js +0 -5
- package/dist/calcite/p-e2047621.system.js +0 -5
- package/dist/calcite/p-e23de208.entry.js +0 -5
- package/dist/calcite/p-e33d149d.system.entry.js +0 -5
- package/dist/calcite/p-e8f17533.entry.js +0 -5
- package/dist/calcite/p-eaf79f20.entry.js +0 -5
- package/dist/calcite/p-eeb91710.js +0 -5
- package/dist/calcite/p-f2433871.entry.js +0 -5
- package/dist/calcite/p-f681fbba.entry.js +0 -5
- package/dist/calcite/p-f6d994ff.entry.js +0 -5
- package/dist/calcite/p-f71b551d.entry.js +0 -5
- package/dist/calcite/p-fa078a42.entry.js +0 -5
- package/dist/esm-es5/popper-ae231554.js +0 -5
|
@@ -263,10 +263,10 @@ export class ActionMenu {
|
|
|
263
263
|
return getSlotted(el, SLOTS.tooltip) ? (h("calcite-tooltip-manager", null, menuButtonSlot)) : (menuButtonSlot);
|
|
264
264
|
}
|
|
265
265
|
renderMenuItems() {
|
|
266
|
-
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning } = this;
|
|
266
|
+
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
|
|
267
267
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
268
268
|
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
|
269
|
-
return (h("calcite-popover", { disablePointer: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl },
|
|
269
|
+
return (h("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl },
|
|
270
270
|
h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS.menu, id: menuId, onClick: this.handleCalciteActionClick, onKeyDown: this.menuActionsContainerKeyDown, onKeyUp: this.menuActionsContainerKeyUp, ref: (el) => (this.menuEl = el), role: "menu", tabIndex: -1 },
|
|
271
271
|
h("slot", null))));
|
|
272
272
|
}
|
|
@@ -315,12 +315,12 @@ export class ActionMenu {
|
|
|
315
315
|
"type": "unknown",
|
|
316
316
|
"mutable": false,
|
|
317
317
|
"complexType": {
|
|
318
|
-
"original": "
|
|
319
|
-
"resolved": "
|
|
318
|
+
"original": "ComputedPlacement[]",
|
|
319
|
+
"resolved": "ComputedPlacement[]",
|
|
320
320
|
"references": {
|
|
321
|
-
"
|
|
321
|
+
"ComputedPlacement": {
|
|
322
322
|
"location": "import",
|
|
323
|
-
"path": "
|
|
323
|
+
"path": "../../utils/popper"
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
},
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
import { Component, h, Prop, State, Listen, Event, Element, Method, Watch, Host } from "@stencil/core";
|
|
6
6
|
import { filter } from "../../utils/filter";
|
|
7
7
|
import { debounce } from "lodash-es";
|
|
8
|
-
import { createPopper, updatePopper, CSS as PopperCSS } from "../../utils/popper";
|
|
8
|
+
import { createPopper, updatePopper, CSS as PopperCSS, popperMenuFlipPlacements, defaultMenuPlacement } from "../../utils/popper";
|
|
9
9
|
import { guid } from "../../utils/guid";
|
|
10
|
-
import { ComboboxChildSelector, ComboboxItem, ComboboxItemGroup,
|
|
10
|
+
import { ComboboxChildSelector, ComboboxItem, ComboboxItemGroup, TEXT } from "./resources";
|
|
11
11
|
import { getItemAncestors, getItemChildren, hasActiveChildren } from "./utils";
|
|
12
12
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
13
13
|
import { afterConnectDefaultValueSet, connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
|
|
@@ -67,12 +67,10 @@ export class Combobox {
|
|
|
67
67
|
this.groupItems = [];
|
|
68
68
|
this.selectedItems = [];
|
|
69
69
|
this.visibleItems = [];
|
|
70
|
-
this.hideList = !this.active;
|
|
71
70
|
this.activeItemIndex = -1;
|
|
72
71
|
this.activeChipIndex = -1;
|
|
73
72
|
this.activeDescendant = "";
|
|
74
73
|
this.text = "";
|
|
75
|
-
this.open = this.active;
|
|
76
74
|
this.textInput = null;
|
|
77
75
|
this.mutationObserver = createObserver("mutation", () => this.updateItems());
|
|
78
76
|
this.resizeObserver = createObserver("resize", () => this.setMaxScrollerHeight());
|
|
@@ -161,11 +159,11 @@ export class Combobox {
|
|
|
161
159
|
}
|
|
162
160
|
};
|
|
163
161
|
this.toggleCloseEnd = () => {
|
|
164
|
-
this.
|
|
162
|
+
this.active = false;
|
|
165
163
|
this.el.removeEventListener("calciteComboboxClose", this.toggleCloseEnd);
|
|
166
164
|
};
|
|
167
165
|
this.toggleOpenEnd = () => {
|
|
168
|
-
this.
|
|
166
|
+
this.active = true;
|
|
169
167
|
this.el.removeEventListener("calciteComboboxOpen", this.toggleOpenEnd);
|
|
170
168
|
};
|
|
171
169
|
this.transitionEnd = (event) => {
|
|
@@ -199,9 +197,7 @@ export class Combobox {
|
|
|
199
197
|
};
|
|
200
198
|
this.setInactiveIfNotContained = (event) => {
|
|
201
199
|
const composedPath = event.composedPath();
|
|
202
|
-
if (
|
|
203
|
-
composedPath.includes(this.el) ||
|
|
204
|
-
composedPath.includes(this.referenceEl)) {
|
|
200
|
+
if (!this.active || composedPath.includes(this.el) || composedPath.includes(this.referenceEl)) {
|
|
205
201
|
return;
|
|
206
202
|
}
|
|
207
203
|
if (this.allowCustomValues && this.text) {
|
|
@@ -216,7 +212,6 @@ export class Combobox {
|
|
|
216
212
|
this.updateActiveItemIndex(-1);
|
|
217
213
|
}
|
|
218
214
|
this.active = false;
|
|
219
|
-
this.open = false;
|
|
220
215
|
};
|
|
221
216
|
this.setMenuEl = (el) => {
|
|
222
217
|
this.menuEl = el;
|
|
@@ -294,20 +289,11 @@ export class Combobox {
|
|
|
294
289
|
this.setInactiveIfNotContained(event);
|
|
295
290
|
};
|
|
296
291
|
}
|
|
297
|
-
activeHandler(
|
|
292
|
+
activeHandler() {
|
|
298
293
|
if (this.disabled) {
|
|
299
294
|
this.active = false;
|
|
300
295
|
return;
|
|
301
296
|
}
|
|
302
|
-
// when closing, wait transition time then hide to prevent overscroll
|
|
303
|
-
if (oldValue && !newValue) {
|
|
304
|
-
this.el.addEventListener("calciteComboboxClose", this.toggleCloseEnd);
|
|
305
|
-
this.open = false;
|
|
306
|
-
}
|
|
307
|
-
else if (!oldValue && newValue) {
|
|
308
|
-
this.el.addEventListener("calciteComboboxOpen", this.toggleOpenEnd);
|
|
309
|
-
this.open = true;
|
|
310
|
-
}
|
|
311
297
|
this.reposition();
|
|
312
298
|
}
|
|
313
299
|
handleDisabledChange(value) {
|
|
@@ -361,7 +347,7 @@ export class Combobox {
|
|
|
361
347
|
? await updatePopper({
|
|
362
348
|
el: menuEl,
|
|
363
349
|
modifiers,
|
|
364
|
-
placement:
|
|
350
|
+
placement: defaultMenuPlacement,
|
|
365
351
|
popper
|
|
366
352
|
})
|
|
367
353
|
: this.createPopper();
|
|
@@ -425,9 +411,13 @@ export class Combobox {
|
|
|
425
411
|
enabled: true
|
|
426
412
|
};
|
|
427
413
|
flipModifier.options = {
|
|
428
|
-
fallbackPlacements:
|
|
414
|
+
fallbackPlacements: this.flipPlacements || popperMenuFlipPlacements
|
|
415
|
+
};
|
|
416
|
+
const eventListenerModifier = {
|
|
417
|
+
name: "eventListeners",
|
|
418
|
+
enabled: this.active
|
|
429
419
|
};
|
|
430
|
-
return [flipModifier];
|
|
420
|
+
return [flipModifier, eventListenerModifier];
|
|
431
421
|
}
|
|
432
422
|
createPopper() {
|
|
433
423
|
this.destroyPopper();
|
|
@@ -437,7 +427,7 @@ export class Combobox {
|
|
|
437
427
|
el: menuEl,
|
|
438
428
|
modifiers,
|
|
439
429
|
overlayPositioning,
|
|
440
|
-
placement:
|
|
430
|
+
placement: defaultMenuPlacement,
|
|
441
431
|
referenceEl
|
|
442
432
|
});
|
|
443
433
|
}
|
|
@@ -718,15 +708,15 @@ export class Combobox {
|
|
|
718
708
|
return this.visibleItems.map((item) => (h("li", { "aria-selected": (!!item.selected).toString(), id: item.guid ? `${itemUidPrefix}${item.guid}` : null, role: "option", tabindex: "-1" }, item.textLabel)));
|
|
719
709
|
}
|
|
720
710
|
renderPopperContainer() {
|
|
721
|
-
const { active, setMenuEl, setListContainerEl
|
|
711
|
+
const { active, setMenuEl, setListContainerEl } = this;
|
|
722
712
|
const classes = {
|
|
723
713
|
"list-container": true,
|
|
724
714
|
[PopperCSS.animation]: true,
|
|
725
715
|
[PopperCSS.animationActive]: active
|
|
726
716
|
};
|
|
727
|
-
return (h("div", { "aria-hidden": "true", class: { "popper-container": true, "popper-container--active":
|
|
717
|
+
return (h("div", { "aria-hidden": "true", class: { "popper-container": true, "popper-container--active": active }, ref: setMenuEl },
|
|
728
718
|
h("div", { class: classes, onTransitionEnd: this.transitionEnd, ref: setListContainerEl },
|
|
729
|
-
h("ul", { class: { list: true, "list--hide":
|
|
719
|
+
h("ul", { class: { list: true, "list--hide": !active } },
|
|
730
720
|
h("slot", null)))));
|
|
731
721
|
}
|
|
732
722
|
renderIconStart() {
|
|
@@ -740,13 +730,13 @@ export class Combobox {
|
|
|
740
730
|
h("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
741
731
|
}
|
|
742
732
|
render() {
|
|
743
|
-
const {
|
|
733
|
+
const { active, guid, label } = this;
|
|
744
734
|
const single = this.selectionMode === "single";
|
|
745
735
|
return (h(Host, { onKeyDown: this.keydownHandler },
|
|
746
|
-
h("div", { "aria-autocomplete": "list", "aria-expanded":
|
|
736
|
+
h("div", { "aria-autocomplete": "list", "aria-expanded": active.toString(), "aria-haspopup": "listbox", "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-owns": `${listboxUidPrefix}${guid}`, class: {
|
|
747
737
|
wrapper: true,
|
|
748
738
|
"wrapper--single": single || !this.selectedItems.length,
|
|
749
|
-
"wrapper--active":
|
|
739
|
+
"wrapper--active": active
|
|
750
740
|
}, onClick: this.setFocusClick, ref: this.setReferenceEl, role: "combobox" },
|
|
751
741
|
h("div", { class: "grid-input" },
|
|
752
742
|
this.renderIconStart(),
|
|
@@ -1017,6 +1007,26 @@ export class Combobox {
|
|
|
1017
1007
|
"attribute": "intl-remove-tag",
|
|
1018
1008
|
"reflect": false,
|
|
1019
1009
|
"defaultValue": "TEXT.removeTag"
|
|
1010
|
+
},
|
|
1011
|
+
"flipPlacements": {
|
|
1012
|
+
"type": "unknown",
|
|
1013
|
+
"mutable": false,
|
|
1014
|
+
"complexType": {
|
|
1015
|
+
"original": "ComputedPlacement[]",
|
|
1016
|
+
"resolved": "ComputedPlacement[]",
|
|
1017
|
+
"references": {
|
|
1018
|
+
"ComputedPlacement": {
|
|
1019
|
+
"location": "import",
|
|
1020
|
+
"path": "../../utils/popper"
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
},
|
|
1024
|
+
"required": false,
|
|
1025
|
+
"optional": true,
|
|
1026
|
+
"docs": {
|
|
1027
|
+
"tags": [],
|
|
1028
|
+
"text": "Defines the available placements that can be used when a flip occurs."
|
|
1029
|
+
}
|
|
1020
1030
|
}
|
|
1021
1031
|
}; }
|
|
1022
1032
|
static get states() { return {
|
|
@@ -1025,12 +1035,10 @@ export class Combobox {
|
|
|
1025
1035
|
"selectedItems": {},
|
|
1026
1036
|
"visibleItems": {},
|
|
1027
1037
|
"needsIcon": {},
|
|
1028
|
-
"hideList": {},
|
|
1029
1038
|
"activeItemIndex": {},
|
|
1030
1039
|
"activeChipIndex": {},
|
|
1031
1040
|
"activeDescendant": {},
|
|
1032
|
-
"text": {}
|
|
1033
|
-
"open": {}
|
|
1041
|
+
"text": {}
|
|
1034
1042
|
}; }
|
|
1035
1043
|
static get events() { return [{
|
|
1036
1044
|
"method": "calciteLookupChange",
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
export const ComboboxItem = "CALCITE-COMBOBOX-ITEM";
|
|
6
6
|
export const ComboboxItemGroup = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
7
7
|
export const ComboboxChildSelector = `${ComboboxItem}, ${ComboboxItemGroup}`;
|
|
8
|
-
export const ComboboxDefaultPlacement = "bottom-leading";
|
|
9
8
|
export const TEXT = {
|
|
10
9
|
removeTag: "Remove tag"
|
|
11
10
|
};
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Host, Listen, Method, Prop, Watch } from "@stencil/core";
|
|
6
6
|
import { focusElement, getSlotted } from "../../utils/dom";
|
|
7
|
-
import { createPopper, CSS as PopperCSS, updatePopper } from "../../utils/popper";
|
|
8
|
-
import {
|
|
7
|
+
import { createPopper, CSS as PopperCSS, updatePopper, popperMenuFlipPlacements, defaultMenuPlacement } from "../../utils/popper";
|
|
8
|
+
import { SLOTS } from "./resources";
|
|
9
9
|
import { createObserver } from "../../utils/observers";
|
|
10
10
|
import { updateHostInteraction } from "../../utils/interactive";
|
|
11
11
|
/**
|
|
@@ -39,7 +39,7 @@ export class Dropdown {
|
|
|
39
39
|
* Determines where the dropdown will be positioned relative to the button.
|
|
40
40
|
* @default "bottom-leading"
|
|
41
41
|
*/
|
|
42
|
-
this.placement =
|
|
42
|
+
this.placement = defaultMenuPlacement;
|
|
43
43
|
/** specify the scale of dropdown, defaults to m */
|
|
44
44
|
this.scale = "m";
|
|
45
45
|
/**
|
|
@@ -284,9 +284,13 @@ export class Dropdown {
|
|
|
284
284
|
enabled: true
|
|
285
285
|
};
|
|
286
286
|
flipModifier.options = {
|
|
287
|
-
fallbackPlacements:
|
|
287
|
+
fallbackPlacements: this.flipPlacements || popperMenuFlipPlacements
|
|
288
288
|
};
|
|
289
|
-
|
|
289
|
+
const eventListenerModifier = {
|
|
290
|
+
name: "eventListeners",
|
|
291
|
+
enabled: this.active
|
|
292
|
+
};
|
|
293
|
+
return [flipModifier, eventListenerModifier];
|
|
290
294
|
}
|
|
291
295
|
createPopper() {
|
|
292
296
|
this.destroyPopper();
|
|
@@ -434,6 +438,26 @@ export class Dropdown {
|
|
|
434
438
|
"reflect": true,
|
|
435
439
|
"defaultValue": "false"
|
|
436
440
|
},
|
|
441
|
+
"flipPlacements": {
|
|
442
|
+
"type": "unknown",
|
|
443
|
+
"mutable": false,
|
|
444
|
+
"complexType": {
|
|
445
|
+
"original": "ComputedPlacement[]",
|
|
446
|
+
"resolved": "ComputedPlacement[]",
|
|
447
|
+
"references": {
|
|
448
|
+
"ComputedPlacement": {
|
|
449
|
+
"location": "import",
|
|
450
|
+
"path": "../../utils/popper"
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
"required": false,
|
|
455
|
+
"optional": true,
|
|
456
|
+
"docs": {
|
|
457
|
+
"tags": [],
|
|
458
|
+
"text": "Defines the available placements that can be used when a flip occurs."
|
|
459
|
+
}
|
|
460
|
+
},
|
|
437
461
|
"maxItems": {
|
|
438
462
|
"type": "number",
|
|
439
463
|
"mutable": false,
|
|
@@ -479,12 +503,12 @@ export class Dropdown {
|
|
|
479
503
|
"type": "string",
|
|
480
504
|
"mutable": false,
|
|
481
505
|
"complexType": {
|
|
482
|
-
"original": "
|
|
506
|
+
"original": "MenuPlacement",
|
|
483
507
|
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-leading\" | \"bottom-start\" | \"bottom-trailing\" | \"top\" | \"top-end\" | \"top-leading\" | \"top-start\" | \"top-trailing\"",
|
|
484
508
|
"references": {
|
|
485
|
-
"
|
|
509
|
+
"MenuPlacement": {
|
|
486
510
|
"location": "import",
|
|
487
|
-
"path": "
|
|
511
|
+
"path": "../../utils/popper"
|
|
488
512
|
}
|
|
489
513
|
}
|
|
490
514
|
},
|
|
@@ -499,7 +523,7 @@ export class Dropdown {
|
|
|
499
523
|
},
|
|
500
524
|
"attribute": "placement",
|
|
501
525
|
"reflect": true,
|
|
502
|
-
"defaultValue": "
|
|
526
|
+
"defaultValue": "defaultMenuPlacement"
|
|
503
527
|
},
|
|
504
528
|
"scale": {
|
|
505
529
|
"type": "string",
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
|
-
export const DefaultDropdownPlacement = "bottom-leading";
|
|
6
5
|
export const SLOTS = {
|
|
7
6
|
dropdownTrigger: "dropdown-trigger"
|
|
8
7
|
};
|
|
@@ -8,9 +8,8 @@ import { dateFromRange, inRange, dateFromISO, dateToISO, parseDateString, sameDa
|
|
|
8
8
|
import { TEXT } from "../date-picker/resources";
|
|
9
9
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
10
10
|
import { connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
|
|
11
|
-
import { createPopper, updatePopper, CSS as PopperCSS } from "../../utils/popper";
|
|
11
|
+
import { createPopper, updatePopper, CSS as PopperCSS, popperMenuFlipPlacements, defaultMenuPlacement } from "../../utils/popper";
|
|
12
12
|
import { updateHostInteraction } from "../../utils/interactive";
|
|
13
|
-
const DEFAULT_PLACEMENT = "bottom-leading";
|
|
14
13
|
export class InputDatePicker {
|
|
15
14
|
constructor() {
|
|
16
15
|
//--------------------------------------------------------------------------
|
|
@@ -198,7 +197,7 @@ export class InputDatePicker {
|
|
|
198
197
|
? await updatePopper({
|
|
199
198
|
el: menuEl,
|
|
200
199
|
modifiers,
|
|
201
|
-
placement:
|
|
200
|
+
placement: defaultMenuPlacement,
|
|
202
201
|
popper
|
|
203
202
|
})
|
|
204
203
|
: this.createPopper();
|
|
@@ -305,9 +304,13 @@ export class InputDatePicker {
|
|
|
305
304
|
enabled: true
|
|
306
305
|
};
|
|
307
306
|
flipModifier.options = {
|
|
308
|
-
fallbackPlacements:
|
|
307
|
+
fallbackPlacements: this.flipPlacements || popperMenuFlipPlacements
|
|
309
308
|
};
|
|
310
|
-
|
|
309
|
+
const eventListenerModifier = {
|
|
310
|
+
name: "eventListeners",
|
|
311
|
+
enabled: this.active
|
|
312
|
+
};
|
|
313
|
+
return [flipModifier, eventListenerModifier];
|
|
311
314
|
}
|
|
312
315
|
createPopper() {
|
|
313
316
|
this.destroyPopper();
|
|
@@ -320,7 +323,7 @@ export class InputDatePicker {
|
|
|
320
323
|
el: menuEl,
|
|
321
324
|
modifiers,
|
|
322
325
|
overlayPositioning,
|
|
323
|
-
placement:
|
|
326
|
+
placement: defaultMenuPlacement,
|
|
324
327
|
referenceEl
|
|
325
328
|
});
|
|
326
329
|
}
|
|
@@ -504,6 +507,26 @@ export class InputDatePicker {
|
|
|
504
507
|
"attribute": "value",
|
|
505
508
|
"reflect": false
|
|
506
509
|
},
|
|
510
|
+
"flipPlacements": {
|
|
511
|
+
"type": "unknown",
|
|
512
|
+
"mutable": false,
|
|
513
|
+
"complexType": {
|
|
514
|
+
"original": "ComputedPlacement[]",
|
|
515
|
+
"resolved": "ComputedPlacement[]",
|
|
516
|
+
"references": {
|
|
517
|
+
"ComputedPlacement": {
|
|
518
|
+
"location": "import",
|
|
519
|
+
"path": "../../utils/popper"
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
"required": false,
|
|
524
|
+
"optional": true,
|
|
525
|
+
"docs": {
|
|
526
|
+
"tags": [],
|
|
527
|
+
"text": "Defines the available placements that can be used when a flip occurs."
|
|
528
|
+
}
|
|
529
|
+
},
|
|
507
530
|
"headingLevel": {
|
|
508
531
|
"type": "number",
|
|
509
532
|
"mutable": false,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, forceUpdate, Host, Method, Prop, State, Watch, h } from "@stencil/core";
|
|
6
|
-
import { CSS, ARIA_CONTROLS, ARIA_EXPANDED, HEADING_LEVEL, POPOVER_REFERENCE, TEXT } from "./resources";
|
|
6
|
+
import { CSS, ARIA_CONTROLS, ARIA_EXPANDED, HEADING_LEVEL, POPOVER_REFERENCE, TEXT, defaultPopoverPlacement } from "./resources";
|
|
7
7
|
import { defaultOffsetDistance, createPopper, updatePopper, CSS as PopperCSS } from "../../utils/popper";
|
|
8
8
|
import { guid } from "../../utils/guid";
|
|
9
9
|
import { queryElementRoots } from "../../utils/dom";
|
|
@@ -54,7 +54,7 @@ export class Popover {
|
|
|
54
54
|
* Determines where the component will be positioned relative to the referenceElement.
|
|
55
55
|
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
56
56
|
*/
|
|
57
|
-
this.placement =
|
|
57
|
+
this.placement = defaultPopoverPlacement;
|
|
58
58
|
/** Text for close button.
|
|
59
59
|
* @default "Close"
|
|
60
60
|
*/
|
|
@@ -213,7 +213,11 @@ export class Popover {
|
|
|
213
213
|
offset: [offsetSkidding, offsetDistance]
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
|
-
|
|
216
|
+
const eventListenerModifier = {
|
|
217
|
+
name: "eventListeners",
|
|
218
|
+
enabled: this.open
|
|
219
|
+
};
|
|
220
|
+
return [arrowModifier, flipModifier, offsetModifier, eventListenerModifier];
|
|
217
221
|
}
|
|
218
222
|
createPopper() {
|
|
219
223
|
this.destroyPopper();
|
|
@@ -360,12 +364,12 @@ export class Popover {
|
|
|
360
364
|
"type": "unknown",
|
|
361
365
|
"mutable": false,
|
|
362
366
|
"complexType": {
|
|
363
|
-
"original": "
|
|
364
|
-
"resolved": "
|
|
367
|
+
"original": "ComputedPlacement[]",
|
|
368
|
+
"resolved": "ComputedPlacement[]",
|
|
365
369
|
"references": {
|
|
366
|
-
"
|
|
370
|
+
"ComputedPlacement": {
|
|
367
371
|
"location": "import",
|
|
368
|
-
"path": "
|
|
372
|
+
"path": "../../utils/popper"
|
|
369
373
|
}
|
|
370
374
|
}
|
|
371
375
|
},
|
|
@@ -536,7 +540,7 @@ export class Popover {
|
|
|
536
540
|
},
|
|
537
541
|
"attribute": "placement",
|
|
538
542
|
"reflect": true,
|
|
539
|
-
"defaultValue": "
|
|
543
|
+
"defaultValue": "defaultPopoverPlacement"
|
|
540
544
|
},
|
|
541
545
|
"referenceElement": {
|
|
542
546
|
"type": "string",
|
|
@@ -17,6 +17,7 @@ export const CSS = {
|
|
|
17
17
|
export const TEXT = {
|
|
18
18
|
close: "Close"
|
|
19
19
|
};
|
|
20
|
+
export const defaultPopoverPlacement = "auto";
|
|
20
21
|
export const POPOVER_REFERENCE = "data-calcite-popover-reference";
|
|
21
22
|
export const ARIA_CONTROLS = "aria-controls";
|
|
22
23
|
export const ARIA_EXPANDED = "aria-expanded";
|
|
@@ -147,7 +147,11 @@ export class Tooltip {
|
|
|
147
147
|
offset: [offsetSkidding, offsetDistance]
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
|
-
|
|
150
|
+
const eventListenerModifier = {
|
|
151
|
+
name: "eventListeners",
|
|
152
|
+
enabled: this.open
|
|
153
|
+
};
|
|
154
|
+
return [arrowModifier, offsetModifier, eventListenerModifier];
|
|
151
155
|
}
|
|
152
156
|
createPopper() {
|
|
153
157
|
this.destroyPopper();
|
|
@@ -4,6 +4,72 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { createPopper as setupPopper } from "@popperjs/core";
|
|
6
6
|
import { getElementDir } from "./dom";
|
|
7
|
+
export const popperPlacements = [
|
|
8
|
+
"auto",
|
|
9
|
+
"auto-start",
|
|
10
|
+
"auto-end",
|
|
11
|
+
"top-start",
|
|
12
|
+
"top-end",
|
|
13
|
+
"bottom-start",
|
|
14
|
+
"bottom-end",
|
|
15
|
+
"right-start",
|
|
16
|
+
"right-end",
|
|
17
|
+
"left-start",
|
|
18
|
+
"left-end",
|
|
19
|
+
"leading-start",
|
|
20
|
+
"leading",
|
|
21
|
+
"leading-end",
|
|
22
|
+
"trailing-end",
|
|
23
|
+
"trailing",
|
|
24
|
+
"trailing-start",
|
|
25
|
+
"leading-leading",
|
|
26
|
+
"leading-trailing",
|
|
27
|
+
"trailing-leading",
|
|
28
|
+
"trailing-trailing",
|
|
29
|
+
"top-leading",
|
|
30
|
+
"top-trailing",
|
|
31
|
+
"bottom-leading",
|
|
32
|
+
"bottom-trailing",
|
|
33
|
+
"right-leading",
|
|
34
|
+
"right-trailing",
|
|
35
|
+
"left-leading",
|
|
36
|
+
"left-trailing"
|
|
37
|
+
];
|
|
38
|
+
export const popperFlipPlacements = [
|
|
39
|
+
"top",
|
|
40
|
+
"bottom",
|
|
41
|
+
"right",
|
|
42
|
+
"left",
|
|
43
|
+
"top-start",
|
|
44
|
+
"top-end",
|
|
45
|
+
"bottom-start",
|
|
46
|
+
"bottom-end",
|
|
47
|
+
"right-start",
|
|
48
|
+
"right-end",
|
|
49
|
+
"left-start",
|
|
50
|
+
"left-end"
|
|
51
|
+
];
|
|
52
|
+
export const defaultMenuPlacement = "bottom-leading";
|
|
53
|
+
export const popperMenuPlacements = [
|
|
54
|
+
"top-start",
|
|
55
|
+
"top",
|
|
56
|
+
"top-end",
|
|
57
|
+
"bottom-start",
|
|
58
|
+
"bottom",
|
|
59
|
+
"bottom-end",
|
|
60
|
+
"top-leading",
|
|
61
|
+
"top-trailing",
|
|
62
|
+
"bottom-leading",
|
|
63
|
+
"bottom-trailing"
|
|
64
|
+
];
|
|
65
|
+
export const popperMenuFlipPlacements = [
|
|
66
|
+
"top-start",
|
|
67
|
+
"top",
|
|
68
|
+
"top-end",
|
|
69
|
+
"bottom-start",
|
|
70
|
+
"bottom",
|
|
71
|
+
"bottom-end"
|
|
72
|
+
];
|
|
7
73
|
export const CSS = {
|
|
8
74
|
animation: "calcite-popper-anim",
|
|
9
75
|
animationActive: "calcite-popper-anim--active"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
|
-
import { HTMLElement, h, Fragment
|
|
5
|
+
import { proxyCustomElement, HTMLElement, h, Fragment } from '@stencil/core/internal/client';
|
|
6
6
|
import { b as getSlotted } from './dom.js';
|
|
7
7
|
import { S as SLOTS$1, d as defineCustomElement$5 } from './action-menu.js';
|
|
8
8
|
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
|
|
@@ -25,7 +25,7 @@ const ICONS = {
|
|
|
25
25
|
|
|
26
26
|
const actionGroupCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0px;--calcite-action-group-columns:3}:host([columns=\"1\"]){--calcite-action-group-columns:1}:host([columns=\"2\"]){--calcite-action-group-columns:2}:host([columns=\"3\"]){--calcite-action-group-columns:3}:host([columns=\"4\"]){--calcite-action-group-columns:4}:host([columns=\"5\"]){--calcite-action-group-columns:5}:host([columns=\"6\"]){--calcite-action-group-columns:6}:host(:first-child){padding-top:0px}:host([layout=horizontal]){-ms-flex-direction:row;flex-direction:row}:host([layout=grid]){display:grid;place-content:stretch;gap:1px;background-color:var(--calcite-ui-background);padding:1px;grid-template-columns:repeat(var(--calcite-action-group-columns), auto)}";
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
const ActionGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
29
29
|
constructor() {
|
|
30
30
|
super();
|
|
31
31
|
this.__registerHost();
|
|
@@ -93,8 +93,7 @@ let ActionGroup = class extends HTMLElement {
|
|
|
93
93
|
"expanded": ["expandedHandler"]
|
|
94
94
|
}; }
|
|
95
95
|
static get style() { return actionGroupCss; }
|
|
96
|
-
}
|
|
97
|
-
ActionGroup = /*@__PURE__*/ proxyCustomElement(ActionGroup, [1, "calcite-action-group", {
|
|
96
|
+
}, [1, "calcite-action-group", {
|
|
98
97
|
"expanded": [516],
|
|
99
98
|
"layout": [513],
|
|
100
99
|
"columns": [514],
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
|
-
import { HTMLElement, createEvent, h, Fragment
|
|
5
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
|
|
6
6
|
import { b as getSlotted, f as focusElement } from './dom.js';
|
|
7
7
|
import { g as getRoundRobinIndex } from './array.js';
|
|
8
8
|
import { g as guid } from './guid.js';
|
|
@@ -30,7 +30,7 @@ const actionMenuCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyfr
|
|
|
30
30
|
|
|
31
31
|
const SUPPORTED_BUTTON_NAV_KEYS = ["ArrowUp", "ArrowDown"];
|
|
32
32
|
const SUPPORTED_MENU_NAV_KEYS = ["ArrowUp", "ArrowDown", "End", "Home"];
|
|
33
|
-
|
|
33
|
+
const ActionMenu = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
34
34
|
constructor() {
|
|
35
35
|
super();
|
|
36
36
|
this.__registerHost();
|
|
@@ -279,10 +279,10 @@ let ActionMenu = class extends HTMLElement {
|
|
|
279
279
|
return getSlotted(el, SLOTS.tooltip) ? (h("calcite-tooltip-manager", null, menuButtonSlot)) : (menuButtonSlot);
|
|
280
280
|
}
|
|
281
281
|
renderMenuItems() {
|
|
282
|
-
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning } = this;
|
|
282
|
+
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
|
|
283
283
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
284
284
|
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
|
285
|
-
return (h("calcite-popover", { disablePointer: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS.menu, id: menuId, onClick: this.handleCalciteActionClick, onKeyDown: this.menuActionsContainerKeyDown, onKeyUp: this.menuActionsContainerKeyUp, ref: (el) => (this.menuEl = el), role: "menu", tabIndex: -1 }, h("slot", null))));
|
|
285
|
+
return (h("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS.menu, id: menuId, onClick: this.handleCalciteActionClick, onKeyDown: this.menuActionsContainerKeyDown, onKeyUp: this.menuActionsContainerKeyUp, ref: (el) => (this.menuEl = el), role: "menu", tabIndex: -1 }, h("slot", null))));
|
|
286
286
|
}
|
|
287
287
|
render() {
|
|
288
288
|
return (h(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), h("slot", { name: SLOTS.tooltip })));
|
|
@@ -302,8 +302,7 @@ let ActionMenu = class extends HTMLElement {
|
|
|
302
302
|
"activeMenuItemIndex": ["activeMenuItemIndexHandler"]
|
|
303
303
|
}; }
|
|
304
304
|
static get style() { return actionMenuCss; }
|
|
305
|
-
}
|
|
306
|
-
ActionMenu = /*@__PURE__*/ proxyCustomElement(ActionMenu, [1, "calcite-action-menu", {
|
|
305
|
+
}, [1, "calcite-action-menu", {
|
|
307
306
|
"expanded": [516],
|
|
308
307
|
"flipPlacements": [16],
|
|
309
308
|
"label": [1],
|