@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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-41ce6029.js');
|
|
11
11
|
const guid = require('./guid-b270f0db.js');
|
|
12
12
|
|
|
13
13
|
const CSS = {
|
|
@@ -7,9 +7,8 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-41ce6029.js');
|
|
11
11
|
const utils = require('./utils-55d67711.js');
|
|
12
|
-
const key = require('./key-8bfb93ec.js');
|
|
13
12
|
const math = require('./math-145c80e2.js');
|
|
14
13
|
const debounce = require('./debounce-95979061.js');
|
|
15
14
|
require('./guid-b270f0db.js');
|
|
@@ -2434,31 +2433,31 @@ let CalciteColorPicker = class {
|
|
|
2434
2433
|
this.updateChannelsFromColor(this.color);
|
|
2435
2434
|
};
|
|
2436
2435
|
this.handleColorFieldScopeKeyDown = (event) => {
|
|
2437
|
-
const key
|
|
2436
|
+
const key = event.key;
|
|
2438
2437
|
const arrowKeyToXYOffset = {
|
|
2439
2438
|
ArrowUp: { x: 0, y: -10 },
|
|
2440
2439
|
ArrowRight: { x: 10, y: 0 },
|
|
2441
2440
|
ArrowDown: { x: 0, y: 10 },
|
|
2442
2441
|
ArrowLeft: { x: -10, y: 0 }
|
|
2443
2442
|
};
|
|
2444
|
-
if (arrowKeyToXYOffset[key
|
|
2443
|
+
if (arrowKeyToXYOffset[key]) {
|
|
2445
2444
|
event.preventDefault();
|
|
2446
|
-
this.scopeOrientation = key
|
|
2447
|
-
this.captureColorFieldColor(this.colorFieldScopeLeft + arrowKeyToXYOffset[key
|
|
2445
|
+
this.scopeOrientation = key === "ArrowDown" || key === "ArrowUp" ? "vertical" : "horizontal";
|
|
2446
|
+
this.captureColorFieldColor(this.colorFieldScopeLeft + arrowKeyToXYOffset[key].x || 0, this.colorFieldScopeTop + arrowKeyToXYOffset[key].y || 0, false);
|
|
2448
2447
|
}
|
|
2449
2448
|
};
|
|
2450
2449
|
this.handleHueScopeKeyDown = (event) => {
|
|
2451
2450
|
const modifier = event.shiftKey ? 10 : 1;
|
|
2452
|
-
const key
|
|
2451
|
+
const key = event.key;
|
|
2453
2452
|
const arrowKeyToXOffset = {
|
|
2454
2453
|
ArrowUp: 1,
|
|
2455
2454
|
ArrowRight: 1,
|
|
2456
2455
|
ArrowDown: -1,
|
|
2457
2456
|
ArrowLeft: -1
|
|
2458
2457
|
};
|
|
2459
|
-
if (arrowKeyToXOffset[key
|
|
2458
|
+
if (arrowKeyToXOffset[key]) {
|
|
2460
2459
|
event.preventDefault();
|
|
2461
|
-
const delta = arrowKeyToXOffset[key
|
|
2460
|
+
const delta = arrowKeyToXOffset[key] * modifier;
|
|
2462
2461
|
const hue = this.baseColorFieldColor.hue();
|
|
2463
2462
|
const color = this.baseColorFieldColor.hue(hue + delta);
|
|
2464
2463
|
this.internalColorSet(color, false);
|
|
@@ -2787,8 +2786,8 @@ let CalciteColorPicker = class {
|
|
|
2787
2786
|
// using @Listen as a workaround for VDOM listener not firing
|
|
2788
2787
|
handleChannelKeyUpOrDown(event) {
|
|
2789
2788
|
this.shiftKeyChannelAdjustment = 0;
|
|
2790
|
-
const key
|
|
2791
|
-
if ((key
|
|
2789
|
+
const key = event.key;
|
|
2790
|
+
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
2792
2791
|
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$2.channel); })) {
|
|
2793
2792
|
return;
|
|
2794
2793
|
}
|
|
@@ -2802,9 +2801,9 @@ let CalciteColorPicker = class {
|
|
|
2802
2801
|
// this gets applied to the input's up/down arrow increment/decrement
|
|
2803
2802
|
const complementaryBump = 9;
|
|
2804
2803
|
this.shiftKeyChannelAdjustment =
|
|
2805
|
-
key
|
|
2804
|
+
key === "ArrowUp" && shiftKey
|
|
2806
2805
|
? complementaryBump
|
|
2807
|
-
: key
|
|
2806
|
+
: key === "ArrowDown" && shiftKey
|
|
2808
2807
|
? -complementaryBump
|
|
2809
2808
|
: 0;
|
|
2810
2809
|
}
|
|
@@ -3184,27 +3183,27 @@ let CalciteColorPickerHexInput = class {
|
|
|
3184
3183
|
onInputKeyDown(event) {
|
|
3185
3184
|
const { altKey, ctrlKey, metaKey, shiftKey } = event;
|
|
3186
3185
|
const { internalColor, value } = this;
|
|
3187
|
-
const key
|
|
3188
|
-
if (key
|
|
3186
|
+
const key = event.key;
|
|
3187
|
+
if (key === "Tab" || key === "Enter") {
|
|
3189
3188
|
this.onInputChange();
|
|
3190
3189
|
return;
|
|
3191
3190
|
}
|
|
3192
|
-
const isNudgeKey = key
|
|
3191
|
+
const isNudgeKey = key === "ArrowDown" || key === "ArrowUp";
|
|
3193
3192
|
if (isNudgeKey) {
|
|
3194
3193
|
if (!value) {
|
|
3195
3194
|
this.value = this.previousNonNullValue;
|
|
3196
3195
|
event.preventDefault();
|
|
3197
3196
|
return;
|
|
3198
3197
|
}
|
|
3199
|
-
const direction = key
|
|
3198
|
+
const direction = key === "ArrowUp" ? 1 : -1;
|
|
3200
3199
|
const bump = shiftKey ? 10 : 1;
|
|
3201
3200
|
this.value = utils.normalizeHex(this.nudgeRGBChannels(internalColor, bump * direction).hex());
|
|
3202
3201
|
event.preventDefault();
|
|
3203
3202
|
return;
|
|
3204
3203
|
}
|
|
3205
3204
|
const withModifiers = altKey || ctrlKey || metaKey;
|
|
3206
|
-
const singleChar = key
|
|
3207
|
-
const validHexChar = utils.hexChar.test(key
|
|
3205
|
+
const singleChar = key.length === 1;
|
|
3206
|
+
const validHexChar = utils.hexChar.test(key);
|
|
3208
3207
|
if (singleChar && !withModifiers && !validHexChar) {
|
|
3209
3208
|
event.preventDefault();
|
|
3210
3209
|
}
|
|
@@ -9,12 +9,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const debounce = require('./debounce-95979061.js');
|
|
11
11
|
const forIn = require('./forIn-a5d553af.js');
|
|
12
|
-
const dom = require('./dom-
|
|
13
|
-
const
|
|
14
|
-
const popper = require('./popper-a7580aca.js');
|
|
12
|
+
const dom = require('./dom-41ce6029.js');
|
|
13
|
+
const popper = require('./popper-4c24a334.js');
|
|
15
14
|
const guid = require('./guid-b270f0db.js');
|
|
16
|
-
const label = require('./label-
|
|
17
|
-
const form = require('./form-
|
|
15
|
+
const label = require('./label-98a31f7d.js');
|
|
16
|
+
const form = require('./form-7f276aa5.js');
|
|
18
17
|
const observers = require('./observers-41837607.js');
|
|
19
18
|
|
|
20
19
|
/**
|
|
@@ -261,8 +260,8 @@ let CalciteCombobox = class {
|
|
|
261
260
|
this.setFocus();
|
|
262
261
|
};
|
|
263
262
|
this.keydownHandler = (event) => {
|
|
264
|
-
const key
|
|
265
|
-
switch (key
|
|
263
|
+
const { key } = event;
|
|
264
|
+
switch (key) {
|
|
266
265
|
case "Tab":
|
|
267
266
|
this.activeChipIndex = -1;
|
|
268
267
|
this.activeItemIndex = -1;
|
|
@@ -7,12 +7,11 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const resources = require('./resources-
|
|
11
|
-
const dom = require('./dom-
|
|
12
|
-
const key = require('./key-8bfb93ec.js');
|
|
10
|
+
const resources = require('./resources-c2496817.js');
|
|
11
|
+
const dom = require('./dom-41ce6029.js');
|
|
13
12
|
const CalciteHeading = require('./CalciteHeading-112c19f9.js');
|
|
14
|
-
require('./locale-
|
|
15
|
-
require('./number-
|
|
13
|
+
require('./locale-d223548e.js');
|
|
14
|
+
require('./number-7d42a856.js');
|
|
16
15
|
require('./guid-b270f0db.js');
|
|
17
16
|
|
|
18
17
|
const calciteDatePickerCss = "@-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:300ms}.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}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-block;vertical-align:top;width:100%;position:relative;overflow:visible;border-radius:0;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1)}:host([scale=s]){max-width:216px}:host([scale=m]){max-width:286px}:host([scale=l]){max-width:398px}";
|
|
@@ -44,7 +43,7 @@ let CalciteDatePicker = class {
|
|
|
44
43
|
//
|
|
45
44
|
//--------------------------------------------------------------------------
|
|
46
45
|
this.keyUpHandler = (e) => {
|
|
47
|
-
if (
|
|
46
|
+
if (e.key === "Escape") {
|
|
48
47
|
this.reset();
|
|
49
48
|
}
|
|
50
49
|
};
|
|
@@ -423,8 +422,8 @@ let CalciteDatePickerDay = class {
|
|
|
423
422
|
!this.disabled && this.calciteDaySelect.emit();
|
|
424
423
|
};
|
|
425
424
|
this.keyDownHandler = (e) => {
|
|
426
|
-
const key
|
|
427
|
-
if (key
|
|
425
|
+
const key = e.key;
|
|
426
|
+
if (key === " " || key === "Enter") {
|
|
428
427
|
!this.disabled && this.calciteDaySelect.emit();
|
|
429
428
|
}
|
|
430
429
|
};
|
|
@@ -469,7 +468,7 @@ let CalciteDatePickerMonth = class {
|
|
|
469
468
|
//--------------------------------------------------------------------------
|
|
470
469
|
this.keyDownHandler = (e) => {
|
|
471
470
|
const isRTL = this.el.dir === "rtl";
|
|
472
|
-
switch (
|
|
471
|
+
switch (e.key) {
|
|
473
472
|
case "ArrowUp":
|
|
474
473
|
e.preventDefault();
|
|
475
474
|
this.addDays(-7);
|
|
@@ -740,7 +739,7 @@ let CalciteDatePickerMonthHeader = class {
|
|
|
740
739
|
*/
|
|
741
740
|
this.onYearKey = (e) => {
|
|
742
741
|
const year = e.target.value;
|
|
743
|
-
switch (
|
|
742
|
+
switch (e.key) {
|
|
744
743
|
case "ArrowDown":
|
|
745
744
|
e.preventDefault();
|
|
746
745
|
this.setYear(year, -1);
|
|
@@ -758,8 +757,8 @@ let CalciteDatePickerMonthHeader = class {
|
|
|
758
757
|
this.handleArrowClick(e, this.prevMonthDate);
|
|
759
758
|
};
|
|
760
759
|
this.prevMonthKeydown = (e) => {
|
|
761
|
-
const key
|
|
762
|
-
if (key
|
|
760
|
+
const key = e.key;
|
|
761
|
+
if (key === " " || key === "Enter") {
|
|
763
762
|
this.prevMonthClick(e);
|
|
764
763
|
}
|
|
765
764
|
};
|
|
@@ -767,8 +766,8 @@ let CalciteDatePickerMonthHeader = class {
|
|
|
767
766
|
this.handleArrowClick(e, this.nextMonthDate);
|
|
768
767
|
};
|
|
769
768
|
this.nextMonthKeydown = (e) => {
|
|
770
|
-
const key
|
|
771
|
-
if (key
|
|
769
|
+
const key = e.key;
|
|
770
|
+
if (key === " " || key === "Enter") {
|
|
772
771
|
this.nextMonthClick(e);
|
|
773
772
|
}
|
|
774
773
|
};
|
|
@@ -7,9 +7,8 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const popper = require('./popper-a7580aca.js');
|
|
10
|
+
const dom = require('./dom-41ce6029.js');
|
|
11
|
+
const popper = require('./popper-4c24a334.js');
|
|
13
12
|
const observers = require('./observers-41837607.js');
|
|
14
13
|
require('./guid-b270f0db.js');
|
|
15
14
|
|
|
@@ -106,11 +105,11 @@ let CalciteDropdown = class {
|
|
|
106
105
|
};
|
|
107
106
|
this.keyDownHandler = (e) => {
|
|
108
107
|
const target = e.target;
|
|
109
|
-
const key
|
|
108
|
+
const key = e.key;
|
|
110
109
|
if (this.triggers.includes(target) ||
|
|
111
110
|
this.triggers.some((trigger) => trigger.contains(target))) {
|
|
112
111
|
if (target.nodeName !== "BUTTON" && target.nodeName !== "CALCITE-BUTTON") {
|
|
113
|
-
switch (key
|
|
112
|
+
switch (key) {
|
|
114
113
|
case " ":
|
|
115
114
|
case "Enter":
|
|
116
115
|
this.openCalciteDropdown();
|
|
@@ -120,7 +119,7 @@ let CalciteDropdown = class {
|
|
|
120
119
|
break;
|
|
121
120
|
}
|
|
122
121
|
}
|
|
123
|
-
else if (this.active && (key
|
|
122
|
+
else if (this.active && (key === "Escape" || (e.shiftKey && key === "Tab"))) {
|
|
124
123
|
this.closeCalciteDropdown();
|
|
125
124
|
}
|
|
126
125
|
}
|
|
@@ -227,7 +226,7 @@ let CalciteDropdown = class {
|
|
|
227
226
|
const itemToFocus = target.nodeName !== "A" ? target : target.parentNode;
|
|
228
227
|
const isFirstItem = this.itemIndex(itemToFocus) === 0;
|
|
229
228
|
const isLastItem = this.itemIndex(itemToFocus) === this.items.length - 1;
|
|
230
|
-
switch (
|
|
229
|
+
switch (keyboardEvent.key) {
|
|
231
230
|
case "Tab":
|
|
232
231
|
if (isLastItem && !keyboardEvent.shiftKey) {
|
|
233
232
|
this.closeCalciteDropdown();
|
|
@@ -517,7 +516,7 @@ let CalciteDropdownItem = class {
|
|
|
517
516
|
this.emitRequestedItem();
|
|
518
517
|
}
|
|
519
518
|
keyDownHandler(e) {
|
|
520
|
-
switch (
|
|
519
|
+
switch (e.key) {
|
|
521
520
|
case " ":
|
|
522
521
|
this.emitRequestedItem();
|
|
523
522
|
if (this.href) {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-41ce6029.js');
|
|
11
11
|
const debounce = require('./debounce-95979061.js');
|
|
12
12
|
const forIn = require('./forIn-a5d553af.js');
|
|
13
13
|
require('./guid-b270f0db.js');
|
|
@@ -90,25 +90,12 @@ let CalciteFilter = class {
|
|
|
90
90
|
this.setFocus();
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
watchDataHandler(value) {
|
|
94
|
-
this.items = value;
|
|
95
|
-
}
|
|
96
93
|
watchItemsHandler() {
|
|
97
94
|
this.filter(this.value);
|
|
98
95
|
}
|
|
99
96
|
valueHandler(value) {
|
|
100
97
|
this.filter(value);
|
|
101
98
|
}
|
|
102
|
-
//--------------------------------------------------------------------------
|
|
103
|
-
//
|
|
104
|
-
// Lifecycle
|
|
105
|
-
//
|
|
106
|
-
//--------------------------------------------------------------------------
|
|
107
|
-
connectedCallback() {
|
|
108
|
-
if (this.data && !this.items) {
|
|
109
|
-
this.items = this.data;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
99
|
// --------------------------------------------------------------------------
|
|
113
100
|
//
|
|
114
101
|
// Public Methods
|
|
@@ -121,7 +108,7 @@ let CalciteFilter = class {
|
|
|
121
108
|
updateFiltered(filtered) {
|
|
122
109
|
this.filteredItems.length = 0;
|
|
123
110
|
this.filteredItems = this.filteredItems.concat(filtered);
|
|
124
|
-
this.calciteFilterChange.emit(
|
|
111
|
+
this.calciteFilterChange.emit();
|
|
125
112
|
}
|
|
126
113
|
// --------------------------------------------------------------------------
|
|
127
114
|
//
|
|
@@ -137,7 +124,6 @@ let CalciteFilter = class {
|
|
|
137
124
|
}
|
|
138
125
|
get el() { return index.getElement(this); }
|
|
139
126
|
static get watchers() { return {
|
|
140
|
-
"data": ["watchDataHandler"],
|
|
141
127
|
"items": ["watchItemsHandler"],
|
|
142
128
|
"value": ["valueHandler"]
|
|
143
129
|
}; }
|
|
@@ -8,11 +8,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const guid = require('./guid-b270f0db.js');
|
|
11
|
-
const
|
|
12
|
-
const dom = require('./dom-19822169.js');
|
|
11
|
+
const dom = require('./dom-41ce6029.js');
|
|
13
12
|
const math = require('./math-145c80e2.js');
|
|
14
|
-
const label = require('./label-
|
|
15
|
-
const form = require('./form-
|
|
13
|
+
const label = require('./label-98a31f7d.js');
|
|
14
|
+
const form = require('./form-7f276aa5.js');
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* Calculate slope of the tangents
|
|
@@ -509,34 +508,34 @@ let CalciteSlider = class {
|
|
|
509
508
|
const mirror = this.shouldMirror();
|
|
510
509
|
const { activeProp, max, min, pageStep, step } = this;
|
|
511
510
|
const value = this[activeProp];
|
|
512
|
-
const key
|
|
513
|
-
if (key
|
|
511
|
+
const key = event.key;
|
|
512
|
+
if (key === "Enter" || key === " ") {
|
|
514
513
|
event.preventDefault();
|
|
515
514
|
return;
|
|
516
515
|
}
|
|
517
516
|
let adjustment;
|
|
518
|
-
if (key
|
|
519
|
-
const directionFactor = mirror && key
|
|
517
|
+
if (key === "ArrowUp" || key === "ArrowRight") {
|
|
518
|
+
const directionFactor = mirror && key === "ArrowRight" ? -1 : 1;
|
|
520
519
|
adjustment = value + step * directionFactor;
|
|
521
520
|
}
|
|
522
|
-
else if (key
|
|
523
|
-
const directionFactor = mirror && key
|
|
521
|
+
else if (key === "ArrowDown" || key === "ArrowLeft") {
|
|
522
|
+
const directionFactor = mirror && key === "ArrowLeft" ? -1 : 1;
|
|
524
523
|
adjustment = value - step * directionFactor;
|
|
525
524
|
}
|
|
526
|
-
else if (key
|
|
525
|
+
else if (key === "PageUp") {
|
|
527
526
|
if (pageStep) {
|
|
528
527
|
adjustment = value + pageStep;
|
|
529
528
|
}
|
|
530
529
|
}
|
|
531
|
-
else if (key
|
|
530
|
+
else if (key === "PageDown") {
|
|
532
531
|
if (pageStep) {
|
|
533
532
|
adjustment = value - pageStep;
|
|
534
533
|
}
|
|
535
534
|
}
|
|
536
|
-
else if (key
|
|
535
|
+
else if (key === "Home") {
|
|
537
536
|
adjustment = min;
|
|
538
537
|
}
|
|
539
|
-
else if (key
|
|
538
|
+
else if (key === "End") {
|
|
540
539
|
adjustment = max;
|
|
541
540
|
}
|
|
542
541
|
if (isNaN(adjustment)) {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-41ce6029.js');
|
|
11
11
|
const observers = require('./observers-41837607.js');
|
|
12
12
|
require('./guid-b270f0db.js');
|
|
13
13
|
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
11
|
-
const label = require('./label-
|
|
10
|
+
const dom = require('./dom-41ce6029.js');
|
|
11
|
+
const label = require('./label-98a31f7d.js');
|
|
12
12
|
require('./guid-b270f0db.js');
|
|
13
13
|
|
|
14
14
|
const CSS = {
|
|
@@ -7,14 +7,13 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const resources = require('./resources-
|
|
11
|
-
const dom = require('./dom-
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
require('./
|
|
17
|
-
require('./number-e6448e15.js');
|
|
10
|
+
const resources = require('./resources-c2496817.js');
|
|
11
|
+
const dom = require('./dom-41ce6029.js');
|
|
12
|
+
const label = require('./label-98a31f7d.js');
|
|
13
|
+
const form = require('./form-7f276aa5.js');
|
|
14
|
+
const popper = require('./popper-4c24a334.js');
|
|
15
|
+
require('./locale-d223548e.js');
|
|
16
|
+
require('./number-7d42a856.js');
|
|
18
17
|
require('./guid-b270f0db.js');
|
|
19
18
|
|
|
20
19
|
const calciteInputDatePickerCss = "@-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:300ms}.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{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-webkit-box-shadow:none;box-shadow:none;display:inline-block;vertical-align:top;width:100%;position:relative;overflow:visible}:host .menu-container .calcite-popper-anim{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 .menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host .menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host .menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host .menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host .menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.calendar-picker-wrapper{-webkit-box-shadow:none;box-shadow:none;position:static;width:100%;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:-ms-flexbox;display:flex}:host([range]) .input-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}:host([range]) .horizontal-arrow-container{background-color:var(--calcite-ui-background);padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-left-width:0;border-right-width:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{top:1.5rem;left:0;padding-left:0.625rem;padding-right:0.625rem;margin-left:1px;margin-right:1px;position:absolute;z-index:10;background-color:var(--calcite-ui-foreground-1)}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{width:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{width:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{width:398px}.menu-container{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}:host([active]) .menu-container{visibility:visible;pointer-events:auto}.input .calcite-input__wrapper{margin-top:0}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{top:1.5rem;padding-left:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{width:0.75rem;height:0.75rem;min-width:0}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{top:2.25rem;padding-left:0.875rem;padding-right:0.875rem}:host([range][layout=vertical][active]) .vertical-arrow-container{display:none}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
@@ -83,7 +82,7 @@ let CalciteInputDatePicker = class {
|
|
|
83
82
|
this.active = false;
|
|
84
83
|
};
|
|
85
84
|
this.keyUpHandler = (e) => {
|
|
86
|
-
if (
|
|
85
|
+
if (e.key === "Escape") {
|
|
87
86
|
this.active = false;
|
|
88
87
|
}
|
|
89
88
|
};
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-41ce6029.js');
|
|
11
11
|
require('./guid-b270f0db.js');
|
|
12
12
|
|
|
13
13
|
var StatusIconDefaults;
|
|
@@ -8,11 +8,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const guid = require('./guid-b270f0db.js');
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
require('./dom-19822169.js');
|
|
11
|
+
const number = require('./number-7d42a856.js');
|
|
12
|
+
const label = require('./label-98a31f7d.js');
|
|
13
|
+
const form = require('./form-7f276aa5.js');
|
|
14
|
+
require('./dom-41ce6029.js');
|
|
16
15
|
|
|
17
16
|
const maxTenthForMinuteAndSecond = 5;
|
|
18
17
|
function getMeridiem(hour) {
|
|
@@ -181,7 +180,7 @@ let CalciteInputTimePicker = class {
|
|
|
181
180
|
this.internalValueChange = false;
|
|
182
181
|
}
|
|
183
182
|
keyUpHandler(event) {
|
|
184
|
-
if (
|
|
183
|
+
if (event.key === "Escape" && this.active) {
|
|
185
184
|
this.active = false;
|
|
186
185
|
}
|
|
187
186
|
}
|
|
@@ -423,9 +422,9 @@ let CalciteTimePicker = class {
|
|
|
423
422
|
}
|
|
424
423
|
};
|
|
425
424
|
this.hourKeyDownHandler = (event) => {
|
|
426
|
-
const key
|
|
427
|
-
if (
|
|
428
|
-
const keyAsNumber = parseInt(key
|
|
425
|
+
const key = event.key;
|
|
426
|
+
if (number.numberKeys.includes(key)) {
|
|
427
|
+
const keyAsNumber = parseInt(key);
|
|
429
428
|
let newHour;
|
|
430
429
|
if (number.isValidNumber(this.hour)) {
|
|
431
430
|
switch (this.hourDisplayFormat) {
|
|
@@ -454,7 +453,7 @@ let CalciteTimePicker = class {
|
|
|
454
453
|
this.setTime("hour", newHour);
|
|
455
454
|
}
|
|
456
455
|
else {
|
|
457
|
-
switch (key
|
|
456
|
+
switch (key) {
|
|
458
457
|
case "Backspace":
|
|
459
458
|
case "Delete":
|
|
460
459
|
this.setTime("hour", null);
|
|
@@ -511,7 +510,7 @@ let CalciteTimePicker = class {
|
|
|
511
510
|
}
|
|
512
511
|
};
|
|
513
512
|
this.meridiemKeyDownHandler = (event) => {
|
|
514
|
-
switch (
|
|
513
|
+
switch (event.key) {
|
|
515
514
|
case "a":
|
|
516
515
|
this.setTime("meridiem", "AM");
|
|
517
516
|
break;
|
|
@@ -547,9 +546,9 @@ let CalciteTimePicker = class {
|
|
|
547
546
|
}
|
|
548
547
|
};
|
|
549
548
|
this.minuteKeyDownHandler = (event) => {
|
|
550
|
-
const key
|
|
551
|
-
if (
|
|
552
|
-
const keyAsNumber = parseInt(key
|
|
549
|
+
const key = event.key;
|
|
550
|
+
if (number.numberKeys.includes(key)) {
|
|
551
|
+
const keyAsNumber = parseInt(key);
|
|
553
552
|
let newMinute;
|
|
554
553
|
if (number.isValidNumber(this.minute) && this.minute.startsWith("0")) {
|
|
555
554
|
const minuteAsNumber = parseInt(this.minute);
|
|
@@ -564,7 +563,7 @@ let CalciteTimePicker = class {
|
|
|
564
563
|
this.setTime("minute", newMinute);
|
|
565
564
|
}
|
|
566
565
|
else {
|
|
567
|
-
switch (key
|
|
566
|
+
switch (key) {
|
|
568
567
|
case "Backspace":
|
|
569
568
|
case "Delete":
|
|
570
569
|
this.setTime("minute", null);
|
|
@@ -595,9 +594,9 @@ let CalciteTimePicker = class {
|
|
|
595
594
|
}
|
|
596
595
|
};
|
|
597
596
|
this.secondKeyDownHandler = (event) => {
|
|
598
|
-
const key
|
|
599
|
-
if (
|
|
600
|
-
const keyAsNumber = parseInt(key
|
|
597
|
+
const key = event.key;
|
|
598
|
+
if (number.numberKeys.includes(key)) {
|
|
599
|
+
const keyAsNumber = parseInt(key);
|
|
601
600
|
let newSecond;
|
|
602
601
|
if (number.isValidNumber(this.second) && this.second.startsWith("0")) {
|
|
603
602
|
const secondAsNumber = parseInt(this.second);
|
|
@@ -612,7 +611,7 @@ let CalciteTimePicker = class {
|
|
|
612
611
|
this.setTime("second", newSecond);
|
|
613
612
|
}
|
|
614
613
|
else {
|
|
615
|
-
switch (key
|
|
614
|
+
switch (key) {
|
|
616
615
|
case "Backspace":
|
|
617
616
|
case "Delete":
|
|
618
617
|
this.setTime("second", null);
|
|
@@ -704,15 +703,15 @@ let CalciteTimePicker = class {
|
|
|
704
703
|
this.calciteTimePickerFocus.emit();
|
|
705
704
|
}
|
|
706
705
|
keyDownHandler(event) {
|
|
707
|
-
const key
|
|
706
|
+
const key = event.key;
|
|
708
707
|
switch (this.activeEl) {
|
|
709
708
|
case this.hourEl:
|
|
710
|
-
if (key
|
|
709
|
+
if (key === "ArrowRight") {
|
|
711
710
|
this.setFocus("minute");
|
|
712
711
|
}
|
|
713
712
|
break;
|
|
714
713
|
case this.minuteEl:
|
|
715
|
-
switch (key
|
|
714
|
+
switch (key) {
|
|
716
715
|
case "ArrowLeft":
|
|
717
716
|
this.setFocus("hour");
|
|
718
717
|
break;
|
|
@@ -727,7 +726,7 @@ let CalciteTimePicker = class {
|
|
|
727
726
|
}
|
|
728
727
|
break;
|
|
729
728
|
case this.secondEl:
|
|
730
|
-
switch (key
|
|
729
|
+
switch (key) {
|
|
731
730
|
case "ArrowLeft":
|
|
732
731
|
this.setFocus("minute");
|
|
733
732
|
break;
|
|
@@ -739,7 +738,7 @@ let CalciteTimePicker = class {
|
|
|
739
738
|
}
|
|
740
739
|
break;
|
|
741
740
|
case this.meridiemEl:
|
|
742
|
-
switch (key
|
|
741
|
+
switch (key) {
|
|
743
742
|
case "ArrowLeft":
|
|
744
743
|
if (this.step !== 60) {
|
|
745
744
|
this.setFocus("second");
|
|
@@ -763,11 +762,11 @@ let CalciteTimePicker = class {
|
|
|
763
762
|
(_a = this[`${target || "hour"}El`]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
764
763
|
}
|
|
765
764
|
buttonActivated(event) {
|
|
766
|
-
const key
|
|
767
|
-
if (key
|
|
765
|
+
const key = event.key;
|
|
766
|
+
if (key === " ") {
|
|
768
767
|
event.preventDefault();
|
|
769
768
|
}
|
|
770
|
-
return
|
|
769
|
+
return number.isActivationKey(key);
|
|
771
770
|
}
|
|
772
771
|
getDisplayHour() {
|
|
773
772
|
if (!this.hour) {
|