@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
package/hydrate/index.js
CHANGED
|
@@ -5701,7 +5701,7 @@ const CSS_UTILITY = {
|
|
|
5701
5701
|
lightTheme,
|
|
5702
5702
|
rtl: "calcite--rtl"
|
|
5703
5703
|
};
|
|
5704
|
-
const TEXT$
|
|
5704
|
+
const TEXT$q = {
|
|
5705
5705
|
loading: "Loading"
|
|
5706
5706
|
};
|
|
5707
5707
|
|
|
@@ -5737,6 +5737,12 @@ function nodeListToArray(nodeList) {
|
|
|
5737
5737
|
function getThemeName(el) {
|
|
5738
5738
|
return closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}`) ? "dark" : "light";
|
|
5739
5739
|
}
|
|
5740
|
+
function getElementStyleDir(el) {
|
|
5741
|
+
return window.getComputedStyle(el).direction || "ltr";
|
|
5742
|
+
}
|
|
5743
|
+
/**
|
|
5744
|
+
* @deprecated use getElementStyleDir instead.
|
|
5745
|
+
*/
|
|
5740
5746
|
function getElementDir(el) {
|
|
5741
5747
|
const prop = "dir";
|
|
5742
5748
|
const selector = `[${prop}]`;
|
|
@@ -5996,7 +6002,7 @@ const CSS$O = {
|
|
|
5996
6002
|
textContainer: "text-container",
|
|
5997
6003
|
textContainerVisible: "text-container--visible"
|
|
5998
6004
|
};
|
|
5999
|
-
const TEXT$
|
|
6005
|
+
const TEXT$p = {
|
|
6000
6006
|
loading: "Loading"
|
|
6001
6007
|
};
|
|
6002
6008
|
|
|
@@ -6046,7 +6052,7 @@ class CalciteAction {
|
|
|
6046
6052
|
/** string to override English loading text
|
|
6047
6053
|
* @default "Loading"
|
|
6048
6054
|
*/
|
|
6049
|
-
this.intlLoading = TEXT$
|
|
6055
|
+
this.intlLoading = TEXT$p.loading;
|
|
6050
6056
|
/**
|
|
6051
6057
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
6052
6058
|
*/
|
|
@@ -6173,7 +6179,7 @@ const SLOTS$o = {
|
|
|
6173
6179
|
menuActions: "menu-actions",
|
|
6174
6180
|
menuTooltip: "menu-tooltip"
|
|
6175
6181
|
};
|
|
6176
|
-
const TEXT$
|
|
6182
|
+
const TEXT$o = {
|
|
6177
6183
|
more: "More"
|
|
6178
6184
|
};
|
|
6179
6185
|
const ICONS$e = {
|
|
@@ -6244,7 +6250,7 @@ const setTooltipReference = ({ tooltip, referenceElement, expanded, ref }) => {
|
|
|
6244
6250
|
return referenceElement;
|
|
6245
6251
|
};
|
|
6246
6252
|
const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position, tooltip, ref, scale }) => {
|
|
6247
|
-
const rtl =
|
|
6253
|
+
const rtl = getElementStyleDir(el) === "rtl";
|
|
6248
6254
|
const expandText = expanded ? intlCollapse : intlExpand;
|
|
6249
6255
|
const icons = [ICONS$d.chevronsLeft, ICONS$d.chevronsRight];
|
|
6250
6256
|
if (rtl) {
|
|
@@ -6253,7 +6259,7 @@ const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, p
|
|
|
6253
6259
|
const end = getCalcitePosition(position, el) === "end";
|
|
6254
6260
|
const expandIcon = end ? icons[1] : icons[0];
|
|
6255
6261
|
const collapseIcon = end ? icons[0] : icons[1];
|
|
6256
|
-
const actionNode = (hAsync("calcite-action", { dir: rtl ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
|
|
6262
|
+
const actionNode = (hAsync("calcite-action", { dir: getElementDir(el) === "rtl" ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
|
|
6257
6263
|
return tooltip ? hAsync("calcite-tooltip-manager", null, actionNode) : actionNode;
|
|
6258
6264
|
};
|
|
6259
6265
|
|
|
@@ -6264,7 +6270,7 @@ const SLOTS$n = {
|
|
|
6264
6270
|
bottomActions: "bottom-actions",
|
|
6265
6271
|
expandTooltip: "expand-tooltip"
|
|
6266
6272
|
};
|
|
6267
|
-
const TEXT$
|
|
6273
|
+
const TEXT$n = {
|
|
6268
6274
|
expand: "Expand",
|
|
6269
6275
|
collapse: "Collapse"
|
|
6270
6276
|
};
|
|
@@ -7690,8 +7696,8 @@ class CalciteActionBar {
|
|
|
7690
7696
|
renderBottomActionGroup() {
|
|
7691
7697
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
7692
7698
|
const tooltip = getSlotted(el, SLOTS$n.expandTooltip);
|
|
7693
|
-
const expandLabel = intlExpand || TEXT$
|
|
7694
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
7699
|
+
const expandLabel = intlExpand || TEXT$n.expand;
|
|
7700
|
+
const collapseLabel = intlCollapse || TEXT$n.collapse;
|
|
7695
7701
|
const expandToggleNode = !expandDisabled ? (hAsync(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
7696
7702
|
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$M.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$n.bottomActions }), hAsync("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
7697
7703
|
}
|
|
@@ -7777,7 +7783,7 @@ class CalciteActionGroup {
|
|
|
7777
7783
|
renderMenu() {
|
|
7778
7784
|
const { el, expanded, intlMore, menuOpen, scale } = this;
|
|
7779
7785
|
const hasMenuItems = getSlotted(el, SLOTS$o.menuActions);
|
|
7780
|
-
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$
|
|
7786
|
+
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$o.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$e.menu, scale: scale, slot: SLOTS$p.trigger, text: intlMore || TEXT$o.more, textEnabled: expanded }), hAsync("slot", { name: SLOTS$o.menuActions }), this.renderTooltip())) : null;
|
|
7781
7787
|
}
|
|
7782
7788
|
render() {
|
|
7783
7789
|
return (hAsync(Fragment, null, hAsync("slot", null), this.renderMenu()));
|
|
@@ -8112,7 +8118,7 @@ const CSS$L = {
|
|
|
8112
8118
|
actionGroupBottom: "action-group--bottom",
|
|
8113
8119
|
container: "container"
|
|
8114
8120
|
};
|
|
8115
|
-
const TEXT$
|
|
8121
|
+
const TEXT$m = {
|
|
8116
8122
|
expand: "Expand",
|
|
8117
8123
|
collapse: "Collapse"
|
|
8118
8124
|
};
|
|
@@ -8212,8 +8218,8 @@ class CalciteActionPad {
|
|
|
8212
8218
|
renderBottomActionGroup() {
|
|
8213
8219
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
8214
8220
|
const tooltip = getSlotted(el, SLOTS$m.expandTooltip);
|
|
8215
|
-
const expandLabel = intlExpand || TEXT$
|
|
8216
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
8221
|
+
const expandLabel = intlExpand || TEXT$m.expand;
|
|
8222
|
+
const collapseLabel = intlCollapse || TEXT$m.collapse;
|
|
8217
8223
|
const expandToggleNode = !expandDisabled ? (hAsync(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
8218
8224
|
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$L.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$m.expandTooltip }), expandToggleNode)) : null;
|
|
8219
8225
|
}
|
|
@@ -8250,7 +8256,7 @@ class CalciteActionPad {
|
|
|
8250
8256
|
}; }
|
|
8251
8257
|
}
|
|
8252
8258
|
|
|
8253
|
-
const TEXT$
|
|
8259
|
+
const TEXT$l = {
|
|
8254
8260
|
intlClose: "Close"
|
|
8255
8261
|
};
|
|
8256
8262
|
const DURATIONS = {
|
|
@@ -8305,7 +8311,7 @@ class CalciteAlert {
|
|
|
8305
8311
|
/** string to override English close text
|
|
8306
8312
|
* @default "Close"
|
|
8307
8313
|
*/
|
|
8308
|
-
this.intlClose = TEXT$
|
|
8314
|
+
this.intlClose = TEXT$l.intlClose;
|
|
8309
8315
|
/** specify the scale of the button, defaults to m */
|
|
8310
8316
|
this.scale = "m";
|
|
8311
8317
|
//--------------------------------------------------------------------------
|
|
@@ -8319,8 +8325,11 @@ class CalciteAlert {
|
|
|
8319
8325
|
this.queueLength = 0;
|
|
8320
8326
|
/** is the alert queued */
|
|
8321
8327
|
this.queued = false;
|
|
8328
|
+
this.autoDismissTimeoutId = null;
|
|
8329
|
+
this.trackTimer = Date.now();
|
|
8322
8330
|
/** close and emit the closed alert and the queue */
|
|
8323
8331
|
this.closeAlert = () => {
|
|
8332
|
+
this.autoDismissTimeoutId = null;
|
|
8324
8333
|
this.queued = false;
|
|
8325
8334
|
this.active = false;
|
|
8326
8335
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
@@ -8344,6 +8353,12 @@ class CalciteAlert {
|
|
|
8344
8353
|
updateRequestedIcon() {
|
|
8345
8354
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
8346
8355
|
}
|
|
8356
|
+
updateDuration() {
|
|
8357
|
+
if (this.autoDismiss && this.autoDismissTimeoutId) {
|
|
8358
|
+
window.clearTimeout(this.autoDismissTimeoutId);
|
|
8359
|
+
this.autoDismissTimeoutId = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration] - (Date.now() - this.trackTimer));
|
|
8360
|
+
}
|
|
8361
|
+
}
|
|
8347
8362
|
//--------------------------------------------------------------------------
|
|
8348
8363
|
//
|
|
8349
8364
|
// Lifecycle
|
|
@@ -8360,20 +8375,22 @@ class CalciteAlert {
|
|
|
8360
8375
|
componentDidLoad() {
|
|
8361
8376
|
this.alertLinkEl = this.el.querySelectorAll("calcite-link")[0];
|
|
8362
8377
|
}
|
|
8378
|
+
disconnectedCallback() {
|
|
8379
|
+
window.clearTimeout(this.autoDismissTimeoutId);
|
|
8380
|
+
}
|
|
8363
8381
|
render() {
|
|
8364
8382
|
const dir = getElementDir(this.el);
|
|
8365
8383
|
const closeButton = (hAsync("button", { "aria-label": this.intlClose, class: "alert-close", onClick: this.closeAlert, ref: (el) => (this.closeButton = el), type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
8366
8384
|
const queueText = `+${this.queueLength > 2 ? this.queueLength - 1 : 1}`;
|
|
8367
8385
|
const queueCount = (hAsync("div", { class: `${this.queueLength > 1 ? "active " : ""}alert-queue-count` }, hAsync("calcite-chip", { scale: this.scale, value: queueText }, queueText)));
|
|
8368
8386
|
const { active, autoDismiss, label, queued, requestedIcon } = this;
|
|
8369
|
-
const progress = hAsync("div", { class: "alert-dismiss-progress" });
|
|
8370
8387
|
const role = autoDismiss ? "alert" : "alertdialog";
|
|
8371
8388
|
const hidden = !active;
|
|
8372
8389
|
return (hAsync(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, role: role }, hAsync("div", { class: {
|
|
8373
8390
|
container: true,
|
|
8374
8391
|
queued,
|
|
8375
8392
|
[CSS_UTILITY.rtl]: dir === "rtl"
|
|
8376
|
-
} }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$l.title }), hAsync("slot", { name: SLOTS$l.message }), hAsync("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? progress : null)));
|
|
8393
|
+
} }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$l.title }), hAsync("slot", { name: SLOTS$l.message }), hAsync("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
8377
8394
|
}
|
|
8378
8395
|
// when an alert is opened or closed, update queue and determine active alert
|
|
8379
8396
|
alertSync(event) {
|
|
@@ -8419,9 +8436,9 @@ class CalciteAlert {
|
|
|
8419
8436
|
var _a;
|
|
8420
8437
|
if (((_a = this.queue) === null || _a === void 0 ? void 0 : _a[0]) === this.el) {
|
|
8421
8438
|
this.openAlert();
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
this.
|
|
8439
|
+
if (this.autoDismiss && !this.autoDismissTimeoutId) {
|
|
8440
|
+
this.trackTimer = Date.now();
|
|
8441
|
+
this.autoDismissTimeoutId = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration]);
|
|
8425
8442
|
}
|
|
8426
8443
|
}
|
|
8427
8444
|
else {
|
|
@@ -8441,7 +8458,8 @@ class CalciteAlert {
|
|
|
8441
8458
|
static get watchers() { return {
|
|
8442
8459
|
"active": ["watchActive"],
|
|
8443
8460
|
"icon": ["updateRequestedIcon"],
|
|
8444
|
-
"color": ["updateRequestedIcon"]
|
|
8461
|
+
"color": ["updateRequestedIcon"],
|
|
8462
|
+
"autoDismissDuration": ["updateDuration"]
|
|
8445
8463
|
}; }
|
|
8446
8464
|
static get style() { return calciteAlertCss; }
|
|
8447
8465
|
static get cmpMeta() { return {
|
|
@@ -8741,7 +8759,7 @@ const CSS$K = {
|
|
|
8741
8759
|
invalid: "invalid",
|
|
8742
8760
|
loading: "loading"
|
|
8743
8761
|
};
|
|
8744
|
-
const TEXT$
|
|
8762
|
+
const TEXT$k = {
|
|
8745
8763
|
collapse: "Collapse",
|
|
8746
8764
|
expand: "Expand",
|
|
8747
8765
|
loading: "Loading",
|
|
@@ -8802,11 +8820,11 @@ class CalciteBlock {
|
|
|
8802
8820
|
/** string to override English loading text
|
|
8803
8821
|
* @default "Loading"
|
|
8804
8822
|
*/
|
|
8805
|
-
this.intlLoading = TEXT$
|
|
8823
|
+
this.intlLoading = TEXT$k.loading;
|
|
8806
8824
|
/** Text string used for the actions menu
|
|
8807
8825
|
* @default "Options"
|
|
8808
8826
|
*/
|
|
8809
|
-
this.intlOptions = TEXT$
|
|
8827
|
+
this.intlOptions = TEXT$k.options;
|
|
8810
8828
|
/**
|
|
8811
8829
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
8812
8830
|
*/
|
|
@@ -8850,12 +8868,12 @@ class CalciteBlock {
|
|
|
8850
8868
|
}
|
|
8851
8869
|
render() {
|
|
8852
8870
|
const { collapsible, disabled, el, heading, intlCollapse, intlExpand, loading, open, summary, intlLoading, headingLevel } = this;
|
|
8853
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
8871
|
+
const toggleLabel = open ? intlCollapse || TEXT$k.collapse : intlExpand || TEXT$k.expand;
|
|
8854
8872
|
const headerContent = (hAsync("header", { class: CSS$K.header }, this.renderIcon(), hAsync("div", { class: CSS$K.title }, hAsync(CalciteHeading, { class: CSS$K.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary ? hAsync("div", { class: CSS$K.summary }, summary) : null)));
|
|
8855
8873
|
const hasControl = !!getSlotted(el, SLOTS$k.control);
|
|
8856
8874
|
const hasMenuActions = !!getSlotted(el, SLOTS$k.headerMenuActions);
|
|
8857
8875
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
8858
|
-
const headerNode = (hAsync("div", { class: CSS$K.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$K.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$K.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$K.controlContainer }, hAsync("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$
|
|
8876
|
+
const headerNode = (hAsync("div", { class: CSS$K.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$K.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$K.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$K.controlContainer }, hAsync("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$k.options }, hAsync("slot", { name: SLOTS$k.headerMenuActions }))) : null));
|
|
8859
8877
|
return (hAsync(Host, { tabIndex: disabled ? -1 : null }, hAsync("article", { "aria-busy": loading.toString(), class: {
|
|
8860
8878
|
[CSS$K.article]: true
|
|
8861
8879
|
} }, headerNode, hAsync("div", { class: CSS$K.content, hidden: !open }, this.renderScrim()))));
|
|
@@ -8898,7 +8916,7 @@ const CSS$J = {
|
|
|
8898
8916
|
statusIcon: "status-icon",
|
|
8899
8917
|
valid: "valid"
|
|
8900
8918
|
};
|
|
8901
|
-
const TEXT$
|
|
8919
|
+
const TEXT$j = {
|
|
8902
8920
|
collapse: "Collapse",
|
|
8903
8921
|
expand: "Expand"
|
|
8904
8922
|
};
|
|
@@ -8964,13 +8982,13 @@ class CalciteBlockSection {
|
|
|
8964
8982
|
}
|
|
8965
8983
|
render() {
|
|
8966
8984
|
const { el, intlCollapse, intlExpand, open, text, toggleDisplay } = this;
|
|
8967
|
-
const dir =
|
|
8985
|
+
const dir = getElementStyleDir(el);
|
|
8968
8986
|
const arrowIcon = open
|
|
8969
8987
|
? ICONS$b.menuOpen
|
|
8970
8988
|
: dir === "rtl"
|
|
8971
8989
|
? ICONS$b.menuClosedLeft
|
|
8972
8990
|
: ICONS$b.menuClosedRight;
|
|
8973
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
8991
|
+
const toggleLabel = open ? intlCollapse || TEXT$j.collapse : intlExpand || TEXT$j.expand;
|
|
8974
8992
|
const headerNode = toggleDisplay === "switch" ? (hAsync("div", { "aria-label": toggleLabel, class: {
|
|
8975
8993
|
[CSS$J.toggle]: true,
|
|
8976
8994
|
[CSS$J.toggleSwitch]: true
|
|
@@ -9037,7 +9055,7 @@ const CSS$I = {
|
|
|
9037
9055
|
loadingIn: "loading-in",
|
|
9038
9056
|
loadingOut: "loading-out"
|
|
9039
9057
|
};
|
|
9040
|
-
const TEXT$
|
|
9058
|
+
const TEXT$i = {
|
|
9041
9059
|
loading: "Loading"
|
|
9042
9060
|
};
|
|
9043
9061
|
|
|
@@ -9141,7 +9159,7 @@ class CalciteButton {
|
|
|
9141
9159
|
/** string to override English loading text
|
|
9142
9160
|
* @default "Loading"
|
|
9143
9161
|
*/
|
|
9144
|
-
this.intlLoading = TEXT$
|
|
9162
|
+
this.intlLoading = TEXT$i.loading;
|
|
9145
9163
|
/** optionally add a calcite-loader component to the button, disabling interaction. */
|
|
9146
9164
|
this.loading = false;
|
|
9147
9165
|
/** optionally add a round style to the button */
|
|
@@ -9303,7 +9321,7 @@ const SLOTS$j = {
|
|
|
9303
9321
|
footerLeading: "footer-leading",
|
|
9304
9322
|
footerTrailing: "footer-trailing"
|
|
9305
9323
|
};
|
|
9306
|
-
const TEXT$
|
|
9324
|
+
const TEXT$h = {
|
|
9307
9325
|
select: "Select",
|
|
9308
9326
|
deselect: "Deselect",
|
|
9309
9327
|
loading: "Loading"
|
|
@@ -9340,15 +9358,15 @@ class CalciteCard {
|
|
|
9340
9358
|
/** string to override English loading text
|
|
9341
9359
|
* @default "Loading"
|
|
9342
9360
|
*/
|
|
9343
|
-
this.intlLoading = TEXT$
|
|
9361
|
+
this.intlLoading = TEXT$h.loading;
|
|
9344
9362
|
/** string to override English select text for checkbox when selectable is true
|
|
9345
9363
|
* @default "Select"
|
|
9346
9364
|
*/
|
|
9347
|
-
this.intlSelect = TEXT$
|
|
9365
|
+
this.intlSelect = TEXT$h.select;
|
|
9348
9366
|
/** string to override English deselect text for checkbox when selectable is true
|
|
9349
9367
|
* @default "Deselect"
|
|
9350
9368
|
*/
|
|
9351
|
-
this.intlDeselect = TEXT$
|
|
9369
|
+
this.intlDeselect = TEXT$h.deselect;
|
|
9352
9370
|
//--------------------------------------------------------------------------
|
|
9353
9371
|
//
|
|
9354
9372
|
// Private State/Props
|
|
@@ -9733,7 +9751,7 @@ const CSS$G = {
|
|
|
9733
9751
|
chipImageContainer: "chip-image-container",
|
|
9734
9752
|
calciteChipIcon: "calcite-chip--icon"
|
|
9735
9753
|
};
|
|
9736
|
-
const TEXT$
|
|
9754
|
+
const TEXT$g = {
|
|
9737
9755
|
close: "Close"
|
|
9738
9756
|
};
|
|
9739
9757
|
const SLOTS$i = {
|
|
@@ -9767,7 +9785,7 @@ class CalciteChip {
|
|
|
9767
9785
|
/** Aria label for the "x" button
|
|
9768
9786
|
* @default "Close"
|
|
9769
9787
|
*/
|
|
9770
|
-
this.dismissLabel = TEXT$
|
|
9788
|
+
this.dismissLabel = TEXT$g.close;
|
|
9771
9789
|
/** flip the icon in rtl */
|
|
9772
9790
|
this.iconFlipRtl = false;
|
|
9773
9791
|
/** specify the scale of the chip, defaults to m */
|
|
@@ -10041,12 +10059,13 @@ var colorString = createCommonjsModule(function (module) {
|
|
|
10041
10059
|
/* MIT license */
|
|
10042
10060
|
|
|
10043
10061
|
|
|
10062
|
+
var hasOwnProperty = Object.hasOwnProperty;
|
|
10044
10063
|
|
|
10045
10064
|
var reverseNames = {};
|
|
10046
10065
|
|
|
10047
10066
|
// create a list of reverse color names
|
|
10048
10067
|
for (var name in colorName$1) {
|
|
10049
|
-
if (colorName$1
|
|
10068
|
+
if (hasOwnProperty.call(colorName$1, name)) {
|
|
10050
10069
|
reverseNames[colorName$1[name]] = name;
|
|
10051
10070
|
}
|
|
10052
10071
|
}
|
|
@@ -10089,9 +10108,9 @@ cs.get.rgb = function (string) {
|
|
|
10089
10108
|
|
|
10090
10109
|
var abbr = /^#([a-f0-9]{3,4})$/i;
|
|
10091
10110
|
var hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;
|
|
10092
|
-
var rgba = /^rgba?\(\s*([+-]?\d+)\s
|
|
10093
|
-
var per = /^rgba?\(\s*([+-]?[\d\.]+)\%\s
|
|
10094
|
-
var keyword =
|
|
10111
|
+
var rgba = /^rgba?\(\s*([+-]?\d+)\s*,?\s*([+-]?\d+)\s*,?\s*([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;
|
|
10112
|
+
var per = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;
|
|
10113
|
+
var keyword = /^(\w+)$/;
|
|
10095
10114
|
|
|
10096
10115
|
var rgb = [0, 0, 0, 1];
|
|
10097
10116
|
var match;
|
|
@@ -10128,7 +10147,11 @@ cs.get.rgb = function (string) {
|
|
|
10128
10147
|
}
|
|
10129
10148
|
|
|
10130
10149
|
if (match[4]) {
|
|
10131
|
-
|
|
10150
|
+
if (match[5]) {
|
|
10151
|
+
rgb[3] = parseFloat(match[4]) * 0.01;
|
|
10152
|
+
} else {
|
|
10153
|
+
rgb[3] = parseFloat(match[4]);
|
|
10154
|
+
}
|
|
10132
10155
|
}
|
|
10133
10156
|
} else if (match = string.match(per)) {
|
|
10134
10157
|
for (i = 0; i < 3; i++) {
|
|
@@ -10136,19 +10159,22 @@ cs.get.rgb = function (string) {
|
|
|
10136
10159
|
}
|
|
10137
10160
|
|
|
10138
10161
|
if (match[4]) {
|
|
10139
|
-
|
|
10162
|
+
if (match[5]) {
|
|
10163
|
+
rgb[3] = parseFloat(match[4]) * 0.01;
|
|
10164
|
+
} else {
|
|
10165
|
+
rgb[3] = parseFloat(match[4]);
|
|
10166
|
+
}
|
|
10140
10167
|
}
|
|
10141
10168
|
} else if (match = string.match(keyword)) {
|
|
10142
10169
|
if (match[1] === 'transparent') {
|
|
10143
10170
|
return [0, 0, 0, 0];
|
|
10144
10171
|
}
|
|
10145
10172
|
|
|
10146
|
-
|
|
10147
|
-
|
|
10148
|
-
if (!rgb) {
|
|
10173
|
+
if (!hasOwnProperty.call(colorName$1, match[1])) {
|
|
10149
10174
|
return null;
|
|
10150
10175
|
}
|
|
10151
10176
|
|
|
10177
|
+
rgb = colorName$1[match[1]];
|
|
10152
10178
|
rgb[3] = 1;
|
|
10153
10179
|
|
|
10154
10180
|
return rgb;
|
|
@@ -10174,7 +10200,7 @@ cs.get.hsl = function (string) {
|
|
|
10174
10200
|
|
|
10175
10201
|
if (match) {
|
|
10176
10202
|
var alpha = parseFloat(match[4]);
|
|
10177
|
-
var h = (parseFloat(match[1]) + 360) % 360;
|
|
10203
|
+
var h = ((parseFloat(match[1]) % 360) + 360) % 360;
|
|
10178
10204
|
var s = clamp(parseFloat(match[2]), 0, 100);
|
|
10179
10205
|
var l = clamp(parseFloat(match[3]), 0, 100);
|
|
10180
10206
|
var a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);
|
|
@@ -10269,7 +10295,7 @@ function clamp(num, min, max) {
|
|
|
10269
10295
|
}
|
|
10270
10296
|
|
|
10271
10297
|
function hexDouble(num) {
|
|
10272
|
-
var str = num.toString(16).toUpperCase();
|
|
10298
|
+
var str = Math.round(num).toString(16).toUpperCase();
|
|
10273
10299
|
return (str.length < 2) ? '0' + str : str;
|
|
10274
10300
|
}
|
|
10275
10301
|
});
|
|
@@ -11965,7 +11991,7 @@ const HSV_LIMITS = {
|
|
|
11965
11991
|
s: 100,
|
|
11966
11992
|
v: 100
|
|
11967
11993
|
};
|
|
11968
|
-
const TEXT$
|
|
11994
|
+
const TEXT$f = {
|
|
11969
11995
|
b: "B",
|
|
11970
11996
|
blue: "Blue",
|
|
11971
11997
|
deleteColor: "Delete color",
|
|
@@ -12086,80 +12112,80 @@ class CalciteColorPicker {
|
|
|
12086
12112
|
/** Label used for the blue channel
|
|
12087
12113
|
* @default "B"
|
|
12088
12114
|
*/
|
|
12089
|
-
this.intlB = TEXT$
|
|
12115
|
+
this.intlB = TEXT$f.b;
|
|
12090
12116
|
/** Label used for the blue channel description
|
|
12091
12117
|
* @default "Blue"
|
|
12092
12118
|
*/
|
|
12093
|
-
this.intlBlue = TEXT$
|
|
12119
|
+
this.intlBlue = TEXT$f.blue;
|
|
12094
12120
|
/** Label used for the delete color button.
|
|
12095
12121
|
* @default "Delete color"
|
|
12096
12122
|
*/
|
|
12097
|
-
this.intlDeleteColor = TEXT$
|
|
12123
|
+
this.intlDeleteColor = TEXT$f.deleteColor;
|
|
12098
12124
|
/** Label used for the green channel
|
|
12099
12125
|
* @default "G"
|
|
12100
12126
|
*/
|
|
12101
|
-
this.intlG = TEXT$
|
|
12127
|
+
this.intlG = TEXT$f.g;
|
|
12102
12128
|
/** Label used for the green channel description
|
|
12103
12129
|
* @default "Green"
|
|
12104
12130
|
*/
|
|
12105
|
-
this.intlGreen = TEXT$
|
|
12131
|
+
this.intlGreen = TEXT$f.green;
|
|
12106
12132
|
/** Label used for the hue channel
|
|
12107
12133
|
* @default "H"
|
|
12108
12134
|
*/
|
|
12109
|
-
this.intlH = TEXT$
|
|
12135
|
+
this.intlH = TEXT$f.h;
|
|
12110
12136
|
/** Label used for the HSV mode
|
|
12111
12137
|
* @default "HSV"
|
|
12112
12138
|
*/
|
|
12113
|
-
this.intlHsv = TEXT$
|
|
12139
|
+
this.intlHsv = TEXT$f.hsv;
|
|
12114
12140
|
/** Label used for the hex input
|
|
12115
12141
|
* @default "Hex"
|
|
12116
12142
|
*/
|
|
12117
|
-
this.intlHex = TEXT$
|
|
12143
|
+
this.intlHex = TEXT$f.hex;
|
|
12118
12144
|
/** Label used for the hue channel description
|
|
12119
12145
|
* @default "Hue"
|
|
12120
12146
|
*/
|
|
12121
|
-
this.intlHue = TEXT$
|
|
12147
|
+
this.intlHue = TEXT$f.hue;
|
|
12122
12148
|
/**
|
|
12123
12149
|
* Label used for the hex input when there is no color selected.
|
|
12124
12150
|
* @default "No color"
|
|
12125
12151
|
*/
|
|
12126
|
-
this.intlNoColor = TEXT$
|
|
12152
|
+
this.intlNoColor = TEXT$f.noColor;
|
|
12127
12153
|
/** Label used for the red channel
|
|
12128
12154
|
* @default "R"
|
|
12129
12155
|
*/
|
|
12130
|
-
this.intlR = TEXT$
|
|
12156
|
+
this.intlR = TEXT$f.r;
|
|
12131
12157
|
/** Label used for the red channel description
|
|
12132
12158
|
* @default "Red"
|
|
12133
12159
|
*/
|
|
12134
|
-
this.intlRed = TEXT$
|
|
12160
|
+
this.intlRed = TEXT$f.red;
|
|
12135
12161
|
/** Label used for the RGB mode
|
|
12136
12162
|
* @default "RGB"
|
|
12137
12163
|
*/
|
|
12138
|
-
this.intlRgb = TEXT$
|
|
12164
|
+
this.intlRgb = TEXT$f.rgb;
|
|
12139
12165
|
/** Label used for the saturation channel
|
|
12140
12166
|
* @default "S"
|
|
12141
12167
|
*/
|
|
12142
|
-
this.intlS = TEXT$
|
|
12168
|
+
this.intlS = TEXT$f.s;
|
|
12143
12169
|
/** Label used for the saturation channel description
|
|
12144
12170
|
* @default "Saturation"
|
|
12145
12171
|
*/
|
|
12146
|
-
this.intlSaturation = TEXT$
|
|
12172
|
+
this.intlSaturation = TEXT$f.saturation;
|
|
12147
12173
|
/** Label used for the save color button.
|
|
12148
12174
|
* @default "Save color"
|
|
12149
12175
|
*/
|
|
12150
|
-
this.intlSaveColor = TEXT$
|
|
12176
|
+
this.intlSaveColor = TEXT$f.saveColor;
|
|
12151
12177
|
/** Label used for the saved colors section
|
|
12152
12178
|
* @default "Saved"
|
|
12153
12179
|
*/
|
|
12154
|
-
this.intlSaved = TEXT$
|
|
12180
|
+
this.intlSaved = TEXT$f.saved;
|
|
12155
12181
|
/** Label used for the value channel
|
|
12156
12182
|
* @default "V"
|
|
12157
12183
|
*/
|
|
12158
|
-
this.intlV = TEXT$
|
|
12184
|
+
this.intlV = TEXT$f.v;
|
|
12159
12185
|
/** Label used for the
|
|
12160
12186
|
* @default "Value"
|
|
12161
12187
|
*/
|
|
12162
|
-
this.intlValue = TEXT$
|
|
12188
|
+
this.intlValue = TEXT$f.value;
|
|
12163
12189
|
/**
|
|
12164
12190
|
* The scale of the color picker.
|
|
12165
12191
|
*/
|
|
@@ -12884,12 +12910,12 @@ class CalciteColorPickerHexInput {
|
|
|
12884
12910
|
* Label used for the hex input.
|
|
12885
12911
|
* @default "Hex"
|
|
12886
12912
|
*/
|
|
12887
|
-
this.intlHex = TEXT$
|
|
12913
|
+
this.intlHex = TEXT$f.hex;
|
|
12888
12914
|
/**
|
|
12889
12915
|
* Label used for the hex input when there is no color selected.
|
|
12890
12916
|
* @default "No color"
|
|
12891
12917
|
*/
|
|
12892
|
-
this.intlNoColor = TEXT$
|
|
12918
|
+
this.intlNoColor = TEXT$f.noColor;
|
|
12893
12919
|
/**
|
|
12894
12920
|
* The component's scale.
|
|
12895
12921
|
*/
|
|
@@ -13320,29 +13346,32 @@ function getBasePlacement(placement) {
|
|
|
13320
13346
|
return placement.split('-')[0];
|
|
13321
13347
|
}
|
|
13322
13348
|
|
|
13323
|
-
|
|
13324
|
-
|
|
13325
|
-
|
|
13349
|
+
var max = Math.max;
|
|
13350
|
+
var min = Math.min;
|
|
13351
|
+
var round = Math.round;
|
|
13352
|
+
|
|
13353
|
+
function getBoundingClientRect(element, includeScale) {
|
|
13354
|
+
if (includeScale === void 0) {
|
|
13355
|
+
includeScale = false;
|
|
13356
|
+
}
|
|
13326
13357
|
|
|
13327
13358
|
var rect = element.getBoundingClientRect();
|
|
13328
13359
|
var scaleX = 1;
|
|
13329
|
-
var scaleY = 1;
|
|
13330
|
-
|
|
13331
|
-
|
|
13332
|
-
|
|
13333
|
-
|
|
13334
|
-
|
|
13335
|
-
|
|
13336
|
-
|
|
13337
|
-
|
|
13338
|
-
|
|
13339
|
-
|
|
13340
|
-
|
|
13341
|
-
|
|
13342
|
-
|
|
13343
|
-
|
|
13344
|
-
// }
|
|
13345
|
-
// }
|
|
13360
|
+
var scaleY = 1;
|
|
13361
|
+
|
|
13362
|
+
if (isHTMLElement(element) && includeScale) {
|
|
13363
|
+
var offsetHeight = element.offsetHeight;
|
|
13364
|
+
var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
|
|
13365
|
+
// Fallback to 1 in case both values are `0`
|
|
13366
|
+
|
|
13367
|
+
if (offsetWidth > 0) {
|
|
13368
|
+
scaleX = round(rect.width) / offsetWidth || 1;
|
|
13369
|
+
}
|
|
13370
|
+
|
|
13371
|
+
if (offsetHeight > 0) {
|
|
13372
|
+
scaleY = round(rect.height) / offsetHeight || 1;
|
|
13373
|
+
}
|
|
13374
|
+
}
|
|
13346
13375
|
|
|
13347
13376
|
return {
|
|
13348
13377
|
width: rect.width / scaleX,
|
|
@@ -13404,7 +13433,7 @@ function contains(parent, child) {
|
|
|
13404
13433
|
return false;
|
|
13405
13434
|
}
|
|
13406
13435
|
|
|
13407
|
-
function getComputedStyle(element) {
|
|
13436
|
+
function getComputedStyle$1(element) {
|
|
13408
13437
|
return getWindow(element).getComputedStyle(element);
|
|
13409
13438
|
}
|
|
13410
13439
|
|
|
@@ -13437,7 +13466,7 @@ function getParentNode(element) {
|
|
|
13437
13466
|
|
|
13438
13467
|
function getTrueOffsetParent(element) {
|
|
13439
13468
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
13440
|
-
getComputedStyle(element).position === 'fixed') {
|
|
13469
|
+
getComputedStyle$1(element).position === 'fixed') {
|
|
13441
13470
|
return null;
|
|
13442
13471
|
}
|
|
13443
13472
|
|
|
@@ -13452,7 +13481,7 @@ function getContainingBlock(element) {
|
|
|
13452
13481
|
|
|
13453
13482
|
if (isIE && isHTMLElement(element)) {
|
|
13454
13483
|
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
13455
|
-
var elementCss = getComputedStyle(element);
|
|
13484
|
+
var elementCss = getComputedStyle$1(element);
|
|
13456
13485
|
|
|
13457
13486
|
if (elementCss.position === 'fixed') {
|
|
13458
13487
|
return null;
|
|
@@ -13462,7 +13491,7 @@ function getContainingBlock(element) {
|
|
|
13462
13491
|
var currentNode = getParentNode(element);
|
|
13463
13492
|
|
|
13464
13493
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
13465
|
-
var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
13494
|
+
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
13466
13495
|
// create a containing block.
|
|
13467
13496
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
13468
13497
|
|
|
@@ -13482,11 +13511,11 @@ function getOffsetParent(element) {
|
|
|
13482
13511
|
var window = getWindow(element);
|
|
13483
13512
|
var offsetParent = getTrueOffsetParent(element);
|
|
13484
13513
|
|
|
13485
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
|
|
13514
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
13486
13515
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
13487
13516
|
}
|
|
13488
13517
|
|
|
13489
|
-
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {
|
|
13518
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
|
|
13490
13519
|
return window;
|
|
13491
13520
|
}
|
|
13492
13521
|
|
|
@@ -13497,13 +13526,13 @@ function getMainAxisFromPlacement(placement) {
|
|
|
13497
13526
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
13498
13527
|
}
|
|
13499
13528
|
|
|
13500
|
-
var max = Math.max;
|
|
13501
|
-
var min = Math.min;
|
|
13502
|
-
var round = Math.round;
|
|
13503
|
-
|
|
13504
13529
|
function within(min$1, value, max$1) {
|
|
13505
13530
|
return max(min$1, min(value, max$1));
|
|
13506
13531
|
}
|
|
13532
|
+
function withinMaxClamp(min, value, max) {
|
|
13533
|
+
var v = within(min, value, max);
|
|
13534
|
+
return v > max ? max : v;
|
|
13535
|
+
}
|
|
13507
13536
|
|
|
13508
13537
|
function getFreshSideObject() {
|
|
13509
13538
|
return {
|
|
@@ -13626,8 +13655,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
13626
13655
|
var win = window;
|
|
13627
13656
|
var dpr = win.devicePixelRatio || 1;
|
|
13628
13657
|
return {
|
|
13629
|
-
x: round(
|
|
13630
|
-
y: round(
|
|
13658
|
+
x: round(x * dpr) / dpr || 0,
|
|
13659
|
+
y: round(y * dpr) / dpr || 0
|
|
13631
13660
|
};
|
|
13632
13661
|
}
|
|
13633
13662
|
|
|
@@ -13642,7 +13671,8 @@ function mapToStyles(_ref2) {
|
|
|
13642
13671
|
position = _ref2.position,
|
|
13643
13672
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
13644
13673
|
adaptive = _ref2.adaptive,
|
|
13645
|
-
roundOffsets = _ref2.roundOffsets
|
|
13674
|
+
roundOffsets = _ref2.roundOffsets,
|
|
13675
|
+
isFixed = _ref2.isFixed;
|
|
13646
13676
|
|
|
13647
13677
|
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
|
|
13648
13678
|
_ref3$x = _ref3.x,
|
|
@@ -13664,7 +13694,7 @@ function mapToStyles(_ref2) {
|
|
|
13664
13694
|
if (offsetParent === getWindow(popper)) {
|
|
13665
13695
|
offsetParent = getDocumentElement(popper);
|
|
13666
13696
|
|
|
13667
|
-
if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {
|
|
13697
|
+
if (getComputedStyle$1(offsetParent).position !== 'static' && position === 'absolute') {
|
|
13668
13698
|
heightProp = 'scrollHeight';
|
|
13669
13699
|
widthProp = 'scrollWidth';
|
|
13670
13700
|
}
|
|
@@ -13674,16 +13704,18 @@ function mapToStyles(_ref2) {
|
|
|
13674
13704
|
offsetParent = offsetParent;
|
|
13675
13705
|
|
|
13676
13706
|
if (placement === top || (placement === left || placement === right) && variation === end) {
|
|
13677
|
-
sideY = bottom;
|
|
13678
|
-
|
|
13679
|
-
|
|
13707
|
+
sideY = bottom;
|
|
13708
|
+
var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
|
|
13709
|
+
offsetParent[heightProp];
|
|
13710
|
+
y -= offsetY - popperRect.height;
|
|
13680
13711
|
y *= gpuAcceleration ? 1 : -1;
|
|
13681
13712
|
}
|
|
13682
13713
|
|
|
13683
13714
|
if (placement === left || (placement === top || placement === bottom) && variation === end) {
|
|
13684
|
-
sideX = right;
|
|
13685
|
-
|
|
13686
|
-
|
|
13715
|
+
sideX = right;
|
|
13716
|
+
var offsetX = isFixed && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
|
|
13717
|
+
offsetParent[widthProp];
|
|
13718
|
+
x -= offsetX - popperRect.width;
|
|
13687
13719
|
x *= gpuAcceleration ? 1 : -1;
|
|
13688
13720
|
}
|
|
13689
13721
|
}
|
|
@@ -13716,7 +13748,8 @@ function computeStyles(_ref4) {
|
|
|
13716
13748
|
variation: getVariation(state.placement),
|
|
13717
13749
|
popper: state.elements.popper,
|
|
13718
13750
|
popperRect: state.rects.popper,
|
|
13719
|
-
gpuAcceleration: gpuAcceleration
|
|
13751
|
+
gpuAcceleration: gpuAcceleration,
|
|
13752
|
+
isFixed: state.options.strategy === 'fixed'
|
|
13720
13753
|
};
|
|
13721
13754
|
|
|
13722
13755
|
if (state.modifiersData.popperOffsets != null) {
|
|
@@ -13893,7 +13926,7 @@ function getDocumentRect(element) {
|
|
|
13893
13926
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
13894
13927
|
var y = -winScroll.scrollTop;
|
|
13895
13928
|
|
|
13896
|
-
if (getComputedStyle(body || html).direction === 'rtl') {
|
|
13929
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
13897
13930
|
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
13898
13931
|
}
|
|
13899
13932
|
|
|
@@ -13907,7 +13940,7 @@ function getDocumentRect(element) {
|
|
|
13907
13940
|
|
|
13908
13941
|
function isScrollParent(element) {
|
|
13909
13942
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
13910
|
-
var _getComputedStyle = getComputedStyle(element),
|
|
13943
|
+
var _getComputedStyle = getComputedStyle$1(element),
|
|
13911
13944
|
overflow = _getComputedStyle.overflow,
|
|
13912
13945
|
overflowX = _getComputedStyle.overflowX,
|
|
13913
13946
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -13974,7 +14007,7 @@ function getInnerBoundingClientRect(element) {
|
|
|
13974
14007
|
}
|
|
13975
14008
|
|
|
13976
14009
|
function getClientRectFromMixedType(element, clippingParent) {
|
|
13977
|
-
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) :
|
|
14010
|
+
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
13978
14011
|
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
13979
14012
|
// clipping (or hiding) overflowing elements with a position different from
|
|
13980
14013
|
// `initial`
|
|
@@ -13982,7 +14015,7 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
13982
14015
|
|
|
13983
14016
|
function getClippingParents(element) {
|
|
13984
14017
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
13985
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
|
|
14018
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
|
|
13986
14019
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
13987
14020
|
|
|
13988
14021
|
if (!isElement(clipperElement)) {
|
|
@@ -13991,7 +14024,7 @@ function getClippingParents(element) {
|
|
|
13991
14024
|
|
|
13992
14025
|
|
|
13993
14026
|
return clippingParents.filter(function (clippingParent) {
|
|
13994
|
-
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
14027
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body' && (canEscapeClipping ? getComputedStyle$1(clippingParent).position !== 'static' : true);
|
|
13995
14028
|
});
|
|
13996
14029
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
13997
14030
|
// clipping parents
|
|
@@ -14487,6 +14520,14 @@ function preventOverflow(_ref) {
|
|
|
14487
14520
|
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
14488
14521
|
placement: state.placement
|
|
14489
14522
|
})) : tetherOffset;
|
|
14523
|
+
var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
|
|
14524
|
+
mainAxis: tetherOffsetValue,
|
|
14525
|
+
altAxis: tetherOffsetValue
|
|
14526
|
+
} : Object.assign({
|
|
14527
|
+
mainAxis: 0,
|
|
14528
|
+
altAxis: 0
|
|
14529
|
+
}, tetherOffsetValue);
|
|
14530
|
+
var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
|
|
14490
14531
|
var data = {
|
|
14491
14532
|
x: 0,
|
|
14492
14533
|
y: 0
|
|
@@ -14496,13 +14537,15 @@ function preventOverflow(_ref) {
|
|
|
14496
14537
|
return;
|
|
14497
14538
|
}
|
|
14498
14539
|
|
|
14499
|
-
if (checkMainAxis
|
|
14540
|
+
if (checkMainAxis) {
|
|
14541
|
+
var _offsetModifierState$;
|
|
14542
|
+
|
|
14500
14543
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
14501
14544
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
14502
14545
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
14503
14546
|
var offset = popperOffsets[mainAxis];
|
|
14504
|
-
var min$1 =
|
|
14505
|
-
var max$1 =
|
|
14547
|
+
var min$1 = offset + overflow[mainSide];
|
|
14548
|
+
var max$1 = offset - overflow[altSide];
|
|
14506
14549
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
14507
14550
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
14508
14551
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -14522,36 +14565,45 @@ function preventOverflow(_ref) {
|
|
|
14522
14565
|
// width or height)
|
|
14523
14566
|
|
|
14524
14567
|
var arrowLen = within(0, referenceRect[len], arrowRect[len]);
|
|
14525
|
-
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin -
|
|
14526
|
-
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax +
|
|
14568
|
+
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
|
|
14569
|
+
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
|
|
14527
14570
|
var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
|
|
14528
14571
|
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
|
14529
|
-
var offsetModifierValue =
|
|
14530
|
-
var tetherMin =
|
|
14531
|
-
var tetherMax =
|
|
14572
|
+
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
|
|
14573
|
+
var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
|
|
14574
|
+
var tetherMax = offset + maxOffset - offsetModifierValue;
|
|
14575
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
14576
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
14577
|
+
data[mainAxis] = preventedOffset - offset;
|
|
14578
|
+
}
|
|
14532
14579
|
|
|
14533
|
-
|
|
14534
|
-
|
|
14535
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
14536
|
-
data[mainAxis] = preventedOffset - offset;
|
|
14537
|
-
}
|
|
14580
|
+
if (checkAltAxis) {
|
|
14581
|
+
var _offsetModifierState$2;
|
|
14538
14582
|
|
|
14539
|
-
|
|
14540
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
14583
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
14541
14584
|
|
|
14542
|
-
|
|
14585
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
14543
14586
|
|
|
14544
|
-
|
|
14587
|
+
var _offset = popperOffsets[altAxis];
|
|
14545
14588
|
|
|
14546
|
-
|
|
14589
|
+
var _len = altAxis === 'y' ? 'height' : 'width';
|
|
14547
14590
|
|
|
14548
|
-
|
|
14591
|
+
var _min = _offset + overflow[_mainSide];
|
|
14549
14592
|
|
|
14550
|
-
|
|
14593
|
+
var _max = _offset - overflow[_altSide];
|
|
14551
14594
|
|
|
14552
|
-
|
|
14553
|
-
|
|
14554
|
-
|
|
14595
|
+
var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
|
|
14596
|
+
|
|
14597
|
+
var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
|
|
14598
|
+
|
|
14599
|
+
var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
|
|
14600
|
+
|
|
14601
|
+
var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
|
|
14602
|
+
|
|
14603
|
+
var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
|
|
14604
|
+
|
|
14605
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
14606
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
14555
14607
|
}
|
|
14556
14608
|
|
|
14557
14609
|
state.modifiersData[name] = data;
|
|
@@ -14583,8 +14635,8 @@ function getNodeScroll(node) {
|
|
|
14583
14635
|
|
|
14584
14636
|
function isElementScaled(element) {
|
|
14585
14637
|
var rect = element.getBoundingClientRect();
|
|
14586
|
-
var scaleX = rect.width / element.offsetWidth || 1;
|
|
14587
|
-
var scaleY = rect.height / element.offsetHeight || 1;
|
|
14638
|
+
var scaleX = round(rect.width) / element.offsetWidth || 1;
|
|
14639
|
+
var scaleY = round(rect.height) / element.offsetHeight || 1;
|
|
14588
14640
|
return scaleX !== 1 || scaleY !== 1;
|
|
14589
14641
|
} // Returns the composite rect of an element relative to its offsetParent.
|
|
14590
14642
|
// Composite means it takes into account transforms as well as layout.
|
|
@@ -14596,9 +14648,9 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
14596
14648
|
}
|
|
14597
14649
|
|
|
14598
14650
|
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
14599
|
-
isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
14651
|
+
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
14600
14652
|
var documentElement = getDocumentElement(offsetParent);
|
|
14601
|
-
var rect = getBoundingClientRect(elementOrVirtualElement);
|
|
14653
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
14602
14654
|
var scroll = {
|
|
14603
14655
|
scrollLeft: 0,
|
|
14604
14656
|
scrollTop: 0
|
|
@@ -14615,7 +14667,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
14615
14667
|
}
|
|
14616
14668
|
|
|
14617
14669
|
if (isHTMLElement(offsetParent)) {
|
|
14618
|
-
offsets = getBoundingClientRect(offsetParent);
|
|
14670
|
+
offsets = getBoundingClientRect(offsetParent, true);
|
|
14619
14671
|
offsets.x += offsetParent.clientLeft;
|
|
14620
14672
|
offsets.y += offsetParent.clientTop;
|
|
14621
14673
|
} else if (documentElement) {
|
|
@@ -15051,7 +15103,7 @@ class CalciteCombobox {
|
|
|
15051
15103
|
this.setFocus();
|
|
15052
15104
|
};
|
|
15053
15105
|
this.keydownHandler = (event) => {
|
|
15054
|
-
const key = getKey(event.key,
|
|
15106
|
+
const key = getKey(event.key, getElementStyleDir(this.el));
|
|
15055
15107
|
switch (key) {
|
|
15056
15108
|
case "Tab":
|
|
15057
15109
|
this.activeChipIndex = -1;
|
|
@@ -16176,7 +16228,7 @@ function getDaysDiff(date1, date2) {
|
|
|
16176
16228
|
}
|
|
16177
16229
|
|
|
16178
16230
|
const HEADING_LEVEL$6 = 2;
|
|
16179
|
-
const TEXT$
|
|
16231
|
+
const TEXT$e = {
|
|
16180
16232
|
nextMonth: "Next month",
|
|
16181
16233
|
prevMonth: "Previous month"
|
|
16182
16234
|
};
|
|
@@ -16191,11 +16243,11 @@ class CalciteDatePicker {
|
|
|
16191
16243
|
/** Localized string for "previous month" (used for aria label)
|
|
16192
16244
|
* @default "Previous month"
|
|
16193
16245
|
*/
|
|
16194
|
-
this.intlPrevMonth = TEXT$
|
|
16246
|
+
this.intlPrevMonth = TEXT$e.prevMonth;
|
|
16195
16247
|
/** Localized string for "next month" (used for aria label)
|
|
16196
16248
|
* @default "Next month"
|
|
16197
16249
|
*/
|
|
16198
|
-
this.intlNextMonth = TEXT$
|
|
16250
|
+
this.intlNextMonth = TEXT$e.nextMonth;
|
|
16199
16251
|
/** BCP 47 language tag for desired language and country format */
|
|
16200
16252
|
this.locale = document.documentElement.lang || "en";
|
|
16201
16253
|
/** specify the scale of the date picker */
|
|
@@ -17171,7 +17223,7 @@ class CalciteDropdown {
|
|
|
17171
17223
|
//
|
|
17172
17224
|
//--------------------------------------------------------------------------
|
|
17173
17225
|
this.items = [];
|
|
17174
|
-
this.activeTransitionProp = "
|
|
17226
|
+
this.activeTransitionProp = "visibility";
|
|
17175
17227
|
this.mutationObserver = createObserver();
|
|
17176
17228
|
//--------------------------------------------------------------------------
|
|
17177
17229
|
//
|
|
@@ -17841,7 +17893,7 @@ const CSS$w = {
|
|
|
17841
17893
|
searchIcon: "search-icon",
|
|
17842
17894
|
clearButton: "clear-button"
|
|
17843
17895
|
};
|
|
17844
|
-
const TEXT$
|
|
17896
|
+
const TEXT$d = {
|
|
17845
17897
|
filterLabel: "Filter",
|
|
17846
17898
|
clear: "Clear filter"
|
|
17847
17899
|
};
|
|
@@ -17955,9 +18007,9 @@ class CalciteFilter {
|
|
|
17955
18007
|
render() {
|
|
17956
18008
|
const rtl = getElementDir(this.el) === "rtl";
|
|
17957
18009
|
const { disabled } = this;
|
|
17958
|
-
return (hAsync(Fragment, null, disabled ? hAsync("calcite-scrim", null) : null, hAsync("div", { class: CSS$w.container }, hAsync("label", { class: rtl ? CSS_UTILITY.rtl : null }, hAsync("calcite-input", { "aria-label": this.intlLabel || TEXT$
|
|
18010
|
+
return (hAsync(Fragment, null, disabled ? hAsync("calcite-scrim", null) : null, hAsync("div", { class: CSS$w.container }, hAsync("label", { class: rtl ? CSS_UTILITY.rtl : null }, hAsync("calcite-input", { "aria-label": this.intlLabel || TEXT$d.filterLabel, class: rtl ? CSS_UTILITY.rtl : null, disabled: this.disabled, icon: ICONS$8.search, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {
|
|
17959
18011
|
this.textInput = el;
|
|
17960
|
-
}, type: "text", value: this.value })), this.value ? (hAsync("button", { "aria-label": this.intlClear || TEXT$
|
|
18012
|
+
}, type: "text", value: this.value })), this.value ? (hAsync("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$w.clearButton, onClick: this.clear }, hAsync("calcite-icon", { icon: ICONS$8.close }))) : null)));
|
|
17961
18013
|
}
|
|
17962
18014
|
get el() { return getElement(this); }
|
|
17963
18015
|
static get watchers() { return {
|
|
@@ -18513,7 +18565,7 @@ const CSS$s = {
|
|
|
18513
18565
|
enableEditingButton: "enable-editing-button",
|
|
18514
18566
|
controlsWrapper: "controls-wrapper"
|
|
18515
18567
|
};
|
|
18516
|
-
const TEXT$
|
|
18568
|
+
const TEXT$c = {
|
|
18517
18569
|
intlEnablingEditing: "Click to edit",
|
|
18518
18570
|
intlCancelEditing: "Cancel",
|
|
18519
18571
|
intlConfirmChanges: "Save"
|
|
@@ -18546,15 +18598,15 @@ class CalciteInlineEditable {
|
|
|
18546
18598
|
/** specify text to be user for the enable editing button's aria-label, defaults to `Click to edit`
|
|
18547
18599
|
* @default "Click to edit"
|
|
18548
18600
|
*/
|
|
18549
|
-
this.intlEnableEditing = TEXT$
|
|
18601
|
+
this.intlEnableEditing = TEXT$c.intlEnablingEditing;
|
|
18550
18602
|
/** specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`
|
|
18551
18603
|
* @default "Cancel"
|
|
18552
18604
|
*/
|
|
18553
|
-
this.intlCancelEditing = TEXT$
|
|
18605
|
+
this.intlCancelEditing = TEXT$c.intlCancelEditing;
|
|
18554
18606
|
/** specify text to be user for the confirm changes button's aria-label, defaults to `Save`
|
|
18555
18607
|
* @default "Save"
|
|
18556
18608
|
*/
|
|
18557
|
-
this.intlConfirmChanges = TEXT$
|
|
18609
|
+
this.intlConfirmChanges = TEXT$c.intlConfirmChanges;
|
|
18558
18610
|
this.transitionEnd = (event) => {
|
|
18559
18611
|
if (!this.editingEnabled && !!this.shouldEmitCancel) {
|
|
18560
18612
|
this.calciteInlineEditableEditingCancel.emit(event);
|
|
@@ -18751,7 +18803,7 @@ const SLOTS$g = {
|
|
|
18751
18803
|
action: "action"
|
|
18752
18804
|
};
|
|
18753
18805
|
|
|
18754
|
-
const calciteInputCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-input:root{--calcite-animation-timing:300ms}/*!@.calcite-animate*/.calcite-animate.sc-calcite-input{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-input{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-input{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-input{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-input{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-input:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-input-h{display:none}/*!@:host([scale=s]) input, :host([scale=s]) .prefix, :host([scale=s]) .suffix*/[scale=s].sc-calcite-input-h input.sc-calcite-input,[scale=s].sc-calcite-input-h .prefix.sc-calcite-input,[scale=s].sc-calcite-input-h .suffix.sc-calcite-input{font-size:var(--calcite-font-size--2);line-height:1rem;padding:0.5rem;height:1.5rem}/*!@:host([scale=s]) textarea*/[scale=s].sc-calcite-input-h textarea.sc-calcite-input{height:1.5rem;min-height:1.5rem}/*!@:host([scale=s]) .number-button-wrapper, :host([scale=s]) .action-wrapper calcite-button, :host([scale=s]) .action-wrapper calcite-button button*/[scale=s].sc-calcite-input-h .number-button-wrapper.sc-calcite-input,[scale=s].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=s].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{height:1.5rem}/*!@:host([scale=s]) input[type=file]*/[scale=s].sc-calcite-input-h input[type=file].sc-calcite-input{height:1.5rem}/*!@:host([scale=s]) .clear-button*/[scale=s].sc-calcite-input-h .clear-button.sc-calcite-input{min-height:1.5rem;min-width:1.5rem}/*!@:host([scale=s]) textarea*/[scale=s].sc-calcite-input-h textarea.sc-calcite-input{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.5rem;padding-right:0.5rem;height:auto}/*!@:host([scale=m]) input, :host([scale=m]) .prefix, :host([scale=m]) .suffix*/[scale=m].sc-calcite-input-h input.sc-calcite-input,[scale=m].sc-calcite-input-h .prefix.sc-calcite-input,[scale=m].sc-calcite-input-h .suffix.sc-calcite-input{font-size:var(--calcite-font-size--1);line-height:1rem;padding:0.75rem;height:2rem}/*!@:host([scale=m]) textarea*/[scale=m].sc-calcite-input-h textarea.sc-calcite-input{min-height:2rem}/*!@:host([scale=m]) .number-button-wrapper, :host([scale=m]) .action-wrapper calcite-button, :host([scale=m]) .action-wrapper calcite-button button*/[scale=m].sc-calcite-input-h .number-button-wrapper.sc-calcite-input,[scale=m].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=m].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{height:2rem}/*!@:host([scale=m]) input[type=file]*/[scale=m].sc-calcite-input-h input[type=file].sc-calcite-input{height:2rem}/*!@:host([scale=m]) .clear-button*/[scale=m].sc-calcite-input-h .clear-button.sc-calcite-input{min-height:2rem;min-width:2rem}/*!@:host([scale=m]) textarea*/[scale=m].sc-calcite-input-h textarea.sc-calcite-input{font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:0.75rem;padding-right:0.75rem;height:auto}/*!@:host([scale=l]) input, :host([scale=l]) .prefix, :host([scale=l]) .suffix*/[scale=l].sc-calcite-input-h input.sc-calcite-input,[scale=l].sc-calcite-input-h .prefix.sc-calcite-input,[scale=l].sc-calcite-input-h .suffix.sc-calcite-input{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding:1rem;height:2.75rem}/*!@:host([scale=l]) textarea*/[scale=l].sc-calcite-input-h textarea.sc-calcite-input{min-height:2.75rem}/*!@:host([scale=l]) .number-button-wrapper, :host([scale=l]) .action-wrapper calcite-button, :host([scale=l]) .action-wrapper calcite-button button*/[scale=l].sc-calcite-input-h .number-button-wrapper.sc-calcite-input,[scale=l].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=l].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{height:2.75rem}/*!@:host([scale=l]) input[type=file]*/[scale=l].sc-calcite-input-h input[type=file].sc-calcite-input{height:2.75rem}/*!@:host([scale=l]) .clear-button*/[scale=l].sc-calcite-input-h .clear-button.sc-calcite-input{min-height:2.75rem;min-width:2.75rem}/*!@:host([scale=l]) textarea*/[scale=l].sc-calcite-input-h textarea.sc-calcite-input{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;height:auto}/*!@:host([disabled])*/[disabled].sc-calcite-input-h{pointer-events:none}/*!@:host([disabled]) .wrapper*/[disabled].sc-calcite-input-h .wrapper.sc-calcite-input{pointer-events:none;--text-opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) button, :host([disabled]) textarea, :host([disabled]) input*/[disabled].sc-calcite-input-h button.sc-calcite-input,[disabled].sc-calcite-input-h textarea.sc-calcite-input,[disabled].sc-calcite-input-h input.sc-calcite-input{pointer-events:none}/*!@:host([disabled]) textarea*/[disabled].sc-calcite-input-h textarea.sc-calcite-input{resize:none}/*!@:host textarea,\n:host input*/.sc-calcite-input-h textarea.sc-calcite-input,.sc-calcite-input-h input.sc-calcite-input{-webkit-transition:150ms ease-in-out, height 0s;transition:150ms ease-in-out, height 0s;-webkit-appearance:none;width:100%;border-radius:0;position:relative;max-height:100%;max-width:100%;margin:0;font-weight:var(--calcite-font-weight-normal);font-family:inherit;-ms-flex:1 1 0%;flex:1 1 0%;display:-ms-flexbox;display:flex;color:var(--calcite-ui-text-1);-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1)}/*!@:host input[type=search]::-webkit-search-decoration*/.sc-calcite-input-h input[type=search].sc-calcite-input::-webkit-search-decoration{-webkit-appearance:none}/*!@:host input, :host textarea*/.sc-calcite-input-h input.sc-calcite-input,.sc-calcite-input-h textarea.sc-calcite-input{color:var(--calcite-ui-text-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input)}/*!@:host input::placeholder, :host input:-ms-input-placeholder, :host input::-ms-input-placeholder, :host textarea::placeholder, :host textarea:-ms-input-placeholder, :host textarea::-ms-input-placeholder*/.sc-calcite-input-h input.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input:-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}.sc-calcite-input-h input.sc-calcite-input::-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}.sc-calcite-input-h input.sc-calcite-input::placeholder,.sc-calcite-input-h input.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h input.sc-calcite-input::-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::placeholder,.sc-calcite-input-h textarea.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}/*!@:host input:focus, :host textarea:focus*/.sc-calcite-input-h input.sc-calcite-input:focus,.sc-calcite-input-h textarea.sc-calcite-input:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}/*!@:host input[readonly], :host textarea[readonly]*/.sc-calcite-input-h input[readonly].sc-calcite-input,.sc-calcite-input-h textarea[readonly].sc-calcite-input{background-color:var(--calcite-ui-background)}/*!@:host input[readonly]:focus, :host textarea[readonly]:focus*/.sc-calcite-input-h input[readonly].sc-calcite-input:focus,.sc-calcite-input-h textarea[readonly].sc-calcite-input:focus{color:var(--calcite-ui-text-1)}/*!@:host calcite-icon*/.sc-calcite-input-h calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-3)}/*!@:host textarea,\n:host input*/.sc-calcite-input-h textarea.sc-calcite-input,.sc-calcite-input-h input.sc-calcite-input{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}/*!@:host textarea:focus,\n:host input:focus*/.sc-calcite-input-h textarea.sc-calcite-input:focus,.sc-calcite-input-h input.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([status=invalid]) input, :host([status=invalid]) textarea*/[status=invalid].sc-calcite-input-h input.sc-calcite-input,[status=invalid].sc-calcite-input-h textarea.sc-calcite-input{border-color:var(--calcite-ui-danger)}/*!@:host([status=invalid]) input:focus, :host([status=invalid]) textarea:focus*/[status=invalid].sc-calcite-input-h input.sc-calcite-input:focus,[status=invalid].sc-calcite-input-h textarea.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}/*!@:host([scale=s]) .icon*/[scale=s].sc-calcite-input-h .icon.sc-calcite-input{left:0.5rem}/*!@:host([scale=s]) .calcite--rtl .icon*/[scale=s].sc-calcite-input-h .calcite--rtl.sc-calcite-input .icon.sc-calcite-input{left:unset;right:0.5rem}/*!@:host([scale=m]) .icon*/[scale=m].sc-calcite-input-h .icon.sc-calcite-input{left:0.75rem}/*!@:host([scale=m]) .calcite--rtl .icon*/[scale=m].sc-calcite-input-h .calcite--rtl.sc-calcite-input .icon.sc-calcite-input{left:unset;right:0.75rem}/*!@:host([scale=l]) .icon*/[scale=l].sc-calcite-input-h .icon.sc-calcite-input{left:1rem}/*!@:host([scale=l]) .calcite--rtl .icon*/[scale=l].sc-calcite-input-h .calcite--rtl.sc-calcite-input .icon.sc-calcite-input{left:unset;right:1rem}/*!@:host([icon][scale=s]) input*/[icon][scale=s].sc-calcite-input-h input.sc-calcite-input{padding-left:2rem}/*!@:host([icon][scale=s]) .calcite--rtl input*/[icon][scale=s].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{padding-right:2rem;padding-left:0.5rem}/*!@:host([icon][scale=m]) input*/[icon][scale=m].sc-calcite-input-h input.sc-calcite-input{padding-left:2.5rem}/*!@:host([icon][scale=m]) .calcite--rtl input*/[icon][scale=m].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{padding-right:2.5rem;padding-left:0.5rem}/*!@:host([icon][scale=l]) input*/[icon][scale=l].sc-calcite-input-h input.sc-calcite-input{padding-left:3rem}/*!@:host([icon][scale=l]) .calcite--rtl input*/[icon][scale=l].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{padding-right:3rem;padding-left:0.5rem}/*!@.element-wrapper*/.element-wrapper.sc-calcite-input{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex:1 1 0%;flex:1 1 0%;position:relative;-ms-flex-order:3;order:3}/*!@.icon*/.icon.sc-calcite-input{display:block;position:absolute;pointer-events:none;z-index:10;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}/*!@input[type=text]::-ms-clear,\ninput[type=text]::-ms-reveal*/input[type=text].sc-calcite-input::-ms-clear,input[type=text].sc-calcite-input::-ms-reveal{display:none;width:0;height:0}/*!@input[type=search]::-webkit-search-decoration,\ninput[type=search]::-webkit-search-cancel-button,\ninput[type=search]::-webkit-search-results-button,\ninput[type=search]::-webkit-search-results-decoration,\ninput[type=date]::-webkit-clear-button,\ninput[type=time]::-webkit-clear-button*/input[type=search].sc-calcite-input::-webkit-search-decoration,input[type=search].sc-calcite-input::-webkit-search-cancel-button,input[type=search].sc-calcite-input::-webkit-search-results-button,input[type=search].sc-calcite-input::-webkit-search-results-decoration,input[type=date].sc-calcite-input::-webkit-clear-button,input[type=time].sc-calcite-input::-webkit-clear-button{display:none}/*!@.clear-button*/.clear-button.sc-calcite-input{pointer-events:initial;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;display:-ms-flexbox;display:flex;-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;min-height:100%;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);border-left-width:0;-ms-flex-order:4;order:4;margin:0}/*!@.clear-button:hover*/.clear-button.sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}/*!@.clear-button:hover calcite-icon*/.clear-button.sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}/*!@.clear-button:active*/.clear-button.sc-calcite-input:active{background-color:var(--calcite-ui-foreground-3)}/*!@.clear-button:active calcite-icon*/.clear-button.sc-calcite-input:active calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@.clear-button:focus*/.clear-button.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.clear-button:disabled*/.clear-button.sc-calcite-input:disabled{opacity:var(--calcite-ui-opacity-disabled)}/*!@.calcite--rtl .clear-button*/.calcite--rtl.sc-calcite-input .clear-button.sc-calcite-input{border-left-color:var(--calcite-ui-border-input);border-width:1px;border-right-width:0}/*!@.loader*/.loader.sc-calcite-input{top:1px;left:1px;right:1px;display:block;pointer-events:none;position:absolute}/*!@.action-wrapper*/.action-wrapper.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-order:7;order:7}/*!@.prefix,\n.suffix*/.prefix.sc-calcite-input,.suffix.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;height:auto;min-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:var(--calcite-font-weight-medium);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);color:var(--calcite-ui-text-2);line-height:1;word-wrap:break-word;overflow-wrap:break-word}/*!@.prefix*/.prefix.sc-calcite-input{-ms-flex-order:2;order:2;border-right-width:0}/*!@.suffix*/.suffix.sc-calcite-input{-ms-flex-order:5;order:5;border-left-width:0}/*!@.calcite--rtl .prefix*/.calcite--rtl.sc-calcite-input .prefix.sc-calcite-input{border-right-width:1px;border-left-width:0}/*!@.calcite--rtl .suffix*/.calcite--rtl.sc-calcite-input .suffix.sc-calcite-input{border-left-width:1px;border-right-width:0}/*!@:host([alignment=start]) textarea, :host([alignment=start]) input*/[alignment=start].sc-calcite-input-h textarea.sc-calcite-input,[alignment=start].sc-calcite-input-h input.sc-calcite-input{text-align:left}/*!@:host([alignment=start]) .calcite--rtl textarea, :host([alignment=start]) .calcite--rtl input*/[alignment=start].sc-calcite-input-h .calcite--rtl.sc-calcite-input textarea.sc-calcite-input,[alignment=start].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{text-align:right}/*!@:host([alignment=end]) textarea, :host([alignment=end]) input*/[alignment=end].sc-calcite-input-h textarea.sc-calcite-input,[alignment=end].sc-calcite-input-h input.sc-calcite-input{text-align:right}/*!@:host([alignment=end]) .calcite--rtl textarea, :host([alignment=end]) .calcite--rtl input*/[alignment=end].sc-calcite-input-h .calcite--rtl.sc-calcite-input textarea.sc-calcite-input,[alignment=end].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{text-align:left}/*!@:host input[type=number]*/.sc-calcite-input-h input[type=number].sc-calcite-input{-moz-appearance:textfield}/*!@:host input[type=number]::-webkit-inner-spin-button, :host input[type=number]::-webkit-outer-spin-button*/.sc-calcite-input-h input[type=number].sc-calcite-input::-webkit-inner-spin-button,.sc-calcite-input-h input[type=number].sc-calcite-input::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0}/*!@.number-button-wrapper*/.number-button-wrapper.sc-calcite-input{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;pointer-events:none;-ms-flex-order:6;order:6;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}/*!@:host([number-button-type=vertical]) .wrapper*/[number-button-type=vertical].sc-calcite-input-h .wrapper.sc-calcite-input{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}/*!@:host([number-button-type=vertical]) input,\n:host([number-button-type=vertical]) textarea*/[number-button-type=vertical].sc-calcite-input-h input.sc-calcite-input,[number-button-type=vertical].sc-calcite-input-h textarea.sc-calcite-input{-ms-flex-order:2;order:2}/*!@:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon*/[number-button-type=horizontal].sc-calcite-input-h .calcite--rtl.sc-calcite-input .number-button-item[data-adjustment=down].sc-calcite-input calcite-icon.sc-calcite-input{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}/*!@:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon*/[number-button-type=horizontal].sc-calcite-input-h .calcite--rtl.sc-calcite-input .number-button-item[data-adjustment=up].sc-calcite-input calcite-icon.sc-calcite-input{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down], .number-button-item.number-button-item--horizontal[data-adjustment=up]*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input,.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input{min-height:100%;max-height:100%;-ms-flex-order:1;order:1;-ms-flex-item-align:stretch;align-self:stretch}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon, .number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input calcite-icon.sc-calcite-input,.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input calcite-icon.sc-calcite-input{-webkit-transform:rotate(90deg);transform:rotate(90deg)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-right-width:0}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input{-ms-flex-order:5;order:5}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=down].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=down].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=up].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=up].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@.calcite--rtl .number-button-item.number-button-item--horizontal[data-adjustment=down]*/.calcite--rtl.sc-calcite-input .number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input{border-width:1px;border-left-width:0;border-color:var(--calcite-ui-border-input)}/*!@.calcite--rtl .number-button-item.number-button-item--horizontal[data-adjustment=up]*/.calcite--rtl.sc-calcite-input .number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input{border-width:1px;border-right-width:0;border-color:var(--calcite-ui-border-input)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down],\n:host([number-button-type=vertical]) .calcite--rtl .number-button-item[data-adjustment=down]*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=down].sc-calcite-input,[number-button-type=vertical].sc-calcite-input-h .calcite--rtl.sc-calcite-input .number-button-item[data-adjustment=down].sc-calcite-input{border-top-width:0}/*!@.number-button-item*/.number-button-item.sc-calcite-input{max-height:50%;min-height:50%;pointer-events:initial;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;padding-top:0;padding-bottom:0;padding-left:0.5rem;padding-right:0.5rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);border-left-width:0;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;margin:0}/*!@.number-button-item calcite-icon*/.number-button-item.sc-calcite-input calcite-icon.sc-calcite-input{pointer-events:none;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}/*!@.number-button-item:focus*/.number-button-item.sc-calcite-input:focus{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item:focus calcite-icon*/.number-button-item.sc-calcite-input:focus calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@.number-button-item:active*/.number-button-item.sc-calcite-input:active{background-color:var(--calcite-ui-foreground-3)}/*!@:host([number-button-type=vertical]) .calcite--rtl .number-button-item*/[number-button-type=vertical].sc-calcite-input-h .calcite--rtl.sc-calcite-input .number-button-item.sc-calcite-input{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-right-width:0}/*!@.wrapper*/.wrapper.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;position:relative}/*!@:host input::-webkit-calendar-picker-indicator*/.sc-calcite-input-h input.sc-calcite-input::-webkit-calendar-picker-indicator{display:none}/*!@:host input[type=date]::-webkit-input-placeholder*/.sc-calcite-input-h input[type=date].sc-calcite-input::-webkit-input-placeholder{visibility:hidden !important}/*!@:host textarea::-webkit-resizer*/.sc-calcite-input-h textarea.sc-calcite-input::-webkit-resizer{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;bottom:0;right:0;padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem}@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none){/*!@.resize-icon-wrapper*/.resize-icon-wrapper.sc-calcite-input{display:none}}/*!@.resize-icon-wrapper*/.resize-icon-wrapper.sc-calcite-input{bottom:2px;right:2px;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);position:absolute;z-index:10;pointer-events:none;width:0.75rem;height:0.75rem}/*!@.resize-icon-wrapper calcite-icon*/.resize-icon-wrapper.sc-calcite-input calcite-icon.sc-calcite-input{bottom:0.25rem;right:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}/*!@.calcite--rtl textarea::-webkit-resizer*/.calcite--rtl.sc-calcite-input textarea.sc-calcite-input::-webkit-resizer{right:unset;left:0}/*!@.calcite--rtl .resize-icon-wrapper*/.calcite--rtl.sc-calcite-input .resize-icon-wrapper.sc-calcite-input{left:2px;right:unset}/*!@.calcite--rtl .resize-icon-wrapper calcite-icon*/.calcite--rtl.sc-calcite-input .resize-icon-wrapper.sc-calcite-input calcite-icon.sc-calcite-input{bottom:0.25rem;right:0.25rem;-webkit-transform:rotate(45deg);transform:rotate(45deg)}/*!@:host([type=color]) input*/[type=color].sc-calcite-input-h input.sc-calcite-input{padding:0.25rem}/*!@:host([type=file]) input*/[type=file].sc-calcite-input-h input.sc-calcite-input{background-color:var(--calcite-ui-foreground-1);cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-ui-border-input);text-align:center}/*!@:host([type=file][scale=s]) input*/[type=file][scale=s].sc-calcite-input-h input.sc-calcite-input{padding-top:1px;padding-bottom:1px;padding-left:0.5rem;padding-right:0.5rem}/*!@:host([type=file][scale=m]) input*/[type=file][scale=m].sc-calcite-input-h input.sc-calcite-input{padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.75rem;padding-right:0.75rem}/*!@:host([type=file][scale=l]) input*/[type=file][scale=l].sc-calcite-input-h input.sc-calcite-input{padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem}/*!@:host(.no-bottom-border) input*/.no-bottom-border.sc-calcite-input-h input.sc-calcite-input{border-bottom-width:0}/*!@:host(.border-t-color-1) input*/.border-t-color-1.sc-calcite-input-h input.sc-calcite-input{border-top-color:var(--calcite-ui-border-1)}/*!@:host .inline-child*/.sc-calcite-input-h .inline-child.sc-calcite-input{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;background-color:transparent}/*!@:host .inline-child .editing-enabled*/.sc-calcite-input-h .inline-child.sc-calcite-input .editing-enabled.sc-calcite-input{background-color:inherit}/*!@:host .inline-child:not(.editing-enabled)*/.sc-calcite-input-h .inline-child.sc-calcite-input:not(.editing-enabled){display:-ms-flexbox;display:flex;cursor:pointer;border-color:transparent;-webkit-padding-start:0;padding-inline-start:0}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-input-s>input[slot=hidden-form-input]{bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
18806
|
+
const calciteInputCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-input:root{--calcite-animation-timing:300ms}/*!@.calcite-animate*/.calcite-animate.sc-calcite-input{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-input{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-input{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-input{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-input{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-input:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-input-h{display:none}/*!@:host([scale=s]) input, :host([scale=s]) .prefix, :host([scale=s]) .suffix*/[scale=s].sc-calcite-input-h input.sc-calcite-input,[scale=s].sc-calcite-input-h .prefix.sc-calcite-input,[scale=s].sc-calcite-input-h .suffix.sc-calcite-input{font-size:var(--calcite-font-size--2);line-height:1rem;padding:0.5rem;height:1.5rem}/*!@:host([scale=s]) textarea*/[scale=s].sc-calcite-input-h textarea.sc-calcite-input{height:1.5rem;min-height:1.5rem}/*!@:host([scale=s]) .number-button-wrapper, :host([scale=s]) .action-wrapper calcite-button, :host([scale=s]) .action-wrapper calcite-button button*/[scale=s].sc-calcite-input-h .number-button-wrapper.sc-calcite-input,[scale=s].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=s].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{height:1.5rem}/*!@:host([scale=s]) input[type=file]*/[scale=s].sc-calcite-input-h input[type=file].sc-calcite-input{height:1.5rem}/*!@:host([scale=s]) .clear-button*/[scale=s].sc-calcite-input-h .clear-button.sc-calcite-input{min-height:1.5rem;min-width:1.5rem}/*!@:host([scale=s]) textarea*/[scale=s].sc-calcite-input-h textarea.sc-calcite-input{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.5rem;padding-right:0.5rem;height:auto}/*!@:host([scale=m]) input, :host([scale=m]) .prefix, :host([scale=m]) .suffix*/[scale=m].sc-calcite-input-h input.sc-calcite-input,[scale=m].sc-calcite-input-h .prefix.sc-calcite-input,[scale=m].sc-calcite-input-h .suffix.sc-calcite-input{font-size:var(--calcite-font-size--1);line-height:1rem;padding:0.75rem;height:2rem}/*!@:host([scale=m]) textarea*/[scale=m].sc-calcite-input-h textarea.sc-calcite-input{min-height:2rem}/*!@:host([scale=m]) .number-button-wrapper, :host([scale=m]) .action-wrapper calcite-button, :host([scale=m]) .action-wrapper calcite-button button*/[scale=m].sc-calcite-input-h .number-button-wrapper.sc-calcite-input,[scale=m].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=m].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{height:2rem}/*!@:host([scale=m]) input[type=file]*/[scale=m].sc-calcite-input-h input[type=file].sc-calcite-input{height:2rem}/*!@:host([scale=m]) .clear-button*/[scale=m].sc-calcite-input-h .clear-button.sc-calcite-input{min-height:2rem;min-width:2rem}/*!@:host([scale=m]) textarea*/[scale=m].sc-calcite-input-h textarea.sc-calcite-input{font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:0.75rem;padding-right:0.75rem;height:auto}/*!@:host([scale=l]) input, :host([scale=l]) .prefix, :host([scale=l]) .suffix*/[scale=l].sc-calcite-input-h input.sc-calcite-input,[scale=l].sc-calcite-input-h .prefix.sc-calcite-input,[scale=l].sc-calcite-input-h .suffix.sc-calcite-input{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding:1rem;height:2.75rem}/*!@:host([scale=l]) textarea*/[scale=l].sc-calcite-input-h textarea.sc-calcite-input{min-height:2.75rem}/*!@:host([scale=l]) .number-button-wrapper, :host([scale=l]) .action-wrapper calcite-button, :host([scale=l]) .action-wrapper calcite-button button*/[scale=l].sc-calcite-input-h .number-button-wrapper.sc-calcite-input,[scale=l].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=l].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{height:2.75rem}/*!@:host([scale=l]) input[type=file]*/[scale=l].sc-calcite-input-h input[type=file].sc-calcite-input{height:2.75rem}/*!@:host([scale=l]) .clear-button*/[scale=l].sc-calcite-input-h .clear-button.sc-calcite-input{min-height:2.75rem;min-width:2.75rem}/*!@:host([scale=l]) textarea*/[scale=l].sc-calcite-input-h textarea.sc-calcite-input{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;height:auto}/*!@:host([disabled])*/[disabled].sc-calcite-input-h{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) .wrapper*/[disabled].sc-calcite-input-h .wrapper.sc-calcite-input{pointer-events:none;--text-opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) button, :host([disabled]) textarea, :host([disabled]) input*/[disabled].sc-calcite-input-h button.sc-calcite-input,[disabled].sc-calcite-input-h textarea.sc-calcite-input,[disabled].sc-calcite-input-h input.sc-calcite-input{pointer-events:none}/*!@:host([disabled]) textarea*/[disabled].sc-calcite-input-h textarea.sc-calcite-input{resize:none}/*!@:host textarea,\n:host input*/.sc-calcite-input-h textarea.sc-calcite-input,.sc-calcite-input-h input.sc-calcite-input{-webkit-transition:150ms ease-in-out, height 0s;transition:150ms ease-in-out, height 0s;-webkit-appearance:none;width:100%;border-radius:0;position:relative;max-height:100%;max-width:100%;margin:0;font-weight:var(--calcite-font-weight-normal);font-family:inherit;-ms-flex:1 1 0%;flex:1 1 0%;display:-ms-flexbox;display:flex;color:var(--calcite-ui-text-1);-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1)}/*!@:host input[type=search]::-webkit-search-decoration*/.sc-calcite-input-h input[type=search].sc-calcite-input::-webkit-search-decoration{-webkit-appearance:none}/*!@:host input, :host textarea*/.sc-calcite-input-h input.sc-calcite-input,.sc-calcite-input-h textarea.sc-calcite-input{color:var(--calcite-ui-text-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input)}/*!@:host input::placeholder, :host input:-ms-input-placeholder, :host input::-ms-input-placeholder, :host textarea::placeholder, :host textarea:-ms-input-placeholder, :host textarea::-ms-input-placeholder*/.sc-calcite-input-h input.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input:-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}.sc-calcite-input-h input.sc-calcite-input::-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}.sc-calcite-input-h input.sc-calcite-input::placeholder,.sc-calcite-input-h input.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h input.sc-calcite-input::-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::placeholder,.sc-calcite-input-h textarea.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}/*!@:host input:focus, :host textarea:focus*/.sc-calcite-input-h input.sc-calcite-input:focus,.sc-calcite-input-h textarea.sc-calcite-input:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}/*!@:host input[readonly], :host textarea[readonly]*/.sc-calcite-input-h input[readonly].sc-calcite-input,.sc-calcite-input-h textarea[readonly].sc-calcite-input{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}/*!@:host input[readonly]:focus, :host textarea[readonly]:focus*/.sc-calcite-input-h input[readonly].sc-calcite-input:focus,.sc-calcite-input-h textarea[readonly].sc-calcite-input:focus{color:var(--calcite-ui-text-1)}/*!@:host calcite-icon*/.sc-calcite-input-h calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-3)}/*!@:host textarea,\n:host input*/.sc-calcite-input-h textarea.sc-calcite-input,.sc-calcite-input-h input.sc-calcite-input{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}/*!@:host textarea:focus,\n:host input:focus*/.sc-calcite-input-h textarea.sc-calcite-input:focus,.sc-calcite-input-h input.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([status=invalid]) input, :host([status=invalid]) textarea*/[status=invalid].sc-calcite-input-h input.sc-calcite-input,[status=invalid].sc-calcite-input-h textarea.sc-calcite-input{border-color:var(--calcite-ui-danger)}/*!@:host([status=invalid]) input:focus, :host([status=invalid]) textarea:focus*/[status=invalid].sc-calcite-input-h input.sc-calcite-input:focus,[status=invalid].sc-calcite-input-h textarea.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}/*!@:host([scale=s]) .icon*/[scale=s].sc-calcite-input-h .icon.sc-calcite-input{left:0.5rem}/*!@:host([scale=s]) .calcite--rtl .icon*/[scale=s].sc-calcite-input-h .calcite--rtl.sc-calcite-input .icon.sc-calcite-input{left:unset;right:0.5rem}/*!@:host([scale=m]) .icon*/[scale=m].sc-calcite-input-h .icon.sc-calcite-input{left:0.75rem}/*!@:host([scale=m]) .calcite--rtl .icon*/[scale=m].sc-calcite-input-h .calcite--rtl.sc-calcite-input .icon.sc-calcite-input{left:unset;right:0.75rem}/*!@:host([scale=l]) .icon*/[scale=l].sc-calcite-input-h .icon.sc-calcite-input{left:1rem}/*!@:host([scale=l]) .calcite--rtl .icon*/[scale=l].sc-calcite-input-h .calcite--rtl.sc-calcite-input .icon.sc-calcite-input{left:unset;right:1rem}/*!@:host([icon][scale=s]) input*/[icon][scale=s].sc-calcite-input-h input.sc-calcite-input{padding-left:2rem}/*!@:host([icon][scale=s]) .calcite--rtl input*/[icon][scale=s].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{padding-right:2rem;padding-left:0.5rem}/*!@:host([icon][scale=m]) input*/[icon][scale=m].sc-calcite-input-h input.sc-calcite-input{padding-left:2.5rem}/*!@:host([icon][scale=m]) .calcite--rtl input*/[icon][scale=m].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{padding-right:2.5rem;padding-left:0.5rem}/*!@:host([icon][scale=l]) input*/[icon][scale=l].sc-calcite-input-h input.sc-calcite-input{padding-left:3rem}/*!@:host([icon][scale=l]) .calcite--rtl input*/[icon][scale=l].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{padding-right:3rem;padding-left:0.5rem}/*!@.element-wrapper*/.element-wrapper.sc-calcite-input{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex:1 1 0%;flex:1 1 0%;position:relative;-ms-flex-order:3;order:3}/*!@.icon*/.icon.sc-calcite-input{display:block;position:absolute;pointer-events:none;z-index:10;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}/*!@input[type=text]::-ms-clear,\ninput[type=text]::-ms-reveal*/input[type=text].sc-calcite-input::-ms-clear,input[type=text].sc-calcite-input::-ms-reveal{display:none;width:0;height:0}/*!@input[type=search]::-webkit-search-decoration,\ninput[type=search]::-webkit-search-cancel-button,\ninput[type=search]::-webkit-search-results-button,\ninput[type=search]::-webkit-search-results-decoration,\ninput[type=date]::-webkit-clear-button,\ninput[type=time]::-webkit-clear-button*/input[type=search].sc-calcite-input::-webkit-search-decoration,input[type=search].sc-calcite-input::-webkit-search-cancel-button,input[type=search].sc-calcite-input::-webkit-search-results-button,input[type=search].sc-calcite-input::-webkit-search-results-decoration,input[type=date].sc-calcite-input::-webkit-clear-button,input[type=time].sc-calcite-input::-webkit-clear-button{display:none}/*!@.clear-button*/.clear-button.sc-calcite-input{pointer-events:initial;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;display:-ms-flexbox;display:flex;-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;min-height:100%;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);border-left-width:0;-ms-flex-order:4;order:4;margin:0}/*!@.clear-button:hover*/.clear-button.sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}/*!@.clear-button:hover calcite-icon*/.clear-button.sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}/*!@.clear-button:active*/.clear-button.sc-calcite-input:active{background-color:var(--calcite-ui-foreground-3)}/*!@.clear-button:active calcite-icon*/.clear-button.sc-calcite-input:active calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@.clear-button:focus*/.clear-button.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.clear-button:disabled*/.clear-button.sc-calcite-input:disabled{opacity:var(--calcite-ui-opacity-disabled)}/*!@.calcite--rtl .clear-button*/.calcite--rtl.sc-calcite-input .clear-button.sc-calcite-input{border-left-color:var(--calcite-ui-border-input);border-width:1px;border-right-width:0}/*!@.loader*/.loader.sc-calcite-input{top:1px;left:1px;right:1px;display:block;pointer-events:none;position:absolute}/*!@.action-wrapper*/.action-wrapper.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-order:7;order:7}/*!@.prefix,\n.suffix*/.prefix.sc-calcite-input,.suffix.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;height:auto;min-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:var(--calcite-font-weight-medium);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);color:var(--calcite-ui-text-2);line-height:1;word-wrap:break-word;overflow-wrap:break-word}/*!@.prefix*/.prefix.sc-calcite-input{-ms-flex-order:2;order:2;border-right-width:0}/*!@.suffix*/.suffix.sc-calcite-input{-ms-flex-order:5;order:5;border-left-width:0}/*!@.calcite--rtl .prefix*/.calcite--rtl.sc-calcite-input .prefix.sc-calcite-input{border-right-width:1px;border-left-width:0}/*!@.calcite--rtl .suffix*/.calcite--rtl.sc-calcite-input .suffix.sc-calcite-input{border-left-width:1px;border-right-width:0}/*!@:host([alignment=start]) textarea, :host([alignment=start]) input*/[alignment=start].sc-calcite-input-h textarea.sc-calcite-input,[alignment=start].sc-calcite-input-h input.sc-calcite-input{text-align:left}/*!@:host([alignment=start]) .calcite--rtl textarea, :host([alignment=start]) .calcite--rtl input*/[alignment=start].sc-calcite-input-h .calcite--rtl.sc-calcite-input textarea.sc-calcite-input,[alignment=start].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{text-align:right}/*!@:host([alignment=end]) textarea, :host([alignment=end]) input*/[alignment=end].sc-calcite-input-h textarea.sc-calcite-input,[alignment=end].sc-calcite-input-h input.sc-calcite-input{text-align:right}/*!@:host([alignment=end]) .calcite--rtl textarea, :host([alignment=end]) .calcite--rtl input*/[alignment=end].sc-calcite-input-h .calcite--rtl.sc-calcite-input textarea.sc-calcite-input,[alignment=end].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{text-align:left}/*!@:host input[type=number]*/.sc-calcite-input-h input[type=number].sc-calcite-input{-moz-appearance:textfield}/*!@:host input[type=number]::-webkit-inner-spin-button, :host input[type=number]::-webkit-outer-spin-button*/.sc-calcite-input-h input[type=number].sc-calcite-input::-webkit-inner-spin-button,.sc-calcite-input-h input[type=number].sc-calcite-input::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0}/*!@.number-button-wrapper*/.number-button-wrapper.sc-calcite-input{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;pointer-events:none;-ms-flex-order:6;order:6;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}/*!@:host([number-button-type=vertical]) .wrapper*/[number-button-type=vertical].sc-calcite-input-h .wrapper.sc-calcite-input{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}/*!@:host([number-button-type=vertical]) input,\n:host([number-button-type=vertical]) textarea*/[number-button-type=vertical].sc-calcite-input-h input.sc-calcite-input,[number-button-type=vertical].sc-calcite-input-h textarea.sc-calcite-input{-ms-flex-order:2;order:2}/*!@:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon*/[number-button-type=horizontal].sc-calcite-input-h .calcite--rtl.sc-calcite-input .number-button-item[data-adjustment=down].sc-calcite-input calcite-icon.sc-calcite-input{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}/*!@:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon*/[number-button-type=horizontal].sc-calcite-input-h .calcite--rtl.sc-calcite-input .number-button-item[data-adjustment=up].sc-calcite-input calcite-icon.sc-calcite-input{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down], .number-button-item.number-button-item--horizontal[data-adjustment=up]*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input,.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input{min-height:100%;max-height:100%;-ms-flex-order:1;order:1;-ms-flex-item-align:stretch;align-self:stretch}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon, .number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input calcite-icon.sc-calcite-input,.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input calcite-icon.sc-calcite-input{-webkit-transform:rotate(90deg);transform:rotate(90deg)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-right-width:0}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input{-ms-flex-order:5;order:5}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=down].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=down].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=up].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=up].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@.calcite--rtl .number-button-item.number-button-item--horizontal[data-adjustment=down]*/.calcite--rtl.sc-calcite-input .number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input{border-width:1px;border-left-width:0;border-color:var(--calcite-ui-border-input)}/*!@.calcite--rtl .number-button-item.number-button-item--horizontal[data-adjustment=up]*/.calcite--rtl.sc-calcite-input .number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input{border-width:1px;border-right-width:0;border-color:var(--calcite-ui-border-input)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down],\n:host([number-button-type=vertical]) .calcite--rtl .number-button-item[data-adjustment=down]*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=down].sc-calcite-input,[number-button-type=vertical].sc-calcite-input-h .calcite--rtl.sc-calcite-input .number-button-item[data-adjustment=down].sc-calcite-input{border-top-width:0}/*!@.number-button-item*/.number-button-item.sc-calcite-input{max-height:50%;min-height:50%;pointer-events:initial;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;padding-top:0;padding-bottom:0;padding-left:0.5rem;padding-right:0.5rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);border-left-width:0;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;margin:0}/*!@.number-button-item calcite-icon*/.number-button-item.sc-calcite-input calcite-icon.sc-calcite-input{pointer-events:none;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}/*!@.number-button-item:focus*/.number-button-item.sc-calcite-input:focus{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item:focus calcite-icon*/.number-button-item.sc-calcite-input:focus calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@.number-button-item:active*/.number-button-item.sc-calcite-input:active{background-color:var(--calcite-ui-foreground-3)}/*!@:host([number-button-type=vertical]) .calcite--rtl .number-button-item*/[number-button-type=vertical].sc-calcite-input-h .calcite--rtl.sc-calcite-input .number-button-item.sc-calcite-input{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-right-width:0}/*!@.wrapper*/.wrapper.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;position:relative}/*!@:host input::-webkit-calendar-picker-indicator*/.sc-calcite-input-h input.sc-calcite-input::-webkit-calendar-picker-indicator{display:none}/*!@:host input[type=date]::-webkit-input-placeholder*/.sc-calcite-input-h input[type=date].sc-calcite-input::-webkit-input-placeholder{visibility:hidden !important}/*!@:host textarea::-webkit-resizer*/.sc-calcite-input-h textarea.sc-calcite-input::-webkit-resizer{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;bottom:0;right:0;padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem}@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none){/*!@.resize-icon-wrapper*/.resize-icon-wrapper.sc-calcite-input{display:none}}/*!@.resize-icon-wrapper*/.resize-icon-wrapper.sc-calcite-input{bottom:2px;right:2px;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);position:absolute;z-index:10;pointer-events:none;width:0.75rem;height:0.75rem}/*!@.resize-icon-wrapper calcite-icon*/.resize-icon-wrapper.sc-calcite-input calcite-icon.sc-calcite-input{bottom:0.25rem;right:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}/*!@.calcite--rtl textarea::-webkit-resizer*/.calcite--rtl.sc-calcite-input textarea.sc-calcite-input::-webkit-resizer{right:unset;left:0}/*!@.calcite--rtl .resize-icon-wrapper*/.calcite--rtl.sc-calcite-input .resize-icon-wrapper.sc-calcite-input{left:2px;right:unset}/*!@.calcite--rtl .resize-icon-wrapper calcite-icon*/.calcite--rtl.sc-calcite-input .resize-icon-wrapper.sc-calcite-input calcite-icon.sc-calcite-input{bottom:0.25rem;right:0.25rem;-webkit-transform:rotate(45deg);transform:rotate(45deg)}/*!@:host([type=color]) input*/[type=color].sc-calcite-input-h input.sc-calcite-input{padding:0.25rem}/*!@:host([type=file]) input*/[type=file].sc-calcite-input-h input.sc-calcite-input{background-color:var(--calcite-ui-foreground-1);cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-ui-border-input);text-align:center}/*!@:host([type=file][scale=s]) input*/[type=file][scale=s].sc-calcite-input-h input.sc-calcite-input{padding-top:1px;padding-bottom:1px;padding-left:0.5rem;padding-right:0.5rem}/*!@:host([type=file][scale=m]) input*/[type=file][scale=m].sc-calcite-input-h input.sc-calcite-input{padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.75rem;padding-right:0.75rem}/*!@:host([type=file][scale=l]) input*/[type=file][scale=l].sc-calcite-input-h input.sc-calcite-input{padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem}/*!@:host(.no-bottom-border) input*/.no-bottom-border.sc-calcite-input-h input.sc-calcite-input{border-bottom-width:0}/*!@:host(.border-t-color-1) input*/.border-t-color-1.sc-calcite-input-h input.sc-calcite-input{border-top-color:var(--calcite-ui-border-1)}/*!@:host .inline-child*/.sc-calcite-input-h .inline-child.sc-calcite-input{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;background-color:transparent}/*!@:host .inline-child .editing-enabled*/.sc-calcite-input-h .inline-child.sc-calcite-input .editing-enabled.sc-calcite-input{background-color:inherit}/*!@:host .inline-child:not(.editing-enabled)*/.sc-calcite-input-h .inline-child.sc-calcite-input:not(.editing-enabled){display:-ms-flexbox;display:flex;cursor:pointer;border-color:transparent;-webkit-padding-start:0;padding-inline-start:0}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-input-s>input[slot=hidden-form-input]{bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
18755
18807
|
|
|
18756
18808
|
/**
|
|
18757
18809
|
* @slot action - A slot for positioning a button next to an input
|
|
@@ -18786,7 +18838,7 @@ class CalciteInput {
|
|
|
18786
18838
|
* string to override English loading text
|
|
18787
18839
|
* @default "Loading"
|
|
18788
18840
|
*/
|
|
18789
|
-
this.intlLoading = TEXT$
|
|
18841
|
+
this.intlLoading = TEXT$q.loading;
|
|
18790
18842
|
/** flip the icon in rtl */
|
|
18791
18843
|
this.iconFlipRtl = false;
|
|
18792
18844
|
/** specify if the input is in loading state */
|
|
@@ -18816,6 +18868,8 @@ class CalciteInput {
|
|
|
18816
18868
|
* Note that the following types add type-specific icons by default: `date`, `email`, `password`, `search`, `tel`, `time`
|
|
18817
18869
|
*/
|
|
18818
18870
|
this.type = "text";
|
|
18871
|
+
/** input value */
|
|
18872
|
+
this.value = "";
|
|
18819
18873
|
/** keep track of the rendered child type */
|
|
18820
18874
|
this.childElType = "input";
|
|
18821
18875
|
//--------------------------------------------------------------------------
|
|
@@ -18837,7 +18891,7 @@ class CalciteInput {
|
|
|
18837
18891
|
}
|
|
18838
18892
|
};
|
|
18839
18893
|
this.clearInputValue = (nativeEvent) => {
|
|
18840
|
-
this.setValue(
|
|
18894
|
+
this.setValue("", nativeEvent, true);
|
|
18841
18895
|
};
|
|
18842
18896
|
this.inputBlurHandler = () => {
|
|
18843
18897
|
if (this.type === "number") {
|
|
@@ -18944,12 +18998,13 @@ class CalciteInput {
|
|
|
18944
18998
|
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
18945
18999
|
const valueNudgeDelayInMs = 100;
|
|
18946
19000
|
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
18947
|
-
let
|
|
19001
|
+
let firstValueNudge = true;
|
|
18948
19002
|
this.nudgeNumberValueIntervalId = setInterval(() => {
|
|
18949
|
-
|
|
18950
|
-
|
|
18951
|
-
|
|
18952
|
-
|
|
19003
|
+
if (firstValueNudge) {
|
|
19004
|
+
firstValueNudge = false;
|
|
19005
|
+
return;
|
|
19006
|
+
}
|
|
19007
|
+
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
18953
19008
|
}, valueNudgeDelayInMs);
|
|
18954
19009
|
};
|
|
18955
19010
|
this.numberButtonMouseUpAndMouseOutHandler = () => {
|
|
@@ -18978,7 +19033,7 @@ class CalciteInput {
|
|
|
18978
19033
|
this.setLocalizedValue(this.value);
|
|
18979
19034
|
}
|
|
18980
19035
|
if (nativeEvent) {
|
|
18981
|
-
if (this.type === "number" &&
|
|
19036
|
+
if (this.type === "number" && value.endsWith(".")) {
|
|
18982
19037
|
return;
|
|
18983
19038
|
}
|
|
18984
19039
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
@@ -19013,6 +19068,10 @@ class CalciteInput {
|
|
|
19013
19068
|
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
19014
19069
|
}
|
|
19015
19070
|
valueWatcher(newValue) {
|
|
19071
|
+
if (newValue == null) {
|
|
19072
|
+
this.value = "";
|
|
19073
|
+
return;
|
|
19074
|
+
}
|
|
19016
19075
|
if (this.type === "number" &&
|
|
19017
19076
|
this.localizedValue !== localizeNumberString(newValue, this.locale)) {
|
|
19018
19077
|
this.setLocalizedValue(newValue);
|
|
@@ -19025,8 +19084,7 @@ class CalciteInput {
|
|
|
19025
19084
|
this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
19026
19085
|
}
|
|
19027
19086
|
get isClearable() {
|
|
19028
|
-
|
|
19029
|
-
return !this.isTextarea && (this.clearable || this.type === "search") && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
19087
|
+
return !this.isTextarea && (this.clearable || this.type === "search") && this.value.length > 0;
|
|
19030
19088
|
}
|
|
19031
19089
|
get isTextarea() {
|
|
19032
19090
|
return this.childElType === "textarea";
|
|
@@ -19161,7 +19219,7 @@ class CalciteInput {
|
|
|
19161
19219
|
const numberButtonsVertical = (hAsync("div", { class: CSS$r.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
19162
19220
|
const prefixText = hAsync("div", { class: CSS$r.prefix }, this.prefixText);
|
|
19163
19221
|
const suffixText = hAsync("div", { class: CSS$r.suffix }, this.suffixText);
|
|
19164
|
-
const localeNumberInput = this.type === "number" ? (hAsync("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef,
|
|
19222
|
+
const localeNumberInput = this.type === "number" ? (hAsync("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, type: "text", value: this.localizedValue })) : null;
|
|
19165
19223
|
const childEl = this.type !== "number"
|
|
19166
19224
|
? [
|
|
19167
19225
|
hAsync(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
@@ -19171,11 +19229,11 @@ class CalciteInput {
|
|
|
19171
19229
|
this.isTextarea ? (hAsync("div", { class: CSS$r.resizeIconWrapper }, hAsync("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
19172
19230
|
]
|
|
19173
19231
|
: null;
|
|
19174
|
-
return (hAsync(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$r.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" }, dir: dir }, this.type === "number" && this.numberButtonType === "horizontal"
|
|
19232
|
+
return (hAsync(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$r.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" }, dir: dir }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
19175
19233
|
? numberButtonsHorizontalDown
|
|
19176
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$r.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$r.actionWrapper }, hAsync("slot", { name: SLOTS$g.action })), this.type === "number" && this.numberButtonType === "vertical"
|
|
19234
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$r.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$r.actionWrapper }, hAsync("slot", { name: SLOTS$g.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
19177
19235
|
? numberButtonsVertical
|
|
19178
|
-
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal"
|
|
19236
|
+
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
19179
19237
|
? numberButtonsHorizontalUp
|
|
19180
19238
|
: null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
19181
19239
|
}
|
|
@@ -19257,11 +19315,11 @@ class CalciteInputDatePicker {
|
|
|
19257
19315
|
/** Localized string for "previous month" (used for aria label)
|
|
19258
19316
|
* @default "Previous month"
|
|
19259
19317
|
*/
|
|
19260
|
-
this.intlPrevMonth = TEXT$
|
|
19318
|
+
this.intlPrevMonth = TEXT$e.prevMonth;
|
|
19261
19319
|
/** Localized string for "next month" (used for aria label)
|
|
19262
19320
|
* @default "Next month"
|
|
19263
19321
|
*/
|
|
19264
|
-
this.intlNextMonth = TEXT$
|
|
19322
|
+
this.intlNextMonth = TEXT$e.nextMonth;
|
|
19265
19323
|
/** BCP 47 language tag for desired language and country format */
|
|
19266
19324
|
this.locale = document.documentElement.lang || "en";
|
|
19267
19325
|
/** specify the scale of the date picker */
|
|
@@ -20617,7 +20675,7 @@ const SLOTS$e = {
|
|
|
20617
20675
|
secondary: "secondary",
|
|
20618
20676
|
primary: "primary"
|
|
20619
20677
|
};
|
|
20620
|
-
const TEXT$
|
|
20678
|
+
const TEXT$b = {
|
|
20621
20679
|
close: "Close"
|
|
20622
20680
|
};
|
|
20623
20681
|
|
|
@@ -20655,7 +20713,7 @@ class CalciteModal {
|
|
|
20655
20713
|
/** Disables the closing of the Modal when clicked outside. */
|
|
20656
20714
|
this.disableOutsideClose = false;
|
|
20657
20715
|
/** Aria label for the close button */
|
|
20658
|
-
this.intlClose = TEXT$
|
|
20716
|
+
this.intlClose = TEXT$b.close;
|
|
20659
20717
|
/** Flag to disable the default close on escape behavior */
|
|
20660
20718
|
this.disableEscape = false;
|
|
20661
20719
|
/** specify the scale of modal, defaults to m */
|
|
@@ -20751,7 +20809,7 @@ class CalciteModal {
|
|
|
20751
20809
|
return this.hasFooter ? (hAsync("div", { class: CSS$m.footer }, hAsync("span", { class: CSS$m.back }, hAsync("slot", { name: SLOTS$e.back })), hAsync("span", { class: CSS$m.secondary }, hAsync("slot", { name: SLOTS$e.secondary })), hAsync("span", { class: CSS$m.primary }, hAsync("slot", { name: SLOTS$e.primary })))) : null;
|
|
20752
20810
|
}
|
|
20753
20811
|
renderCloseButton() {
|
|
20754
|
-
return !this.disableCloseButton ? (hAsync("button", { "aria-label": this.intlClose, class: CSS$m.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, hAsync("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : "l" }))) : null;
|
|
20812
|
+
return !this.disableCloseButton ? (hAsync("button", { "aria-label": this.intlClose, class: CSS$m.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, hAsync("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
20755
20813
|
}
|
|
20756
20814
|
renderStyle() {
|
|
20757
20815
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -20880,7 +20938,7 @@ class CalciteModal {
|
|
|
20880
20938
|
}; }
|
|
20881
20939
|
}
|
|
20882
20940
|
|
|
20883
|
-
const TEXT$
|
|
20941
|
+
const TEXT$a = {
|
|
20884
20942
|
close: "Close"
|
|
20885
20943
|
};
|
|
20886
20944
|
const SLOTS$d = {
|
|
@@ -20929,7 +20987,7 @@ class CalciteNotice {
|
|
|
20929
20987
|
/** String for the close button.
|
|
20930
20988
|
* @default "Close"
|
|
20931
20989
|
*/
|
|
20932
|
-
this.intlClose = TEXT$
|
|
20990
|
+
this.intlClose = TEXT$a.close;
|
|
20933
20991
|
/** specify the scale of the notice, defaults to m */
|
|
20934
20992
|
this.scale = "m";
|
|
20935
20993
|
/** specify the width of the notice, defaults to auto */
|
|
@@ -21152,7 +21210,7 @@ const CSS$k = {
|
|
|
21152
21210
|
ellipsisStart: "ellipsis--start",
|
|
21153
21211
|
ellipsisEnd: "ellipsis--end"
|
|
21154
21212
|
};
|
|
21155
|
-
const TEXT$
|
|
21213
|
+
const TEXT$9 = {
|
|
21156
21214
|
nextLabel: "Next",
|
|
21157
21215
|
previousLabel: "Previous"
|
|
21158
21216
|
};
|
|
@@ -21179,11 +21237,11 @@ class CalcitePagination {
|
|
|
21179
21237
|
/** Used as an accessible label (aria-label) for the next button
|
|
21180
21238
|
* @default "Next"
|
|
21181
21239
|
*/
|
|
21182
|
-
this.textLabelNext = TEXT$
|
|
21240
|
+
this.textLabelNext = TEXT$9.nextLabel;
|
|
21183
21241
|
/** Used as an accessible label (aria-label) of the previous button
|
|
21184
21242
|
* @default "Previous"
|
|
21185
21243
|
*/
|
|
21186
|
-
this.textLabelPrevious = TEXT$
|
|
21244
|
+
this.textLabelPrevious = TEXT$9.previousLabel;
|
|
21187
21245
|
/** The scale of the pagination */
|
|
21188
21246
|
this.scale = "m";
|
|
21189
21247
|
this.previousClicked = () => {
|
|
@@ -21338,6 +21396,7 @@ const CSS$j = {
|
|
|
21338
21396
|
headerActionsStart: "header-actions--start",
|
|
21339
21397
|
contentWrapper: "content-wrapper",
|
|
21340
21398
|
contentContainer: "content-container",
|
|
21399
|
+
contentHeight: "content-height",
|
|
21341
21400
|
fabContainer: "fab-container",
|
|
21342
21401
|
footer: "footer",
|
|
21343
21402
|
menuContainer: "menu-container",
|
|
@@ -21360,7 +21419,7 @@ const SLOTS$c = {
|
|
|
21360
21419
|
footer: "footer",
|
|
21361
21420
|
footerActions: "footer-actions"
|
|
21362
21421
|
};
|
|
21363
|
-
const TEXT$
|
|
21422
|
+
const TEXT$8 = {
|
|
21364
21423
|
back: "Back",
|
|
21365
21424
|
close: "Close",
|
|
21366
21425
|
open: "Open",
|
|
@@ -21368,7 +21427,7 @@ const TEXT$7 = {
|
|
|
21368
21427
|
};
|
|
21369
21428
|
const HEADING_LEVEL$4 = 3;
|
|
21370
21429
|
|
|
21371
|
-
const calcitePanelCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-panel:root{--calcite-animation-timing:300ms}/*!@.calcite-animate*/.calcite-animate.sc-calcite-panel{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-panel{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-panel{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-panel{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-panel{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:host*/.sc-calcite-panel-h{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-panel-h *.sc-calcite-panel{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:root*/.sc-calcite-panel:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-panel-h{display:none}/*!@:host*/.sc-calcite-panel-h{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;position:relative;width:100%;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}/*!@.header*/.header.sc-calcite-panel{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:justify;align-content:space-between;color:var(--calcite-ui-text-2);}/*!@.heading*/.heading.sc-calcite-panel{font-weight:var(--calcite-font-weight-medium);margin:0;padding:0}/*!@.header .heading*/.header.sc-calcite-panel .heading.sc-calcite-panel{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}/*!@h1.heading*/h1.heading.sc-calcite-panel{font-size:var(--calcite-font-size-2);line-height:1.5rem}/*!@h2.heading*/h2.heading.sc-calcite-panel{font-size:var(--calcite-font-size-1);line-height:1.5rem}/*!@h3.heading*/h3.heading.sc-calcite-panel{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@h4.heading,\nh5.heading*/h4.heading.sc-calcite-panel,h5.heading.sc-calcite-panel{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@.container*/.container.sc-calcite-panel{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);width:100%;padding:0;margin:0;max-height:var(--calcite-panel-max-height);width:var(--calcite-panel-width);max-width:var(--calcite-panel-max-width);min-width:var(--calcite-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, width 150ms ease-in-out;transition:max-height 150ms ease-in-out, width 150ms ease-in-out}/*!@:host([height-scale=s])*/[height-scale=s].sc-calcite-panel-h{--calcite-panel-max-height:40vh}/*!@:host([height-scale=m])*/[height-scale=m].sc-calcite-panel-h{--calcite-panel-max-height:60vh}/*!@:host([height-scale=l])*/[height-scale=l].sc-calcite-panel-h{--calcite-panel-max-height:80vh}/*!@:host([width-scale=s])*/[width-scale=s].sc-calcite-panel-h{--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}/*!@:host([width-scale=m])*/[width-scale=m].sc-calcite-panel-h{--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}/*!@:host([width-scale=l])*/[width-scale=l].sc-calcite-panel-h{--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}/*!@.container[hidden]*/.container[hidden].sc-calcite-panel{display:none}/*!@:host([loading]) .container,\n:host([disabled]) .container*/[loading].sc-calcite-panel-h .container.sc-calcite-panel,[disabled].sc-calcite-panel-h .container.sc-calcite-panel{position:relative;z-index:1}/*!@.header*/.header.sc-calcite-panel{border-bottom:1px solid;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);-ms-flex-pack:start;justify-content:flex-start;position:-webkit-sticky;position:sticky;top:0;border-bottom-color:var(--calcite-ui-border-3);width:100%;-ms-flex:0 0 auto;flex:0 0 auto;min-height:3rem;z-index:2}/*!@.header-content*/.header-content.sc-calcite-panel{overflow:hidden;margin-right:auto;padding-left:0.75rem;padding-right:0.75rem;padding-top:1rem;padding-bottom:1rem;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}/*!@.header-content .heading,\n.header-content .summary*/.header-content.sc-calcite-panel .heading.sc-calcite-panel,.header-content.sc-calcite-panel .summary.sc-calcite-panel{padding:0;display:block;overflow:hidden;white-space:nowrap;width:100%;text-overflow:ellipsis}/*!@.header-content .heading*/.header-content.sc-calcite-panel .heading.sc-calcite-panel{font-weight:var(--calcite-font-weight-medium);margin-top:0;margin-left:0;margin-right:0;margin-bottom:0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@.header-content .heading:only-child*/.header-content.sc-calcite-panel .heading.sc-calcite-panel:only-child{margin-bottom:0}/*!@.header-content .summary*/.header-content.sc-calcite-panel .summary.sc-calcite-panel{color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1);line-height:1rem}/*!@.back-button*/.back-button.sc-calcite-panel{border-color:var(--calcite-ui-border-3);border-style:solid;border-width:0;border-right-width:1px}/*!@.calcite--rtl .back-button*/.calcite--rtl.sc-calcite-panel .back-button.sc-calcite-panel{border-right-width:0;border-left-width:1px}/*!@.header-actions*/.header-actions.sc-calcite-panel{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}/*!@.header-actions--end*/.header-actions--end.sc-calcite-panel{margin-left:auto}/*!@.menu-container:only-child*/.menu-container.sc-calcite-panel:only-child{margin-left:auto}/*!@.menu-button*/.menu-button.sc-calcite-panel{-ms-flex-item-align:stretch;align-self:stretch;-ms-flex:0 1 auto;flex:0 1 auto;height:100%;position:relative}/*!@.menu*/.menu.sc-calcite-panel{min-width:10rem;-ms-flex-flow:column nowrap;flex-flow:column nowrap}/*!@.content-wrapper*/.content-wrapper.sc-calcite-panel{
|
|
21430
|
+
const calcitePanelCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-panel:root{--calcite-animation-timing:300ms}/*!@.calcite-animate*/.calcite-animate.sc-calcite-panel{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-panel{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-panel{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-panel{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-panel{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:host*/.sc-calcite-panel-h{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-panel-h *.sc-calcite-panel{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:root*/.sc-calcite-panel:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-panel-h{display:none}/*!@:host*/.sc-calcite-panel-h{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;position:relative;width:100%;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}/*!@.header*/.header.sc-calcite-panel{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:justify;align-content:space-between;color:var(--calcite-ui-text-2);}/*!@.heading*/.heading.sc-calcite-panel{font-weight:var(--calcite-font-weight-medium);margin:0;padding:0}/*!@.header .heading*/.header.sc-calcite-panel .heading.sc-calcite-panel{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}/*!@h1.heading*/h1.heading.sc-calcite-panel{font-size:var(--calcite-font-size-2);line-height:1.5rem}/*!@h2.heading*/h2.heading.sc-calcite-panel{font-size:var(--calcite-font-size-1);line-height:1.5rem}/*!@h3.heading*/h3.heading.sc-calcite-panel{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@h4.heading,\nh5.heading*/h4.heading.sc-calcite-panel,h5.heading.sc-calcite-panel{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@.container*/.container.sc-calcite-panel{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);width:100%;padding:0;margin:0;max-height:var(--calcite-panel-max-height);width:var(--calcite-panel-width);max-width:var(--calcite-panel-max-width);min-width:var(--calcite-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, width 150ms ease-in-out;transition:max-height 150ms ease-in-out, width 150ms ease-in-out}/*!@:host([height-scale=s])*/[height-scale=s].sc-calcite-panel-h{--calcite-panel-max-height:40vh}/*!@:host([height-scale=m])*/[height-scale=m].sc-calcite-panel-h{--calcite-panel-max-height:60vh}/*!@:host([height-scale=l])*/[height-scale=l].sc-calcite-panel-h{--calcite-panel-max-height:80vh}/*!@:host([width-scale=s])*/[width-scale=s].sc-calcite-panel-h{--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}/*!@:host([width-scale=m])*/[width-scale=m].sc-calcite-panel-h{--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}/*!@:host([width-scale=l])*/[width-scale=l].sc-calcite-panel-h{--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}/*!@.container[hidden]*/.container[hidden].sc-calcite-panel{display:none}/*!@:host([loading]) .container,\n:host([disabled]) .container*/[loading].sc-calcite-panel-h .container.sc-calcite-panel,[disabled].sc-calcite-panel-h .container.sc-calcite-panel{position:relative;z-index:1}/*!@.header*/.header.sc-calcite-panel{border-bottom:1px solid;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);-ms-flex-pack:start;justify-content:flex-start;position:-webkit-sticky;position:sticky;top:0;border-bottom-color:var(--calcite-ui-border-3);width:100%;-ms-flex:0 0 auto;flex:0 0 auto;min-height:3rem;z-index:2}/*!@.header-content*/.header-content.sc-calcite-panel{overflow:hidden;margin-right:auto;padding-left:0.75rem;padding-right:0.75rem;padding-top:1rem;padding-bottom:1rem;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}/*!@.header-content .heading,\n.header-content .summary*/.header-content.sc-calcite-panel .heading.sc-calcite-panel,.header-content.sc-calcite-panel .summary.sc-calcite-panel{padding:0;display:block;overflow:hidden;white-space:nowrap;width:100%;text-overflow:ellipsis}/*!@.header-content .heading*/.header-content.sc-calcite-panel .heading.sc-calcite-panel{font-weight:var(--calcite-font-weight-medium);margin-top:0;margin-left:0;margin-right:0;margin-bottom:0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@.header-content .heading:only-child*/.header-content.sc-calcite-panel .heading.sc-calcite-panel:only-child{margin-bottom:0}/*!@.header-content .summary*/.header-content.sc-calcite-panel .summary.sc-calcite-panel{color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1);line-height:1rem}/*!@.back-button*/.back-button.sc-calcite-panel{border-color:var(--calcite-ui-border-3);border-style:solid;border-width:0;border-right-width:1px}/*!@.calcite--rtl .back-button*/.calcite--rtl.sc-calcite-panel .back-button.sc-calcite-panel{border-right-width:0;border-left-width:1px}/*!@.header-actions*/.header-actions.sc-calcite-panel{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}/*!@.header-actions--end*/.header-actions--end.sc-calcite-panel{margin-left:auto}/*!@.menu-container:only-child*/.menu-container.sc-calcite-panel:only-child{margin-left:auto}/*!@.menu-button*/.menu-button.sc-calcite-panel{-ms-flex-item-align:stretch;align-self:stretch;-ms-flex:0 1 auto;flex:0 1 auto;height:100%;position:relative}/*!@.menu*/.menu.sc-calcite-panel{min-width:10rem;-ms-flex-flow:column nowrap;flex-flow:column nowrap}/*!@.content-wrapper*/.content-wrapper.sc-calcite-panel{overflow:auto}/*!@.content-height*/.content-height.sc-calcite-panel{height:100%}/*!@.content-container*/.content-container.sc-calcite-panel{-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:column;flex-direction:column}/*!@.footer*/.footer.sc-calcite-panel{border-top:1px solid;background-color:var(--calcite-ui-foreground-1);border-top-color:var(--calcite-ui-border-3);display:-ms-flexbox;display:flex;-ms-flex-pack:space-evenly;justify-content:space-evenly;position:-webkit-sticky;position:sticky;bottom:0;width:100%;-ms-flex:0 0 auto;flex:0 0 auto;min-height:3rem;padding:0.5rem}/*!@.calcite--rtl .header-content*/.calcite--rtl.sc-calcite-panel .header-content.sc-calcite-panel{margin-left:auto;margin-right:unset}/*!@.calcite--rtl .header-actions--end*/.calcite--rtl.sc-calcite-panel .header-actions--end.sc-calcite-panel{margin-right:auto;margin-left:unset}/*!@.calcite--rtl .menu-container:only-child*/.calcite--rtl.sc-calcite-panel .menu-container.sc-calcite-panel:only-child{margin-right:auto;margin-left:unset}/*!@.fab-container*/.fab-container.sc-calcite-panel{display:block;position:-webkit-sticky;position:sticky;margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto;padding:0.5rem;bottom:0;left:0;right:0;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;z-index:1}";
|
|
21372
21431
|
|
|
21373
21432
|
/**
|
|
21374
21433
|
* @slot - A slot for adding custom content.
|
|
@@ -21472,9 +21531,9 @@ class CalcitePanel {
|
|
|
21472
21531
|
// --------------------------------------------------------------------------
|
|
21473
21532
|
renderBackButton() {
|
|
21474
21533
|
const { el } = this;
|
|
21475
|
-
const rtl =
|
|
21534
|
+
const rtl = getElementStyleDir(el) === "rtl";
|
|
21476
21535
|
const { showBackButton, intlBack, backButtonClick } = this;
|
|
21477
|
-
const label = intlBack || TEXT$
|
|
21536
|
+
const label = intlBack || TEXT$8.back;
|
|
21478
21537
|
const icon = rtl ? ICONS$5.backRight : ICONS$5.backLeft;
|
|
21479
21538
|
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$j.backButton, icon: icon, key: "back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: SLOTS$c.headerActionsStart, text: label })) : null;
|
|
21480
21539
|
}
|
|
@@ -21497,7 +21556,7 @@ class CalcitePanel {
|
|
|
21497
21556
|
}
|
|
21498
21557
|
renderHeaderActionsEnd() {
|
|
21499
21558
|
const { dismiss, dismissible, el, intlClose } = this;
|
|
21500
|
-
const text = intlClose || TEXT$
|
|
21559
|
+
const text = intlClose || TEXT$8.close;
|
|
21501
21560
|
const dismissibleNode = dismissible ? (hAsync("calcite-action", { "aria-label": text, icon: ICONS$5.close, onClick: dismiss, ref: this.setDismissRef, text: text })) : null;
|
|
21502
21561
|
const slotNode = hAsync("slot", { name: SLOTS$c.headerActionsEnd });
|
|
21503
21562
|
const hasEndActions = getSlotted(el, SLOTS$c.headerActionsEnd);
|
|
@@ -21506,7 +21565,7 @@ class CalcitePanel {
|
|
|
21506
21565
|
renderMenu() {
|
|
21507
21566
|
const { el, intlOptions, menuOpen } = this;
|
|
21508
21567
|
const hasMenuItems = getSlotted(el, SLOTS$c.headerMenuActions);
|
|
21509
|
-
return hasMenuItems ? (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], label: intlOptions || TEXT$
|
|
21568
|
+
return hasMenuItems ? (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$p.trigger, text: intlOptions || TEXT$8.options }), hAsync("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
21510
21569
|
}
|
|
21511
21570
|
renderHeaderNode() {
|
|
21512
21571
|
const { el, showBackButton } = this;
|
|
@@ -21538,12 +21597,12 @@ class CalcitePanel {
|
|
|
21538
21597
|
return hasFooterActions ? (hAsync("footer", { class: CSS$j.footer }, hAsync("slot", { name: SLOTS$c.footerActions }))) : null;
|
|
21539
21598
|
}
|
|
21540
21599
|
renderContent() {
|
|
21541
|
-
return (hAsync("div", { class: CSS$j.contentWrapper, onScroll: this.panelScrollHandler, tabIndex: 0 }, hAsync("section", { class: CSS$j.contentContainer }, hAsync("slot", null)), this.renderFab()));
|
|
21542
|
-
}
|
|
21543
|
-
renderFab() {
|
|
21544
21600
|
const { el } = this;
|
|
21545
21601
|
const hasFab = getSlotted(el, SLOTS$c.fab);
|
|
21546
|
-
return hasFab ? (hAsync("div", { class: CSS$j.
|
|
21602
|
+
return hasFab ? (hAsync("div", { class: { [CSS$j.contentWrapper]: true, [CSS$j.contentHeight]: true }, onScroll: this.panelScrollHandler, tabIndex: 0 }, hAsync("section", { class: CSS$j.contentContainer }, hAsync("slot", null)), this.renderFab())) : (hAsync("section", { class: { [CSS$j.contentWrapper]: true, [CSS$j.contentContainer]: true }, onScroll: this.panelScrollHandler, tabIndex: 0 }, hAsync("slot", null)));
|
|
21603
|
+
}
|
|
21604
|
+
renderFab() {
|
|
21605
|
+
return (hAsync("div", { class: CSS$j.fabContainer }, hAsync("slot", { name: SLOTS$c.fab })));
|
|
21547
21606
|
}
|
|
21548
21607
|
render() {
|
|
21549
21608
|
const { dismissed, disabled, dismissible, el, loading, panelKeyUpHandler } = this;
|
|
@@ -22097,7 +22156,7 @@ const SLOTS$9 = {
|
|
|
22097
22156
|
actionsEnd: "actions-end",
|
|
22098
22157
|
actionsStart: "actions-start"
|
|
22099
22158
|
};
|
|
22100
|
-
const TEXT$
|
|
22159
|
+
const TEXT$7 = {
|
|
22101
22160
|
remove: "Remove"
|
|
22102
22161
|
};
|
|
22103
22162
|
|
|
@@ -22143,7 +22202,7 @@ class CalcitePickListItem {
|
|
|
22143
22202
|
* Used as an accessible label (aria-label) for the "remove item" action. Only applicable if removable is true.
|
|
22144
22203
|
* @default "Remove"
|
|
22145
22204
|
*/
|
|
22146
|
-
this.intlRemove = TEXT$
|
|
22205
|
+
this.intlRemove = TEXT$7.remove;
|
|
22147
22206
|
// --------------------------------------------------------------------------
|
|
22148
22207
|
//
|
|
22149
22208
|
// Private Methods
|
|
@@ -22286,7 +22345,7 @@ const CSS$f = {
|
|
|
22286
22345
|
headerContent: "header-content",
|
|
22287
22346
|
heading: "heading"
|
|
22288
22347
|
};
|
|
22289
|
-
const TEXT$
|
|
22348
|
+
const TEXT$6 = {
|
|
22290
22349
|
close: "Close"
|
|
22291
22350
|
};
|
|
22292
22351
|
const POPOVER_REFERENCE = "data-calcite-popover-reference";
|
|
@@ -22349,7 +22408,7 @@ class CalcitePopover {
|
|
|
22349
22408
|
/** Text for close button.
|
|
22350
22409
|
* @default "Close"
|
|
22351
22410
|
*/
|
|
22352
|
-
this.intlClose = TEXT$
|
|
22411
|
+
this.intlClose = TEXT$6.close;
|
|
22353
22412
|
this.guid = `calcite-popover-${guid()}`;
|
|
22354
22413
|
this.activeTransitionProp = "opacity";
|
|
22355
22414
|
// --------------------------------------------------------------------------
|
|
@@ -22845,7 +22904,7 @@ class CalciteRadioButton {
|
|
|
22845
22904
|
return;
|
|
22846
22905
|
}
|
|
22847
22906
|
let adjustedKey = key;
|
|
22848
|
-
if (
|
|
22907
|
+
if (getElementStyleDir(el) === "rtl") {
|
|
22849
22908
|
if (key === "ArrowRight") {
|
|
22850
22909
|
adjustedKey = "ArrowLeft";
|
|
22851
22910
|
}
|
|
@@ -23173,7 +23232,7 @@ class CalciteRadioGroup {
|
|
|
23173
23232
|
//--------------------------------------------------------------------------
|
|
23174
23233
|
this.handleClick = (event) => {
|
|
23175
23234
|
if (event.target.localName === "calcite-radio-group-item") {
|
|
23176
|
-
this.selectItem(event.target);
|
|
23235
|
+
this.selectItem(event.target, true);
|
|
23177
23236
|
}
|
|
23178
23237
|
};
|
|
23179
23238
|
}
|
|
@@ -23192,7 +23251,6 @@ class CalciteRadioGroup {
|
|
|
23192
23251
|
.pop();
|
|
23193
23252
|
if (match) {
|
|
23194
23253
|
this.selectItem(match);
|
|
23195
|
-
this.calciteRadioGroupChange.emit(match.value);
|
|
23196
23254
|
}
|
|
23197
23255
|
else if (items[0]) {
|
|
23198
23256
|
items[0].tabIndex = 0;
|
|
@@ -23203,7 +23261,7 @@ class CalciteRadioGroup {
|
|
|
23203
23261
|
// Lifecycle
|
|
23204
23262
|
//
|
|
23205
23263
|
//--------------------------------------------------------------------------
|
|
23206
|
-
|
|
23264
|
+
componentWillLoad() {
|
|
23207
23265
|
const items = this.getItems();
|
|
23208
23266
|
const lastChecked = Array.from(items)
|
|
23209
23267
|
.filter((item) => item.checked)
|
|
@@ -23214,6 +23272,8 @@ class CalciteRadioGroup {
|
|
|
23214
23272
|
else if (items[0]) {
|
|
23215
23273
|
items[0].tabIndex = 0;
|
|
23216
23274
|
}
|
|
23275
|
+
}
|
|
23276
|
+
connectedCallback() {
|
|
23217
23277
|
connectLabel(this);
|
|
23218
23278
|
connectForm(this);
|
|
23219
23279
|
}
|
|
@@ -23221,19 +23281,13 @@ class CalciteRadioGroup {
|
|
|
23221
23281
|
disconnectLabel(this);
|
|
23222
23282
|
disconnectForm(this);
|
|
23223
23283
|
}
|
|
23224
|
-
componentDidLoad() {
|
|
23225
|
-
this.hasLoaded = true;
|
|
23226
|
-
}
|
|
23227
23284
|
render() {
|
|
23228
23285
|
return (hAsync(Host, { onClick: this.handleClick, role: "radiogroup", tabIndex: this.disabled ? -1 : null }, hAsync("slot", null), hAsync(HiddenFormInputSlot, { component: this })));
|
|
23229
23286
|
}
|
|
23230
23287
|
handleSelected(event) {
|
|
23231
|
-
|
|
23232
|
-
|
|
23233
|
-
|
|
23234
|
-
event.preventDefault();
|
|
23235
|
-
this.selectItem(event.target);
|
|
23236
|
-
}
|
|
23288
|
+
event.stopPropagation();
|
|
23289
|
+
event.preventDefault();
|
|
23290
|
+
this.selectItem(event.target);
|
|
23237
23291
|
}
|
|
23238
23292
|
handleKeyDown(event) {
|
|
23239
23293
|
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
@@ -23243,7 +23297,7 @@ class CalciteRadioGroup {
|
|
|
23243
23297
|
return;
|
|
23244
23298
|
}
|
|
23245
23299
|
let adjustedKey = key;
|
|
23246
|
-
if (
|
|
23300
|
+
if (getElementStyleDir(el) === "rtl") {
|
|
23247
23301
|
if (key === "ArrowRight") {
|
|
23248
23302
|
adjustedKey = "ArrowLeft";
|
|
23249
23303
|
}
|
|
@@ -23263,17 +23317,17 @@ class CalciteRadioGroup {
|
|
|
23263
23317
|
case "ArrowUp":
|
|
23264
23318
|
event.preventDefault();
|
|
23265
23319
|
const previous = selectedIndex < 1 ? items.item(items.length - 1) : items.item(selectedIndex - 1);
|
|
23266
|
-
this.selectItem(previous);
|
|
23320
|
+
this.selectItem(previous, true);
|
|
23267
23321
|
return;
|
|
23268
23322
|
case "ArrowRight":
|
|
23269
23323
|
case "ArrowDown":
|
|
23270
23324
|
event.preventDefault();
|
|
23271
23325
|
const next = selectedIndex === -1 ? items.item(1) : items.item(selectedIndex + 1) || items.item(0);
|
|
23272
|
-
this.selectItem(next);
|
|
23326
|
+
this.selectItem(next, true);
|
|
23273
23327
|
return;
|
|
23274
23328
|
case " ":
|
|
23275
23329
|
event.preventDefault();
|
|
23276
|
-
this.selectItem(event.target);
|
|
23330
|
+
this.selectItem(event.target, true);
|
|
23277
23331
|
return;
|
|
23278
23332
|
default:
|
|
23279
23333
|
return;
|
|
@@ -23300,7 +23354,7 @@ class CalciteRadioGroup {
|
|
|
23300
23354
|
getItems() {
|
|
23301
23355
|
return this.el.querySelectorAll("calcite-radio-group-item");
|
|
23302
23356
|
}
|
|
23303
|
-
selectItem(selected) {
|
|
23357
|
+
selectItem(selected, emit = false) {
|
|
23304
23358
|
if (selected === this.selectedItem) {
|
|
23305
23359
|
return;
|
|
23306
23360
|
}
|
|
@@ -23314,6 +23368,9 @@ class CalciteRadioGroup {
|
|
|
23314
23368
|
item.tabIndex = matches ? 0 : -1;
|
|
23315
23369
|
if (matches) {
|
|
23316
23370
|
match = item;
|
|
23371
|
+
if (emit) {
|
|
23372
|
+
this.calciteRadioGroupChange.emit(match.value);
|
|
23373
|
+
}
|
|
23317
23374
|
}
|
|
23318
23375
|
});
|
|
23319
23376
|
this.selectedItem = match;
|
|
@@ -23460,7 +23517,7 @@ class CalciteRadioGroupItem {
|
|
|
23460
23517
|
}; }
|
|
23461
23518
|
}
|
|
23462
23519
|
|
|
23463
|
-
const TEXT$
|
|
23520
|
+
const TEXT$5 = {
|
|
23464
23521
|
rating: "Rating",
|
|
23465
23522
|
stars: "Stars: ${num}"
|
|
23466
23523
|
};
|
|
@@ -23489,11 +23546,11 @@ class CalciteRating {
|
|
|
23489
23546
|
/** Localized string for "Rating" (used for aria label)
|
|
23490
23547
|
* @default "Rating"
|
|
23491
23548
|
*/
|
|
23492
|
-
this.intlRating = TEXT$
|
|
23549
|
+
this.intlRating = TEXT$5.rating;
|
|
23493
23550
|
/** Localized string for labelling each star, `${num}` in the string will be replaced by the number
|
|
23494
23551
|
* @default "Stars: ${num}"
|
|
23495
23552
|
*/
|
|
23496
|
-
this.intlStars = TEXT$
|
|
23553
|
+
this.intlStars = TEXT$5.stars;
|
|
23497
23554
|
/**
|
|
23498
23555
|
* When true, makes the component required for form-submission.
|
|
23499
23556
|
*
|
|
@@ -23603,7 +23660,7 @@ const CSS$c = {
|
|
|
23603
23660
|
scrim: "scrim",
|
|
23604
23661
|
content: "content"
|
|
23605
23662
|
};
|
|
23606
|
-
const TEXT$
|
|
23663
|
+
const TEXT$4 = {
|
|
23607
23664
|
loading: "Loading"
|
|
23608
23665
|
};
|
|
23609
23666
|
|
|
@@ -23623,7 +23680,7 @@ class CalciteScrim {
|
|
|
23623
23680
|
/** string to override English loading text
|
|
23624
23681
|
* @default "Loading"
|
|
23625
23682
|
*/
|
|
23626
|
-
this.intlLoading = TEXT$
|
|
23683
|
+
this.intlLoading = TEXT$4.loading;
|
|
23627
23684
|
/**
|
|
23628
23685
|
* Determines if the component will have the loader overlay.
|
|
23629
23686
|
* Otherwise, will render opaque disabled state.
|
|
@@ -23776,6 +23833,7 @@ class CalciteSelect {
|
|
|
23776
23833
|
this.updateNativeElement(optionOrGroup, nativeEl);
|
|
23777
23834
|
if (isOption(optionOrGroup) && optionOrGroup.selected) {
|
|
23778
23835
|
this.deselectAllExcept(optionOrGroup);
|
|
23836
|
+
this.selectedOption = optionOrGroup;
|
|
23779
23837
|
}
|
|
23780
23838
|
}
|
|
23781
23839
|
//--------------------------------------------------------------------------
|
|
@@ -23815,7 +23873,7 @@ class CalciteSelect {
|
|
|
23815
23873
|
}
|
|
23816
23874
|
});
|
|
23817
23875
|
if (futureSelected) {
|
|
23818
|
-
|
|
23876
|
+
this.selectedOption = futureSelected;
|
|
23819
23877
|
}
|
|
23820
23878
|
}
|
|
23821
23879
|
toNativeElement(optionOrGroup) {
|
|
@@ -24047,14 +24105,18 @@ const CSS$8 = {
|
|
|
24047
24105
|
content: "content",
|
|
24048
24106
|
contentHeader: "content__header",
|
|
24049
24107
|
contentBody: "content__body",
|
|
24050
|
-
contentDetached: "content--detached"
|
|
24108
|
+
contentDetached: "content--detached",
|
|
24109
|
+
separator: "separator"
|
|
24051
24110
|
};
|
|
24052
24111
|
const SLOTS$5 = {
|
|
24053
24112
|
actionBar: "action-bar",
|
|
24054
24113
|
header: "header"
|
|
24055
24114
|
};
|
|
24115
|
+
const TEXT$3 = {
|
|
24116
|
+
resize: "Resize"
|
|
24117
|
+
};
|
|
24056
24118
|
|
|
24057
|
-
const calciteShellPanelCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-shell-panel:root{--calcite-animation-timing:300ms}/*!@.calcite-animate*/.calcite-animate.sc-calcite-shell-panel{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-shell-panel{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-shell-panel{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-shell-panel{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-shell-panel{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-shell-panel:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-shell-panel-h{display:none}/*!@:host*/.sc-calcite-shell-panel-h{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex:0 1 auto;flex:0 1 auto;--calcite-shell-panel-detached-max-height:unset}/*!@.container*/.container.sc-calcite-shell-panel{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;-ms-flex:1 1 auto;flex:1 1 auto;pointer-events:none;color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@.container **/.container.sc-calcite-shell-panel *.sc-calcite-shell-panel{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@::slotted(calcite-panel),\n::slotted(calcite-flow)*/.sc-calcite-shell-panel-s>calcite-panel,.sc-calcite-shell-panel-s>calcite-flow{-ms-flex:1 1 auto;flex:1 1 auto;height:100%;width:100%;max-height:unset;max-width:unset}/*!@::slotted(.calcite-match-height)*/.sc-calcite-shell-panel-s>.calcite-match-height{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}/*!@.content*/.content.sc-calcite-shell-panel{-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;padding:0;pointer-events:auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:var(--calcite-shell-panel-width);max-width:var(--calcite-shell-panel-max-width);min-width:var(--calcite-shell-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out;transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out}/*!@.content__header*/.content__header.sc-calcite-shell-panel{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}/*!@.content__body*/.content__body.sc-calcite-shell-panel{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;overflow:hidden}/*!@:host([width-scale=s]) .content*/[width-scale=s].sc-calcite-shell-panel-h .content.sc-calcite-shell-panel{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}/*!@:host([width-scale=m]) .content*/[width-scale=m].sc-calcite-shell-panel-h .content.sc-calcite-shell-panel{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}/*!@:host([width-scale=l]) .content*/[width-scale=l].sc-calcite-shell-panel-h .content.sc-calcite-shell-panel{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}/*!@:host([detached-height-scale=s]) .content--detached*/[detached-height-scale=s].sc-calcite-shell-panel-h .content--detached.sc-calcite-shell-panel{--calcite-shell-panel-detached-max-height:40vh}/*!@:host([detached-height-scale=m]) .content--detached*/[detached-height-scale=m].sc-calcite-shell-panel-h .content--detached.sc-calcite-shell-panel{--calcite-shell-panel-detached-max-height:60vh}/*!@:host([detached-height-scale=l]) .content--detached*/[detached-height-scale=l].sc-calcite-shell-panel-h .content--detached.sc-calcite-shell-panel{--calcite-shell-panel-detached-max-height:80vh}/*!@.content--detached*/.content--detached.sc-calcite-shell-panel{border-radius:0.25rem;-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);height:auto;overflow:hidden;margin-top:0.5rem;margin-bottom:auto;margin-left:0.5rem;margin-right:0.5rem;max-height:var(--calcite-shell-panel-detached-max-height)}/*!@.content--detached ::slotted(calcite-panel),\n.content--detached ::slotted(calcite-flow)*/.content--detached .sc-calcite-shell-panel-s>calcite-panel,.content--detached .sc-calcite-shell-panel-s>calcite-flow{max-height:unset}/*!@:host([position=start]) .content--detached ::slotted(calcite-panel),\n:host([position=start]) .content--detached ::slotted(calcite-flow),\n:host([position=end]) .content--detached ::slotted(calcite-panel),\n:host([position=end]) .content--detached ::slotted(calcite-flow)*/.sc-calcite-shell-panel-h[position=start] .content--detached .sc-calcite-shell-panel-s>calcite-panel,.sc-calcite-shell-panel-h[position=start] .content--detached .sc-calcite-shell-panel-s>calcite-flow,.sc-calcite-shell-panel-h[position=end] .content--detached .sc-calcite-shell-panel-s>calcite-panel,.sc-calcite-shell-panel-h[position=end] .content--detached .sc-calcite-shell-panel-s>calcite-flow{border-style:none}/*!@.content[hidden]*/.content[hidden].sc-calcite-shell-panel{display:none}/*!@slot[name=action-bar]::slotted(calcite-action-bar),\n.content ::slotted(calcite-flow),\n.content ::slotted(calcite-panel)*/slot[name=action-bar].sc-calcite-shell-panel-s>calcite-action-bar,.content .sc-calcite-shell-panel-s>calcite-flow,.content .sc-calcite-shell-panel-s>calcite-panel{border-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid}/*!@:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),\n:host([position=start]) .content ::slotted(calcite-flow),\n:host([position=start]) .content ::slotted(calcite-panel)*/.sc-calcite-shell-panel-h[position=start] slot[name=action-bar].sc-calcite-shell-panel-s>calcite-action-bar,.sc-calcite-shell-panel-h[position=start] .content .sc-calcite-shell-panel-s>calcite-flow,.sc-calcite-shell-panel-h[position=start] .content .sc-calcite-shell-panel-s>calcite-panel{-webkit-border-start:none;border-inline-start:none}/*!@:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),\n:host([position=end]) .content ::slotted(calcite-flow),\n:host([position=end]) .content ::slotted(calcite-panel)*/.sc-calcite-shell-panel-h[position=end] slot[name=action-bar].sc-calcite-shell-panel-s>calcite-action-bar,.sc-calcite-shell-panel-h[position=end] .content .sc-calcite-shell-panel-s>calcite-flow,.sc-calcite-shell-panel-h[position=end] .content .sc-calcite-shell-panel-s>calcite-panel{-webkit-border-end:none;border-inline-end:none}";
|
|
24119
|
+
const calciteShellPanelCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-shell-panel:root{--calcite-animation-timing:300ms}/*!@.calcite-animate*/.calcite-animate.sc-calcite-shell-panel{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-shell-panel{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-shell-panel{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-shell-panel{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-shell-panel{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-shell-panel:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-shell-panel-h{display:none}/*!@:host*/.sc-calcite-shell-panel-h{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex:0 1 auto;flex:0 1 auto;pointer-events:none;--calcite-shell-panel-detached-max-height:unset}/*!@.container*/.container.sc-calcite-shell-panel{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;-ms-flex:1 1 auto;flex:1 1 auto;pointer-events:none;color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@.container **/.container.sc-calcite-shell-panel *.sc-calcite-shell-panel{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:host(:hover) .separator:not(:hover):not(:focus),\n:host(:focus-within) .separator:not(:hover):not(:focus)*/.sc-calcite-shell-panel-h:hover .separator.sc-calcite-shell-panel:not(:hover):not(:focus),.sc-calcite-shell-panel-h:focus-within .separator.sc-calcite-shell-panel:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-ui-border-3)}/*!@.separator*/.separator.sc-calcite-shell-panel{position:absolute;background-color:transparent;bottom:0;display:-ms-flexbox;display:flex;height:100%;opacity:0;pointer-events:auto;top:0;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;width:0.125rem;z-index:10;cursor:col-resize;outline:none}/*!@.separator:hover*/.separator.sc-calcite-shell-panel:hover{opacity:1;background-color:var(--calcite-ui-border-2)}/*!@.separator:focus*/.separator.sc-calcite-shell-panel:focus{background-color:var(--calcite-ui-brand);opacity:1}/*!@:host([position=start]) .separator*/[position=start].sc-calcite-shell-panel-h .separator.sc-calcite-shell-panel{inset-inline-end:-2px}/*!@:host([position=end]) .separator*/[position=end].sc-calcite-shell-panel-h .separator.sc-calcite-shell-panel{inset-inline-start:-2px}/*!@::slotted(calcite-panel),\n::slotted(calcite-flow)*/.sc-calcite-shell-panel-s>calcite-panel,.sc-calcite-shell-panel-s>calcite-flow{-ms-flex:1 1 auto;flex:1 1 auto;height:100%;width:100%;max-height:unset;max-width:unset}/*!@::slotted(.calcite-match-height)*/.sc-calcite-shell-panel-s>.calcite-match-height{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}/*!@.content*/.content.sc-calcite-shell-panel{-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;padding:0;pointer-events:auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:var(--calcite-shell-panel-width);max-width:var(--calcite-shell-panel-max-width);min-width:var(--calcite-shell-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out;transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out}/*!@.content__header*/.content__header.sc-calcite-shell-panel{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}/*!@.content__body*/.content__body.sc-calcite-shell-panel{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;overflow:hidden}/*!@:host([width-scale=s]) .content*/[width-scale=s].sc-calcite-shell-panel-h .content.sc-calcite-shell-panel{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}/*!@:host([width-scale=m]) .content*/[width-scale=m].sc-calcite-shell-panel-h .content.sc-calcite-shell-panel{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}/*!@:host([width-scale=l]) .content*/[width-scale=l].sc-calcite-shell-panel-h .content.sc-calcite-shell-panel{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}/*!@:host([detached-height-scale=s]) .content--detached*/[detached-height-scale=s].sc-calcite-shell-panel-h .content--detached.sc-calcite-shell-panel{--calcite-shell-panel-detached-max-height:40vh}/*!@:host([detached-height-scale=m]) .content--detached*/[detached-height-scale=m].sc-calcite-shell-panel-h .content--detached.sc-calcite-shell-panel{--calcite-shell-panel-detached-max-height:60vh}/*!@:host([detached-height-scale=l]) .content--detached*/[detached-height-scale=l].sc-calcite-shell-panel-h .content--detached.sc-calcite-shell-panel{--calcite-shell-panel-detached-max-height:80vh}/*!@.content--detached*/.content--detached.sc-calcite-shell-panel{border-radius:0.25rem;-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);height:auto;overflow:hidden;margin-top:0.5rem;margin-bottom:auto;margin-left:0.5rem;margin-right:0.5rem;max-height:var(--calcite-shell-panel-detached-max-height)}/*!@.content--detached ::slotted(calcite-panel),\n.content--detached ::slotted(calcite-flow)*/.content--detached .sc-calcite-shell-panel-s>calcite-panel,.content--detached .sc-calcite-shell-panel-s>calcite-flow{max-height:unset}/*!@:host([position=start]) .content--detached ::slotted(calcite-panel),\n:host([position=start]) .content--detached ::slotted(calcite-flow),\n:host([position=end]) .content--detached ::slotted(calcite-panel),\n:host([position=end]) .content--detached ::slotted(calcite-flow)*/.sc-calcite-shell-panel-h[position=start] .content--detached .sc-calcite-shell-panel-s>calcite-panel,.sc-calcite-shell-panel-h[position=start] .content--detached .sc-calcite-shell-panel-s>calcite-flow,.sc-calcite-shell-panel-h[position=end] .content--detached .sc-calcite-shell-panel-s>calcite-panel,.sc-calcite-shell-panel-h[position=end] .content--detached .sc-calcite-shell-panel-s>calcite-flow{border-style:none}/*!@.content[hidden]*/.content[hidden].sc-calcite-shell-panel{display:none}/*!@slot[name=action-bar]::slotted(calcite-action-bar),\n.content ::slotted(calcite-flow),\n.content ::slotted(calcite-panel)*/slot[name=action-bar].sc-calcite-shell-panel-s>calcite-action-bar,.content .sc-calcite-shell-panel-s>calcite-flow,.content .sc-calcite-shell-panel-s>calcite-panel{border-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid}/*!@:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),\n:host([position=start]) .content ::slotted(calcite-flow),\n:host([position=start]) .content ::slotted(calcite-panel)*/.sc-calcite-shell-panel-h[position=start] slot[name=action-bar].sc-calcite-shell-panel-s>calcite-action-bar,.sc-calcite-shell-panel-h[position=start] .content .sc-calcite-shell-panel-s>calcite-flow,.sc-calcite-shell-panel-h[position=start] .content .sc-calcite-shell-panel-s>calcite-panel{-webkit-border-start:none;border-inline-start:none}/*!@:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),\n:host([position=end]) .content ::slotted(calcite-flow),\n:host([position=end]) .content ::slotted(calcite-panel)*/.sc-calcite-shell-panel-h[position=end] slot[name=action-bar].sc-calcite-shell-panel-s>calcite-action-bar,.sc-calcite-shell-panel-h[position=end] .content .sc-calcite-shell-panel-s>calcite-flow,.sc-calcite-shell-panel-h[position=end] .content .sc-calcite-shell-panel-s>calcite-panel{-webkit-border-end:none;border-inline-end:none}";
|
|
24058
24120
|
|
|
24059
24121
|
/**
|
|
24060
24122
|
* @slot - A slot for adding content to the shell panel.
|
|
@@ -24085,10 +24147,130 @@ class CalciteShellPanel {
|
|
|
24085
24147
|
* This sets width of the content area.
|
|
24086
24148
|
*/
|
|
24087
24149
|
this.widthScale = "m";
|
|
24150
|
+
/**
|
|
24151
|
+
* Accessible label for resize separator.
|
|
24152
|
+
* @default "Resize"
|
|
24153
|
+
*/
|
|
24154
|
+
this.intlResize = TEXT$3.resize;
|
|
24155
|
+
/**
|
|
24156
|
+
* This property makes the content area resizable if the calcite-shell-panel is not 'detached'.
|
|
24157
|
+
*/
|
|
24158
|
+
this.resizable = false;
|
|
24159
|
+
this.contentWidth = null;
|
|
24160
|
+
this.initialContentWidth = null;
|
|
24161
|
+
this.initialClientX = null;
|
|
24162
|
+
this.contentWidthMax = null;
|
|
24163
|
+
this.contentWidthMin = null;
|
|
24164
|
+
this.step = 1;
|
|
24165
|
+
this.stepMultiplier = 10;
|
|
24166
|
+
this.storeContentEl = (contentEl) => {
|
|
24167
|
+
this.contentEl = contentEl;
|
|
24168
|
+
};
|
|
24169
|
+
this.getKeyAdjustedWidth = (event) => {
|
|
24170
|
+
const { key } = event;
|
|
24171
|
+
const { el, step, stepMultiplier, contentWidthMin, contentWidthMax, initialContentWidth, position } = this;
|
|
24172
|
+
const multipliedStep = step * stepMultiplier;
|
|
24173
|
+
const MOVEMENT_KEYS = [
|
|
24174
|
+
"ArrowUp",
|
|
24175
|
+
"ArrowDown",
|
|
24176
|
+
"ArrowLeft",
|
|
24177
|
+
"ArrowRight",
|
|
24178
|
+
"Home",
|
|
24179
|
+
"End",
|
|
24180
|
+
"PageUp",
|
|
24181
|
+
"PageDown"
|
|
24182
|
+
];
|
|
24183
|
+
if (MOVEMENT_KEYS.indexOf(key) > -1) {
|
|
24184
|
+
event.preventDefault();
|
|
24185
|
+
}
|
|
24186
|
+
const dir = getElementStyleDir(el);
|
|
24187
|
+
const directionKeys = ["ArrowLeft", "ArrowRight"];
|
|
24188
|
+
const directionFactor = dir === "rtl" && directionKeys.includes(key) ? -1 : 1;
|
|
24189
|
+
const increaseKeys = key === "ArrowUp" ||
|
|
24190
|
+
(position === "end" ? key === directionKeys[0] : key === directionKeys[1]);
|
|
24191
|
+
if (increaseKeys) {
|
|
24192
|
+
const stepValue = event.shiftKey ? multipliedStep : step;
|
|
24193
|
+
return initialContentWidth + directionFactor * stepValue;
|
|
24194
|
+
}
|
|
24195
|
+
const decreaseKeys = key === "ArrowDown" ||
|
|
24196
|
+
(position === "end" ? key === directionKeys[1] : key === directionKeys[0]);
|
|
24197
|
+
if (decreaseKeys) {
|
|
24198
|
+
const stepValue = event.shiftKey ? multipliedStep : step;
|
|
24199
|
+
return initialContentWidth - directionFactor * stepValue;
|
|
24200
|
+
}
|
|
24201
|
+
if (typeof contentWidthMin === "number" && key === "Home") {
|
|
24202
|
+
return contentWidthMin;
|
|
24203
|
+
}
|
|
24204
|
+
if (typeof contentWidthMax === "number" && key === "End") {
|
|
24205
|
+
return contentWidthMax;
|
|
24206
|
+
}
|
|
24207
|
+
if (key === "PageDown") {
|
|
24208
|
+
return initialContentWidth - multipliedStep;
|
|
24209
|
+
}
|
|
24210
|
+
if (key === "PageUp") {
|
|
24211
|
+
return initialContentWidth + multipliedStep;
|
|
24212
|
+
}
|
|
24213
|
+
return null;
|
|
24214
|
+
};
|
|
24215
|
+
this.separatorKeyDown = (event) => {
|
|
24216
|
+
this.setInitialContentWidth();
|
|
24217
|
+
const width = this.getKeyAdjustedWidth(event);
|
|
24218
|
+
if (typeof width === "number") {
|
|
24219
|
+
this.setContentWidth(width);
|
|
24220
|
+
}
|
|
24221
|
+
};
|
|
24222
|
+
this.separatorPointerMove = (event) => {
|
|
24223
|
+
event.preventDefault();
|
|
24224
|
+
const { el, initialContentWidth, position, initialClientX } = this;
|
|
24225
|
+
const offset = event.clientX - initialClientX;
|
|
24226
|
+
const dir = getElementStyleDir(el);
|
|
24227
|
+
const adjustmentDirection = dir === "rtl" ? -1 : 1;
|
|
24228
|
+
const adjustedOffset = position === "end" ? -adjustmentDirection * offset : adjustmentDirection * offset;
|
|
24229
|
+
const width = initialContentWidth + adjustedOffset;
|
|
24230
|
+
this.setContentWidth(width);
|
|
24231
|
+
};
|
|
24232
|
+
this.separatorPointerUp = (event) => {
|
|
24233
|
+
event.preventDefault();
|
|
24234
|
+
document.removeEventListener("pointerup", this.separatorPointerUp);
|
|
24235
|
+
document.removeEventListener("pointermove", this.separatorPointerMove);
|
|
24236
|
+
};
|
|
24237
|
+
this.setInitialContentWidth = () => {
|
|
24238
|
+
var _a;
|
|
24239
|
+
this.initialContentWidth = (_a = this.contentEl) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width;
|
|
24240
|
+
};
|
|
24241
|
+
this.separatorPointerDown = (event) => {
|
|
24242
|
+
event.preventDefault();
|
|
24243
|
+
const { separatorEl } = this;
|
|
24244
|
+
separatorEl && document.activeElement !== separatorEl && separatorEl.focus();
|
|
24245
|
+
this.setInitialContentWidth();
|
|
24246
|
+
this.initialClientX = event.clientX;
|
|
24247
|
+
document.addEventListener("pointerup", this.separatorPointerUp);
|
|
24248
|
+
document.addEventListener("pointermove", this.separatorPointerMove);
|
|
24249
|
+
};
|
|
24250
|
+
this.connectSeparator = (separatorEl) => {
|
|
24251
|
+
this.disconnectSeparator();
|
|
24252
|
+
this.separatorEl = separatorEl;
|
|
24253
|
+
separatorEl.addEventListener("pointerdown", this.separatorPointerDown);
|
|
24254
|
+
};
|
|
24255
|
+
this.disconnectSeparator = () => {
|
|
24256
|
+
var _a;
|
|
24257
|
+
(_a = this.separatorEl) === null || _a === void 0 ? void 0 : _a.removeEventListener("pointerdown", this.separatorPointerDown);
|
|
24258
|
+
};
|
|
24088
24259
|
}
|
|
24089
24260
|
watchHandler() {
|
|
24090
24261
|
this.calciteShellPanelToggle.emit();
|
|
24091
24262
|
}
|
|
24263
|
+
//--------------------------------------------------------------------------
|
|
24264
|
+
//
|
|
24265
|
+
// Lifecycle
|
|
24266
|
+
//
|
|
24267
|
+
//--------------------------------------------------------------------------
|
|
24268
|
+
disconnectedCallback() {
|
|
24269
|
+
this.disconnectSeparator();
|
|
24270
|
+
}
|
|
24271
|
+
componentDidLoad() {
|
|
24272
|
+
this.updateAriaValues();
|
|
24273
|
+
}
|
|
24092
24274
|
// --------------------------------------------------------------------------
|
|
24093
24275
|
//
|
|
24094
24276
|
// Render Methods
|
|
@@ -24100,15 +24282,50 @@ class CalciteShellPanel {
|
|
|
24100
24282
|
return hasHeader ? (hAsync("div", { class: CSS$8.contentHeader }, hAsync("slot", { name: SLOTS$5.header }))) : null;
|
|
24101
24283
|
}
|
|
24102
24284
|
render() {
|
|
24103
|
-
const { collapsed, detached, position } = this;
|
|
24104
|
-
const
|
|
24285
|
+
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
24286
|
+
const allowResizing = !detached && resizable;
|
|
24287
|
+
const contentNode = (hAsync("div", { class: { [CSS$8.content]: true, [CSS$8.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), hAsync("div", { class: CSS$8.contentBody }, hAsync("slot", null))));
|
|
24288
|
+
const separatorNode = allowResizing ? (hAsync("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$8.separator, onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
24105
24289
|
const actionBarNode = hAsync("slot", { name: SLOTS$5.actionBar });
|
|
24106
|
-
const mainNodes = [actionBarNode, contentNode];
|
|
24290
|
+
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
24107
24291
|
if (position === "end") {
|
|
24108
24292
|
mainNodes.reverse();
|
|
24109
24293
|
}
|
|
24110
24294
|
return hAsync("div", { class: { [CSS$8.container]: true } }, mainNodes);
|
|
24111
24295
|
}
|
|
24296
|
+
// --------------------------------------------------------------------------
|
|
24297
|
+
//
|
|
24298
|
+
// private Methods
|
|
24299
|
+
//
|
|
24300
|
+
// --------------------------------------------------------------------------
|
|
24301
|
+
setContentWidth(width) {
|
|
24302
|
+
const { contentWidthMax, contentWidthMin } = this;
|
|
24303
|
+
const roundedWidth = Math.round(width);
|
|
24304
|
+
this.contentWidth =
|
|
24305
|
+
typeof contentWidthMax === "number" && typeof contentWidthMin === "number"
|
|
24306
|
+
? clamp(roundedWidth, contentWidthMin, contentWidthMax)
|
|
24307
|
+
: roundedWidth;
|
|
24308
|
+
}
|
|
24309
|
+
updateAriaValues() {
|
|
24310
|
+
const { contentEl } = this;
|
|
24311
|
+
const computedStyle = contentEl && getComputedStyle(contentEl);
|
|
24312
|
+
if (!computedStyle) {
|
|
24313
|
+
return;
|
|
24314
|
+
}
|
|
24315
|
+
const max = parseInt(computedStyle.getPropertyValue("max-width"), 10);
|
|
24316
|
+
const min = parseInt(computedStyle.getPropertyValue("min-width"), 10);
|
|
24317
|
+
const valueNow = parseInt(computedStyle.getPropertyValue("width"), 10);
|
|
24318
|
+
if (typeof valueNow === "number" && !isNaN(valueNow)) {
|
|
24319
|
+
this.initialContentWidth = valueNow;
|
|
24320
|
+
}
|
|
24321
|
+
if (typeof max === "number" && !isNaN(max)) {
|
|
24322
|
+
this.contentWidthMax = max;
|
|
24323
|
+
}
|
|
24324
|
+
if (typeof min === "number" && !isNaN(min)) {
|
|
24325
|
+
this.contentWidthMin = min;
|
|
24326
|
+
}
|
|
24327
|
+
forceUpdate$1(this);
|
|
24328
|
+
}
|
|
24112
24329
|
get el() { return getElement(this); }
|
|
24113
24330
|
static get watchers() { return {
|
|
24114
24331
|
"collapsed": ["watchHandler"]
|
|
@@ -24122,11 +24339,14 @@ class CalciteShellPanel {
|
|
|
24122
24339
|
"detached": [516],
|
|
24123
24340
|
"detachedHeightScale": [513, "detached-height-scale"],
|
|
24124
24341
|
"widthScale": [513, "width-scale"],
|
|
24125
|
-
"position": [513]
|
|
24342
|
+
"position": [513],
|
|
24343
|
+
"intlResize": [1, "intl-resize"],
|
|
24344
|
+
"resizable": [516],
|
|
24345
|
+
"contentWidth": [32]
|
|
24126
24346
|
},
|
|
24127
24347
|
"$listeners$": undefined,
|
|
24128
24348
|
"$lazyBundleId$": "-",
|
|
24129
|
-
"$attrsToReflect$": [["collapsed", "collapsed"], ["detached", "detached"], ["detachedHeightScale", "detached-height-scale"], ["widthScale", "width-scale"], ["position", "position"]]
|
|
24349
|
+
"$attrsToReflect$": [["collapsed", "collapsed"], ["detached", "detached"], ["detachedHeightScale", "detached-height-scale"], ["widthScale", "width-scale"], ["position", "position"], ["resizable", "resizable"]]
|
|
24130
24350
|
}; }
|
|
24131
24351
|
}
|
|
24132
24352
|
|
|
@@ -28084,6 +28304,8 @@ class CalciteSplitButton {
|
|
|
28084
28304
|
/** optionally add a calcite-loader component to the control,
|
|
28085
28305
|
disabling interaction. with the primary button */
|
|
28086
28306
|
this.loading = false;
|
|
28307
|
+
/** Describes the type of positioning to use for the dropdown. If your element is in a fixed container, use the 'fixed' value. */
|
|
28308
|
+
this.overlayPositioning = "absolute";
|
|
28087
28309
|
/** specify the scale of the control, defaults to m */
|
|
28088
28310
|
this.scale = "m";
|
|
28089
28311
|
/** specify the width of the button, defaults to auto */
|
|
@@ -28100,7 +28322,7 @@ class CalciteSplitButton {
|
|
|
28100
28322
|
[CSS$6.widthFull]: this.width === "full"
|
|
28101
28323
|
};
|
|
28102
28324
|
const buttonWidth = this.width === "auto" ? "auto" : "full";
|
|
28103
|
-
return (hAsync("div", { class: widthClasses, dir: dir }, hAsync("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), hAsync("div", { class: CSS$6.dividerContainer }, hAsync("div", { class: CSS$6.divider })), hAsync("calcite-dropdown", { active: this.active, dir: dir, onClick: this.calciteSplitButtonSecondaryClickHandler, placement: "bottom-trailing", scale: this.scale, width: this.scale }, hAsync("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" }), hAsync("slot", null))));
|
|
28325
|
+
return (hAsync("div", { class: widthClasses, dir: dir }, hAsync("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), hAsync("div", { class: CSS$6.dividerContainer }, hAsync("div", { class: CSS$6.divider })), hAsync("calcite-dropdown", { active: this.active, dir: dir, onClick: this.calciteSplitButtonSecondaryClickHandler, overlayPositioning: this.overlayPositioning, placement: "bottom-trailing", scale: this.scale, width: this.scale }, hAsync("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" }), hAsync("slot", null))));
|
|
28104
28326
|
}
|
|
28105
28327
|
get dropdownIcon() {
|
|
28106
28328
|
return this.dropdownIconType === "chevron"
|
|
@@ -28124,6 +28346,7 @@ class CalciteSplitButton {
|
|
|
28124
28346
|
"dropdownIconType": [513, "dropdown-icon-type"],
|
|
28125
28347
|
"dropdownLabel": [513, "dropdown-label"],
|
|
28126
28348
|
"loading": [516],
|
|
28349
|
+
"overlayPositioning": [1, "overlay-positioning"],
|
|
28127
28350
|
"primaryIconEnd": [513, "primary-icon-end"],
|
|
28128
28351
|
"primaryIconFlipRtl": [513, "primary-icon-flip-rtl"],
|
|
28129
28352
|
"primaryIconStart": [513, "primary-icon-start"],
|
|
@@ -28859,7 +29082,7 @@ class CalciteTabNav {
|
|
|
28859
29082
|
}
|
|
28860
29083
|
}
|
|
28861
29084
|
render() {
|
|
28862
|
-
const dir =
|
|
29085
|
+
const dir = getElementStyleDir(this.el);
|
|
28863
29086
|
const width = `${this.indicatorWidth}px`;
|
|
28864
29087
|
const offset = `${this.indicatorOffset}px`;
|
|
28865
29088
|
const indicatorStyle = dir !== "rtl" ? { width, left: offset } : { width, right: offset };
|
|
@@ -28916,7 +29139,7 @@ class CalciteTabNav {
|
|
|
28916
29139
|
}
|
|
28917
29140
|
updateOffsetPosition() {
|
|
28918
29141
|
var _a, _b, _c, _d, _e;
|
|
28919
|
-
const dir =
|
|
29142
|
+
const dir = getElementStyleDir(this.el);
|
|
28920
29143
|
const navWidth = (_a = this.activeIndicatorContainerEl) === null || _a === void 0 ? void 0 : _a.offsetWidth;
|
|
28921
29144
|
const tabLeft = (_b = this.selectedTabEl) === null || _b === void 0 ? void 0 : _b.offsetLeft;
|
|
28922
29145
|
const tabWidth = (_c = this.selectedTabEl) === null || _c === void 0 ? void 0 : _c.offsetWidth;
|
|
@@ -29093,7 +29316,7 @@ class CalciteTabTitle {
|
|
|
29093
29316
|
e.preventDefault();
|
|
29094
29317
|
break;
|
|
29095
29318
|
case "ArrowRight":
|
|
29096
|
-
if (
|
|
29319
|
+
if (getElementStyleDir(this.el) === "ltr") {
|
|
29097
29320
|
this.calciteTabsFocusNext.emit();
|
|
29098
29321
|
}
|
|
29099
29322
|
else {
|
|
@@ -29101,7 +29324,7 @@ class CalciteTabTitle {
|
|
|
29101
29324
|
}
|
|
29102
29325
|
break;
|
|
29103
29326
|
case "ArrowLeft":
|
|
29104
|
-
if (
|
|
29327
|
+
if (getElementStyleDir(this.el) === "ltr") {
|
|
29105
29328
|
this.calciteTabsFocusPrevious.emit();
|
|
29106
29329
|
}
|
|
29107
29330
|
else {
|
|
@@ -30566,7 +30789,7 @@ class CalciteTipManager {
|
|
|
30566
30789
|
//
|
|
30567
30790
|
// --------------------------------------------------------------------------
|
|
30568
30791
|
renderPagination() {
|
|
30569
|
-
const dir =
|
|
30792
|
+
const dir = getElementStyleDir(this.el);
|
|
30570
30793
|
const { selectedIndex, tips, total, intlNext, intlPrevious, intlPaginationLabel } = this;
|
|
30571
30794
|
const nextLabel = intlNext || TEXT$1.next;
|
|
30572
30795
|
const previousLabel = intlPrevious || TEXT$1.previous;
|