@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
package/hydrate/index.js
CHANGED
|
@@ -5710,7 +5710,8 @@ function nodeListToArray(nodeList) {
|
|
|
5710
5710
|
return Array.isArray(nodeList) ? nodeList : Array.from(nodeList);
|
|
5711
5711
|
}
|
|
5712
5712
|
function getThemeName(el) {
|
|
5713
|
-
|
|
5713
|
+
const closestElWithTheme = closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}, .${CSS_UTILITY.lightTheme}`);
|
|
5714
|
+
return (closestElWithTheme === null || closestElWithTheme === void 0 ? void 0 : closestElWithTheme.classList.contains("calcite-theme-dark")) ? "dark" : "light";
|
|
5714
5715
|
}
|
|
5715
5716
|
function getElementDir(el) {
|
|
5716
5717
|
const prop = "dir";
|
|
@@ -5961,7 +5962,7 @@ class CalciteAccordionItem {
|
|
|
5961
5962
|
}; }
|
|
5962
5963
|
}
|
|
5963
5964
|
|
|
5964
|
-
const CSS$
|
|
5965
|
+
const CSS$P = {
|
|
5965
5966
|
button: "button",
|
|
5966
5967
|
buttonTextVisible: "button--text-visible",
|
|
5967
5968
|
buttonCompact: "button--compact",
|
|
@@ -6076,8 +6077,8 @@ class CalciteAction {
|
|
|
6076
6077
|
renderTextContainer() {
|
|
6077
6078
|
const { text, textEnabled } = this;
|
|
6078
6079
|
const textContainerClasses = {
|
|
6079
|
-
[CSS$
|
|
6080
|
-
[CSS$
|
|
6080
|
+
[CSS$P.textContainer]: true,
|
|
6081
|
+
[CSS$P.textContainerVisible]: textEnabled
|
|
6081
6082
|
};
|
|
6082
6083
|
return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
6083
6084
|
}
|
|
@@ -6090,18 +6091,18 @@ class CalciteAction {
|
|
|
6090
6091
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
6091
6092
|
const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
6092
6093
|
const slotContainerNode = (hAsync("div", { class: {
|
|
6093
|
-
[CSS$
|
|
6094
|
-
[CSS$
|
|
6094
|
+
[CSS$P.slotContainer]: true,
|
|
6095
|
+
[CSS$P.slotContainerHidden]: loading
|
|
6095
6096
|
} }, hAsync("slot", null)));
|
|
6096
|
-
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$
|
|
6097
|
+
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$P.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
6097
6098
|
}
|
|
6098
6099
|
render() {
|
|
6099
6100
|
const { compact, disabled, loading, textEnabled, label, text } = this;
|
|
6100
6101
|
const ariaLabel = label || text;
|
|
6101
6102
|
const buttonClasses = {
|
|
6102
|
-
[CSS$
|
|
6103
|
-
[CSS$
|
|
6104
|
-
[CSS$
|
|
6103
|
+
[CSS$P.button]: true,
|
|
6104
|
+
[CSS$P.buttonTextVisible]: textEnabled,
|
|
6105
|
+
[CSS$P.buttonCompact]: compact
|
|
6105
6106
|
};
|
|
6106
6107
|
return (hAsync(Host, { onClick: this.calciteActionClickHandler }, hAsync("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())));
|
|
6107
6108
|
}
|
|
@@ -6132,7 +6133,7 @@ class CalciteAction {
|
|
|
6132
6133
|
}; }
|
|
6133
6134
|
}
|
|
6134
6135
|
|
|
6135
|
-
const CSS$
|
|
6136
|
+
const CSS$O = {
|
|
6136
6137
|
menu: "menu",
|
|
6137
6138
|
defaultTrigger: "default-trigger"
|
|
6138
6139
|
};
|
|
@@ -6232,7 +6233,7 @@ const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, p
|
|
|
6232
6233
|
return tooltip ? hAsync("calcite-tooltip-manager", null, actionNode) : actionNode;
|
|
6233
6234
|
};
|
|
6234
6235
|
|
|
6235
|
-
const CSS$
|
|
6236
|
+
const CSS$N = {
|
|
6236
6237
|
actionGroupBottom: "action-group--bottom"
|
|
6237
6238
|
};
|
|
6238
6239
|
const SLOTS$n = {
|
|
@@ -7692,7 +7693,7 @@ class CalciteActionBar {
|
|
|
7692
7693
|
const expandLabel = intlExpand || TEXT$n.expand;
|
|
7693
7694
|
const collapseLabel = intlCollapse || TEXT$n.collapse;
|
|
7694
7695
|
const expandToggleNode = !expandDisabled ? (hAsync(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
7695
|
-
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
7696
|
+
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$N.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$n.bottomActions }), hAsync("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
7696
7697
|
}
|
|
7697
7698
|
render() {
|
|
7698
7699
|
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("slot", null), this.renderBottomActionGroup()));
|
|
@@ -8060,14 +8061,14 @@ class CalciteActionMenu {
|
|
|
8060
8061
|
}
|
|
8061
8062
|
renderMenuButton() {
|
|
8062
8063
|
const { el, label, scale } = this;
|
|
8063
|
-
const menuButtonSlot = (hAsync("slot", { name: SLOTS$p.trigger }, hAsync("calcite-action", { class: CSS$
|
|
8064
|
+
const menuButtonSlot = (hAsync("slot", { name: SLOTS$p.trigger }, hAsync("calcite-action", { class: CSS$O.defaultTrigger, icon: ICONS$f.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label })));
|
|
8064
8065
|
return getSlotted(el, SLOTS$p.tooltip) ? (hAsync("calcite-tooltip-manager", null, menuButtonSlot)) : (menuButtonSlot);
|
|
8065
8066
|
}
|
|
8066
8067
|
renderMenuItems() {
|
|
8067
8068
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning } = this;
|
|
8068
8069
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
8069
8070
|
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
|
8070
|
-
return (hAsync("calcite-popover", { disablePointer: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$
|
|
8071
|
+
return (hAsync("calcite-popover", { disablePointer: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, hAsync("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 }, hAsync("slot", null))));
|
|
8071
8072
|
}
|
|
8072
8073
|
render() {
|
|
8073
8074
|
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$p.tooltip })));
|
|
@@ -8107,7 +8108,7 @@ class CalciteActionMenu {
|
|
|
8107
8108
|
}; }
|
|
8108
8109
|
}
|
|
8109
8110
|
|
|
8110
|
-
const CSS$
|
|
8111
|
+
const CSS$M = {
|
|
8111
8112
|
actionGroupBottom: "action-group--bottom",
|
|
8112
8113
|
container: "container"
|
|
8113
8114
|
};
|
|
@@ -8214,10 +8215,10 @@ class CalciteActionPad {
|
|
|
8214
8215
|
const expandLabel = intlExpand || TEXT$m.expand;
|
|
8215
8216
|
const collapseLabel = intlCollapse || TEXT$m.collapse;
|
|
8216
8217
|
const expandToggleNode = !expandDisabled ? (hAsync(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
8217
|
-
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
8218
|
+
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$M.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$m.expandTooltip }), expandToggleNode)) : null;
|
|
8218
8219
|
}
|
|
8219
8220
|
render() {
|
|
8220
|
-
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$
|
|
8221
|
+
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$M.container }, hAsync("slot", null), this.renderBottomActionGroup())));
|
|
8221
8222
|
}
|
|
8222
8223
|
get el() { return getElement(this); }
|
|
8223
8224
|
static get watchers() { return {
|
|
@@ -8726,7 +8727,7 @@ class CalciteAvatar {
|
|
|
8726
8727
|
}; }
|
|
8727
8728
|
}
|
|
8728
8729
|
|
|
8729
|
-
const CSS$
|
|
8730
|
+
const CSS$L = {
|
|
8730
8731
|
article: "article",
|
|
8731
8732
|
content: "content",
|
|
8732
8733
|
headerContainer: "header-container",
|
|
@@ -8844,28 +8845,28 @@ class CalciteBlock {
|
|
|
8844
8845
|
const statusIcon = showingLoadingStatus ? ICONS$c.refresh : ICONS$c[status];
|
|
8845
8846
|
const hasIcon = getSlotted(el, SLOTS$k.icon) || statusIcon;
|
|
8846
8847
|
const iconEl = !statusIcon ? (hAsync("slot", { name: SLOTS$k.icon })) : (hAsync("calcite-icon", { class: {
|
|
8847
|
-
[CSS$
|
|
8848
|
-
[CSS$
|
|
8849
|
-
[CSS$
|
|
8850
|
-
[CSS$
|
|
8848
|
+
[CSS$L.statusIcon]: true,
|
|
8849
|
+
[CSS$L.valid]: status == "valid",
|
|
8850
|
+
[CSS$L.invalid]: status == "invalid",
|
|
8851
|
+
[CSS$L.loading]: showingLoadingStatus
|
|
8851
8852
|
}, icon: statusIcon, scale: "m" }));
|
|
8852
|
-
return hasIcon ? hAsync("div", { class: CSS$
|
|
8853
|
+
return hasIcon ? hAsync("div", { class: CSS$L.icon }, iconEl) : null;
|
|
8853
8854
|
}
|
|
8854
8855
|
renderTitle() {
|
|
8855
8856
|
const { heading, headingLevel, summary } = this;
|
|
8856
|
-
return heading || summary ? (hAsync("div", { class: CSS$
|
|
8857
|
+
return heading || summary ? (hAsync("div", { class: CSS$L.title }, hAsync(CalciteHeading, { class: CSS$L.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary ? hAsync("div", { class: CSS$L.summary }, summary) : null)) : null;
|
|
8857
8858
|
}
|
|
8858
8859
|
render() {
|
|
8859
8860
|
const { collapsible, disabled, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
8860
8861
|
const toggleLabel = open ? intlCollapse || TEXT$k.collapse : intlExpand || TEXT$k.expand;
|
|
8861
|
-
const headerContent = (hAsync("header", { class: CSS$
|
|
8862
|
+
const headerContent = (hAsync("header", { class: CSS$L.header }, this.renderIcon(), this.renderTitle()));
|
|
8862
8863
|
const hasControl = !!getSlotted(el, SLOTS$k.control);
|
|
8863
8864
|
const hasMenuActions = !!getSlotted(el, SLOTS$k.headerMenuActions);
|
|
8864
8865
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
8865
|
-
const headerNode = (hAsync("div", { class: CSS$
|
|
8866
|
+
const headerNode = (hAsync("div", { class: CSS$L.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$L.controlContainer }, hAsync("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$k.options }, hAsync("slot", { name: SLOTS$k.headerMenuActions }))) : null));
|
|
8866
8867
|
return (hAsync(Host, { tabIndex: disabled ? -1 : null }, hAsync("article", { "aria-busy": loading.toString(), class: {
|
|
8867
|
-
[CSS$
|
|
8868
|
-
} }, headerNode, hAsync("div", { class: CSS$
|
|
8868
|
+
[CSS$L.article]: true
|
|
8869
|
+
} }, headerNode, hAsync("div", { class: CSS$L.content, hidden: !open }, this.renderScrim()))));
|
|
8869
8870
|
}
|
|
8870
8871
|
get el() { return getElement(this); }
|
|
8871
8872
|
static get style() { return calciteBlockCss; }
|
|
@@ -8893,7 +8894,7 @@ class CalciteBlock {
|
|
|
8893
8894
|
}; }
|
|
8894
8895
|
}
|
|
8895
8896
|
|
|
8896
|
-
const CSS$
|
|
8897
|
+
const CSS$K = {
|
|
8897
8898
|
content: "content",
|
|
8898
8899
|
invalid: "invalid",
|
|
8899
8900
|
toggle: "toggle",
|
|
@@ -8963,9 +8964,9 @@ class CalciteBlockSection {
|
|
|
8963
8964
|
const { status } = this;
|
|
8964
8965
|
const statusIcon = (_a = ICONS$b[status]) !== null && _a !== void 0 ? _a : false;
|
|
8965
8966
|
const statusIconClasses = {
|
|
8966
|
-
[CSS$
|
|
8967
|
-
[CSS$
|
|
8968
|
-
[CSS$
|
|
8967
|
+
[CSS$K.statusIcon]: true,
|
|
8968
|
+
[CSS$K.valid]: status == "valid",
|
|
8969
|
+
[CSS$K.invalid]: status == "invalid"
|
|
8969
8970
|
};
|
|
8970
8971
|
return !!statusIcon ? (hAsync("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
8971
8972
|
}
|
|
@@ -8979,13 +8980,13 @@ class CalciteBlockSection {
|
|
|
8979
8980
|
: ICONS$b.menuClosedRight;
|
|
8980
8981
|
const toggleLabel = open ? intlCollapse || TEXT$j.collapse : intlExpand || TEXT$j.expand;
|
|
8981
8982
|
const headerNode = toggleDisplay === "switch" ? (hAsync("div", { "aria-label": toggleLabel, class: {
|
|
8982
|
-
[CSS$
|
|
8983
|
-
[CSS$
|
|
8984
|
-
}, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$
|
|
8985
|
-
[CSS$
|
|
8986
|
-
[CSS$
|
|
8987
|
-
}, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$
|
|
8988
|
-
return (hAsync("section", { "aria-expanded": open.toString() }, headerNode, hAsync("div", { class: CSS$
|
|
8983
|
+
[CSS$K.toggle]: true,
|
|
8984
|
+
[CSS$K.toggleSwitch]: true
|
|
8985
|
+
}, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$K.toggleSwitchContent }, hAsync("span", { class: CSS$K.toggleSwitchText }, text)), hAsync("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (hAsync("button", { "aria-label": toggleLabel, class: {
|
|
8986
|
+
[CSS$K.sectionHeader]: true,
|
|
8987
|
+
[CSS$K.toggle]: true
|
|
8988
|
+
}, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$K.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
8989
|
+
return (hAsync("section", { "aria-expanded": open.toString() }, headerNode, hAsync("div", { class: CSS$K.content, hidden: !open }, hAsync("slot", null))));
|
|
8989
8990
|
}
|
|
8990
8991
|
get el() { return getElement(this); }
|
|
8991
8992
|
static get style() { return calciteBlockSectionCss; }
|
|
@@ -9034,7 +9035,7 @@ class CalciteBlockSection {
|
|
|
9034
9035
|
}
|
|
9035
9036
|
})(HTMLFormElement.prototype);
|
|
9036
9037
|
|
|
9037
|
-
const CSS$
|
|
9038
|
+
const CSS$J = {
|
|
9038
9039
|
buttonLoader: "calcite-button--loader",
|
|
9039
9040
|
content: "content",
|
|
9040
9041
|
contentSlotted: "content--slotted",
|
|
@@ -9218,14 +9219,14 @@ class CalciteButton {
|
|
|
9218
9219
|
}
|
|
9219
9220
|
render() {
|
|
9220
9221
|
const Tag = this.childElType;
|
|
9221
|
-
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$
|
|
9222
|
-
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
9223
|
-
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
9224
|
-
const contentEl = (hAsync("span", { class: CSS$
|
|
9222
|
+
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$J.buttonLoader }, hAsync("calcite-loader", { active: true, class: this.loading ? CSS$J.loadingIn : CSS$J.loadingOut, inline: true, label: this.intlLoading, scale: "m" }))) : null;
|
|
9223
|
+
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$J.icon]: true, [CSS$J.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
9224
|
+
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$J.icon]: true, [CSS$J.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
9225
|
+
const contentEl = (hAsync("span", { class: CSS$J.content }, hAsync("slot", null)));
|
|
9225
9226
|
return (hAsync(Tag, { "aria-label": getLabelText(this), class: {
|
|
9226
|
-
[CSS$
|
|
9227
|
-
[CSS$
|
|
9228
|
-
[CSS$
|
|
9227
|
+
[CSS$J.contentSlotted]: this.hasContent,
|
|
9228
|
+
[CSS$J.iconStartEmpty]: !this.iconStart,
|
|
9229
|
+
[CSS$J.iconEndEmpty]: !this.iconEnd
|
|
9229
9230
|
}, 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));
|
|
9230
9231
|
}
|
|
9231
9232
|
//--------------------------------------------------------------------------
|
|
@@ -9299,7 +9300,7 @@ class CalciteButton {
|
|
|
9299
9300
|
}; }
|
|
9300
9301
|
}
|
|
9301
9302
|
|
|
9302
|
-
const CSS$
|
|
9303
|
+
const CSS$I = {
|
|
9303
9304
|
container: "container",
|
|
9304
9305
|
header: "header",
|
|
9305
9306
|
footer: "footer",
|
|
@@ -9390,7 +9391,7 @@ class CalciteCard {
|
|
|
9390
9391
|
//
|
|
9391
9392
|
// --------------------------------------------------------------------------
|
|
9392
9393
|
render() {
|
|
9393
|
-
return (hAsync("div", { class: "calcite-card-container" }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { active: true, label: this.intlLoading }))) : null, hAsync("section", { "aria-busy": this.loading.toString(), class: { [CSS$
|
|
9394
|
+
return (hAsync("div", { class: "calcite-card-container" }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { active: true, label: this.intlLoading }))) : null, hAsync("section", { "aria-busy": this.loading.toString(), class: { [CSS$I.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderThumbnail(), this.renderHeader(), hAsync("div", { class: "card-content" }, hAsync("slot", null)), this.renderFooter())));
|
|
9394
9395
|
}
|
|
9395
9396
|
selectCard() {
|
|
9396
9397
|
this.selected = !this.selected;
|
|
@@ -9398,23 +9399,23 @@ class CalciteCard {
|
|
|
9398
9399
|
}
|
|
9399
9400
|
renderThumbnail() {
|
|
9400
9401
|
const hasThumbnail = this.el.querySelector(`[slot=${SLOTS$j.thumbnail}]`);
|
|
9401
|
-
return hasThumbnail ? (hAsync("div", { class: CSS$
|
|
9402
|
+
return hasThumbnail ? (hAsync("div", { class: CSS$I.thumbnailWrapper }, hAsync("slot", { name: SLOTS$j.thumbnail }))) : null;
|
|
9402
9403
|
}
|
|
9403
9404
|
renderCheckbox() {
|
|
9404
9405
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
9405
|
-
return (hAsync("calcite-label", { class: CSS$
|
|
9406
|
+
return (hAsync("calcite-label", { class: CSS$I.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
9406
9407
|
}
|
|
9407
9408
|
renderHeader() {
|
|
9408
9409
|
const title = this.el.querySelector(`[slot=${SLOTS$j.title}]`);
|
|
9409
9410
|
const subtitle = this.el.querySelector(`[slot=${SLOTS$j.subtitle}]`);
|
|
9410
9411
|
const hasHeader = title || subtitle;
|
|
9411
|
-
return hasHeader ? (hAsync("header", { class: CSS$
|
|
9412
|
+
return hasHeader ? (hAsync("header", { class: CSS$I.header }, hAsync("slot", { name: SLOTS$j.title }), hAsync("slot", { name: SLOTS$j.subtitle }))) : null;
|
|
9412
9413
|
}
|
|
9413
9414
|
renderFooter() {
|
|
9414
9415
|
const leadingFooter = this.el.querySelector(`[slot=${SLOTS$j.footerLeading}]`);
|
|
9415
9416
|
const trailingFooter = this.el.querySelector(`[slot=${SLOTS$j.footerTrailing}]`);
|
|
9416
9417
|
const hasFooter = leadingFooter || trailingFooter;
|
|
9417
|
-
return hasFooter ? (hAsync("footer", { class: CSS$
|
|
9418
|
+
return hasFooter ? (hAsync("footer", { class: CSS$I.footer }, hAsync("slot", { name: SLOTS$j.footerLeading }), hAsync("slot", { name: SLOTS$j.footerTrailing }))) : null;
|
|
9418
9419
|
}
|
|
9419
9420
|
get el() { return getElement(this); }
|
|
9420
9421
|
static get style() { return calciteCardCss; }
|
|
@@ -9712,7 +9713,7 @@ class CalciteCheckbox {
|
|
|
9712
9713
|
//
|
|
9713
9714
|
// --------------------------------------------------------------------------
|
|
9714
9715
|
render() {
|
|
9715
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("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 }, hAsync("svg", { class: "check-svg", viewBox: "0 0 16 16" }, hAsync("path", { d: this.getPath() })), hAsync("slot", null)), hAsync(HiddenFormInputSlot, { component: this })));
|
|
9716
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("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 }, hAsync("svg", { class: "check-svg", viewBox: "0 0 16 16" }, hAsync("path", { d: this.getPath() })), hAsync("slot", null)), hAsync(HiddenFormInputSlot, { component: this })));
|
|
9716
9717
|
}
|
|
9717
9718
|
get el() { return getElement(this); }
|
|
9718
9719
|
static get style() { return calciteCheckboxCss; }
|
|
@@ -9738,7 +9739,7 @@ class CalciteCheckbox {
|
|
|
9738
9739
|
}; }
|
|
9739
9740
|
}
|
|
9740
9741
|
|
|
9741
|
-
const CSS$
|
|
9742
|
+
const CSS$H = {
|
|
9742
9743
|
title: "title",
|
|
9743
9744
|
close: "close",
|
|
9744
9745
|
chipImageContainer: "chip-image-container",
|
|
@@ -9812,12 +9813,12 @@ class CalciteChip {
|
|
|
9812
9813
|
renderChipImage() {
|
|
9813
9814
|
const { el } = this;
|
|
9814
9815
|
const hasChipImage = getSlotted(el, SLOTS$i.image);
|
|
9815
|
-
return hasChipImage ? (hAsync("div", { class: CSS$
|
|
9816
|
+
return hasChipImage ? (hAsync("div", { class: CSS$H.chipImageContainer }, hAsync("slot", { name: SLOTS$i.image }))) : null;
|
|
9816
9817
|
}
|
|
9817
9818
|
render() {
|
|
9818
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
9819
|
-
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$
|
|
9820
|
-
return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$
|
|
9819
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$H.calciteChipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
9820
|
+
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$H.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: ICONS$a.close, scale: "s" })));
|
|
9821
|
+
return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$H.title, id: this.guid }, hAsync("slot", null)), this.dismissible ? closeButton : null));
|
|
9821
9822
|
}
|
|
9822
9823
|
get el() { return getElement(this); }
|
|
9823
9824
|
static get style() { return calciteChipCss; }
|
|
@@ -11945,7 +11946,7 @@ function zeroArray(array, length) {
|
|
|
11945
11946
|
|
|
11946
11947
|
var color = Color;
|
|
11947
11948
|
|
|
11948
|
-
const CSS$
|
|
11949
|
+
const CSS$G = {
|
|
11949
11950
|
container: "container",
|
|
11950
11951
|
controlSection: "control-section",
|
|
11951
11952
|
hexOptions: "color-hex-options",
|
|
@@ -12437,7 +12438,7 @@ class CalciteColorPicker {
|
|
|
12437
12438
|
const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
|
|
12438
12439
|
const active = channelMode === activeChannelMode;
|
|
12439
12440
|
const label = channelMode === "rgb" ? intlRgb : intlHsv;
|
|
12440
|
-
return (hAsync("calcite-tab-title", { active: active, class: CSS$
|
|
12441
|
+
return (hAsync("calcite-tab-title", { active: active, class: CSS$G.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
|
|
12441
12442
|
};
|
|
12442
12443
|
this.renderChannelsTab = (channelMode) => {
|
|
12443
12444
|
const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
|
|
@@ -12447,9 +12448,9 @@ class CalciteColorPicker {
|
|
|
12447
12448
|
const channelAriaLabels = isRgb
|
|
12448
12449
|
? [intlRed, intlGreen, intlBlue]
|
|
12449
12450
|
: [intlHue, intlSaturation, intlValue];
|
|
12450
|
-
return (hAsync("calcite-tab", { active: active, class: CSS$
|
|
12451
|
+
return (hAsync("calcite-tab", { active: active, class: CSS$G.control, key: channelMode }, hAsync("div", { class: CSS$G.channels }, channels.map((channel, index) => this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index])))));
|
|
12451
12452
|
};
|
|
12452
|
-
this.renderChannel = (value, index, label, ariaLabel) => (hAsync("calcite-input", { class: CSS$
|
|
12453
|
+
this.renderChannel = (value, index, label, ariaLabel) => (hAsync("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() }));
|
|
12453
12454
|
this.deleteColor = () => {
|
|
12454
12455
|
const colorToDelete = this.color.hex();
|
|
12455
12456
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -12564,7 +12565,7 @@ class CalciteColorPicker {
|
|
|
12564
12565
|
this.shiftKeyChannelAdjustment = 0;
|
|
12565
12566
|
const key = event.key;
|
|
12566
12567
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
12567
|
-
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$
|
|
12568
|
+
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$G.channel); })) {
|
|
12568
12569
|
return;
|
|
12569
12570
|
}
|
|
12570
12571
|
const { shiftKey } = event;
|
|
@@ -12632,20 +12633,20 @@ class CalciteColorPicker {
|
|
|
12632
12633
|
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
|
|
12633
12634
|
const noColor = color === null;
|
|
12634
12635
|
const vertical = scopeOrientation === "vertical";
|
|
12635
|
-
return (hAsync("div", { class: CSS$
|
|
12636
|
-
[CSS$
|
|
12637
|
-
[CSS$
|
|
12638
|
-
}, onMouseDown: this.handleColorFieldAndSliderMouseDown, onMouseEnter: this.handleColorFieldAndSliderMouseEnterOrMove, onMouseLeave: this.handleColorFieldAndSliderMouseLeave, onMouseMove: this.handleColorFieldAndSliderMouseEnterOrMove, ref: this.initColorFieldAndSlider }), hAsync("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$
|
|
12639
|
-
[CSS$
|
|
12640
|
-
[CSS$
|
|
12641
|
-
} }, hideHex ? null : (hAsync("div", { class: CSS$
|
|
12642
|
-
[CSS$
|
|
12643
|
-
[CSS$
|
|
12644
|
-
} }, intlHex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$
|
|
12645
|
-
[CSS$
|
|
12646
|
-
[CSS$
|
|
12647
|
-
}, scale: hexInputScale }, hAsync("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (hAsync("div", { class: { [CSS$
|
|
12648
|
-
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$
|
|
12636
|
+
return (hAsync("div", { class: CSS$G.container }, hAsync("div", { class: CSS$G.colorFieldAndSliderWrap }, hAsync("canvas", { class: {
|
|
12637
|
+
[CSS$G.colorFieldAndSlider]: true,
|
|
12638
|
+
[CSS$G.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
12639
|
+
}, onMouseDown: this.handleColorFieldAndSliderMouseDown, onMouseEnter: this.handleColorFieldAndSliderMouseEnterOrMove, onMouseLeave: this.handleColorFieldAndSliderMouseLeave, onMouseMove: this.handleColorFieldAndSliderMouseEnterOrMove, ref: this.initColorFieldAndSlider }), hAsync("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" }), hAsync("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 : (hAsync("div", { class: {
|
|
12640
|
+
[CSS$G.controlSection]: true,
|
|
12641
|
+
[CSS$G.section]: true
|
|
12642
|
+
} }, hideHex ? null : (hAsync("div", { class: CSS$G.hexOptions }, hAsync("span", { class: {
|
|
12643
|
+
[CSS$G.header]: true,
|
|
12644
|
+
[CSS$G.headerHex]: true
|
|
12645
|
+
} }, intlHex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$G.control, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (hAsync("calcite-tabs", { class: {
|
|
12646
|
+
[CSS$G.colorModeContainer]: true,
|
|
12647
|
+
[CSS$G.splitSection]: true
|
|
12648
|
+
}, scale: hexInputScale }, hAsync("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (hAsync("div", { class: { [CSS$G.savedColorsSection]: true, [CSS$G.section]: true } }, hAsync("div", { class: CSS$G.header }, hAsync("label", null, intlSaved), hAsync("div", { class: CSS$G.savedColorsButtons }, hAsync("calcite-button", { appearance: "transparent", class: CSS$G.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale }), hAsync("calcite-button", { appearance: "transparent", class: CSS$G.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale }))), savedColors.length > 0 ? (hAsync("div", { class: CSS$G.savedColors }, [
|
|
12649
|
+
...savedColors.map((color) => (hAsync("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 })))
|
|
12649
12650
|
])) : null))));
|
|
12650
12651
|
}
|
|
12651
12652
|
// --------------------------------------------------------------------------
|
|
@@ -12872,7 +12873,7 @@ class CalciteColorPicker {
|
|
|
12872
12873
|
}; }
|
|
12873
12874
|
}
|
|
12874
12875
|
|
|
12875
|
-
const CSS$
|
|
12876
|
+
const CSS$F = {
|
|
12876
12877
|
container: "container",
|
|
12877
12878
|
preview: "preview",
|
|
12878
12879
|
input: "input"
|
|
@@ -13039,7 +13040,7 @@ class CalciteColorPickerHexInput {
|
|
|
13039
13040
|
render() {
|
|
13040
13041
|
const { intlHex, value } = this;
|
|
13041
13042
|
const hexInputValue = this.formatForInternalInput(value);
|
|
13042
|
-
return (hAsync("div", { class: CSS$
|
|
13043
|
+
return (hAsync("div", { class: CSS$F.container }, hAsync("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 ? (hAsync("calcite-color-picker-swatch", { active: true, class: CSS$F.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
13043
13044
|
}
|
|
13044
13045
|
//--------------------------------------------------------------------------
|
|
13045
13046
|
//
|
|
@@ -13079,7 +13080,7 @@ class CalciteColorPickerHexInput {
|
|
|
13079
13080
|
}; }
|
|
13080
13081
|
}
|
|
13081
13082
|
|
|
13082
|
-
const CSS$
|
|
13083
|
+
const CSS$E = {
|
|
13083
13084
|
swatch: "swatch",
|
|
13084
13085
|
noColorIcon: "no-color-icon"
|
|
13085
13086
|
};
|
|
@@ -13124,7 +13125,7 @@ class CalciteColorPickerSwatch {
|
|
|
13124
13125
|
const hex = internalColor.hex();
|
|
13125
13126
|
const theme = getThemeName(el);
|
|
13126
13127
|
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
13127
|
-
return (hAsync("svg", { class: CSS$
|
|
13128
|
+
return (hAsync("svg", { class: CSS$E.swatch, xmlns: "http://www.w3.org/2000/svg" }, hAsync("title", null, hex), hAsync("rect", { fill: hex, height: "100%", id: "swatch", rx: borderRadius, stroke: borderColor, "stroke-width": "2", style: { "clip-path": `inset(0 round ${borderRadius})` }, width: "100%" })));
|
|
13128
13129
|
}
|
|
13129
13130
|
get el() { return getElement(this); }
|
|
13130
13131
|
static get watchers() { return {
|
|
@@ -14943,7 +14944,7 @@ var createPopper$1 = /*#__PURE__*/popperGenerator({
|
|
|
14943
14944
|
defaultModifiers: defaultModifiers
|
|
14944
14945
|
}); // eslint-disable-next-line import/no-unused-modules
|
|
14945
14946
|
|
|
14946
|
-
const CSS$
|
|
14947
|
+
const CSS$D = {
|
|
14947
14948
|
animation: "calcite-popper-anim",
|
|
14948
14949
|
animationActive: "calcite-popper-anim--active"
|
|
14949
14950
|
};
|
|
@@ -15698,8 +15699,8 @@ class CalciteCombobox {
|
|
|
15698
15699
|
const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
|
|
15699
15700
|
const classes = {
|
|
15700
15701
|
"list-container": true,
|
|
15701
|
-
[CSS$
|
|
15702
|
-
[CSS$
|
|
15702
|
+
[CSS$D.animation]: true,
|
|
15703
|
+
[CSS$D.animationActive]: active
|
|
15703
15704
|
};
|
|
15704
15705
|
const style = {
|
|
15705
15706
|
maxHeight: maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : ""
|
|
@@ -15771,7 +15772,7 @@ class CalciteCombobox {
|
|
|
15771
15772
|
}; }
|
|
15772
15773
|
}
|
|
15773
15774
|
|
|
15774
|
-
const CSS$
|
|
15775
|
+
const CSS$C = {
|
|
15775
15776
|
icon: "icon",
|
|
15776
15777
|
iconActive: "icon--active",
|
|
15777
15778
|
custom: "icon--custom",
|
|
@@ -15857,18 +15858,18 @@ class CalciteComboboxItem {
|
|
|
15857
15858
|
// --------------------------------------------------------------------------
|
|
15858
15859
|
renderIcon(isSingle) {
|
|
15859
15860
|
const { icon, disabled, selected } = this;
|
|
15860
|
-
const level = `${CSS$
|
|
15861
|
+
const level = `${CSS$C.icon}--indent`;
|
|
15861
15862
|
const defaultIcon = isSingle ? "dot" : "check";
|
|
15862
15863
|
const iconPath = disabled ? "circle-disallowed" : defaultIcon;
|
|
15863
15864
|
const showDot = isSingle && !icon && !disabled;
|
|
15864
15865
|
return showDot ? (hAsync("span", { class: {
|
|
15865
|
-
[CSS$
|
|
15866
|
-
[CSS$
|
|
15866
|
+
[CSS$C.icon]: true,
|
|
15867
|
+
[CSS$C.dot]: true,
|
|
15867
15868
|
[level]: true
|
|
15868
15869
|
} })) : (hAsync("calcite-icon", { class: {
|
|
15869
|
-
[CSS$
|
|
15870
|
-
[CSS$
|
|
15871
|
-
[CSS$
|
|
15870
|
+
[CSS$C.icon]: !icon,
|
|
15871
|
+
[CSS$C.custom]: !!icon,
|
|
15872
|
+
[CSS$C.iconActive]: icon && selected,
|
|
15872
15873
|
[level]: true
|
|
15873
15874
|
}, icon: icon || iconPath, scale: "s" }));
|
|
15874
15875
|
}
|
|
@@ -15881,13 +15882,13 @@ class CalciteComboboxItem {
|
|
|
15881
15882
|
render() {
|
|
15882
15883
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
15883
15884
|
const classes = {
|
|
15884
|
-
[CSS$
|
|
15885
|
-
[CSS$
|
|
15886
|
-
[CSS$
|
|
15887
|
-
[CSS$
|
|
15885
|
+
[CSS$C.label]: true,
|
|
15886
|
+
[CSS$C.selected]: this.selected,
|
|
15887
|
+
[CSS$C.active]: this.active,
|
|
15888
|
+
[CSS$C.single]: isSingleSelect
|
|
15888
15889
|
};
|
|
15889
15890
|
const depth = getDepth();
|
|
15890
|
-
return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), hAsync("span", { class: CSS$
|
|
15891
|
+
return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), hAsync("span", { class: CSS$C.title }, this.textLabel)), this.renderChildren())));
|
|
15891
15892
|
}
|
|
15892
15893
|
get el() { return getElement(this); }
|
|
15893
15894
|
static get watchers() { return {
|
|
@@ -15915,7 +15916,7 @@ class CalciteComboboxItem {
|
|
|
15915
15916
|
}; }
|
|
15916
15917
|
}
|
|
15917
15918
|
|
|
15918
|
-
const CSS$
|
|
15919
|
+
const CSS$B = {
|
|
15919
15920
|
list: "list",
|
|
15920
15921
|
label: "label",
|
|
15921
15922
|
title: "title"
|
|
@@ -15948,8 +15949,8 @@ class CalciteComboboxItemGroup {
|
|
|
15948
15949
|
// --------------------------------------------------------------------------
|
|
15949
15950
|
render() {
|
|
15950
15951
|
const { el, scale } = this;
|
|
15951
|
-
const indent = `${CSS$
|
|
15952
|
-
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
15952
|
+
const indent = `${CSS$B.label}--indent-${getDepth()}`;
|
|
15953
|
+
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$B.list]: true, [`scale--${scale}`]: true }, role: "group" }, hAsync("li", { class: { [CSS$B.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, hAsync("span", { class: CSS$B.title }, this.label)), hAsync("slot", null)));
|
|
15953
15954
|
}
|
|
15954
15955
|
get el() { return getElement(this); }
|
|
15955
15956
|
static get style() { return calciteComboboxItemGroupCss; }
|
|
@@ -15976,7 +15977,7 @@ function isValidNumber(numberString) {
|
|
|
15976
15977
|
}
|
|
15977
15978
|
function parseNumberString(numberString) {
|
|
15978
15979
|
if (!numberString || !stringContainsNumbers(numberString)) {
|
|
15979
|
-
return
|
|
15980
|
+
return "";
|
|
15980
15981
|
}
|
|
15981
15982
|
let containsDecimal = false;
|
|
15982
15983
|
const result = numberString
|
|
@@ -15995,17 +15996,24 @@ function parseNumberString(numberString) {
|
|
|
15995
15996
|
return isValidNumber(result) ? Number(result).toString() : null;
|
|
15996
15997
|
}
|
|
15997
15998
|
function sanitizeDecimalString(decimalString) {
|
|
15998
|
-
|
|
15999
|
+
const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
|
|
16000
|
+
return decimalString.replace(decimalAtEndOfStringButNotStart, "");
|
|
15999
16001
|
}
|
|
16000
16002
|
function sanitizeNegativeString(negativeString) {
|
|
16001
|
-
|
|
16003
|
+
const allHyphensExceptTheStart = /(?!^-)-/g;
|
|
16004
|
+
return negativeString.replace(allHyphensExceptTheStart, "");
|
|
16002
16005
|
}
|
|
16003
16006
|
function sanitizeLeadingZeroString(zeroString) {
|
|
16004
|
-
|
|
16007
|
+
const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
|
|
16008
|
+
return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
|
|
16005
16009
|
}
|
|
16006
16010
|
function sanitizeNumberString(value) {
|
|
16007
|
-
|
|
16008
|
-
|
|
16011
|
+
const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)));
|
|
16012
|
+
const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
|
|
16013
|
+
return isValidNumber(sanitizedValue)
|
|
16014
|
+
? isNegativeDecimalOnlyZeros.test(sanitizedValue)
|
|
16015
|
+
? sanitizedValue
|
|
16016
|
+
: Number(sanitizedValue).toString()
|
|
16009
16017
|
: value;
|
|
16010
16018
|
}
|
|
16011
16019
|
function stringContainsNumbers(string) {
|
|
@@ -17338,8 +17346,8 @@ class CalciteDropdown {
|
|
|
17338
17346
|
const { active } = this;
|
|
17339
17347
|
return (hAsync(Host, { tabIndex: this.disabled ? -1 : null }, hAsync("div", { class: "calcite-dropdown-trigger-container", onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, hAsync("slot", { "aria-expanded": active.toString(), "aria-haspopup": "true", name: SLOTS$h.dropdownTrigger })), hAsync("div", { "aria-hidden": (!active).toString(), class: "calcite-dropdown-wrapper", ref: this.setMenuEl }, hAsync("div", { class: {
|
|
17340
17348
|
["calcite-dropdown-content"]: true,
|
|
17341
|
-
[CSS$
|
|
17342
|
-
[CSS$
|
|
17349
|
+
[CSS$D.animation]: true,
|
|
17350
|
+
[CSS$D.animationActive]: active
|
|
17343
17351
|
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, hAsync("slot", null)))));
|
|
17344
17352
|
}
|
|
17345
17353
|
//--------------------------------------------------------------------------
|
|
@@ -17552,7 +17560,7 @@ class CalciteDropdown {
|
|
|
17552
17560
|
}; }
|
|
17553
17561
|
}
|
|
17554
17562
|
|
|
17555
|
-
const CSS$
|
|
17563
|
+
const CSS$A = {
|
|
17556
17564
|
containerSmall: "container--s",
|
|
17557
17565
|
containerMedium: "container--m",
|
|
17558
17566
|
containerLarge: "container--l"
|
|
@@ -17585,9 +17593,9 @@ class CalciteDropdownGroup {
|
|
|
17585
17593
|
const dropdownSeparator = this.groupPosition > 0 ? hAsync("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
17586
17594
|
return (hAsync(Host, { role: "menu" }, hAsync("div", { class: {
|
|
17587
17595
|
container: true,
|
|
17588
|
-
[CSS$
|
|
17589
|
-
[CSS$
|
|
17590
|
-
[CSS$
|
|
17596
|
+
[CSS$A.containerSmall]: scale === "s",
|
|
17597
|
+
[CSS$A.containerMedium]: scale === "m",
|
|
17598
|
+
[CSS$A.containerLarge]: scale === "l"
|
|
17591
17599
|
}, title: this.groupTitle }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
17592
17600
|
}
|
|
17593
17601
|
//--------------------------------------------------------------------------
|
|
@@ -17627,7 +17635,7 @@ class CalciteDropdownGroup {
|
|
|
17627
17635
|
}; }
|
|
17628
17636
|
}
|
|
17629
17637
|
|
|
17630
|
-
const CSS$
|
|
17638
|
+
const CSS$z = {
|
|
17631
17639
|
containerLink: "container--link",
|
|
17632
17640
|
containerSmall: "container--s",
|
|
17633
17641
|
containerMedium: "container--m",
|
|
@@ -17700,13 +17708,13 @@ class CalciteDropdownItem {
|
|
|
17700
17708
|
const itemAria = this.selectionMode !== "none" ? this.active.toString() : null;
|
|
17701
17709
|
return (hAsync(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, hAsync("div", { class: {
|
|
17702
17710
|
container: true,
|
|
17703
|
-
[CSS$
|
|
17704
|
-
[CSS$
|
|
17705
|
-
[CSS$
|
|
17706
|
-
[CSS$
|
|
17707
|
-
[CSS$
|
|
17708
|
-
[CSS$
|
|
17709
|
-
[CSS$
|
|
17711
|
+
[CSS$z.containerLink]: !!this.href,
|
|
17712
|
+
[CSS$z.containerSmall]: scale === "s",
|
|
17713
|
+
[CSS$z.containerMedium]: scale === "m",
|
|
17714
|
+
[CSS$z.containerLarge]: scale === "l",
|
|
17715
|
+
[CSS$z.containerMulti]: this.selectionMode === "multi",
|
|
17716
|
+
[CSS$z.containerSingle]: this.selectionMode === "single",
|
|
17717
|
+
[CSS$z.containerNone]: this.selectionMode === "none"
|
|
17710
17718
|
} }, this.selectionMode !== "none" ? (hAsync("calcite-icon", { class: "dropdown-item-icon", icon: this.selectionMode === "multi" ? "check" : "bullet-point", scale: "s" })) : null, contentEl)));
|
|
17711
17719
|
}
|
|
17712
17720
|
//--------------------------------------------------------------------------
|
|
@@ -17806,7 +17814,7 @@ class CalciteDropdownItem {
|
|
|
17806
17814
|
}; }
|
|
17807
17815
|
}
|
|
17808
17816
|
|
|
17809
|
-
const CSS$
|
|
17817
|
+
const CSS$y = {
|
|
17810
17818
|
button: "button"
|
|
17811
17819
|
};
|
|
17812
17820
|
const ICONS$9 = {
|
|
@@ -17870,7 +17878,7 @@ class CalciteFab {
|
|
|
17870
17878
|
render() {
|
|
17871
17879
|
const { appearance, color, disabled, loading, scale, textEnabled, icon, label, text } = this;
|
|
17872
17880
|
const title = !textEnabled ? label || text || null : null;
|
|
17873
|
-
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$
|
|
17881
|
+
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$y.button, color: color, disabled: disabled, iconStart: icon, label: label, loading: loading, ref: (buttonEl) => {
|
|
17874
17882
|
this.buttonEl = buttonEl;
|
|
17875
17883
|
}, round: true, scale: scale, title: title, width: "auto" }, this.textEnabled ? this.text : null));
|
|
17876
17884
|
}
|
|
@@ -17897,7 +17905,7 @@ class CalciteFab {
|
|
|
17897
17905
|
}; }
|
|
17898
17906
|
}
|
|
17899
17907
|
|
|
17900
|
-
const CSS$
|
|
17908
|
+
const CSS$x = {
|
|
17901
17909
|
container: "container",
|
|
17902
17910
|
searchIcon: "search-icon",
|
|
17903
17911
|
clearButton: "clear-button"
|
|
@@ -18002,9 +18010,9 @@ class CalciteFilter {
|
|
|
18002
18010
|
// --------------------------------------------------------------------------
|
|
18003
18011
|
render() {
|
|
18004
18012
|
const { disabled } = this;
|
|
18005
|
-
return (hAsync(Fragment, null, disabled ? hAsync("calcite-scrim", null) : null, hAsync("div", { class: CSS$
|
|
18013
|
+
return (hAsync(Fragment, null, disabled ? hAsync("calcite-scrim", null) : null, hAsync("div", { class: CSS$x.container }, hAsync("label", null, hAsync("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) => {
|
|
18006
18014
|
this.textInput = el;
|
|
18007
|
-
}, type: "text", value: this.value })), this.value ? (hAsync("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$
|
|
18015
|
+
}, type: "text", value: this.value })), this.value ? (hAsync("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$x.clearButton, onClick: this.clear }, hAsync("calcite-icon", { icon: ICONS$8.close }))) : null)));
|
|
18008
18016
|
}
|
|
18009
18017
|
get el() { return getElement(this); }
|
|
18010
18018
|
static get watchers() { return {
|
|
@@ -18031,7 +18039,7 @@ class CalciteFilter {
|
|
|
18031
18039
|
}; }
|
|
18032
18040
|
}
|
|
18033
18041
|
|
|
18034
|
-
const CSS$
|
|
18042
|
+
const CSS$w = {
|
|
18035
18043
|
frame: "frame",
|
|
18036
18044
|
frameAdvancing: "frame--advancing",
|
|
18037
18045
|
frameRetreating: "frame--retreating"
|
|
@@ -18132,9 +18140,9 @@ class CalciteFlow {
|
|
|
18132
18140
|
render() {
|
|
18133
18141
|
const { flowDirection, panelCount } = this;
|
|
18134
18142
|
const frameDirectionClasses = {
|
|
18135
|
-
[CSS$
|
|
18136
|
-
[CSS$
|
|
18137
|
-
[CSS$
|
|
18143
|
+
[CSS$w.frame]: true,
|
|
18144
|
+
[CSS$w.frameAdvancing]: flowDirection === "advancing",
|
|
18145
|
+
[CSS$w.frameRetreating]: flowDirection === "retreating"
|
|
18138
18146
|
};
|
|
18139
18147
|
return (hAsync("div", { class: frameDirectionClasses, key: panelCount }, hAsync("slot", null)));
|
|
18140
18148
|
}
|
|
@@ -18354,7 +18362,7 @@ class CalciteGraph {
|
|
|
18354
18362
|
}; }
|
|
18355
18363
|
}
|
|
18356
18364
|
|
|
18357
|
-
const CSS$
|
|
18365
|
+
const CSS$v = {
|
|
18358
18366
|
handle: "handle",
|
|
18359
18367
|
handleActivated: "handle--activated"
|
|
18360
18368
|
};
|
|
@@ -18422,7 +18430,7 @@ class CalciteHandle {
|
|
|
18422
18430
|
render() {
|
|
18423
18431
|
return (
|
|
18424
18432
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
18425
|
-
hAsync("span", { "aria-pressed": this.activated.toString(), class: { [CSS$
|
|
18433
|
+
hAsync("span", { "aria-pressed": this.activated.toString(), class: { [CSS$v.handle]: true, [CSS$v.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
18426
18434
|
this.handleButton = el;
|
|
18427
18435
|
}, role: "button", tabindex: "0", title: this.textTitle }, hAsync("calcite-icon", { icon: ICONS$7.drag, scale: "s" })));
|
|
18428
18436
|
}
|
|
@@ -18442,7 +18450,7 @@ class CalciteHandle {
|
|
|
18442
18450
|
}; }
|
|
18443
18451
|
}
|
|
18444
18452
|
|
|
18445
|
-
const CSS$
|
|
18453
|
+
const CSS$u = {
|
|
18446
18454
|
icon: "icon",
|
|
18447
18455
|
flipRtl: "flip-rtl"
|
|
18448
18456
|
};
|
|
@@ -18503,7 +18511,7 @@ class CalciteIcon {
|
|
|
18503
18511
|
const semantic = !!textLabel;
|
|
18504
18512
|
const paths = [].concat(pathData || "");
|
|
18505
18513
|
return (hAsync(Host, { "aria-hidden": (!semantic).toString(), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, hAsync("svg", { class: {
|
|
18506
|
-
[CSS$
|
|
18514
|
+
[CSS$u.flipRtl]: dir === "rtl" && flipRtl,
|
|
18507
18515
|
svg: true
|
|
18508
18516
|
}, fill: "currentColor", height: "100%", viewBox: `0 0 ${size} ${size}`, width: "100%", xmlns: "http://www.w3.org/2000/svg" }, paths.map((path) => typeof path === "string" ? (hAsync("path", { d: path })) : (hAsync("path", { d: path.d, opacity: "opacity" in path ? path.opacity : 1 }))))));
|
|
18509
18517
|
}
|
|
@@ -18549,7 +18557,7 @@ class CalciteIcon {
|
|
|
18549
18557
|
}; }
|
|
18550
18558
|
}
|
|
18551
18559
|
|
|
18552
|
-
const CSS$
|
|
18560
|
+
const CSS$t = {
|
|
18553
18561
|
wrapper: "wrapper",
|
|
18554
18562
|
confirmChangesButton: "confirm-changes-button",
|
|
18555
18563
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -18698,12 +18706,12 @@ class CalciteInlineEditable {
|
|
|
18698
18706
|
this.scale || this.inputElement.scale || getElementProp(this.el, "scale", undefined);
|
|
18699
18707
|
}
|
|
18700
18708
|
render() {
|
|
18701
|
-
return (hAsync("div", { class: CSS$
|
|
18709
|
+
return (hAsync("div", { class: CSS$t.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler, onTransitionEnd: this.transitionEnd }, hAsync("div", { class: CSS$t.inputWrapper }, hAsync("slot", null)), hAsync("div", { class: CSS$t.controlsWrapper }, hAsync("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: {
|
|
18702
18710
|
opacity: this.editingEnabled ? "0" : "1",
|
|
18703
18711
|
width: this.editingEnabled ? "0" : "inherit"
|
|
18704
18712
|
} }), this.shouldShowControls && [
|
|
18705
|
-
hAsync("div", { class: CSS$
|
|
18706
|
-
hAsync("calcite-button", { appearance: "solid", class: CSS$
|
|
18713
|
+
hAsync("div", { class: CSS$t.cancelEditingButtonWrapper }, hAsync("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 })),
|
|
18714
|
+
hAsync("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 })
|
|
18707
18715
|
])));
|
|
18708
18716
|
}
|
|
18709
18717
|
//--------------------------------------------------------------------------
|
|
@@ -18768,7 +18776,7 @@ class CalciteInlineEditable {
|
|
|
18768
18776
|
}; }
|
|
18769
18777
|
}
|
|
18770
18778
|
|
|
18771
|
-
const CSS$
|
|
18779
|
+
const CSS$s = {
|
|
18772
18780
|
loader: "loader",
|
|
18773
18781
|
clearButton: "clear-button",
|
|
18774
18782
|
editingEnabled: "editing-enabled",
|
|
@@ -19019,18 +19027,19 @@ class CalciteInput {
|
|
|
19019
19027
|
};
|
|
19020
19028
|
this.setValue = (value, nativeEvent, committing = false) => {
|
|
19021
19029
|
const previousValue = this.value;
|
|
19022
|
-
this.value = this.type === "number" ? sanitizeNumberString(value) : value;
|
|
19023
19030
|
if (this.type === "number") {
|
|
19024
|
-
|
|
19031
|
+
const sanitizedValue = sanitizeNumberString(value);
|
|
19032
|
+
this.value = sanitizedValue;
|
|
19033
|
+
this.setLocalizedValue(sanitizedValue);
|
|
19034
|
+
}
|
|
19035
|
+
else {
|
|
19036
|
+
this.value = value;
|
|
19025
19037
|
}
|
|
19026
19038
|
if (nativeEvent) {
|
|
19027
|
-
if (this.type === "number") {
|
|
19028
|
-
value = sanitizeNumberString(value);
|
|
19029
|
-
}
|
|
19030
19039
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
19031
19040
|
element: this.childEl,
|
|
19032
19041
|
nativeEvent,
|
|
19033
|
-
value
|
|
19042
|
+
value: this.value
|
|
19034
19043
|
});
|
|
19035
19044
|
if (calciteInputInputEvent.defaultPrevented) {
|
|
19036
19045
|
this.value = previousValue;
|
|
@@ -19096,7 +19105,7 @@ class CalciteInput {
|
|
|
19096
19105
|
this.localizedValue = localizeNumberString(this.value, this.locale, this.groupSeparator);
|
|
19097
19106
|
}
|
|
19098
19107
|
else {
|
|
19099
|
-
this.value =
|
|
19108
|
+
this.value = "";
|
|
19100
19109
|
}
|
|
19101
19110
|
}
|
|
19102
19111
|
connectLabel(this);
|
|
@@ -19195,34 +19204,34 @@ class CalciteInput {
|
|
|
19195
19204
|
// --------------------------------------------------------------------------
|
|
19196
19205
|
render() {
|
|
19197
19206
|
const dir = getElementDir(this.el);
|
|
19198
|
-
const loader = (hAsync("div", { class: CSS$
|
|
19199
|
-
const inputClearButton = (hAsync("button", { class: CSS$
|
|
19200
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
19207
|
+
const loader = (hAsync("div", { class: CSS$s.loader }, hAsync("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
19208
|
+
const inputClearButton = (hAsync("button", { class: CSS$s.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: "s" })));
|
|
19209
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$s.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
19201
19210
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
19202
19211
|
const numberButtonsHorizontalUp = (hAsync("button", { class: {
|
|
19203
|
-
[CSS$
|
|
19204
|
-
[CSS$
|
|
19212
|
+
[CSS$s.numberButtonItem]: true,
|
|
19213
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
19205
19214
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onMouseDown: this.numberButtonMouseDownHandler, onMouseOut: this.numberButtonMouseUpAndMouseOutHandler, onMouseUp: this.numberButtonMouseUpAndMouseOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
19206
19215
|
const numberButtonsHorizontalDown = (hAsync("button", { class: {
|
|
19207
|
-
[CSS$
|
|
19208
|
-
[CSS$
|
|
19216
|
+
[CSS$s.numberButtonItem]: true,
|
|
19217
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
19209
19218
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onMouseDown: this.numberButtonMouseDownHandler, onMouseOut: this.numberButtonMouseUpAndMouseOutHandler, onMouseUp: this.numberButtonMouseUpAndMouseOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
19210
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
19211
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
19212
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
19219
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$s.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
19220
|
+
const prefixText = hAsync("div", { class: CSS$s.prefix }, this.prefixText);
|
|
19221
|
+
const suffixText = hAsync("div", { class: CSS$s.suffix }, this.suffixText);
|
|
19213
19222
|
const localeNumberInput = this.type === "number" ? (hAsync("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, type: "text", value: this.localizedValue })) : null;
|
|
19214
19223
|
const childEl = this.type !== "number"
|
|
19215
19224
|
? [
|
|
19216
19225
|
hAsync(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
19217
|
-
[CSS$
|
|
19218
|
-
[CSS$
|
|
19226
|
+
[CSS$s.editingEnabled]: this.editingEnabled,
|
|
19227
|
+
[CSS$s.inlineChild]: !!this.inlineEditableEl
|
|
19219
19228
|
}, 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 }),
|
|
19220
|
-
this.isTextarea ? (hAsync("div", { class: CSS$
|
|
19229
|
+
this.isTextarea ? (hAsync("div", { class: CSS$s.resizeIconWrapper }, hAsync("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
19221
19230
|
]
|
|
19222
19231
|
: null;
|
|
19223
|
-
return (hAsync(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
19232
|
+
return (hAsync(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$s.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
19224
19233
|
? numberButtonsHorizontalDown
|
|
19225
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
19234
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$s.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$s.actionWrapper }, hAsync("slot", { name: SLOTS$g.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
19226
19235
|
? numberButtonsVertical
|
|
19227
19236
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
19228
19237
|
? numberButtonsHorizontalUp
|
|
@@ -19524,8 +19533,8 @@ class CalciteInputDatePicker {
|
|
|
19524
19533
|
return (hAsync(Host, { onBlur: this.deactivate, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (hAsync("div", { "aria-expanded": this.active.toString(), class: "input-container", role: "application" }, hAsync("div", { class: "input-wrapper", ref: this.setStartWrapper }, hAsync("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 })), hAsync("div", { "aria-hidden": (!this.active).toString(), class: "menu-container", ref: this.setMenuEl }, hAsync("div", { class: {
|
|
19525
19534
|
["calendar-picker-wrapper"]: true,
|
|
19526
19535
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
19527
|
-
[CSS$
|
|
19528
|
-
[CSS$
|
|
19536
|
+
[CSS$D.animation]: true,
|
|
19537
|
+
[CSS$D.animationActive]: this.active
|
|
19529
19538
|
}, onTransitionEnd: this.transitionEnd }, hAsync("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" && (hAsync("div", { class: "horizontal-arrow-container" }, hAsync("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (hAsync("div", { class: "vertical-arrow-container" }, hAsync("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (hAsync("div", { class: "input-wrapper", ref: this.setEndWrapper }, hAsync("calcite-input", { class: {
|
|
19530
19539
|
input: true,
|
|
19531
19540
|
"border-top-color-one": this.layout === "vertical" && this.range
|
|
@@ -20225,7 +20234,7 @@ class CalciteInputTimePicker {
|
|
|
20225
20234
|
}; }
|
|
20226
20235
|
}
|
|
20227
20236
|
|
|
20228
|
-
const CSS$
|
|
20237
|
+
const CSS$r = {
|
|
20229
20238
|
container: "container"
|
|
20230
20239
|
};
|
|
20231
20240
|
|
|
@@ -20272,7 +20281,7 @@ class CalciteLabel {
|
|
|
20272
20281
|
//
|
|
20273
20282
|
//--------------------------------------------------------------------------
|
|
20274
20283
|
render() {
|
|
20275
|
-
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$
|
|
20284
|
+
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$r.container }, hAsync("slot", null))));
|
|
20276
20285
|
}
|
|
20277
20286
|
get el() { return getElement(this); }
|
|
20278
20287
|
static get style() { return calciteLabelCss; }
|
|
@@ -20375,7 +20384,7 @@ class CalciteLink {
|
|
|
20375
20384
|
}; }
|
|
20376
20385
|
}
|
|
20377
20386
|
|
|
20378
|
-
const CSS$
|
|
20387
|
+
const CSS$q = {
|
|
20379
20388
|
container: "container"
|
|
20380
20389
|
};
|
|
20381
20390
|
|
|
@@ -20405,7 +20414,7 @@ class CalciteList {
|
|
|
20405
20414
|
//
|
|
20406
20415
|
// --------------------------------------------------------------------------
|
|
20407
20416
|
render() {
|
|
20408
|
-
return (hAsync(Host, { role: "list" }, hAsync("div", { class: CSS$
|
|
20417
|
+
return (hAsync(Host, { role: "list" }, hAsync("div", { class: CSS$q.container }, hAsync("slot", null))));
|
|
20409
20418
|
}
|
|
20410
20419
|
get el() { return getElement(this); }
|
|
20411
20420
|
static get style() { return calciteListCss; }
|
|
@@ -20422,7 +20431,7 @@ class CalciteList {
|
|
|
20422
20431
|
}; }
|
|
20423
20432
|
}
|
|
20424
20433
|
|
|
20425
|
-
const CSS$
|
|
20434
|
+
const CSS$p = {
|
|
20426
20435
|
container: "container",
|
|
20427
20436
|
contentContainer: "content-container",
|
|
20428
20437
|
nestedContainer: "nested-container",
|
|
@@ -20485,31 +20494,31 @@ class CalciteListItem {
|
|
|
20485
20494
|
// --------------------------------------------------------------------------
|
|
20486
20495
|
renderActionsStart() {
|
|
20487
20496
|
const { el } = this;
|
|
20488
|
-
return getSlotted(el, SLOTS$f.actionsStart) ? (hAsync("div", { class: CSS$
|
|
20497
|
+
return getSlotted(el, SLOTS$f.actionsStart) ? (hAsync("div", { class: CSS$p.actionsStart }, hAsync("slot", { name: SLOTS$f.actionsStart }))) : null;
|
|
20489
20498
|
}
|
|
20490
20499
|
renderActionsEnd() {
|
|
20491
20500
|
const { el } = this;
|
|
20492
|
-
return getSlotted(el, SLOTS$f.actionsEnd) ? (hAsync("div", { class: CSS$
|
|
20501
|
+
return getSlotted(el, SLOTS$f.actionsEnd) ? (hAsync("div", { class: CSS$p.actionsEnd }, hAsync("slot", { name: SLOTS$f.actionsEnd }))) : null;
|
|
20493
20502
|
}
|
|
20494
20503
|
renderContentStart() {
|
|
20495
20504
|
const { el } = this;
|
|
20496
|
-
return getSlotted(el, SLOTS$f.contentStart) ? (hAsync("div", { class: CSS$
|
|
20505
|
+
return getSlotted(el, SLOTS$f.contentStart) ? (hAsync("div", { class: CSS$p.contentStart }, hAsync("slot", { name: SLOTS$f.contentStart }))) : null;
|
|
20497
20506
|
}
|
|
20498
20507
|
renderContentEnd() {
|
|
20499
20508
|
const { el } = this;
|
|
20500
|
-
return getSlotted(el, SLOTS$f.contentEnd) ? (hAsync("div", { class: CSS$
|
|
20509
|
+
return getSlotted(el, SLOTS$f.contentEnd) ? (hAsync("div", { class: CSS$p.contentEnd }, hAsync("slot", { name: SLOTS$f.contentEnd }))) : null;
|
|
20501
20510
|
}
|
|
20502
20511
|
renderContent() {
|
|
20503
20512
|
const { label, description } = this;
|
|
20504
|
-
return !!label || !!description ? (hAsync("div", { class: CSS$
|
|
20513
|
+
return !!label || !!description ? (hAsync("div", { class: CSS$p.content }, label ? hAsync("div", { class: CSS$p.label }, label) : null, description ? hAsync("div", { class: CSS$p.description }, description) : null)) : null;
|
|
20505
20514
|
}
|
|
20506
20515
|
renderContentContainer() {
|
|
20507
20516
|
const { disabled, nonInteractive } = this;
|
|
20508
20517
|
const content = [this.renderContentStart(), this.renderContent(), this.renderContentEnd()];
|
|
20509
|
-
return !nonInteractive ? (hAsync("button", { class: { [CSS$
|
|
20518
|
+
return !nonInteractive ? (hAsync("button", { class: { [CSS$p.contentContainer]: true, [CSS$p.contentContainerButton]: true }, disabled: disabled, ref: (focusEl) => (this.focusEl = focusEl) }, content)) : (hAsync("div", { class: CSS$p.contentContainer, ref: () => (this.focusEl = null) }, content));
|
|
20510
20519
|
}
|
|
20511
20520
|
render() {
|
|
20512
|
-
return (hAsync(Host, { role: "listitem" }, hAsync("div", { class: CSS$
|
|
20521
|
+
return (hAsync(Host, { role: "listitem" }, hAsync("div", { class: CSS$p.container }, this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), hAsync("div", { class: CSS$p.nestedContainer }, hAsync("slot", null))));
|
|
20513
20522
|
}
|
|
20514
20523
|
get el() { return getElement(this); }
|
|
20515
20524
|
static get style() { return calciteListItemCss; }
|
|
@@ -20529,7 +20538,7 @@ class CalciteListItem {
|
|
|
20529
20538
|
}; }
|
|
20530
20539
|
}
|
|
20531
20540
|
|
|
20532
|
-
const CSS$
|
|
20541
|
+
const CSS$o = {
|
|
20533
20542
|
heading: "heading",
|
|
20534
20543
|
container: "container"
|
|
20535
20544
|
};
|
|
@@ -20555,7 +20564,7 @@ class CalciteListItemGroup {
|
|
|
20555
20564
|
const parentLevel = (_a = el.closest("calcite-list, calcite-list-item-group")) === null || _a === void 0 ? void 0 : _a.headingLevel;
|
|
20556
20565
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
20557
20566
|
const level = headingLevel || relativeLevel || HEADING_LEVEL$5;
|
|
20558
|
-
return (hAsync(Host, null, heading ? (hAsync(CalciteHeading, { class: CSS$
|
|
20567
|
+
return (hAsync(Host, null, heading ? (hAsync(CalciteHeading, { class: CSS$o.heading, level: level }, heading)) : null, hAsync("div", { class: CSS$o.container, role: "group" }, hAsync("slot", null))));
|
|
20559
20568
|
}
|
|
20560
20569
|
get el() { return getElement(this); }
|
|
20561
20570
|
static get style() { return calciteListItemGroupCss; }
|
|
@@ -20768,7 +20777,7 @@ function isFocusable($elem) {
|
|
|
20768
20777
|
|| $elem instanceof HTMLIFrameElement);
|
|
20769
20778
|
}
|
|
20770
20779
|
|
|
20771
|
-
const CSS$
|
|
20780
|
+
const CSS$n = {
|
|
20772
20781
|
title: "title",
|
|
20773
20782
|
header: "header",
|
|
20774
20783
|
footer: "footer",
|
|
@@ -20912,17 +20921,17 @@ class CalciteModal {
|
|
|
20912
20921
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
20913
20922
|
}
|
|
20914
20923
|
render() {
|
|
20915
|
-
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("calcite-scrim", { class: CSS$
|
|
20924
|
+
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("calcite-scrim", { class: CSS$n.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), hAsync("div", { class: "modal", onTransitionEnd: this.transitionEnd }, hAsync("div", { "data-focus-fence": true, onFocus: this.focusLastElement, tabindex: "0" }), hAsync("div", { class: CSS$n.header }, this.renderCloseButton(), hAsync("header", { class: CSS$n.title }, hAsync("slot", { name: CSS$n.header }))), hAsync("div", { class: {
|
|
20916
20925
|
content: true,
|
|
20917
20926
|
"content--spaced": !this.noPadding,
|
|
20918
20927
|
"content--no-footer": !this.hasFooter
|
|
20919
20928
|
}, ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$e.content })), this.renderFooter(), hAsync("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
|
20920
20929
|
}
|
|
20921
20930
|
renderFooter() {
|
|
20922
|
-
return this.hasFooter ? (hAsync("div", { class: CSS$
|
|
20931
|
+
return this.hasFooter ? (hAsync("div", { class: CSS$n.footer }, hAsync("span", { class: CSS$n.back }, hAsync("slot", { name: SLOTS$e.back })), hAsync("span", { class: CSS$n.secondary }, hAsync("slot", { name: SLOTS$e.secondary })), hAsync("span", { class: CSS$n.primary }, hAsync("slot", { name: SLOTS$e.primary })))) : null;
|
|
20923
20932
|
}
|
|
20924
20933
|
renderCloseButton() {
|
|
20925
|
-
return !this.disableCloseButton ? (hAsync("button", { "aria-label": this.intlClose, class: CSS$
|
|
20934
|
+
return !this.disableCloseButton ? (hAsync("button", { "aria-label": this.intlClose, class: CSS$n.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, hAsync("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
20926
20935
|
}
|
|
20927
20936
|
renderStyle() {
|
|
20928
20937
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -21012,10 +21021,10 @@ class CalciteModal {
|
|
|
21012
21021
|
const contentEl = getSlotted(this.el, SLOTS$e.content);
|
|
21013
21022
|
this.titleId = ensureId(titleEl);
|
|
21014
21023
|
this.contentId = ensureId(contentEl);
|
|
21015
|
-
document.documentElement.classList.add(CSS$
|
|
21024
|
+
document.documentElement.classList.add(CSS$n.overflowHidden);
|
|
21016
21025
|
}
|
|
21017
21026
|
removeOverflowHiddenClass() {
|
|
21018
|
-
document.documentElement.classList.remove(CSS$
|
|
21027
|
+
document.documentElement.classList.remove(CSS$n.overflowHidden);
|
|
21019
21028
|
}
|
|
21020
21029
|
get el() { return getElement(this); }
|
|
21021
21030
|
static get watchers() { return {
|
|
@@ -21060,7 +21069,7 @@ const SLOTS$d = {
|
|
|
21060
21069
|
link: "link",
|
|
21061
21070
|
actionsEnd: "actions-end"
|
|
21062
21071
|
};
|
|
21063
|
-
const CSS$
|
|
21072
|
+
const CSS$m = {
|
|
21064
21073
|
actionsEnd: "actions-end",
|
|
21065
21074
|
close: "notice-close",
|
|
21066
21075
|
container: "container",
|
|
@@ -21131,9 +21140,9 @@ class CalciteNotice {
|
|
|
21131
21140
|
}
|
|
21132
21141
|
render() {
|
|
21133
21142
|
const { el } = this;
|
|
21134
|
-
const closeButton = (hAsync("button", { "aria-label": this.intlClose, class: CSS$
|
|
21143
|
+
const closeButton = (hAsync("button", { "aria-label": this.intlClose, class: CSS$m.close, onClick: this.close, ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
21135
21144
|
const hasActionEnd = getSlotted(el, SLOTS$d.actionsEnd);
|
|
21136
|
-
return (hAsync("div", { class: CSS$
|
|
21145
|
+
return (hAsync("div", { class: CSS$m.container }, this.requestedIcon ? (hAsync("div", { class: CSS$m.icon }, hAsync("calcite-icon", { icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: CSS$m.content }, hAsync("slot", { name: SLOTS$d.title }), hAsync("slot", { name: SLOTS$d.message }), hAsync("slot", { name: SLOTS$d.link })), hasActionEnd ? (hAsync("div", { class: CSS$m.actionsEnd }, hAsync("slot", { name: SLOTS$d.actionsEnd }))) : null, this.dismissible ? closeButton : null));
|
|
21137
21146
|
}
|
|
21138
21147
|
//--------------------------------------------------------------------------
|
|
21139
21148
|
//
|
|
@@ -21314,7 +21323,7 @@ class CalciteOptionGroup {
|
|
|
21314
21323
|
}; }
|
|
21315
21324
|
}
|
|
21316
21325
|
|
|
21317
|
-
const CSS$
|
|
21326
|
+
const CSS$l = {
|
|
21318
21327
|
page: "page",
|
|
21319
21328
|
selected: "is-selected",
|
|
21320
21329
|
previous: "previous",
|
|
@@ -21447,8 +21456,8 @@ class CalcitePagination {
|
|
|
21447
21456
|
renderPage(start) {
|
|
21448
21457
|
const page = Math.floor(start / this.num) + (this.num === 1 ? 0 : 1);
|
|
21449
21458
|
return (hAsync("button", { class: {
|
|
21450
|
-
[CSS$
|
|
21451
|
-
[CSS$
|
|
21459
|
+
[CSS$l.page]: true,
|
|
21460
|
+
[CSS$l.selected]: start === this.start
|
|
21452
21461
|
}, onClick: () => {
|
|
21453
21462
|
this.start = start;
|
|
21454
21463
|
this.emitUpdate();
|
|
@@ -21456,12 +21465,12 @@ class CalcitePagination {
|
|
|
21456
21465
|
}
|
|
21457
21466
|
renderLeftEllipsis() {
|
|
21458
21467
|
if (this.total / this.num > maxPagesDisplayed && this.showLeftEllipsis()) {
|
|
21459
|
-
return hAsync("span", { class: `${CSS$
|
|
21468
|
+
return hAsync("span", { class: `${CSS$l.ellipsis} ${CSS$l.ellipsisStart}` }, "\u2026");
|
|
21460
21469
|
}
|
|
21461
21470
|
}
|
|
21462
21471
|
renderRightEllipsis() {
|
|
21463
21472
|
if (this.total / this.num > maxPagesDisplayed && this.showRightEllipsis()) {
|
|
21464
|
-
return hAsync("span", { class: `${CSS$
|
|
21473
|
+
return hAsync("span", { class: `${CSS$l.ellipsis} ${CSS$l.ellipsisEnd}` }, "\u2026");
|
|
21465
21474
|
}
|
|
21466
21475
|
}
|
|
21467
21476
|
render() {
|
|
@@ -21469,11 +21478,11 @@ class CalcitePagination {
|
|
|
21469
21478
|
const prevDisabled = num === 1 ? start <= num : start < num;
|
|
21470
21479
|
const nextDisabled = num === 1 ? start + num > total : start + num > total;
|
|
21471
21480
|
return (hAsync(Fragment, null, hAsync("button", { "aria-label": this.textLabelPrevious, class: {
|
|
21472
|
-
[CSS$
|
|
21473
|
-
[CSS$
|
|
21481
|
+
[CSS$l.previous]: true,
|
|
21482
|
+
[CSS$l.disabled]: prevDisabled
|
|
21474
21483
|
}, disabled: prevDisabled, onClick: this.previousClicked }, hAsync("calcite-icon", { flipRtl: true, icon: "chevronLeft", scale: "s" })), total > num ? this.renderPage(1) : null, this.renderLeftEllipsis(), this.renderPages(), this.renderRightEllipsis(), this.renderPage(this.getLastStart()), hAsync("button", { "aria-label": this.textLabelNext, class: {
|
|
21475
|
-
[CSS$
|
|
21476
|
-
[CSS$
|
|
21484
|
+
[CSS$l.next]: true,
|
|
21485
|
+
[CSS$l.disabled]: nextDisabled
|
|
21477
21486
|
}, disabled: nextDisabled, onClick: this.nextClicked }, hAsync("calcite-icon", { flipRtl: true, icon: "chevronRight", scale: "s" }))));
|
|
21478
21487
|
}
|
|
21479
21488
|
get el() { return getElement(this); }
|
|
@@ -21497,7 +21506,7 @@ class CalcitePagination {
|
|
|
21497
21506
|
}; }
|
|
21498
21507
|
}
|
|
21499
21508
|
|
|
21500
|
-
const CSS$
|
|
21509
|
+
const CSS$k = {
|
|
21501
21510
|
backButton: "back-button",
|
|
21502
21511
|
container: "container",
|
|
21503
21512
|
header: "header",
|
|
@@ -21648,24 +21657,24 @@ class CalcitePanel {
|
|
|
21648
21657
|
const { showBackButton, intlBack, backButtonClick } = this;
|
|
21649
21658
|
const label = intlBack || TEXT$8.back;
|
|
21650
21659
|
const icon = rtl ? ICONS$5.backRight : ICONS$5.backLeft;
|
|
21651
|
-
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$
|
|
21660
|
+
return showBackButton ? (hAsync("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;
|
|
21652
21661
|
}
|
|
21653
21662
|
renderHeaderContent() {
|
|
21654
21663
|
const { heading, headingLevel, summary } = this;
|
|
21655
|
-
const headingNode = heading ? (hAsync(CalciteHeading, { class: CSS$
|
|
21656
|
-
const summaryNode = summary ? hAsync("span", { class: CSS$
|
|
21657
|
-
return headingNode || summaryNode ? (hAsync("div", { class: CSS$
|
|
21664
|
+
const headingNode = heading ? (hAsync(CalciteHeading, { class: CSS$k.heading, level: headingLevel || HEADING_LEVEL$4 }, heading)) : null;
|
|
21665
|
+
const summaryNode = summary ? hAsync("span", { class: CSS$k.summary }, summary) : null;
|
|
21666
|
+
return headingNode || summaryNode ? (hAsync("div", { class: CSS$k.headerContent, key: "header-content" }, headingNode, summaryNode)) : null;
|
|
21658
21667
|
}
|
|
21659
21668
|
/**
|
|
21660
21669
|
* Allows user to override the entire header-content node.
|
|
21661
21670
|
*/
|
|
21662
21671
|
renderHeaderSlottedContent() {
|
|
21663
|
-
return (hAsync("div", { class: CSS$
|
|
21672
|
+
return (hAsync("div", { class: CSS$k.headerContent, key: "header-content" }, hAsync("slot", { name: SLOTS$c.headerContent })));
|
|
21664
21673
|
}
|
|
21665
21674
|
renderHeaderStartActions() {
|
|
21666
21675
|
const { el } = this;
|
|
21667
21676
|
const hasStartActions = getSlotted(el, SLOTS$c.headerActionsStart);
|
|
21668
|
-
return hasStartActions ? (hAsync("div", { class: { [CSS$
|
|
21677
|
+
return hasStartActions ? (hAsync("div", { class: { [CSS$k.headerActionsStart]: true, [CSS$k.headerActions]: true }, key: "header-actions-start" }, hAsync("slot", { name: SLOTS$c.headerActionsStart }))) : null;
|
|
21669
21678
|
}
|
|
21670
21679
|
renderHeaderActionsEnd() {
|
|
21671
21680
|
const { dismiss, dismissible, el, intlClose } = this;
|
|
@@ -21673,7 +21682,7 @@ class CalcitePanel {
|
|
|
21673
21682
|
const dismissibleNode = dismissible ? (hAsync("calcite-action", { "aria-label": text, icon: ICONS$5.close, onClick: dismiss, ref: this.setDismissRef, text: text })) : null;
|
|
21674
21683
|
const slotNode = hAsync("slot", { name: SLOTS$c.headerActionsEnd });
|
|
21675
21684
|
const hasEndActions = getSlotted(el, SLOTS$c.headerActionsEnd);
|
|
21676
|
-
return hasEndActions || dismissibleNode ? (hAsync("div", { class: { [CSS$
|
|
21685
|
+
return hasEndActions || dismissibleNode ? (hAsync("div", { class: { [CSS$k.headerActionsEnd]: true, [CSS$k.headerActions]: true }, key: "header-actions-end" }, slotNode, dismissibleNode)) : null;
|
|
21677
21686
|
}
|
|
21678
21687
|
renderMenu() {
|
|
21679
21688
|
const { el, intlOptions, menuOpen } = this;
|
|
@@ -21694,7 +21703,7 @@ class CalcitePanel {
|
|
|
21694
21703
|
headerContentNode ||
|
|
21695
21704
|
actionsNodeEnd ||
|
|
21696
21705
|
headerMenuNode ||
|
|
21697
|
-
showBackButton ? (hAsync("header", { class: CSS$
|
|
21706
|
+
showBackButton ? (hAsync("header", { class: CSS$k.header }, backButtonNode, actionsNodeStart, headerContentNode, actionsNodeEnd, headerMenuNode)) : null;
|
|
21698
21707
|
}
|
|
21699
21708
|
/**
|
|
21700
21709
|
* Allows user to override the entire footer node.
|
|
@@ -21702,24 +21711,24 @@ class CalcitePanel {
|
|
|
21702
21711
|
renderFooterSlottedContent() {
|
|
21703
21712
|
const { el } = this;
|
|
21704
21713
|
const hasFooterSlottedContent = getSlotted(el, SLOTS$c.footer);
|
|
21705
|
-
return hasFooterSlottedContent ? (hAsync("footer", { class: CSS$
|
|
21714
|
+
return hasFooterSlottedContent ? (hAsync("footer", { class: CSS$k.footer }, hAsync("slot", { name: SLOTS$c.footer }))) : null;
|
|
21706
21715
|
}
|
|
21707
21716
|
renderFooterActions() {
|
|
21708
21717
|
const { el } = this;
|
|
21709
21718
|
const hasFooterActions = getSlotted(el, SLOTS$c.footerActions);
|
|
21710
|
-
return hasFooterActions ? (hAsync("footer", { class: CSS$
|
|
21719
|
+
return hasFooterActions ? (hAsync("footer", { class: CSS$k.footer }, hAsync("slot", { name: SLOTS$c.footerActions }))) : null;
|
|
21711
21720
|
}
|
|
21712
21721
|
renderContent() {
|
|
21713
21722
|
const { el } = this;
|
|
21714
21723
|
const hasFab = getSlotted(el, SLOTS$c.fab);
|
|
21715
|
-
return hasFab ? (hAsync("div", { class: { [CSS$
|
|
21724
|
+
return hasFab ? (hAsync("div", { class: { [CSS$k.contentWrapper]: true, [CSS$k.contentHeight]: true }, onScroll: this.panelScrollHandler, tabIndex: 0 }, hAsync("section", { class: CSS$k.contentContainer }, hAsync("slot", null)), this.renderFab())) : (hAsync("section", { class: { [CSS$k.contentWrapper]: true, [CSS$k.contentContainer]: true }, onScroll: this.panelScrollHandler, tabIndex: 0 }, hAsync("slot", null)));
|
|
21716
21725
|
}
|
|
21717
21726
|
renderFab() {
|
|
21718
|
-
return (hAsync("div", { class: CSS$
|
|
21727
|
+
return (hAsync("div", { class: CSS$k.fabContainer }, hAsync("slot", { name: SLOTS$c.fab })));
|
|
21719
21728
|
}
|
|
21720
21729
|
render() {
|
|
21721
21730
|
const { dismissed, disabled, dismissible, loading, panelKeyDownHandler } = this;
|
|
21722
|
-
const panelNode = (hAsync("article", { "aria-busy": loading.toString(), class: CSS$
|
|
21731
|
+
const panelNode = (hAsync("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()));
|
|
21723
21732
|
return (hAsync(Fragment, null, loading || disabled ? hAsync("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
21724
21733
|
}
|
|
21725
21734
|
get el() { return getElement(this); }
|
|
@@ -21754,7 +21763,7 @@ class CalcitePanel {
|
|
|
21754
21763
|
}; }
|
|
21755
21764
|
}
|
|
21756
21765
|
|
|
21757
|
-
const CSS$
|
|
21766
|
+
const CSS$j = {
|
|
21758
21767
|
sticky: "sticky-pos"
|
|
21759
21768
|
};
|
|
21760
21769
|
var ICON_TYPES$1;
|
|
@@ -22035,7 +22044,7 @@ const List = (_a) => {
|
|
|
22035
22044
|
const defaultSlot = hAsync("slot", null);
|
|
22036
22045
|
return (hAsync(Host, Object.assign({ "aria-busy": loading.toString(), "aria-disabled": disabled.toString(), role: "menu" }, rest),
|
|
22037
22046
|
hAsync("section", null,
|
|
22038
|
-
hAsync("header", { class: { [CSS$
|
|
22047
|
+
hAsync("header", { class: { [CSS$j.sticky]: true } },
|
|
22039
22048
|
filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,
|
|
22040
22049
|
hAsync("slot", { name: SLOTS$b.menuActions })),
|
|
22041
22050
|
loading || disabled ? hAsync("calcite-scrim", { loading: loading }) : null,
|
|
@@ -22187,7 +22196,7 @@ class CalcitePickList {
|
|
|
22187
22196
|
}; }
|
|
22188
22197
|
}
|
|
22189
22198
|
|
|
22190
|
-
const CSS$
|
|
22199
|
+
const CSS$i = {
|
|
22191
22200
|
heading: "heading",
|
|
22192
22201
|
container: "container",
|
|
22193
22202
|
indented: "container--indented"
|
|
@@ -22216,14 +22225,14 @@ class CalcitePickListGroup {
|
|
|
22216
22225
|
const { el, groupTitle, headingLevel } = this;
|
|
22217
22226
|
const hasParentItem = getSlotted(el, SLOTS$a.parentItem) !== null;
|
|
22218
22227
|
const sectionClasses = {
|
|
22219
|
-
[CSS$
|
|
22220
|
-
[CSS$
|
|
22228
|
+
[CSS$i.container]: true,
|
|
22229
|
+
[CSS$i.indented]: hasParentItem
|
|
22221
22230
|
};
|
|
22222
22231
|
const title = groupTitle;
|
|
22223
22232
|
const parentLevel = (_a = el.closest("calcite-pick-list")) === null || _a === void 0 ? void 0 : _a.headingLevel;
|
|
22224
22233
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
22225
22234
|
const level = headingLevel || relativeLevel || HEADING_LEVEL$3;
|
|
22226
|
-
return (hAsync(Fragment, null, title ? (hAsync(CalciteHeading, { class: CSS$
|
|
22235
|
+
return (hAsync(Fragment, null, title ? (hAsync(CalciteHeading, { class: CSS$i.heading, level: level }, title)) : null, hAsync("slot", { name: SLOTS$a.parentItem }), hAsync("section", { class: sectionClasses }, hAsync("slot", null))));
|
|
22227
22236
|
}
|
|
22228
22237
|
get el() { return getElement(this); }
|
|
22229
22238
|
static get style() { return calcitePickListGroupCss; }
|
|
@@ -22240,7 +22249,7 @@ class CalcitePickListGroup {
|
|
|
22240
22249
|
}; }
|
|
22241
22250
|
}
|
|
22242
22251
|
|
|
22243
|
-
const CSS$
|
|
22252
|
+
const CSS$h = {
|
|
22244
22253
|
actions: "actions",
|
|
22245
22254
|
actionsEnd: "actions--end",
|
|
22246
22255
|
actionsStart: "actions--start",
|
|
@@ -22387,26 +22396,26 @@ class CalcitePickListItem {
|
|
|
22387
22396
|
return null;
|
|
22388
22397
|
}
|
|
22389
22398
|
return (hAsync("span", { class: {
|
|
22390
|
-
[CSS$
|
|
22391
|
-
[CSS$
|
|
22399
|
+
[CSS$h.icon]: true,
|
|
22400
|
+
[CSS$h.iconDot]: icon === ICON_TYPES$1.circle
|
|
22392
22401
|
}, onClick: this.pickListClickHandler }, icon === ICON_TYPES$1.square ? hAsync("calcite-icon", { icon: ICONS$4.checked, scale: "s" }) : null));
|
|
22393
22402
|
}
|
|
22394
22403
|
renderRemoveAction() {
|
|
22395
|
-
return this.removable ? (hAsync("calcite-action", { class: CSS$
|
|
22404
|
+
return this.removable ? (hAsync("calcite-action", { class: CSS$h.remove, icon: ICONS$4.remove, onCalciteActionClick: this.removeClickHandler, slot: SLOTS$9.actionsEnd, text: this.intlRemove })) : null;
|
|
22396
22405
|
}
|
|
22397
22406
|
renderActionsStart() {
|
|
22398
22407
|
const { el } = this;
|
|
22399
22408
|
const hasActionsStart = getSlotted(el, SLOTS$9.actionsStart);
|
|
22400
|
-
return hasActionsStart ? (hAsync("div", { class: { [CSS$
|
|
22409
|
+
return hasActionsStart ? (hAsync("div", { class: { [CSS$h.actions]: true, [CSS$h.actionsStart]: true } }, hAsync("slot", { name: SLOTS$9.actionsStart }))) : null;
|
|
22401
22410
|
}
|
|
22402
22411
|
renderActionsEnd() {
|
|
22403
22412
|
const { el, removable } = this;
|
|
22404
22413
|
const hasActionsEnd = getSlotted(el, SLOTS$9.actionsEnd);
|
|
22405
|
-
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$
|
|
22414
|
+
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$h.actions]: true, [CSS$h.actionsEnd]: true } }, hAsync("slot", { name: SLOTS$9.actionsEnd }), this.renderRemoveAction())) : null;
|
|
22406
22415
|
}
|
|
22407
22416
|
render() {
|
|
22408
22417
|
const { description, label } = this;
|
|
22409
|
-
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$
|
|
22418
|
+
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$h.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, ref: (focusEl) => (this.focusEl = focusEl), tabIndex: 0 }, hAsync("div", { "aria-checked": this.selected.toString(), class: CSS$h.textContainer, role: "menuitemcheckbox" }, hAsync("span", { class: CSS$h.title }, label), description ? hAsync("span", { class: CSS$h.description }, description) : null)), this.renderActionsEnd()));
|
|
22410
22419
|
}
|
|
22411
22420
|
get el() { return getElement(this); }
|
|
22412
22421
|
static get watchers() { return {
|
|
@@ -22441,7 +22450,7 @@ class CalcitePickListItem {
|
|
|
22441
22450
|
}; }
|
|
22442
22451
|
}
|
|
22443
22452
|
|
|
22444
|
-
const CSS$
|
|
22453
|
+
const CSS$g = {
|
|
22445
22454
|
container: "container",
|
|
22446
22455
|
arrow: "arrow",
|
|
22447
22456
|
imageContainer: "image-container",
|
|
@@ -22698,25 +22707,25 @@ class CalcitePopover {
|
|
|
22698
22707
|
// --------------------------------------------------------------------------
|
|
22699
22708
|
renderCloseButton() {
|
|
22700
22709
|
const { dismissible, closeButton, intlClose } = this;
|
|
22701
|
-
return dismissible || closeButton ? (hAsync("calcite-action", { class: CSS$
|
|
22710
|
+
return dismissible || closeButton ? (hAsync("calcite-action", { class: CSS$g.closeButton, onClick: this.hide, ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl), text: intlClose }, hAsync("calcite-icon", { icon: "x", scale: "m" }))) : null;
|
|
22702
22711
|
}
|
|
22703
22712
|
renderHeader() {
|
|
22704
22713
|
const { heading, headingLevel } = this;
|
|
22705
|
-
const headingNode = heading ? (hAsync(CalciteHeading, { class: CSS$
|
|
22706
|
-
return headingNode ? (hAsync("div", { class: CSS$
|
|
22714
|
+
const headingNode = heading ? (hAsync(CalciteHeading, { class: CSS$g.heading, level: headingLevel || HEADING_LEVEL$2 }, heading)) : null;
|
|
22715
|
+
return headingNode ? (hAsync("div", { class: CSS$g.header }, headingNode, this.renderCloseButton())) : null;
|
|
22707
22716
|
}
|
|
22708
22717
|
render() {
|
|
22709
22718
|
const { effectiveReferenceElement, heading, label, open, disablePointer } = this;
|
|
22710
22719
|
const displayed = effectiveReferenceElement && open;
|
|
22711
22720
|
const hidden = !displayed;
|
|
22712
|
-
const arrowNode = !disablePointer ? (hAsync("div", { class: CSS$
|
|
22721
|
+
const arrowNode = !disablePointer ? (hAsync("div", { class: CSS$g.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) })) : null;
|
|
22713
22722
|
return (hAsync(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, hAsync("div", { class: {
|
|
22714
|
-
[CSS$
|
|
22715
|
-
[CSS$
|
|
22723
|
+
[CSS$D.animation]: true,
|
|
22724
|
+
[CSS$D.animationActive]: displayed
|
|
22716
22725
|
}, onTransitionEnd: this.transitionEnd }, arrowNode, hAsync("div", { class: {
|
|
22717
|
-
[CSS$
|
|
22718
|
-
[CSS$
|
|
22719
|
-
} }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
22726
|
+
[CSS$g.hasHeader]: !!heading,
|
|
22727
|
+
[CSS$g.container]: true
|
|
22728
|
+
} }, this.renderHeader(), hAsync("div", { class: CSS$g.content }, hAsync("slot", null)), !heading ? this.renderCloseButton() : null))));
|
|
22720
22729
|
}
|
|
22721
22730
|
get el() { return getElement(this); }
|
|
22722
22731
|
static get watchers() { return {
|
|
@@ -22874,11 +22883,11 @@ class CalciteProgress {
|
|
|
22874
22883
|
}; }
|
|
22875
22884
|
}
|
|
22876
22885
|
|
|
22877
|
-
const CSS$
|
|
22886
|
+
const CSS$f = {
|
|
22878
22887
|
container: "container"
|
|
22879
22888
|
};
|
|
22880
22889
|
|
|
22881
|
-
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*/.sc-calcite-radio-button: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*/.calcite-animate.sc-calcite-radio-button{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-radio-button{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-radio-button{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-radio-button{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-radio-button{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-radio-button:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-radio-button-h{display:none}/*!@:host*/.sc-calcite-radio-button-h{display:block;cursor:pointer}/*!@:host .container*/.sc-calcite-radio-button-h .container.sc-calcite-radio-button{position:relative;outline:2px solid transparent;outline-offset:2px}/*!@:host .radio*/.sc-calcite-radio-button-h .radio.sc-calcite-radio-button{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,\n:host(:not([checked])[focused]) .radio*/[hovered].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,.sc-calcite-radio-button-h:not([checked])[focused] .radio.sc-calcite-radio-button{-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])*/[disabled].sc-calcite-radio-button-h{cursor:pointer}/*!@:host([disabled]) .radio*/[disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([hovered][disabled]) .radio*/[hovered][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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])*/[scale=s].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size--2)}/*!@:host([scale=m])*/[scale=m].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size--1)}/*!@:host([scale=l])*/[scale=l].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size-0)}/*!@.radio*/.radio.sc-calcite-radio-button{height:var(--calcite-radio-size);max-width:var(--calcite-radio-size);min-width:var(--calcite-radio-size)}/*!@:host([scale=s][checked]) .radio,\n:host([hovered][scale=s][checked][disabled]) .radio*/[scale=s][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=s][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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*/[scale=s][focused][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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,\n:host([hovered][scale=m][checked][disabled]) .radio*/[scale=m][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=m][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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*/[scale=m][focused][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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,\n:host([hovered][scale=l][checked][disabled]) .radio*/[scale=l][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=l][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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*/[scale=l][focused][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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])*/.sc-calcite-radio-button-s>input[slot=hidden-form-input]{bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
22890
|
+
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*/.sc-calcite-radio-button: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*/.calcite-animate.sc-calcite-radio-button{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-radio-button{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-radio-button{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-radio-button{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-radio-button{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-radio-button:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-radio-button-h{display:none}/*!@:host*/.sc-calcite-radio-button-h{display:block;cursor:pointer}/*!@:host .container*/.sc-calcite-radio-button-h .container.sc-calcite-radio-button{position:relative;outline:2px solid transparent;outline-offset:2px}/*!@:host .radio*/.sc-calcite-radio-button-h .radio.sc-calcite-radio-button{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,\n:host(:not([checked])[focused]:not([disabled])) .radio*/[hovered].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,.sc-calcite-radio-button-h:not([checked])[focused]:not([disabled]) .radio.sc-calcite-radio-button{-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])*/[disabled].sc-calcite-radio-button-h{cursor:pointer}/*!@:host([disabled]) .radio*/[disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([hovered][disabled]) .radio*/[hovered][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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])*/[scale=s].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size--2)}/*!@:host([scale=m])*/[scale=m].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size--1)}/*!@:host([scale=l])*/[scale=l].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size-0)}/*!@.radio*/.radio.sc-calcite-radio-button{height:var(--calcite-radio-size);max-width:var(--calcite-radio-size);min-width:var(--calcite-radio-size)}/*!@:host([scale=s][checked]) .radio,\n:host([hovered][scale=s][checked][disabled]) .radio*/[scale=s][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=s][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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*/[scale=s][focused][checked].sc-calcite-radio-button-h:not([disabled]) .radio.sc-calcite-radio-button{-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,\n:host([hovered][scale=m][checked][disabled]) .radio*/[scale=m][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=m][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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*/[scale=m][focused][checked].sc-calcite-radio-button-h:not([disabled]) .radio.sc-calcite-radio-button{-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,\n:host([hovered][scale=l][checked][disabled]) .radio*/[scale=l][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=l][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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*/[scale=l][focused][checked].sc-calcite-radio-button-h:not([disabled]) .radio.sc-calcite-radio-button{-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])*/.sc-calcite-radio-button-s>input[slot=hidden-form-input]{bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
22882
22891
|
|
|
22883
22892
|
class CalciteRadioButton {
|
|
22884
22893
|
constructor(hostRef) {
|
|
@@ -22991,8 +23000,10 @@ class CalciteRadioButton {
|
|
|
22991
23000
|
this.calciteInternalRadioButtonBlur.emit();
|
|
22992
23001
|
};
|
|
22993
23002
|
this.onContainerFocus = () => {
|
|
22994
|
-
this.
|
|
22995
|
-
|
|
23003
|
+
if (!this.disabled) {
|
|
23004
|
+
this.focused = true;
|
|
23005
|
+
this.calciteInternalRadioButtonFocus.emit();
|
|
23006
|
+
}
|
|
22996
23007
|
};
|
|
22997
23008
|
}
|
|
22998
23009
|
checkedChanged(newChecked) {
|
|
@@ -23015,7 +23026,9 @@ class CalciteRadioButton {
|
|
|
23015
23026
|
//--------------------------------------------------------------------------
|
|
23016
23027
|
/** Sets focus on the component. */
|
|
23017
23028
|
async setFocus() {
|
|
23018
|
-
|
|
23029
|
+
if (!this.disabled) {
|
|
23030
|
+
focusElement(this.containerEl);
|
|
23031
|
+
}
|
|
23019
23032
|
}
|
|
23020
23033
|
onLabelClick(event) {
|
|
23021
23034
|
if (!this.disabled && !this.hidden) {
|
|
@@ -23068,6 +23081,12 @@ class CalciteRadioButton {
|
|
|
23068
23081
|
}
|
|
23069
23082
|
});
|
|
23070
23083
|
}
|
|
23084
|
+
getTabIndex() {
|
|
23085
|
+
if (this.disabled) {
|
|
23086
|
+
return undefined;
|
|
23087
|
+
}
|
|
23088
|
+
return this.checked || this.isDefaultSelectable() ? 0 : -1;
|
|
23089
|
+
}
|
|
23071
23090
|
//--------------------------------------------------------------------------
|
|
23072
23091
|
//
|
|
23073
23092
|
// Event Listeners
|
|
@@ -23094,7 +23113,7 @@ class CalciteRadioButton {
|
|
|
23094
23113
|
connectForm(this);
|
|
23095
23114
|
}
|
|
23096
23115
|
componentDidLoad() {
|
|
23097
|
-
if (this.focused) {
|
|
23116
|
+
if (this.focused && !this.disabled) {
|
|
23098
23117
|
this.setFocus();
|
|
23099
23118
|
}
|
|
23100
23119
|
}
|
|
@@ -23108,7 +23127,8 @@ class CalciteRadioButton {
|
|
|
23108
23127
|
//
|
|
23109
23128
|
// --------------------------------------------------------------------------
|
|
23110
23129
|
render() {
|
|
23111
|
-
|
|
23130
|
+
const tabIndex = this.getTabIndex();
|
|
23131
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("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 }, hAsync("div", { class: "radio" })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
23112
23132
|
}
|
|
23113
23133
|
get el() { return getElement(this); }
|
|
23114
23134
|
static get watchers() { return {
|
|
@@ -23455,7 +23475,7 @@ class CalciteRadioGroup {
|
|
|
23455
23475
|
const SLOTS$8 = {
|
|
23456
23476
|
input: "input"
|
|
23457
23477
|
};
|
|
23458
|
-
const CSS$
|
|
23478
|
+
const CSS$e = {
|
|
23459
23479
|
radioGroupItemIcon: "radio-group-item-icon"
|
|
23460
23480
|
};
|
|
23461
23481
|
|
|
@@ -23476,37 +23496,16 @@ class CalciteRadioGroupItem {
|
|
|
23476
23496
|
this.iconFlipRtl = false;
|
|
23477
23497
|
/** optionally used with icon, select where to position the icon */
|
|
23478
23498
|
this.iconPosition = "start";
|
|
23479
|
-
this.mutationObserver = createObserver();
|
|
23480
23499
|
}
|
|
23481
23500
|
handleCheckedChange() {
|
|
23482
23501
|
this.calciteRadioGroupItemChange.emit();
|
|
23483
|
-
this.syncToExternalInput();
|
|
23484
|
-
}
|
|
23485
|
-
//--------------------------------------------------------------------------
|
|
23486
|
-
//
|
|
23487
|
-
// Lifecycle
|
|
23488
|
-
//
|
|
23489
|
-
//--------------------------------------------------------------------------
|
|
23490
|
-
connectedCallback() {
|
|
23491
|
-
var _a;
|
|
23492
|
-
const inputProxy = this.el.querySelector(`input[slot=${SLOTS$8.input}]`);
|
|
23493
|
-
if (inputProxy) {
|
|
23494
|
-
this.value = inputProxy.value;
|
|
23495
|
-
this.checked = inputProxy.checked;
|
|
23496
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(inputProxy, { attributes: true });
|
|
23497
|
-
}
|
|
23498
|
-
this.inputProxy = inputProxy;
|
|
23499
|
-
}
|
|
23500
|
-
disconnectedCallback() {
|
|
23501
|
-
var _a;
|
|
23502
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
23503
23502
|
}
|
|
23504
23503
|
render() {
|
|
23505
23504
|
const { checked, value } = this;
|
|
23506
23505
|
const scale = getElementProp(this.el, "scale", "m");
|
|
23507
23506
|
const appearance = getElementProp(this.el, "appearance", "solid");
|
|
23508
23507
|
const layout = getElementProp(this.el, "layout", "horizontal");
|
|
23509
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
23508
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$e.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
23510
23509
|
return (hAsync(Host, { "aria-checked": checked.toString(), role: "radio" }, hAsync("label", { class: {
|
|
23511
23510
|
"label--scale-s": scale === "s",
|
|
23512
23511
|
"label--scale-m": scale === "m",
|
|
@@ -23515,29 +23514,6 @@ class CalciteRadioGroupItem {
|
|
|
23515
23514
|
"label--outline": appearance === "outline"
|
|
23516
23515
|
} }, this.icon && this.iconPosition === "start" ? iconEl : null, hAsync("slot", null, value), hAsync("slot", { name: SLOTS$8.input }), this.icon && this.iconPosition === "end" ? iconEl : null)));
|
|
23517
23516
|
}
|
|
23518
|
-
//--------------------------------------------------------------------------
|
|
23519
|
-
//
|
|
23520
|
-
// Private Methods
|
|
23521
|
-
//
|
|
23522
|
-
//--------------------------------------------------------------------------
|
|
23523
|
-
syncFromExternalInput() {
|
|
23524
|
-
if (this.inputProxy) {
|
|
23525
|
-
this.value = this.inputProxy.value;
|
|
23526
|
-
this.checked = this.inputProxy.checked;
|
|
23527
|
-
}
|
|
23528
|
-
}
|
|
23529
|
-
syncToExternalInput() {
|
|
23530
|
-
if (!this.inputProxy) {
|
|
23531
|
-
return;
|
|
23532
|
-
}
|
|
23533
|
-
this.inputProxy.value = this.value;
|
|
23534
|
-
if (this.checked) {
|
|
23535
|
-
this.inputProxy.setAttribute("checked", "");
|
|
23536
|
-
}
|
|
23537
|
-
else {
|
|
23538
|
-
this.inputProxy.removeAttribute("checked");
|
|
23539
|
-
}
|
|
23540
|
-
}
|
|
23541
23517
|
get el() { return getElement(this); }
|
|
23542
23518
|
static get watchers() { return {
|
|
23543
23519
|
"checked": ["handleCheckedChange"]
|
|
@@ -23697,7 +23673,7 @@ class CalciteRating {
|
|
|
23697
23673
|
}; }
|
|
23698
23674
|
}
|
|
23699
23675
|
|
|
23700
|
-
const CSS$
|
|
23676
|
+
const CSS$d = {
|
|
23701
23677
|
scrim: "scrim",
|
|
23702
23678
|
content: "content"
|
|
23703
23679
|
};
|
|
@@ -23737,8 +23713,8 @@ class CalciteScrim {
|
|
|
23737
23713
|
const { el, loading, intlLoading } = this;
|
|
23738
23714
|
const hasContent = el.innerHTML.trim().length > 0;
|
|
23739
23715
|
const loaderNode = loading ? hAsync("calcite-loader", { active: true, label: intlLoading }) : null;
|
|
23740
|
-
const contentNode = hasContent ? (hAsync("div", { class: CSS$
|
|
23741
|
-
return (hAsync("div", { class: CSS$
|
|
23716
|
+
const contentNode = hasContent ? (hAsync("div", { class: CSS$d.content }, hAsync("slot", null))) : null;
|
|
23717
|
+
return (hAsync("div", { class: CSS$d.scrim }, loaderNode, contentNode));
|
|
23742
23718
|
}
|
|
23743
23719
|
get el() { return getElement(this); }
|
|
23744
23720
|
static get style() { return calciteScrimCss; }
|
|
@@ -23755,7 +23731,7 @@ class CalciteScrim {
|
|
|
23755
23731
|
}; }
|
|
23756
23732
|
}
|
|
23757
23733
|
|
|
23758
|
-
const CSS$
|
|
23734
|
+
const CSS$c = {
|
|
23759
23735
|
icon: "icon",
|
|
23760
23736
|
iconContainer: "icon-container",
|
|
23761
23737
|
select: "select"
|
|
@@ -23951,10 +23927,10 @@ class CalciteSelect {
|
|
|
23951
23927
|
//
|
|
23952
23928
|
//--------------------------------------------------------------------------
|
|
23953
23929
|
renderChevron() {
|
|
23954
|
-
return (hAsync("div", { class: CSS$
|
|
23930
|
+
return (hAsync("div", { class: CSS$c.iconContainer }, hAsync("calcite-icon", { class: CSS$c.icon, icon: "chevron-down", scale: "s" })));
|
|
23955
23931
|
}
|
|
23956
23932
|
render() {
|
|
23957
|
-
return (hAsync(Fragment, null, hAsync("select", { "aria-label": this.label, class: CSS$
|
|
23933
|
+
return (hAsync(Fragment, null, hAsync("select", { "aria-label": this.label, class: CSS$c.select, disabled: this.disabled, onChange: this.handleInternalSelectChange, ref: this.storeSelectRef }, hAsync("slot", null)), this.renderChevron(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
23958
23934
|
}
|
|
23959
23935
|
get el() { return getElement(this); }
|
|
23960
23936
|
static get watchers() { return {
|
|
@@ -23982,7 +23958,7 @@ class CalciteSelect {
|
|
|
23982
23958
|
}; }
|
|
23983
23959
|
}
|
|
23984
23960
|
|
|
23985
|
-
const CSS$
|
|
23961
|
+
const CSS$b = {
|
|
23986
23962
|
main: "main",
|
|
23987
23963
|
mainReversed: "main--reversed",
|
|
23988
23964
|
content: "content",
|
|
@@ -24033,25 +24009,25 @@ class CalciteShell {
|
|
|
24033
24009
|
const content = !!this.contentBehind
|
|
24034
24010
|
? [
|
|
24035
24011
|
hAsync("div", { class: {
|
|
24036
|
-
[CSS$
|
|
24037
|
-
[CSS$
|
|
24012
|
+
[CSS$b.content]: true,
|
|
24013
|
+
[CSS$b.contentBehind]: !!this.contentBehind
|
|
24038
24014
|
} }, hAsync("slot", null)),
|
|
24039
24015
|
hAsync("slot", { name: SLOTS$7.centerRow })
|
|
24040
24016
|
]
|
|
24041
24017
|
: [
|
|
24042
|
-
hAsync("div", { class: CSS$
|
|
24018
|
+
hAsync("div", { class: CSS$b.content }, hAsync("slot", null), hAsync("slot", { name: SLOTS$7.centerRow }))
|
|
24043
24019
|
];
|
|
24044
24020
|
return content;
|
|
24045
24021
|
}
|
|
24046
24022
|
renderFooter() {
|
|
24047
24023
|
const hasFooter = !!getSlotted(this.el, SLOTS$7.footer);
|
|
24048
|
-
return hasFooter ? (hAsync("div", { class: CSS$
|
|
24024
|
+
return hasFooter ? (hAsync("div", { class: CSS$b.footer }, hAsync("slot", { name: SLOTS$7.footer }))) : null;
|
|
24049
24025
|
}
|
|
24050
24026
|
renderMain() {
|
|
24051
24027
|
const primaryPanel = getSlotted(this.el, SLOTS$7.primaryPanel);
|
|
24052
24028
|
const mainClasses = {
|
|
24053
|
-
[CSS$
|
|
24054
|
-
[CSS$
|
|
24029
|
+
[CSS$b.main]: true,
|
|
24030
|
+
[CSS$b.mainReversed]: (primaryPanel === null || primaryPanel === void 0 ? void 0 : primaryPanel.position) === "end"
|
|
24055
24031
|
};
|
|
24056
24032
|
return (hAsync("div", { class: mainClasses }, hAsync("slot", { name: SLOTS$7.primaryPanel }), this.renderContent(), hAsync("slot", { name: SLOTS$7.contextualPanel })));
|
|
24057
24033
|
}
|
|
@@ -24072,7 +24048,7 @@ class CalciteShell {
|
|
|
24072
24048
|
}; }
|
|
24073
24049
|
}
|
|
24074
24050
|
|
|
24075
|
-
const CSS$
|
|
24051
|
+
const CSS$a = {
|
|
24076
24052
|
actionBarContainer: "action-bar-container",
|
|
24077
24053
|
content: "content"
|
|
24078
24054
|
};
|
|
@@ -24114,9 +24090,9 @@ class CalciteShellCenterRow {
|
|
|
24114
24090
|
// --------------------------------------------------------------------------
|
|
24115
24091
|
render() {
|
|
24116
24092
|
const { el } = this;
|
|
24117
|
-
const contentNode = (hAsync("div", { class: CSS$
|
|
24093
|
+
const contentNode = (hAsync("div", { class: CSS$a.content }, hAsync("slot", null)));
|
|
24118
24094
|
const actionBar = getSlotted(el, SLOTS$6.actionBar);
|
|
24119
|
-
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$
|
|
24095
|
+
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$a.actionBarContainer }, hAsync("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
24120
24096
|
const children = [actionBarNode, contentNode];
|
|
24121
24097
|
if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
|
|
24122
24098
|
children.reverse();
|
|
@@ -24139,7 +24115,7 @@ class CalciteShellCenterRow {
|
|
|
24139
24115
|
}; }
|
|
24140
24116
|
}
|
|
24141
24117
|
|
|
24142
|
-
const CSS$
|
|
24118
|
+
const CSS$9 = {
|
|
24143
24119
|
container: "container",
|
|
24144
24120
|
content: "content",
|
|
24145
24121
|
contentHeader: "content__header",
|
|
@@ -24318,19 +24294,19 @@ class CalciteShellPanel {
|
|
|
24318
24294
|
renderHeader() {
|
|
24319
24295
|
const { el } = this;
|
|
24320
24296
|
const hasHeader = getSlotted(el, SLOTS$5.header);
|
|
24321
|
-
return hasHeader ? (hAsync("div", { class: CSS$
|
|
24297
|
+
return hasHeader ? (hAsync("div", { class: CSS$9.contentHeader }, hAsync("slot", { name: SLOTS$5.header }))) : null;
|
|
24322
24298
|
}
|
|
24323
24299
|
render() {
|
|
24324
24300
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
24325
24301
|
const allowResizing = !detached && resizable;
|
|
24326
|
-
const contentNode = (hAsync("div", { class: { [CSS$
|
|
24327
|
-
const separatorNode = allowResizing ? (hAsync("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$
|
|
24302
|
+
const contentNode = (hAsync("div", { class: { [CSS$9.content]: true, [CSS$9.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), hAsync("div", { class: CSS$9.contentBody }, hAsync("slot", null))));
|
|
24303
|
+
const separatorNode = allowResizing ? (hAsync("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$9.separator, onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
24328
24304
|
const actionBarNode = hAsync("slot", { name: SLOTS$5.actionBar });
|
|
24329
24305
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
24330
24306
|
if (position === "end") {
|
|
24331
24307
|
mainNodes.reverse();
|
|
24332
24308
|
}
|
|
24333
|
-
return hAsync("div", { class: { [CSS$
|
|
24309
|
+
return hAsync("div", { class: { [CSS$9.container]: true } }, mainNodes);
|
|
24334
24310
|
}
|
|
24335
24311
|
// --------------------------------------------------------------------------
|
|
24336
24312
|
//
|
|
@@ -28151,7 +28127,7 @@ _extends(Remove, {
|
|
|
28151
28127
|
Sortable.mount(new AutoScrollPlugin());
|
|
28152
28128
|
Sortable.mount(Remove, Revert);
|
|
28153
28129
|
|
|
28154
|
-
const CSS$
|
|
28130
|
+
const CSS$8 = {
|
|
28155
28131
|
sortItem: "sort-item",
|
|
28156
28132
|
container: "container",
|
|
28157
28133
|
containerHorizontal: "container--horizontal",
|
|
@@ -28297,9 +28273,9 @@ class CalciteSortableList {
|
|
|
28297
28273
|
const { layout } = this;
|
|
28298
28274
|
const horizontal = layout === "horizontal" || false;
|
|
28299
28275
|
return (hAsync("div", { class: {
|
|
28300
|
-
[CSS$
|
|
28301
|
-
[CSS$
|
|
28302
|
-
[CSS$
|
|
28276
|
+
[CSS$8.container]: true,
|
|
28277
|
+
[CSS$8.containerVertical]: !horizontal,
|
|
28278
|
+
[CSS$8.containerHorizontal]: horizontal
|
|
28303
28279
|
} }, hAsync("slot", null)));
|
|
28304
28280
|
}
|
|
28305
28281
|
get el() { return getElement(this); }
|
|
@@ -28322,7 +28298,7 @@ class CalciteSortableList {
|
|
|
28322
28298
|
}; }
|
|
28323
28299
|
}
|
|
28324
28300
|
|
|
28325
|
-
const CSS$
|
|
28301
|
+
const CSS$7 = {
|
|
28326
28302
|
container: "split-button__container",
|
|
28327
28303
|
dividerContainer: "split-button__divider-container",
|
|
28328
28304
|
divider: "split-button__divider",
|
|
@@ -28368,13 +28344,13 @@ class CalciteSplitButton {
|
|
|
28368
28344
|
}
|
|
28369
28345
|
render() {
|
|
28370
28346
|
const widthClasses = {
|
|
28371
|
-
[CSS$
|
|
28372
|
-
[CSS$
|
|
28373
|
-
[CSS$
|
|
28374
|
-
[CSS$
|
|
28347
|
+
[CSS$7.container]: true,
|
|
28348
|
+
[CSS$7.widthAuto]: this.width === "auto",
|
|
28349
|
+
[CSS$7.widthHalf]: this.width === "half",
|
|
28350
|
+
[CSS$7.widthFull]: this.width === "full"
|
|
28375
28351
|
};
|
|
28376
28352
|
const buttonWidth = this.width === "auto" ? "auto" : "full";
|
|
28377
|
-
return (hAsync("div", { class: widthClasses }, hAsync("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), hAsync("div", { class: CSS$
|
|
28353
|
+
return (hAsync("div", { class: widthClasses }, hAsync("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), hAsync("div", { class: CSS$7.dividerContainer }, hAsync("div", { class: CSS$7.divider })), hAsync("calcite-dropdown", { active: this.active, onClick: this.calciteSplitButtonSecondaryClickHandler, overlayPositioning: this.overlayPositioning, placement: "bottom-trailing", scale: this.scale, width: this.scale }, hAsync("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" }), hAsync("slot", null))));
|
|
28378
28354
|
}
|
|
28379
28355
|
get dropdownIcon() {
|
|
28380
28356
|
return this.dropdownIconType === "chevron"
|
|
@@ -29628,7 +29604,7 @@ const SLOTS$3 = {
|
|
|
29628
29604
|
contentEnd: "content-end"
|
|
29629
29605
|
};
|
|
29630
29606
|
|
|
29631
|
-
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*/.sc-calcite-tile: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*/.calcite-animate.sc-calcite-tile{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-tile{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tile{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tile{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tile{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tile:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-tile-h{display:none}/*!@:host*/.sc-calcite-tile-h{-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
|
|
29607
|
+
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*/.sc-calcite-tile: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*/.calcite-animate.sc-calcite-tile{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-tile{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tile{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tile{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tile{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tile:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-tile-h{display:none}/*!@:host*/.sc-calcite-tile-h{-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*/.sc-calcite-tile-h .container.sc-calcite-tile{pointer-events:none;display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:0.5rem}/*!@:host .content*/.sc-calcite-tile-h .content.sc-calcite-tile{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*/.sc-calcite-tile-h .content-container.sc-calcite-tile{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*/.sc-calcite-tile-h .content-slot-container.sc-calcite-tile{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*/.sc-calcite-tile-h .content-slot-container.sc-calcite-tile:first-child{padding-right:0.75rem}/*!@:host .content-slot-container:last-child*/.sc-calcite-tile-h .content-slot-container.sc-calcite-tile:last-child{padding-left:0.75rem}/*!@:host .heading*/.sc-calcite-tile-h .heading.sc-calcite-tile{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*/.sc-calcite-tile-h .large-visual.sc-calcite-tile{-ms-flex-align:center;align-items:center;text-align:center;min-height:12rem}/*!@:host .large-visual .icon*/.sc-calcite-tile-h .large-visual.sc-calcite-tile .icon.sc-calcite-tile{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*/.sc-calcite-tile-h .large-visual.sc-calcite-tile .content-container.sc-calcite-tile{-ms-flex-item-align:center;align-self:center}/*!@:host .description*/.sc-calcite-tile-h .description.sc-calcite-tile{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]))*/.sc-calcite-tile-h: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)*/.sc-calcite-tile-h: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)*/.sc-calcite-tile-h: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]))*/[icon][heading].sc-calcite-tile-h:not([description]):not([embed]){padding:0px}/*!@:host([disabled])*/[disabled].sc-calcite-tile-h{opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}/*!@:host(:hover) .heading, :host([active]) .heading*/.sc-calcite-tile-h:hover .heading.sc-calcite-tile,[active].sc-calcite-tile-h .heading.sc-calcite-tile{color:var(--calcite-ui-text-1)}/*!@:host(:hover) .description, :host([active]) .description*/.sc-calcite-tile-h:hover .description.sc-calcite-tile,[active].sc-calcite-tile-h .description.sc-calcite-tile{color:var(--calcite-ui-text-2)}";
|
|
29632
29608
|
|
|
29633
29609
|
/**
|
|
29634
29610
|
* @slot content-start - A slot for adding non-actionable elements before the tile content.
|
|
@@ -29699,7 +29675,24 @@ class CalciteTile {
|
|
|
29699
29675
|
}; }
|
|
29700
29676
|
}
|
|
29701
29677
|
|
|
29702
|
-
const
|
|
29678
|
+
const CSS$6 = {
|
|
29679
|
+
checked: "checked",
|
|
29680
|
+
description: "description",
|
|
29681
|
+
descriptionOnly: "description-only",
|
|
29682
|
+
disabled: "disabled",
|
|
29683
|
+
heading: "heading",
|
|
29684
|
+
headingOnly: "heading-only",
|
|
29685
|
+
icon: "icon",
|
|
29686
|
+
iconOnly: "icon-only",
|
|
29687
|
+
inputAlignmentEnd: "input-alignment-end",
|
|
29688
|
+
inputAlignmentStart: "input-alignment-start",
|
|
29689
|
+
inputEnabled: "input-enabled",
|
|
29690
|
+
largeVisual: "large-visual",
|
|
29691
|
+
widthAuto: "width-auto",
|
|
29692
|
+
widthFull: "width-full"
|
|
29693
|
+
};
|
|
29694
|
+
|
|
29695
|
+
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*/.sc-calcite-tile-select: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*/.calcite-animate.sc-calcite-tile-select{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-tile-select{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tile-select{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tile-select{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tile-select{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tile-select:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-tile-select-h{display:none}/*!@:host*/.sc-calcite-tile-select-h{display:block}/*!@:host .container*/.sc-calcite-tile-select-h .container.sc-calcite-tile-select{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*/.sc-calcite-tile-select-h .container.checked.sc-calcite-tile-select{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*/.sc-calcite-tile-select-h .container.heading-only.sc-calcite-tile-select{-ms-flex-align:center;align-items:center}/*!@:host .container:not(.input-enabled) ::slotted(calcite-checkbox), :host .container:not(.input-enabled) ::slotted(calcite-radio-button)*/.sc-calcite-tile-select-h .container:not(.input-enabled) .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container:not(.input-enabled) .sc-calcite-tile-select-s>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)*/.sc-calcite-tile-select-h .container.focused.sc-calcite-tile-select:not(.disabled){z-index:30}/*!@:host .container.focused:not(.disabled):not(.input-enabled)*/.sc-calcite-tile-select-h .container.focused.sc-calcite-tile-select: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*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.heading-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.icon-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.description-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.heading.description.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.icon.description.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.heading.icon.description.sc-calcite-tile-select{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*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.heading-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.icon-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.description-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.heading.description.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.icon.description.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.heading.icon.description.sc-calcite-tile-select{gap:0.75rem}/*!@:host .container.input-enabled.input-alignment-start calcite-tile*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.sc-calcite-tile-select calcite-tile.sc-calcite-tile-select{-ms-flex-order:1;order:1}/*!@:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-checkbox),\n:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-radio-button)*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.large-visual .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.large-visual .sc-calcite-tile-select-s>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*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.width-auto.heading-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.width-auto.icon-only.sc-calcite-tile-select{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*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.heading-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.icon-only.sc-calcite-tile-select{gap:0.75rem}/*!@:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-checkbox),\n: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),\n: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),\n: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),\n:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-radio-button)*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.description-only .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.description-only .sc-calcite-tile-select-s>calcite-radio-button,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.heading.description .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.heading.description .sc-calcite-tile-select-s>calcite-radio-button,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.icon.description .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.icon.description .sc-calcite-tile-select-s>calcite-radio-button,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.heading.icon.description .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.heading.icon.description .sc-calcite-tile-select-s>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),\n:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-radio-button)*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.large-visual .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.large-visual .sc-calcite-tile-select-s>calcite-radio-button{position:absolute;inset-block-start:0.75rem;inset-inline-end:0.75rem}/*!@:host .container.width-full*/.sc-calcite-tile-select-h .container.width-full.sc-calcite-tile-select{display:-ms-flexbox;display:flex;max-width:none}/*!@:host .container.width-full calcite-tile*/.sc-calcite-tile-select-h .container.width-full.sc-calcite-tile-select calcite-tile.sc-calcite-tile-select{-ms-flex:1 1 auto;flex:1 1 auto}/*!@:host(:hover) .container*/.sc-calcite-tile-select-h:hover .container.sc-calcite-tile-select{z-index:20}/*!@:host(:hover) .container:not(.input-enabled)*/.sc-calcite-tile-select-h:hover .container.sc-calcite-tile-select: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])*/[disabled].sc-calcite-tile-select-h{opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}";
|
|
29703
29696
|
|
|
29704
29697
|
/**
|
|
29705
29698
|
* @slot - A slot for adding custom content.
|
|
@@ -29848,7 +29841,25 @@ class CalciteTileSelect {
|
|
|
29848
29841
|
this.el.insertAdjacentElement("beforeend", this.input);
|
|
29849
29842
|
}
|
|
29850
29843
|
render() {
|
|
29851
|
-
|
|
29844
|
+
const { checked, description, disabled, focused, heading, icon, inputAlignment, inputEnabled, width } = this;
|
|
29845
|
+
return (hAsync("div", { class: {
|
|
29846
|
+
checked,
|
|
29847
|
+
container: true,
|
|
29848
|
+
[CSS$6.description]: Boolean(description),
|
|
29849
|
+
[CSS$6.descriptionOnly]: Boolean(!heading && !icon && description),
|
|
29850
|
+
disabled,
|
|
29851
|
+
focused,
|
|
29852
|
+
[CSS$6.heading]: Boolean(heading),
|
|
29853
|
+
[CSS$6.headingOnly]: heading && !icon && !description,
|
|
29854
|
+
[CSS$6.icon]: Boolean(icon),
|
|
29855
|
+
[CSS$6.iconOnly]: !heading && icon && !description,
|
|
29856
|
+
[CSS$6.inputAlignmentEnd]: inputAlignment === "end",
|
|
29857
|
+
[CSS$6.inputAlignmentStart]: inputAlignment === "start",
|
|
29858
|
+
[CSS$6.inputEnabled]: inputEnabled,
|
|
29859
|
+
[CSS$6.largeVisual]: heading && icon && !description,
|
|
29860
|
+
[CSS$6.widthAuto]: width === "auto",
|
|
29861
|
+
[CSS$6.widthFull]: width === "full"
|
|
29862
|
+
} }, hAsync("calcite-tile", { active: checked, description: description, embed: true, heading: heading, icon: icon }), hAsync("slot", null)));
|
|
29852
29863
|
}
|
|
29853
29864
|
get el() { return getElement(this); }
|
|
29854
29865
|
static get watchers() { return {
|
|
@@ -31093,8 +31104,8 @@ class CalciteTooltip {
|
|
|
31093
31104
|
const displayed = effectiveReferenceElement && open;
|
|
31094
31105
|
const hidden = !displayed;
|
|
31095
31106
|
return (hAsync(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, id: this.getId(), role: "tooltip" }, hAsync("div", { class: {
|
|
31096
|
-
[CSS$
|
|
31097
|
-
[CSS$
|
|
31107
|
+
[CSS$D.animation]: true,
|
|
31108
|
+
[CSS$D.animationActive]: displayed
|
|
31098
31109
|
} }, hAsync("div", { class: CSS$2.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) }), hAsync("div", { class: CSS$2.container }, hAsync("slot", null)))));
|
|
31099
31110
|
}
|
|
31100
31111
|
get el() { return getElement(this); }
|
|
@@ -32100,8 +32111,8 @@ class CalciteValueListItem {
|
|
|
32100
32111
|
const { icon } = this;
|
|
32101
32112
|
if (icon === ICON_TYPES$1.grip) {
|
|
32102
32113
|
return (hAsync("span", { "aria-pressed": this.handleActivated.toString(), class: {
|
|
32103
|
-
[CSS$
|
|
32104
|
-
[CSS$
|
|
32114
|
+
[CSS$h.handle]: true,
|
|
32115
|
+
[CSS$h.handleActivated]: this.handleActivated
|
|
32105
32116
|
}, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0" }, hAsync("calcite-icon", { icon: ICONS.drag, scale: "s" })));
|
|
32106
32117
|
}
|
|
32107
32118
|
}
|