@esri/calcite-components 1.0.0-next.313 → 1.0.0-next.317
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/p-01c9406e.js +5 -0
- package/dist/calcite/{p-765fb8ed.entry.js → p-058ee7b0.entry.js} +1 -1
- package/dist/calcite/p-0b53c2c6.system.entry.js +5 -0
- package/dist/calcite/p-0d67d5bf.system.entry.js +5 -0
- package/dist/calcite/{p-59a285d8.system.entry.js → p-0f33798d.system.entry.js} +1 -1
- package/dist/calcite/{p-e70cb594.system.entry.js → p-0f9f1f89.system.entry.js} +1 -1
- package/dist/calcite/p-12a9599d.system.entry.js +5 -0
- package/dist/calcite/p-141051c4.entry.js +5 -0
- package/dist/calcite/{p-9338b0bc.entry.js → p-198902ca.entry.js} +1 -1
- package/dist/calcite/p-19d3c50f.system.entry.js +5 -0
- package/dist/calcite/{p-cc788d2e.entry.js → p-1ad123f9.entry.js} +1 -1
- package/dist/calcite/p-1de453ba.entry.js +5 -0
- package/dist/calcite/p-1e4955d7.entry.js +5 -0
- package/dist/calcite/{p-e33fe285.system.entry.js → p-1eb04aad.system.entry.js} +1 -1
- package/dist/calcite/p-1eb85972.entry.js +5 -0
- package/dist/calcite/{p-deb36fde.system.entry.js → p-1f809e6c.system.entry.js} +1 -1
- package/dist/calcite/{p-1c8fe17f.system.entry.js → p-2033f545.system.entry.js} +1 -1
- package/dist/calcite/{p-f9c46578.entry.js → p-23bc2d32.entry.js} +1 -1
- package/dist/calcite/{p-a19e423a.entry.js → p-266ee9db.entry.js} +1 -1
- package/dist/calcite/p-26f8f2d1.js +5 -0
- package/dist/calcite/{p-d6e30c54.entry.js → p-29d4765b.entry.js} +1 -1
- package/dist/calcite/p-2b137143.system.entry.js +5 -0
- package/dist/calcite/{p-4e16515a.system.entry.js → p-30afa3c6.system.entry.js} +1 -1
- package/dist/calcite/p-35c5e6bd.entry.js +5 -0
- package/dist/calcite/{p-ecc00ef0.entry.js → p-3d69fba9.entry.js} +1 -1
- package/dist/calcite/p-3ec67fae.entry.js +5 -0
- package/dist/calcite/{p-6484ffb7.system.entry.js → p-3f07a3e7.system.entry.js} +1 -1
- package/dist/calcite/p-3f82f702.system.entry.js +5 -0
- package/dist/calcite/p-41f87fe7.entry.js +5 -0
- package/dist/calcite/p-42091a1f.system.entry.js +5 -0
- package/dist/calcite/p-43020fb5.js +5 -0
- package/dist/calcite/p-437e9d52.entry.js +5 -0
- package/dist/calcite/p-44a07313.system.entry.js +5 -0
- package/dist/calcite/{p-c34c4414.system.js → p-47f55191.system.js} +1 -1
- package/dist/calcite/{p-e52495d3.system.entry.js → p-4a8b3cf3.system.entry.js} +1 -1
- package/dist/calcite/p-4af85388.system.entry.js +5 -0
- package/dist/calcite/p-4bd82e40.system.js +5 -0
- package/dist/calcite/p-4e47f1a5.entry.js +5 -0
- package/dist/calcite/{p-cced5508.system.entry.js → p-4ee2f6cf.system.entry.js} +1 -1
- package/dist/calcite/p-5035488d.entry.js +5 -0
- package/dist/calcite/p-52578054.js +5 -0
- package/dist/calcite/p-535d635b.system.entry.js +5 -0
- package/dist/calcite/{p-ef39847e.entry.js → p-55bfe4fc.entry.js} +1 -1
- package/dist/calcite/p-58e21391.system.entry.js +5 -0
- package/dist/calcite/p-5c606579.entry.js +5 -0
- package/dist/calcite/p-5dc52ebc.entry.js +5 -0
- package/dist/calcite/p-5dce20e5.system.entry.js +5 -0
- package/dist/calcite/{p-dff7dc90.system.js → p-60916f97.system.js} +1 -1
- package/dist/calcite/p-65748440.entry.js +5 -0
- package/dist/calcite/p-6af46786.entry.js +5 -0
- package/dist/calcite/{p-e6d05ad6.system.entry.js → p-6c5b849f.system.entry.js} +1 -1
- package/dist/calcite/{p-c61ebee9.entry.js → p-702140ce.entry.js} +1 -1
- package/dist/calcite/{p-523bc291.system.js → p-71cdeee3.system.js} +1 -1
- package/dist/calcite/p-71e299a6.system.js +5 -0
- package/dist/calcite/{p-a5e8f022.system.entry.js → p-730b8963.system.entry.js} +1 -1
- package/dist/calcite/p-7311f615.entry.js +5 -0
- package/dist/calcite/{p-4d11efdb.system.entry.js → p-7325e7fc.system.entry.js} +1 -1
- package/dist/calcite/p-732d4acf.entry.js +5 -0
- package/dist/calcite/{p-25caf637.system.entry.js → p-784e4e32.system.entry.js} +1 -1
- package/dist/calcite/p-7bf46f12.system.entry.js +5 -0
- package/dist/calcite/{p-cf03b144.system.entry.js → p-832affcb.system.entry.js} +1 -1
- package/dist/calcite/{p-38bd222a.entry.js → p-87f1831b.entry.js} +1 -1
- package/dist/calcite/p-88784777.system.entry.js +5 -0
- package/dist/calcite/{p-4acfb654.entry.js → p-88b4f504.entry.js} +1 -1
- package/dist/calcite/{p-f1c5e7cf.entry.js → p-89987575.entry.js} +1 -1
- package/dist/calcite/{p-c4cb4fab.system.entry.js → p-8b2d4eac.system.entry.js} +1 -1
- package/dist/calcite/p-8e252799.system.js +1 -1
- package/dist/calcite/{p-ace12b8d.entry.js → p-9339cca3.entry.js} +1 -1
- package/dist/calcite/{p-f07d3627.js → p-935ff1d1.js} +1 -1
- package/dist/calcite/{p-1dd440e6.system.entry.js → p-9470d123.system.entry.js} +1 -1
- package/dist/calcite/p-949c8f43.system.entry.js +5 -0
- package/dist/calcite/{p-840f2937.system.entry.js → p-95a17f62.system.entry.js} +1 -1
- package/dist/calcite/p-9634f89d.entry.js +5 -0
- package/dist/calcite/p-97f8034a.system.entry.js +5 -0
- package/dist/calcite/{p-004460a0.system.entry.js → p-99e52ea7.system.entry.js} +1 -1
- package/dist/calcite/{p-29771742.entry.js → p-9be50494.entry.js} +1 -1
- package/dist/calcite/p-9dff8dc8.system.entry.js +5 -0
- package/dist/calcite/p-a7be885b.entry.js +5 -0
- package/dist/calcite/{p-15f3a0d7.system.entry.js → p-a821e9b3.system.entry.js} +1 -1
- package/dist/calcite/{p-b94bf8ac.system.entry.js → p-a98e5444.system.entry.js} +2 -2
- package/dist/calcite/p-ab8ce668.system.entry.js +5 -0
- package/dist/calcite/{p-74f390e1.system.entry.js → p-ac38b743.system.entry.js} +2 -2
- package/dist/calcite/{p-6296644b.entry.js → p-b16b831d.entry.js} +1 -1
- package/dist/calcite/{p-e956e279.js → p-b22ebcf2.js} +1 -1
- package/dist/calcite/{p-16f2d814.system.entry.js → p-b37b7b9e.system.entry.js} +1 -1
- package/dist/calcite/{p-defcee80.system.entry.js → p-b5d21a5d.system.entry.js} +1 -1
- package/dist/calcite/p-b6aabc24.entry.js +5 -0
- package/dist/calcite/{p-0229a408.js → p-b6b6ec04.js} +1 -1
- package/dist/calcite/p-bf82491b.entry.js +5 -0
- package/dist/calcite/{p-c0e35328.entry.js → p-c0690971.entry.js} +1 -1
- package/dist/calcite/{p-05da7439.entry.js → p-c12e88cd.entry.js} +1 -1
- package/dist/calcite/p-c1794615.entry.js +5 -0
- package/dist/calcite/{p-8baa9ba4.entry.js → p-c9551366.entry.js} +1 -1
- package/dist/calcite/{p-efb2169a.entry.js → p-ca5c0679.entry.js} +1 -1
- package/dist/calcite/{p-e5e3b591.entry.js → p-cd1cdf3c.entry.js} +1 -1
- package/dist/calcite/{p-35a5c74c.system.js → p-d07ff1ee.system.js} +1 -1
- package/dist/calcite/{p-16bb48f6.system.entry.js → p-d102e280.system.entry.js} +1 -1
- package/dist/calcite/p-d4e9d7bb.system.entry.js +5 -0
- package/dist/calcite/p-dab6ebab.system.entry.js +5 -0
- package/dist/calcite/p-ddcf2620.system.entry.js +5 -0
- package/dist/calcite/p-e1da1646.entry.js +5 -0
- package/dist/calcite/{p-a5269f14.system.entry.js → p-e2d18d39.system.entry.js} +1 -1
- package/dist/calcite/p-e5305b02.js +5 -0
- package/dist/calcite/{p-10708f87.system.entry.js → p-e6a47d34.system.entry.js} +1 -1
- package/dist/calcite/p-e78e743b.entry.js +5 -0
- package/dist/calcite/p-e9e13891.entry.js +5 -0
- package/dist/calcite/{p-aec398f3.system.entry.js → p-eeb8dfe5.system.entry.js} +1 -1
- package/dist/calcite/p-f2620bc3.js +5 -0
- package/dist/calcite/{p-f278dd53.entry.js → p-f333e31b.entry.js} +1 -1
- package/dist/calcite/{p-4035444d.system.js → p-f825e054.system.js} +1 -1
- package/dist/calcite/{p-cbf6bb04.system.js → p-f8266626.system.js} +1 -1
- package/dist/calcite/p-f87ba8eb.system.js +5 -0
- package/dist/calcite/{p-578509a8.entry.js → p-f97e1a2d.entry.js} +1 -1
- package/dist/calcite/{p-2451da5b.entry.js → p-fba77b86.entry.js} +1 -1
- package/dist/calcite/{p-289bc56f.entry.js → p-fc32b022.entry.js} +1 -1
- package/dist/calcite/p-fccc1605.entry.js +5 -0
- package/dist/calcite/{p-5f2a9710.system.entry.js → p-fd1ddcd2.system.entry.js} +1 -1
- package/dist/cjs/{CalciteExpandToggle-5f60c98b.js → CalciteExpandToggle-ca629f39.js} +3 -3
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +4 -5
- package/dist/cjs/calcite-action-bar.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-menu.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +13 -18
- package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
- package/dist/cjs/calcite-block_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-button.cjs.entry.js +2 -2
- package/dist/cjs/calcite-card.cjs.entry.js +2 -3
- package/dist/cjs/calcite-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/calcite-chip.cjs.entry.js +1 -1
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +18 -19
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +6 -7
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +13 -14
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +7 -8
- package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
- package/dist/cjs/calcite-filter.cjs.entry.js +2 -16
- package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -14
- package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +2 -2
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +8 -9
- package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +26 -27
- package/dist/cjs/calcite-input.cjs.entry.js +16 -12
- package/dist/cjs/calcite-label.cjs.entry.js +1 -1
- package/dist/cjs/calcite-link.cjs.entry.js +1 -1
- package/dist/cjs/calcite-list_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-modal.cjs.entry.js +3 -4
- package/dist/cjs/calcite-notice.cjs.entry.js +1 -1
- package/dist/cjs/calcite-option_3.cjs.entry.js +5 -4
- package/dist/cjs/calcite-pagination.cjs.entry.js +1 -1
- package/dist/cjs/calcite-panel.cjs.entry.js +2 -2
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-popover_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +23 -26
- package/dist/cjs/calcite-radio_2.cjs.entry.js +10 -11
- package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
- package/dist/cjs/calcite-shell_3.cjs.entry.js +17 -8
- package/dist/cjs/calcite-split-button.cjs.entry.js +1 -1
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +3 -4
- package/dist/cjs/calcite-switch.cjs.entry.js +5 -6
- package/dist/cjs/calcite-tab_4.cjs.entry.js +6 -7
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tile.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tip_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +3 -4
- package/dist/cjs/calcite-tree_2.cjs.entry.js +2 -3
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite.cjs.js +1 -1
- package/dist/cjs/{dom-19822169.js → dom-41ce6029.js} +7 -0
- package/dist/cjs/{form-a5b44a1f.js → form-7f276aa5.js} +1 -1
- package/dist/cjs/{label-8e3552b2.js → label-98a31f7d.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-69dc9583.js → locale-d223548e.js} +1 -1
- package/dist/cjs/{number-e6448e15.js → number-7d42a856.js} +8 -3
- package/dist/cjs/{popper-a7580aca.js → popper-4c24a334.js} +1 -1
- package/dist/cjs/{resources-3f7b51c8.js → resources-c2496817.js} +1 -1
- package/dist/cjs/{resources-cd25dbae.js → resources-fee43dc4.js} +4 -4
- package/dist/collection/components/calcite-accordion/calcite-accordion.js +1 -2
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +1 -2
- package/dist/collection/components/calcite-alert/calcite-alert.js +12 -17
- package/dist/collection/components/calcite-block-section/calcite-block-section.js +2 -2
- package/dist/collection/components/calcite-card/calcite-card.js +1 -2
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +3 -4
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +1 -2
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +1 -2
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +1 -2
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +1 -2
- package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +1 -2
- package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.js +3 -4
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +2 -3
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +1 -2
- package/dist/collection/components/calcite-filter/calcite-filter.js +3 -37
- package/dist/collection/components/calcite-input/calcite-input.js +12 -7
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +1 -2
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +1 -2
- package/dist/collection/components/calcite-modal/calcite-modal.js +2 -3
- package/dist/collection/components/calcite-panel/calcite-panel.js +2 -2
- package/dist/collection/components/calcite-pick-list/shared-list-logic.js +2 -2
- package/dist/collection/components/calcite-pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/calcite-popover/calcite-popover.css +1 -0
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +3 -5
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +17 -20
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +1 -1
- package/dist/collection/components/calcite-select/calcite-select.js +2 -1
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +17 -8
- package/dist/collection/components/calcite-slider/calcite-slider.js +1 -2
- package/dist/collection/components/calcite-stepper/calcite-stepper.js +1 -2
- package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +1 -2
- package/dist/collection/components/calcite-switch/calcite-switch.js +1 -2
- package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.js +3 -3
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +4 -5
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +7 -7
- package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.js +2 -2
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +1 -2
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +1 -2
- package/dist/collection/components/functional/CalciteExpandToggle.js +3 -3
- package/dist/collection/utils/dom.js +6 -0
- package/dist/collection/utils/key.js +0 -23
- package/dist/components/CalciteExpandToggle.js +3 -3
- package/dist/components/calcite-accordion-item.js +1 -2
- package/dist/components/calcite-accordion.js +1 -2
- package/dist/components/calcite-alert.js +12 -17
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +2 -2
- package/dist/components/calcite-button2.js +1 -1
- package/dist/components/calcite-card.js +1 -2
- package/dist/components/calcite-color-picker-hex-input2.js +1 -2
- package/dist/components/calcite-color-picker-swatch2.js +1 -1
- package/dist/components/calcite-color-picker.js +3 -4
- package/dist/components/calcite-combobox.js +1 -2
- package/dist/components/calcite-date-picker-day2.js +1 -2
- package/dist/components/calcite-date-picker-month-header2.js +3 -4
- package/dist/components/calcite-date-picker-month2.js +1 -2
- package/dist/components/calcite-date-picker2.js +1 -2
- package/dist/components/calcite-dropdown-item.js +1 -2
- package/dist/components/calcite-dropdown2.js +2 -3
- package/dist/components/calcite-filter2.js +1 -16
- package/dist/components/calcite-input-date-picker.js +1 -2
- package/dist/components/calcite-input-time-picker.js +1 -2
- package/dist/components/calcite-input2.js +11 -7
- package/dist/components/calcite-modal.js +3 -4
- package/dist/components/calcite-panel.js +2 -2
- package/dist/components/calcite-popover-manager.js +1 -1
- package/dist/components/calcite-popover2.js +1 -1
- package/dist/components/calcite-radio-button.js +3 -4
- package/dist/components/calcite-radio-group.js +17 -20
- package/dist/components/calcite-select.js +2 -1
- package/dist/components/calcite-shell-panel.js +17 -8
- package/dist/components/calcite-slider.js +2 -3
- package/dist/components/calcite-stepper-item.js +1 -2
- package/dist/components/calcite-stepper.js +1 -2
- package/dist/components/calcite-switch2.js +1 -2
- package/dist/components/calcite-tab-nav2.js +3 -3
- package/dist/components/calcite-tab-title2.js +4 -5
- package/dist/components/calcite-time-picker2.js +7 -8
- package/dist/components/calcite-tip-manager.js +2 -2
- package/dist/components/calcite-tooltip-manager2.js +1 -2
- package/dist/components/calcite-tree-item.js +2 -3
- package/dist/components/dom.js +7 -1
- package/dist/components/form.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/number.js +5 -2
- package/dist/components/shared-list-render.js +3 -3
- package/dist/custom-elements/index.js +118 -141
- package/dist/esm/{CalciteExpandToggle-677f2f8b.js → CalciteExpandToggle-4b38a7d1.js} +3 -3
- package/dist/esm/calcite-accordion_2.entry.js +3 -4
- package/dist/esm/calcite-action-bar.entry.js +2 -2
- package/dist/esm/calcite-action-group.entry.js +1 -1
- package/dist/esm/calcite-action-menu.entry.js +1 -1
- package/dist/esm/calcite-action-pad.entry.js +2 -2
- package/dist/esm/calcite-alert.entry.js +13 -18
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block_2.entry.js +2 -2
- package/dist/esm/calcite-button.entry.js +2 -2
- package/dist/esm/calcite-card.entry.js +2 -3
- package/dist/esm/calcite-checkbox.entry.js +3 -3
- package/dist/esm/calcite-chip.entry.js +1 -1
- package/dist/esm/calcite-color-picker_3.entry.js +5 -6
- package/dist/esm/calcite-combobox_3.entry.js +5 -6
- package/dist/esm/calcite-date-picker_4.entry.js +10 -11
- package/dist/esm/calcite-dropdown_3.entry.js +5 -6
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/calcite-filter.entry.js +2 -16
- package/dist/esm/calcite-graph_2.entry.js +4 -5
- package/dist/esm/calcite-icon.entry.js +1 -1
- package/dist/esm/calcite-inline-editable.entry.js +2 -2
- package/dist/esm/calcite-input-date-picker.entry.js +8 -9
- package/dist/esm/calcite-input-message.entry.js +1 -1
- package/dist/esm/calcite-input-time-picker_2.entry.js +11 -12
- package/dist/esm/calcite-input.entry.js +15 -11
- package/dist/esm/calcite-label.entry.js +1 -1
- package/dist/esm/calcite-link.entry.js +1 -1
- package/dist/esm/calcite-list_3.entry.js +1 -1
- package/dist/esm/calcite-modal.entry.js +3 -4
- package/dist/esm/calcite-notice.entry.js +1 -1
- package/dist/esm/calcite-option_3.entry.js +5 -4
- package/dist/esm/calcite-pagination.entry.js +1 -1
- package/dist/esm/calcite-panel.entry.js +2 -2
- package/dist/esm/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm/calcite-popover_2.entry.js +3 -3
- package/dist/esm/calcite-radio-group_2.entry.js +19 -22
- package/dist/esm/calcite-radio_2.entry.js +5 -6
- package/dist/esm/calcite-rating.entry.js +3 -3
- package/dist/esm/calcite-shell_3.entry.js +17 -8
- package/dist/esm/calcite-split-button.entry.js +1 -1
- package/dist/esm/calcite-stepper_2.entry.js +3 -4
- package/dist/esm/calcite-switch.entry.js +4 -5
- package/dist/esm/calcite-tab_4.entry.js +6 -7
- package/dist/esm/calcite-tile-select_2.entry.js +1 -1
- package/dist/esm/calcite-tile.entry.js +1 -1
- package/dist/esm/calcite-tip_3.entry.js +2 -2
- package/dist/esm/calcite-tooltip_2.entry.js +3 -4
- package/dist/esm/calcite-tree_2.entry.js +2 -3
- package/dist/esm/calcite-value-list_2.entry.js +2 -2
- package/dist/esm/calcite.js +1 -1
- package/dist/esm/{dom-f24e866c.js → dom-dc012a45.js} +7 -1
- package/dist/esm/{form-160b0fb5.js → form-6b717ce8.js} +1 -1
- package/dist/esm/{label-5559055d.js → label-0d804a87.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-6c1b85c7.js → locale-641b6af3.js} +1 -1
- package/dist/esm/{number-e7393766.js → number-2609a8bc.js} +5 -2
- package/dist/esm/{popper-f5caedc4.js → popper-ed1eefa6.js} +1 -1
- package/dist/esm/{resources-bece7a88.js → resources-1a5b5ecf.js} +1 -1
- package/dist/esm/{resources-16a2a25a.js → resources-c31631e5.js} +4 -4
- package/dist/esm-es5/CalciteExpandToggle-4b38a7d1.js +5 -0
- 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-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 +1 -1
- 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 +2 -2
- package/dist/esm-es5/calcite-graph_2.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-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-radio-group_2.entry.js +2 -2
- package/dist/esm-es5/calcite-radio_2.entry.js +1 -1
- package/dist/esm-es5/calcite-rating.entry.js +1 -1
- package/dist/esm-es5/calcite-shell_3.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 +2 -2
- 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 +1 -1
- 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/dom-dc012a45.js +5 -0
- package/dist/esm-es5/{form-160b0fb5.js → form-6b717ce8.js} +1 -1
- package/dist/esm-es5/{label-5559055d.js → label-0d804a87.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/locale-641b6af3.js +5 -0
- package/dist/esm-es5/number-2609a8bc.js +5 -0
- package/dist/esm-es5/{popper-f5caedc4.js → popper-ed1eefa6.js} +1 -1
- package/dist/esm-es5/{resources-bece7a88.js → resources-1a5b5ecf.js} +1 -1
- package/dist/esm-es5/{resources-16a2a25a.js → resources-c31631e5.js} +1 -1
- package/dist/extras/docs-json.json +3 -23
- package/dist/types/components/calcite-alert/calcite-alert.d.ts +2 -2
- package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +2 -1
- package/dist/types/components/calcite-filter/calcite-filter.d.ts +1 -10
- package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +1 -2
- package/dist/types/components.d.ts +1 -11
- package/dist/types/utils/dom.d.ts +4 -0
- package/dist/types/utils/key.d.ts +0 -4
- package/hydrate/index.js +117 -141
- package/package.json +7 -6
- package/readme.md +2 -2
- package/dist/calcite/assets/calcite-icon/checkSquareF16.json +0 -1
- package/dist/calcite/assets/calcite-icon/checkSquareF24.json +0 -1
- package/dist/calcite/assets/calcite-icon/checkSquareF32.json +0 -1
- package/dist/calcite/assets/calcite-icon/lineSolid4.json +0 -1
- package/dist/calcite/assets/calcite-icon/squareF16.json +0 -1
- package/dist/calcite/assets/calcite-icon/squareF24.json +0 -1
- package/dist/calcite/assets/calcite-icon/squareF32.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagon16.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagon24.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagon32.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagonF16.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagonF24.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagonF32.json +0 -1
- package/dist/calcite/assets/calcite-icon/xOctagonF16.json +0 -1
- package/dist/calcite/assets/calcite-icon/xOctagonF24.json +0 -1
- package/dist/calcite/assets/calcite-icon/xOctagonF32.json +0 -1
- package/dist/calcite/p-044d603d.system.entry.js +0 -5
- package/dist/calcite/p-0bbe872e.system.entry.js +0 -5
- package/dist/calcite/p-0d807182.system.entry.js +0 -5
- package/dist/calcite/p-0f014648.entry.js +0 -5
- package/dist/calcite/p-0fa1ba75.entry.js +0 -5
- package/dist/calcite/p-127e3513.system.entry.js +0 -5
- package/dist/calcite/p-1434e37e.entry.js +0 -5
- package/dist/calcite/p-1942876c.js +0 -5
- package/dist/calcite/p-1a962bdd.js +0 -5
- package/dist/calcite/p-1aa89347.system.entry.js +0 -5
- package/dist/calcite/p-1b8c3060.entry.js +0 -5
- package/dist/calcite/p-2a714a22.entry.js +0 -5
- package/dist/calcite/p-2aa3007a.entry.js +0 -5
- package/dist/calcite/p-33226317.entry.js +0 -5
- package/dist/calcite/p-34038a94.system.entry.js +0 -5
- package/dist/calcite/p-34e89de8.entry.js +0 -5
- package/dist/calcite/p-362cb320.entry.js +0 -5
- package/dist/calcite/p-3b29e94a.entry.js +0 -5
- package/dist/calcite/p-3dae9da3.js +0 -5
- package/dist/calcite/p-3e6fcede.entry.js +0 -5
- package/dist/calcite/p-45b4443f.entry.js +0 -5
- package/dist/calcite/p-4778c5cf.system.entry.js +0 -5
- package/dist/calcite/p-4f1f83d2.entry.js +0 -5
- package/dist/calcite/p-52cc870b.js +0 -5
- package/dist/calcite/p-55a5535b.system.entry.js +0 -5
- package/dist/calcite/p-56b352bf.system.js +0 -5
- package/dist/calcite/p-592da79d.system.entry.js +0 -5
- package/dist/calcite/p-5eee672a.system.entry.js +0 -5
- package/dist/calcite/p-5efd81e1.entry.js +0 -5
- package/dist/calcite/p-63da2e34.system.entry.js +0 -5
- package/dist/calcite/p-63e60894.entry.js +0 -5
- package/dist/calcite/p-648af80f.system.entry.js +0 -5
- package/dist/calcite/p-6cc23c39.system.js +0 -5
- package/dist/calcite/p-6d44b7d9.system.js +0 -5
- package/dist/calcite/p-72563742.js +0 -5
- package/dist/calcite/p-7ba971b5.system.entry.js +0 -5
- package/dist/calcite/p-81ab443c.entry.js +0 -5
- package/dist/calcite/p-8445bc9c.system.entry.js +0 -5
- package/dist/calcite/p-85032edc.system.entry.js +0 -5
- package/dist/calcite/p-8603b2e1.entry.js +0 -5
- package/dist/calcite/p-91645bf7.system.js +0 -5
- package/dist/calcite/p-9577dfd9.entry.js +0 -5
- package/dist/calcite/p-9a3bed69.entry.js +0 -5
- package/dist/calcite/p-9be6633a.entry.js +0 -5
- package/dist/calcite/p-a46c3870.system.entry.js +0 -5
- package/dist/calcite/p-a61d85db.system.entry.js +0 -5
- package/dist/calcite/p-aaec0d11.system.entry.js +0 -5
- package/dist/calcite/p-b2ab0485.js +0 -5
- package/dist/calcite/p-bdb92546.entry.js +0 -5
- package/dist/calcite/p-bf1812b4.entry.js +0 -5
- package/dist/calcite/p-c87c04a9.entry.js +0 -5
- package/dist/calcite/p-ca3bb147.entry.js +0 -5
- package/dist/calcite/p-cbbfa133.system.entry.js +0 -5
- package/dist/calcite/p-d6f20229.js +0 -5
- package/dist/calcite/p-dbe899c6.system.entry.js +0 -5
- package/dist/calcite/p-e616f9b5.entry.js +0 -5
- package/dist/calcite/p-f1e111f4.system.entry.js +0 -5
- package/dist/cjs/key-8bfb93ec.js +0 -37
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF32.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lineSolid4.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF32.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon32.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF32.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF32.json +0 -1
- package/dist/collection/components/calcite-label/interfaces.js +0 -1
- package/dist/collection/demos/_assets/demo-spacer.js +0 -17
- package/dist/collection/demos/_assets/demo-template.js +0 -13
- package/dist/collection/demos/_assets/head.js +0 -45
- package/dist/components/key.js +0 -33
- package/dist/esm/key-69001a68.js +0 -33
- package/dist/esm-es5/CalciteExpandToggle-677f2f8b.js +0 -5
- package/dist/esm-es5/dom-f24e866c.js +0 -5
- package/dist/esm-es5/key-69001a68.js +0 -5
- package/dist/esm-es5/locale-6c1b85c7.js +0 -5
- package/dist/esm-es5/number-e7393766.js +0 -5
package/hydrate/index.js
CHANGED
|
@@ -5511,34 +5511,6 @@ const cmpModules = new Map, getModule = e => {
|
|
|
5511
5511
|
e["s-p"] = [], e["s-rc"] = [], addHostEventListeners(e, o, t.$listeners$), hostRefs.set(e, o);
|
|
5512
5512
|
}, styles = new Map;
|
|
5513
5513
|
|
|
5514
|
-
/**
|
|
5515
|
-
* Standardize key property of keyboard event (mostly for ie11)
|
|
5516
|
-
*/
|
|
5517
|
-
function getKey(key, dir) {
|
|
5518
|
-
const lookup = {
|
|
5519
|
-
Up: "ArrowUp",
|
|
5520
|
-
Down: "ArrowDown",
|
|
5521
|
-
Left: "ArrowLeft",
|
|
5522
|
-
Right: "ArrowRight",
|
|
5523
|
-
Spacebar: " ",
|
|
5524
|
-
Esc: "Escape"
|
|
5525
|
-
};
|
|
5526
|
-
const adjustedKey = lookup[key] || key;
|
|
5527
|
-
const isRTL = dir === "rtl";
|
|
5528
|
-
if (isRTL && adjustedKey === "ArrowLeft") {
|
|
5529
|
-
return "ArrowRight";
|
|
5530
|
-
}
|
|
5531
|
-
if (isRTL && adjustedKey === "ArrowRight") {
|
|
5532
|
-
return "ArrowLeft";
|
|
5533
|
-
}
|
|
5534
|
-
return adjustedKey;
|
|
5535
|
-
}
|
|
5536
|
-
function isActivationKey(key) {
|
|
5537
|
-
key = getKey(key);
|
|
5538
|
-
return key === "Enter" || key === " ";
|
|
5539
|
-
}
|
|
5540
|
-
const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
5541
|
-
|
|
5542
5514
|
const calciteAccordionCss = "@-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*/.sc-calcite-accordion:root{--calcite-animation-timing:300ms}/*!@.calcite-animate*/.calcite-animate.sc-calcite-accordion{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*/.calcite-animate__in.sc-calcite-accordion{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-accordion{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-accordion{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-accordion{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-accordion:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-accordion-h{display:none}/*!@:host([scale=s])*/[scale=s].sc-calcite-accordion-h{--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-accordion-h{--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-accordion-h{--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host*/.sc-calcite-accordion-h{display:block;position:relative;max-width:100%;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);border-bottom-width:0;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}/*!@:host([appearance=minimal])*/[appearance=minimal].sc-calcite-accordion-h{--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0;border-color:transparent}/*!@:host([appearance=transparent])*/[appearance=transparent].sc-calcite-accordion-h{border-color:transparent;--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}";
|
|
5543
5515
|
|
|
5544
5516
|
/**
|
|
@@ -5598,7 +5570,7 @@ class CalciteAccordion {
|
|
|
5598
5570
|
const item = e.detail.item;
|
|
5599
5571
|
const parent = e.detail.parent;
|
|
5600
5572
|
if (this.el === parent) {
|
|
5601
|
-
const key =
|
|
5573
|
+
const key = item.key;
|
|
5602
5574
|
const itemToFocus = e.target;
|
|
5603
5575
|
const isFirstItem = this.itemIndex(itemToFocus) === 0;
|
|
5604
5576
|
const isLastItem = this.itemIndex(itemToFocus) === this.items.length - 1;
|
|
@@ -5737,6 +5709,12 @@ function nodeListToArray(nodeList) {
|
|
|
5737
5709
|
function getThemeName(el) {
|
|
5738
5710
|
return closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}`) ? "dark" : "light";
|
|
5739
5711
|
}
|
|
5712
|
+
function getElementStyleDir(el) {
|
|
5713
|
+
return window.getComputedStyle(el).direction || "ltr";
|
|
5714
|
+
}
|
|
5715
|
+
/**
|
|
5716
|
+
* @deprecated use getElementStyleDir instead.
|
|
5717
|
+
*/
|
|
5740
5718
|
function getElementDir(el) {
|
|
5741
5719
|
const prop = "dir";
|
|
5742
5720
|
const selector = `[${prop}]`;
|
|
@@ -5914,7 +5892,7 @@ class CalciteAccordionItem {
|
|
|
5914
5892
|
//--------------------------------------------------------------------------
|
|
5915
5893
|
keyDownHandler(e) {
|
|
5916
5894
|
if (e.target === this.el) {
|
|
5917
|
-
switch (
|
|
5895
|
+
switch (e.key) {
|
|
5918
5896
|
case " ":
|
|
5919
5897
|
case "Enter":
|
|
5920
5898
|
this.emitRequestedItem();
|
|
@@ -6244,7 +6222,7 @@ const setTooltipReference = ({ tooltip, referenceElement, expanded, ref }) => {
|
|
|
6244
6222
|
return referenceElement;
|
|
6245
6223
|
};
|
|
6246
6224
|
const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position, tooltip, ref, scale }) => {
|
|
6247
|
-
const rtl =
|
|
6225
|
+
const rtl = getElementStyleDir(el) === "rtl";
|
|
6248
6226
|
const expandText = expanded ? intlCollapse : intlExpand;
|
|
6249
6227
|
const icons = [ICONS$d.chevronsLeft, ICONS$d.chevronsRight];
|
|
6250
6228
|
if (rtl) {
|
|
@@ -6253,7 +6231,7 @@ const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, p
|
|
|
6253
6231
|
const end = getCalcitePosition(position, el) === "end";
|
|
6254
6232
|
const expandIcon = end ? icons[1] : icons[0];
|
|
6255
6233
|
const collapseIcon = end ? icons[0] : icons[1];
|
|
6256
|
-
const actionNode = (hAsync("calcite-action", { dir: rtl ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
|
|
6234
|
+
const actionNode = (hAsync("calcite-action", { dir: getElementDir(el) === "rtl" ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
|
|
6257
6235
|
return tooltip ? hAsync("calcite-tooltip-manager", null, actionNode) : actionNode;
|
|
6258
6236
|
};
|
|
6259
6237
|
|
|
@@ -8319,13 +8297,11 @@ class CalciteAlert {
|
|
|
8319
8297
|
this.queueLength = 0;
|
|
8320
8298
|
/** is the alert queued */
|
|
8321
8299
|
this.queued = false;
|
|
8322
|
-
this.
|
|
8323
|
-
this.trackTimer =
|
|
8300
|
+
this.autoDismissTimeoutId = null;
|
|
8301
|
+
this.trackTimer = Date.now();
|
|
8324
8302
|
/** close and emit the closed alert and the queue */
|
|
8325
8303
|
this.closeAlert = () => {
|
|
8326
|
-
|
|
8327
|
-
this.autoDismissTimeout = null;
|
|
8328
|
-
}
|
|
8304
|
+
this.autoDismissTimeoutId = null;
|
|
8329
8305
|
this.queued = false;
|
|
8330
8306
|
this.active = false;
|
|
8331
8307
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
@@ -8349,10 +8325,10 @@ class CalciteAlert {
|
|
|
8349
8325
|
updateRequestedIcon() {
|
|
8350
8326
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
8351
8327
|
}
|
|
8352
|
-
updateDuration(
|
|
8353
|
-
if (this.autoDismiss &&
|
|
8354
|
-
window.clearTimeout(this.
|
|
8355
|
-
this.
|
|
8328
|
+
updateDuration() {
|
|
8329
|
+
if (this.autoDismiss && this.autoDismissTimeoutId) {
|
|
8330
|
+
window.clearTimeout(this.autoDismissTimeoutId);
|
|
8331
|
+
this.autoDismissTimeoutId = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration] - (Date.now() - this.trackTimer));
|
|
8356
8332
|
}
|
|
8357
8333
|
}
|
|
8358
8334
|
//--------------------------------------------------------------------------
|
|
@@ -8372,9 +8348,7 @@ class CalciteAlert {
|
|
|
8372
8348
|
this.alertLinkEl = this.el.querySelectorAll("calcite-link")[0];
|
|
8373
8349
|
}
|
|
8374
8350
|
disconnectedCallback() {
|
|
8375
|
-
|
|
8376
|
-
window.clearTimeout(this.autoDismissTimeout);
|
|
8377
|
-
}
|
|
8351
|
+
window.clearTimeout(this.autoDismissTimeoutId);
|
|
8378
8352
|
}
|
|
8379
8353
|
render() {
|
|
8380
8354
|
const dir = getElementDir(this.el);
|
|
@@ -8382,14 +8356,13 @@ class CalciteAlert {
|
|
|
8382
8356
|
const queueText = `+${this.queueLength > 2 ? this.queueLength - 1 : 1}`;
|
|
8383
8357
|
const queueCount = (hAsync("div", { class: `${this.queueLength > 1 ? "active " : ""}alert-queue-count` }, hAsync("calcite-chip", { scale: this.scale, value: queueText }, queueText)));
|
|
8384
8358
|
const { active, autoDismiss, label, queued, requestedIcon } = this;
|
|
8385
|
-
const progressBar = hAsync("div", { class: "alert-dismiss-progress" });
|
|
8386
8359
|
const role = autoDismiss ? "alert" : "alertdialog";
|
|
8387
8360
|
const hidden = !active;
|
|
8388
8361
|
return (hAsync(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, role: role }, hAsync("div", { class: {
|
|
8389
8362
|
container: true,
|
|
8390
8363
|
queued,
|
|
8391
8364
|
[CSS_UTILITY.rtl]: dir === "rtl"
|
|
8392
|
-
} }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$l.title }), hAsync("slot", { name: SLOTS$l.message }), hAsync("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ?
|
|
8365
|
+
} }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$l.title }), hAsync("slot", { name: SLOTS$l.message }), hAsync("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
8393
8366
|
}
|
|
8394
8367
|
// when an alert is opened or closed, update queue and determine active alert
|
|
8395
8368
|
alertSync(event) {
|
|
@@ -8435,9 +8408,9 @@ class CalciteAlert {
|
|
|
8435
8408
|
var _a;
|
|
8436
8409
|
if (((_a = this.queue) === null || _a === void 0 ? void 0 : _a[0]) === this.el) {
|
|
8437
8410
|
this.openAlert();
|
|
8438
|
-
if (this.autoDismiss && !this.
|
|
8439
|
-
this.trackTimer =
|
|
8440
|
-
this.
|
|
8411
|
+
if (this.autoDismiss && !this.autoDismissTimeoutId) {
|
|
8412
|
+
this.trackTimer = Date.now();
|
|
8413
|
+
this.autoDismissTimeoutId = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration]);
|
|
8441
8414
|
}
|
|
8442
8415
|
}
|
|
8443
8416
|
else {
|
|
@@ -8981,7 +8954,7 @@ class CalciteBlockSection {
|
|
|
8981
8954
|
}
|
|
8982
8955
|
render() {
|
|
8983
8956
|
const { el, intlCollapse, intlExpand, open, text, toggleDisplay } = this;
|
|
8984
|
-
const dir =
|
|
8957
|
+
const dir = getElementStyleDir(el);
|
|
8985
8958
|
const arrowIcon = open
|
|
8986
8959
|
? ICONS$b.menuOpen
|
|
8987
8960
|
: dir === "rtl"
|
|
@@ -9380,7 +9353,7 @@ class CalciteCard {
|
|
|
9380
9353
|
this.selectCard();
|
|
9381
9354
|
};
|
|
9382
9355
|
this.cardSelectKeyDown = (e) => {
|
|
9383
|
-
switch (
|
|
9356
|
+
switch (e.key) {
|
|
9384
9357
|
case " ":
|
|
9385
9358
|
case "Enter":
|
|
9386
9359
|
this.selectCard();
|
|
@@ -12216,7 +12189,7 @@ class CalciteColorPicker {
|
|
|
12216
12189
|
this.updateChannelsFromColor(this.color);
|
|
12217
12190
|
};
|
|
12218
12191
|
this.handleColorFieldScopeKeyDown = (event) => {
|
|
12219
|
-
const key =
|
|
12192
|
+
const key = event.key;
|
|
12220
12193
|
const arrowKeyToXYOffset = {
|
|
12221
12194
|
ArrowUp: { x: 0, y: -10 },
|
|
12222
12195
|
ArrowRight: { x: 10, y: 0 },
|
|
@@ -12231,7 +12204,7 @@ class CalciteColorPicker {
|
|
|
12231
12204
|
};
|
|
12232
12205
|
this.handleHueScopeKeyDown = (event) => {
|
|
12233
12206
|
const modifier = event.shiftKey ? 10 : 1;
|
|
12234
|
-
const key =
|
|
12207
|
+
const key = event.key;
|
|
12235
12208
|
const arrowKeyToXOffset = {
|
|
12236
12209
|
ArrowUp: 1,
|
|
12237
12210
|
ArrowRight: 1,
|
|
@@ -12569,7 +12542,7 @@ class CalciteColorPicker {
|
|
|
12569
12542
|
// using @Listen as a workaround for VDOM listener not firing
|
|
12570
12543
|
handleChannelKeyUpOrDown(event) {
|
|
12571
12544
|
this.shiftKeyChannelAdjustment = 0;
|
|
12572
|
-
const key =
|
|
12545
|
+
const key = event.key;
|
|
12573
12546
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
12574
12547
|
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$F.channel); })) {
|
|
12575
12548
|
return;
|
|
@@ -13015,7 +12988,7 @@ class CalciteColorPickerHexInput {
|
|
|
13015
12988
|
onInputKeyDown(event) {
|
|
13016
12989
|
const { altKey, ctrlKey, metaKey, shiftKey } = event;
|
|
13017
12990
|
const { internalColor, value } = this;
|
|
13018
|
-
const key =
|
|
12991
|
+
const key = event.key;
|
|
13019
12992
|
if (key === "Tab" || key === "Enter") {
|
|
13020
12993
|
this.onInputChange();
|
|
13021
12994
|
return;
|
|
@@ -15102,7 +15075,7 @@ class CalciteCombobox {
|
|
|
15102
15075
|
this.setFocus();
|
|
15103
15076
|
};
|
|
15104
15077
|
this.keydownHandler = (event) => {
|
|
15105
|
-
const key =
|
|
15078
|
+
const { key } = event;
|
|
15106
15079
|
switch (key) {
|
|
15107
15080
|
case "Tab":
|
|
15108
15081
|
this.activeChipIndex = -1;
|
|
@@ -15978,6 +15951,11 @@ class CalciteComboboxItemGroup {
|
|
|
15978
15951
|
}; }
|
|
15979
15952
|
}
|
|
15980
15953
|
|
|
15954
|
+
function isActivationKey(key) {
|
|
15955
|
+
return key === "Enter" || key === " ";
|
|
15956
|
+
}
|
|
15957
|
+
const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
15958
|
+
|
|
15981
15959
|
function isValidNumber(numberString) {
|
|
15982
15960
|
return !(!numberString || isNaN(Number(numberString)));
|
|
15983
15961
|
}
|
|
@@ -16261,7 +16239,7 @@ class CalciteDatePicker {
|
|
|
16261
16239
|
//
|
|
16262
16240
|
//--------------------------------------------------------------------------
|
|
16263
16241
|
this.keyUpHandler = (e) => {
|
|
16264
|
-
if (
|
|
16242
|
+
if (e.key === "Escape") {
|
|
16265
16243
|
this.reset();
|
|
16266
16244
|
}
|
|
16267
16245
|
};
|
|
@@ -16673,7 +16651,7 @@ class CalciteDatePickerDay {
|
|
|
16673
16651
|
!this.disabled && this.calciteDaySelect.emit();
|
|
16674
16652
|
};
|
|
16675
16653
|
this.keyDownHandler = (e) => {
|
|
16676
|
-
const key =
|
|
16654
|
+
const key = e.key;
|
|
16677
16655
|
if (key === " " || key === "Enter") {
|
|
16678
16656
|
!this.disabled && this.calciteDaySelect.emit();
|
|
16679
16657
|
}
|
|
@@ -16741,7 +16719,7 @@ class CalciteDatePickerMonth {
|
|
|
16741
16719
|
//--------------------------------------------------------------------------
|
|
16742
16720
|
this.keyDownHandler = (e) => {
|
|
16743
16721
|
const isRTL = this.el.dir === "rtl";
|
|
16744
|
-
switch (
|
|
16722
|
+
switch (e.key) {
|
|
16745
16723
|
case "ArrowUp":
|
|
16746
16724
|
e.preventDefault();
|
|
16747
16725
|
this.addDays(-7);
|
|
@@ -17030,7 +17008,7 @@ class CalciteDatePickerMonthHeader {
|
|
|
17030
17008
|
*/
|
|
17031
17009
|
this.onYearKey = (e) => {
|
|
17032
17010
|
const year = e.target.value;
|
|
17033
|
-
switch (
|
|
17011
|
+
switch (e.key) {
|
|
17034
17012
|
case "ArrowDown":
|
|
17035
17013
|
e.preventDefault();
|
|
17036
17014
|
this.setYear(year, -1);
|
|
@@ -17048,7 +17026,7 @@ class CalciteDatePickerMonthHeader {
|
|
|
17048
17026
|
this.handleArrowClick(e, this.prevMonthDate);
|
|
17049
17027
|
};
|
|
17050
17028
|
this.prevMonthKeydown = (e) => {
|
|
17051
|
-
const key =
|
|
17029
|
+
const key = e.key;
|
|
17052
17030
|
if (key === " " || key === "Enter") {
|
|
17053
17031
|
this.prevMonthClick(e);
|
|
17054
17032
|
}
|
|
@@ -17057,7 +17035,7 @@ class CalciteDatePickerMonthHeader {
|
|
|
17057
17035
|
this.handleArrowClick(e, this.nextMonthDate);
|
|
17058
17036
|
};
|
|
17059
17037
|
this.nextMonthKeydown = (e) => {
|
|
17060
|
-
const key =
|
|
17038
|
+
const key = e.key;
|
|
17061
17039
|
if (key === " " || key === "Enter") {
|
|
17062
17040
|
this.nextMonthClick(e);
|
|
17063
17041
|
}
|
|
@@ -17258,7 +17236,7 @@ class CalciteDropdown {
|
|
|
17258
17236
|
};
|
|
17259
17237
|
this.keyDownHandler = (e) => {
|
|
17260
17238
|
const target = e.target;
|
|
17261
|
-
const key =
|
|
17239
|
+
const key = e.key;
|
|
17262
17240
|
if (this.triggers.includes(target) ||
|
|
17263
17241
|
this.triggers.some((trigger) => trigger.contains(target))) {
|
|
17264
17242
|
if (target.nodeName !== "BUTTON" && target.nodeName !== "CALCITE-BUTTON") {
|
|
@@ -17379,7 +17357,7 @@ class CalciteDropdown {
|
|
|
17379
17357
|
const itemToFocus = target.nodeName !== "A" ? target : target.parentNode;
|
|
17380
17358
|
const isFirstItem = this.itemIndex(itemToFocus) === 0;
|
|
17381
17359
|
const isLastItem = this.itemIndex(itemToFocus) === this.items.length - 1;
|
|
17382
|
-
switch (
|
|
17360
|
+
switch (keyboardEvent.key) {
|
|
17383
17361
|
case "Tab":
|
|
17384
17362
|
if (isLastItem && !keyboardEvent.shiftKey) {
|
|
17385
17363
|
this.closeCalciteDropdown();
|
|
@@ -17707,7 +17685,7 @@ class CalciteDropdownItem {
|
|
|
17707
17685
|
this.emitRequestedItem();
|
|
17708
17686
|
}
|
|
17709
17687
|
keyDownHandler(e) {
|
|
17710
|
-
switch (
|
|
17688
|
+
switch (e.key) {
|
|
17711
17689
|
case " ":
|
|
17712
17690
|
this.emitRequestedItem();
|
|
17713
17691
|
if (this.href) {
|
|
@@ -17965,25 +17943,12 @@ class CalciteFilter {
|
|
|
17965
17943
|
this.setFocus();
|
|
17966
17944
|
};
|
|
17967
17945
|
}
|
|
17968
|
-
watchDataHandler(value) {
|
|
17969
|
-
this.items = value;
|
|
17970
|
-
}
|
|
17971
17946
|
watchItemsHandler() {
|
|
17972
17947
|
this.filter(this.value);
|
|
17973
17948
|
}
|
|
17974
17949
|
valueHandler(value) {
|
|
17975
17950
|
this.filter(value);
|
|
17976
17951
|
}
|
|
17977
|
-
//--------------------------------------------------------------------------
|
|
17978
|
-
//
|
|
17979
|
-
// Lifecycle
|
|
17980
|
-
//
|
|
17981
|
-
//--------------------------------------------------------------------------
|
|
17982
|
-
connectedCallback() {
|
|
17983
|
-
if (this.data && !this.items) {
|
|
17984
|
-
this.items = this.data;
|
|
17985
|
-
}
|
|
17986
|
-
}
|
|
17987
17952
|
// --------------------------------------------------------------------------
|
|
17988
17953
|
//
|
|
17989
17954
|
// Public Methods
|
|
@@ -17996,7 +17961,7 @@ class CalciteFilter {
|
|
|
17996
17961
|
updateFiltered(filtered) {
|
|
17997
17962
|
this.filteredItems.length = 0;
|
|
17998
17963
|
this.filteredItems = this.filteredItems.concat(filtered);
|
|
17999
|
-
this.calciteFilterChange.emit(
|
|
17964
|
+
this.calciteFilterChange.emit();
|
|
18000
17965
|
}
|
|
18001
17966
|
// --------------------------------------------------------------------------
|
|
18002
17967
|
//
|
|
@@ -18012,7 +17977,6 @@ class CalciteFilter {
|
|
|
18012
17977
|
}
|
|
18013
17978
|
get el() { return getElement(this); }
|
|
18014
17979
|
static get watchers() { return {
|
|
18015
|
-
"data": ["watchDataHandler"],
|
|
18016
17980
|
"items": ["watchItemsHandler"],
|
|
18017
17981
|
"value": ["valueHandler"]
|
|
18018
17982
|
}; }
|
|
@@ -18021,7 +17985,6 @@ class CalciteFilter {
|
|
|
18021
17985
|
"$flags$": 9,
|
|
18022
17986
|
"$tagName$": "calcite-filter",
|
|
18023
17987
|
"$members$": {
|
|
18024
|
-
"data": [16],
|
|
18025
17988
|
"items": [1040],
|
|
18026
17989
|
"disabled": [516],
|
|
18027
17990
|
"filteredItems": [1040],
|
|
@@ -18867,6 +18830,8 @@ class CalciteInput {
|
|
|
18867
18830
|
* Note that the following types add type-specific icons by default: `date`, `email`, `password`, `search`, `tel`, `time`
|
|
18868
18831
|
*/
|
|
18869
18832
|
this.type = "text";
|
|
18833
|
+
/** input value */
|
|
18834
|
+
this.value = "";
|
|
18870
18835
|
/** keep track of the rendered child type */
|
|
18871
18836
|
this.childElType = "input";
|
|
18872
18837
|
//--------------------------------------------------------------------------
|
|
@@ -18882,13 +18847,13 @@ class CalciteInput {
|
|
|
18882
18847
|
if (this.readOnly || this.disabled) {
|
|
18883
18848
|
return;
|
|
18884
18849
|
}
|
|
18885
|
-
if (this.isClearable &&
|
|
18850
|
+
if (this.isClearable && event.key === "Escape") {
|
|
18886
18851
|
this.clearInputValue(event);
|
|
18887
18852
|
event.preventDefault();
|
|
18888
18853
|
}
|
|
18889
18854
|
};
|
|
18890
18855
|
this.clearInputValue = (nativeEvent) => {
|
|
18891
|
-
this.setValue(
|
|
18856
|
+
this.setValue("", nativeEvent, true);
|
|
18892
18857
|
};
|
|
18893
18858
|
this.inputBlurHandler = () => {
|
|
18894
18859
|
if (this.type === "number") {
|
|
@@ -19030,7 +18995,7 @@ class CalciteInput {
|
|
|
19030
18995
|
this.setLocalizedValue(this.value);
|
|
19031
18996
|
}
|
|
19032
18997
|
if (nativeEvent) {
|
|
19033
|
-
if (this.type === "number" &&
|
|
18998
|
+
if (this.type === "number" && value.endsWith(".")) {
|
|
19034
18999
|
return;
|
|
19035
19000
|
}
|
|
19036
19001
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
@@ -19065,6 +19030,10 @@ class CalciteInput {
|
|
|
19065
19030
|
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
19066
19031
|
}
|
|
19067
19032
|
valueWatcher(newValue) {
|
|
19033
|
+
if (newValue == null) {
|
|
19034
|
+
this.value = "";
|
|
19035
|
+
return;
|
|
19036
|
+
}
|
|
19068
19037
|
if (this.type === "number" &&
|
|
19069
19038
|
this.localizedValue !== localizeNumberString(newValue, this.locale)) {
|
|
19070
19039
|
this.setLocalizedValue(newValue);
|
|
@@ -19077,8 +19046,7 @@ class CalciteInput {
|
|
|
19077
19046
|
this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
19078
19047
|
}
|
|
19079
19048
|
get isClearable() {
|
|
19080
|
-
|
|
19081
|
-
return !this.isTextarea && (this.clearable || this.type === "search") && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
19049
|
+
return !this.isTextarea && (this.clearable || this.type === "search") && this.value.length > 0;
|
|
19082
19050
|
}
|
|
19083
19051
|
get isTextarea() {
|
|
19084
19052
|
return this.childElType === "textarea";
|
|
@@ -19351,7 +19319,7 @@ class CalciteInputDatePicker {
|
|
|
19351
19319
|
this.active = false;
|
|
19352
19320
|
};
|
|
19353
19321
|
this.keyUpHandler = (e) => {
|
|
19354
|
-
if (
|
|
19322
|
+
if (e.key === "Escape") {
|
|
19355
19323
|
this.active = false;
|
|
19356
19324
|
}
|
|
19357
19325
|
};
|
|
@@ -19990,7 +19958,7 @@ class CalciteInputTimePicker {
|
|
|
19990
19958
|
this.internalValueChange = false;
|
|
19991
19959
|
}
|
|
19992
19960
|
keyUpHandler(event) {
|
|
19993
|
-
if (
|
|
19961
|
+
if (event.key === "Escape" && this.active) {
|
|
19994
19962
|
this.active = false;
|
|
19995
19963
|
}
|
|
19996
19964
|
}
|
|
@@ -20803,7 +20771,7 @@ class CalciteModal {
|
|
|
20803
20771
|
return this.hasFooter ? (hAsync("div", { class: CSS$m.footer }, hAsync("span", { class: CSS$m.back }, hAsync("slot", { name: SLOTS$e.back })), hAsync("span", { class: CSS$m.secondary }, hAsync("slot", { name: SLOTS$e.secondary })), hAsync("span", { class: CSS$m.primary }, hAsync("slot", { name: SLOTS$e.primary })))) : null;
|
|
20804
20772
|
}
|
|
20805
20773
|
renderCloseButton() {
|
|
20806
|
-
return !this.disableCloseButton ? (hAsync("button", { "aria-label": this.intlClose, class: CSS$m.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, hAsync("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : "l" }))) : null;
|
|
20774
|
+
return !this.disableCloseButton ? (hAsync("button", { "aria-label": this.intlClose, class: CSS$m.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, hAsync("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
20807
20775
|
}
|
|
20808
20776
|
renderStyle() {
|
|
20809
20777
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -20833,7 +20801,7 @@ class CalciteModal {
|
|
|
20833
20801
|
//
|
|
20834
20802
|
//--------------------------------------------------------------------------
|
|
20835
20803
|
handleEscape(e) {
|
|
20836
|
-
if (this.active && !this.disableEscape &&
|
|
20804
|
+
if (this.active && !this.disableEscape && e.key === "Escape") {
|
|
20837
20805
|
this.close();
|
|
20838
20806
|
}
|
|
20839
20807
|
}
|
|
@@ -21525,7 +21493,7 @@ class CalcitePanel {
|
|
|
21525
21493
|
// --------------------------------------------------------------------------
|
|
21526
21494
|
renderBackButton() {
|
|
21527
21495
|
const { el } = this;
|
|
21528
|
-
const rtl =
|
|
21496
|
+
const rtl = getElementStyleDir(el) === "rtl";
|
|
21529
21497
|
const { showBackButton, intlBack, backButtonClick } = this;
|
|
21530
21498
|
const label = intlBack || TEXT$8.back;
|
|
21531
21499
|
const icon = rtl ? ICONS$5.backRight : ICONS$5.backLeft;
|
|
@@ -21857,8 +21825,8 @@ function selectSiblings(item, deselect = false) {
|
|
|
21857
21825
|
}
|
|
21858
21826
|
let groups;
|
|
21859
21827
|
function handleFilter(event) {
|
|
21860
|
-
const
|
|
21861
|
-
const values =
|
|
21828
|
+
const { filteredItems } = event.currentTarget;
|
|
21829
|
+
const values = filteredItems.map((item) => item.value);
|
|
21862
21830
|
let hasSelectedMatch = false;
|
|
21863
21831
|
if (!groups) {
|
|
21864
21832
|
groups = new Set();
|
|
@@ -21921,7 +21889,7 @@ const List = (_a) => {
|
|
|
21921
21889
|
return (hAsync(Host, Object.assign({ "aria-busy": loading.toString(), "aria-disabled": disabled.toString(), role: "menu" }, rest),
|
|
21922
21890
|
hAsync("section", null,
|
|
21923
21891
|
hAsync("header", { class: { [CSS$i.sticky]: true } },
|
|
21924
|
-
filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder,
|
|
21892
|
+
filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder, dir: getElementDir(el), disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,
|
|
21925
21893
|
hAsync("slot", { name: SLOTS$b.menuActions })),
|
|
21926
21894
|
loading || disabled ? hAsync("calcite-scrim", { loading: loading }) : null,
|
|
21927
21895
|
defaultSlot)));
|
|
@@ -22347,7 +22315,7 @@ const ARIA_CONTROLS = "aria-controls";
|
|
|
22347
22315
|
const ARIA_EXPANDED = "aria-expanded";
|
|
22348
22316
|
const HEADING_LEVEL$2 = 2;
|
|
22349
22317
|
|
|
22350
|
-
const calcitePopoverCss = "@-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*/.sc-calcite-popover:root{--calcite-animation-timing:300ms}/*!@.calcite-animate*/.calcite-animate.sc-calcite-popover{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*/.calcite-animate__in.sc-calcite-popover{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-popover{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-popover{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-popover{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-popover:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-popover-h{display:none}/*!@:host*/.sc-calcite-popover-h{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0)}/*!@.calcite-popper-anim*/.calcite-popper-anim.sc-calcite-popover{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}/*!@:host([data-popper-placement^=bottom]) .calcite-popper-anim*/[data-popper-placement^=bottom].sc-calcite-popover-h .calcite-popper-anim.sc-calcite-popover{-webkit-transform:translateY(-5px);transform:translateY(-5px)}/*!@:host([data-popper-placement^=top]) .calcite-popper-anim*/[data-popper-placement^=top].sc-calcite-popover-h .calcite-popper-anim.sc-calcite-popover{-webkit-transform:translateY(5px);transform:translateY(5px)}/*!@:host([data-popper-placement^=left]) .calcite-popper-anim*/[data-popper-placement^=left].sc-calcite-popover-h .calcite-popper-anim.sc-calcite-popover{-webkit-transform:translateX(5px);transform:translateX(5px)}/*!@:host([data-popper-placement^=right]) .calcite-popper-anim*/[data-popper-placement^=right].sc-calcite-popover-h .calcite-popper-anim.sc-calcite-popover{-webkit-transform:translateX(-5px);transform:translateX(-5px)}/*!@:host([data-popper-placement]) .calcite-popper-anim--active*/[data-popper-placement].sc-calcite-popover-h .calcite-popper-anim--active.sc-calcite-popover{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}/*!@.arrow,\n.arrow::before*/.arrow.sc-calcite-popover,.arrow.sc-calcite-popover::before{position:absolute;width:8px;height:8px;z-index:-1}/*!@.arrow::before*/.arrow.sc-calcite-popover::before{content:\"\";-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}/*!@:host([data-popper-placement^=top]) .arrow*/[data-popper-placement^=top].sc-calcite-popover-h .arrow.sc-calcite-popover{bottom:-4px}/*!@:host([data-popper-placement^=bottom]) .arrow*/[data-popper-placement^=bottom].sc-calcite-popover-h .arrow.sc-calcite-popover{top:-4px}/*!@:host([data-popper-placement^=left]) .arrow*/[data-popper-placement^=left].sc-calcite-popover-h .arrow.sc-calcite-popover{right:-4px}/*!@:host([data-popper-placement^=right]) .arrow*/[data-popper-placement^=right].sc-calcite-popover-h .arrow.sc-calcite-popover{left:-4px}/*!@:host*/.sc-calcite-popover-h{pointer-events:none}/*!@:host([open])*/[open].sc-calcite-popover-h{pointer-events:initial}/*!@.calcite-popper-anim*/.calcite-popper-anim.sc-calcite-popover{background-color:var(--calcite-ui-foreground-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);border-radius:0.25rem}/*!@.arrow::before*/.arrow.sc-calcite-popover::before{outline:1px solid var(--calcite-ui-border-3)}/*!@.header*/.header.sc-calcite-popover{border-width:0;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-3);border-style:solid;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);-ms-flex-pack:start;justify-content:flex-start}/*!@.heading*/.heading.sc-calcite-popover{display:block;-ms-flex:1 1 auto;flex:1 1 auto;font-weight:var(--calcite-font-weight-medium);margin:0;padding-left:1rem;padding-right:1rem;padding-top:0.75rem;padding-bottom:0.75rem;-ms-flex-item-align:center;align-self:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-font-size-0);line-height:1.375;white-space:normal;word-wrap:break-word;word-break:break-word}/*!@.container*/.container.sc-calcite-popover{background-color:var(--calcite-ui-foreground-1);position:relative;display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row;height:100%;color:var(--calcite-ui-text-1);border-radius:0.25rem}/*!@.container.has-header*/.container.has-header.sc-calcite-popover{-ms-flex-direction:column;flex-direction:column}/*!@.content*/.content.sc-calcite-popover{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-item-align:center;align-self:center;height:100%;width:100%}/*!@.calcite--rtl .close-button*/.calcite--rtl.sc-calcite-popover .close-button.sc-calcite-popover{border-radius:0.25rem 0 0 0.25rem}/*!@::slotted(calcite-panel),\n::slotted(calcite-flow)*/.sc-calcite-popover-s>calcite-panel,.sc-calcite-popover-s>calcite-flow{height:100%}";
|
|
22318
|
+
const calcitePopoverCss = "@-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*/.sc-calcite-popover:root{--calcite-animation-timing:300ms}/*!@.calcite-animate*/.calcite-animate.sc-calcite-popover{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*/.calcite-animate__in.sc-calcite-popover{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-popover{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-popover{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-popover{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-popover:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-popover-h{display:none}/*!@:host*/.sc-calcite-popover-h{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0)}/*!@.calcite-popper-anim*/.calcite-popper-anim.sc-calcite-popover{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}/*!@:host([data-popper-placement^=bottom]) .calcite-popper-anim*/[data-popper-placement^=bottom].sc-calcite-popover-h .calcite-popper-anim.sc-calcite-popover{-webkit-transform:translateY(-5px);transform:translateY(-5px)}/*!@:host([data-popper-placement^=top]) .calcite-popper-anim*/[data-popper-placement^=top].sc-calcite-popover-h .calcite-popper-anim.sc-calcite-popover{-webkit-transform:translateY(5px);transform:translateY(5px)}/*!@:host([data-popper-placement^=left]) .calcite-popper-anim*/[data-popper-placement^=left].sc-calcite-popover-h .calcite-popper-anim.sc-calcite-popover{-webkit-transform:translateX(5px);transform:translateX(5px)}/*!@:host([data-popper-placement^=right]) .calcite-popper-anim*/[data-popper-placement^=right].sc-calcite-popover-h .calcite-popper-anim.sc-calcite-popover{-webkit-transform:translateX(-5px);transform:translateX(-5px)}/*!@:host([data-popper-placement]) .calcite-popper-anim--active*/[data-popper-placement].sc-calcite-popover-h .calcite-popper-anim--active.sc-calcite-popover{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}/*!@.arrow,\n.arrow::before*/.arrow.sc-calcite-popover,.arrow.sc-calcite-popover::before{position:absolute;width:8px;height:8px;z-index:-1}/*!@.arrow::before*/.arrow.sc-calcite-popover::before{content:\"\";-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}/*!@:host([data-popper-placement^=top]) .arrow*/[data-popper-placement^=top].sc-calcite-popover-h .arrow.sc-calcite-popover{bottom:-4px}/*!@:host([data-popper-placement^=bottom]) .arrow*/[data-popper-placement^=bottom].sc-calcite-popover-h .arrow.sc-calcite-popover{top:-4px}/*!@:host([data-popper-placement^=left]) .arrow*/[data-popper-placement^=left].sc-calcite-popover-h .arrow.sc-calcite-popover{right:-4px}/*!@:host([data-popper-placement^=right]) .arrow*/[data-popper-placement^=right].sc-calcite-popover-h .arrow.sc-calcite-popover{left:-4px}/*!@:host*/.sc-calcite-popover-h{pointer-events:none}/*!@:host([open])*/[open].sc-calcite-popover-h{pointer-events:initial}/*!@.calcite-popper-anim*/.calcite-popper-anim.sc-calcite-popover{background-color:var(--calcite-ui-foreground-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);border-radius:0.25rem}/*!@.arrow::before*/.arrow.sc-calcite-popover::before{outline:1px solid var(--calcite-ui-border-3)}/*!@.header*/.header.sc-calcite-popover{border-width:0;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-3);border-style:solid;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);-ms-flex-pack:start;justify-content:flex-start}/*!@.heading*/.heading.sc-calcite-popover{display:block;-ms-flex:1 1 auto;flex:1 1 auto;font-weight:var(--calcite-font-weight-medium);margin:0;padding-left:1rem;padding-right:1rem;padding-top:0.75rem;padding-bottom:0.75rem;-ms-flex-item-align:center;align-self:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-font-size-0);line-height:1.375;white-space:normal;word-wrap:break-word;word-break:break-word}/*!@.container*/.container.sc-calcite-popover{background-color:var(--calcite-ui-foreground-1);position:relative;display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row;height:100%;color:var(--calcite-ui-text-1);border-radius:0.25rem}/*!@.container.has-header*/.container.has-header.sc-calcite-popover{-ms-flex-direction:column;flex-direction:column}/*!@.content*/.content.sc-calcite-popover{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-item-align:center;align-self:center;overflow:hidden;height:100%;width:100%}/*!@.calcite--rtl .close-button*/.calcite--rtl.sc-calcite-popover .close-button.sc-calcite-popover{border-radius:0.25rem 0 0 0.25rem}/*!@::slotted(calcite-panel),\n::slotted(calcite-flow)*/.sc-calcite-popover-s>calcite-panel,.sc-calcite-popover-s>calcite-flow{height:100%}";
|
|
22351
22319
|
|
|
22352
22320
|
/**
|
|
22353
22321
|
* @slot - A slot for adding custom content.
|
|
@@ -22888,7 +22856,7 @@ class CalciteRadioButton {
|
|
|
22888
22856
|
};
|
|
22889
22857
|
this.handleKeyDown = (event) => {
|
|
22890
22858
|
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
22891
|
-
const key =
|
|
22859
|
+
const key = event.key;
|
|
22892
22860
|
const { el } = this;
|
|
22893
22861
|
if (keys.indexOf(key) === -1) {
|
|
22894
22862
|
return;
|
|
@@ -22898,7 +22866,7 @@ class CalciteRadioButton {
|
|
|
22898
22866
|
return;
|
|
22899
22867
|
}
|
|
22900
22868
|
let adjustedKey = key;
|
|
22901
|
-
if (
|
|
22869
|
+
if (getElementStyleDir(el) === "rtl") {
|
|
22902
22870
|
if (key === "ArrowRight") {
|
|
22903
22871
|
adjustedKey = "ArrowLeft";
|
|
22904
22872
|
}
|
|
@@ -23226,7 +23194,7 @@ class CalciteRadioGroup {
|
|
|
23226
23194
|
//--------------------------------------------------------------------------
|
|
23227
23195
|
this.handleClick = (event) => {
|
|
23228
23196
|
if (event.target.localName === "calcite-radio-group-item") {
|
|
23229
|
-
this.selectItem(event.target);
|
|
23197
|
+
this.selectItem(event.target, true);
|
|
23230
23198
|
}
|
|
23231
23199
|
};
|
|
23232
23200
|
}
|
|
@@ -23245,7 +23213,6 @@ class CalciteRadioGroup {
|
|
|
23245
23213
|
.pop();
|
|
23246
23214
|
if (match) {
|
|
23247
23215
|
this.selectItem(match);
|
|
23248
|
-
this.calciteRadioGroupChange.emit(match.value);
|
|
23249
23216
|
}
|
|
23250
23217
|
else if (items[0]) {
|
|
23251
23218
|
items[0].tabIndex = 0;
|
|
@@ -23256,7 +23223,7 @@ class CalciteRadioGroup {
|
|
|
23256
23223
|
// Lifecycle
|
|
23257
23224
|
//
|
|
23258
23225
|
//--------------------------------------------------------------------------
|
|
23259
|
-
|
|
23226
|
+
componentWillLoad() {
|
|
23260
23227
|
const items = this.getItems();
|
|
23261
23228
|
const lastChecked = Array.from(items)
|
|
23262
23229
|
.filter((item) => item.checked)
|
|
@@ -23267,6 +23234,8 @@ class CalciteRadioGroup {
|
|
|
23267
23234
|
else if (items[0]) {
|
|
23268
23235
|
items[0].tabIndex = 0;
|
|
23269
23236
|
}
|
|
23237
|
+
}
|
|
23238
|
+
connectedCallback() {
|
|
23270
23239
|
connectLabel(this);
|
|
23271
23240
|
connectForm(this);
|
|
23272
23241
|
}
|
|
@@ -23274,29 +23243,23 @@ class CalciteRadioGroup {
|
|
|
23274
23243
|
disconnectLabel(this);
|
|
23275
23244
|
disconnectForm(this);
|
|
23276
23245
|
}
|
|
23277
|
-
componentDidLoad() {
|
|
23278
|
-
this.hasLoaded = true;
|
|
23279
|
-
}
|
|
23280
23246
|
render() {
|
|
23281
23247
|
return (hAsync(Host, { onClick: this.handleClick, role: "radiogroup", tabIndex: this.disabled ? -1 : null }, hAsync("slot", null), hAsync(HiddenFormInputSlot, { component: this })));
|
|
23282
23248
|
}
|
|
23283
23249
|
handleSelected(event) {
|
|
23284
|
-
|
|
23285
|
-
|
|
23286
|
-
|
|
23287
|
-
event.preventDefault();
|
|
23288
|
-
this.selectItem(event.target);
|
|
23289
|
-
}
|
|
23250
|
+
event.stopPropagation();
|
|
23251
|
+
event.preventDefault();
|
|
23252
|
+
this.selectItem(event.target);
|
|
23290
23253
|
}
|
|
23291
23254
|
handleKeyDown(event) {
|
|
23292
23255
|
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
23293
|
-
const key =
|
|
23256
|
+
const key = event.key;
|
|
23294
23257
|
const { el, selectedItem } = this;
|
|
23295
23258
|
if (keys.indexOf(key) === -1) {
|
|
23296
23259
|
return;
|
|
23297
23260
|
}
|
|
23298
23261
|
let adjustedKey = key;
|
|
23299
|
-
if (
|
|
23262
|
+
if (getElementStyleDir(el) === "rtl") {
|
|
23300
23263
|
if (key === "ArrowRight") {
|
|
23301
23264
|
adjustedKey = "ArrowLeft";
|
|
23302
23265
|
}
|
|
@@ -23316,17 +23279,17 @@ class CalciteRadioGroup {
|
|
|
23316
23279
|
case "ArrowUp":
|
|
23317
23280
|
event.preventDefault();
|
|
23318
23281
|
const previous = selectedIndex < 1 ? items.item(items.length - 1) : items.item(selectedIndex - 1);
|
|
23319
|
-
this.selectItem(previous);
|
|
23282
|
+
this.selectItem(previous, true);
|
|
23320
23283
|
return;
|
|
23321
23284
|
case "ArrowRight":
|
|
23322
23285
|
case "ArrowDown":
|
|
23323
23286
|
event.preventDefault();
|
|
23324
23287
|
const next = selectedIndex === -1 ? items.item(1) : items.item(selectedIndex + 1) || items.item(0);
|
|
23325
|
-
this.selectItem(next);
|
|
23288
|
+
this.selectItem(next, true);
|
|
23326
23289
|
return;
|
|
23327
23290
|
case " ":
|
|
23328
23291
|
event.preventDefault();
|
|
23329
|
-
this.selectItem(event.target);
|
|
23292
|
+
this.selectItem(event.target, true);
|
|
23330
23293
|
return;
|
|
23331
23294
|
default:
|
|
23332
23295
|
return;
|
|
@@ -23353,7 +23316,7 @@ class CalciteRadioGroup {
|
|
|
23353
23316
|
getItems() {
|
|
23354
23317
|
return this.el.querySelectorAll("calcite-radio-group-item");
|
|
23355
23318
|
}
|
|
23356
|
-
selectItem(selected) {
|
|
23319
|
+
selectItem(selected, emit = false) {
|
|
23357
23320
|
if (selected === this.selectedItem) {
|
|
23358
23321
|
return;
|
|
23359
23322
|
}
|
|
@@ -23367,6 +23330,9 @@ class CalciteRadioGroup {
|
|
|
23367
23330
|
item.tabIndex = matches ? 0 : -1;
|
|
23368
23331
|
if (matches) {
|
|
23369
23332
|
match = item;
|
|
23333
|
+
if (emit) {
|
|
23334
|
+
this.calciteRadioGroupChange.emit(match.value);
|
|
23335
|
+
}
|
|
23370
23336
|
}
|
|
23371
23337
|
});
|
|
23372
23338
|
this.selectedItem = match;
|
|
@@ -23829,6 +23795,7 @@ class CalciteSelect {
|
|
|
23829
23795
|
this.updateNativeElement(optionOrGroup, nativeEl);
|
|
23830
23796
|
if (isOption(optionOrGroup) && optionOrGroup.selected) {
|
|
23831
23797
|
this.deselectAllExcept(optionOrGroup);
|
|
23798
|
+
this.selectedOption = optionOrGroup;
|
|
23832
23799
|
}
|
|
23833
23800
|
}
|
|
23834
23801
|
//--------------------------------------------------------------------------
|
|
@@ -23868,7 +23835,7 @@ class CalciteSelect {
|
|
|
23868
23835
|
}
|
|
23869
23836
|
});
|
|
23870
23837
|
if (futureSelected) {
|
|
23871
|
-
|
|
23838
|
+
this.selectedOption = futureSelected;
|
|
23872
23839
|
}
|
|
23873
23840
|
}
|
|
23874
23841
|
toNativeElement(optionOrGroup) {
|
|
@@ -24163,7 +24130,7 @@ class CalciteShellPanel {
|
|
|
24163
24130
|
};
|
|
24164
24131
|
this.getKeyAdjustedWidth = (event) => {
|
|
24165
24132
|
const { key } = event;
|
|
24166
|
-
const { step, stepMultiplier, contentWidthMin, contentWidthMax, initialContentWidth, position } = this;
|
|
24133
|
+
const { el, step, stepMultiplier, contentWidthMin, contentWidthMax, initialContentWidth, position } = this;
|
|
24167
24134
|
const multipliedStep = step * stepMultiplier;
|
|
24168
24135
|
const MOVEMENT_KEYS = [
|
|
24169
24136
|
"ArrowUp",
|
|
@@ -24178,15 +24145,20 @@ class CalciteShellPanel {
|
|
|
24178
24145
|
if (MOVEMENT_KEYS.indexOf(key) > -1) {
|
|
24179
24146
|
event.preventDefault();
|
|
24180
24147
|
}
|
|
24181
|
-
const
|
|
24148
|
+
const dir = getElementStyleDir(el);
|
|
24149
|
+
const directionKeys = ["ArrowLeft", "ArrowRight"];
|
|
24150
|
+
const directionFactor = dir === "rtl" && directionKeys.includes(key) ? -1 : 1;
|
|
24151
|
+
const increaseKeys = key === "ArrowUp" ||
|
|
24152
|
+
(position === "end" ? key === directionKeys[0] : key === directionKeys[1]);
|
|
24182
24153
|
if (increaseKeys) {
|
|
24183
24154
|
const stepValue = event.shiftKey ? multipliedStep : step;
|
|
24184
|
-
return initialContentWidth + stepValue;
|
|
24155
|
+
return initialContentWidth + directionFactor * stepValue;
|
|
24185
24156
|
}
|
|
24186
|
-
const decreaseKeys = key === "ArrowDown" ||
|
|
24157
|
+
const decreaseKeys = key === "ArrowDown" ||
|
|
24158
|
+
(position === "end" ? key === directionKeys[1] : key === directionKeys[0]);
|
|
24187
24159
|
if (decreaseKeys) {
|
|
24188
24160
|
const stepValue = event.shiftKey ? multipliedStep : step;
|
|
24189
|
-
return initialContentWidth - stepValue;
|
|
24161
|
+
return initialContentWidth - directionFactor * stepValue;
|
|
24190
24162
|
}
|
|
24191
24163
|
if (typeof contentWidthMin === "number" && key === "Home") {
|
|
24192
24164
|
return contentWidthMin;
|
|
@@ -24211,9 +24183,13 @@ class CalciteShellPanel {
|
|
|
24211
24183
|
};
|
|
24212
24184
|
this.separatorPointerMove = (event) => {
|
|
24213
24185
|
event.preventDefault();
|
|
24214
|
-
const { initialContentWidth, position, initialClientX } = this;
|
|
24186
|
+
const { el, initialContentWidth, position, initialClientX } = this;
|
|
24215
24187
|
const offset = event.clientX - initialClientX;
|
|
24216
|
-
|
|
24188
|
+
const dir = getElementStyleDir(el);
|
|
24189
|
+
const adjustmentDirection = dir === "rtl" ? -1 : 1;
|
|
24190
|
+
const adjustedOffset = position === "end" ? -adjustmentDirection * offset : adjustmentDirection * offset;
|
|
24191
|
+
const width = initialContentWidth + adjustedOffset;
|
|
24192
|
+
this.setContentWidth(width);
|
|
24217
24193
|
};
|
|
24218
24194
|
this.separatorPointerUp = (event) => {
|
|
24219
24195
|
event.preventDefault();
|
|
@@ -24649,7 +24625,7 @@ class CalciteSlider {
|
|
|
24649
24625
|
const mirror = this.shouldMirror();
|
|
24650
24626
|
const { activeProp, max, min, pageStep, step } = this;
|
|
24651
24627
|
const value = this[activeProp];
|
|
24652
|
-
const key =
|
|
24628
|
+
const key = event.key;
|
|
24653
24629
|
if (key === "Enter" || key === " ") {
|
|
24654
24630
|
event.preventDefault();
|
|
24655
24631
|
return;
|
|
@@ -28419,7 +28395,7 @@ class CalciteStepper {
|
|
|
28419
28395
|
const itemToFocus = e.target;
|
|
28420
28396
|
const isFirstItem = this.itemIndex(itemToFocus) === 0;
|
|
28421
28397
|
const isLastItem = this.itemIndex(itemToFocus) === this.sortedItems.length - 1;
|
|
28422
|
-
switch (
|
|
28398
|
+
switch (item.key) {
|
|
28423
28399
|
case "ArrowDown":
|
|
28424
28400
|
case "ArrowRight":
|
|
28425
28401
|
if (isLastItem) {
|
|
@@ -28654,7 +28630,7 @@ class CalciteStepperItem {
|
|
|
28654
28630
|
//--------------------------------------------------------------------------
|
|
28655
28631
|
keyDownHandler(e) {
|
|
28656
28632
|
if (!this.disabled && e.target === this.el) {
|
|
28657
|
-
switch (
|
|
28633
|
+
switch (e.key) {
|
|
28658
28634
|
case " ":
|
|
28659
28635
|
case "Enter":
|
|
28660
28636
|
this.emitRequestedItem();
|
|
@@ -28775,7 +28751,7 @@ class CalciteSwitch {
|
|
|
28775
28751
|
//
|
|
28776
28752
|
//--------------------------------------------------------------------------
|
|
28777
28753
|
this.keyDownHandler = (e) => {
|
|
28778
|
-
const key =
|
|
28754
|
+
const key = e.key;
|
|
28779
28755
|
if (!this.disabled && (key === " " || key === "Enter")) {
|
|
28780
28756
|
this.toggle();
|
|
28781
28757
|
}
|
|
@@ -29068,7 +29044,7 @@ class CalciteTabNav {
|
|
|
29068
29044
|
}
|
|
29069
29045
|
}
|
|
29070
29046
|
render() {
|
|
29071
|
-
const dir =
|
|
29047
|
+
const dir = getElementStyleDir(this.el);
|
|
29072
29048
|
const width = `${this.indicatorWidth}px`;
|
|
29073
29049
|
const offset = `${this.indicatorOffset}px`;
|
|
29074
29050
|
const indicatorStyle = dir !== "rtl" ? { width, left: offset } : { width, right: offset };
|
|
@@ -29125,7 +29101,7 @@ class CalciteTabNav {
|
|
|
29125
29101
|
}
|
|
29126
29102
|
updateOffsetPosition() {
|
|
29127
29103
|
var _a, _b, _c, _d, _e;
|
|
29128
|
-
const dir =
|
|
29104
|
+
const dir = getElementStyleDir(this.el);
|
|
29129
29105
|
const navWidth = (_a = this.activeIndicatorContainerEl) === null || _a === void 0 ? void 0 : _a.offsetWidth;
|
|
29130
29106
|
const tabLeft = (_b = this.selectedTabEl) === null || _b === void 0 ? void 0 : _b.offsetLeft;
|
|
29131
29107
|
const tabWidth = (_c = this.selectedTabEl) === null || _c === void 0 ? void 0 : _c.offsetWidth;
|
|
@@ -29295,14 +29271,14 @@ class CalciteTabTitle {
|
|
|
29295
29271
|
this.emitActiveTab();
|
|
29296
29272
|
}
|
|
29297
29273
|
keyDownHandler(e) {
|
|
29298
|
-
switch (
|
|
29274
|
+
switch (e.key) {
|
|
29299
29275
|
case " ":
|
|
29300
29276
|
case "Enter":
|
|
29301
29277
|
this.emitActiveTab();
|
|
29302
29278
|
e.preventDefault();
|
|
29303
29279
|
break;
|
|
29304
29280
|
case "ArrowRight":
|
|
29305
|
-
if (
|
|
29281
|
+
if (getElementStyleDir(this.el) === "ltr") {
|
|
29306
29282
|
this.calciteTabsFocusNext.emit();
|
|
29307
29283
|
}
|
|
29308
29284
|
else {
|
|
@@ -29310,7 +29286,7 @@ class CalciteTabTitle {
|
|
|
29310
29286
|
}
|
|
29311
29287
|
break;
|
|
29312
29288
|
case "ArrowLeft":
|
|
29313
|
-
if (
|
|
29289
|
+
if (getElementStyleDir(this.el) === "ltr") {
|
|
29314
29290
|
this.calciteTabsFocusPrevious.emit();
|
|
29315
29291
|
}
|
|
29316
29292
|
else {
|
|
@@ -30010,7 +29986,7 @@ class CalciteTimePicker {
|
|
|
30010
29986
|
}
|
|
30011
29987
|
};
|
|
30012
29988
|
this.hourKeyDownHandler = (event) => {
|
|
30013
|
-
const key =
|
|
29989
|
+
const key = event.key;
|
|
30014
29990
|
if (numberKeys.includes(key)) {
|
|
30015
29991
|
const keyAsNumber = parseInt(key);
|
|
30016
29992
|
let newHour;
|
|
@@ -30098,7 +30074,7 @@ class CalciteTimePicker {
|
|
|
30098
30074
|
}
|
|
30099
30075
|
};
|
|
30100
30076
|
this.meridiemKeyDownHandler = (event) => {
|
|
30101
|
-
switch (
|
|
30077
|
+
switch (event.key) {
|
|
30102
30078
|
case "a":
|
|
30103
30079
|
this.setTime("meridiem", "AM");
|
|
30104
30080
|
break;
|
|
@@ -30134,7 +30110,7 @@ class CalciteTimePicker {
|
|
|
30134
30110
|
}
|
|
30135
30111
|
};
|
|
30136
30112
|
this.minuteKeyDownHandler = (event) => {
|
|
30137
|
-
const key =
|
|
30113
|
+
const key = event.key;
|
|
30138
30114
|
if (numberKeys.includes(key)) {
|
|
30139
30115
|
const keyAsNumber = parseInt(key);
|
|
30140
30116
|
let newMinute;
|
|
@@ -30182,7 +30158,7 @@ class CalciteTimePicker {
|
|
|
30182
30158
|
}
|
|
30183
30159
|
};
|
|
30184
30160
|
this.secondKeyDownHandler = (event) => {
|
|
30185
|
-
const key =
|
|
30161
|
+
const key = event.key;
|
|
30186
30162
|
if (numberKeys.includes(key)) {
|
|
30187
30163
|
const keyAsNumber = parseInt(key);
|
|
30188
30164
|
let newSecond;
|
|
@@ -30291,7 +30267,7 @@ class CalciteTimePicker {
|
|
|
30291
30267
|
this.calciteTimePickerFocus.emit();
|
|
30292
30268
|
}
|
|
30293
30269
|
keyDownHandler(event) {
|
|
30294
|
-
const key =
|
|
30270
|
+
const key = event.key;
|
|
30295
30271
|
switch (this.activeEl) {
|
|
30296
30272
|
case this.hourEl:
|
|
30297
30273
|
if (key === "ArrowRight") {
|
|
@@ -30350,7 +30326,7 @@ class CalciteTimePicker {
|
|
|
30350
30326
|
(_a = this[`${target || "hour"}El`]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
30351
30327
|
}
|
|
30352
30328
|
buttonActivated(event) {
|
|
30353
|
-
const key =
|
|
30329
|
+
const key = event.key;
|
|
30354
30330
|
if (key === " ") {
|
|
30355
30331
|
event.preventDefault();
|
|
30356
30332
|
}
|
|
@@ -30775,7 +30751,7 @@ class CalciteTipManager {
|
|
|
30775
30751
|
//
|
|
30776
30752
|
// --------------------------------------------------------------------------
|
|
30777
30753
|
renderPagination() {
|
|
30778
|
-
const dir =
|
|
30754
|
+
const dir = getElementStyleDir(this.el);
|
|
30779
30755
|
const { selectedIndex, tips, total, intlNext, intlPrevious, intlPaginationLabel } = this;
|
|
30780
30756
|
const nextLabel = intlNext || TEXT$1.next;
|
|
30781
30757
|
const previousLabel = intlPrevious || TEXT$1.previous;
|
|
@@ -31154,7 +31130,7 @@ class CalciteTooltipManager {
|
|
|
31154
31130
|
//
|
|
31155
31131
|
//--------------------------------------------------------------------------
|
|
31156
31132
|
keyUpHandler(event) {
|
|
31157
|
-
if (
|
|
31133
|
+
if (event.key === "Escape") {
|
|
31158
31134
|
const { tooltipEl } = this;
|
|
31159
31135
|
if (tooltipEl) {
|
|
31160
31136
|
this.clearHoverTimeout(tooltipEl);
|
|
@@ -31575,7 +31551,7 @@ class CalciteTreeItem {
|
|
|
31575
31551
|
}
|
|
31576
31552
|
keyDownHandler(e) {
|
|
31577
31553
|
let root;
|
|
31578
|
-
switch (
|
|
31554
|
+
switch (e.key) {
|
|
31579
31555
|
case " ":
|
|
31580
31556
|
this.calciteTreeItemSelect.emit({
|
|
31581
31557
|
modifyCurrentSelection: e.shiftKey,
|