@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
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Host, Listen, Method, Prop, Watch } from "@stencil/core";
|
|
6
|
-
import { getKey } from "../../utils/key";
|
|
7
6
|
import { focusElement, getElementDir } from "../../utils/dom";
|
|
8
7
|
import { createPopper, CSS as PopperCSS, updatePopper } from "../../utils/popper";
|
|
9
8
|
import { DefaultDropdownPlacement, SLOTS } from "./resources";
|
|
@@ -95,7 +94,7 @@ export class CalciteDropdown {
|
|
|
95
94
|
};
|
|
96
95
|
this.keyDownHandler = (e) => {
|
|
97
96
|
const target = e.target;
|
|
98
|
-
const key =
|
|
97
|
+
const key = e.key;
|
|
99
98
|
if (this.triggers.includes(target) ||
|
|
100
99
|
this.triggers.some((trigger) => trigger.contains(target))) {
|
|
101
100
|
if (target.nodeName !== "BUTTON" && target.nodeName !== "CALCITE-BUTTON") {
|
|
@@ -221,7 +220,7 @@ export class CalciteDropdown {
|
|
|
221
220
|
const itemToFocus = target.nodeName !== "A" ? target : target.parentNode;
|
|
222
221
|
const isFirstItem = this.itemIndex(itemToFocus) === 0;
|
|
223
222
|
const isLastItem = this.itemIndex(itemToFocus) === this.items.length - 1;
|
|
224
|
-
switch (
|
|
223
|
+
switch (keyboardEvent.key) {
|
|
225
224
|
case "Tab":
|
|
226
225
|
if (isLastItem && !keyboardEvent.shiftKey) {
|
|
227
226
|
this.closeCalciteDropdown();
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Host, Listen, Method, Prop } from "@stencil/core";
|
|
6
6
|
import { getElementDir, getElementProp } from "../../utils/dom";
|
|
7
|
-
import { getKey } from "../../utils/key";
|
|
8
7
|
import { CSS_UTILITY } from "../../utils/resources";
|
|
9
8
|
import { CSS } from "./resources";
|
|
10
9
|
/**
|
|
@@ -88,7 +87,7 @@ export class CalciteDropdownItem {
|
|
|
88
87
|
this.emitRequestedItem();
|
|
89
88
|
}
|
|
90
89
|
keyDownHandler(e) {
|
|
91
|
-
switch (
|
|
90
|
+
switch (e.key) {
|
|
92
91
|
case " ":
|
|
93
92
|
this.emitRequestedItem();
|
|
94
93
|
if (this.href) {
|
|
@@ -67,25 +67,12 @@ export class CalciteFilter {
|
|
|
67
67
|
this.setFocus();
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
watchDataHandler(value) {
|
|
71
|
-
this.items = value;
|
|
72
|
-
}
|
|
73
70
|
watchItemsHandler() {
|
|
74
71
|
this.filter(this.value);
|
|
75
72
|
}
|
|
76
73
|
valueHandler(value) {
|
|
77
74
|
this.filter(value);
|
|
78
75
|
}
|
|
79
|
-
//--------------------------------------------------------------------------
|
|
80
|
-
//
|
|
81
|
-
// Lifecycle
|
|
82
|
-
//
|
|
83
|
-
//--------------------------------------------------------------------------
|
|
84
|
-
connectedCallback() {
|
|
85
|
-
if (this.data && !this.items) {
|
|
86
|
-
this.items = this.data;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
76
|
// --------------------------------------------------------------------------
|
|
90
77
|
//
|
|
91
78
|
// Public Methods
|
|
@@ -98,7 +85,7 @@ export class CalciteFilter {
|
|
|
98
85
|
updateFiltered(filtered) {
|
|
99
86
|
this.filteredItems.length = 0;
|
|
100
87
|
this.filteredItems = this.filteredItems.concat(filtered);
|
|
101
|
-
this.calciteFilterChange.emit(
|
|
88
|
+
this.calciteFilterChange.emit();
|
|
102
89
|
}
|
|
103
90
|
// --------------------------------------------------------------------------
|
|
104
91
|
//
|
|
@@ -127,24 +114,6 @@ export class CalciteFilter {
|
|
|
127
114
|
"$": ["calcite-filter.css"]
|
|
128
115
|
}; }
|
|
129
116
|
static get properties() { return {
|
|
130
|
-
"data": {
|
|
131
|
-
"type": "unknown",
|
|
132
|
-
"mutable": false,
|
|
133
|
-
"complexType": {
|
|
134
|
-
"original": "object[]",
|
|
135
|
-
"resolved": "object[]",
|
|
136
|
-
"references": {}
|
|
137
|
-
},
|
|
138
|
-
"required": false,
|
|
139
|
-
"optional": false,
|
|
140
|
-
"docs": {
|
|
141
|
-
"tags": [{
|
|
142
|
-
"name": "deprecated",
|
|
143
|
-
"text": "use `items` instead."
|
|
144
|
-
}],
|
|
145
|
-
"text": "The input data. The filter uses this as the starting point, and returns items\nthat contain the string entered in the input, using a partial match and recursive search."
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
117
|
"items": {
|
|
149
118
|
"type": "unknown",
|
|
150
119
|
"mutable": true,
|
|
@@ -281,8 +250,8 @@ export class CalciteFilter {
|
|
|
281
250
|
"text": "This event fires when the filter text changes."
|
|
282
251
|
},
|
|
283
252
|
"complexType": {
|
|
284
|
-
"original": "
|
|
285
|
-
"resolved": "
|
|
253
|
+
"original": "void",
|
|
254
|
+
"resolved": "void",
|
|
286
255
|
"references": {}
|
|
287
256
|
}
|
|
288
257
|
}]; }
|
|
@@ -306,9 +275,6 @@ export class CalciteFilter {
|
|
|
306
275
|
}; }
|
|
307
276
|
static get elementRef() { return "el"; }
|
|
308
277
|
static get watchers() { return [{
|
|
309
|
-
"propName": "data",
|
|
310
|
-
"methodName": "watchDataHandler"
|
|
311
|
-
}, {
|
|
312
278
|
"propName": "items",
|
|
313
279
|
"methodName": "watchItemsHandler"
|
|
314
280
|
}, {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Host, Method, Prop, State, Watch } from "@stencil/core";
|
|
6
6
|
import { getElementDir, getElementProp, setRequestedIcon } from "../../utils/dom";
|
|
7
|
-
import { getKey } from "../../utils/key";
|
|
8
7
|
import { CSS, INPUT_TYPE_ICONS, SLOTS } from "./resources";
|
|
9
8
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
10
9
|
import { connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
|
|
@@ -71,6 +70,8 @@ export class CalciteInput {
|
|
|
71
70
|
* Note that the following types add type-specific icons by default: `date`, `email`, `password`, `search`, `tel`, `time`
|
|
72
71
|
*/
|
|
73
72
|
this.type = "text";
|
|
73
|
+
/** input value */
|
|
74
|
+
this.value = "";
|
|
74
75
|
/** keep track of the rendered child type */
|
|
75
76
|
this.childElType = "input";
|
|
76
77
|
//--------------------------------------------------------------------------
|
|
@@ -86,13 +87,13 @@ export class CalciteInput {
|
|
|
86
87
|
if (this.readOnly || this.disabled) {
|
|
87
88
|
return;
|
|
88
89
|
}
|
|
89
|
-
if (this.isClearable &&
|
|
90
|
+
if (this.isClearable && event.key === "Escape") {
|
|
90
91
|
this.clearInputValue(event);
|
|
91
92
|
event.preventDefault();
|
|
92
93
|
}
|
|
93
94
|
};
|
|
94
95
|
this.clearInputValue = (nativeEvent) => {
|
|
95
|
-
this.setValue(
|
|
96
|
+
this.setValue("", nativeEvent, true);
|
|
96
97
|
};
|
|
97
98
|
this.inputBlurHandler = () => {
|
|
98
99
|
if (this.type === "number") {
|
|
@@ -234,7 +235,7 @@ export class CalciteInput {
|
|
|
234
235
|
this.setLocalizedValue(this.value);
|
|
235
236
|
}
|
|
236
237
|
if (nativeEvent) {
|
|
237
|
-
if (this.type === "number" &&
|
|
238
|
+
if (this.type === "number" && value.endsWith(".")) {
|
|
238
239
|
return;
|
|
239
240
|
}
|
|
240
241
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
@@ -269,6 +270,10 @@ export class CalciteInput {
|
|
|
269
270
|
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
270
271
|
}
|
|
271
272
|
valueWatcher(newValue) {
|
|
273
|
+
if (newValue == null) {
|
|
274
|
+
this.value = "";
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
272
277
|
if (this.type === "number" &&
|
|
273
278
|
this.localizedValue !== localizeNumberString(newValue, this.locale)) {
|
|
274
279
|
this.setLocalizedValue(newValue);
|
|
@@ -281,8 +286,7 @@ export class CalciteInput {
|
|
|
281
286
|
this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
282
287
|
}
|
|
283
288
|
get isClearable() {
|
|
284
|
-
|
|
285
|
-
return !this.isTextarea && (this.clearable || this.type === "search") && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
289
|
+
return !this.isTextarea && (this.clearable || this.type === "search") && this.value.length > 0;
|
|
286
290
|
}
|
|
287
291
|
get isTextarea() {
|
|
288
292
|
return this.childElType === "textarea";
|
|
@@ -1041,7 +1045,8 @@ export class CalciteInput {
|
|
|
1041
1045
|
"text": "input value"
|
|
1042
1046
|
},
|
|
1043
1047
|
"attribute": "value",
|
|
1044
|
-
"reflect": false
|
|
1048
|
+
"reflect": false,
|
|
1049
|
+
"defaultValue": "\"\""
|
|
1045
1050
|
}
|
|
1046
1051
|
}; }
|
|
1047
1052
|
static get states() { return {
|
|
@@ -6,7 +6,6 @@ import { Component, h, Prop, Element, Host, State, Listen, Watch, Method, Event,
|
|
|
6
6
|
import { getLocaleData } from "../calcite-date-picker/utils";
|
|
7
7
|
import { getElementDir } from "../../utils/dom";
|
|
8
8
|
import { dateFromRange, inRange, dateFromISO, dateToISO, parseDateString, sameDate } from "../../utils/date";
|
|
9
|
-
import { getKey } from "../../utils/key";
|
|
10
9
|
import { TEXT } from "../calcite-date-picker/resources";
|
|
11
10
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
12
11
|
import { connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
|
|
@@ -70,7 +69,7 @@ export class CalciteInputDatePicker {
|
|
|
70
69
|
this.active = false;
|
|
71
70
|
};
|
|
72
71
|
this.keyUpHandler = (e) => {
|
|
73
|
-
if (
|
|
72
|
+
if (e.key === "Escape") {
|
|
74
73
|
this.active = false;
|
|
75
74
|
}
|
|
76
75
|
};
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Host, h, Prop, Listen, Event, Method, Watch } from "@stencil/core";
|
|
6
6
|
import { guid } from "../../utils/guid";
|
|
7
|
-
import { getKey } from "../../utils/key";
|
|
8
7
|
import { parseTimeString, formatTimeString, getMeridiem, getMeridiemHour } from "../../utils/time";
|
|
9
8
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
10
9
|
import { connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
|
|
@@ -116,7 +115,7 @@ export class CalciteInputTimePicker {
|
|
|
116
115
|
this.internalValueChange = false;
|
|
117
116
|
}
|
|
118
117
|
keyUpHandler(event) {
|
|
119
|
-
if (
|
|
118
|
+
if (event.key === "Escape" && this.active) {
|
|
120
119
|
this.active = false;
|
|
121
120
|
}
|
|
122
121
|
}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Host, Listen, Method, Prop, State, Watch } from "@stencil/core";
|
|
6
6
|
import { ensureId, focusElement, getElementDir, getSlotted, isCalciteFocusable } from "../../utils/dom";
|
|
7
|
-
import { getKey } from "../../utils/key";
|
|
8
7
|
import { queryShadowRoot } from "@a11y/focus-trap/shadow";
|
|
9
8
|
import { isFocusable, isHidden } from "@a11y/focus-trap/focusable";
|
|
10
9
|
import { CSS_UTILITY } from "../../utils/resources";
|
|
@@ -154,7 +153,7 @@ export class CalciteModal {
|
|
|
154
153
|
}
|
|
155
154
|
renderCloseButton() {
|
|
156
155
|
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose },
|
|
157
|
-
h("calcite-icon", { icon: ICONS.close, scale: this.scale === "s" ? "s" : "l" }))) : null;
|
|
156
|
+
h("calcite-icon", { icon: ICONS.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
158
157
|
}
|
|
159
158
|
renderStyle() {
|
|
160
159
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -184,7 +183,7 @@ export class CalciteModal {
|
|
|
184
183
|
//
|
|
185
184
|
//--------------------------------------------------------------------------
|
|
186
185
|
handleEscape(e) {
|
|
187
|
-
if (this.active && !this.disableEscape &&
|
|
186
|
+
if (this.active && !this.disableEscape && e.key === "Escape") {
|
|
188
187
|
this.close();
|
|
189
188
|
}
|
|
190
189
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, Method, Prop, Watch, h, Fragment } from "@stencil/core";
|
|
6
6
|
import { CSS, HEADING_LEVEL, ICONS, SLOTS, TEXT } from "./resources";
|
|
7
|
-
import { getElementDir, getSlotted } from "../../utils/dom";
|
|
7
|
+
import { getElementDir, getElementStyleDir, getSlotted } from "../../utils/dom";
|
|
8
8
|
import { CSS_UTILITY } from "../../utils/resources";
|
|
9
9
|
import { CalciteHeading } from "../functional/CalciteHeading";
|
|
10
10
|
import { SLOTS as ACTION_MENU_SLOTS } from "../calcite-action-menu/resources";
|
|
@@ -106,7 +106,7 @@ export class CalcitePanel {
|
|
|
106
106
|
// --------------------------------------------------------------------------
|
|
107
107
|
renderBackButton() {
|
|
108
108
|
const { el } = this;
|
|
109
|
-
const rtl =
|
|
109
|
+
const rtl = getElementStyleDir(el) === "rtl";
|
|
110
110
|
const { showBackButton, intlBack, backButtonClick } = this;
|
|
111
111
|
const label = intlBack || TEXT.back;
|
|
112
112
|
const icon = rtl ? ICONS.backRight : ICONS.backLeft;
|
|
@@ -215,8 +215,8 @@ export function selectSiblings(item, deselect = false) {
|
|
|
215
215
|
}
|
|
216
216
|
let groups;
|
|
217
217
|
export function handleFilter(event) {
|
|
218
|
-
const
|
|
219
|
-
const values =
|
|
218
|
+
const { filteredItems } = event.currentTarget;
|
|
219
|
+
const values = filteredItems.map((item) => item.value);
|
|
220
220
|
let hasSelectedMatch = false;
|
|
221
221
|
if (!groups) {
|
|
222
222
|
groups = new Set();
|
|
@@ -22,7 +22,7 @@ export const List = (_a) => {
|
|
|
22
22
|
return (h(Host, Object.assign({ "aria-busy": loading.toString(), "aria-disabled": disabled.toString(), role: "menu" }, rest),
|
|
23
23
|
h("section", null,
|
|
24
24
|
h("header", { class: { [CSS.sticky]: true } },
|
|
25
|
-
filterEnabled ? (h("calcite-filter", { "aria-label": filterPlaceholder,
|
|
25
|
+
filterEnabled ? (h("calcite-filter", { "aria-label": filterPlaceholder, dir: getElementDir(el), disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,
|
|
26
26
|
h("slot", { name: SLOTS.menuActions })),
|
|
27
27
|
loading || disabled ? h("calcite-scrim", { loading: loading }) : null,
|
|
28
28
|
defaultSlot)));
|
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Host, Listen, Method, Prop, Watch } from "@stencil/core";
|
|
6
6
|
import { guid } from "../../utils/guid";
|
|
7
|
-
import { focusElement } from "../../utils/dom";
|
|
7
|
+
import { focusElement, getElementStyleDir } from "../../utils/dom";
|
|
8
8
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
9
9
|
import { HiddenFormInputSlot, connectForm, disconnectForm } from "../../utils/form";
|
|
10
10
|
import { CSS } from "./resources";
|
|
11
|
-
import { getKey } from "../../utils/key";
|
|
12
|
-
import { getElementDir } from "../../utils/dom";
|
|
13
11
|
import { getRoundRobinIndex } from "../../utils/array";
|
|
14
12
|
export class CalciteRadioButton {
|
|
15
13
|
constructor() {
|
|
@@ -70,7 +68,7 @@ export class CalciteRadioButton {
|
|
|
70
68
|
};
|
|
71
69
|
this.handleKeyDown = (event) => {
|
|
72
70
|
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
73
|
-
const key =
|
|
71
|
+
const key = event.key;
|
|
74
72
|
const { el } = this;
|
|
75
73
|
if (keys.indexOf(key) === -1) {
|
|
76
74
|
return;
|
|
@@ -80,7 +78,7 @@ export class CalciteRadioButton {
|
|
|
80
78
|
return;
|
|
81
79
|
}
|
|
82
80
|
let adjustedKey = key;
|
|
83
|
-
if (
|
|
81
|
+
if (getElementStyleDir(el) === "rtl") {
|
|
84
82
|
if (key === "ArrowRight") {
|
|
85
83
|
adjustedKey = "ArrowLeft";
|
|
86
84
|
}
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Event, h, Listen, Element, Prop, Watch, Host, Build, Method } from "@stencil/core";
|
|
6
|
-
import {
|
|
7
|
-
import { getKey } from "../../utils/key";
|
|
6
|
+
import { getElementStyleDir } from "../../utils/dom";
|
|
8
7
|
import { connectLabel, disconnectLabel } from "../../utils/label";
|
|
9
8
|
import { connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
|
|
10
9
|
/**
|
|
@@ -42,7 +41,7 @@ export class CalciteRadioGroup {
|
|
|
42
41
|
//--------------------------------------------------------------------------
|
|
43
42
|
this.handleClick = (event) => {
|
|
44
43
|
if (event.target.localName === "calcite-radio-group-item") {
|
|
45
|
-
this.selectItem(event.target);
|
|
44
|
+
this.selectItem(event.target, true);
|
|
46
45
|
}
|
|
47
46
|
};
|
|
48
47
|
}
|
|
@@ -61,7 +60,6 @@ export class CalciteRadioGroup {
|
|
|
61
60
|
.pop();
|
|
62
61
|
if (match) {
|
|
63
62
|
this.selectItem(match);
|
|
64
|
-
this.calciteRadioGroupChange.emit(match.value);
|
|
65
63
|
}
|
|
66
64
|
else if (items[0]) {
|
|
67
65
|
items[0].tabIndex = 0;
|
|
@@ -72,7 +70,7 @@ export class CalciteRadioGroup {
|
|
|
72
70
|
// Lifecycle
|
|
73
71
|
//
|
|
74
72
|
//--------------------------------------------------------------------------
|
|
75
|
-
|
|
73
|
+
componentWillLoad() {
|
|
76
74
|
const items = this.getItems();
|
|
77
75
|
const lastChecked = Array.from(items)
|
|
78
76
|
.filter((item) => item.checked)
|
|
@@ -83,6 +81,8 @@ export class CalciteRadioGroup {
|
|
|
83
81
|
else if (items[0]) {
|
|
84
82
|
items[0].tabIndex = 0;
|
|
85
83
|
}
|
|
84
|
+
}
|
|
85
|
+
connectedCallback() {
|
|
86
86
|
connectLabel(this);
|
|
87
87
|
connectForm(this);
|
|
88
88
|
}
|
|
@@ -90,31 +90,25 @@ export class CalciteRadioGroup {
|
|
|
90
90
|
disconnectLabel(this);
|
|
91
91
|
disconnectForm(this);
|
|
92
92
|
}
|
|
93
|
-
componentDidLoad() {
|
|
94
|
-
this.hasLoaded = true;
|
|
95
|
-
}
|
|
96
93
|
render() {
|
|
97
94
|
return (h(Host, { onClick: this.handleClick, role: "radiogroup", tabIndex: this.disabled ? -1 : null },
|
|
98
95
|
h("slot", null),
|
|
99
96
|
h(HiddenFormInputSlot, { component: this })));
|
|
100
97
|
}
|
|
101
98
|
handleSelected(event) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
event.preventDefault();
|
|
106
|
-
this.selectItem(event.target);
|
|
107
|
-
}
|
|
99
|
+
event.stopPropagation();
|
|
100
|
+
event.preventDefault();
|
|
101
|
+
this.selectItem(event.target);
|
|
108
102
|
}
|
|
109
103
|
handleKeyDown(event) {
|
|
110
104
|
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
111
|
-
const key =
|
|
105
|
+
const key = event.key;
|
|
112
106
|
const { el, selectedItem } = this;
|
|
113
107
|
if (keys.indexOf(key) === -1) {
|
|
114
108
|
return;
|
|
115
109
|
}
|
|
116
110
|
let adjustedKey = key;
|
|
117
|
-
if (
|
|
111
|
+
if (getElementStyleDir(el) === "rtl") {
|
|
118
112
|
if (key === "ArrowRight") {
|
|
119
113
|
adjustedKey = "ArrowLeft";
|
|
120
114
|
}
|
|
@@ -134,17 +128,17 @@ export class CalciteRadioGroup {
|
|
|
134
128
|
case "ArrowUp":
|
|
135
129
|
event.preventDefault();
|
|
136
130
|
const previous = selectedIndex < 1 ? items.item(items.length - 1) : items.item(selectedIndex - 1);
|
|
137
|
-
this.selectItem(previous);
|
|
131
|
+
this.selectItem(previous, true);
|
|
138
132
|
return;
|
|
139
133
|
case "ArrowRight":
|
|
140
134
|
case "ArrowDown":
|
|
141
135
|
event.preventDefault();
|
|
142
136
|
const next = selectedIndex === -1 ? items.item(1) : items.item(selectedIndex + 1) || items.item(0);
|
|
143
|
-
this.selectItem(next);
|
|
137
|
+
this.selectItem(next, true);
|
|
144
138
|
return;
|
|
145
139
|
case " ":
|
|
146
140
|
event.preventDefault();
|
|
147
|
-
this.selectItem(event.target);
|
|
141
|
+
this.selectItem(event.target, true);
|
|
148
142
|
return;
|
|
149
143
|
default:
|
|
150
144
|
return;
|
|
@@ -171,7 +165,7 @@ export class CalciteRadioGroup {
|
|
|
171
165
|
getItems() {
|
|
172
166
|
return this.el.querySelectorAll("calcite-radio-group-item");
|
|
173
167
|
}
|
|
174
|
-
selectItem(selected) {
|
|
168
|
+
selectItem(selected, emit = false) {
|
|
175
169
|
if (selected === this.selectedItem) {
|
|
176
170
|
return;
|
|
177
171
|
}
|
|
@@ -185,6 +179,9 @@ export class CalciteRadioGroup {
|
|
|
185
179
|
item.tabIndex = matches ? 0 : -1;
|
|
186
180
|
if (matches) {
|
|
187
181
|
match = item;
|
|
182
|
+
if (emit) {
|
|
183
|
+
this.calciteRadioGroupChange.emit(match.value);
|
|
184
|
+
}
|
|
188
185
|
}
|
|
189
186
|
});
|
|
190
187
|
this.selectedItem = match;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
|
-
import { Component,
|
|
5
|
+
import { Component, h, Prop, Element, Event, Host, Watch, State } from "@stencil/core";
|
|
6
6
|
import { getElementDir, getElementProp } from "../../utils/dom";
|
|
7
7
|
import { SLOTS, CSS } from "./resources";
|
|
8
8
|
import { createObserver } from "../../utils/observers";
|
|
@@ -118,6 +118,7 @@ export class CalciteSelect {
|
|
|
118
118
|
this.updateNativeElement(optionOrGroup, nativeEl);
|
|
119
119
|
if (isOption(optionOrGroup) && optionOrGroup.selected) {
|
|
120
120
|
this.deselectAllExcept(optionOrGroup);
|
|
121
|
+
this.selectedOption = optionOrGroup;
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
//--------------------------------------------------------------------------
|
|
@@ -157,7 +158,7 @@ export class CalciteSelect {
|
|
|
157
158
|
}
|
|
158
159
|
});
|
|
159
160
|
if (futureSelected) {
|
|
160
|
-
|
|
161
|
+
this.selectedOption = futureSelected;
|
|
161
162
|
}
|
|
162
163
|
}
|
|
163
164
|
toNativeElement(optionOrGroup) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, Prop, Watch, h, State, forceUpdate } from "@stencil/core";
|
|
6
6
|
import { CSS, SLOTS, TEXT } from "./resources";
|
|
7
|
-
import { getSlotted } from "../../utils/dom";
|
|
7
|
+
import { getSlotted, getElementStyleDir } from "../../utils/dom";
|
|
8
8
|
import { clamp } from "../../utils/math";
|
|
9
9
|
/**
|
|
10
10
|
* @slot - A slot for adding content to the shell panel.
|
|
@@ -54,7 +54,7 @@ export class CalciteShellPanel {
|
|
|
54
54
|
};
|
|
55
55
|
this.getKeyAdjustedWidth = (event) => {
|
|
56
56
|
const { key } = event;
|
|
57
|
-
const { step, stepMultiplier, contentWidthMin, contentWidthMax, initialContentWidth, position } = this;
|
|
57
|
+
const { el, step, stepMultiplier, contentWidthMin, contentWidthMax, initialContentWidth, position } = this;
|
|
58
58
|
const multipliedStep = step * stepMultiplier;
|
|
59
59
|
const MOVEMENT_KEYS = [
|
|
60
60
|
"ArrowUp",
|
|
@@ -69,15 +69,20 @@ export class CalciteShellPanel {
|
|
|
69
69
|
if (MOVEMENT_KEYS.indexOf(key) > -1) {
|
|
70
70
|
event.preventDefault();
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const dir = getElementStyleDir(el);
|
|
73
|
+
const directionKeys = ["ArrowLeft", "ArrowRight"];
|
|
74
|
+
const directionFactor = dir === "rtl" && directionKeys.includes(key) ? -1 : 1;
|
|
75
|
+
const increaseKeys = key === "ArrowUp" ||
|
|
76
|
+
(position === "end" ? key === directionKeys[0] : key === directionKeys[1]);
|
|
73
77
|
if (increaseKeys) {
|
|
74
78
|
const stepValue = event.shiftKey ? multipliedStep : step;
|
|
75
|
-
return initialContentWidth + stepValue;
|
|
79
|
+
return initialContentWidth + directionFactor * stepValue;
|
|
76
80
|
}
|
|
77
|
-
const decreaseKeys = key === "ArrowDown" ||
|
|
81
|
+
const decreaseKeys = key === "ArrowDown" ||
|
|
82
|
+
(position === "end" ? key === directionKeys[1] : key === directionKeys[0]);
|
|
78
83
|
if (decreaseKeys) {
|
|
79
84
|
const stepValue = event.shiftKey ? multipliedStep : step;
|
|
80
|
-
return initialContentWidth - stepValue;
|
|
85
|
+
return initialContentWidth - directionFactor * stepValue;
|
|
81
86
|
}
|
|
82
87
|
if (typeof contentWidthMin === "number" && key === "Home") {
|
|
83
88
|
return contentWidthMin;
|
|
@@ -102,9 +107,13 @@ export class CalciteShellPanel {
|
|
|
102
107
|
};
|
|
103
108
|
this.separatorPointerMove = (event) => {
|
|
104
109
|
event.preventDefault();
|
|
105
|
-
const { initialContentWidth, position, initialClientX } = this;
|
|
110
|
+
const { el, initialContentWidth, position, initialClientX } = this;
|
|
106
111
|
const offset = event.clientX - initialClientX;
|
|
107
|
-
|
|
112
|
+
const dir = getElementStyleDir(el);
|
|
113
|
+
const adjustmentDirection = dir === "rtl" ? -1 : 1;
|
|
114
|
+
const adjustedOffset = position === "end" ? -adjustmentDirection * offset : adjustmentDirection * offset;
|
|
115
|
+
const width = initialContentWidth + adjustedOffset;
|
|
116
|
+
this.setContentWidth(width);
|
|
108
117
|
};
|
|
109
118
|
this.separatorPointerUp = (event) => {
|
|
110
119
|
event.preventDefault();
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Host, Listen, Method, Prop, State, Watch } from "@stencil/core";
|
|
6
6
|
import { guid } from "../../utils/guid";
|
|
7
|
-
import { getKey } from "../../utils/key";
|
|
8
7
|
import { intersects } from "../../utils/dom";
|
|
9
8
|
import { clamp } from "../../utils/math";
|
|
10
9
|
import { connectLabel, disconnectLabel } from "../../utils/label";
|
|
@@ -374,7 +373,7 @@ export class CalciteSlider {
|
|
|
374
373
|
const mirror = this.shouldMirror();
|
|
375
374
|
const { activeProp, max, min, pageStep, step } = this;
|
|
376
375
|
const value = this[activeProp];
|
|
377
|
-
const key =
|
|
376
|
+
const key = event.key;
|
|
378
377
|
if (key === "Enter" || key === " ") {
|
|
379
378
|
event.preventDefault();
|
|
380
379
|
return;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Listen, Method, Prop, Watch } from "@stencil/core";
|
|
6
|
-
import { getKey } from "../../utils/key";
|
|
7
6
|
/**
|
|
8
7
|
* @slot - A slot for adding `calcite-stepper-item`s.
|
|
9
8
|
*/
|
|
@@ -72,7 +71,7 @@ export class CalciteStepper {
|
|
|
72
71
|
const itemToFocus = e.target;
|
|
73
72
|
const isFirstItem = this.itemIndex(itemToFocus) === 0;
|
|
74
73
|
const isLastItem = this.itemIndex(itemToFocus) === this.sortedItems.length - 1;
|
|
75
|
-
switch (
|
|
74
|
+
switch (item.key) {
|
|
76
75
|
case "ArrowDown":
|
|
77
76
|
case "ArrowRight":
|
|
78
77
|
if (isLastItem) {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Host, Listen, Prop, Watch } from "@stencil/core";
|
|
6
6
|
import { getElementDir, getElementProp } from "../../utils/dom";
|
|
7
|
-
import { getKey } from "../../utils/key";
|
|
8
7
|
import { CSS_UTILITY } from "../../utils/resources";
|
|
9
8
|
/**
|
|
10
9
|
* @slot - A slot for adding custom content.
|
|
@@ -85,7 +84,7 @@ export class CalciteStepperItem {
|
|
|
85
84
|
//--------------------------------------------------------------------------
|
|
86
85
|
keyDownHandler(e) {
|
|
87
86
|
if (!this.disabled && e.target === this.el) {
|
|
88
|
-
switch (
|
|
87
|
+
switch (e.key) {
|
|
89
88
|
case " ":
|
|
90
89
|
case "Enter":
|
|
91
90
|
this.emitRequestedItem();
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Host, Method, Prop, State, Watch } from "@stencil/core";
|
|
6
6
|
import { focusElement, getElementDir } from "../../utils/dom";
|
|
7
|
-
import { getKey } from "../../utils/key";
|
|
8
7
|
import { CSS_UTILITY } from "../../utils/resources";
|
|
9
8
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
10
9
|
import { connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
|
|
@@ -31,7 +30,7 @@ export class CalciteSwitch {
|
|
|
31
30
|
//
|
|
32
31
|
//--------------------------------------------------------------------------
|
|
33
32
|
this.keyDownHandler = (e) => {
|
|
34
|
-
const key =
|
|
33
|
+
const key = e.key;
|
|
35
34
|
if (!this.disabled && (key === " " || key === "Enter")) {
|
|
36
35
|
this.toggle();
|
|
37
36
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Host, Listen, Prop, State, Watch } from "@stencil/core";
|
|
6
|
-
import {
|
|
6
|
+
import { getElementStyleDir, filterDirectChildren } from "../../utils/dom";
|
|
7
7
|
/**
|
|
8
8
|
* @slot - A slot for adding `calcite-tab-title`s.
|
|
9
9
|
*/
|
|
@@ -86,7 +86,7 @@ export class CalciteTabNav {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
|
-
const dir =
|
|
89
|
+
const dir = getElementStyleDir(this.el);
|
|
90
90
|
const width = `${this.indicatorWidth}px`;
|
|
91
91
|
const offset = `${this.indicatorOffset}px`;
|
|
92
92
|
const indicatorStyle = dir !== "rtl" ? { width, left: offset } : { width, right: offset };
|
|
@@ -147,7 +147,7 @@ export class CalciteTabNav {
|
|
|
147
147
|
}
|
|
148
148
|
updateOffsetPosition() {
|
|
149
149
|
var _a, _b, _c, _d, _e;
|
|
150
|
-
const dir =
|
|
150
|
+
const dir = getElementStyleDir(this.el);
|
|
151
151
|
const navWidth = (_a = this.activeIndicatorContainerEl) === null || _a === void 0 ? void 0 : _a.offsetWidth;
|
|
152
152
|
const tabLeft = (_b = this.selectedTabEl) === null || _b === void 0 ? void 0 : _b.offsetLeft;
|
|
153
153
|
const tabWidth = (_c = this.selectedTabEl) === null || _c === void 0 ? void 0 : _c.offsetWidth;
|