@esri/calcite-components 1.0.0-beta.70 → 1.0.0-beta.71
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/assets/calcite-icon/cloudy16.json +1 -0
- package/dist/calcite/assets/calcite-icon/cloudy24.json +1 -0
- package/dist/calcite/assets/calcite-icon/cloudy32.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionLock16.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionLock24.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionLock32.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionUnlock16.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionUnlock24.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionUnlock32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeThreshold16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeThreshold24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeThreshold32.json +1 -0
- package/dist/calcite/assets/calcite-icon/fog16.json +1 -0
- package/dist/calcite/assets/calcite-icon/fog24.json +1 -0
- package/dist/calcite/assets/calcite-icon/fog32.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavyRain16.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavyRain24.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavyRain32.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavySnow16.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavySnow24.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavySnow32.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightRain16.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightRain24.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightRain32.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightSnow16.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightSnow24.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightSnow32.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloud16.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloud24.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloud32.json +1 -0
- package/dist/calcite/assets/calcite-icon/rain16.json +1 -0
- package/dist/calcite/assets/calcite-icon/rain24.json +1 -0
- package/dist/calcite/assets/calcite-icon/rain32.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainSnow16.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainSnow24.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainSnow32.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainThunder16.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainThunder24.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainThunder32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsThreshold16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsThreshold24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsThreshold32.json +1 -0
- package/dist/calcite/assets/calcite-icon/selectVisible16.json +1 -0
- package/dist/calcite/assets/calcite-icon/selectVisible24.json +1 -0
- package/dist/calcite/assets/calcite-icon/selectVisible32.json +1 -0
- package/dist/calcite/assets/calcite-icon/snow16.json +1 -0
- package/dist/calcite/assets/calcite-icon/snow24.json +1 -0
- package/dist/calcite/assets/calcite-icon/snow32.json +1 -0
- package/dist/calcite/assets/calcite-icon/snowThunder16.json +1 -0
- package/dist/calcite/assets/calcite-icon/snowThunder24.json +1 -0
- package/dist/calcite/assets/calcite-icon/snowThunder32.json +1 -0
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/{p-2a714a22.entry.js → p-04a2538a.entry.js} +1 -1
- package/dist/calcite/{p-d6e30c54.entry.js → p-051cc8c6.entry.js} +1 -1
- package/dist/calcite/{p-765fb8ed.entry.js → p-058ee7b0.entry.js} +1 -1
- package/dist/calcite/{p-5efd81e1.entry.js → p-0c827dec.entry.js} +1 -1
- 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-1a962bdd.js → p-1161e56f.js} +1 -1
- package/dist/calcite/{p-044d603d.system.entry.js → p-18fbf2af.system.entry.js} +1 -1
- package/dist/calcite/{p-9338b0bc.entry.js → p-198902ca.entry.js} +1 -1
- package/dist/calcite/{p-cc788d2e.entry.js → p-1ad123f9.entry.js} +1 -1
- package/dist/calcite/{p-e33fe285.system.entry.js → p-1eb04aad.system.entry.js} +1 -1
- 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-20f91a4e.system.entry.js +5 -0
- package/dist/calcite/{p-7ba971b5.system.entry.js → p-227bc238.system.entry.js} +1 -1
- package/dist/calcite/p-239b44dd.system.entry.js +5 -0
- package/dist/calcite/{p-f9c46578.entry.js → p-23bc2d32.entry.js} +1 -1
- package/dist/calcite/p-266ee9db.entry.js +5 -0
- package/dist/calcite/{p-4f1f83d2.entry.js → p-2c66fb61.entry.js} +1 -1
- package/dist/calcite/{p-63e60894.entry.js → p-343cd887.entry.js} +1 -1
- 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-42091a1f.system.entry.js +5 -0
- package/dist/calcite/p-42c7e2f0.system.entry.js +5 -0
- package/dist/calcite/p-43020fb5.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-4cc182af.system.entry.js +5 -0
- package/dist/calcite/{p-cced5508.system.entry.js → p-4ee2f6cf.system.entry.js} +1 -1
- package/dist/calcite/{p-c87c04a9.entry.js → p-50273eed.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-3a592bf3.system.entry.js → p-538e542a.system.entry.js} +1 -1
- package/dist/calcite/{p-ef39847e.entry.js → p-55bfe4fc.entry.js} +1 -1
- package/dist/calcite/{p-dd464e44.system.entry.js → p-57e9b7cb.system.entry.js} +1 -1
- package/dist/calcite/{p-e6d05ad6.system.entry.js → p-6c5b849f.system.entry.js} +1 -1
- package/dist/calcite/{p-9577dfd9.entry.js → p-6ca051ef.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-243d95ab.system.entry.js → p-730b8963.system.entry.js} +2 -2
- package/dist/calcite/{p-4d11efdb.system.entry.js → p-7325e7fc.system.entry.js} +1 -1
- package/dist/calcite/{p-a8dc2982.system.entry.js → p-784e4e32.system.entry.js} +1 -1
- package/dist/calcite/{p-2aa3007a.entry.js → p-80a527ef.entry.js} +1 -1
- package/dist/calcite/{p-cf03b144.system.entry.js → p-832affcb.system.entry.js} +1 -1
- package/dist/calcite/p-837f9bb4.system.entry.js +5 -0
- package/dist/calcite/{p-840f2937.system.entry.js → p-83fca16e.system.entry.js} +1 -1
- package/dist/calcite/{p-e616f9b5.entry.js → p-84d6696b.entry.js} +1 -1
- package/dist/calcite/{p-38bd222a.entry.js → p-87f1831b.entry.js} +1 -1
- 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-8da7ad4b.entry.js +5 -0
- package/dist/calcite/p-8e252799.system.js +1 -1
- package/dist/calcite/{p-1dd440e6.system.entry.js → p-9470d123.system.entry.js} +1 -1
- package/dist/calcite/{p-4e16515a.system.entry.js → p-99de28b4.system.entry.js} +1 -1
- 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-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-ab9c6a18.entry.js +5 -0
- package/dist/calcite/{p-6484ffb7.system.entry.js → p-abdc7a4b.system.entry.js} +1 -1
- package/dist/calcite/{p-74f390e1.system.entry.js → p-ac38b743.system.entry.js} +2 -2
- package/dist/calcite/{p-dbe899c6.system.entry.js → p-b0b6baf4.system.entry.js} +1 -1
- package/dist/calcite/{p-6296644b.entry.js → p-b16b831d.entry.js} +1 -1
- package/dist/calcite/p-b174f9ac.entry.js +5 -0
- package/dist/calcite/{p-16f2d814.system.entry.js → p-b37b7b9e.system.entry.js} +1 -1
- package/dist/calcite/{p-502ea583.entry.js → p-b3e418f0.entry.js} +1 -1
- package/dist/calcite/{p-defcee80.system.entry.js → p-b5d21a5d.system.entry.js} +1 -1
- package/dist/calcite/p-b5f412fb.entry.js +5 -0
- package/dist/calcite/p-b6b6ec04.js +5 -0
- package/dist/calcite/{p-127e3513.system.entry.js → p-b7518275.system.entry.js} +1 -1
- package/dist/calcite/{p-85032edc.system.entry.js → p-b75ffebb.system.entry.js} +1 -1
- package/dist/calcite/{p-8603b2e1.entry.js → p-bef1f0d9.entry.js} +1 -1
- 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-cbf6bb04.system.js → p-c937f25f.system.js} +1 -1
- 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-d07ff1ee.system.js +5 -0
- package/dist/calcite/{p-16bb48f6.system.entry.js → p-d102e280.system.entry.js} +1 -1
- package/dist/calcite/p-d830efad.entry.js +5 -0
- package/dist/calcite/p-dacd3cf8.entry.js +5 -0
- package/dist/calcite/{p-9be6633a.entry.js → p-dcc6b40f.entry.js} +1 -1
- package/dist/calcite/p-dccb5ffd.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-fc643963.entry.js → p-ea3fee96.entry.js} +1 -1
- package/dist/calcite/{p-109049e6.system.entry.js → p-eb0f1e0f.system.entry.js} +1 -1
- package/dist/calcite/{p-5eee672a.system.entry.js → p-ed3f000d.system.entry.js} +1 -1
- package/dist/calcite/{p-592da79d.system.entry.js → p-ee40deba.system.entry.js} +1 -1
- package/dist/calcite/p-ee45cff5.system.entry.js +5 -0
- package/dist/calcite/{p-aec398f3.system.entry.js → p-eeb8dfe5.system.entry.js} +1 -1
- package/dist/calcite/{p-63da2e34.system.entry.js → p-f05b5dc9.system.entry.js} +1 -1
- package/dist/calcite/{p-a61d85db.system.entry.js → p-f1832595.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-4778c5cf.system.entry.js → p-f6323ffa.system.entry.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-fb817417.entry.js +5 -0
- package/dist/calcite/{p-ace12b8d.entry.js → p-fb8b2c96.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 +1 -1
- 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 +19 -7
- 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 +1 -1
- 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 +20 -12
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +5 -5
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +1 -1
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +3 -3
- package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
- package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +3 -3
- 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 +4 -4
- package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-input.cjs.entry.js +23 -17
- 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 +2 -2
- 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 +8 -7
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-popover_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +18 -20
- package/dist/cjs/calcite-radio_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
- package/dist/cjs/calcite-shell_3.cjs.entry.js +166 -6
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -2
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-switch.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tab_4.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +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 +2 -2
- package/dist/cjs/calcite-tree_2.cjs.entry.js +1 -1
- 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/{popper-87bf13e6.js → popper-4c24a334.js} +91 -65
- package/dist/cjs/{resources-cd25dbae.js → resources-1177e39b.js} +1 -1
- package/dist/collection/components/calcite-alert/calcite-alert.js +19 -5
- package/dist/collection/components/calcite-block-section/calcite-block-section.js +2 -2
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +2 -2
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +1 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/cloudy16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/cloudy24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/cloudy32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionLock16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionLock24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionLock32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionUnlock16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionUnlock24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionUnlock32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeThreshold16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeThreshold24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeThreshold32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/fog16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/fog24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/fog32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavyRain16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavyRain24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavyRain32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavySnow16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavySnow24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavySnow32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightRain16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightRain24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightRain32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightSnow16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightSnow24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightSnow32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloud16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloud24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloud32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rain16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rain24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rain32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainSnow16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainSnow24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainSnow32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainThunder16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainThunder24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainThunder32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsThreshold16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsThreshold24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsThreshold32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/selectVisible16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/selectVisible24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/selectVisible32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snow16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snow24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snow32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snowThunder16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snowThunder24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snowThunder32.json +1 -0
- package/dist/collection/components/calcite-input/calcite-input.css +2 -0
- package/dist/collection/components/calcite-input/calcite-input.js +21 -14
- package/dist/collection/components/calcite-modal/calcite-modal.js +1 -1
- package/dist/collection/components/calcite-panel/calcite-panel.css +4 -1
- package/dist/collection/components/calcite-panel/calcite-panel.js +9 -8
- package/dist/collection/components/calcite-panel/resources.js +1 -0
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +2 -3
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +16 -18
- 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.css +44 -0
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +204 -6
- package/dist/collection/components/calcite-shell-panel/resources.js +5 -1
- package/dist/collection/components/calcite-split-button/calcite-split-button.js +26 -1
- package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.js +3 -3
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +3 -3
- package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.js +2 -2
- package/dist/collection/components/functional/CalciteExpandToggle.js +3 -3
- package/dist/collection/utils/dom.js +6 -0
- package/dist/components/CalciteExpandToggle.js +3 -3
- package/dist/components/calcite-alert.js +18 -6
- 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-color-picker-swatch2.js +20 -12
- package/dist/components/calcite-combobox.js +2 -2
- package/dist/components/calcite-dropdown2.js +1 -1
- package/dist/components/calcite-input2.js +20 -14
- package/dist/components/calcite-modal.js +2 -2
- package/dist/components/calcite-panel.js +8 -7
- package/dist/components/calcite-popover-manager.js +1 -1
- package/dist/components/calcite-radio-button.js +2 -2
- package/dist/components/calcite-radio-group.js +16 -18
- package/dist/components/calcite-select.js +2 -1
- package/dist/components/calcite-shell-panel.js +171 -8
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-split-button.js +4 -1
- package/dist/components/calcite-tab-nav2.js +3 -3
- package/dist/components/calcite-tab-title2.js +3 -3
- package/dist/components/calcite-tip-manager.js +2 -2
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/dom.js +7 -1
- package/dist/components/form.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/popper.js +90 -64
- package/dist/custom-elements/index.js +451 -232
- package/dist/esm/{CalciteExpandToggle-677f2f8b.js → CalciteExpandToggle-4b38a7d1.js} +3 -3
- package/dist/esm/calcite-accordion_2.entry.js +1 -1
- 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 +19 -7
- 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 +1 -1
- 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 +20 -12
- package/dist/esm/calcite-combobox_3.entry.js +5 -5
- package/dist/esm/calcite-date-picker_4.entry.js +1 -1
- package/dist/esm/calcite-dropdown_3.entry.js +3 -3
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/calcite-filter.entry.js +1 -1
- package/dist/esm/calcite-graph_2.entry.js +3 -3
- 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 +4 -4
- package/dist/esm/calcite-input-message.entry.js +1 -1
- package/dist/esm/calcite-input-time-picker_2.entry.js +3 -3
- package/dist/esm/calcite-input.entry.js +23 -17
- 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 +2 -2
- 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 +8 -7
- package/dist/esm/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm/calcite-popover_2.entry.js +2 -2
- package/dist/esm/calcite-radio-group_2.entry.js +18 -20
- package/dist/esm/calcite-radio_2.entry.js +4 -4
- package/dist/esm/calcite-rating.entry.js +3 -3
- package/dist/esm/calcite-shell_3.entry.js +167 -7
- package/dist/esm/calcite-split-button.entry.js +4 -2
- package/dist/esm/calcite-stepper_2.entry.js +1 -1
- package/dist/esm/calcite-switch.entry.js +3 -3
- package/dist/esm/calcite-tab_4.entry.js +5 -5
- package/dist/esm/calcite-tile-select_2.entry.js +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 +2 -2
- package/dist/esm/calcite-tree_2.entry.js +1 -1
- 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/{popper-dc4b45cf.js → popper-ed1eefa6.js} +91 -65
- package/dist/esm/{resources-16a2a25a.js → resources-eafda211.js} +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
- package/dist/esm-es5/calcite-tile-select_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tile.entry.js +1 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +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/popper-ed1eefa6.js +5 -0
- package/dist/esm-es5/{resources-16a2a25a.js → resources-eafda211.js} +1 -1
- package/dist/extras/docs-json.json +63 -1
- package/dist/types/components/calcite-alert/calcite-alert.d.ts +4 -1
- package/dist/types/components/calcite-panel/resources.d.ts +1 -0
- package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +1 -2
- package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +31 -0
- package/dist/types/components/calcite-shell-panel/resources.d.ts +4 -0
- package/dist/types/components/calcite-split-button/calcite-split-button.d.ts +3 -0
- package/dist/types/components.d.ts +26 -0
- package/dist/types/utils/dom.d.ts +4 -0
- package/hydrate/index.js +455 -232
- package/package.json +17 -16
- package/readme.md +2 -2
- package/CHANGELOG.md +0 -1540
- package/dist/calcite/p-047e1000.system.entry.js +0 -5
- package/dist/calcite/p-08d707c4.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-1aa89347.system.entry.js +0 -5
- package/dist/calcite/p-33226317.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-52cc870b.js +0 -5
- package/dist/calcite/p-54394dfe.system.entry.js +0 -5
- package/dist/calcite/p-5c0c29bc.entry.js +0 -5
- package/dist/calcite/p-5f817b79.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-75264173.entry.js +0 -5
- package/dist/calcite/p-75955cef.entry.js +0 -5
- package/dist/calcite/p-7cbc72b6.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-968ea270.entry.js +0 -5
- package/dist/calcite/p-aa47308a.entry.js +0 -5
- package/dist/calcite/p-b1351c3e.system.entry.js +0 -5
- package/dist/calcite/p-b1a96c72.system.entry.js +0 -5
- package/dist/calcite/p-b1f88d45.system.js +0 -5
- package/dist/calcite/p-ca3bb147.entry.js +0 -5
- package/dist/calcite/p-d53cc958.js +0 -5
- package/dist/calcite/p-d550ee4d.entry.js +0 -5
- package/dist/calcite/p-d6f20229.js +0 -5
- package/dist/calcite/p-ed15771f.system.entry.js +0 -5
- package/dist/calcite/p-ed453bfb.entry.js +0 -5
- package/dist/esm-es5/CalciteExpandToggle-677f2f8b.js +0 -5
- package/dist/esm-es5/dom-f24e866c.js +0 -5
- package/dist/esm-es5/popper-dc4b45cf.js +0 -5
|
@@ -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) {
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
display: flex;
|
|
89
89
|
align-items: stretch;
|
|
90
90
|
flex: 0 1 auto;
|
|
91
|
+
pointer-events: none;
|
|
91
92
|
--calcite-shell-panel-detached-max-height: unset;
|
|
92
93
|
}
|
|
93
94
|
|
|
@@ -106,6 +107,49 @@
|
|
|
106
107
|
box-sizing: border-box;
|
|
107
108
|
}
|
|
108
109
|
|
|
110
|
+
:host(:hover) .separator:not(:hover):not(:focus),
|
|
111
|
+
:host(:focus-within) .separator:not(:hover):not(:focus) {
|
|
112
|
+
opacity: 1;
|
|
113
|
+
background-color: var(--calcite-ui-border-3);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.separator {
|
|
117
|
+
position: absolute;
|
|
118
|
+
background-color: transparent;
|
|
119
|
+
bottom: 0;
|
|
120
|
+
display: flex;
|
|
121
|
+
height: 100%;
|
|
122
|
+
opacity: 0;
|
|
123
|
+
pointer-events: auto;
|
|
124
|
+
top: 0;
|
|
125
|
+
transition-property: all;
|
|
126
|
+
transition-duration: 150ms;
|
|
127
|
+
transition-timing-function: ease-in-out;
|
|
128
|
+
transition-delay: 0s;
|
|
129
|
+
width: 0.125rem;
|
|
130
|
+
z-index: 10;
|
|
131
|
+
cursor: col-resize;
|
|
132
|
+
outline: none;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.separator:hover {
|
|
136
|
+
opacity: 1;
|
|
137
|
+
background-color: var(--calcite-ui-border-2);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.separator:focus {
|
|
141
|
+
background-color: var(--calcite-ui-brand);
|
|
142
|
+
opacity: 1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:host([position=start]) .separator {
|
|
146
|
+
inset-inline-end: -2px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:host([position=end]) .separator {
|
|
150
|
+
inset-inline-start: -2px;
|
|
151
|
+
}
|
|
152
|
+
|
|
109
153
|
::slotted(calcite-panel),
|
|
110
154
|
::slotted(calcite-flow) {
|
|
111
155
|
flex: 1 1 auto;
|
|
@@ -2,9 +2,10 @@
|
|
|
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, Element, Event, Prop, Watch, h } from "@stencil/core";
|
|
6
|
-
import { CSS, SLOTS } from "./resources";
|
|
7
|
-
import { getSlotted } from "../../utils/dom";
|
|
5
|
+
import { Component, Element, Event, Prop, Watch, h, State, forceUpdate } from "@stencil/core";
|
|
6
|
+
import { CSS, SLOTS, TEXT } from "./resources";
|
|
7
|
+
import { getSlotted, getElementStyleDir } from "../../utils/dom";
|
|
8
|
+
import { clamp } from "../../utils/math";
|
|
8
9
|
/**
|
|
9
10
|
* @slot - A slot for adding content to the shell panel.
|
|
10
11
|
* @slot action-bar - A slot for adding a `calcite-action-bar` to the panel.
|
|
@@ -32,10 +33,130 @@ export class CalciteShellPanel {
|
|
|
32
33
|
* This sets width of the content area.
|
|
33
34
|
*/
|
|
34
35
|
this.widthScale = "m";
|
|
36
|
+
/**
|
|
37
|
+
* Accessible label for resize separator.
|
|
38
|
+
* @default "Resize"
|
|
39
|
+
*/
|
|
40
|
+
this.intlResize = TEXT.resize;
|
|
41
|
+
/**
|
|
42
|
+
* This property makes the content area resizable if the calcite-shell-panel is not 'detached'.
|
|
43
|
+
*/
|
|
44
|
+
this.resizable = false;
|
|
45
|
+
this.contentWidth = null;
|
|
46
|
+
this.initialContentWidth = null;
|
|
47
|
+
this.initialClientX = null;
|
|
48
|
+
this.contentWidthMax = null;
|
|
49
|
+
this.contentWidthMin = null;
|
|
50
|
+
this.step = 1;
|
|
51
|
+
this.stepMultiplier = 10;
|
|
52
|
+
this.storeContentEl = (contentEl) => {
|
|
53
|
+
this.contentEl = contentEl;
|
|
54
|
+
};
|
|
55
|
+
this.getKeyAdjustedWidth = (event) => {
|
|
56
|
+
const { key } = event;
|
|
57
|
+
const { el, step, stepMultiplier, contentWidthMin, contentWidthMax, initialContentWidth, position } = this;
|
|
58
|
+
const multipliedStep = step * stepMultiplier;
|
|
59
|
+
const MOVEMENT_KEYS = [
|
|
60
|
+
"ArrowUp",
|
|
61
|
+
"ArrowDown",
|
|
62
|
+
"ArrowLeft",
|
|
63
|
+
"ArrowRight",
|
|
64
|
+
"Home",
|
|
65
|
+
"End",
|
|
66
|
+
"PageUp",
|
|
67
|
+
"PageDown"
|
|
68
|
+
];
|
|
69
|
+
if (MOVEMENT_KEYS.indexOf(key) > -1) {
|
|
70
|
+
event.preventDefault();
|
|
71
|
+
}
|
|
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]);
|
|
77
|
+
if (increaseKeys) {
|
|
78
|
+
const stepValue = event.shiftKey ? multipliedStep : step;
|
|
79
|
+
return initialContentWidth + directionFactor * stepValue;
|
|
80
|
+
}
|
|
81
|
+
const decreaseKeys = key === "ArrowDown" ||
|
|
82
|
+
(position === "end" ? key === directionKeys[1] : key === directionKeys[0]);
|
|
83
|
+
if (decreaseKeys) {
|
|
84
|
+
const stepValue = event.shiftKey ? multipliedStep : step;
|
|
85
|
+
return initialContentWidth - directionFactor * stepValue;
|
|
86
|
+
}
|
|
87
|
+
if (typeof contentWidthMin === "number" && key === "Home") {
|
|
88
|
+
return contentWidthMin;
|
|
89
|
+
}
|
|
90
|
+
if (typeof contentWidthMax === "number" && key === "End") {
|
|
91
|
+
return contentWidthMax;
|
|
92
|
+
}
|
|
93
|
+
if (key === "PageDown") {
|
|
94
|
+
return initialContentWidth - multipliedStep;
|
|
95
|
+
}
|
|
96
|
+
if (key === "PageUp") {
|
|
97
|
+
return initialContentWidth + multipliedStep;
|
|
98
|
+
}
|
|
99
|
+
return null;
|
|
100
|
+
};
|
|
101
|
+
this.separatorKeyDown = (event) => {
|
|
102
|
+
this.setInitialContentWidth();
|
|
103
|
+
const width = this.getKeyAdjustedWidth(event);
|
|
104
|
+
if (typeof width === "number") {
|
|
105
|
+
this.setContentWidth(width);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
this.separatorPointerMove = (event) => {
|
|
109
|
+
event.preventDefault();
|
|
110
|
+
const { el, initialContentWidth, position, initialClientX } = this;
|
|
111
|
+
const offset = event.clientX - initialClientX;
|
|
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);
|
|
117
|
+
};
|
|
118
|
+
this.separatorPointerUp = (event) => {
|
|
119
|
+
event.preventDefault();
|
|
120
|
+
document.removeEventListener("pointerup", this.separatorPointerUp);
|
|
121
|
+
document.removeEventListener("pointermove", this.separatorPointerMove);
|
|
122
|
+
};
|
|
123
|
+
this.setInitialContentWidth = () => {
|
|
124
|
+
var _a;
|
|
125
|
+
this.initialContentWidth = (_a = this.contentEl) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width;
|
|
126
|
+
};
|
|
127
|
+
this.separatorPointerDown = (event) => {
|
|
128
|
+
event.preventDefault();
|
|
129
|
+
const { separatorEl } = this;
|
|
130
|
+
separatorEl && document.activeElement !== separatorEl && separatorEl.focus();
|
|
131
|
+
this.setInitialContentWidth();
|
|
132
|
+
this.initialClientX = event.clientX;
|
|
133
|
+
document.addEventListener("pointerup", this.separatorPointerUp);
|
|
134
|
+
document.addEventListener("pointermove", this.separatorPointerMove);
|
|
135
|
+
};
|
|
136
|
+
this.connectSeparator = (separatorEl) => {
|
|
137
|
+
this.disconnectSeparator();
|
|
138
|
+
this.separatorEl = separatorEl;
|
|
139
|
+
separatorEl.addEventListener("pointerdown", this.separatorPointerDown);
|
|
140
|
+
};
|
|
141
|
+
this.disconnectSeparator = () => {
|
|
142
|
+
var _a;
|
|
143
|
+
(_a = this.separatorEl) === null || _a === void 0 ? void 0 : _a.removeEventListener("pointerdown", this.separatorPointerDown);
|
|
144
|
+
};
|
|
35
145
|
}
|
|
36
146
|
watchHandler() {
|
|
37
147
|
this.calciteShellPanelToggle.emit();
|
|
38
148
|
}
|
|
149
|
+
//--------------------------------------------------------------------------
|
|
150
|
+
//
|
|
151
|
+
// Lifecycle
|
|
152
|
+
//
|
|
153
|
+
//--------------------------------------------------------------------------
|
|
154
|
+
disconnectedCallback() {
|
|
155
|
+
this.disconnectSeparator();
|
|
156
|
+
}
|
|
157
|
+
componentDidLoad() {
|
|
158
|
+
this.updateAriaValues();
|
|
159
|
+
}
|
|
39
160
|
// --------------------------------------------------------------------------
|
|
40
161
|
//
|
|
41
162
|
// Render Methods
|
|
@@ -48,18 +169,53 @@ export class CalciteShellPanel {
|
|
|
48
169
|
h("slot", { name: SLOTS.header }))) : null;
|
|
49
170
|
}
|
|
50
171
|
render() {
|
|
51
|
-
const { collapsed, detached, position } = this;
|
|
52
|
-
const
|
|
172
|
+
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
173
|
+
const allowResizing = !detached && resizable;
|
|
174
|
+
const contentNode = (h("div", { class: { [CSS.content]: true, [CSS.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null },
|
|
53
175
|
this.renderHeader(),
|
|
54
176
|
h("div", { class: CSS.contentBody },
|
|
55
177
|
h("slot", null))));
|
|
178
|
+
const separatorNode = allowResizing ? (h("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS.separator, onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
56
179
|
const actionBarNode = h("slot", { name: SLOTS.actionBar });
|
|
57
|
-
const mainNodes = [actionBarNode, contentNode];
|
|
180
|
+
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
58
181
|
if (position === "end") {
|
|
59
182
|
mainNodes.reverse();
|
|
60
183
|
}
|
|
61
184
|
return h("div", { class: { [CSS.container]: true } }, mainNodes);
|
|
62
185
|
}
|
|
186
|
+
// --------------------------------------------------------------------------
|
|
187
|
+
//
|
|
188
|
+
// private Methods
|
|
189
|
+
//
|
|
190
|
+
// --------------------------------------------------------------------------
|
|
191
|
+
setContentWidth(width) {
|
|
192
|
+
const { contentWidthMax, contentWidthMin } = this;
|
|
193
|
+
const roundedWidth = Math.round(width);
|
|
194
|
+
this.contentWidth =
|
|
195
|
+
typeof contentWidthMax === "number" && typeof contentWidthMin === "number"
|
|
196
|
+
? clamp(roundedWidth, contentWidthMin, contentWidthMax)
|
|
197
|
+
: roundedWidth;
|
|
198
|
+
}
|
|
199
|
+
updateAriaValues() {
|
|
200
|
+
const { contentEl } = this;
|
|
201
|
+
const computedStyle = contentEl && getComputedStyle(contentEl);
|
|
202
|
+
if (!computedStyle) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
const max = parseInt(computedStyle.getPropertyValue("max-width"), 10);
|
|
206
|
+
const min = parseInt(computedStyle.getPropertyValue("min-width"), 10);
|
|
207
|
+
const valueNow = parseInt(computedStyle.getPropertyValue("width"), 10);
|
|
208
|
+
if (typeof valueNow === "number" && !isNaN(valueNow)) {
|
|
209
|
+
this.initialContentWidth = valueNow;
|
|
210
|
+
}
|
|
211
|
+
if (typeof max === "number" && !isNaN(max)) {
|
|
212
|
+
this.contentWidthMax = max;
|
|
213
|
+
}
|
|
214
|
+
if (typeof min === "number" && !isNaN(min)) {
|
|
215
|
+
this.contentWidthMin = min;
|
|
216
|
+
}
|
|
217
|
+
forceUpdate(this);
|
|
218
|
+
}
|
|
63
219
|
static get is() { return "calcite-shell-panel"; }
|
|
64
220
|
static get encapsulation() { return "shadow"; }
|
|
65
221
|
static get originalStyleUrls() { return {
|
|
@@ -172,8 +328,50 @@ export class CalciteShellPanel {
|
|
|
172
328
|
},
|
|
173
329
|
"attribute": "position",
|
|
174
330
|
"reflect": true
|
|
331
|
+
},
|
|
332
|
+
"intlResize": {
|
|
333
|
+
"type": "string",
|
|
334
|
+
"mutable": false,
|
|
335
|
+
"complexType": {
|
|
336
|
+
"original": "string",
|
|
337
|
+
"resolved": "string",
|
|
338
|
+
"references": {}
|
|
339
|
+
},
|
|
340
|
+
"required": false,
|
|
341
|
+
"optional": false,
|
|
342
|
+
"docs": {
|
|
343
|
+
"tags": [{
|
|
344
|
+
"name": "default",
|
|
345
|
+
"text": "\"Resize\""
|
|
346
|
+
}],
|
|
347
|
+
"text": "Accessible label for resize separator."
|
|
348
|
+
},
|
|
349
|
+
"attribute": "intl-resize",
|
|
350
|
+
"reflect": false,
|
|
351
|
+
"defaultValue": "TEXT.resize"
|
|
352
|
+
},
|
|
353
|
+
"resizable": {
|
|
354
|
+
"type": "boolean",
|
|
355
|
+
"mutable": false,
|
|
356
|
+
"complexType": {
|
|
357
|
+
"original": "boolean",
|
|
358
|
+
"resolved": "boolean",
|
|
359
|
+
"references": {}
|
|
360
|
+
},
|
|
361
|
+
"required": false,
|
|
362
|
+
"optional": false,
|
|
363
|
+
"docs": {
|
|
364
|
+
"tags": [],
|
|
365
|
+
"text": "This property makes the content area resizable if the calcite-shell-panel is not 'detached'."
|
|
366
|
+
},
|
|
367
|
+
"attribute": "resizable",
|
|
368
|
+
"reflect": true,
|
|
369
|
+
"defaultValue": "false"
|
|
175
370
|
}
|
|
176
371
|
}; }
|
|
372
|
+
static get states() { return {
|
|
373
|
+
"contentWidth": {}
|
|
374
|
+
}; }
|
|
177
375
|
static get events() { return [{
|
|
178
376
|
"method": "calciteShellPanelToggle",
|
|
179
377
|
"name": "calciteShellPanelToggle",
|
|
@@ -7,9 +7,13 @@ export const CSS = {
|
|
|
7
7
|
content: "content",
|
|
8
8
|
contentHeader: "content__header",
|
|
9
9
|
contentBody: "content__body",
|
|
10
|
-
contentDetached: "content--detached"
|
|
10
|
+
contentDetached: "content--detached",
|
|
11
|
+
separator: "separator"
|
|
11
12
|
};
|
|
12
13
|
export const SLOTS = {
|
|
13
14
|
actionBar: "action-bar",
|
|
14
15
|
header: "header"
|
|
15
16
|
};
|
|
17
|
+
export const TEXT = {
|
|
18
|
+
resize: "Resize"
|
|
19
|
+
};
|
|
@@ -26,6 +26,8 @@ export class CalciteSplitButton {
|
|
|
26
26
|
/** optionally add a calcite-loader component to the control,
|
|
27
27
|
disabling interaction. with the primary button */
|
|
28
28
|
this.loading = false;
|
|
29
|
+
/** Describes the type of positioning to use for the dropdown. If your element is in a fixed container, use the 'fixed' value. */
|
|
30
|
+
this.overlayPositioning = "absolute";
|
|
29
31
|
/** specify the scale of the control, defaults to m */
|
|
30
32
|
this.scale = "m";
|
|
31
33
|
/** specify the width of the button, defaults to auto */
|
|
@@ -46,7 +48,7 @@ export class CalciteSplitButton {
|
|
|
46
48
|
h("calcite-button", { appearance: this.appearance, color: this.color, dir: dir, disabled: this.disabled, "icon-end": this.primaryIconEnd ? this.primaryIconEnd : null, "icon-start": this.primaryIconStart ? this.primaryIconStart : null, iconFlipRtl: this.primaryIconFlipRtl ? this.primaryIconFlipRtl : null, label: this.primaryLabel, loading: this.loading, onClick: this.calciteSplitButtonPrimaryClickHandler, scale: this.scale, splitChild: "primary", width: buttonWidth }, this.primaryText),
|
|
47
49
|
h("div", { class: CSS.dividerContainer },
|
|
48
50
|
h("div", { class: CSS.divider })),
|
|
49
|
-
h("calcite-dropdown", { active: this.active, dir: dir, onClick: this.calciteSplitButtonSecondaryClickHandler, placement: "bottom-trailing", scale: this.scale, width: this.scale },
|
|
51
|
+
h("calcite-dropdown", { active: this.active, dir: dir, onClick: this.calciteSplitButtonSecondaryClickHandler, overlayPositioning: this.overlayPositioning, placement: "bottom-trailing", scale: this.scale, width: this.scale },
|
|
50
52
|
h("calcite-button", { appearance: this.appearance, color: this.color, dir: dir, disabled: this.disabled, "icon-start": this.dropdownIcon, label: this.dropdownLabel, scale: this.scale, slot: "dropdown-trigger", splitChild: "secondary" }),
|
|
51
53
|
h("slot", null))));
|
|
52
54
|
}
|
|
@@ -211,6 +213,29 @@ export class CalciteSplitButton {
|
|
|
211
213
|
"reflect": true,
|
|
212
214
|
"defaultValue": "false"
|
|
213
215
|
},
|
|
216
|
+
"overlayPositioning": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"mutable": false,
|
|
219
|
+
"complexType": {
|
|
220
|
+
"original": "OverlayPositioning",
|
|
221
|
+
"resolved": "\"absolute\" | \"fixed\"",
|
|
222
|
+
"references": {
|
|
223
|
+
"OverlayPositioning": {
|
|
224
|
+
"location": "import",
|
|
225
|
+
"path": "../../utils/popper"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"required": false,
|
|
230
|
+
"optional": false,
|
|
231
|
+
"docs": {
|
|
232
|
+
"tags": [],
|
|
233
|
+
"text": "Describes the type of positioning to use for the dropdown. If your element is in a fixed container, use the 'fixed' value."
|
|
234
|
+
},
|
|
235
|
+
"attribute": "overlay-positioning",
|
|
236
|
+
"reflect": false,
|
|
237
|
+
"defaultValue": "\"absolute\""
|
|
238
|
+
},
|
|
214
239
|
"primaryIconEnd": {
|
|
215
240
|
"type": "string",
|
|
216
241
|
"mutable": false,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, 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;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Prop, Event, Listen, Element, Method, h, Host, State, Build, Watch } from "@stencil/core";
|
|
6
6
|
import { guid } from "../../utils/guid";
|
|
7
|
-
import { getElementDir, getElementProp } from "../../utils/dom";
|
|
7
|
+
import { getElementDir, getElementProp, getElementStyleDir } from "../../utils/dom";
|
|
8
8
|
import { getKey } from "../../utils/key";
|
|
9
9
|
import { CSS_UTILITY } from "../../utils/resources";
|
|
10
10
|
import { createObserver } from "../../utils/observers";
|
|
@@ -130,7 +130,7 @@ export class CalciteTabTitle {
|
|
|
130
130
|
e.preventDefault();
|
|
131
131
|
break;
|
|
132
132
|
case "ArrowRight":
|
|
133
|
-
if (
|
|
133
|
+
if (getElementStyleDir(this.el) === "ltr") {
|
|
134
134
|
this.calciteTabsFocusNext.emit();
|
|
135
135
|
}
|
|
136
136
|
else {
|
|
@@ -138,7 +138,7 @@ export class CalciteTabTitle {
|
|
|
138
138
|
}
|
|
139
139
|
break;
|
|
140
140
|
case "ArrowLeft":
|
|
141
|
-
if (
|
|
141
|
+
if (getElementStyleDir(this.el) === "ltr") {
|
|
142
142
|
this.calciteTabsFocusPrevious.emit();
|
|
143
143
|
}
|
|
144
144
|
else {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, Method, Prop, State, Watch, h } from "@stencil/core";
|
|
6
6
|
import { CSS, ICONS, TEXT, HEADING_LEVEL } from "./resources";
|
|
7
|
-
import {
|
|
7
|
+
import { getElementStyleDir } from "../../utils/dom";
|
|
8
8
|
import { CalciteHeading } from "../functional/CalciteHeading";
|
|
9
9
|
import { createObserver } from "../../utils/observers";
|
|
10
10
|
/**
|
|
@@ -136,7 +136,7 @@ export class CalciteTipManager {
|
|
|
136
136
|
//
|
|
137
137
|
// --------------------------------------------------------------------------
|
|
138
138
|
renderPagination() {
|
|
139
|
-
const dir =
|
|
139
|
+
const dir = getElementStyleDir(this.el);
|
|
140
140
|
const { selectedIndex, tips, total, intlNext, intlPrevious, intlPaginationLabel } = this;
|
|
141
141
|
const nextLabel = intlNext || TEXT.next;
|
|
142
142
|
const previousLabel = intlPrevious || TEXT.previous;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { h } from "@stencil/core";
|
|
6
|
-
import { getElementDir } from "../../utils/dom";
|
|
6
|
+
import { getElementDir, getElementStyleDir } from "../../utils/dom";
|
|
7
7
|
import { queryActions } from "../calcite-action-bar/utils";
|
|
8
8
|
import { SLOTS as ACTION_GROUP_SLOTS } from "../calcite-action-group/resources";
|
|
9
9
|
const ICONS = {
|
|
@@ -30,7 +30,7 @@ const setTooltipReference = ({ tooltip, referenceElement, expanded, ref }) => {
|
|
|
30
30
|
return referenceElement;
|
|
31
31
|
};
|
|
32
32
|
export const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position, tooltip, ref, scale }) => {
|
|
33
|
-
const rtl =
|
|
33
|
+
const rtl = getElementStyleDir(el) === "rtl";
|
|
34
34
|
const expandText = expanded ? intlCollapse : intlExpand;
|
|
35
35
|
const icons = [ICONS.chevronsLeft, ICONS.chevronsRight];
|
|
36
36
|
if (rtl) {
|
|
@@ -39,6 +39,6 @@ export const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle
|
|
|
39
39
|
const end = getCalcitePosition(position, el) === "end";
|
|
40
40
|
const expandIcon = end ? icons[1] : icons[0];
|
|
41
41
|
const collapseIcon = end ? icons[0] : icons[1];
|
|
42
|
-
const actionNode = (h("calcite-action", { dir: rtl ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
|
|
42
|
+
const actionNode = (h("calcite-action", { dir: getElementDir(el) === "rtl" ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
|
|
43
43
|
return tooltip ? h("calcite-tooltip-manager", null, actionNode) : actionNode;
|
|
44
44
|
};
|
|
@@ -23,6 +23,12 @@ export function nodeListToArray(nodeList) {
|
|
|
23
23
|
export function getThemeName(el) {
|
|
24
24
|
return closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}`) ? "dark" : "light";
|
|
25
25
|
}
|
|
26
|
+
export function getElementStyleDir(el) {
|
|
27
|
+
return window.getComputedStyle(el).direction || "ltr";
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated use getElementStyleDir instead.
|
|
31
|
+
*/
|
|
26
32
|
export function getElementDir(el) {
|
|
27
33
|
const prop = "dir";
|
|
28
34
|
const selector = `[${prop}]`;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { forceUpdate, h } from '@stencil/core/internal/client';
|
|
6
|
-
import { a as getElementDir } from './dom.js';
|
|
6
|
+
import { c as getElementStyleDir, a as getElementDir } from './dom.js';
|
|
7
7
|
import { S as SLOTS } from './calcite-action-menu2.js';
|
|
8
8
|
import { S as SLOTS$1 } from './calcite-action-group2.js';
|
|
9
9
|
|
|
@@ -71,7 +71,7 @@ const setTooltipReference = ({ tooltip, referenceElement, expanded, ref }) => {
|
|
|
71
71
|
return referenceElement;
|
|
72
72
|
};
|
|
73
73
|
const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position, tooltip, ref, scale }) => {
|
|
74
|
-
const rtl =
|
|
74
|
+
const rtl = getElementStyleDir(el) === "rtl";
|
|
75
75
|
const expandText = expanded ? intlCollapse : intlExpand;
|
|
76
76
|
const icons = [ICONS.chevronsLeft, ICONS.chevronsRight];
|
|
77
77
|
if (rtl) {
|
|
@@ -80,7 +80,7 @@ const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, p
|
|
|
80
80
|
const end = getCalcitePosition(position, el) === "end";
|
|
81
81
|
const expandIcon = end ? icons[1] : icons[0];
|
|
82
82
|
const collapseIcon = end ? icons[0] : icons[1];
|
|
83
|
-
const actionNode = (h("calcite-action", { dir: rtl ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
|
|
83
|
+
const actionNode = (h("calcite-action", { dir: getElementDir(el) === "rtl" ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
|
|
84
84
|
return tooltip ? h("calcite-tooltip-manager", null, actionNode) : actionNode;
|
|
85
85
|
};
|
|
86
86
|
|
|
@@ -63,8 +63,11 @@ let CalciteAlert$1 = class extends HTMLElement {
|
|
|
63
63
|
this.queueLength = 0;
|
|
64
64
|
/** is the alert queued */
|
|
65
65
|
this.queued = false;
|
|
66
|
+
this.autoDismissTimeoutId = null;
|
|
67
|
+
this.trackTimer = Date.now();
|
|
66
68
|
/** close and emit the closed alert and the queue */
|
|
67
69
|
this.closeAlert = () => {
|
|
70
|
+
this.autoDismissTimeoutId = null;
|
|
68
71
|
this.queued = false;
|
|
69
72
|
this.active = false;
|
|
70
73
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
@@ -88,6 +91,12 @@ let CalciteAlert$1 = class extends HTMLElement {
|
|
|
88
91
|
updateRequestedIcon() {
|
|
89
92
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
90
93
|
}
|
|
94
|
+
updateDuration() {
|
|
95
|
+
if (this.autoDismiss && this.autoDismissTimeoutId) {
|
|
96
|
+
window.clearTimeout(this.autoDismissTimeoutId);
|
|
97
|
+
this.autoDismissTimeoutId = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration] - (Date.now() - this.trackTimer));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
91
100
|
//--------------------------------------------------------------------------
|
|
92
101
|
//
|
|
93
102
|
// Lifecycle
|
|
@@ -104,20 +113,22 @@ let CalciteAlert$1 = class extends HTMLElement {
|
|
|
104
113
|
componentDidLoad() {
|
|
105
114
|
this.alertLinkEl = this.el.querySelectorAll("calcite-link")[0];
|
|
106
115
|
}
|
|
116
|
+
disconnectedCallback() {
|
|
117
|
+
window.clearTimeout(this.autoDismissTimeoutId);
|
|
118
|
+
}
|
|
107
119
|
render() {
|
|
108
120
|
const dir = getElementDir(this.el);
|
|
109
121
|
const closeButton = (h("button", { "aria-label": this.intlClose, class: "alert-close", onClick: this.closeAlert, ref: (el) => (this.closeButton = el), type: "button" }, h("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
110
122
|
const queueText = `+${this.queueLength > 2 ? this.queueLength - 1 : 1}`;
|
|
111
123
|
const queueCount = (h("div", { class: `${this.queueLength > 1 ? "active " : ""}alert-queue-count` }, h("calcite-chip", { scale: this.scale, value: queueText }, queueText)));
|
|
112
124
|
const { active, autoDismiss, label, queued, requestedIcon } = this;
|
|
113
|
-
const progress = h("div", { class: "alert-dismiss-progress" });
|
|
114
125
|
const role = autoDismiss ? "alert" : "alertdialog";
|
|
115
126
|
const hidden = !active;
|
|
116
127
|
return (h(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, role: role }, h("div", { class: {
|
|
117
128
|
container: true,
|
|
118
129
|
queued,
|
|
119
130
|
[CSS_UTILITY.rtl]: dir === "rtl"
|
|
120
|
-
} }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS.title }), h("slot", { name: SLOTS.message }), h("slot", { name: SLOTS.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? progress : null)));
|
|
131
|
+
} }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS.title }), h("slot", { name: SLOTS.message }), h("slot", { name: SLOTS.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? h("div", { class: "alert-dismiss-progress" }) : null)));
|
|
121
132
|
}
|
|
122
133
|
// when an alert is opened or closed, update queue and determine active alert
|
|
123
134
|
alertSync(event) {
|
|
@@ -163,9 +174,9 @@ let CalciteAlert$1 = class extends HTMLElement {
|
|
|
163
174
|
var _a;
|
|
164
175
|
if (((_a = this.queue) === null || _a === void 0 ? void 0 : _a[0]) === this.el) {
|
|
165
176
|
this.openAlert();
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
this.
|
|
177
|
+
if (this.autoDismiss && !this.autoDismissTimeoutId) {
|
|
178
|
+
this.trackTimer = Date.now();
|
|
179
|
+
this.autoDismissTimeoutId = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration]);
|
|
169
180
|
}
|
|
170
181
|
}
|
|
171
182
|
else {
|
|
@@ -185,7 +196,8 @@ let CalciteAlert$1 = class extends HTMLElement {
|
|
|
185
196
|
static get watchers() { return {
|
|
186
197
|
"active": ["watchActive"],
|
|
187
198
|
"icon": ["updateRequestedIcon"],
|
|
188
|
-
"color": ["updateRequestedIcon"]
|
|
199
|
+
"color": ["updateRequestedIcon"],
|
|
200
|
+
"autoDismissDuration": ["updateDuration"]
|
|
189
201
|
}; }
|
|
190
202
|
static get style() { return calciteAlertCss; }
|
|
191
203
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLElement, h, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
|
-
import { a as getElementDir,
|
|
6
|
+
import { a as getElementDir, d as getThemeName } from './dom.js';
|
|
7
7
|
import { h as hexToRGB, i as isValidHex } from './utils.js';
|
|
8
8
|
import { d as defineCustomElement$2 } from './calcite-icon2.js';
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLElement, createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
|
-
import {
|
|
6
|
+
import { c as getElementStyleDir, C as CSS_UTILITY } from './dom.js';
|
|
7
7
|
import { d as defineCustomElement$3 } from './calcite-icon2.js';
|
|
8
8
|
import { d as defineCustomElement$2 } from './calcite-switch2.js';
|
|
9
9
|
|
|
@@ -84,7 +84,7 @@ let CalciteBlockSection$1 = class extends HTMLElement {
|
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
86
|
const { el, intlCollapse, intlExpand, open, text, toggleDisplay } = this;
|
|
87
|
-
const dir =
|
|
87
|
+
const dir = getElementStyleDir(el);
|
|
88
88
|
const arrowIcon = open
|
|
89
89
|
? ICONS.menuOpen
|
|
90
90
|
: dir === "rtl"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLElement as HTMLElement$1, Build, h, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
|
-
import {
|
|
6
|
+
import { e as closestElementCrossShadowBoundary, a as getElementDir, C as CSS_UTILITY } from './dom.js';
|
|
7
7
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label.js';
|
|
8
8
|
import { c as createObserver } from './observers.js';
|
|
9
9
|
import { d as defineCustomElement$2 } from './calcite-icon2.js';
|