@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,12 +7,11 @@
|
|
|
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
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const number = require('./number-e6448e15.js');
|
|
10
|
+
const dom = require('./dom-41ce6029.js');
|
|
11
|
+
const label = require('./label-98a31f7d.js');
|
|
12
|
+
const form = require('./form-7f276aa5.js');
|
|
13
|
+
const locale = require('./locale-d223548e.js');
|
|
14
|
+
const number = require('./number-7d42a856.js');
|
|
16
15
|
const math = require('./math-145c80e2.js');
|
|
17
16
|
require('./guid-b270f0db.js');
|
|
18
17
|
|
|
@@ -106,6 +105,8 @@ let CalciteInput = class {
|
|
|
106
105
|
* Note that the following types add type-specific icons by default: `date`, `email`, `password`, `search`, `tel`, `time`
|
|
107
106
|
*/
|
|
108
107
|
this.type = "text";
|
|
108
|
+
/** input value */
|
|
109
|
+
this.value = "";
|
|
109
110
|
/** keep track of the rendered child type */
|
|
110
111
|
this.childElType = "input";
|
|
111
112
|
//--------------------------------------------------------------------------
|
|
@@ -121,13 +122,13 @@ let CalciteInput = class {
|
|
|
121
122
|
if (this.readOnly || this.disabled) {
|
|
122
123
|
return;
|
|
123
124
|
}
|
|
124
|
-
if (this.isClearable &&
|
|
125
|
+
if (this.isClearable && event.key === "Escape") {
|
|
125
126
|
this.clearInputValue(event);
|
|
126
127
|
event.preventDefault();
|
|
127
128
|
}
|
|
128
129
|
};
|
|
129
130
|
this.clearInputValue = (nativeEvent) => {
|
|
130
|
-
this.setValue(
|
|
131
|
+
this.setValue("", nativeEvent, true);
|
|
131
132
|
};
|
|
132
133
|
this.inputBlurHandler = () => {
|
|
133
134
|
if (this.type === "number") {
|
|
@@ -195,7 +196,7 @@ let CalciteInput = class {
|
|
|
195
196
|
return;
|
|
196
197
|
}
|
|
197
198
|
const supportedKeys = [
|
|
198
|
-
...
|
|
199
|
+
...number.numberKeys,
|
|
199
200
|
"ArrowLeft",
|
|
200
201
|
"ArrowRight",
|
|
201
202
|
"Backspace",
|
|
@@ -269,7 +270,7 @@ let CalciteInput = class {
|
|
|
269
270
|
this.setLocalizedValue(this.value);
|
|
270
271
|
}
|
|
271
272
|
if (nativeEvent) {
|
|
272
|
-
if (this.type === "number" &&
|
|
273
|
+
if (this.type === "number" && value.endsWith(".")) {
|
|
273
274
|
return;
|
|
274
275
|
}
|
|
275
276
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
@@ -304,6 +305,10 @@ let CalciteInput = class {
|
|
|
304
305
|
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
305
306
|
}
|
|
306
307
|
valueWatcher(newValue) {
|
|
308
|
+
if (newValue == null) {
|
|
309
|
+
this.value = "";
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
307
312
|
if (this.type === "number" &&
|
|
308
313
|
this.localizedValue !== locale.localizeNumberString(newValue, this.locale)) {
|
|
309
314
|
this.setLocalizedValue(newValue);
|
|
@@ -316,8 +321,7 @@ let CalciteInput = class {
|
|
|
316
321
|
this.requestedIcon = dom.setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
317
322
|
}
|
|
318
323
|
get isClearable() {
|
|
319
|
-
|
|
320
|
-
return !this.isTextarea && (this.clearable || this.type === "search") && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
324
|
+
return !this.isTextarea && (this.clearable || this.type === "search") && this.value.length > 0;
|
|
321
325
|
}
|
|
322
326
|
get isTextarea() {
|
|
323
327
|
return this.childElType === "textarea";
|
|
@@ -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
|
const calciteLinkCss = "@-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 a,:host span{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:0;border-style:none;font-family:inherit;cursor:pointer;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;text-decoration:none;line-height:inherit;font-size:inherit;-webkit-appearance:none}:host a:hover,:host span:hover{text-decoration:none}:host a,:host span{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host a:focus,:host span:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}calcite-icon{width:1em;height:1em;min-width:unset;min-height:unset}.calcite-link--icon{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;vertical-align:text-top;margin-top:0.125rem}:host([disabled]){pointer-events:none}:host([disabled]) span,:host([disabled]) a{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-link--icon.icon-start{margin-right:0.5rem}.calcite--rtl .calcite-link--icon.icon-start{margin-right:0;margin-left:0.5rem}:host .calcite-link--icon.icon-end{margin-left:0.5rem}.calcite--rtl .calcite-link--icon.icon-end{margin-left:0;margin-right:0.5rem}:host span,:host a{display:inline;padding:0;border-style:none;background-color:transparent;position:relative;color:var(--calcite-ui-text-link);line-height:inherit;white-space:initial;background-image:-webkit-gradient(linear, left top, left bottom, from(currentColor), to(currentColor)), -webkit-gradient(linear, left top, left bottom, from(var(--calcite-link-blue-underline)), to(var(--calcite-link-blue-underline)));background-image:linear-gradient(currentColor, currentColor), linear-gradient(var(--calcite-link-blue-underline), var(--calcite-link-blue-underline));background-position:0% 100%, 100% 100%;background-repeat:no-repeat, no-repeat;background-size:0% 1px, 100% 1px;-webkit-transition:all 0.15s ease-in-out, background-size 0.3s ease-in-out;transition:all 0.15s ease-in-out, background-size 0.3s ease-in-out}:host span:hover,:host span:focus,:host a:hover,:host a:focus{background-size:100% 1px, 100% 1px}:host span:active,:host a:active{background-size:100% 2px, 100% 2px}span.calcite--rtl,a.calcite--rtl{background-position:100% 100%, 100% 100%}";
|
|
@@ -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 CalciteHeading = require('./CalciteHeading-112c19f9.js');
|
|
12
12
|
require('./guid-b270f0db.js');
|
|
13
13
|
|
|
@@ -7,8 +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-
|
|
11
|
-
const key = require('./key-8bfb93ec.js');
|
|
10
|
+
const dom = require('./dom-41ce6029.js');
|
|
12
11
|
const observers = require('./observers-41837607.js');
|
|
13
12
|
require('./guid-b270f0db.js');
|
|
14
13
|
|
|
@@ -263,7 +262,7 @@ let CalciteModal = class {
|
|
|
263
262
|
return this.hasFooter ? (index.h("div", { class: CSS.footer }, index.h("span", { class: CSS.back }, index.h("slot", { name: SLOTS.back })), index.h("span", { class: CSS.secondary }, index.h("slot", { name: SLOTS.secondary })), index.h("span", { class: CSS.primary }, index.h("slot", { name: SLOTS.primary })))) : null;
|
|
264
263
|
}
|
|
265
264
|
renderCloseButton() {
|
|
266
|
-
return !this.disableCloseButton ? (index.h("button", { "aria-label": this.intlClose, class: CSS.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, index.h("calcite-icon", { icon: ICONS.close, scale: this.scale === "s" ? "s" : "l" }))) : null;
|
|
265
|
+
return !this.disableCloseButton ? (index.h("button", { "aria-label": this.intlClose, class: CSS.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, index.h("calcite-icon", { icon: ICONS.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
267
266
|
}
|
|
268
267
|
renderStyle() {
|
|
269
268
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -293,7 +292,7 @@ let CalciteModal = class {
|
|
|
293
292
|
//
|
|
294
293
|
//--------------------------------------------------------------------------
|
|
295
294
|
handleEscape(e) {
|
|
296
|
-
if (this.active && !this.disableEscape &&
|
|
295
|
+
if (this.active && !this.disableEscape && e.key === "Escape") {
|
|
297
296
|
this.close();
|
|
298
297
|
}
|
|
299
298
|
}
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const interfaces = require('./interfaces-54651c1c.js');
|
|
11
|
-
const dom = require('./dom-
|
|
11
|
+
const dom = require('./dom-41ce6029.js');
|
|
12
12
|
require('./guid-b270f0db.js');
|
|
13
13
|
|
|
14
14
|
const TEXT = {
|
|
@@ -8,9 +8,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const observers = require('./observers-41837607.js');
|
|
11
|
-
const dom = require('./dom-
|
|
12
|
-
const label = require('./label-
|
|
13
|
-
const form = require('./form-
|
|
11
|
+
const dom = require('./dom-41ce6029.js');
|
|
12
|
+
const label = require('./label-98a31f7d.js');
|
|
13
|
+
const form = require('./form-7f276aa5.js');
|
|
14
14
|
require('./guid-b270f0db.js');
|
|
15
15
|
|
|
16
16
|
const calciteOptionCss = "@-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:block}";
|
|
@@ -240,6 +240,7 @@ let CalciteSelect = class {
|
|
|
240
240
|
this.updateNativeElement(optionOrGroup, nativeEl);
|
|
241
241
|
if (isOption(optionOrGroup) && optionOrGroup.selected) {
|
|
242
242
|
this.deselectAllExcept(optionOrGroup);
|
|
243
|
+
this.selectedOption = optionOrGroup;
|
|
243
244
|
}
|
|
244
245
|
}
|
|
245
246
|
//--------------------------------------------------------------------------
|
|
@@ -279,7 +280,7 @@ let CalciteSelect = class {
|
|
|
279
280
|
}
|
|
280
281
|
});
|
|
281
282
|
if (futureSelected) {
|
|
282
|
-
|
|
283
|
+
this.selectedOption = futureSelected;
|
|
283
284
|
}
|
|
284
285
|
}
|
|
285
286
|
toNativeElement(optionOrGroup) {
|
|
@@ -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 CalciteHeading = require('./CalciteHeading-112c19f9.js');
|
|
12
12
|
const resources = require('./resources-ffe563a2.js');
|
|
13
13
|
require('./guid-b270f0db.js');
|
|
@@ -149,7 +149,7 @@ let CalcitePanel = class {
|
|
|
149
149
|
// --------------------------------------------------------------------------
|
|
150
150
|
renderBackButton() {
|
|
151
151
|
const { el } = this;
|
|
152
|
-
const rtl = dom.
|
|
152
|
+
const rtl = dom.getElementStyleDir(el) === "rtl";
|
|
153
153
|
const { showBackButton, intlBack, backButtonClick } = this;
|
|
154
154
|
const label = intlBack || TEXT.back;
|
|
155
155
|
const icon = rtl ? ICONS.backRight : ICONS.backLeft;
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const resources = require('./resources-
|
|
10
|
+
const resources = require('./resources-fee43dc4.js');
|
|
11
11
|
const observers = require('./observers-41837607.js');
|
|
12
|
-
const dom = require('./dom-
|
|
12
|
+
const dom = require('./dom-41ce6029.js');
|
|
13
13
|
const CalciteHeading = require('./CalciteHeading-112c19f9.js');
|
|
14
14
|
require('./array-a5dedf5a.js');
|
|
15
15
|
require('./debounce-95979061.js');
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const popper = require('./popper-
|
|
10
|
+
const popper = require('./popper-4c24a334.js');
|
|
11
11
|
const guid = require('./guid-b270f0db.js');
|
|
12
|
-
const dom = require('./dom-
|
|
12
|
+
const dom = require('./dom-41ce6029.js');
|
|
13
13
|
const CalciteHeading = require('./CalciteHeading-112c19f9.js');
|
|
14
14
|
|
|
15
15
|
const CSS = {
|
|
@@ -31,7 +31,7 @@ const ARIA_CONTROLS = "aria-controls";
|
|
|
31
31
|
const ARIA_EXPANDED = "aria-expanded";
|
|
32
32
|
const HEADING_LEVEL = 2;
|
|
33
33
|
|
|
34
|
-
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{--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:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0)}.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([data-popper-placement^=bottom]) .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host([data-popper-placement^=top]) .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host([data-popper-placement^=left]) .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host([data-popper-placement^=right]) .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host([data-popper-placement]) .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.arrow,.arrow::before{position:absolute;width:8px;height:8px;z-index:-1}.arrow::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{bottom:-4px}:host([data-popper-placement^=bottom]) .arrow{top:-4px}:host([data-popper-placement^=left]) .arrow{right:-4px}:host([data-popper-placement^=right]) .arrow{left:-4px}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-popper-anim{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{outline:1px solid var(--calcite-ui-border-3)}.header{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{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{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{-ms-flex-direction:column;flex-direction:column}.content{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{border-radius:0.25rem 0 0 0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}";
|
|
34
|
+
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{--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:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0)}.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([data-popper-placement^=bottom]) .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host([data-popper-placement^=top]) .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host([data-popper-placement^=left]) .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host([data-popper-placement^=right]) .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host([data-popper-placement]) .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.arrow,.arrow::before{position:absolute;width:8px;height:8px;z-index:-1}.arrow::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{bottom:-4px}:host([data-popper-placement^=bottom]) .arrow{top:-4px}:host([data-popper-placement^=left]) .arrow{right:-4px}:host([data-popper-placement^=right]) .arrow{left:-4px}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-popper-anim{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{outline:1px solid var(--calcite-ui-border-3)}.header{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{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{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{-ms-flex-direction:column;flex-direction:column}.content{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{border-radius:0.25rem 0 0 0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}";
|
|
35
35
|
|
|
36
36
|
let CalcitePopover = class {
|
|
37
37
|
constructor(hostRef) {
|
|
@@ -7,10 +7,9 @@
|
|
|
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
|
|
12
|
-
const
|
|
13
|
-
const form = require('./form-a5b44a1f.js');
|
|
10
|
+
const dom = require('./dom-41ce6029.js');
|
|
11
|
+
const label = require('./label-98a31f7d.js');
|
|
12
|
+
const form = require('./form-7f276aa5.js');
|
|
14
13
|
const observers = require('./observers-41837607.js');
|
|
15
14
|
require('./guid-b270f0db.js');
|
|
16
15
|
|
|
@@ -50,7 +49,7 @@ let CalciteRadioGroup = class {
|
|
|
50
49
|
//--------------------------------------------------------------------------
|
|
51
50
|
this.handleClick = (event) => {
|
|
52
51
|
if (event.target.localName === "calcite-radio-group-item") {
|
|
53
|
-
this.selectItem(event.target);
|
|
52
|
+
this.selectItem(event.target, true);
|
|
54
53
|
}
|
|
55
54
|
};
|
|
56
55
|
}
|
|
@@ -69,7 +68,6 @@ let CalciteRadioGroup = class {
|
|
|
69
68
|
.pop();
|
|
70
69
|
if (match) {
|
|
71
70
|
this.selectItem(match);
|
|
72
|
-
this.calciteRadioGroupChange.emit(match.value);
|
|
73
71
|
}
|
|
74
72
|
else if (items[0]) {
|
|
75
73
|
items[0].tabIndex = 0;
|
|
@@ -80,7 +78,7 @@ let CalciteRadioGroup = class {
|
|
|
80
78
|
// Lifecycle
|
|
81
79
|
//
|
|
82
80
|
//--------------------------------------------------------------------------
|
|
83
|
-
|
|
81
|
+
componentWillLoad() {
|
|
84
82
|
const items = this.getItems();
|
|
85
83
|
const lastChecked = Array.from(items)
|
|
86
84
|
.filter((item) => item.checked)
|
|
@@ -91,6 +89,8 @@ let CalciteRadioGroup = class {
|
|
|
91
89
|
else if (items[0]) {
|
|
92
90
|
items[0].tabIndex = 0;
|
|
93
91
|
}
|
|
92
|
+
}
|
|
93
|
+
connectedCallback() {
|
|
94
94
|
label.connectLabel(this);
|
|
95
95
|
form.connectForm(this);
|
|
96
96
|
}
|
|
@@ -98,33 +98,27 @@ let CalciteRadioGroup = class {
|
|
|
98
98
|
label.disconnectLabel(this);
|
|
99
99
|
form.disconnectForm(this);
|
|
100
100
|
}
|
|
101
|
-
componentDidLoad() {
|
|
102
|
-
this.hasLoaded = true;
|
|
103
|
-
}
|
|
104
101
|
render() {
|
|
105
102
|
return (index.h(index.Host, { onClick: this.handleClick, role: "radiogroup", tabIndex: this.disabled ? -1 : null }, index.h("slot", null), index.h(form.HiddenFormInputSlot, { component: this })));
|
|
106
103
|
}
|
|
107
104
|
handleSelected(event) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
event.preventDefault();
|
|
112
|
-
this.selectItem(event.target);
|
|
113
|
-
}
|
|
105
|
+
event.stopPropagation();
|
|
106
|
+
event.preventDefault();
|
|
107
|
+
this.selectItem(event.target);
|
|
114
108
|
}
|
|
115
109
|
handleKeyDown(event) {
|
|
116
110
|
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
117
|
-
const key
|
|
111
|
+
const key = event.key;
|
|
118
112
|
const { el, selectedItem } = this;
|
|
119
|
-
if (keys.indexOf(key
|
|
113
|
+
if (keys.indexOf(key) === -1) {
|
|
120
114
|
return;
|
|
121
115
|
}
|
|
122
|
-
let adjustedKey = key
|
|
123
|
-
if (dom.
|
|
124
|
-
if (key
|
|
116
|
+
let adjustedKey = key;
|
|
117
|
+
if (dom.getElementStyleDir(el) === "rtl") {
|
|
118
|
+
if (key === "ArrowRight") {
|
|
125
119
|
adjustedKey = "ArrowLeft";
|
|
126
120
|
}
|
|
127
|
-
if (key
|
|
121
|
+
if (key === "ArrowLeft") {
|
|
128
122
|
adjustedKey = "ArrowRight";
|
|
129
123
|
}
|
|
130
124
|
}
|
|
@@ -140,17 +134,17 @@ let CalciteRadioGroup = class {
|
|
|
140
134
|
case "ArrowUp":
|
|
141
135
|
event.preventDefault();
|
|
142
136
|
const previous = selectedIndex < 1 ? items.item(items.length - 1) : items.item(selectedIndex - 1);
|
|
143
|
-
this.selectItem(previous);
|
|
137
|
+
this.selectItem(previous, true);
|
|
144
138
|
return;
|
|
145
139
|
case "ArrowRight":
|
|
146
140
|
case "ArrowDown":
|
|
147
141
|
event.preventDefault();
|
|
148
142
|
const next = selectedIndex === -1 ? items.item(1) : items.item(selectedIndex + 1) || items.item(0);
|
|
149
|
-
this.selectItem(next);
|
|
143
|
+
this.selectItem(next, true);
|
|
150
144
|
return;
|
|
151
145
|
case " ":
|
|
152
146
|
event.preventDefault();
|
|
153
|
-
this.selectItem(event.target);
|
|
147
|
+
this.selectItem(event.target, true);
|
|
154
148
|
return;
|
|
155
149
|
default:
|
|
156
150
|
return;
|
|
@@ -177,7 +171,7 @@ let CalciteRadioGroup = class {
|
|
|
177
171
|
getItems() {
|
|
178
172
|
return this.el.querySelectorAll("calcite-radio-group-item");
|
|
179
173
|
}
|
|
180
|
-
selectItem(selected) {
|
|
174
|
+
selectItem(selected, emit = false) {
|
|
181
175
|
if (selected === this.selectedItem) {
|
|
182
176
|
return;
|
|
183
177
|
}
|
|
@@ -191,6 +185,9 @@ let CalciteRadioGroup = class {
|
|
|
191
185
|
item.tabIndex = matches ? 0 : -1;
|
|
192
186
|
if (matches) {
|
|
193
187
|
match = item;
|
|
188
|
+
if (emit) {
|
|
189
|
+
this.calciteRadioGroupChange.emit(match.value);
|
|
190
|
+
}
|
|
194
191
|
}
|
|
195
192
|
});
|
|
196
193
|
this.selectedItem = match;
|
|
@@ -8,10 +8,9 @@ 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 dom = require('./dom-
|
|
12
|
-
const label = require('./label-
|
|
13
|
-
const form = require('./form-
|
|
14
|
-
const key = require('./key-8bfb93ec.js');
|
|
11
|
+
const dom = require('./dom-41ce6029.js');
|
|
12
|
+
const label = require('./label-98a31f7d.js');
|
|
13
|
+
const form = require('./form-7f276aa5.js');
|
|
15
14
|
const array = require('./array-a5dedf5a.js');
|
|
16
15
|
|
|
17
16
|
const calciteRadioCss = "@-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:block}:host .radio{background-color:var(--calcite-ui-foreground-1);border-radius:9999px;cursor:pointer;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([hovered]) .radio,:host(:not([checked])[focused]) .radio{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([disabled]) .radio{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}:host([hovered][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([scale=s]){--calcite-radio-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size:var(--calcite-font-size-0)}.radio{height:var(--calcite-radio-size);max-width:var(--calcite-radio-size);min-width:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}:host([scale=s][focused][checked]) .radio{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}:host([scale=m][focused][checked]) .radio{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}:host([scale=l][focused][checked]) .radio{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([hidden]){display:none}";
|
|
@@ -124,21 +123,21 @@ let CalciteRadioButton = class {
|
|
|
124
123
|
};
|
|
125
124
|
this.handleKeyDown = (event) => {
|
|
126
125
|
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
127
|
-
const key
|
|
126
|
+
const key = event.key;
|
|
128
127
|
const { el } = this;
|
|
129
|
-
if (keys.indexOf(key
|
|
128
|
+
if (keys.indexOf(key) === -1) {
|
|
130
129
|
return;
|
|
131
130
|
}
|
|
132
|
-
if (key
|
|
131
|
+
if (key === " ") {
|
|
133
132
|
this.check();
|
|
134
133
|
return;
|
|
135
134
|
}
|
|
136
|
-
let adjustedKey = key
|
|
137
|
-
if (dom.
|
|
138
|
-
if (key
|
|
135
|
+
let adjustedKey = key;
|
|
136
|
+
if (dom.getElementStyleDir(el) === "rtl") {
|
|
137
|
+
if (key === "ArrowRight") {
|
|
139
138
|
adjustedKey = "ArrowLeft";
|
|
140
139
|
}
|
|
141
|
-
if (key
|
|
140
|
+
if (key === "ArrowLeft") {
|
|
142
141
|
adjustedKey = "ArrowRight";
|
|
143
142
|
}
|
|
144
143
|
}
|
|
@@ -7,10 +7,10 @@
|
|
|
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
|
-
const label = require('./label-
|
|
13
|
-
const form = require('./form-
|
|
12
|
+
const label = require('./label-98a31f7d.js');
|
|
13
|
+
const form = require('./form-7f276aa5.js');
|
|
14
14
|
|
|
15
15
|
const TEXT = {
|
|
16
16
|
rating: "Rating",
|
|
@@ -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 math = require('./math-145c80e2.js');
|
|
12
12
|
require('./guid-b270f0db.js');
|
|
13
13
|
|
|
@@ -199,7 +199,7 @@ let CalciteShellPanel = class {
|
|
|
199
199
|
};
|
|
200
200
|
this.getKeyAdjustedWidth = (event) => {
|
|
201
201
|
const { key } = event;
|
|
202
|
-
const { step, stepMultiplier, contentWidthMin, contentWidthMax, initialContentWidth, position } = this;
|
|
202
|
+
const { el, step, stepMultiplier, contentWidthMin, contentWidthMax, initialContentWidth, position } = this;
|
|
203
203
|
const multipliedStep = step * stepMultiplier;
|
|
204
204
|
const MOVEMENT_KEYS = [
|
|
205
205
|
"ArrowUp",
|
|
@@ -214,15 +214,20 @@ let CalciteShellPanel = class {
|
|
|
214
214
|
if (MOVEMENT_KEYS.indexOf(key) > -1) {
|
|
215
215
|
event.preventDefault();
|
|
216
216
|
}
|
|
217
|
-
const
|
|
217
|
+
const dir = dom.getElementStyleDir(el);
|
|
218
|
+
const directionKeys = ["ArrowLeft", "ArrowRight"];
|
|
219
|
+
const directionFactor = dir === "rtl" && directionKeys.includes(key) ? -1 : 1;
|
|
220
|
+
const increaseKeys = key === "ArrowUp" ||
|
|
221
|
+
(position === "end" ? key === directionKeys[0] : key === directionKeys[1]);
|
|
218
222
|
if (increaseKeys) {
|
|
219
223
|
const stepValue = event.shiftKey ? multipliedStep : step;
|
|
220
|
-
return initialContentWidth + stepValue;
|
|
224
|
+
return initialContentWidth + directionFactor * stepValue;
|
|
221
225
|
}
|
|
222
|
-
const decreaseKeys = key === "ArrowDown" ||
|
|
226
|
+
const decreaseKeys = key === "ArrowDown" ||
|
|
227
|
+
(position === "end" ? key === directionKeys[1] : key === directionKeys[0]);
|
|
223
228
|
if (decreaseKeys) {
|
|
224
229
|
const stepValue = event.shiftKey ? multipliedStep : step;
|
|
225
|
-
return initialContentWidth - stepValue;
|
|
230
|
+
return initialContentWidth - directionFactor * stepValue;
|
|
226
231
|
}
|
|
227
232
|
if (typeof contentWidthMin === "number" && key === "Home") {
|
|
228
233
|
return contentWidthMin;
|
|
@@ -247,9 +252,13 @@ let CalciteShellPanel = class {
|
|
|
247
252
|
};
|
|
248
253
|
this.separatorPointerMove = (event) => {
|
|
249
254
|
event.preventDefault();
|
|
250
|
-
const { initialContentWidth, position, initialClientX } = this;
|
|
255
|
+
const { el, initialContentWidth, position, initialClientX } = this;
|
|
251
256
|
const offset = event.clientX - initialClientX;
|
|
252
|
-
|
|
257
|
+
const dir = dom.getElementStyleDir(el);
|
|
258
|
+
const adjustmentDirection = dir === "rtl" ? -1 : 1;
|
|
259
|
+
const adjustedOffset = position === "end" ? -adjustmentDirection * offset : adjustmentDirection * offset;
|
|
260
|
+
const width = initialContentWidth + adjustedOffset;
|
|
261
|
+
this.setContentWidth(width);
|
|
253
262
|
};
|
|
254
263
|
this.separatorPointerUp = (event) => {
|
|
255
264
|
event.preventDefault();
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const
|
|
11
|
-
const dom = require('./dom-19822169.js');
|
|
10
|
+
const dom = require('./dom-41ce6029.js');
|
|
12
11
|
require('./guid-b270f0db.js');
|
|
13
12
|
|
|
14
13
|
const calciteStepperCss = "@-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:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:stretch;align-items:stretch;width:100%;min-width:100%}:host([layout=vertical]){-ms-flex-direction:column;flex-direction:column;-ms-flex:1 1 auto;flex:1 1 auto}:host ::slotted(.calcite-stepper-content){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%;min-width:100%}";
|
|
@@ -80,7 +79,7 @@ let CalciteStepper = class {
|
|
|
80
79
|
const itemToFocus = e.target;
|
|
81
80
|
const isFirstItem = this.itemIndex(itemToFocus) === 0;
|
|
82
81
|
const isLastItem = this.itemIndex(itemToFocus) === this.sortedItems.length - 1;
|
|
83
|
-
switch (
|
|
82
|
+
switch (item.key) {
|
|
84
83
|
case "ArrowDown":
|
|
85
84
|
case "ArrowRight":
|
|
86
85
|
if (isLastItem) {
|
|
@@ -293,7 +292,7 @@ let CalciteStepperItem = class {
|
|
|
293
292
|
//--------------------------------------------------------------------------
|
|
294
293
|
keyDownHandler(e) {
|
|
295
294
|
if (!this.disabled && e.target === this.el) {
|
|
296
|
-
switch (
|
|
295
|
+
switch (e.key) {
|
|
297
296
|
case " ":
|
|
298
297
|
case "Enter":
|
|
299
298
|
this.emitRequestedItem();
|
|
@@ -7,10 +7,9 @@
|
|
|
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
|
|
12
|
-
const
|
|
13
|
-
const form = require('./form-a5b44a1f.js');
|
|
10
|
+
const dom = require('./dom-41ce6029.js');
|
|
11
|
+
const label = require('./label-98a31f7d.js');
|
|
12
|
+
const form = require('./form-7f276aa5.js');
|
|
14
13
|
require('./guid-b270f0db.js');
|
|
15
14
|
|
|
16
15
|
const calciteSwitchCss = "@-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([scale=s]) .container{height:0.75rem}:host([scale=s]) .track{width:1.5rem;height:0.75rem}:host([scale=s]) .handle{width:0.5rem;height:0.5rem}:host([scale=m]) .container{height:1rem}:host([scale=m]) .track{width:2rem;height:1rem}:host([scale=m]) .handle{width:0.75rem;height:0.75rem}:host([scale=l]) .container{height:1.5rem}:host([scale=l]) .track{width:3rem;height:1.5rem}:host([scale=l]) .handle{width:1.25rem;height:1.25rem}:host{display:inline-block;position:relative;width:auto;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none;cursor:default}:host{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;width:auto}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.track{position:relative;display:inline-block;vertical-align:top;background-color:var(--calcite-ui-foreground-2);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:9999px}.handle{position:absolute;display:block;right:auto;background-color:var(--calcite-ui-foreground-1);border-width:2px;border-style:solid;border-color:var(--calcite-ui-border-input);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:9999px;pointer-events:none;top:-1px;left:-1px}:host(:hover) .handle,:host(:focus) .handle{border-color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([checked]) .track{background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-brand-hover)}:host([checked]) .handle{left:auto;border-color:var(--calcite-ui-brand);right:-1px}:host([checked]:hover) .track{background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-brand-hover)}:host([checked]:hover) .handle{border-color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}.calcite--rtl .handle{left:auto;right:-1px}:host([checked]) .calcite--rtl .handle{right:auto;left:-1px}:host([checked]:active) .calcite--rtl .handle{right:auto;left:-1px}:host([checked]:focus) .calcite--rtl .handle{right:auto;left:-1px}::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}";
|
|
@@ -40,8 +39,8 @@ let CalciteSwitch = class {
|
|
|
40
39
|
//
|
|
41
40
|
//--------------------------------------------------------------------------
|
|
42
41
|
this.keyDownHandler = (e) => {
|
|
43
|
-
const key
|
|
44
|
-
if (!this.disabled && (key
|
|
42
|
+
const key = e.key;
|
|
43
|
+
if (!this.disabled && (key === " " || key === "Enter")) {
|
|
45
44
|
this.toggle();
|
|
46
45
|
}
|
|
47
46
|
};
|