@esri/calcite-components 1.0.0-next.342 → 1.0.0-next.346
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/explore16.json +1 -0
- package/dist/calcite/assets/calcite-icon/explore24.json +1 -0
- package/dist/calcite/assets/calcite-icon/explore32.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloudy16.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloudy24.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloudy32.json +1 -0
- package/dist/calcite/assets/calcite-icon/screenshotMode16.json +1 -0
- package/dist/calcite/assets/calcite-icon/screenshotMode24.json +1 -0
- package/dist/calcite/assets/calcite-icon/screenshotMode32.json +1 -0
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/{p-3ba581cf.entry.js → p-0071ba5b.entry.js} +1 -1
- package/dist/calcite/p-019c7493.js +5 -0
- package/dist/calcite/{p-42f853ae.system.entry.js → p-026a5468.system.entry.js} +1 -1
- package/dist/calcite/{p-d4561697.system.entry.js → p-0a68440b.system.entry.js} +1 -1
- package/dist/calcite/{p-bf38d77d.system.entry.js → p-0b71f281.system.entry.js} +1 -1
- package/dist/calcite/{p-7cf59f80.system.entry.js → p-0eb365bc.system.entry.js} +1 -1
- package/dist/calcite/{p-1cbe69ff.system.entry.js → p-0fb7d7ec.system.entry.js} +1 -1
- package/dist/calcite/{p-11b4f866.system.entry.js → p-1032abdf.system.entry.js} +1 -1
- package/dist/calcite/{p-4e9d072a.system.js → p-11b9e4bb.system.js} +1 -1
- package/dist/calcite/{p-4639388a.system.entry.js → p-11e27712.system.entry.js} +1 -1
- package/dist/calcite/{p-6d8a5959.entry.js → p-14c32017.entry.js} +1 -1
- package/dist/calcite/p-18c4af8f.system.js +5 -0
- package/dist/calcite/p-18d9a261.system.js +1 -1
- package/dist/calcite/{p-2c6e9854.entry.js → p-1919f0e7.entry.js} +1 -1
- package/dist/calcite/{p-5c6f2de9.system.entry.js → p-196f7f73.system.entry.js} +1 -1
- package/dist/calcite/{p-ce704ece.js → p-1a378fd0.js} +1 -1
- package/dist/calcite/{p-b311fec9.entry.js → p-1bfae224.entry.js} +1 -1
- package/dist/calcite/{p-be589623.system.entry.js → p-1c54ee99.system.entry.js} +1 -1
- package/dist/calcite/{p-f3ec6f2c.entry.js → p-23659611.entry.js} +1 -1
- package/dist/calcite/{p-0c9ea65a.entry.js → p-27537d30.entry.js} +1 -1
- package/dist/calcite/{p-0f2b51bf.system.js → p-28d866ec.system.js} +1 -1
- package/dist/calcite/{p-4bedcfdd.system.entry.js → p-2ac714c0.system.entry.js} +1 -1
- package/dist/calcite/{p-28729351.entry.js → p-2c3944b7.entry.js} +1 -1
- package/dist/calcite/{p-130b7a05.system.entry.js → p-2c6eb09e.system.entry.js} +1 -1
- package/dist/calcite/{p-456fc41f.system.entry.js → p-3323412f.system.entry.js} +1 -1
- package/dist/calcite/{p-cac9db7d.entry.js → p-34093e68.entry.js} +1 -1
- package/dist/calcite/{p-9d0b76a0.system.entry.js → p-3866cc08.system.entry.js} +1 -1
- package/dist/calcite/{p-0ea8bce1.system.entry.js → p-3a66acfc.system.entry.js} +1 -1
- package/dist/calcite/{p-65c6c5a7.entry.js → p-3c3fc397.entry.js} +1 -1
- package/dist/calcite/{p-523bc291.system.js → p-3edc47cf.system.js} +1 -1
- package/dist/calcite/{p-8dbafcac.system.entry.js → p-4056b8f5.system.entry.js} +1 -1
- package/dist/calcite/{p-0229a408.js → p-41c6aa44.js} +1 -1
- package/dist/calcite/{p-a4762e4a.system.entry.js → p-41dbbb2e.system.entry.js} +1 -1
- package/dist/calcite/{p-eae4d478.entry.js → p-438ab0b5.entry.js} +1 -1
- package/dist/calcite/p-49ddb3bd.js +5 -0
- package/dist/calcite/{p-fc9ea70f.system.entry.js → p-5252b2a0.system.entry.js} +1 -1
- package/dist/calcite/{p-d3bd900e.js → p-52966b4c.js} +1 -1
- package/dist/calcite/{p-7fbab7bb.entry.js → p-5465d382.entry.js} +1 -1
- package/dist/calcite/p-5479a05d.entry.js +5 -0
- package/dist/calcite/{p-e01985ce.system.entry.js → p-5517cd43.system.entry.js} +1 -1
- package/dist/calcite/{p-7677d70d.entry.js → p-57ac802c.entry.js} +1 -1
- package/dist/calcite/{p-14744d7b.system.entry.js → p-58f7c4e7.system.entry.js} +2 -2
- package/dist/calcite/{p-ac03fd82.system.entry.js → p-5a3da753.system.entry.js} +1 -1
- package/dist/calcite/{p-16f89a95.entry.js → p-5b71fd3d.entry.js} +1 -1
- package/dist/calcite/p-5baa2d34.entry.js +5 -0
- package/dist/calcite/{p-cc247988.entry.js → p-5d156676.entry.js} +1 -1
- package/dist/calcite/p-5e4b6b1b.system.entry.js +5 -0
- package/dist/calcite/{p-c34c4414.system.js → p-5f358f82.system.js} +1 -1
- package/dist/calcite/{p-8554d028.system.entry.js → p-605f9465.system.entry.js} +1 -1
- package/dist/calcite/{p-33fa07ab.system.entry.js → p-60a4c623.system.entry.js} +1 -1
- package/dist/calcite/{p-07779a47.entry.js → p-627a5f7b.entry.js} +1 -1
- package/dist/calcite/{p-82d19468.entry.js → p-6394f74a.entry.js} +1 -1
- package/dist/calcite/{p-809eed64.system.entry.js → p-648a23bf.system.entry.js} +1 -1
- package/dist/calcite/{p-35a5c74c.system.js → p-6555a956.system.js} +1 -1
- package/dist/calcite/{p-d30dc8bd.entry.js → p-66204690.entry.js} +1 -1
- package/dist/calcite/{p-c1912740.system.entry.js → p-6648629d.system.entry.js} +1 -1
- package/dist/calcite/{p-1705739f.system.entry.js → p-6c8478b9.system.entry.js} +2 -2
- package/dist/calcite/{p-c4b4312c.entry.js → p-6de70221.entry.js} +1 -1
- package/dist/calcite/{p-e942dcc6.entry.js → p-6e31cbff.entry.js} +1 -1
- package/dist/calcite/{p-1ce0c26a.entry.js → p-7050bfd3.entry.js} +1 -1
- package/dist/calcite/{p-496a04e4.system.entry.js → p-7a49f97c.system.entry.js} +1 -1
- package/dist/calcite/{p-be7b205c.entry.js → p-7a9ea862.entry.js} +1 -1
- package/dist/calcite/{p-4f7ebefc.system.js → p-834ec82a.system.js} +1 -1
- package/dist/calcite/{p-e7f7b0f8.js → p-8396a2d2.js} +1 -1
- package/dist/calcite/{p-b5cab90f.entry.js → p-853bd81e.entry.js} +1 -1
- package/dist/calcite/{p-6e94b4ef.system.entry.js → p-8a406f82.system.entry.js} +1 -1
- package/dist/calcite/{p-6d42cf99.system.entry.js → p-8ba1b621.system.entry.js} +1 -1
- package/dist/calcite/{p-12a3d7b1.entry.js → p-8c3c5914.entry.js} +1 -1
- package/dist/calcite/{p-ec216f50.entry.js → p-8e2aea68.entry.js} +1 -1
- package/dist/calcite/{p-8ebc2d51.entry.js → p-8f32e98b.entry.js} +1 -1
- package/dist/calcite/{p-5c141491.entry.js → p-909a04c6.entry.js} +1 -1
- package/dist/calcite/p-91300144.js +5 -0
- package/dist/calcite/p-917ab4fb.entry.js +5 -0
- package/dist/calcite/p-947a15ea.system.js +5 -0
- package/dist/calcite/p-98efa8d1.system.entry.js +5 -0
- package/dist/calcite/{p-92dea7f7.entry.js → p-9a360708.entry.js} +1 -1
- package/dist/calcite/{p-86e37e14.system.js → p-9c571107.system.js} +1 -1
- package/dist/calcite/{p-1751551d.entry.js → p-9d6da675.entry.js} +1 -1
- package/dist/calcite/{p-3dae9da3.js → p-a19740a1.js} +1 -1
- package/dist/calcite/{p-73dad5ab.system.entry.js → p-a2315ee0.system.entry.js} +1 -1
- package/dist/calcite/{p-42814ab6.system.entry.js → p-a5e39e25.system.entry.js} +1 -1
- package/dist/calcite/{p-5c606052.system.entry.js → p-a7634adb.system.entry.js} +2 -2
- package/dist/calcite/{p-b3109189.system.entry.js → p-ac1e4091.system.entry.js} +1 -1
- package/dist/calcite/p-b05fbc28.entry.js +5 -0
- package/dist/calcite/{p-54d12b6f.entry.js → p-b45576da.entry.js} +1 -1
- package/dist/calcite/{p-e7577455.entry.js → p-b582fe81.entry.js} +1 -1
- package/dist/calcite/{p-ff623944.entry.js → p-b5da7d26.entry.js} +1 -1
- package/dist/calcite/{p-3e646c9b.js → p-b9985a8f.js} +1 -1
- package/dist/calcite/{p-985ac8a8.system.entry.js → p-c0f8e35a.system.entry.js} +1 -1
- package/dist/calcite/{p-0bb004b7.entry.js → p-c4c35d1b.entry.js} +1 -1
- package/dist/calcite/{p-e97696ee.system.entry.js → p-c80baf28.system.entry.js} +1 -1
- package/dist/calcite/{p-9180be05.system.entry.js → p-d1db78e7.system.entry.js} +1 -1
- package/dist/calcite/{p-1749e1a2.system.entry.js → p-d47c61ac.system.entry.js} +2 -2
- package/dist/calcite/{p-899920c9.entry.js → p-d650ec75.entry.js} +1 -1
- package/dist/calcite/{p-62e9b8a4.system.entry.js → p-d73fdd7f.system.entry.js} +1 -1
- package/dist/calcite/{p-fbcf0cdb.system.entry.js → p-da170a90.system.entry.js} +1 -1
- package/dist/calcite/{p-6691b847.system.entry.js → p-da7e1200.system.entry.js} +1 -1
- package/dist/calcite/{p-ee5aabd7.entry.js → p-dad53db1.entry.js} +1 -1
- package/dist/calcite/p-df9409db.entry.js +5 -0
- package/dist/calcite/p-e33346fd.system.entry.js +5 -0
- package/dist/calcite/{p-ee7ba765.entry.js → p-e5c97fcc.entry.js} +1 -1
- package/dist/calcite/{p-51819373.entry.js → p-e6e288cb.entry.js} +1 -1
- package/dist/calcite/p-ea59c57b.entry.js +5 -0
- package/dist/calcite/{p-e311dc47.entry.js → p-eba55232.entry.js} +1 -1
- package/dist/calcite/{p-9ee56933.entry.js → p-ee7cd75e.entry.js} +1 -1
- package/dist/calcite/{p-5a6ad843.system.entry.js → p-f39af806.system.entry.js} +2 -2
- package/dist/calcite/{p-15c5e94c.system.entry.js → p-f70d136e.system.entry.js} +1 -1
- package/dist/calcite/{p-1acfcee4.entry.js → p-f74583ec.entry.js} +1 -1
- package/dist/calcite/{p-109fdcb4.system.entry.js → p-f932a63e.system.entry.js} +1 -1
- package/dist/cjs/{CalciteExpandToggle-d654421a.js → CalciteExpandToggle-252bab6d.js} +1 -1
- 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 +1 -1
- package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
- package/dist/cjs/calcite-block_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-button.cjs.entry.js +2 -2
- package/dist/cjs/calcite-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/calcite-chip.cjs.entry.js +1 -1
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +4 -4
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +2 -2
- 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 +7 -7
- package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input.cjs.entry.js +13 -12
- 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 +1 -1
- package/dist/cjs/calcite-notice.cjs.entry.js +1 -1
- package/dist/cjs/calcite-option_3.cjs.entry.js +3 -3
- package/dist/cjs/calcite-panel.cjs.entry.js +1 -1
- 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-button.cjs.entry.js +20 -9
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +3 -48
- package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
- package/dist/cjs/calcite-shell_3.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +37 -2
- package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tip_3.cjs.entry.js +1 -1
- 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/{dom-19822169.js → dom-5a52b331.js} +2 -1
- package/dist/cjs/{form-a5b44a1f.js → form-4f471f99.js} +1 -1
- package/dist/cjs/{label-8e3552b2.js → label-4c5b7b91.js} +1 -1
- package/dist/cjs/{locale-33c458dc.js → locale-ccfa66f6.js} +1 -1
- package/dist/cjs/{number-73f7b474.js → number-f57fd111.js} +13 -6
- package/dist/cjs/{popper-a7580aca.js → popper-864013e4.js} +1 -1
- package/dist/cjs/{resources-27b28faa.js → resources-7b91cec8.js} +1 -1
- package/dist/cjs/{resources-16974e48.js → resources-d3c42dc4.js} +1 -1
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +1 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/explore16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/explore24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/explore32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode32.json +1 -0
- package/dist/collection/components/calcite-input/calcite-input.js +8 -7
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +4 -4
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +16 -5
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +0 -45
- package/dist/collection/components/calcite-tile/calcite-tile.css +37 -49
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.css +50 -70
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +21 -2
- package/dist/collection/components/calcite-tile-select/resources.js +20 -0
- package/dist/collection/utils/dom.js +2 -1
- package/dist/collection/utils/number.js +13 -6
- package/dist/components/calcite-checkbox2.js +1 -1
- package/dist/components/calcite-input2.js +8 -7
- package/dist/components/calcite-radio-button.js +17 -6
- package/dist/components/calcite-radio-group-item.js +0 -45
- package/dist/components/calcite-tile-select.js +37 -2
- package/dist/components/calcite-tile2.js +1 -1
- package/dist/components/dom.js +2 -1
- package/dist/components/number.js +13 -6
- package/dist/custom-elements/index.js +334 -323
- package/dist/esm/{CalciteExpandToggle-c33bd6fd.js → CalciteExpandToggle-b6fabbc2.js} +1 -1
- 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 +1 -1
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block_2.entry.js +1 -1
- package/dist/esm/calcite-button.entry.js +2 -2
- package/dist/esm/calcite-checkbox.entry.js +4 -4
- package/dist/esm/calcite-chip.entry.js +1 -1
- package/dist/esm/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm/calcite-combobox_3.entry.js +4 -4
- package/dist/esm/calcite-date-picker_4.entry.js +4 -4
- package/dist/esm/calcite-dropdown_3.entry.js +2 -2
- 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 +7 -7
- package/dist/esm/calcite-input-message.entry.js +1 -1
- package/dist/esm/calcite-input-time-picker_2.entry.js +4 -4
- package/dist/esm/calcite-input.entry.js +13 -12
- 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 +1 -1
- package/dist/esm/calcite-notice.entry.js +1 -1
- package/dist/esm/calcite-option_3.entry.js +3 -3
- package/dist/esm/calcite-panel.entry.js +1 -1
- 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-button.entry.js +20 -9
- package/dist/esm/calcite-radio-group_2.entry.js +3 -48
- package/dist/esm/calcite-rating.entry.js +3 -3
- package/dist/esm/calcite-shell_3.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/calcite-tile-select_2.entry.js +37 -2
- package/dist/esm/calcite-tile.entry.js +2 -2
- package/dist/esm/calcite-tip_3.entry.js +1 -1
- 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/{dom-f24e866c.js → dom-70477ebc.js} +2 -1
- package/dist/esm/{form-160b0fb5.js → form-4b3c1995.js} +1 -1
- package/dist/esm/{label-5559055d.js → label-905e5ef8.js} +1 -1
- package/dist/esm/{locale-4c38cf6d.js → locale-86b789f9.js} +1 -1
- package/dist/esm/{number-06e8500e.js → number-eb92427e.js} +13 -6
- package/dist/esm/{popper-f5caedc4.js → popper-ba525bde.js} +1 -1
- package/dist/esm/{resources-b4eee1d4.js → resources-421133b2.js} +1 -1
- package/dist/esm/{resources-7501cc74.js → resources-c1b6ebde.js} +1 -1
- package/dist/esm-es5/{CalciteExpandToggle-c33bd6fd.js → CalciteExpandToggle-b6fabbc2.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
- package/dist/esm-es5/calcite-alert.entry.js +1 -1
- package/dist/esm-es5/calcite-avatar.entry.js +1 -1
- package/dist/esm-es5/calcite-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-button.entry.js +1 -1
- package/dist/esm-es5/calcite-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-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-panel.entry.js +1 -1
- package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-group_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-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 +2 -2
- 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/dom-70477ebc.js +5 -0
- package/dist/esm-es5/{form-160b0fb5.js → form-4b3c1995.js} +1 -1
- package/dist/esm-es5/{label-5559055d.js → label-905e5ef8.js} +1 -1
- package/dist/esm-es5/{locale-4c38cf6d.js → locale-86b789f9.js} +1 -1
- package/dist/esm-es5/number-eb92427e.js +5 -0
- package/dist/esm-es5/{popper-f5caedc4.js → popper-ba525bde.js} +1 -1
- package/dist/esm-es5/{resources-b4eee1d4.js → resources-421133b2.js} +1 -1
- package/dist/esm-es5/{resources-7501cc74.js → resources-c1b6ebde.js} +1 -1
- package/dist/extras/docs-json.json +1 -1
- package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +1 -0
- package/dist/types/components/calcite-radio-group-item/calcite-radio-group-item.d.ts +0 -6
- package/dist/types/components/calcite-tile-select/resources.d.ts +16 -0
- package/hydrate/index.js +334 -323
- package/package.json +10 -10
- package/dist/calcite/p-04417e11.system.entry.js +0 -5
- package/dist/calcite/p-1942876c.js +0 -5
- package/dist/calcite/p-394d8b91.entry.js +0 -5
- package/dist/calcite/p-52cc870b.js +0 -5
- package/dist/calcite/p-66146f19.entry.js +0 -5
- package/dist/calcite/p-6ba77bae.entry.js +0 -5
- package/dist/calcite/p-6cc23c39.system.js +0 -5
- package/dist/calcite/p-83744979.system.js +0 -5
- package/dist/calcite/p-cc2166e7.system.entry.js +0 -5
- package/dist/calcite/p-d00824e4.system.entry.js +0 -5
- package/dist/calcite/p-d506cebd.entry.js +0 -5
- package/dist/calcite/p-d75a285d.entry.js +0 -5
- package/dist/calcite/p-e81cda9d.entry.js +0 -5
- package/dist/calcite/p-f595d924.js +0 -5
- package/dist/esm-es5/dom-f24e866c.js +0 -5
- package/dist/esm-es5/number-06e8500e.js +0 -5
|
@@ -186,7 +186,8 @@ function nodeListToArray(nodeList) {
|
|
|
186
186
|
return Array.isArray(nodeList) ? nodeList : Array.from(nodeList);
|
|
187
187
|
}
|
|
188
188
|
function getThemeName(el) {
|
|
189
|
-
|
|
189
|
+
const closestElWithTheme = closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}, .${CSS_UTILITY.lightTheme}`);
|
|
190
|
+
return (closestElWithTheme === null || closestElWithTheme === void 0 ? void 0 : closestElWithTheme.classList.contains("calcite-theme-dark")) ? "dark" : "light";
|
|
190
191
|
}
|
|
191
192
|
function getElementDir(el) {
|
|
192
193
|
const prop = "dir";
|
|
@@ -423,7 +424,7 @@ let CalciteAccordionItem$1 = class extends HTMLElement$1 {
|
|
|
423
424
|
static get style() { return calciteAccordionItemCss; }
|
|
424
425
|
};
|
|
425
426
|
|
|
426
|
-
const CSS$
|
|
427
|
+
const CSS$P = {
|
|
427
428
|
button: "button",
|
|
428
429
|
buttonTextVisible: "button--text-visible",
|
|
429
430
|
buttonCompact: "button--compact",
|
|
@@ -541,8 +542,8 @@ let CalciteAction$1 = class extends HTMLElement$1 {
|
|
|
541
542
|
renderTextContainer() {
|
|
542
543
|
const { text, textEnabled } = this;
|
|
543
544
|
const textContainerClasses = {
|
|
544
|
-
[CSS$
|
|
545
|
-
[CSS$
|
|
545
|
+
[CSS$P.textContainer]: true,
|
|
546
|
+
[CSS$P.textContainerVisible]: textEnabled
|
|
546
547
|
};
|
|
547
548
|
return text ? (h("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
548
549
|
}
|
|
@@ -555,18 +556,18 @@ let CalciteAction$1 = class extends HTMLElement$1 {
|
|
|
555
556
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
556
557
|
const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
557
558
|
const slotContainerNode = (h("div", { class: {
|
|
558
|
-
[CSS$
|
|
559
|
-
[CSS$
|
|
559
|
+
[CSS$P.slotContainer]: true,
|
|
560
|
+
[CSS$P.slotContainerHidden]: loading
|
|
560
561
|
} }, h("slot", null)));
|
|
561
|
-
return hasIconToDisplay ? (h("div", { "aria-hidden": "true", class: CSS$
|
|
562
|
+
return hasIconToDisplay ? (h("div", { "aria-hidden": "true", class: CSS$P.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
562
563
|
}
|
|
563
564
|
render() {
|
|
564
565
|
const { compact, disabled, loading, textEnabled, label, text } = this;
|
|
565
566
|
const ariaLabel = label || text;
|
|
566
567
|
const buttonClasses = {
|
|
567
|
-
[CSS$
|
|
568
|
-
[CSS$
|
|
569
|
-
[CSS$
|
|
568
|
+
[CSS$P.button]: true,
|
|
569
|
+
[CSS$P.buttonTextVisible]: textEnabled,
|
|
570
|
+
[CSS$P.buttonCompact]: compact
|
|
570
571
|
};
|
|
571
572
|
return (h(Host, { onClick: this.calciteActionClickHandler }, h("button", { "aria-busy": loading.toString(), "aria-disabled": disabled.toString(), "aria-label": ariaLabel, class: buttonClasses, disabled: disabled, ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer())));
|
|
572
573
|
}
|
|
@@ -574,7 +575,7 @@ let CalciteAction$1 = class extends HTMLElement$1 {
|
|
|
574
575
|
static get style() { return calciteActionCss; }
|
|
575
576
|
};
|
|
576
577
|
|
|
577
|
-
const CSS$
|
|
578
|
+
const CSS$O = {
|
|
578
579
|
menu: "menu",
|
|
579
580
|
defaultTrigger: "default-trigger"
|
|
580
581
|
};
|
|
@@ -674,7 +675,7 @@ const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, p
|
|
|
674
675
|
return tooltip ? h("calcite-tooltip-manager", null, actionNode) : actionNode;
|
|
675
676
|
};
|
|
676
677
|
|
|
677
|
-
const CSS$
|
|
678
|
+
const CSS$N = {
|
|
678
679
|
actionGroupBottom: "action-group--bottom"
|
|
679
680
|
};
|
|
680
681
|
const SLOTS$n = {
|
|
@@ -2135,7 +2136,7 @@ let CalciteActionBar$1 = class extends HTMLElement$1 {
|
|
|
2135
2136
|
const expandLabel = intlExpand || TEXT$n.expand;
|
|
2136
2137
|
const collapseLabel = intlCollapse || TEXT$n.collapse;
|
|
2137
2138
|
const expandToggleNode = !expandDisabled ? (h(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2138
|
-
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (h("calcite-action-group", { class: CSS$
|
|
2139
|
+
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (h("calcite-action-group", { class: CSS$N.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$n.bottomActions }), h("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
2139
2140
|
}
|
|
2140
2141
|
render() {
|
|
2141
2142
|
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("slot", null), this.renderBottomActionGroup()));
|
|
@@ -2464,14 +2465,14 @@ let CalciteActionMenu$1 = class extends HTMLElement$1 {
|
|
|
2464
2465
|
}
|
|
2465
2466
|
renderMenuButton() {
|
|
2466
2467
|
const { el, label, scale } = this;
|
|
2467
|
-
const menuButtonSlot = (h("slot", { name: SLOTS$p.trigger }, h("calcite-action", { class: CSS$
|
|
2468
|
+
const menuButtonSlot = (h("slot", { name: SLOTS$p.trigger }, h("calcite-action", { class: CSS$O.defaultTrigger, icon: ICONS$f.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label })));
|
|
2468
2469
|
return getSlotted(el, SLOTS$p.tooltip) ? (h("calcite-tooltip-manager", null, menuButtonSlot)) : (menuButtonSlot);
|
|
2469
2470
|
}
|
|
2470
2471
|
renderMenuItems() {
|
|
2471
2472
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning } = this;
|
|
2472
2473
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
2473
2474
|
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
|
2474
|
-
return (h("calcite-popover", { disablePointer: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$
|
|
2475
|
+
return (h("calcite-popover", { disablePointer: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$O.menu, id: menuId, onClick: this.handleCalciteActionClick, onKeyDown: this.menuActionsContainerKeyDown, onKeyUp: this.menuActionsContainerKeyUp, ref: (el) => (this.menuEl = el), role: "menu", tabIndex: -1 }, h("slot", null))));
|
|
2475
2476
|
}
|
|
2476
2477
|
render() {
|
|
2477
2478
|
return (h(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), h("slot", { name: SLOTS$p.tooltip })));
|
|
@@ -2493,7 +2494,7 @@ let CalciteActionMenu$1 = class extends HTMLElement$1 {
|
|
|
2493
2494
|
static get style() { return calciteActionMenuCss; }
|
|
2494
2495
|
};
|
|
2495
2496
|
|
|
2496
|
-
const CSS$
|
|
2497
|
+
const CSS$M = {
|
|
2497
2498
|
actionGroupBottom: "action-group--bottom",
|
|
2498
2499
|
container: "container"
|
|
2499
2500
|
};
|
|
@@ -2598,10 +2599,10 @@ let CalciteActionPad$1 = class extends HTMLElement$1 {
|
|
|
2598
2599
|
const expandLabel = intlExpand || TEXT$m.expand;
|
|
2599
2600
|
const collapseLabel = intlCollapse || TEXT$m.collapse;
|
|
2600
2601
|
const expandToggleNode = !expandDisabled ? (h(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2601
|
-
return expandToggleNode ? (h("calcite-action-group", { class: CSS$
|
|
2602
|
+
return expandToggleNode ? (h("calcite-action-group", { class: CSS$M.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$m.expandTooltip }), expandToggleNode)) : null;
|
|
2602
2603
|
}
|
|
2603
2604
|
render() {
|
|
2604
|
-
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("div", { class: CSS$
|
|
2605
|
+
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("div", { class: CSS$M.container }, h("slot", null), this.renderBottomActionGroup())));
|
|
2605
2606
|
}
|
|
2606
2607
|
get el() { return this; }
|
|
2607
2608
|
static get watchers() { return {
|
|
@@ -3052,7 +3053,7 @@ let CalciteAvatar$1 = class extends HTMLElement$1 {
|
|
|
3052
3053
|
static get style() { return calciteAvatarCss; }
|
|
3053
3054
|
};
|
|
3054
3055
|
|
|
3055
|
-
const CSS$
|
|
3056
|
+
const CSS$L = {
|
|
3056
3057
|
article: "article",
|
|
3057
3058
|
content: "content",
|
|
3058
3059
|
headerContainer: "header-container",
|
|
@@ -3166,34 +3167,34 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3166
3167
|
const statusIcon = showingLoadingStatus ? ICONS$c.refresh : ICONS$c[status];
|
|
3167
3168
|
const hasIcon = getSlotted(el, SLOTS$k.icon) || statusIcon;
|
|
3168
3169
|
const iconEl = !statusIcon ? (h("slot", { name: SLOTS$k.icon })) : (h("calcite-icon", { class: {
|
|
3169
|
-
[CSS$
|
|
3170
|
-
[CSS$
|
|
3171
|
-
[CSS$
|
|
3172
|
-
[CSS$
|
|
3170
|
+
[CSS$L.statusIcon]: true,
|
|
3171
|
+
[CSS$L.valid]: status == "valid",
|
|
3172
|
+
[CSS$L.invalid]: status == "invalid",
|
|
3173
|
+
[CSS$L.loading]: showingLoadingStatus
|
|
3173
3174
|
}, icon: statusIcon, scale: "m" }));
|
|
3174
|
-
return hasIcon ? h("div", { class: CSS$
|
|
3175
|
+
return hasIcon ? h("div", { class: CSS$L.icon }, iconEl) : null;
|
|
3175
3176
|
}
|
|
3176
3177
|
renderTitle() {
|
|
3177
3178
|
const { heading, headingLevel, summary } = this;
|
|
3178
|
-
return heading || summary ? (h("div", { class: CSS$
|
|
3179
|
+
return heading || summary ? (h("div", { class: CSS$L.title }, h(CalciteHeading, { class: CSS$L.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary ? h("div", { class: CSS$L.summary }, summary) : null)) : null;
|
|
3179
3180
|
}
|
|
3180
3181
|
render() {
|
|
3181
3182
|
const { collapsible, disabled, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
3182
3183
|
const toggleLabel = open ? intlCollapse || TEXT$k.collapse : intlExpand || TEXT$k.expand;
|
|
3183
|
-
const headerContent = (h("header", { class: CSS$
|
|
3184
|
+
const headerContent = (h("header", { class: CSS$L.header }, this.renderIcon(), this.renderTitle()));
|
|
3184
3185
|
const hasControl = !!getSlotted(el, SLOTS$k.control);
|
|
3185
3186
|
const hasMenuActions = !!getSlotted(el, SLOTS$k.headerMenuActions);
|
|
3186
3187
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
3187
|
-
const headerNode = (h("div", { class: CSS$
|
|
3188
|
+
const headerNode = (h("div", { class: CSS$L.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$L.controlContainer }, h("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$k.options }, h("slot", { name: SLOTS$k.headerMenuActions }))) : null));
|
|
3188
3189
|
return (h(Host, { tabIndex: disabled ? -1 : null }, h("article", { "aria-busy": loading.toString(), class: {
|
|
3189
|
-
[CSS$
|
|
3190
|
-
} }, headerNode, h("div", { class: CSS$
|
|
3190
|
+
[CSS$L.article]: true
|
|
3191
|
+
} }, headerNode, h("div", { class: CSS$L.content, hidden: !open }, this.renderScrim()))));
|
|
3191
3192
|
}
|
|
3192
3193
|
get el() { return this; }
|
|
3193
3194
|
static get style() { return calciteBlockCss; }
|
|
3194
3195
|
};
|
|
3195
3196
|
|
|
3196
|
-
const CSS$
|
|
3197
|
+
const CSS$K = {
|
|
3197
3198
|
content: "content",
|
|
3198
3199
|
invalid: "invalid",
|
|
3199
3200
|
toggle: "toggle",
|
|
@@ -3262,9 +3263,9 @@ let CalciteBlockSection$1 = class extends HTMLElement$1 {
|
|
|
3262
3263
|
const { status } = this;
|
|
3263
3264
|
const statusIcon = (_a = ICONS$b[status]) !== null && _a !== void 0 ? _a : false;
|
|
3264
3265
|
const statusIconClasses = {
|
|
3265
|
-
[CSS$
|
|
3266
|
-
[CSS$
|
|
3267
|
-
[CSS$
|
|
3266
|
+
[CSS$K.statusIcon]: true,
|
|
3267
|
+
[CSS$K.valid]: status == "valid",
|
|
3268
|
+
[CSS$K.invalid]: status == "invalid"
|
|
3268
3269
|
};
|
|
3269
3270
|
return !!statusIcon ? (h("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
3270
3271
|
}
|
|
@@ -3278,13 +3279,13 @@ let CalciteBlockSection$1 = class extends HTMLElement$1 {
|
|
|
3278
3279
|
: ICONS$b.menuClosedRight;
|
|
3279
3280
|
const toggleLabel = open ? intlCollapse || TEXT$j.collapse : intlExpand || TEXT$j.expand;
|
|
3280
3281
|
const headerNode = toggleDisplay === "switch" ? (h("div", { "aria-label": toggleLabel, class: {
|
|
3281
|
-
[CSS$
|
|
3282
|
-
[CSS$
|
|
3283
|
-
}, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, h("div", { class: CSS$
|
|
3284
|
-
[CSS$
|
|
3285
|
-
[CSS$
|
|
3286
|
-
}, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS$
|
|
3287
|
-
return (h("section", { "aria-expanded": open.toString() }, headerNode, h("div", { class: CSS$
|
|
3282
|
+
[CSS$K.toggle]: true,
|
|
3283
|
+
[CSS$K.toggleSwitch]: true
|
|
3284
|
+
}, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, h("div", { class: CSS$K.toggleSwitchContent }, h("span", { class: CSS$K.toggleSwitchText }, text)), h("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (h("button", { "aria-label": toggleLabel, class: {
|
|
3285
|
+
[CSS$K.sectionHeader]: true,
|
|
3286
|
+
[CSS$K.toggle]: true
|
|
3287
|
+
}, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS$K.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
3288
|
+
return (h("section", { "aria-expanded": open.toString() }, headerNode, h("div", { class: CSS$K.content, hidden: !open }, h("slot", null))));
|
|
3288
3289
|
}
|
|
3289
3290
|
get el() { return this; }
|
|
3290
3291
|
static get style() { return calciteBlockSectionCss; }
|
|
@@ -3318,7 +3319,7 @@ let CalciteBlockSection$1 = class extends HTMLElement$1 {
|
|
|
3318
3319
|
}
|
|
3319
3320
|
})(HTMLFormElement.prototype);
|
|
3320
3321
|
|
|
3321
|
-
const CSS$
|
|
3322
|
+
const CSS$J = {
|
|
3322
3323
|
buttonLoader: "calcite-button--loader",
|
|
3323
3324
|
content: "content",
|
|
3324
3325
|
contentSlotted: "content--slotted",
|
|
@@ -3507,14 +3508,14 @@ let CalciteButton$1 = class extends HTMLElement$1 {
|
|
|
3507
3508
|
}
|
|
3508
3509
|
render() {
|
|
3509
3510
|
const Tag = this.childElType;
|
|
3510
|
-
const loaderNode = this.hasLoader ? (h("div", { class: CSS$
|
|
3511
|
-
const iconStartEl = (h("calcite-icon", { class: { [CSS$
|
|
3512
|
-
const iconEndEl = (h("calcite-icon", { class: { [CSS$
|
|
3513
|
-
const contentEl = (h("span", { class: CSS$
|
|
3511
|
+
const loaderNode = this.hasLoader ? (h("div", { class: CSS$J.buttonLoader }, h("calcite-loader", { active: true, class: this.loading ? CSS$J.loadingIn : CSS$J.loadingOut, inline: true, label: this.intlLoading, scale: "m" }))) : null;
|
|
3512
|
+
const iconStartEl = (h("calcite-icon", { class: { [CSS$J.icon]: true, [CSS$J.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
3513
|
+
const iconEndEl = (h("calcite-icon", { class: { [CSS$J.icon]: true, [CSS$J.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
3514
|
+
const contentEl = (h("span", { class: CSS$J.content }, h("slot", null)));
|
|
3514
3515
|
return (h(Tag, { "aria-label": getLabelText(this), class: {
|
|
3515
|
-
[CSS$
|
|
3516
|
-
[CSS$
|
|
3517
|
-
[CSS$
|
|
3516
|
+
[CSS$J.contentSlotted]: this.hasContent,
|
|
3517
|
+
[CSS$J.iconStartEmpty]: !this.iconStart,
|
|
3518
|
+
[CSS$J.iconEndEmpty]: !this.iconEnd
|
|
3518
3519
|
}, disabled: this.disabled || this.loading, href: this.childElType === "a" && this.href, name: this.childElType === "button" && this.name, onClick: this.handleClick, ref: (el) => (this.childEl = el), rel: this.childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: this.childElType === "a" && this.target, type: this.childElType === "button" && this.type }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
|
|
3519
3520
|
}
|
|
3520
3521
|
//--------------------------------------------------------------------------
|
|
@@ -3555,7 +3556,7 @@ let CalciteButton$1 = class extends HTMLElement$1 {
|
|
|
3555
3556
|
static get style() { return calciteButtonCss; }
|
|
3556
3557
|
};
|
|
3557
3558
|
|
|
3558
|
-
const CSS$
|
|
3559
|
+
const CSS$I = {
|
|
3559
3560
|
container: "container",
|
|
3560
3561
|
header: "header",
|
|
3561
3562
|
footer: "footer",
|
|
@@ -3637,7 +3638,7 @@ let CalciteCard$1 = class extends HTMLElement$1 {
|
|
|
3637
3638
|
//
|
|
3638
3639
|
// --------------------------------------------------------------------------
|
|
3639
3640
|
render() {
|
|
3640
|
-
return (h("div", { class: "calcite-card-container" }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, h("section", { "aria-busy": this.loading.toString(), class: { [CSS$
|
|
3641
|
+
return (h("div", { class: "calcite-card-container" }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, h("section", { "aria-busy": this.loading.toString(), class: { [CSS$I.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderThumbnail(), this.renderHeader(), h("div", { class: "card-content" }, h("slot", null)), this.renderFooter())));
|
|
3641
3642
|
}
|
|
3642
3643
|
selectCard() {
|
|
3643
3644
|
this.selected = !this.selected;
|
|
@@ -3645,23 +3646,23 @@ let CalciteCard$1 = class extends HTMLElement$1 {
|
|
|
3645
3646
|
}
|
|
3646
3647
|
renderThumbnail() {
|
|
3647
3648
|
const hasThumbnail = this.el.querySelector(`[slot=${SLOTS$j.thumbnail}]`);
|
|
3648
|
-
return hasThumbnail ? (h("div", { class: CSS$
|
|
3649
|
+
return hasThumbnail ? (h("div", { class: CSS$I.thumbnailWrapper }, h("slot", { name: SLOTS$j.thumbnail }))) : null;
|
|
3649
3650
|
}
|
|
3650
3651
|
renderCheckbox() {
|
|
3651
3652
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
3652
|
-
return (h("calcite-label", { class: CSS$
|
|
3653
|
+
return (h("calcite-label", { class: CSS$I.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, h("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
3653
3654
|
}
|
|
3654
3655
|
renderHeader() {
|
|
3655
3656
|
const title = this.el.querySelector(`[slot=${SLOTS$j.title}]`);
|
|
3656
3657
|
const subtitle = this.el.querySelector(`[slot=${SLOTS$j.subtitle}]`);
|
|
3657
3658
|
const hasHeader = title || subtitle;
|
|
3658
|
-
return hasHeader ? (h("header", { class: CSS$
|
|
3659
|
+
return hasHeader ? (h("header", { class: CSS$I.header }, h("slot", { name: SLOTS$j.title }), h("slot", { name: SLOTS$j.subtitle }))) : null;
|
|
3659
3660
|
}
|
|
3660
3661
|
renderFooter() {
|
|
3661
3662
|
const leadingFooter = this.el.querySelector(`[slot=${SLOTS$j.footerLeading}]`);
|
|
3662
3663
|
const trailingFooter = this.el.querySelector(`[slot=${SLOTS$j.footerTrailing}]`);
|
|
3663
3664
|
const hasFooter = leadingFooter || trailingFooter;
|
|
3664
|
-
return hasFooter ? (h("footer", { class: CSS$
|
|
3665
|
+
return hasFooter ? (h("footer", { class: CSS$I.footer }, h("slot", { name: SLOTS$j.footerLeading }), h("slot", { name: SLOTS$j.footerTrailing }))) : null;
|
|
3665
3666
|
}
|
|
3666
3667
|
get el() { return this; }
|
|
3667
3668
|
static get style() { return calciteCardCss; }
|
|
@@ -3946,13 +3947,13 @@ let CalciteCheckbox$1 = class extends HTMLElement$1 {
|
|
|
3946
3947
|
//
|
|
3947
3948
|
// --------------------------------------------------------------------------
|
|
3948
3949
|
render() {
|
|
3949
|
-
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: "toggle", onBlur: this.onToggleBlur, onFocus: this.onToggleFocus, ref: (toggleEl) => (this.toggleEl = toggleEl), role: "checkbox", tabIndex: 0 }, h("svg", { class: "check-svg", viewBox: "0 0 16 16" }, h("path", { d: this.getPath() })), h("slot", null)), h(HiddenFormInputSlot, { component: this })));
|
|
3950
|
+
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: "toggle", onBlur: this.onToggleBlur, onFocus: this.onToggleFocus, ref: (toggleEl) => (this.toggleEl = toggleEl), role: "checkbox", tabIndex: this.disabled ? undefined : 0 }, h("svg", { class: "check-svg", viewBox: "0 0 16 16" }, h("path", { d: this.getPath() })), h("slot", null)), h(HiddenFormInputSlot, { component: this })));
|
|
3950
3951
|
}
|
|
3951
3952
|
get el() { return this; }
|
|
3952
3953
|
static get style() { return calciteCheckboxCss; }
|
|
3953
3954
|
};
|
|
3954
3955
|
|
|
3955
|
-
const CSS$
|
|
3956
|
+
const CSS$H = {
|
|
3956
3957
|
title: "title",
|
|
3957
3958
|
close: "close",
|
|
3958
3959
|
chipImageContainer: "chip-image-container",
|
|
@@ -4024,12 +4025,12 @@ let CalciteChip$1 = class extends HTMLElement$1 {
|
|
|
4024
4025
|
renderChipImage() {
|
|
4025
4026
|
const { el } = this;
|
|
4026
4027
|
const hasChipImage = getSlotted(el, SLOTS$i.image);
|
|
4027
|
-
return hasChipImage ? (h("div", { class: CSS$
|
|
4028
|
+
return hasChipImage ? (h("div", { class: CSS$H.chipImageContainer }, h("slot", { name: SLOTS$i.image }))) : null;
|
|
4028
4029
|
}
|
|
4029
4030
|
render() {
|
|
4030
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
4031
|
-
const closeButton = (h("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$
|
|
4032
|
-
return (h("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, h("span", { class: CSS$
|
|
4031
|
+
const iconEl = (h("calcite-icon", { class: CSS$H.calciteChipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
4032
|
+
const closeButton = (h("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$H.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, h("calcite-icon", { icon: ICONS$a.close, scale: "s" })));
|
|
4033
|
+
return (h("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, h("span", { class: CSS$H.title, id: this.guid }, h("slot", null)), this.dismissible ? closeButton : null));
|
|
4033
4034
|
}
|
|
4034
4035
|
get el() { return this; }
|
|
4035
4036
|
static get style() { return calciteChipCss; }
|
|
@@ -6139,7 +6140,7 @@ function zeroArray(array, length) {
|
|
|
6139
6140
|
|
|
6140
6141
|
var color = Color;
|
|
6141
6142
|
|
|
6142
|
-
const CSS$
|
|
6143
|
+
const CSS$G = {
|
|
6143
6144
|
container: "container",
|
|
6144
6145
|
controlSection: "control-section",
|
|
6145
6146
|
hexOptions: "color-hex-options",
|
|
@@ -6633,7 +6634,7 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6633
6634
|
const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
|
|
6634
6635
|
const active = channelMode === activeChannelMode;
|
|
6635
6636
|
const label = channelMode === "rgb" ? intlRgb : intlHsv;
|
|
6636
|
-
return (h("calcite-tab-title", { active: active, class: CSS$
|
|
6637
|
+
return (h("calcite-tab-title", { active: active, class: CSS$G.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
|
|
6637
6638
|
};
|
|
6638
6639
|
this.renderChannelsTab = (channelMode) => {
|
|
6639
6640
|
const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
|
|
@@ -6643,9 +6644,9 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6643
6644
|
const channelAriaLabels = isRgb
|
|
6644
6645
|
? [intlRed, intlGreen, intlBlue]
|
|
6645
6646
|
: [intlHue, intlSaturation, intlValue];
|
|
6646
|
-
return (h("calcite-tab", { active: active, class: CSS$
|
|
6647
|
+
return (h("calcite-tab", { active: active, class: CSS$G.control, key: channelMode }, h("div", { class: CSS$G.channels }, channels.map((channel, index) => this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index])))));
|
|
6647
6648
|
};
|
|
6648
|
-
this.renderChannel = (value, index, label, ariaLabel) => (h("calcite-input", { class: CSS$
|
|
6649
|
+
this.renderChannel = (value, index, label, ariaLabel) => (h("calcite-input", { class: CSS$G.channel, "data-channel-index": index, label: ariaLabel, numberButtonType: "none", onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value === null || value === void 0 ? void 0 : value.toString() }));
|
|
6649
6650
|
this.deleteColor = () => {
|
|
6650
6651
|
const colorToDelete = this.color.hex();
|
|
6651
6652
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -6760,7 +6761,7 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6760
6761
|
this.shiftKeyChannelAdjustment = 0;
|
|
6761
6762
|
const key = event.key;
|
|
6762
6763
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
6763
|
-
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$
|
|
6764
|
+
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$G.channel); })) {
|
|
6764
6765
|
return;
|
|
6765
6766
|
}
|
|
6766
6767
|
const { shiftKey } = event;
|
|
@@ -6828,20 +6829,20 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6828
6829
|
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
|
|
6829
6830
|
const noColor = color === null;
|
|
6830
6831
|
const vertical = scopeOrientation === "vertical";
|
|
6831
|
-
return (h("div", { class: CSS$
|
|
6832
|
-
[CSS$
|
|
6833
|
-
[CSS$
|
|
6834
|
-
}, onMouseDown: this.handleColorFieldAndSliderMouseDown, onMouseEnter: this.handleColorFieldAndSliderMouseEnterOrMove, onMouseLeave: this.handleColorFieldAndSliderMouseLeave, onMouseMove: this.handleColorFieldAndSliderMouseEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$
|
|
6835
|
-
[CSS$
|
|
6836
|
-
[CSS$
|
|
6837
|
-
} }, hideHex ? null : (h("div", { class: CSS$
|
|
6838
|
-
[CSS$
|
|
6839
|
-
[CSS$
|
|
6840
|
-
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$
|
|
6841
|
-
[CSS$
|
|
6842
|
-
[CSS$
|
|
6843
|
-
}, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS$
|
|
6844
|
-
...savedColors.map((color) => (h("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$
|
|
6832
|
+
return (h("div", { class: CSS$G.container }, h("div", { class: CSS$G.colorFieldAndSliderWrap }, h("canvas", { class: {
|
|
6833
|
+
[CSS$G.colorFieldAndSlider]: true,
|
|
6834
|
+
[CSS$G.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
6835
|
+
}, onMouseDown: this.handleColorFieldAndSliderMouseDown, onMouseEnter: this.handleColorFieldAndSliderMouseEnterOrMove, onMouseLeave: this.handleColorFieldAndSliderMouseLeave, onMouseMove: this.handleColorFieldAndSliderMouseEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$G.scope]: true, [CSS$G.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, ref: this.storeColorFieldScope, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0" }), h("div", { "aria-label": this.intlHue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": (color === null || color === void 0 ? void 0 : color.round().hue()) || DEFAULT_COLOR$1.round().hue(), class: { [CSS$G.scope]: true, [CSS$G.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })), hideHex && hideChannels ? null : (h("div", { class: {
|
|
6836
|
+
[CSS$G.controlSection]: true,
|
|
6837
|
+
[CSS$G.section]: true
|
|
6838
|
+
} }, hideHex ? null : (h("div", { class: CSS$G.hexOptions }, h("span", { class: {
|
|
6839
|
+
[CSS$G.header]: true,
|
|
6840
|
+
[CSS$G.headerHex]: true
|
|
6841
|
+
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$G.control, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (h("calcite-tabs", { class: {
|
|
6842
|
+
[CSS$G.colorModeContainer]: true,
|
|
6843
|
+
[CSS$G.splitSection]: true
|
|
6844
|
+
}, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS$G.savedColorsSection]: true, [CSS$G.section]: true } }, h("div", { class: CSS$G.header }, h("label", null, intlSaved), h("div", { class: CSS$G.savedColorsButtons }, h("calcite-button", { appearance: "transparent", class: CSS$G.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale }), h("calcite-button", { appearance: "transparent", class: CSS$G.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale }))), savedColors.length > 0 ? (h("div", { class: CSS$G.savedColors }, [
|
|
6845
|
+
...savedColors.map((color) => (h("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$G.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
|
|
6845
6846
|
])) : null))));
|
|
6846
6847
|
}
|
|
6847
6848
|
// --------------------------------------------------------------------------
|
|
@@ -7019,7 +7020,7 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
7019
7020
|
static get style() { return calciteColorPickerCss; }
|
|
7020
7021
|
};
|
|
7021
7022
|
|
|
7022
|
-
const CSS$
|
|
7023
|
+
const CSS$F = {
|
|
7023
7024
|
container: "container",
|
|
7024
7025
|
preview: "preview",
|
|
7025
7026
|
input: "input"
|
|
@@ -7188,7 +7189,7 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement$1 {
|
|
|
7188
7189
|
render() {
|
|
7189
7190
|
const { intlHex, value } = this;
|
|
7190
7191
|
const hexInputValue = this.formatForInternalInput(value);
|
|
7191
|
-
return (h("div", { class: CSS$
|
|
7192
|
+
return (h("div", { class: CSS$F.container }, h("calcite-input", { class: CSS$F.input, label: intlHex, maxLength: 6, onCalciteInputBlur: this.onCalciteInputBlur, onCalciteInputChange: this.onInputChange, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (h("calcite-color-picker-swatch", { active: true, class: CSS$F.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
7192
7193
|
}
|
|
7193
7194
|
//--------------------------------------------------------------------------
|
|
7194
7195
|
//
|
|
@@ -7212,7 +7213,7 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement$1 {
|
|
|
7212
7213
|
static get style() { return calciteColorPickerHexInputCss; }
|
|
7213
7214
|
};
|
|
7214
7215
|
|
|
7215
|
-
const CSS$
|
|
7216
|
+
const CSS$E = {
|
|
7216
7217
|
swatch: "swatch",
|
|
7217
7218
|
noColorIcon: "no-color-icon"
|
|
7218
7219
|
};
|
|
@@ -7259,7 +7260,7 @@ let CalciteColorPickerSwatch$1 = class extends HTMLElement$1 {
|
|
|
7259
7260
|
const hex = internalColor.hex();
|
|
7260
7261
|
const theme = getThemeName(el);
|
|
7261
7262
|
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
7262
|
-
return (h("svg", { class: CSS$
|
|
7263
|
+
return (h("svg", { class: CSS$E.swatch, xmlns: "http://www.w3.org/2000/svg" }, h("title", null, hex), h("rect", { fill: hex, height: "100%", id: "swatch", rx: borderRadius, stroke: borderColor, "stroke-width": "2", style: { "clip-path": `inset(0 round ${borderRadius})` }, width: "100%" })));
|
|
7263
7264
|
}
|
|
7264
7265
|
get el() { return this; }
|
|
7265
7266
|
static get watchers() { return {
|
|
@@ -9066,7 +9067,7 @@ var createPopper$1 = /*#__PURE__*/popperGenerator({
|
|
|
9066
9067
|
defaultModifiers: defaultModifiers
|
|
9067
9068
|
}); // eslint-disable-next-line import/no-unused-modules
|
|
9068
9069
|
|
|
9069
|
-
const CSS$
|
|
9070
|
+
const CSS$D = {
|
|
9070
9071
|
animation: "calcite-popper-anim",
|
|
9071
9072
|
animationActive: "calcite-popper-anim--active"
|
|
9072
9073
|
};
|
|
@@ -9822,8 +9823,8 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9822
9823
|
const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
|
|
9823
9824
|
const classes = {
|
|
9824
9825
|
"list-container": true,
|
|
9825
|
-
[CSS$
|
|
9826
|
-
[CSS$
|
|
9826
|
+
[CSS$D.animation]: true,
|
|
9827
|
+
[CSS$D.animationActive]: active
|
|
9827
9828
|
};
|
|
9828
9829
|
const style = {
|
|
9829
9830
|
maxHeight: maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : ""
|
|
@@ -9860,7 +9861,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9860
9861
|
static get style() { return calciteComboboxCss; }
|
|
9861
9862
|
};
|
|
9862
9863
|
|
|
9863
|
-
const CSS$
|
|
9864
|
+
const CSS$C = {
|
|
9864
9865
|
icon: "icon",
|
|
9865
9866
|
iconActive: "icon--active",
|
|
9866
9867
|
custom: "icon--custom",
|
|
@@ -9945,18 +9946,18 @@ let CalciteComboboxItem$1 = class extends HTMLElement$1 {
|
|
|
9945
9946
|
// --------------------------------------------------------------------------
|
|
9946
9947
|
renderIcon(isSingle) {
|
|
9947
9948
|
const { icon, disabled, selected } = this;
|
|
9948
|
-
const level = `${CSS$
|
|
9949
|
+
const level = `${CSS$C.icon}--indent`;
|
|
9949
9950
|
const defaultIcon = isSingle ? "dot" : "check";
|
|
9950
9951
|
const iconPath = disabled ? "circle-disallowed" : defaultIcon;
|
|
9951
9952
|
const showDot = isSingle && !icon && !disabled;
|
|
9952
9953
|
return showDot ? (h("span", { class: {
|
|
9953
|
-
[CSS$
|
|
9954
|
-
[CSS$
|
|
9954
|
+
[CSS$C.icon]: true,
|
|
9955
|
+
[CSS$C.dot]: true,
|
|
9955
9956
|
[level]: true
|
|
9956
9957
|
} })) : (h("calcite-icon", { class: {
|
|
9957
|
-
[CSS$
|
|
9958
|
-
[CSS$
|
|
9959
|
-
[CSS$
|
|
9958
|
+
[CSS$C.icon]: !icon,
|
|
9959
|
+
[CSS$C.custom]: !!icon,
|
|
9960
|
+
[CSS$C.iconActive]: icon && selected,
|
|
9960
9961
|
[level]: true
|
|
9961
9962
|
}, icon: icon || iconPath, scale: "s" }));
|
|
9962
9963
|
}
|
|
@@ -9969,13 +9970,13 @@ let CalciteComboboxItem$1 = class extends HTMLElement$1 {
|
|
|
9969
9970
|
render() {
|
|
9970
9971
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
9971
9972
|
const classes = {
|
|
9972
|
-
[CSS$
|
|
9973
|
-
[CSS$
|
|
9974
|
-
[CSS$
|
|
9975
|
-
[CSS$
|
|
9973
|
+
[CSS$C.label]: true,
|
|
9974
|
+
[CSS$C.selected]: this.selected,
|
|
9975
|
+
[CSS$C.active]: this.active,
|
|
9976
|
+
[CSS$C.single]: isSingleSelect
|
|
9976
9977
|
};
|
|
9977
9978
|
const depth = getDepth(this.el);
|
|
9978
|
-
return (h(Host, { "aria-hidden": "true" }, h("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, h("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), h("span", { class: CSS$
|
|
9979
|
+
return (h(Host, { "aria-hidden": "true" }, h("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, h("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), h("span", { class: CSS$C.title }, this.textLabel)), this.renderChildren())));
|
|
9979
9980
|
}
|
|
9980
9981
|
get el() { return this; }
|
|
9981
9982
|
static get watchers() { return {
|
|
@@ -9984,7 +9985,7 @@ let CalciteComboboxItem$1 = class extends HTMLElement$1 {
|
|
|
9984
9985
|
static get style() { return calciteComboboxItemCss; }
|
|
9985
9986
|
};
|
|
9986
9987
|
|
|
9987
|
-
const CSS$
|
|
9988
|
+
const CSS$B = {
|
|
9988
9989
|
list: "list",
|
|
9989
9990
|
label: "label",
|
|
9990
9991
|
title: "title"
|
|
@@ -10016,8 +10017,8 @@ let CalciteComboboxItemGroup$1 = class extends HTMLElement$1 {
|
|
|
10016
10017
|
// --------------------------------------------------------------------------
|
|
10017
10018
|
render() {
|
|
10018
10019
|
const { el, scale } = this;
|
|
10019
|
-
const indent = `${CSS$
|
|
10020
|
-
return (h("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
10020
|
+
const indent = `${CSS$B.label}--indent-${getDepth(el)}`;
|
|
10021
|
+
return (h("ul", { "aria-labelledby": this.guid, class: { [CSS$B.list]: true, [`scale--${scale}`]: true }, role: "group" }, h("li", { class: { [CSS$B.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, h("span", { class: CSS$B.title }, this.label)), h("slot", null)));
|
|
10021
10022
|
}
|
|
10022
10023
|
get el() { return this; }
|
|
10023
10024
|
static get style() { return calciteComboboxItemGroupCss; }
|
|
@@ -10033,7 +10034,7 @@ function isValidNumber(numberString) {
|
|
|
10033
10034
|
}
|
|
10034
10035
|
function parseNumberString(numberString) {
|
|
10035
10036
|
if (!numberString || !stringContainsNumbers(numberString)) {
|
|
10036
|
-
return
|
|
10037
|
+
return "";
|
|
10037
10038
|
}
|
|
10038
10039
|
let containsDecimal = false;
|
|
10039
10040
|
const result = numberString
|
|
@@ -10052,17 +10053,24 @@ function parseNumberString(numberString) {
|
|
|
10052
10053
|
return isValidNumber(result) ? Number(result).toString() : null;
|
|
10053
10054
|
}
|
|
10054
10055
|
function sanitizeDecimalString(decimalString) {
|
|
10055
|
-
|
|
10056
|
+
const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
|
|
10057
|
+
return decimalString.replace(decimalAtEndOfStringButNotStart, "");
|
|
10056
10058
|
}
|
|
10057
10059
|
function sanitizeNegativeString(negativeString) {
|
|
10058
|
-
|
|
10060
|
+
const allHyphensExceptTheStart = /(?!^-)-/g;
|
|
10061
|
+
return negativeString.replace(allHyphensExceptTheStart, "");
|
|
10059
10062
|
}
|
|
10060
10063
|
function sanitizeLeadingZeroString(zeroString) {
|
|
10061
|
-
|
|
10064
|
+
const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
|
|
10065
|
+
return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
|
|
10062
10066
|
}
|
|
10063
10067
|
function sanitizeNumberString(value) {
|
|
10064
|
-
|
|
10065
|
-
|
|
10068
|
+
const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)));
|
|
10069
|
+
const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
|
|
10070
|
+
return isValidNumber(sanitizedValue)
|
|
10071
|
+
? isNegativeDecimalOnlyZeros.test(sanitizedValue)
|
|
10072
|
+
? sanitizedValue
|
|
10073
|
+
: Number(sanitizedValue).toString()
|
|
10066
10074
|
: value;
|
|
10067
10075
|
}
|
|
10068
10076
|
function stringContainsNumbers(string) {
|
|
@@ -11406,8 +11414,8 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11406
11414
|
const { active } = this;
|
|
11407
11415
|
return (h(Host, { tabIndex: this.disabled ? -1 : null }, h("div", { class: "calcite-dropdown-trigger-container", onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-expanded": active.toString(), "aria-haspopup": "true", name: SLOTS$h.dropdownTrigger })), h("div", { "aria-hidden": (!active).toString(), class: "calcite-dropdown-wrapper", ref: this.setMenuEl }, h("div", { class: {
|
|
11408
11416
|
["calcite-dropdown-content"]: true,
|
|
11409
|
-
[CSS$
|
|
11410
|
-
[CSS$
|
|
11417
|
+
[CSS$D.animation]: true,
|
|
11418
|
+
[CSS$D.animationActive]: active
|
|
11411
11419
|
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, h("slot", null)))));
|
|
11412
11420
|
}
|
|
11413
11421
|
//--------------------------------------------------------------------------
|
|
@@ -11600,7 +11608,7 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11600
11608
|
static get style() { return calciteDropdownCss; }
|
|
11601
11609
|
};
|
|
11602
11610
|
|
|
11603
|
-
const CSS$
|
|
11611
|
+
const CSS$A = {
|
|
11604
11612
|
containerSmall: "container--s",
|
|
11605
11613
|
containerMedium: "container--m",
|
|
11606
11614
|
containerLarge: "container--l"
|
|
@@ -11632,9 +11640,9 @@ let CalciteDropdownGroup$1 = class extends HTMLElement$1 {
|
|
|
11632
11640
|
const dropdownSeparator = this.groupPosition > 0 ? h("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
11633
11641
|
return (h(Host, { role: "menu" }, h("div", { class: {
|
|
11634
11642
|
container: true,
|
|
11635
|
-
[CSS$
|
|
11636
|
-
[CSS$
|
|
11637
|
-
[CSS$
|
|
11643
|
+
[CSS$A.containerSmall]: scale === "s",
|
|
11644
|
+
[CSS$A.containerMedium]: scale === "m",
|
|
11645
|
+
[CSS$A.containerLarge]: scale === "l"
|
|
11638
11646
|
}, title: this.groupTitle }, dropdownSeparator, groupTitle, h("slot", null))));
|
|
11639
11647
|
}
|
|
11640
11648
|
//--------------------------------------------------------------------------
|
|
@@ -11662,7 +11670,7 @@ let CalciteDropdownGroup$1 = class extends HTMLElement$1 {
|
|
|
11662
11670
|
static get style() { return calciteDropdownGroupCss; }
|
|
11663
11671
|
};
|
|
11664
11672
|
|
|
11665
|
-
const CSS$
|
|
11673
|
+
const CSS$z = {
|
|
11666
11674
|
containerLink: "container--link",
|
|
11667
11675
|
containerSmall: "container--s",
|
|
11668
11676
|
containerMedium: "container--m",
|
|
@@ -11734,13 +11742,13 @@ let CalciteDropdownItem$1 = class extends HTMLElement$1 {
|
|
|
11734
11742
|
const itemAria = this.selectionMode !== "none" ? this.active.toString() : null;
|
|
11735
11743
|
return (h(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, h("div", { class: {
|
|
11736
11744
|
container: true,
|
|
11737
|
-
[CSS$
|
|
11738
|
-
[CSS$
|
|
11739
|
-
[CSS$
|
|
11740
|
-
[CSS$
|
|
11741
|
-
[CSS$
|
|
11742
|
-
[CSS$
|
|
11743
|
-
[CSS$
|
|
11745
|
+
[CSS$z.containerLink]: !!this.href,
|
|
11746
|
+
[CSS$z.containerSmall]: scale === "s",
|
|
11747
|
+
[CSS$z.containerMedium]: scale === "m",
|
|
11748
|
+
[CSS$z.containerLarge]: scale === "l",
|
|
11749
|
+
[CSS$z.containerMulti]: this.selectionMode === "multi",
|
|
11750
|
+
[CSS$z.containerSingle]: this.selectionMode === "single",
|
|
11751
|
+
[CSS$z.containerNone]: this.selectionMode === "none"
|
|
11744
11752
|
} }, this.selectionMode !== "none" ? (h("calcite-icon", { class: "dropdown-item-icon", icon: this.selectionMode === "multi" ? "check" : "bullet-point", scale: "s" })) : null, contentEl)));
|
|
11745
11753
|
}
|
|
11746
11754
|
//--------------------------------------------------------------------------
|
|
@@ -11822,7 +11830,7 @@ let CalciteDropdownItem$1 = class extends HTMLElement$1 {
|
|
|
11822
11830
|
static get style() { return calciteDropdownItemCss; }
|
|
11823
11831
|
};
|
|
11824
11832
|
|
|
11825
|
-
const CSS$
|
|
11833
|
+
const CSS$y = {
|
|
11826
11834
|
button: "button"
|
|
11827
11835
|
};
|
|
11828
11836
|
const ICONS$9 = {
|
|
@@ -11888,7 +11896,7 @@ let CalciteFab$1 = class extends HTMLElement$1 {
|
|
|
11888
11896
|
render() {
|
|
11889
11897
|
const { appearance, color, disabled, loading, scale, textEnabled, icon, label, text } = this;
|
|
11890
11898
|
const title = !textEnabled ? label || text || null : null;
|
|
11891
|
-
return (h("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$
|
|
11899
|
+
return (h("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$y.button, color: color, disabled: disabled, iconStart: icon, label: label, loading: loading, ref: (buttonEl) => {
|
|
11892
11900
|
this.buttonEl = buttonEl;
|
|
11893
11901
|
}, round: true, scale: scale, title: title, width: "auto" }, this.textEnabled ? this.text : null));
|
|
11894
11902
|
}
|
|
@@ -11896,7 +11904,7 @@ let CalciteFab$1 = class extends HTMLElement$1 {
|
|
|
11896
11904
|
static get style() { return calciteFabCss; }
|
|
11897
11905
|
};
|
|
11898
11906
|
|
|
11899
|
-
const CSS$
|
|
11907
|
+
const CSS$x = {
|
|
11900
11908
|
container: "container",
|
|
11901
11909
|
searchIcon: "search-icon",
|
|
11902
11910
|
clearButton: "clear-button"
|
|
@@ -12003,9 +12011,9 @@ let CalciteFilter$1 = class extends HTMLElement$1 {
|
|
|
12003
12011
|
// --------------------------------------------------------------------------
|
|
12004
12012
|
render() {
|
|
12005
12013
|
const { disabled } = this;
|
|
12006
|
-
return (h(Fragment, null, disabled ? h("calcite-scrim", null) : null, h("div", { class: CSS$
|
|
12014
|
+
return (h(Fragment, null, disabled ? h("calcite-scrim", null) : null, h("div", { class: CSS$x.container }, h("label", null, h("calcite-input", { "aria-label": this.intlLabel || TEXT$d.filterLabel, disabled: this.disabled, icon: ICONS$8.search, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {
|
|
12007
12015
|
this.textInput = el;
|
|
12008
|
-
}, type: "text", value: this.value })), this.value ? (h("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$
|
|
12016
|
+
}, type: "text", value: this.value })), this.value ? (h("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$x.clearButton, onClick: this.clear }, h("calcite-icon", { icon: ICONS$8.close }))) : null)));
|
|
12009
12017
|
}
|
|
12010
12018
|
get el() { return this; }
|
|
12011
12019
|
static get watchers() { return {
|
|
@@ -12015,7 +12023,7 @@ let CalciteFilter$1 = class extends HTMLElement$1 {
|
|
|
12015
12023
|
static get style() { return calciteFilterCss; }
|
|
12016
12024
|
};
|
|
12017
12025
|
|
|
12018
|
-
const CSS$
|
|
12026
|
+
const CSS$w = {
|
|
12019
12027
|
frame: "frame",
|
|
12020
12028
|
frameAdvancing: "frame--advancing",
|
|
12021
12029
|
frameRetreating: "frame--retreating"
|
|
@@ -12115,9 +12123,9 @@ let CalciteFlow$1 = class extends HTMLElement$1 {
|
|
|
12115
12123
|
render() {
|
|
12116
12124
|
const { flowDirection, panelCount } = this;
|
|
12117
12125
|
const frameDirectionClasses = {
|
|
12118
|
-
[CSS$
|
|
12119
|
-
[CSS$
|
|
12120
|
-
[CSS$
|
|
12126
|
+
[CSS$w.frame]: true,
|
|
12127
|
+
[CSS$w.frameAdvancing]: flowDirection === "advancing",
|
|
12128
|
+
[CSS$w.frameRetreating]: flowDirection === "retreating"
|
|
12121
12129
|
};
|
|
12122
12130
|
return (h("div", { class: frameDirectionClasses, key: panelCount }, h("slot", null)));
|
|
12123
12131
|
}
|
|
@@ -12309,7 +12317,7 @@ let CalciteGraph$1 = class extends HTMLElement$1 {
|
|
|
12309
12317
|
static get style() { return calciteGraphCss; }
|
|
12310
12318
|
};
|
|
12311
12319
|
|
|
12312
|
-
const CSS$
|
|
12320
|
+
const CSS$v = {
|
|
12313
12321
|
handle: "handle",
|
|
12314
12322
|
handleActivated: "handle--activated"
|
|
12315
12323
|
};
|
|
@@ -12379,7 +12387,7 @@ let CalciteHandle$1 = class extends HTMLElement$1 {
|
|
|
12379
12387
|
render() {
|
|
12380
12388
|
return (
|
|
12381
12389
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
12382
|
-
h("span", { "aria-pressed": this.activated.toString(), class: { [CSS$
|
|
12390
|
+
h("span", { "aria-pressed": this.activated.toString(), class: { [CSS$v.handle]: true, [CSS$v.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
12383
12391
|
this.handleButton = el;
|
|
12384
12392
|
}, role: "button", tabindex: "0", title: this.textTitle }, h("calcite-icon", { icon: ICONS$7.drag, scale: "s" })));
|
|
12385
12393
|
}
|
|
@@ -12387,7 +12395,7 @@ let CalciteHandle$1 = class extends HTMLElement$1 {
|
|
|
12387
12395
|
static get style() { return calciteHandleCss; }
|
|
12388
12396
|
};
|
|
12389
12397
|
|
|
12390
|
-
const CSS$
|
|
12398
|
+
const CSS$u = {
|
|
12391
12399
|
icon: "icon",
|
|
12392
12400
|
flipRtl: "flip-rtl"
|
|
12393
12401
|
};
|
|
@@ -12503,7 +12511,7 @@ let CalciteIcon$1 = class extends HTMLElement$1 {
|
|
|
12503
12511
|
const semantic = !!textLabel;
|
|
12504
12512
|
const paths = [].concat(pathData || "");
|
|
12505
12513
|
return (h(Host, { "aria-hidden": (!semantic).toString(), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, h("svg", { class: {
|
|
12506
|
-
[CSS$
|
|
12514
|
+
[CSS$u.flipRtl]: dir === "rtl" && flipRtl,
|
|
12507
12515
|
svg: true
|
|
12508
12516
|
}, fill: "currentColor", height: "100%", viewBox: `0 0 ${size} ${size}`, width: "100%", xmlns: "http://www.w3.org/2000/svg" }, paths.map((path) => typeof path === "string" ? (h("path", { d: path })) : (h("path", { d: path.d, opacity: "opacity" in path ? path.opacity : 1 }))))));
|
|
12509
12517
|
}
|
|
@@ -12544,7 +12552,7 @@ let CalciteIcon$1 = class extends HTMLElement$1 {
|
|
|
12544
12552
|
static get style() { return calciteIconCss; }
|
|
12545
12553
|
};
|
|
12546
12554
|
|
|
12547
|
-
const CSS$
|
|
12555
|
+
const CSS$t = {
|
|
12548
12556
|
wrapper: "wrapper",
|
|
12549
12557
|
confirmChangesButton: "confirm-changes-button",
|
|
12550
12558
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -12692,12 +12700,12 @@ let CalciteInlineEditable$1 = class extends HTMLElement$1 {
|
|
|
12692
12700
|
this.scale || this.inputElement.scale || getElementProp(this.el, "scale", undefined);
|
|
12693
12701
|
}
|
|
12694
12702
|
render() {
|
|
12695
|
-
return (h("div", { class: CSS$
|
|
12703
|
+
return (h("div", { class: CSS$t.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler, onTransitionEnd: this.transitionEnd }, h("div", { class: CSS$t.inputWrapper }, h("slot", null)), h("div", { class: CSS$t.controlsWrapper }, h("calcite-button", { appearance: "transparent", class: CSS$t.enableEditingButton, color: "neutral", disabled: this.disabled, iconStart: "pencil", label: this.intlEnableEditing, onClick: this.enableEditingHandler, ref: (el) => (this.enableEditingButton = el), scale: this.scale, style: {
|
|
12696
12704
|
opacity: this.editingEnabled ? "0" : "1",
|
|
12697
12705
|
width: this.editingEnabled ? "0" : "inherit"
|
|
12698
12706
|
} }), this.shouldShowControls && [
|
|
12699
|
-
h("div", { class: CSS$
|
|
12700
|
-
h("calcite-button", { appearance: "solid", class: CSS$
|
|
12707
|
+
h("div", { class: CSS$t.cancelEditingButtonWrapper }, h("calcite-button", { appearance: "transparent", class: CSS$t.cancelEditingButton, color: "neutral", disabled: this.disabled, iconStart: "x", label: this.intlCancelEditing, onClick: this.cancelEditingHandler, ref: (el) => (this.cancelEditingButton = el), scale: this.scale })),
|
|
12708
|
+
h("calcite-button", { appearance: "solid", class: CSS$t.confirmChangesButton, color: "blue", disabled: this.disabled, iconStart: "check", label: this.intlConfirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, scale: this.scale })
|
|
12701
12709
|
])));
|
|
12702
12710
|
}
|
|
12703
12711
|
//--------------------------------------------------------------------------
|
|
@@ -12743,7 +12751,7 @@ let CalciteInlineEditable$1 = class extends HTMLElement$1 {
|
|
|
12743
12751
|
static get style() { return calciteInlineEditableCss; }
|
|
12744
12752
|
};
|
|
12745
12753
|
|
|
12746
|
-
const CSS$
|
|
12754
|
+
const CSS$s = {
|
|
12747
12755
|
loader: "loader",
|
|
12748
12756
|
clearButton: "clear-button",
|
|
12749
12757
|
editingEnabled: "editing-enabled",
|
|
@@ -12993,18 +13001,19 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
12993
13001
|
};
|
|
12994
13002
|
this.setValue = (value, nativeEvent, committing = false) => {
|
|
12995
13003
|
const previousValue = this.value;
|
|
12996
|
-
this.value = this.type === "number" ? sanitizeNumberString(value) : value;
|
|
12997
13004
|
if (this.type === "number") {
|
|
12998
|
-
|
|
13005
|
+
const sanitizedValue = sanitizeNumberString(value);
|
|
13006
|
+
this.value = sanitizedValue;
|
|
13007
|
+
this.setLocalizedValue(sanitizedValue);
|
|
13008
|
+
}
|
|
13009
|
+
else {
|
|
13010
|
+
this.value = value;
|
|
12999
13011
|
}
|
|
13000
13012
|
if (nativeEvent) {
|
|
13001
|
-
if (this.type === "number") {
|
|
13002
|
-
value = sanitizeNumberString(value);
|
|
13003
|
-
}
|
|
13004
13013
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
13005
13014
|
element: this.childEl,
|
|
13006
13015
|
nativeEvent,
|
|
13007
|
-
value
|
|
13016
|
+
value: this.value
|
|
13008
13017
|
});
|
|
13009
13018
|
if (calciteInputInputEvent.defaultPrevented) {
|
|
13010
13019
|
this.value = previousValue;
|
|
@@ -13070,7 +13079,7 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13070
13079
|
this.localizedValue = localizeNumberString(this.value, this.locale, this.groupSeparator);
|
|
13071
13080
|
}
|
|
13072
13081
|
else {
|
|
13073
|
-
this.value =
|
|
13082
|
+
this.value = "";
|
|
13074
13083
|
}
|
|
13075
13084
|
}
|
|
13076
13085
|
connectLabel(this);
|
|
@@ -13169,34 +13178,34 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13169
13178
|
// --------------------------------------------------------------------------
|
|
13170
13179
|
render() {
|
|
13171
13180
|
const dir = getElementDir(this.el);
|
|
13172
|
-
const loader = (h("div", { class: CSS$
|
|
13173
|
-
const inputClearButton = (h("button", { class: CSS$
|
|
13174
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
13181
|
+
const loader = (h("div", { class: CSS$s.loader }, h("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
13182
|
+
const inputClearButton = (h("button", { class: CSS$s.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, h("calcite-icon", { icon: "x", scale: "s" })));
|
|
13183
|
+
const iconEl = (h("calcite-icon", { class: CSS$s.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
13175
13184
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
13176
13185
|
const numberButtonsHorizontalUp = (h("button", { class: {
|
|
13177
|
-
[CSS$
|
|
13178
|
-
[CSS$
|
|
13186
|
+
[CSS$s.numberButtonItem]: true,
|
|
13187
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
13179
13188
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onMouseDown: this.numberButtonMouseDownHandler, onMouseOut: this.numberButtonMouseUpAndMouseOutHandler, onMouseUp: this.numberButtonMouseUpAndMouseOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
13180
13189
|
const numberButtonsHorizontalDown = (h("button", { class: {
|
|
13181
|
-
[CSS$
|
|
13182
|
-
[CSS$
|
|
13190
|
+
[CSS$s.numberButtonItem]: true,
|
|
13191
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
13183
13192
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onMouseDown: this.numberButtonMouseDownHandler, onMouseOut: this.numberButtonMouseUpAndMouseOutHandler, onMouseUp: this.numberButtonMouseUpAndMouseOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
13184
|
-
const numberButtonsVertical = (h("div", { class: CSS$
|
|
13185
|
-
const prefixText = h("div", { class: CSS$
|
|
13186
|
-
const suffixText = h("div", { class: CSS$
|
|
13193
|
+
const numberButtonsVertical = (h("div", { class: CSS$s.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
13194
|
+
const prefixText = h("div", { class: CSS$s.prefix }, this.prefixText);
|
|
13195
|
+
const suffixText = h("div", { class: CSS$s.suffix }, this.suffixText);
|
|
13187
13196
|
const localeNumberInput = this.type === "number" ? (h("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;
|
|
13188
13197
|
const childEl = this.type !== "number"
|
|
13189
13198
|
? [
|
|
13190
13199
|
h(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
13191
|
-
[CSS$
|
|
13192
|
-
[CSS$
|
|
13200
|
+
[CSS$s.editingEnabled]: this.editingEnabled,
|
|
13201
|
+
[CSS$s.inlineChild]: !!this.inlineEditableEl
|
|
13193
13202
|
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, max: this.maxString, maxLength: this.maxLength, min: this.minString, minLength: this.minLength, name: this.name, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputInputHandler, onKeyDown: this.inputKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildElRef, required: this.required ? true : null, step: this.step, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: this.type, value: this.value }),
|
|
13194
|
-
this.isTextarea ? (h("div", { class: CSS$
|
|
13203
|
+
this.isTextarea ? (h("div", { class: CSS$s.resizeIconWrapper }, h("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
13195
13204
|
]
|
|
13196
13205
|
: null;
|
|
13197
|
-
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$
|
|
13206
|
+
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$s.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
13198
13207
|
? numberButtonsHorizontalDown
|
|
13199
|
-
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$
|
|
13208
|
+
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$s.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$s.actionWrapper }, h("slot", { name: SLOTS$g.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
13200
13209
|
? numberButtonsVertical
|
|
13201
13210
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
13202
13211
|
? numberButtonsHorizontalUp
|
|
@@ -13458,8 +13467,8 @@ let CalciteInputDatePicker$1 = class extends HTMLElement$1 {
|
|
|
13458
13467
|
return (h(Host, { onBlur: this.deactivate, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": this.active.toString(), class: "input-container", role: "application" }, h("div", { class: "input-wrapper", ref: this.setStartWrapper }, h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none", onCalciteInputBlur: this.inputBlur, onCalciteInputFocus: this.startInputFocus, onCalciteInputInput: this.inputInput, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), h("div", { "aria-hidden": (!this.active).toString(), class: "menu-container", ref: this.setMenuEl }, h("div", { class: {
|
|
13459
13468
|
["calendar-picker-wrapper"]: true,
|
|
13460
13469
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
13461
|
-
[CSS$
|
|
13462
|
-
[CSS$
|
|
13470
|
+
[CSS$D.animation]: true,
|
|
13471
|
+
[CSS$D.animationActive]: this.active
|
|
13463
13472
|
}, onTransitionEnd: this.transitionEnd }, h("calcite-date-picker", { activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, locale: this.locale, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, startAsDate: this.startAsDate, tabIndex: 0, valueAsDate: this.valueAsDate }))), this.range && this.layout === "horizontal" && (h("div", { class: "horizontal-arrow-container" }, h("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (h("div", { class: "vertical-arrow-container" }, h("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (h("div", { class: "input-wrapper", ref: this.setEndWrapper }, h("calcite-input", { class: {
|
|
13464
13473
|
input: true,
|
|
13465
13474
|
"border-top-color-one": this.layout === "vertical" && this.range
|
|
@@ -14080,7 +14089,7 @@ let CalciteInputTimePicker$1 = class extends HTMLElement$1 {
|
|
|
14080
14089
|
static get style() { return calciteInputTimePickerCss; }
|
|
14081
14090
|
};
|
|
14082
14091
|
|
|
14083
|
-
const CSS$
|
|
14092
|
+
const CSS$r = {
|
|
14084
14093
|
container: "container"
|
|
14085
14094
|
};
|
|
14086
14095
|
|
|
@@ -14126,7 +14135,7 @@ let CalciteLabel$1 = class extends HTMLElement$1 {
|
|
|
14126
14135
|
//
|
|
14127
14136
|
//--------------------------------------------------------------------------
|
|
14128
14137
|
render() {
|
|
14129
|
-
return (h(Host, { onClick: this.labelClickHandler }, h("div", { class: CSS$
|
|
14138
|
+
return (h(Host, { onClick: this.labelClickHandler }, h("div", { class: CSS$r.container }, h("slot", null))));
|
|
14130
14139
|
}
|
|
14131
14140
|
get el() { return this; }
|
|
14132
14141
|
static get style() { return calciteLabelCss; }
|
|
@@ -14193,7 +14202,7 @@ let CalciteLink$1 = class extends HTMLElement$1 {
|
|
|
14193
14202
|
static get style() { return calciteLinkCss; }
|
|
14194
14203
|
};
|
|
14195
14204
|
|
|
14196
|
-
const CSS$
|
|
14205
|
+
const CSS$q = {
|
|
14197
14206
|
container: "container"
|
|
14198
14207
|
};
|
|
14199
14208
|
|
|
@@ -14221,13 +14230,13 @@ let CalciteList$1 = class extends HTMLElement$1 {
|
|
|
14221
14230
|
//
|
|
14222
14231
|
// --------------------------------------------------------------------------
|
|
14223
14232
|
render() {
|
|
14224
|
-
return (h(Host, { role: "list" }, h("div", { class: CSS$
|
|
14233
|
+
return (h(Host, { role: "list" }, h("div", { class: CSS$q.container }, h("slot", null))));
|
|
14225
14234
|
}
|
|
14226
14235
|
get el() { return this; }
|
|
14227
14236
|
static get style() { return calciteListCss; }
|
|
14228
14237
|
};
|
|
14229
14238
|
|
|
14230
|
-
const CSS$
|
|
14239
|
+
const CSS$p = {
|
|
14231
14240
|
container: "container",
|
|
14232
14241
|
contentContainer: "content-container",
|
|
14233
14242
|
nestedContainer: "nested-container",
|
|
@@ -14285,37 +14294,37 @@ let CalciteListItem$1 = class extends HTMLElement$1 {
|
|
|
14285
14294
|
// --------------------------------------------------------------------------
|
|
14286
14295
|
renderActionsStart() {
|
|
14287
14296
|
const { el } = this;
|
|
14288
|
-
return getSlotted(el, SLOTS$f.actionsStart) ? (h("div", { class: CSS$
|
|
14297
|
+
return getSlotted(el, SLOTS$f.actionsStart) ? (h("div", { class: CSS$p.actionsStart }, h("slot", { name: SLOTS$f.actionsStart }))) : null;
|
|
14289
14298
|
}
|
|
14290
14299
|
renderActionsEnd() {
|
|
14291
14300
|
const { el } = this;
|
|
14292
|
-
return getSlotted(el, SLOTS$f.actionsEnd) ? (h("div", { class: CSS$
|
|
14301
|
+
return getSlotted(el, SLOTS$f.actionsEnd) ? (h("div", { class: CSS$p.actionsEnd }, h("slot", { name: SLOTS$f.actionsEnd }))) : null;
|
|
14293
14302
|
}
|
|
14294
14303
|
renderContentStart() {
|
|
14295
14304
|
const { el } = this;
|
|
14296
|
-
return getSlotted(el, SLOTS$f.contentStart) ? (h("div", { class: CSS$
|
|
14305
|
+
return getSlotted(el, SLOTS$f.contentStart) ? (h("div", { class: CSS$p.contentStart }, h("slot", { name: SLOTS$f.contentStart }))) : null;
|
|
14297
14306
|
}
|
|
14298
14307
|
renderContentEnd() {
|
|
14299
14308
|
const { el } = this;
|
|
14300
|
-
return getSlotted(el, SLOTS$f.contentEnd) ? (h("div", { class: CSS$
|
|
14309
|
+
return getSlotted(el, SLOTS$f.contentEnd) ? (h("div", { class: CSS$p.contentEnd }, h("slot", { name: SLOTS$f.contentEnd }))) : null;
|
|
14301
14310
|
}
|
|
14302
14311
|
renderContent() {
|
|
14303
14312
|
const { label, description } = this;
|
|
14304
|
-
return !!label || !!description ? (h("div", { class: CSS$
|
|
14313
|
+
return !!label || !!description ? (h("div", { class: CSS$p.content }, label ? h("div", { class: CSS$p.label }, label) : null, description ? h("div", { class: CSS$p.description }, description) : null)) : null;
|
|
14305
14314
|
}
|
|
14306
14315
|
renderContentContainer() {
|
|
14307
14316
|
const { disabled, nonInteractive } = this;
|
|
14308
14317
|
const content = [this.renderContentStart(), this.renderContent(), this.renderContentEnd()];
|
|
14309
|
-
return !nonInteractive ? (h("button", { class: { [CSS$
|
|
14318
|
+
return !nonInteractive ? (h("button", { class: { [CSS$p.contentContainer]: true, [CSS$p.contentContainerButton]: true }, disabled: disabled, ref: (focusEl) => (this.focusEl = focusEl) }, content)) : (h("div", { class: CSS$p.contentContainer, ref: () => (this.focusEl = null) }, content));
|
|
14310
14319
|
}
|
|
14311
14320
|
render() {
|
|
14312
|
-
return (h(Host, { role: "listitem" }, h("div", { class: CSS$
|
|
14321
|
+
return (h(Host, { role: "listitem" }, h("div", { class: CSS$p.container }, this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), h("div", { class: CSS$p.nestedContainer }, h("slot", null))));
|
|
14313
14322
|
}
|
|
14314
14323
|
get el() { return this; }
|
|
14315
14324
|
static get style() { return calciteListItemCss; }
|
|
14316
14325
|
};
|
|
14317
14326
|
|
|
14318
|
-
const CSS$
|
|
14327
|
+
const CSS$o = {
|
|
14319
14328
|
heading: "heading",
|
|
14320
14329
|
container: "container"
|
|
14321
14330
|
};
|
|
@@ -14340,7 +14349,7 @@ let CalciteListItemGroup$1 = class extends HTMLElement$1 {
|
|
|
14340
14349
|
const parentLevel = (_a = el.closest("calcite-list, calcite-list-item-group")) === null || _a === void 0 ? void 0 : _a.headingLevel;
|
|
14341
14350
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
14342
14351
|
const level = headingLevel || relativeLevel || HEADING_LEVEL$5;
|
|
14343
|
-
return (h(Host, null, heading ? (h(CalciteHeading, { class: CSS$
|
|
14352
|
+
return (h(Host, null, heading ? (h(CalciteHeading, { class: CSS$o.heading, level: level }, heading)) : null, h("div", { class: CSS$o.container, role: "group" }, h("slot", null))));
|
|
14344
14353
|
}
|
|
14345
14354
|
get el() { return this; }
|
|
14346
14355
|
static get style() { return calciteListItemGroupCss; }
|
|
@@ -14527,7 +14536,7 @@ function isFocusable($elem) {
|
|
|
14527
14536
|
|| $elem instanceof HTMLIFrameElement);
|
|
14528
14537
|
}
|
|
14529
14538
|
|
|
14530
|
-
const CSS$
|
|
14539
|
+
const CSS$n = {
|
|
14531
14540
|
title: "title",
|
|
14532
14541
|
header: "header",
|
|
14533
14542
|
footer: "footer",
|
|
@@ -14666,17 +14675,17 @@ let CalciteModal$1 = class extends HTMLElement$1 {
|
|
|
14666
14675
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
14667
14676
|
}
|
|
14668
14677
|
render() {
|
|
14669
|
-
return (h(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, h("calcite-scrim", { class: CSS$
|
|
14678
|
+
return (h(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, h("calcite-scrim", { class: CSS$n.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), h("div", { class: "modal", onTransitionEnd: this.transitionEnd }, h("div", { "data-focus-fence": true, onFocus: this.focusLastElement, tabindex: "0" }), h("div", { class: CSS$n.header }, this.renderCloseButton(), h("header", { class: CSS$n.title }, h("slot", { name: CSS$n.header }))), h("div", { class: {
|
|
14670
14679
|
content: true,
|
|
14671
14680
|
"content--spaced": !this.noPadding,
|
|
14672
14681
|
"content--no-footer": !this.hasFooter
|
|
14673
14682
|
}, ref: (el) => (this.modalContent = el) }, h("slot", { name: SLOTS$e.content })), this.renderFooter(), h("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
|
14674
14683
|
}
|
|
14675
14684
|
renderFooter() {
|
|
14676
|
-
return this.hasFooter ? (h("div", { class: CSS$
|
|
14685
|
+
return this.hasFooter ? (h("div", { class: CSS$n.footer }, h("span", { class: CSS$n.back }, h("slot", { name: SLOTS$e.back })), h("span", { class: CSS$n.secondary }, h("slot", { name: SLOTS$e.secondary })), h("span", { class: CSS$n.primary }, h("slot", { name: SLOTS$e.primary })))) : null;
|
|
14677
14686
|
}
|
|
14678
14687
|
renderCloseButton() {
|
|
14679
|
-
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS$
|
|
14688
|
+
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS$n.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, h("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
14680
14689
|
}
|
|
14681
14690
|
renderStyle() {
|
|
14682
14691
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -14766,10 +14775,10 @@ let CalciteModal$1 = class extends HTMLElement$1 {
|
|
|
14766
14775
|
const contentEl = getSlotted(this.el, SLOTS$e.content);
|
|
14767
14776
|
this.titleId = ensureId(titleEl);
|
|
14768
14777
|
this.contentId = ensureId(contentEl);
|
|
14769
|
-
document.documentElement.classList.add(CSS$
|
|
14778
|
+
document.documentElement.classList.add(CSS$n.overflowHidden);
|
|
14770
14779
|
}
|
|
14771
14780
|
removeOverflowHiddenClass() {
|
|
14772
|
-
document.documentElement.classList.remove(CSS$
|
|
14781
|
+
document.documentElement.classList.remove(CSS$n.overflowHidden);
|
|
14773
14782
|
}
|
|
14774
14783
|
get el() { return this; }
|
|
14775
14784
|
static get watchers() { return {
|
|
@@ -14787,7 +14796,7 @@ const SLOTS$d = {
|
|
|
14787
14796
|
link: "link",
|
|
14788
14797
|
actionsEnd: "actions-end"
|
|
14789
14798
|
};
|
|
14790
|
-
const CSS$
|
|
14799
|
+
const CSS$m = {
|
|
14791
14800
|
actionsEnd: "actions-end",
|
|
14792
14801
|
close: "notice-close",
|
|
14793
14802
|
container: "container",
|
|
@@ -14849,9 +14858,9 @@ let CalciteNotice$1 = class extends HTMLElement$1 {
|
|
|
14849
14858
|
}
|
|
14850
14859
|
render() {
|
|
14851
14860
|
const { el } = this;
|
|
14852
|
-
const closeButton = (h("button", { "aria-label": this.intlClose, class: CSS$
|
|
14861
|
+
const closeButton = (h("button", { "aria-label": this.intlClose, class: CSS$m.close, onClick: this.close, ref: (el) => (this.closeButton = el) }, h("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
14853
14862
|
const hasActionEnd = getSlotted(el, SLOTS$d.actionsEnd);
|
|
14854
|
-
return (h("div", { class: CSS$
|
|
14863
|
+
return (h("div", { class: CSS$m.container }, this.requestedIcon ? (h("div", { class: CSS$m.icon }, h("calcite-icon", { icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: CSS$m.content }, h("slot", { name: SLOTS$d.title }), h("slot", { name: SLOTS$d.message }), h("slot", { name: SLOTS$d.link })), hasActionEnd ? (h("div", { class: CSS$m.actionsEnd }, h("slot", { name: SLOTS$d.actionsEnd }))) : null, this.dismissible ? closeButton : null));
|
|
14855
14864
|
}
|
|
14856
14865
|
//--------------------------------------------------------------------------
|
|
14857
14866
|
//
|
|
@@ -14995,7 +15004,7 @@ let CalciteOptionGroup$1 = class extends HTMLElement$1 {
|
|
|
14995
15004
|
static get style() { return calciteOptionGroupCss; }
|
|
14996
15005
|
};
|
|
14997
15006
|
|
|
14998
|
-
const CSS$
|
|
15007
|
+
const CSS$l = {
|
|
14999
15008
|
page: "page",
|
|
15000
15009
|
selected: "is-selected",
|
|
15001
15010
|
previous: "previous",
|
|
@@ -15130,8 +15139,8 @@ let CalcitePagination$1 = class extends HTMLElement$1 {
|
|
|
15130
15139
|
renderPage(start) {
|
|
15131
15140
|
const page = Math.floor(start / this.num) + (this.num === 1 ? 0 : 1);
|
|
15132
15141
|
return (h("button", { class: {
|
|
15133
|
-
[CSS$
|
|
15134
|
-
[CSS$
|
|
15142
|
+
[CSS$l.page]: true,
|
|
15143
|
+
[CSS$l.selected]: start === this.start
|
|
15135
15144
|
}, onClick: () => {
|
|
15136
15145
|
this.start = start;
|
|
15137
15146
|
this.emitUpdate();
|
|
@@ -15139,12 +15148,12 @@ let CalcitePagination$1 = class extends HTMLElement$1 {
|
|
|
15139
15148
|
}
|
|
15140
15149
|
renderLeftEllipsis() {
|
|
15141
15150
|
if (this.total / this.num > maxPagesDisplayed && this.showLeftEllipsis()) {
|
|
15142
|
-
return h("span", { class: `${CSS$
|
|
15151
|
+
return h("span", { class: `${CSS$l.ellipsis} ${CSS$l.ellipsisStart}` }, "\u2026");
|
|
15143
15152
|
}
|
|
15144
15153
|
}
|
|
15145
15154
|
renderRightEllipsis() {
|
|
15146
15155
|
if (this.total / this.num > maxPagesDisplayed && this.showRightEllipsis()) {
|
|
15147
|
-
return h("span", { class: `${CSS$
|
|
15156
|
+
return h("span", { class: `${CSS$l.ellipsis} ${CSS$l.ellipsisEnd}` }, "\u2026");
|
|
15148
15157
|
}
|
|
15149
15158
|
}
|
|
15150
15159
|
render() {
|
|
@@ -15152,18 +15161,18 @@ let CalcitePagination$1 = class extends HTMLElement$1 {
|
|
|
15152
15161
|
const prevDisabled = num === 1 ? start <= num : start < num;
|
|
15153
15162
|
const nextDisabled = num === 1 ? start + num > total : start + num > total;
|
|
15154
15163
|
return (h(Fragment, null, h("button", { "aria-label": this.textLabelPrevious, class: {
|
|
15155
|
-
[CSS$
|
|
15156
|
-
[CSS$
|
|
15164
|
+
[CSS$l.previous]: true,
|
|
15165
|
+
[CSS$l.disabled]: prevDisabled
|
|
15157
15166
|
}, disabled: prevDisabled, onClick: this.previousClicked }, h("calcite-icon", { flipRtl: true, icon: "chevronLeft", scale: "s" })), total > num ? this.renderPage(1) : null, this.renderLeftEllipsis(), this.renderPages(), this.renderRightEllipsis(), this.renderPage(this.getLastStart()), h("button", { "aria-label": this.textLabelNext, class: {
|
|
15158
|
-
[CSS$
|
|
15159
|
-
[CSS$
|
|
15167
|
+
[CSS$l.next]: true,
|
|
15168
|
+
[CSS$l.disabled]: nextDisabled
|
|
15160
15169
|
}, disabled: nextDisabled, onClick: this.nextClicked }, h("calcite-icon", { flipRtl: true, icon: "chevronRight", scale: "s" }))));
|
|
15161
15170
|
}
|
|
15162
15171
|
get el() { return this; }
|
|
15163
15172
|
static get style() { return calcitePaginationCss; }
|
|
15164
15173
|
};
|
|
15165
15174
|
|
|
15166
|
-
const CSS$
|
|
15175
|
+
const CSS$k = {
|
|
15167
15176
|
backButton: "back-button",
|
|
15168
15177
|
container: "container",
|
|
15169
15178
|
header: "header",
|
|
@@ -15306,24 +15315,24 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15306
15315
|
const { showBackButton, intlBack, backButtonClick } = this;
|
|
15307
15316
|
const label = intlBack || TEXT$8.back;
|
|
15308
15317
|
const icon = rtl ? ICONS$5.backRight : ICONS$5.backLeft;
|
|
15309
|
-
return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS$
|
|
15318
|
+
return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS$k.backButton, icon: icon, key: "back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: SLOTS$c.headerActionsStart, text: label })) : null;
|
|
15310
15319
|
}
|
|
15311
15320
|
renderHeaderContent() {
|
|
15312
15321
|
const { heading, headingLevel, summary } = this;
|
|
15313
|
-
const headingNode = heading ? (h(CalciteHeading, { class: CSS$
|
|
15314
|
-
const summaryNode = summary ? h("span", { class: CSS$
|
|
15315
|
-
return headingNode || summaryNode ? (h("div", { class: CSS$
|
|
15322
|
+
const headingNode = heading ? (h(CalciteHeading, { class: CSS$k.heading, level: headingLevel || HEADING_LEVEL$4 }, heading)) : null;
|
|
15323
|
+
const summaryNode = summary ? h("span", { class: CSS$k.summary }, summary) : null;
|
|
15324
|
+
return headingNode || summaryNode ? (h("div", { class: CSS$k.headerContent, key: "header-content" }, headingNode, summaryNode)) : null;
|
|
15316
15325
|
}
|
|
15317
15326
|
/**
|
|
15318
15327
|
* Allows user to override the entire header-content node.
|
|
15319
15328
|
*/
|
|
15320
15329
|
renderHeaderSlottedContent() {
|
|
15321
|
-
return (h("div", { class: CSS$
|
|
15330
|
+
return (h("div", { class: CSS$k.headerContent, key: "header-content" }, h("slot", { name: SLOTS$c.headerContent })));
|
|
15322
15331
|
}
|
|
15323
15332
|
renderHeaderStartActions() {
|
|
15324
15333
|
const { el } = this;
|
|
15325
15334
|
const hasStartActions = getSlotted(el, SLOTS$c.headerActionsStart);
|
|
15326
|
-
return hasStartActions ? (h("div", { class: { [CSS$
|
|
15335
|
+
return hasStartActions ? (h("div", { class: { [CSS$k.headerActionsStart]: true, [CSS$k.headerActions]: true }, key: "header-actions-start" }, h("slot", { name: SLOTS$c.headerActionsStart }))) : null;
|
|
15327
15336
|
}
|
|
15328
15337
|
renderHeaderActionsEnd() {
|
|
15329
15338
|
const { dismiss, dismissible, el, intlClose } = this;
|
|
@@ -15331,7 +15340,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15331
15340
|
const dismissibleNode = dismissible ? (h("calcite-action", { "aria-label": text, icon: ICONS$5.close, onClick: dismiss, ref: this.setDismissRef, text: text })) : null;
|
|
15332
15341
|
const slotNode = h("slot", { name: SLOTS$c.headerActionsEnd });
|
|
15333
15342
|
const hasEndActions = getSlotted(el, SLOTS$c.headerActionsEnd);
|
|
15334
|
-
return hasEndActions || dismissibleNode ? (h("div", { class: { [CSS$
|
|
15343
|
+
return hasEndActions || dismissibleNode ? (h("div", { class: { [CSS$k.headerActionsEnd]: true, [CSS$k.headerActions]: true }, key: "header-actions-end" }, slotNode, dismissibleNode)) : null;
|
|
15335
15344
|
}
|
|
15336
15345
|
renderMenu() {
|
|
15337
15346
|
const { el, intlOptions, menuOpen } = this;
|
|
@@ -15352,7 +15361,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15352
15361
|
headerContentNode ||
|
|
15353
15362
|
actionsNodeEnd ||
|
|
15354
15363
|
headerMenuNode ||
|
|
15355
|
-
showBackButton ? (h("header", { class: CSS$
|
|
15364
|
+
showBackButton ? (h("header", { class: CSS$k.header }, backButtonNode, actionsNodeStart, headerContentNode, actionsNodeEnd, headerMenuNode)) : null;
|
|
15356
15365
|
}
|
|
15357
15366
|
/**
|
|
15358
15367
|
* Allows user to override the entire footer node.
|
|
@@ -15360,24 +15369,24 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15360
15369
|
renderFooterSlottedContent() {
|
|
15361
15370
|
const { el } = this;
|
|
15362
15371
|
const hasFooterSlottedContent = getSlotted(el, SLOTS$c.footer);
|
|
15363
|
-
return hasFooterSlottedContent ? (h("footer", { class: CSS$
|
|
15372
|
+
return hasFooterSlottedContent ? (h("footer", { class: CSS$k.footer }, h("slot", { name: SLOTS$c.footer }))) : null;
|
|
15364
15373
|
}
|
|
15365
15374
|
renderFooterActions() {
|
|
15366
15375
|
const { el } = this;
|
|
15367
15376
|
const hasFooterActions = getSlotted(el, SLOTS$c.footerActions);
|
|
15368
|
-
return hasFooterActions ? (h("footer", { class: CSS$
|
|
15377
|
+
return hasFooterActions ? (h("footer", { class: CSS$k.footer }, h("slot", { name: SLOTS$c.footerActions }))) : null;
|
|
15369
15378
|
}
|
|
15370
15379
|
renderContent() {
|
|
15371
15380
|
const { el } = this;
|
|
15372
15381
|
const hasFab = getSlotted(el, SLOTS$c.fab);
|
|
15373
|
-
return hasFab ? (h("div", { class: { [CSS$
|
|
15382
|
+
return hasFab ? (h("div", { class: { [CSS$k.contentWrapper]: true, [CSS$k.contentHeight]: true }, onScroll: this.panelScrollHandler, tabIndex: 0 }, h("section", { class: CSS$k.contentContainer }, h("slot", null)), this.renderFab())) : (h("section", { class: { [CSS$k.contentWrapper]: true, [CSS$k.contentContainer]: true }, onScroll: this.panelScrollHandler, tabIndex: 0 }, h("slot", null)));
|
|
15374
15383
|
}
|
|
15375
15384
|
renderFab() {
|
|
15376
|
-
return (h("div", { class: CSS$
|
|
15385
|
+
return (h("div", { class: CSS$k.fabContainer }, h("slot", { name: SLOTS$c.fab })));
|
|
15377
15386
|
}
|
|
15378
15387
|
render() {
|
|
15379
15388
|
const { dismissed, disabled, dismissible, loading, panelKeyDownHandler } = this;
|
|
15380
|
-
const panelNode = (h("article", { "aria-busy": loading.toString(), class: CSS$
|
|
15389
|
+
const panelNode = (h("article", { "aria-busy": loading.toString(), class: CSS$k.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.renderFooterSlottedContent() || this.renderFooterActions()));
|
|
15381
15390
|
return (h(Fragment, null, loading || disabled ? h("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
15382
15391
|
}
|
|
15383
15392
|
get el() { return this; }
|
|
@@ -15387,7 +15396,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15387
15396
|
static get style() { return calcitePanelCss; }
|
|
15388
15397
|
};
|
|
15389
15398
|
|
|
15390
|
-
const CSS$
|
|
15399
|
+
const CSS$j = {
|
|
15391
15400
|
sticky: "sticky-pos"
|
|
15392
15401
|
};
|
|
15393
15402
|
var ICON_TYPES$1;
|
|
@@ -15668,7 +15677,7 @@ const List = (_a) => {
|
|
|
15668
15677
|
const defaultSlot = h("slot", null);
|
|
15669
15678
|
return (h(Host, Object.assign({ "aria-busy": loading.toString(), "aria-disabled": disabled.toString(), role: "menu" }, rest),
|
|
15670
15679
|
h("section", null,
|
|
15671
|
-
h("header", { class: { [CSS$
|
|
15680
|
+
h("header", { class: { [CSS$j.sticky]: true } },
|
|
15672
15681
|
filterEnabled ? (h("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,
|
|
15673
15682
|
h("slot", { name: SLOTS$b.menuActions })),
|
|
15674
15683
|
loading || disabled ? h("calcite-scrim", { loading: loading }) : null,
|
|
@@ -15798,7 +15807,7 @@ let CalcitePickList$1 = class extends HTMLElement$1 {
|
|
|
15798
15807
|
static get style() { return calcitePickListCss; }
|
|
15799
15808
|
};
|
|
15800
15809
|
|
|
15801
|
-
const CSS$
|
|
15810
|
+
const CSS$i = {
|
|
15802
15811
|
heading: "heading",
|
|
15803
15812
|
container: "container",
|
|
15804
15813
|
indented: "container--indented"
|
|
@@ -15826,20 +15835,20 @@ let CalcitePickListGroup$1 = class extends HTMLElement$1 {
|
|
|
15826
15835
|
const { el, groupTitle, headingLevel } = this;
|
|
15827
15836
|
const hasParentItem = getSlotted(el, SLOTS$a.parentItem) !== null;
|
|
15828
15837
|
const sectionClasses = {
|
|
15829
|
-
[CSS$
|
|
15830
|
-
[CSS$
|
|
15838
|
+
[CSS$i.container]: true,
|
|
15839
|
+
[CSS$i.indented]: hasParentItem
|
|
15831
15840
|
};
|
|
15832
15841
|
const title = groupTitle;
|
|
15833
15842
|
const parentLevel = (_a = el.closest("calcite-pick-list")) === null || _a === void 0 ? void 0 : _a.headingLevel;
|
|
15834
15843
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
15835
15844
|
const level = headingLevel || relativeLevel || HEADING_LEVEL$3;
|
|
15836
|
-
return (h(Fragment, null, title ? (h(CalciteHeading, { class: CSS$
|
|
15845
|
+
return (h(Fragment, null, title ? (h(CalciteHeading, { class: CSS$i.heading, level: level }, title)) : null, h("slot", { name: SLOTS$a.parentItem }), h("section", { class: sectionClasses }, h("slot", null))));
|
|
15837
15846
|
}
|
|
15838
15847
|
get el() { return this; }
|
|
15839
15848
|
static get style() { return calcitePickListGroupCss; }
|
|
15840
15849
|
};
|
|
15841
15850
|
|
|
15842
|
-
const CSS$
|
|
15851
|
+
const CSS$h = {
|
|
15843
15852
|
actions: "actions",
|
|
15844
15853
|
actionsEnd: "actions--end",
|
|
15845
15854
|
actionsStart: "actions--start",
|
|
@@ -15984,26 +15993,26 @@ let CalcitePickListItem$1 = class extends HTMLElement$1 {
|
|
|
15984
15993
|
return null;
|
|
15985
15994
|
}
|
|
15986
15995
|
return (h("span", { class: {
|
|
15987
|
-
[CSS$
|
|
15988
|
-
[CSS$
|
|
15996
|
+
[CSS$h.icon]: true,
|
|
15997
|
+
[CSS$h.iconDot]: icon === ICON_TYPES$1.circle
|
|
15989
15998
|
}, onClick: this.pickListClickHandler }, icon === ICON_TYPES$1.square ? h("calcite-icon", { icon: ICONS$4.checked, scale: "s" }) : null));
|
|
15990
15999
|
}
|
|
15991
16000
|
renderRemoveAction() {
|
|
15992
|
-
return this.removable ? (h("calcite-action", { class: CSS$
|
|
16001
|
+
return this.removable ? (h("calcite-action", { class: CSS$h.remove, icon: ICONS$4.remove, onCalciteActionClick: this.removeClickHandler, slot: SLOTS$9.actionsEnd, text: this.intlRemove })) : null;
|
|
15993
16002
|
}
|
|
15994
16003
|
renderActionsStart() {
|
|
15995
16004
|
const { el } = this;
|
|
15996
16005
|
const hasActionsStart = getSlotted(el, SLOTS$9.actionsStart);
|
|
15997
|
-
return hasActionsStart ? (h("div", { class: { [CSS$
|
|
16006
|
+
return hasActionsStart ? (h("div", { class: { [CSS$h.actions]: true, [CSS$h.actionsStart]: true } }, h("slot", { name: SLOTS$9.actionsStart }))) : null;
|
|
15998
16007
|
}
|
|
15999
16008
|
renderActionsEnd() {
|
|
16000
16009
|
const { el, removable } = this;
|
|
16001
16010
|
const hasActionsEnd = getSlotted(el, SLOTS$9.actionsEnd);
|
|
16002
|
-
return hasActionsEnd || removable ? (h("div", { class: { [CSS$
|
|
16011
|
+
return hasActionsEnd || removable ? (h("div", { class: { [CSS$h.actions]: true, [CSS$h.actionsEnd]: true } }, h("slot", { name: SLOTS$9.actionsEnd }), this.renderRemoveAction())) : null;
|
|
16003
16012
|
}
|
|
16004
16013
|
render() {
|
|
16005
16014
|
const { description, label } = this;
|
|
16006
|
-
return (h(Fragment, null, this.renderIcon(), this.renderActionsStart(), h("label", { "aria-label": label, class: CSS$
|
|
16015
|
+
return (h(Fragment, null, this.renderIcon(), this.renderActionsStart(), h("label", { "aria-label": label, class: CSS$h.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, ref: (focusEl) => (this.focusEl = focusEl), tabIndex: 0 }, h("div", { "aria-checked": this.selected.toString(), class: CSS$h.textContainer, role: "menuitemcheckbox" }, h("span", { class: CSS$h.title }, label), description ? h("span", { class: CSS$h.description }, description) : null)), this.renderActionsEnd()));
|
|
16007
16016
|
}
|
|
16008
16017
|
get el() { return this; }
|
|
16009
16018
|
static get watchers() { return {
|
|
@@ -16016,7 +16025,7 @@ let CalcitePickListItem$1 = class extends HTMLElement$1 {
|
|
|
16016
16025
|
static get style() { return calcitePickListItemCss; }
|
|
16017
16026
|
};
|
|
16018
16027
|
|
|
16019
|
-
const CSS$
|
|
16028
|
+
const CSS$g = {
|
|
16020
16029
|
container: "container",
|
|
16021
16030
|
arrow: "arrow",
|
|
16022
16031
|
imageContainer: "image-container",
|
|
@@ -16272,25 +16281,25 @@ let CalcitePopover$1 = class extends HTMLElement$1 {
|
|
|
16272
16281
|
// --------------------------------------------------------------------------
|
|
16273
16282
|
renderCloseButton() {
|
|
16274
16283
|
const { dismissible, closeButton, intlClose } = this;
|
|
16275
|
-
return dismissible || closeButton ? (h("calcite-action", { class: CSS$
|
|
16284
|
+
return dismissible || closeButton ? (h("calcite-action", { class: CSS$g.closeButton, onClick: this.hide, ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl), text: intlClose }, h("calcite-icon", { icon: "x", scale: "m" }))) : null;
|
|
16276
16285
|
}
|
|
16277
16286
|
renderHeader() {
|
|
16278
16287
|
const { heading, headingLevel } = this;
|
|
16279
|
-
const headingNode = heading ? (h(CalciteHeading, { class: CSS$
|
|
16280
|
-
return headingNode ? (h("div", { class: CSS$
|
|
16288
|
+
const headingNode = heading ? (h(CalciteHeading, { class: CSS$g.heading, level: headingLevel || HEADING_LEVEL$2 }, heading)) : null;
|
|
16289
|
+
return headingNode ? (h("div", { class: CSS$g.header }, headingNode, this.renderCloseButton())) : null;
|
|
16281
16290
|
}
|
|
16282
16291
|
render() {
|
|
16283
16292
|
const { effectiveReferenceElement, heading, label, open, disablePointer } = this;
|
|
16284
16293
|
const displayed = effectiveReferenceElement && open;
|
|
16285
16294
|
const hidden = !displayed;
|
|
16286
|
-
const arrowNode = !disablePointer ? (h("div", { class: CSS$
|
|
16295
|
+
const arrowNode = !disablePointer ? (h("div", { class: CSS$g.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) })) : null;
|
|
16287
16296
|
return (h(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, h("div", { class: {
|
|
16288
|
-
[CSS$
|
|
16289
|
-
[CSS$
|
|
16297
|
+
[CSS$D.animation]: true,
|
|
16298
|
+
[CSS$D.animationActive]: displayed
|
|
16290
16299
|
}, onTransitionEnd: this.transitionEnd }, arrowNode, h("div", { class: {
|
|
16291
|
-
[CSS$
|
|
16292
|
-
[CSS$
|
|
16293
|
-
} }, this.renderHeader(), h("div", { class: CSS$
|
|
16300
|
+
[CSS$g.hasHeader]: !!heading,
|
|
16301
|
+
[CSS$g.container]: true
|
|
16302
|
+
} }, this.renderHeader(), h("div", { class: CSS$g.content }, h("slot", null)), !heading ? this.renderCloseButton() : null))));
|
|
16294
16303
|
}
|
|
16295
16304
|
get el() { return this; }
|
|
16296
16305
|
static get watchers() { return {
|
|
@@ -16396,11 +16405,11 @@ let CalciteProgress$1 = class extends HTMLElement$1 {
|
|
|
16396
16405
|
static get style() { return calciteProgressCss; }
|
|
16397
16406
|
};
|
|
16398
16407
|
|
|
16399
|
-
const CSS$
|
|
16408
|
+
const CSS$f = {
|
|
16400
16409
|
container: "container"
|
|
16401
16410
|
};
|
|
16402
16411
|
|
|
16403
|
-
const calciteRadioButtonCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;cursor:pointer}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host .radio{cursor:pointer;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([hovered]) .radio,:host(:not([checked])[focused]) .radio{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([disabled]){cursor:pointer}:host([disabled]) .radio{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}:host([hovered][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([scale=s]){--calcite-radio-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size:var(--calcite-font-size-0)}.radio{height:var(--calcite-radio-size);max-width:var(--calcite-radio-size);min-width:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}:host([scale=s][focused][checked]) .radio{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}:host([scale=m][focused][checked]) .radio{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}:host([scale=l][focused][checked]) .radio{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
16412
|
+
const calciteRadioButtonCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;cursor:pointer}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host .radio{cursor:pointer;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([hovered]) .radio,:host(:not([checked])[focused]:not([disabled])) .radio{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([disabled]){cursor:pointer}:host([disabled]) .radio{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}:host([hovered][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([scale=s]){--calcite-radio-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size:var(--calcite-font-size-0)}.radio{height:var(--calcite-radio-size);max-width:var(--calcite-radio-size);min-width:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}:host([scale=s][focused][checked]:not([disabled])) .radio{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}:host([scale=m][focused][checked]:not([disabled])) .radio{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}:host([scale=l][focused][checked]:not([disabled])) .radio{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
16404
16413
|
|
|
16405
16414
|
let CalciteRadioButton$1 = class extends HTMLElement$1 {
|
|
16406
16415
|
constructor() {
|
|
@@ -16515,8 +16524,10 @@ let CalciteRadioButton$1 = class extends HTMLElement$1 {
|
|
|
16515
16524
|
this.calciteInternalRadioButtonBlur.emit();
|
|
16516
16525
|
};
|
|
16517
16526
|
this.onContainerFocus = () => {
|
|
16518
|
-
this.
|
|
16519
|
-
|
|
16527
|
+
if (!this.disabled) {
|
|
16528
|
+
this.focused = true;
|
|
16529
|
+
this.calciteInternalRadioButtonFocus.emit();
|
|
16530
|
+
}
|
|
16520
16531
|
};
|
|
16521
16532
|
}
|
|
16522
16533
|
checkedChanged(newChecked) {
|
|
@@ -16539,7 +16550,9 @@ let CalciteRadioButton$1 = class extends HTMLElement$1 {
|
|
|
16539
16550
|
//--------------------------------------------------------------------------
|
|
16540
16551
|
/** Sets focus on the component. */
|
|
16541
16552
|
async setFocus() {
|
|
16542
|
-
|
|
16553
|
+
if (!this.disabled) {
|
|
16554
|
+
focusElement(this.containerEl);
|
|
16555
|
+
}
|
|
16543
16556
|
}
|
|
16544
16557
|
onLabelClick(event) {
|
|
16545
16558
|
if (!this.disabled && !this.hidden) {
|
|
@@ -16592,6 +16605,12 @@ let CalciteRadioButton$1 = class extends HTMLElement$1 {
|
|
|
16592
16605
|
}
|
|
16593
16606
|
});
|
|
16594
16607
|
}
|
|
16608
|
+
getTabIndex() {
|
|
16609
|
+
if (this.disabled) {
|
|
16610
|
+
return undefined;
|
|
16611
|
+
}
|
|
16612
|
+
return this.checked || this.isDefaultSelectable() ? 0 : -1;
|
|
16613
|
+
}
|
|
16595
16614
|
//--------------------------------------------------------------------------
|
|
16596
16615
|
//
|
|
16597
16616
|
// Event Listeners
|
|
@@ -16618,7 +16637,7 @@ let CalciteRadioButton$1 = class extends HTMLElement$1 {
|
|
|
16618
16637
|
connectForm(this);
|
|
16619
16638
|
}
|
|
16620
16639
|
componentDidLoad() {
|
|
16621
|
-
if (this.focused) {
|
|
16640
|
+
if (this.focused && !this.disabled) {
|
|
16622
16641
|
this.setFocus();
|
|
16623
16642
|
}
|
|
16624
16643
|
}
|
|
@@ -16632,7 +16651,8 @@ let CalciteRadioButton$1 = class extends HTMLElement$1 {
|
|
|
16632
16651
|
//
|
|
16633
16652
|
// --------------------------------------------------------------------------
|
|
16634
16653
|
render() {
|
|
16635
|
-
|
|
16654
|
+
const tabIndex = this.getTabIndex();
|
|
16655
|
+
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: CSS$f.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, ref: this.setContainerEl, role: "radio", tabIndex: tabIndex }, h("div", { class: "radio" })), h(HiddenFormInputSlot, { component: this })));
|
|
16636
16656
|
}
|
|
16637
16657
|
get el() { return this; }
|
|
16638
16658
|
static get watchers() { return {
|
|
@@ -16924,7 +16944,7 @@ let CalciteRadioGroup$1 = class extends HTMLElement$1 {
|
|
|
16924
16944
|
const SLOTS$8 = {
|
|
16925
16945
|
input: "input"
|
|
16926
16946
|
};
|
|
16927
|
-
const CSS$
|
|
16947
|
+
const CSS$e = {
|
|
16928
16948
|
radioGroupItemIcon: "radio-group-item-icon"
|
|
16929
16949
|
};
|
|
16930
16950
|
|
|
@@ -16947,37 +16967,16 @@ let CalciteRadioGroupItem$1 = class extends HTMLElement$1 {
|
|
|
16947
16967
|
this.iconFlipRtl = false;
|
|
16948
16968
|
/** optionally used with icon, select where to position the icon */
|
|
16949
16969
|
this.iconPosition = "start";
|
|
16950
|
-
this.mutationObserver = createObserver("mutation", () => this.syncFromExternalInput());
|
|
16951
16970
|
}
|
|
16952
16971
|
handleCheckedChange() {
|
|
16953
16972
|
this.calciteRadioGroupItemChange.emit();
|
|
16954
|
-
this.syncToExternalInput();
|
|
16955
|
-
}
|
|
16956
|
-
//--------------------------------------------------------------------------
|
|
16957
|
-
//
|
|
16958
|
-
// Lifecycle
|
|
16959
|
-
//
|
|
16960
|
-
//--------------------------------------------------------------------------
|
|
16961
|
-
connectedCallback() {
|
|
16962
|
-
var _a;
|
|
16963
|
-
const inputProxy = this.el.querySelector(`input[slot=${SLOTS$8.input}]`);
|
|
16964
|
-
if (inputProxy) {
|
|
16965
|
-
this.value = inputProxy.value;
|
|
16966
|
-
this.checked = inputProxy.checked;
|
|
16967
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(inputProxy, { attributes: true });
|
|
16968
|
-
}
|
|
16969
|
-
this.inputProxy = inputProxy;
|
|
16970
|
-
}
|
|
16971
|
-
disconnectedCallback() {
|
|
16972
|
-
var _a;
|
|
16973
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
16974
16973
|
}
|
|
16975
16974
|
render() {
|
|
16976
16975
|
const { checked, value } = this;
|
|
16977
16976
|
const scale = getElementProp(this.el, "scale", "m");
|
|
16978
16977
|
const appearance = getElementProp(this.el, "appearance", "solid");
|
|
16979
16978
|
const layout = getElementProp(this.el, "layout", "horizontal");
|
|
16980
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
16979
|
+
const iconEl = (h("calcite-icon", { class: CSS$e.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
16981
16980
|
return (h(Host, { "aria-checked": checked.toString(), role: "radio" }, h("label", { class: {
|
|
16982
16981
|
"label--scale-s": scale === "s",
|
|
16983
16982
|
"label--scale-m": scale === "m",
|
|
@@ -16986,29 +16985,6 @@ let CalciteRadioGroupItem$1 = class extends HTMLElement$1 {
|
|
|
16986
16985
|
"label--outline": appearance === "outline"
|
|
16987
16986
|
} }, this.icon && this.iconPosition === "start" ? iconEl : null, h("slot", null, value), h("slot", { name: SLOTS$8.input }), this.icon && this.iconPosition === "end" ? iconEl : null)));
|
|
16988
16987
|
}
|
|
16989
|
-
//--------------------------------------------------------------------------
|
|
16990
|
-
//
|
|
16991
|
-
// Private Methods
|
|
16992
|
-
//
|
|
16993
|
-
//--------------------------------------------------------------------------
|
|
16994
|
-
syncFromExternalInput() {
|
|
16995
|
-
if (this.inputProxy) {
|
|
16996
|
-
this.value = this.inputProxy.value;
|
|
16997
|
-
this.checked = this.inputProxy.checked;
|
|
16998
|
-
}
|
|
16999
|
-
}
|
|
17000
|
-
syncToExternalInput() {
|
|
17001
|
-
if (!this.inputProxy) {
|
|
17002
|
-
return;
|
|
17003
|
-
}
|
|
17004
|
-
this.inputProxy.value = this.value;
|
|
17005
|
-
if (this.checked) {
|
|
17006
|
-
this.inputProxy.setAttribute("checked", "");
|
|
17007
|
-
}
|
|
17008
|
-
else {
|
|
17009
|
-
this.inputProxy.removeAttribute("checked");
|
|
17010
|
-
}
|
|
17011
|
-
}
|
|
17012
16988
|
get el() { return this; }
|
|
17013
16989
|
static get watchers() { return {
|
|
17014
16990
|
"checked": ["handleCheckedChange"]
|
|
@@ -17132,7 +17108,7 @@ let CalciteRating$1 = class extends HTMLElement$1 {
|
|
|
17132
17108
|
static get style() { return calciteRatingCss; }
|
|
17133
17109
|
};
|
|
17134
17110
|
|
|
17135
|
-
const CSS$
|
|
17111
|
+
const CSS$d = {
|
|
17136
17112
|
scrim: "scrim",
|
|
17137
17113
|
content: "content"
|
|
17138
17114
|
};
|
|
@@ -17171,14 +17147,14 @@ let CalciteScrim$1 = class extends HTMLElement$1 {
|
|
|
17171
17147
|
const { el, loading, intlLoading } = this;
|
|
17172
17148
|
const hasContent = el.innerHTML.trim().length > 0;
|
|
17173
17149
|
const loaderNode = loading ? h("calcite-loader", { active: true, label: intlLoading }) : null;
|
|
17174
|
-
const contentNode = hasContent ? (h("div", { class: CSS$
|
|
17175
|
-
return (h("div", { class: CSS$
|
|
17150
|
+
const contentNode = hasContent ? (h("div", { class: CSS$d.content }, h("slot", null))) : null;
|
|
17151
|
+
return (h("div", { class: CSS$d.scrim }, loaderNode, contentNode));
|
|
17176
17152
|
}
|
|
17177
17153
|
get el() { return this; }
|
|
17178
17154
|
static get style() { return calciteScrimCss; }
|
|
17179
17155
|
};
|
|
17180
17156
|
|
|
17181
|
-
const CSS$
|
|
17157
|
+
const CSS$c = {
|
|
17182
17158
|
icon: "icon",
|
|
17183
17159
|
iconContainer: "icon-container",
|
|
17184
17160
|
select: "select"
|
|
@@ -17373,10 +17349,10 @@ let CalciteSelect$1 = class extends HTMLElement$1 {
|
|
|
17373
17349
|
//
|
|
17374
17350
|
//--------------------------------------------------------------------------
|
|
17375
17351
|
renderChevron() {
|
|
17376
|
-
return (h("div", { class: CSS$
|
|
17352
|
+
return (h("div", { class: CSS$c.iconContainer }, h("calcite-icon", { class: CSS$c.icon, icon: "chevron-down", scale: "s" })));
|
|
17377
17353
|
}
|
|
17378
17354
|
render() {
|
|
17379
|
-
return (h(Fragment, null, h("select", { "aria-label": this.label, class: CSS$
|
|
17355
|
+
return (h(Fragment, null, h("select", { "aria-label": this.label, class: CSS$c.select, disabled: this.disabled, onChange: this.handleInternalSelectChange, ref: this.storeSelectRef }, h("slot", null)), this.renderChevron(), h(HiddenFormInputSlot, { component: this })));
|
|
17380
17356
|
}
|
|
17381
17357
|
get el() { return this; }
|
|
17382
17358
|
static get watchers() { return {
|
|
@@ -17386,7 +17362,7 @@ let CalciteSelect$1 = class extends HTMLElement$1 {
|
|
|
17386
17362
|
static get style() { return calciteSelectCss; }
|
|
17387
17363
|
};
|
|
17388
17364
|
|
|
17389
|
-
const CSS$
|
|
17365
|
+
const CSS$b = {
|
|
17390
17366
|
main: "main",
|
|
17391
17367
|
mainReversed: "main--reversed",
|
|
17392
17368
|
content: "content",
|
|
@@ -17431,25 +17407,25 @@ let CalciteShell$1 = class extends HTMLElement$1 {
|
|
|
17431
17407
|
const content = !!this.contentBehind
|
|
17432
17408
|
? [
|
|
17433
17409
|
h("div", { class: {
|
|
17434
|
-
[CSS$
|
|
17435
|
-
[CSS$
|
|
17410
|
+
[CSS$b.content]: true,
|
|
17411
|
+
[CSS$b.contentBehind]: !!this.contentBehind
|
|
17436
17412
|
} }, h("slot", null)),
|
|
17437
17413
|
h("slot", { name: SLOTS$7.centerRow })
|
|
17438
17414
|
]
|
|
17439
17415
|
: [
|
|
17440
|
-
h("div", { class: CSS$
|
|
17416
|
+
h("div", { class: CSS$b.content }, h("slot", null), h("slot", { name: SLOTS$7.centerRow }))
|
|
17441
17417
|
];
|
|
17442
17418
|
return content;
|
|
17443
17419
|
}
|
|
17444
17420
|
renderFooter() {
|
|
17445
17421
|
const hasFooter = !!getSlotted(this.el, SLOTS$7.footer);
|
|
17446
|
-
return hasFooter ? (h("div", { class: CSS$
|
|
17422
|
+
return hasFooter ? (h("div", { class: CSS$b.footer }, h("slot", { name: SLOTS$7.footer }))) : null;
|
|
17447
17423
|
}
|
|
17448
17424
|
renderMain() {
|
|
17449
17425
|
const primaryPanel = getSlotted(this.el, SLOTS$7.primaryPanel);
|
|
17450
17426
|
const mainClasses = {
|
|
17451
|
-
[CSS$
|
|
17452
|
-
[CSS$
|
|
17427
|
+
[CSS$b.main]: true,
|
|
17428
|
+
[CSS$b.mainReversed]: (primaryPanel === null || primaryPanel === void 0 ? void 0 : primaryPanel.position) === "end"
|
|
17453
17429
|
};
|
|
17454
17430
|
return (h("div", { class: mainClasses }, h("slot", { name: SLOTS$7.primaryPanel }), this.renderContent(), h("slot", { name: SLOTS$7.contextualPanel })));
|
|
17455
17431
|
}
|
|
@@ -17460,7 +17436,7 @@ let CalciteShell$1 = class extends HTMLElement$1 {
|
|
|
17460
17436
|
static get style() { return calciteShellCss; }
|
|
17461
17437
|
};
|
|
17462
17438
|
|
|
17463
|
-
const CSS$
|
|
17439
|
+
const CSS$a = {
|
|
17464
17440
|
actionBarContainer: "action-bar-container",
|
|
17465
17441
|
content: "content"
|
|
17466
17442
|
};
|
|
@@ -17500,9 +17476,9 @@ let CalciteShellCenterRow$1 = class extends HTMLElement$1 {
|
|
|
17500
17476
|
// --------------------------------------------------------------------------
|
|
17501
17477
|
render() {
|
|
17502
17478
|
const { el } = this;
|
|
17503
|
-
const contentNode = (h("div", { class: CSS$
|
|
17479
|
+
const contentNode = (h("div", { class: CSS$a.content }, h("slot", null)));
|
|
17504
17480
|
const actionBar = getSlotted(el, SLOTS$6.actionBar);
|
|
17505
|
-
const actionBarNode = actionBar ? (h("div", { class: CSS$
|
|
17481
|
+
const actionBarNode = actionBar ? (h("div", { class: CSS$a.actionBarContainer }, h("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
17506
17482
|
const children = [actionBarNode, contentNode];
|
|
17507
17483
|
if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
|
|
17508
17484
|
children.reverse();
|
|
@@ -17513,7 +17489,7 @@ let CalciteShellCenterRow$1 = class extends HTMLElement$1 {
|
|
|
17513
17489
|
static get style() { return calciteShellCenterRowCss; }
|
|
17514
17490
|
};
|
|
17515
17491
|
|
|
17516
|
-
const CSS$
|
|
17492
|
+
const CSS$9 = {
|
|
17517
17493
|
container: "container",
|
|
17518
17494
|
content: "content",
|
|
17519
17495
|
contentHeader: "content__header",
|
|
@@ -17690,19 +17666,19 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17690
17666
|
renderHeader() {
|
|
17691
17667
|
const { el } = this;
|
|
17692
17668
|
const hasHeader = getSlotted(el, SLOTS$5.header);
|
|
17693
|
-
return hasHeader ? (h("div", { class: CSS$
|
|
17669
|
+
return hasHeader ? (h("div", { class: CSS$9.contentHeader }, h("slot", { name: SLOTS$5.header }))) : null;
|
|
17694
17670
|
}
|
|
17695
17671
|
render() {
|
|
17696
17672
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
17697
17673
|
const allowResizing = !detached && resizable;
|
|
17698
|
-
const contentNode = (h("div", { class: { [CSS$
|
|
17699
|
-
const separatorNode = allowResizing ? (h("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$
|
|
17674
|
+
const contentNode = (h("div", { class: { [CSS$9.content]: true, [CSS$9.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), h("div", { class: CSS$9.contentBody }, h("slot", null))));
|
|
17675
|
+
const separatorNode = allowResizing ? (h("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$9.separator, onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
17700
17676
|
const actionBarNode = h("slot", { name: SLOTS$5.actionBar });
|
|
17701
17677
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
17702
17678
|
if (position === "end") {
|
|
17703
17679
|
mainNodes.reverse();
|
|
17704
17680
|
}
|
|
17705
|
-
return h("div", { class: { [CSS$
|
|
17681
|
+
return h("div", { class: { [CSS$9.container]: true } }, mainNodes);
|
|
17706
17682
|
}
|
|
17707
17683
|
// --------------------------------------------------------------------------
|
|
17708
17684
|
//
|
|
@@ -21471,7 +21447,7 @@ _extends(Remove, {
|
|
|
21471
21447
|
Sortable.mount(new AutoScrollPlugin());
|
|
21472
21448
|
Sortable.mount(Remove, Revert);
|
|
21473
21449
|
|
|
21474
|
-
const CSS$
|
|
21450
|
+
const CSS$8 = {
|
|
21475
21451
|
sortItem: "sort-item",
|
|
21476
21452
|
container: "container",
|
|
21477
21453
|
containerHorizontal: "container--horizontal",
|
|
@@ -21620,16 +21596,16 @@ let CalciteSortableList$1 = class extends HTMLElement$1 {
|
|
|
21620
21596
|
const { layout } = this;
|
|
21621
21597
|
const horizontal = layout === "horizontal" || false;
|
|
21622
21598
|
return (h("div", { class: {
|
|
21623
|
-
[CSS$
|
|
21624
|
-
[CSS$
|
|
21625
|
-
[CSS$
|
|
21599
|
+
[CSS$8.container]: true,
|
|
21600
|
+
[CSS$8.containerVertical]: !horizontal,
|
|
21601
|
+
[CSS$8.containerHorizontal]: horizontal
|
|
21626
21602
|
} }, h("slot", null)));
|
|
21627
21603
|
}
|
|
21628
21604
|
get el() { return this; }
|
|
21629
21605
|
static get style() { return calciteSortableListCss; }
|
|
21630
21606
|
};
|
|
21631
21607
|
|
|
21632
|
-
const CSS$
|
|
21608
|
+
const CSS$7 = {
|
|
21633
21609
|
container: "split-button__container",
|
|
21634
21610
|
dividerContainer: "split-button__divider-container",
|
|
21635
21611
|
divider: "split-button__divider",
|
|
@@ -21674,13 +21650,13 @@ let CalciteSplitButton$1 = class extends HTMLElement$1 {
|
|
|
21674
21650
|
}
|
|
21675
21651
|
render() {
|
|
21676
21652
|
const widthClasses = {
|
|
21677
|
-
[CSS$
|
|
21678
|
-
[CSS$
|
|
21679
|
-
[CSS$
|
|
21680
|
-
[CSS$
|
|
21653
|
+
[CSS$7.container]: true,
|
|
21654
|
+
[CSS$7.widthAuto]: this.width === "auto",
|
|
21655
|
+
[CSS$7.widthHalf]: this.width === "half",
|
|
21656
|
+
[CSS$7.widthFull]: this.width === "full"
|
|
21681
21657
|
};
|
|
21682
21658
|
const buttonWidth = this.width === "auto" ? "auto" : "full";
|
|
21683
|
-
return (h("div", { class: widthClasses }, h("calcite-button", { appearance: this.appearance, color: this.color, 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), h("div", { class: CSS$
|
|
21659
|
+
return (h("div", { class: widthClasses }, h("calcite-button", { appearance: this.appearance, color: this.color, 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), h("div", { class: CSS$7.dividerContainer }, h("div", { class: CSS$7.divider })), h("calcite-dropdown", { active: this.active, onClick: this.calciteSplitButtonSecondaryClickHandler, overlayPositioning: this.overlayPositioning, placement: "bottom-trailing", scale: this.scale, width: this.scale }, h("calcite-button", { appearance: this.appearance, color: this.color, disabled: this.disabled, "icon-start": this.dropdownIcon, label: this.dropdownLabel, scale: this.scale, slot: "dropdown-trigger", splitChild: "secondary" }), h("slot", null))));
|
|
21684
21660
|
}
|
|
21685
21661
|
get dropdownIcon() {
|
|
21686
21662
|
return this.dropdownIconType === "chevron"
|
|
@@ -22779,7 +22755,7 @@ const SLOTS$3 = {
|
|
|
22779
22755
|
contentEnd: "content-end"
|
|
22780
22756
|
};
|
|
22781
22757
|
|
|
22782
|
-
const calciteTileCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host
|
|
22758
|
+
const calciteTileCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .container{pointer-events:none;display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:0.5rem}:host .content{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;gap:0.5rem;width:10%}:host .content-container{display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;padding:0px;color:var(--calcite-ui-text-2);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 .content-slot-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--calcite-ui-foreground-1)}:host .content-slot-container:first-child{padding-right:0.75rem}:host .content-slot-container:last-child{padding-left:0.75rem}:host .heading{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .large-visual{-ms-flex-align:center;align-items:center;text-align:center;min-height:12rem}:host .large-visual .icon{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:end;align-self:flex-end}:host .large-visual .content-container{-ms-flex-item-align:center;align-self:center}:host .description{pointer-events:none;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host(:not([embed])){padding:0.75rem;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2)}:host(:not([embed])[href]:hover){cursor:pointer;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-brand);box-shadow:0 0 0 2px var(--calcite-ui-brand)}:host(:not([embed])[href]:active){-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand);box-shadow:0 0 0 3px var(--calcite-ui-brand)}:host([icon][heading]:not([description]):not([embed])){padding:0px}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}:host(:hover) .heading,:host([active]) .heading{color:var(--calcite-ui-text-1)}:host(:hover) .description,:host([active]) .description{color:var(--calcite-ui-text-2)}";
|
|
22783
22759
|
|
|
22784
22760
|
let CalciteTile$1 = class extends HTMLElement$1 {
|
|
22785
22761
|
constructor() {
|
|
@@ -22830,7 +22806,24 @@ let CalciteTile$1 = class extends HTMLElement$1 {
|
|
|
22830
22806
|
static get style() { return calciteTileCss; }
|
|
22831
22807
|
};
|
|
22832
22808
|
|
|
22833
|
-
const
|
|
22809
|
+
const CSS$6 = {
|
|
22810
|
+
checked: "checked",
|
|
22811
|
+
description: "description",
|
|
22812
|
+
descriptionOnly: "description-only",
|
|
22813
|
+
disabled: "disabled",
|
|
22814
|
+
heading: "heading",
|
|
22815
|
+
headingOnly: "heading-only",
|
|
22816
|
+
icon: "icon",
|
|
22817
|
+
iconOnly: "icon-only",
|
|
22818
|
+
inputAlignmentEnd: "input-alignment-end",
|
|
22819
|
+
inputAlignmentStart: "input-alignment-start",
|
|
22820
|
+
inputEnabled: "input-enabled",
|
|
22821
|
+
largeVisual: "large-visual",
|
|
22822
|
+
widthAuto: "width-auto",
|
|
22823
|
+
widthFull: "width-full"
|
|
22824
|
+
};
|
|
22825
|
+
|
|
22826
|
+
const calciteTileSelectCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}:host .container{background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2);-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:inline-block;height:100%;max-width:300px;padding:0.75rem;position:relative;-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out;vertical-align:top;z-index:10}:host .container.checked{z-index:30;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}:host .container.heading-only{-ms-flex-align:center;align-items:center}:host .container:not(.input-enabled) ::slotted(calcite-checkbox),:host .container:not(.input-enabled) ::slotted(calcite-radio-button){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host .container.focused:not(.disabled){z-index:30}:host .container.focused:not(.disabled):not(.input-enabled){-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand)}:host .container.input-enabled.input-alignment-start.width-auto.heading-only,:host .container.input-enabled.input-alignment-start.width-auto.icon-only,:host .container.input-enabled.input-alignment-start.width-auto.description-only,:host .container.input-enabled.input-alignment-start.width-auto.heading.description,:host .container.input-enabled.input-alignment-start.width-auto.icon.description,:host .container.input-enabled.input-alignment-start.width-auto.heading.icon.description{display:inline-grid;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-start.heading-only,:host .container.input-enabled.input-alignment-start.icon-only,:host .container.input-enabled.input-alignment-start.description-only,:host .container.input-enabled.input-alignment-start.heading.description,:host .container.input-enabled.input-alignment-start.icon.description,:host .container.input-enabled.input-alignment-start.heading.icon.description{gap:0.75rem}:host .container.input-enabled.input-alignment-start calcite-tile{-ms-flex-order:1;order:1}:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-start:0.75rem}:host .container.input-enabled.input-alignment-end.width-auto.heading-only,:host .container.input-enabled.input-alignment-end.width-auto.icon-only{display:inline-grid;grid-gap:0.75rem;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-end.heading-only,:host .container.input-enabled.input-alignment-end.icon-only{gap:0.75rem}:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-end:0.75rem}:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-end:0.75rem}:host .container.width-full{display:-ms-flexbox;display:flex;max-width:none}:host .container.width-full calcite-tile{-ms-flex:1 1 auto;flex:1 1 auto}:host(:hover) .container{z-index:20}:host(:hover) .container:not(.input-enabled){-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}";
|
|
22834
22827
|
|
|
22835
22828
|
let CalciteTileSelect$1 = class extends HTMLElement$1 {
|
|
22836
22829
|
constructor() {
|
|
@@ -22978,7 +22971,25 @@ let CalciteTileSelect$1 = class extends HTMLElement$1 {
|
|
|
22978
22971
|
this.el.insertAdjacentElement("beforeend", this.input);
|
|
22979
22972
|
}
|
|
22980
22973
|
render() {
|
|
22981
|
-
|
|
22974
|
+
const { checked, description, disabled, focused, heading, icon, inputAlignment, inputEnabled, width } = this;
|
|
22975
|
+
return (h("div", { class: {
|
|
22976
|
+
checked,
|
|
22977
|
+
container: true,
|
|
22978
|
+
[CSS$6.description]: Boolean(description),
|
|
22979
|
+
[CSS$6.descriptionOnly]: Boolean(!heading && !icon && description),
|
|
22980
|
+
disabled,
|
|
22981
|
+
focused,
|
|
22982
|
+
[CSS$6.heading]: Boolean(heading),
|
|
22983
|
+
[CSS$6.headingOnly]: heading && !icon && !description,
|
|
22984
|
+
[CSS$6.icon]: Boolean(icon),
|
|
22985
|
+
[CSS$6.iconOnly]: !heading && icon && !description,
|
|
22986
|
+
[CSS$6.inputAlignmentEnd]: inputAlignment === "end",
|
|
22987
|
+
[CSS$6.inputAlignmentStart]: inputAlignment === "start",
|
|
22988
|
+
[CSS$6.inputEnabled]: inputEnabled,
|
|
22989
|
+
[CSS$6.largeVisual]: heading && icon && !description,
|
|
22990
|
+
[CSS$6.widthAuto]: width === "auto",
|
|
22991
|
+
[CSS$6.widthFull]: width === "full"
|
|
22992
|
+
} }, h("calcite-tile", { active: checked, description: description, embed: true, heading: heading, icon: icon }), h("slot", null)));
|
|
22982
22993
|
}
|
|
22983
22994
|
get el() { return this; }
|
|
22984
22995
|
static get watchers() { return {
|
|
@@ -24099,8 +24110,8 @@ let CalciteTooltip$1 = class extends HTMLElement$1 {
|
|
|
24099
24110
|
const displayed = effectiveReferenceElement && open;
|
|
24100
24111
|
const hidden = !displayed;
|
|
24101
24112
|
return (h(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, id: this.getId(), role: "tooltip" }, h("div", { class: {
|
|
24102
|
-
[CSS$
|
|
24103
|
-
[CSS$
|
|
24113
|
+
[CSS$D.animation]: true,
|
|
24114
|
+
[CSS$D.animationActive]: displayed
|
|
24104
24115
|
} }, h("div", { class: CSS$2.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) }), h("div", { class: CSS$2.container }, h("slot", null)))));
|
|
24105
24116
|
}
|
|
24106
24117
|
get el() { return this; }
|
|
@@ -25016,8 +25027,8 @@ let CalciteValueListItem$1 = class extends HTMLElement$1 {
|
|
|
25016
25027
|
const { icon } = this;
|
|
25017
25028
|
if (icon === ICON_TYPES$1.grip) {
|
|
25018
25029
|
return (h("span", { "aria-pressed": this.handleActivated.toString(), class: {
|
|
25019
|
-
[CSS$
|
|
25020
|
-
[CSS$
|
|
25030
|
+
[CSS$h.handle]: true,
|
|
25031
|
+
[CSS$h.handleActivated]: this.handleActivated
|
|
25021
25032
|
}, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0" }, h("calcite-icon", { icon: ICONS.drag, scale: "s" })));
|
|
25022
25033
|
}
|
|
25023
25034
|
}
|