@esri/calcite-components 1.0.0-next.344 → 1.0.0-next.348
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.css +1 -1
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/p-005ac38c.system.entry.js +5 -0
- package/dist/calcite/{p-7fbab7bb.entry.js → p-090bb1fa.entry.js} +1 -1
- package/dist/calcite/{p-6e94b4ef.system.entry.js → p-0a26db2c.system.entry.js} +1 -1
- package/dist/calcite/{p-d4561697.system.entry.js → p-0ae2afc6.system.entry.js} +1 -1
- package/dist/calcite/{p-07779a47.entry.js → p-0da704b8.entry.js} +1 -1
- package/dist/calcite/{p-0fa7d7eb.system.entry.js → p-0e95ad36.system.entry.js} +2 -2
- package/dist/calcite/{p-4fc37efc.system.entry.js → p-10fe7586.system.entry.js} +1 -1
- package/dist/calcite/{p-9a9781f2.system.entry.js → p-1176680d.system.entry.js} +1 -1
- package/dist/calcite/{p-4c441dea.system.js → p-11b9e4bb.system.js} +1 -1
- package/dist/calcite/{p-8ebc2d51.entry.js → p-178530bf.entry.js} +1 -1
- package/dist/calcite/{p-35a5c74c.system.js → p-1798fce9.system.js} +1 -1
- package/dist/calcite/{p-cac9db7d.entry.js → p-182b9d9d.entry.js} +1 -1
- package/dist/calcite/{p-34aadde6.system.js → p-18c4af8f.system.js} +1 -1
- package/dist/calcite/p-18d9a261.system.js +1 -1
- package/dist/calcite/{p-ac03fd82.system.entry.js → p-194969fc.system.entry.js} +1 -1
- package/dist/calcite/{p-9d0b76a0.system.entry.js → p-1ed8872d.system.entry.js} +1 -1
- package/dist/calcite/{p-109fdcb4.system.entry.js → p-2355c98e.system.entry.js} +1 -1
- package/dist/calcite/{p-130b7a05.system.entry.js → p-2372239e.system.entry.js} +1 -1
- package/dist/calcite/{p-1705739f.system.entry.js → p-23a06019.system.entry.js} +2 -2
- package/dist/calcite/{p-e01985ce.system.entry.js → p-25151c1d.system.entry.js} +1 -1
- package/dist/calcite/{p-fc9ea70f.system.entry.js → p-2553ccbd.system.entry.js} +1 -1
- package/dist/calcite/{p-12a3d7b1.entry.js → p-25cbca7c.entry.js} +1 -1
- package/dist/calcite/{p-62e9b8a4.system.entry.js → p-28f4a5f8.system.entry.js} +1 -1
- package/dist/calcite/{p-9ee56933.entry.js → p-299cb9eb.entry.js} +1 -1
- package/dist/calcite/{p-6b5996c3.system.entry.js → p-2b0958a7.system.entry.js} +1 -1
- package/dist/calcite/{p-2c6e9854.entry.js → p-2f469fd2.entry.js} +1 -1
- package/dist/calcite/{p-5c141491.entry.js → p-3303e9e3.entry.js} +1 -1
- package/dist/calcite/{p-15c5e94c.system.entry.js → p-35b661f4.system.entry.js} +1 -1
- package/dist/calcite/{p-7cf59f80.system.entry.js → p-35e7cad2.system.entry.js} +1 -1
- package/dist/calcite/{p-51819373.entry.js → p-3a1e21ac.entry.js} +1 -1
- package/dist/calcite/{p-1acfcee4.entry.js → p-3bb64582.entry.js} +1 -1
- package/dist/calcite/{p-6d42cf99.system.entry.js → p-3bd62253.system.entry.js} +1 -1
- package/dist/calcite/p-3c1a6bcb.system.js +5 -0
- package/dist/calcite/{p-92dea7f7.entry.js → p-3c9e1ae8.entry.js} +1 -1
- package/dist/calcite/{p-1ce0c26a.entry.js → p-3d8ee65c.entry.js} +1 -1
- package/dist/calcite/{p-f3ec6f2c.entry.js → p-40aa7722.entry.js} +1 -1
- package/dist/calcite/{p-33fa07ab.system.entry.js → p-44eacf47.system.entry.js} +1 -1
- package/dist/calcite/{p-0229a408.js → p-478c2e81.js} +1 -1
- package/dist/calcite/{p-6ffee063.entry.js → p-47c9d8e9.entry.js} +1 -1
- package/dist/calcite/p-4a2ebe86.entry.js +5 -0
- package/dist/calcite/{p-28729351.entry.js → p-4ac4baa0.entry.js} +1 -1
- package/dist/calcite/{p-eae4d478.entry.js → p-51636eee.entry.js} +1 -1
- package/dist/calcite/p-52679235.entry.js +5 -0
- package/dist/calcite/{p-f50a353a.js → p-52966b4c.js} +1 -1
- package/dist/calcite/p-546756b5.system.entry.js +5 -0
- package/dist/calcite/{p-899920c9.entry.js → p-55cf916b.entry.js} +1 -1
- package/dist/calcite/{p-394d8b91.entry.js → p-61e2a790.entry.js} +1 -1
- package/dist/calcite/{p-42f853ae.system.entry.js → p-6222a6f1.system.entry.js} +1 -1
- package/dist/calcite/{p-985ac8a8.system.entry.js → p-62f3fe3c.system.entry.js} +1 -1
- package/dist/calcite/{p-6691b847.system.entry.js → p-6e42a780.system.entry.js} +2 -2
- package/dist/calcite/{p-c1912740.system.entry.js → p-70cad672.system.entry.js} +1 -1
- package/dist/calcite/{p-0c9ea65a.entry.js → p-79630d2e.entry.js} +1 -1
- package/dist/calcite/{p-4bedcfdd.system.entry.js → p-7be8b5fb.system.entry.js} +1 -1
- package/dist/calcite/{p-669a3067.system.js → p-834ec82a.system.js} +1 -1
- package/dist/calcite/{p-6d8a5959.entry.js → p-83743574.entry.js} +1 -1
- package/dist/calcite/{p-bb5b0182.js → p-8396a2d2.js} +1 -1
- package/dist/calcite/{p-523bc291.system.js → p-841b47f8.system.js} +1 -1
- package/dist/calcite/{p-cc247988.entry.js → p-86e21c7b.entry.js} +1 -1
- package/dist/calcite/p-8954d4fb.entry.js +5 -0
- package/dist/calcite/{p-be589623.system.entry.js → p-8c8846ba.system.entry.js} +1 -1
- package/dist/calcite/{p-b3109189.system.entry.js → p-8ca3a940.system.entry.js} +1 -1
- package/dist/calcite/p-8e62b0d8.js +5 -0
- package/dist/calcite/{p-da8ff8cb.js → p-91300144.js} +1 -1
- package/dist/calcite/{p-42814ab6.system.entry.js → p-91560568.system.entry.js} +1 -1
- package/dist/calcite/{p-ec216f50.entry.js → p-917ebc52.entry.js} +1 -1
- package/dist/calcite/{p-1749e1a2.system.entry.js → p-9466c3f7.system.entry.js} +2 -2
- package/dist/calcite/{p-0bb004b7.entry.js → p-9597a801.entry.js} +1 -1
- package/dist/calcite/{p-0ea8bce1.system.entry.js → p-9603e462.system.entry.js} +1 -1
- package/dist/calcite/p-9ae7ed5a.entry.js +5 -0
- package/dist/calcite/{p-afd8eb90.system.entry.js → p-9fa1db20.system.entry.js} +1 -1
- package/dist/calcite/{p-1751551d.entry.js → p-a0559e04.entry.js} +1 -1
- package/dist/calcite/{p-23418eda.entry.js → p-a05ff1b1.entry.js} +1 -1
- package/dist/calcite/{p-0f2b51bf.system.js → p-a3720f3d.system.js} +1 -1
- package/dist/calcite/{p-197226fa.entry.js → p-a544cc19.entry.js} +1 -1
- package/dist/calcite/{p-b311fec9.entry.js → p-aac8ca0c.entry.js} +1 -1
- package/dist/calcite/{p-a4762e4a.system.entry.js → p-b043a0d5.system.entry.js} +1 -1
- package/dist/calcite/p-ba8a3bdf.entry.js +5 -0
- package/dist/calcite/{p-41cd5de3.system.entry.js → p-bd120e09.system.entry.js} +1 -1
- package/dist/calcite/{p-3e646c9b.js → p-bd7f4dc3.js} +1 -1
- package/dist/calcite/{p-ff623944.entry.js → p-c149927e.entry.js} +1 -1
- package/dist/calcite/{p-82d19468.entry.js → p-c208dc4d.entry.js} +1 -1
- package/dist/calcite/{p-be7b205c.entry.js → p-c6614bc2.entry.js} +1 -1
- package/dist/calcite/{p-b5cab90f.entry.js → p-c6705eda.entry.js} +1 -1
- package/dist/calcite/{p-809eed64.system.entry.js → p-cb7ae2f2.system.entry.js} +1 -1
- package/dist/calcite/p-cfd1c341.js +5 -0
- package/dist/calcite/{p-5c606052.system.entry.js → p-d042ec7c.system.entry.js} +2 -2
- package/dist/calcite/{p-5a6ad843.system.entry.js → p-d14a31af.system.entry.js} +2 -2
- package/dist/calcite/p-d287400a.system.js +5 -0
- package/dist/calcite/{p-d30dc8bd.entry.js → p-d2e59b3e.entry.js} +1 -1
- package/dist/calcite/{p-550c42c5.entry.js → p-dbe112a4.entry.js} +1 -1
- package/dist/calcite/{p-54d12b6f.entry.js → p-dd272123.entry.js} +1 -1
- package/dist/calcite/{p-bf38d77d.system.entry.js → p-e0e9b276.system.entry.js} +1 -1
- package/dist/calcite/p-e32c6a95.js +5 -0
- package/dist/calcite/{p-e97696ee.system.entry.js → p-e32f6a09.system.entry.js} +1 -1
- package/dist/calcite/p-e33346fd.system.entry.js +5 -0
- package/dist/calcite/{p-ee7ba765.entry.js → p-e5267bda.entry.js} +1 -1
- package/dist/calcite/{p-e311dc47.entry.js → p-e6acc68d.entry.js} +1 -1
- package/dist/calcite/{p-73dad5ab.system.entry.js → p-e8269ff2.system.entry.js} +1 -1
- package/dist/calcite/{p-8dbafcac.system.entry.js → p-e969b19f.system.entry.js} +1 -1
- package/dist/calcite/p-ea59c57b.entry.js +5 -0
- package/dist/calcite/{p-86e37e14.system.js → p-f00e6dd5.system.js} +1 -1
- package/dist/calcite/{p-496a04e4.system.entry.js → p-f07a87b7.system.entry.js} +1 -1
- package/dist/calcite/{p-ce704ece.js → p-f2c87a16.js} +1 -1
- package/dist/calcite/{p-68c5432f.entry.js → p-f49eebce.entry.js} +1 -1
- package/dist/calcite/{p-4639388a.system.entry.js → p-f7009a12.system.entry.js} +1 -1
- package/dist/calcite/{p-3ba581cf.entry.js → p-f8932a17.entry.js} +1 -1
- package/dist/calcite/{p-9180be05.system.entry.js → p-fc33ffa1.system.entry.js} +1 -1
- package/dist/calcite/{p-11b4f866.system.entry.js → p-fc7be70f.system.entry.js} +1 -1
- package/dist/calcite/{p-65c6c5a7.entry.js → p-fe0ec0ba.entry.js} +1 -1
- package/dist/cjs/{CalciteExpandToggle-d654421a.js → CalciteExpandToggle-e67088fb.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 +3 -3
- 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 +3 -3
- package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
- package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
- 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 +12 -11
- 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 +4 -4
- package/dist/cjs/calcite-radio-button.cjs.entry.js +3 -3
- 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 +4 -4
- 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-bc142d0b.js} +22 -7
- package/dist/cjs/{form-a5b44a1f.js → form-5721f130.js} +1 -1
- package/dist/cjs/{label-8e3552b2.js → label-58fef992.js} +2 -2
- package/dist/cjs/{locale-c4cb51ca.js → locale-ccfa66f6.js} +1 -1
- package/dist/cjs/{number-5feb0c13.js → number-f57fd111.js} +12 -5
- package/dist/cjs/{popper-a7580aca.js → popper-581dba36.js} +1 -1
- package/dist/cjs/{resources-27b28faa.js → resources-9a1c2479.js} +1 -1
- package/dist/cjs/{resources-5bf6cc29.js → resources-d3c42dc4.js} +1 -1
- package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.css +4 -0
- 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-icon/calcite-icon.css +8 -0
- package/dist/collection/components/calcite-input/calcite-input.js +7 -6
- package/dist/collection/components/calcite-popover/calcite-popover.js +1 -1
- package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +1 -1
- 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/components/calcite-tooltip/calcite-tooltip.js +1 -1
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +1 -1
- package/dist/collection/utils/dom.js +22 -7
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/number.js +12 -5
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-icon2.js +1 -1
- package/dist/components/calcite-input2.js +7 -6
- package/dist/components/calcite-popover-manager.js +1 -1
- package/dist/components/calcite-popover2.js +1 -1
- 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/calcite-tooltip-manager2.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/dom.js +22 -7
- package/dist/components/label.js +1 -1
- package/dist/components/number.js +12 -5
- package/dist/custom-elements/index.js +342 -328
- package/dist/esm/{CalciteExpandToggle-c33bd6fd.js → CalciteExpandToggle-c09e7544.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 +3 -3
- 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 +3 -3
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/calcite-filter.entry.js +1 -1
- package/dist/esm/calcite-graph_2.entry.js +3 -3
- package/dist/esm/calcite-icon.entry.js +2 -2
- 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 +12 -11
- 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 +4 -4
- package/dist/esm/calcite-radio-button.entry.js +3 -3
- 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 +4 -4
- 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-f91dd1f2.js} +22 -7
- package/dist/esm/{form-160b0fb5.js → form-2aaaacba.js} +1 -1
- package/dist/esm/{label-5559055d.js → label-22f56983.js} +2 -2
- package/dist/esm/{locale-d635bb3b.js → locale-86b789f9.js} +1 -1
- package/dist/esm/{number-56f92613.js → number-eb92427e.js} +12 -5
- package/dist/esm/{popper-f5caedc4.js → popper-fb9f7ae2.js} +1 -1
- package/dist/esm/{resources-ffaa09ee.js → resources-421133b2.js} +1 -1
- package/dist/esm/{resources-7501cc74.js → resources-724d9aa3.js} +1 -1
- package/dist/esm-es5/{CalciteExpandToggle-c33bd6fd.js → CalciteExpandToggle-c09e7544.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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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-f91dd1f2.js +5 -0
- package/dist/esm-es5/{form-160b0fb5.js → form-2aaaacba.js} +1 -1
- package/dist/esm-es5/label-22f56983.js +5 -0
- package/dist/esm-es5/{locale-d635bb3b.js → locale-86b789f9.js} +1 -1
- package/dist/esm-es5/number-eb92427e.js +5 -0
- package/dist/esm-es5/{popper-f5caedc4.js → popper-fb9f7ae2.js} +1 -1
- package/dist/esm-es5/{resources-ffaa09ee.js → resources-421133b2.js} +1 -1
- package/dist/esm-es5/{resources-7501cc74.js → resources-724d9aa3.js} +1 -1
- package/dist/extras/docs-json.json +8 -2
- 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/dist/types/utils/dom.d.ts +16 -1
- package/hydrate/index.js +342 -328
- package/package.json +10 -10
- package/dist/calcite/p-04417e11.system.entry.js +0 -5
- package/dist/calcite/p-16f89a95.entry.js +0 -5
- package/dist/calcite/p-1942876c.js +0 -5
- package/dist/calcite/p-3dae9da3.js +0 -5
- package/dist/calcite/p-478693b3.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-6cc23c39.system.js +0 -5
- package/dist/calcite/p-7677d70d.entry.js +0 -5
- package/dist/calcite/p-c34c4414.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-e942dcc6.entry.js +0 -5
- package/dist/esm-es5/dom-f24e866c.js +0 -5
- package/dist/esm-es5/label-5559055d.js +0 -5
- package/dist/esm-es5/number-56f92613.js +0 -5
|
@@ -8,11 +8,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const sortable_esm = require('./sortable.esm-d7a4560b.js');
|
|
11
|
-
const resources = require('./resources-
|
|
11
|
+
const resources = require('./resources-9a1c2479.js');
|
|
12
12
|
const array = require('./array-a5dedf5a.js');
|
|
13
13
|
const observers = require('./observers-41837607.js');
|
|
14
14
|
const guid = require('./guid-b270f0db.js');
|
|
15
|
-
const dom = require('./dom-
|
|
15
|
+
const dom = require('./dom-bc142d0b.js');
|
|
16
16
|
require('./debounce-95979061.js');
|
|
17
17
|
|
|
18
18
|
const CSS = {
|
|
@@ -36,7 +36,8 @@ function nodeListToArray(nodeList) {
|
|
|
36
36
|
return Array.isArray(nodeList) ? nodeList : Array.from(nodeList);
|
|
37
37
|
}
|
|
38
38
|
function getThemeName(el) {
|
|
39
|
-
|
|
39
|
+
const closestElWithTheme = closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}, .${CSS_UTILITY.lightTheme}`);
|
|
40
|
+
return (closestElWithTheme === null || closestElWithTheme === void 0 ? void 0 : closestElWithTheme.classList.contains("calcite-theme-dark")) ? "dark" : "light";
|
|
40
41
|
}
|
|
41
42
|
function getElementDir(el) {
|
|
42
43
|
const prop = "dir";
|
|
@@ -55,10 +56,14 @@ function getRootNode(el) {
|
|
|
55
56
|
function getHost(root) {
|
|
56
57
|
return root.host || null;
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
/**
|
|
60
|
+
* This helper queries an element's rootNodes and any ancestor rootNodes.
|
|
61
|
+
*
|
|
62
|
+
* @returns {Element[]} The elements.
|
|
63
|
+
*/
|
|
60
64
|
function queryElementsRoots(element, selector) {
|
|
61
65
|
// Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.
|
|
66
|
+
// Based on: https://stackoverflow.com/q/54520554/194216
|
|
62
67
|
function queryFromAll(el, allResults) {
|
|
63
68
|
if (!el) {
|
|
64
69
|
return allResults;
|
|
@@ -75,10 +80,16 @@ function queryElementsRoots(element, selector) {
|
|
|
75
80
|
}
|
|
76
81
|
return queryFromAll(element, []);
|
|
77
82
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
83
|
+
/**
|
|
84
|
+
* This helper queries an element's rootNode and any ancestor rootNodes.
|
|
85
|
+
*
|
|
86
|
+
* If both an 'id' and 'selector' are supplied, 'id' will take precedence over 'selector'.
|
|
87
|
+
*
|
|
88
|
+
* @returns {Element} The element.
|
|
89
|
+
*/
|
|
90
|
+
function queryElementRoots(element, { selector, id }) {
|
|
81
91
|
// Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.
|
|
92
|
+
// Based on: https://stackoverflow.com/q/54520554/194216
|
|
82
93
|
function queryFrom(el) {
|
|
83
94
|
if (!el) {
|
|
84
95
|
return null;
|
|
@@ -87,7 +98,11 @@ function queryElementRoots(element, selector) {
|
|
|
87
98
|
el = el.assignedSlot;
|
|
88
99
|
}
|
|
89
100
|
const rootNode = getRootNode(el);
|
|
90
|
-
const found =
|
|
101
|
+
const found = id
|
|
102
|
+
? rootNode.getElementById(id)
|
|
103
|
+
: selector
|
|
104
|
+
? rootNode.querySelector(selector)
|
|
105
|
+
: null;
|
|
91
106
|
const host = getHost(rootNode);
|
|
92
107
|
return found ? found : host ? queryFrom(host) : null;
|
|
93
108
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
|
-
const dom = require('./dom-
|
|
7
|
+
const dom = require('./dom-bc142d0b.js');
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Exported for testing purposes only
|
|
@@ -15,7 +15,7 @@ const labelTagName = "calcite-label";
|
|
|
15
15
|
const onLabelClickMap = new WeakMap();
|
|
16
16
|
const findLabelForComponent = (componentEl) => {
|
|
17
17
|
const { id } = componentEl;
|
|
18
|
-
const forLabel = id && dom.queryElementRoots(componentEl, `${labelTagName}[for="${id}"]`);
|
|
18
|
+
const forLabel = id && dom.queryElementRoots(componentEl, { selector: `${labelTagName}[for="${id}"]` });
|
|
19
19
|
if (forLabel) {
|
|
20
20
|
return forLabel;
|
|
21
21
|
}
|
|
@@ -33,17 +33,24 @@ function parseNumberString(numberString) {
|
|
|
33
33
|
return isValidNumber(result) ? Number(result).toString() : null;
|
|
34
34
|
}
|
|
35
35
|
function sanitizeDecimalString(decimalString) {
|
|
36
|
-
|
|
36
|
+
const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
|
|
37
|
+
return decimalString.replace(decimalAtEndOfStringButNotStart, "");
|
|
37
38
|
}
|
|
38
39
|
function sanitizeNegativeString(negativeString) {
|
|
39
|
-
|
|
40
|
+
const allHyphensExceptTheStart = /(?!^-)-/g;
|
|
41
|
+
return negativeString.replace(allHyphensExceptTheStart, "");
|
|
40
42
|
}
|
|
41
43
|
function sanitizeLeadingZeroString(zeroString) {
|
|
42
|
-
|
|
44
|
+
const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
|
|
45
|
+
return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
|
|
43
46
|
}
|
|
44
47
|
function sanitizeNumberString(value) {
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)));
|
|
49
|
+
const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
|
|
50
|
+
return isValidNumber(sanitizedValue)
|
|
51
|
+
? isNegativeDecimalOnlyZeros.test(sanitizedValue)
|
|
52
|
+
? sanitizedValue
|
|
53
|
+
: Number(sanitizedValue).toString()
|
|
47
54
|
: value;
|
|
48
55
|
}
|
|
49
56
|
function stringContainsNumbers(string) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M3.384 12.607L9.799 9.51l2.74-6.05L6.49 6.202zm5.471-3.752l-3.317 1.602 1.606-3.313zM8 .2A7.8 7.8 0 1 0 15.8 8 7.809 7.809 0 0 0 8 .2zm0 14.6A6.8 6.8 0 1 1 14.8 8 6.807 6.807 0 0 1 8 14.8z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M6.45 17.216l7.981-3.845 2.98-7.115-7.116 2.98zm6.741-4.358l-4.599 2.216 2.216-4.6zM12 1.2A10.8 10.8 0 1 0 22.8 12 10.812 10.812 0 0 0 12 1.2zm0 20.6a9.8 9.8 0 1 1 9.8-9.8 9.81 9.81 0 0 1-9.8 9.8z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M8.235 24.265l11.038-5.212 4.4-10.226-10.226 4.4zm9.798-5.732L10.33 22.17l3.637-7.703zM16 2.2A13.8 13.8 0 1 0 29.8 16 13.815 13.815 0 0 0 16 2.2zm0 26.6A12.8 12.8 0 1 1 28.8 16 12.815 12.815 0 0 1 16 28.8z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M4.482 2.52L3.856.335l.96-.275.627 2.183a3.797 3.797 0 0 0-.961.275zM2.347 7.046a3.807 3.807 0 0 1-.09-.493l-2.196.63.275.96 2.196-.63a3.812 3.812 0 0 1-.185-.467zm.33-2.89a3.798 3.798 0 0 1 .272-.42l-1.79-.992-.484.875 1.802.999a3.813 3.813 0 0 1 .2-.461zm5.166-1.48a3.81 3.81 0 0 1 .413.285l.999-1.803L8.38.675l-.992 1.789a3.788 3.788 0 0 1 .455.213zM16 9.5a3.5 3.5 0 0 1-3.5 3.5h-9a2.492 2.492 0 0 1-.648-4.9c.065-.018.127-.042.194-.054a2.482 2.482 0 0 1 .394-.941 2.765 2.765 0 0 1 4.23-3.337 3.97 3.97 0 0 1 6.26 2.544A3.495 3.495 0 0 1 16 9.5zm-1 0a2.503 2.503 0 0 0-1.48-2.276l-.483-.218-.092-.522a2.989 2.989 0 0 0-5.857-.17l-.233.992-.987-.252A1.462 1.462 0 0 0 4.03 8.227l-.124.678-.678.124A1.498 1.498 0 0 0 3.5 12h9A2.503 2.503 0 0 0 15 9.5zM4.241 6.34a2.416 2.416 0 0 1 1.874-.255 3.997 3.997 0 0 1 .813-1.621c-.02-.012-.035-.027-.055-.038a1.799 1.799 0 0 0-2.447.701 1.781 1.781 0 0 0-.185 1.214z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M6.386 3.593L5.633.573l.97-.241.753 3.019zM3.472 9.129l-.121-.485-3.02.752.243.971 3.019-.753zM4.4 5.253L1.829 3.708l-.515.858L3.885 6.11zm6.347-.853l1.544-2.571-.857-.515L9.89 3.885zM23 13.187A4.813 4.813 0 0 1 18.187 18H5.438a3.438 3.438 0 0 1 0-6.875l.012.001a3.457 3.457 0 0 1 .275-.48 3.494 3.494 0 1 1 5.381-4.24A5.47 5.47 0 0 1 19.95 8.72 4.805 4.805 0 0 1 23 13.188zm-1 0a3.789 3.789 0 0 0-2.418-3.538l-.429-.17-.15-.436a4.494 4.494 0 0 0-8.629.426l-.232.99-.986-.25a2.41 2.41 0 0 0-.594-.084 2.443 2.443 0 0 0-2.206 1.42l-.268.581h-.715A2.437 2.437 0 0 0 5.437 17h12.75A3.817 3.817 0 0 0 22 13.187zM6.397 9.908a3.312 3.312 0 0 1 3.004-.667 5.465 5.465 0 0 1 .962-2.02 2.492 2.492 0 1 0-3.966 2.687z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M4.593 12.959c.05.162.124.31.184.466l-3.672 1.123-.292-.956 3.657-1.118c.037.162.074.324.123.485zM9.53 4.482L8.408.813l-.956.292L8.57 4.762c.155-.06.31-.12.471-.17.16-.048.326-.073.489-.11zm6.841-2.518l-.883-.47-1.799 3.383a6.613 6.613 0 0 1 .884.468zm-11.03 5.46L1.964 5.63l-.47.883 3.377 1.796c.067-.153.135-.305.213-.454a6.79 6.79 0 0 1 .257-.43zM31 18.5a6.5 6.5 0 0 1-6.5 6.5H7.672a4.614 4.614 0 0 1-4.608-3.727 4.532 4.532 0 0 1 4.208-5.261 4.524 4.524 0 0 1 .434-.876 5.29 5.29 0 1 1 7.765-6.954 7.485 7.485 0 0 1 11.222 4.205A6.497 6.497 0 0 1 31 18.5zm-1 0a5.511 5.511 0 0 0-3.645-5.171l-.478-.172-.143-.488a6.497 6.497 0 0 0-12.612.586l-.18.935-1.01-.145A3.172 3.172 0 0 0 11.5 14a3.497 3.497 0 0 0-3.285 2.344l-.223.633-.67.034a3.5 3.5 0 0 0-3.271 4.098A3.621 3.621 0 0 0 7.672 24H24.5a5.506 5.506 0 0 0 5.5-5.5zM6.873 12.262a4.303 4.303 0 0 0 1.428 2.1A4.438 4.438 0 0 1 11.5 13a4.46 4.46 0 0 1 .64.065 7.498 7.498 0 0 1 2.536-4.304 4.31 4.31 0 0 0-7.803 3.5z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M2 6H1V3.5A2.5 2.5 0 0 1 3.5 1H6v1H3.5A1.5 1.5 0 0 0 2 3.5zm1.5 9A1.5 1.5 0 0 1 2 13.5V11H1v2.5A2.5 2.5 0 0 0 3.5 16H6v-1zM15 13.5a1.5 1.5 0 0 1-1.5 1.5H11v1h2.5a2.5 2.5 0 0 0 2.5-2.5V11h-1zM13.5 1H11v1h2.5A1.5 1.5 0 0 1 15 3.5V6h1V3.5A2.5 2.5 0 0 0 13.5 1zM9 5h3v3h1V4H9zM5 8V5h3V4H4v4zm7 1v3H9v1h4V9zm-4 3H5V9H4v4h4z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M3 8H2V4.5A2.5 2.5 0 0 1 4.5 2H8v1H4.5A1.5 1.5 0 0 0 3 4.5zm1.5 14A1.5 1.5 0 0 1 3 20.5V17H2v3.5A2.5 2.5 0 0 0 4.5 23H8v-1zM22 20.5a1.5 1.5 0 0 1-1.5 1.5H17v1h3.5a2.5 2.5 0 0 0 2.5-2.5V17h-1zM20.5 2H17v1h3.5A1.5 1.5 0 0 1 22 4.5V8h1V4.5A2.5 2.5 0 0 0 20.5 2zM14 7h4v4h1V6h-5zm-7 4V7h4V6H6v5zm11 3v4h-4v1h5v-5zm-7 4H7v-4H6v5h5z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M10 30H5.5A2.5 2.5 0 0 1 3 27.5V23h1v4.5A1.5 1.5 0 0 0 5.5 29H10zm19-7v4.5a1.5 1.5 0 0 1-1.5 1.5H23v1h4.5a2.5 2.5 0 0 0 2.5-2.5V23zM10 3H5.5A2.5 2.5 0 0 0 3 5.5V10h1V5.5A1.5 1.5 0 0 1 5.5 4H10zm17.5 0H23v1h4.5A1.5 1.5 0 0 1 29 5.5V10h1V5.5A2.5 2.5 0 0 0 27.5 3zM18 9h6v6h1V8h-7zm-9 6V9h6V8H8v7zm15 3v6h-6v1h7v-7zm-9 6H9v-6H8v7h7z"
|
|
@@ -78,8 +78,16 @@
|
|
|
78
78
|
display: none;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
/**
|
|
82
|
+
* CSS Custom Properties
|
|
83
|
+
*
|
|
84
|
+
* These properties can be overridden using the component's tag as selector.
|
|
85
|
+
*
|
|
86
|
+
* @prop --calcite-ui-icon-color: the color of the icon. Defaults to 'currentColor'.
|
|
87
|
+
*/
|
|
81
88
|
:host {
|
|
82
89
|
display: inline-flex;
|
|
90
|
+
color: var(--calcite-ui-icon-color);
|
|
83
91
|
}
|
|
84
92
|
|
|
85
93
|
:host([scale=s]) {
|
|
@@ -228,18 +228,19 @@ export class CalciteInput {
|
|
|
228
228
|
};
|
|
229
229
|
this.setValue = (value, nativeEvent, committing = false) => {
|
|
230
230
|
const previousValue = this.value;
|
|
231
|
-
this.value = this.type === "number" ? sanitizeNumberString(value) : value;
|
|
232
231
|
if (this.type === "number") {
|
|
233
|
-
|
|
232
|
+
const sanitizedValue = sanitizeNumberString(value);
|
|
233
|
+
this.value = sanitizedValue;
|
|
234
|
+
this.setLocalizedValue(sanitizedValue);
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
this.value = value;
|
|
234
238
|
}
|
|
235
239
|
if (nativeEvent) {
|
|
236
|
-
if (this.type === "number") {
|
|
237
|
-
value = sanitizeNumberString(value);
|
|
238
|
-
}
|
|
239
240
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
240
241
|
element: this.childEl,
|
|
241
242
|
nativeEvent,
|
|
242
|
-
value
|
|
243
|
+
value: this.value
|
|
243
244
|
});
|
|
244
245
|
if (calciteInputInputEvent.defaultPrevented) {
|
|
245
246
|
this.value = previousValue;
|
|
@@ -183,7 +183,7 @@ export class CalcitePopover {
|
|
|
183
183
|
getReferenceElement() {
|
|
184
184
|
const { referenceElement, el } = this;
|
|
185
185
|
return ((typeof referenceElement === "string"
|
|
186
|
-
? queryElementRoots(el,
|
|
186
|
+
? queryElementRoots(el, { id: referenceElement })
|
|
187
187
|
: referenceElement) || null);
|
|
188
188
|
}
|
|
189
189
|
getModifiers() {
|
|
@@ -33,7 +33,7 @@ export class CalcitePopoverManager {
|
|
|
33
33
|
var _a;
|
|
34
34
|
const { selector, el } = this;
|
|
35
35
|
const id = (_a = element.closest(selector)) === null || _a === void 0 ? void 0 : _a.getAttribute(POPOVER_REFERENCE);
|
|
36
|
-
return queryElementRoots(el,
|
|
36
|
+
return queryElementRoots(el, { id });
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
// --------------------------------------------------------------------------
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import { Component, h, Prop, Element, Event, Host, Watch } from "@stencil/core";
|
|
6
6
|
import { getElementProp } from "../../utils/dom";
|
|
7
7
|
import { SLOTS, CSS } from "./resources";
|
|
8
|
-
import { createObserver } from "../../utils/observers";
|
|
9
8
|
export class CalciteRadioGroupItem {
|
|
10
9
|
constructor() {
|
|
11
10
|
//--------------------------------------------------------------------------
|
|
@@ -19,30 +18,9 @@ export class CalciteRadioGroupItem {
|
|
|
19
18
|
this.iconFlipRtl = false;
|
|
20
19
|
/** optionally used with icon, select where to position the icon */
|
|
21
20
|
this.iconPosition = "start";
|
|
22
|
-
this.mutationObserver = createObserver("mutation", () => this.syncFromExternalInput());
|
|
23
21
|
}
|
|
24
22
|
handleCheckedChange() {
|
|
25
23
|
this.calciteRadioGroupItemChange.emit();
|
|
26
|
-
this.syncToExternalInput();
|
|
27
|
-
}
|
|
28
|
-
//--------------------------------------------------------------------------
|
|
29
|
-
//
|
|
30
|
-
// Lifecycle
|
|
31
|
-
//
|
|
32
|
-
//--------------------------------------------------------------------------
|
|
33
|
-
connectedCallback() {
|
|
34
|
-
var _a;
|
|
35
|
-
const inputProxy = this.el.querySelector(`input[slot=${SLOTS.input}]`);
|
|
36
|
-
if (inputProxy) {
|
|
37
|
-
this.value = inputProxy.value;
|
|
38
|
-
this.checked = inputProxy.checked;
|
|
39
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(inputProxy, { attributes: true });
|
|
40
|
-
}
|
|
41
|
-
this.inputProxy = inputProxy;
|
|
42
|
-
}
|
|
43
|
-
disconnectedCallback() {
|
|
44
|
-
var _a;
|
|
45
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
46
24
|
}
|
|
47
25
|
render() {
|
|
48
26
|
const { checked, value } = this;
|
|
@@ -63,29 +41,6 @@ export class CalciteRadioGroupItem {
|
|
|
63
41
|
h("slot", { name: SLOTS.input }),
|
|
64
42
|
this.icon && this.iconPosition === "end" ? iconEl : null)));
|
|
65
43
|
}
|
|
66
|
-
//--------------------------------------------------------------------------
|
|
67
|
-
//
|
|
68
|
-
// Private Methods
|
|
69
|
-
//
|
|
70
|
-
//--------------------------------------------------------------------------
|
|
71
|
-
syncFromExternalInput() {
|
|
72
|
-
if (this.inputProxy) {
|
|
73
|
-
this.value = this.inputProxy.value;
|
|
74
|
-
this.checked = this.inputProxy.checked;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
syncToExternalInput() {
|
|
78
|
-
if (!this.inputProxy) {
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
this.inputProxy.value = this.value;
|
|
82
|
-
if (this.checked) {
|
|
83
|
-
this.inputProxy.setAttribute("checked", "");
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
this.inputProxy.removeAttribute("checked");
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
44
|
static get is() { return "calcite-radio-group-item"; }
|
|
90
45
|
static get encapsulation() { return "shadow"; }
|
|
91
46
|
static get originalStyleUrls() { return {
|
|
@@ -88,46 +88,13 @@
|
|
|
88
88
|
transition-duration: 150ms;
|
|
89
89
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
90
90
|
}
|
|
91
|
-
|
|
92
|
-
:host(:not([embed])) {
|
|
93
|
-
padding: 0.75rem;
|
|
94
|
-
box-shadow: 0 0 0 1px var(--calcite-ui-border-2);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
:host(:not([embed])[href]:hover) {
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
box-shadow: 0 0 0 2px var(--calcite-ui-brand);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
:host(:not([embed])[href]:active) {
|
|
103
|
-
box-shadow: 0 0 0 3px var(--calcite-ui-brand);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
:host([icon][heading]:not([description]):not([embed])) {
|
|
107
|
-
padding: 0px;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
:host([icon][heading]:not([description])) .icon {
|
|
111
|
-
display: flex;
|
|
112
|
-
justify-content: center;
|
|
113
|
-
}
|
|
114
|
-
:host([icon][heading]:not([description])) .large-visual {
|
|
115
|
-
text-align: center;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
:host([disabled]) {
|
|
119
|
-
opacity: var(--calcite-ui-opacity-disabled);
|
|
120
|
-
pointer-events: none;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.container {
|
|
91
|
+
:host .container {
|
|
124
92
|
pointer-events: none;
|
|
125
93
|
display: grid;
|
|
126
94
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
127
95
|
gap: 0.5rem;
|
|
128
96
|
}
|
|
129
|
-
|
|
130
|
-
.content {
|
|
97
|
+
:host .content {
|
|
131
98
|
display: flex;
|
|
132
99
|
flex: 1 1 auto;
|
|
133
100
|
flex-direction: column;
|
|
@@ -135,8 +102,7 @@
|
|
|
135
102
|
gap: 0.5rem;
|
|
136
103
|
width: 10%;
|
|
137
104
|
}
|
|
138
|
-
|
|
139
|
-
.content-container {
|
|
105
|
+
:host .content-container {
|
|
140
106
|
display: flex;
|
|
141
107
|
width: 100%;
|
|
142
108
|
flex: 1 1 auto;
|
|
@@ -147,20 +113,18 @@
|
|
|
147
113
|
outline-color: transparent;
|
|
148
114
|
transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;
|
|
149
115
|
}
|
|
150
|
-
|
|
151
|
-
.content-slot-container {
|
|
116
|
+
:host .content-slot-container {
|
|
152
117
|
display: flex;
|
|
153
118
|
align-items: center;
|
|
154
119
|
background-color: var(--calcite-ui-foreground-1);
|
|
155
120
|
}
|
|
156
|
-
.content-slot-container:first-child {
|
|
121
|
+
:host .content-slot-container:first-child {
|
|
157
122
|
padding-right: 0.75rem;
|
|
158
123
|
}
|
|
159
|
-
.content-slot-container:last-child {
|
|
124
|
+
:host .content-slot-container:last-child {
|
|
160
125
|
padding-left: 0.75rem;
|
|
161
126
|
}
|
|
162
|
-
|
|
163
|
-
.heading {
|
|
127
|
+
:host .heading {
|
|
164
128
|
pointer-events: none;
|
|
165
129
|
overflow-wrap: break-word;
|
|
166
130
|
font-size: var(--calcite-font-size--1);
|
|
@@ -170,19 +134,20 @@
|
|
|
170
134
|
transition-duration: 150ms;
|
|
171
135
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
172
136
|
}
|
|
173
|
-
|
|
174
|
-
.large-visual {
|
|
137
|
+
:host .large-visual {
|
|
175
138
|
align-items: center;
|
|
139
|
+
text-align: center;
|
|
176
140
|
min-height: 12rem;
|
|
177
141
|
}
|
|
178
|
-
.large-visual .icon {
|
|
142
|
+
:host .large-visual .icon {
|
|
143
|
+
display: flex;
|
|
144
|
+
justify-content: center;
|
|
179
145
|
align-self: flex-end;
|
|
180
146
|
}
|
|
181
|
-
.large-visual .content-container {
|
|
147
|
+
:host .large-visual .content-container {
|
|
182
148
|
align-self: center;
|
|
183
149
|
}
|
|
184
|
-
|
|
185
|
-
.description {
|
|
150
|
+
:host .description {
|
|
186
151
|
pointer-events: none;
|
|
187
152
|
font-size: var(--calcite-font-size--2);
|
|
188
153
|
line-height: 1.375;
|
|
@@ -191,6 +156,29 @@
|
|
|
191
156
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
192
157
|
}
|
|
193
158
|
|
|
159
|
+
:host(:not([embed])) {
|
|
160
|
+
padding: 0.75rem;
|
|
161
|
+
box-shadow: 0 0 0 1px var(--calcite-ui-border-2);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:host(:not([embed])[href]:hover) {
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
box-shadow: 0 0 0 2px var(--calcite-ui-brand);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
:host(:not([embed])[href]:active) {
|
|
170
|
+
box-shadow: 0 0 0 3px var(--calcite-ui-brand);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
:host([icon][heading]:not([description]):not([embed])) {
|
|
174
|
+
padding: 0px;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
:host([disabled]) {
|
|
178
|
+
opacity: var(--calcite-ui-opacity-disabled);
|
|
179
|
+
pointer-events: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
194
182
|
:host(:hover) .heading, :host([active]) .heading {
|
|
195
183
|
color: var(--calcite-ui-text-1);
|
|
196
184
|
}
|
|
@@ -78,7 +78,10 @@
|
|
|
78
78
|
display: none;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
:host {
|
|
82
|
+
display: block;
|
|
83
|
+
}
|
|
84
|
+
:host .container {
|
|
82
85
|
background-color: var(--calcite-ui-foreground-1);
|
|
83
86
|
box-shadow: 0 0 0 1px var(--calcite-ui-border-2);
|
|
84
87
|
box-sizing: border-box;
|
|
@@ -92,47 +95,14 @@
|
|
|
92
95
|
vertical-align: top;
|
|
93
96
|
z-index: 10;
|
|
94
97
|
}
|
|
95
|
-
|
|
96
|
-
:host {
|
|
97
|
-
display: block;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
:host(:hover) .root {
|
|
101
|
-
z-index: 20;
|
|
102
|
-
box-shadow: 0 0 0 1px var(--calcite-ui-border-1);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
:host([checked]) .root {
|
|
106
|
-
z-index: 30;
|
|
107
|
-
box-shadow: 0 0 0 1px var(--calcite-ui-brand);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.root.focused {
|
|
98
|
+
:host .container.checked {
|
|
111
99
|
z-index: 30;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
:host(:not([input-enabled]):hover) .root {
|
|
115
100
|
box-shadow: 0 0 0 1px var(--calcite-ui-brand);
|
|
116
101
|
}
|
|
117
|
-
|
|
118
|
-
:
|
|
119
|
-
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);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
:host([width=full]) .root {
|
|
123
|
-
display: flex;
|
|
124
|
-
max-width: none;
|
|
125
|
-
}
|
|
126
|
-
:host([width=full]) calcite-tile {
|
|
127
|
-
flex: 1 1 auto;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
:host([input-alignment=start][width=full]) calcite-tile {
|
|
131
|
-
order: 1;
|
|
132
|
-
margin-inline-start: 0.75rem;
|
|
102
|
+
:host .container.heading-only {
|
|
103
|
+
align-items: center;
|
|
133
104
|
}
|
|
134
|
-
|
|
135
|
-
:host(:not([input-enabled])) ::slotted(calcite-checkbox), :host(:not([input-enabled])) ::slotted(calcite-radio-button) {
|
|
105
|
+
:host .container:not(.input-enabled) ::slotted(calcite-checkbox), :host .container:not(.input-enabled) ::slotted(calcite-radio-button) {
|
|
136
106
|
position: absolute;
|
|
137
107
|
width: 1px;
|
|
138
108
|
height: 1px;
|
|
@@ -143,54 +113,64 @@
|
|
|
143
113
|
white-space: nowrap;
|
|
144
114
|
border-width: 0;
|
|
145
115
|
}
|
|
146
|
-
|
|
147
|
-
:
|
|
148
|
-
align-items: center;
|
|
116
|
+
:host .container.focused:not(.disabled) {
|
|
117
|
+
z-index: 30;
|
|
149
118
|
}
|
|
150
|
-
|
|
151
|
-
:
|
|
152
|
-
|
|
119
|
+
:host .container.focused:not(.disabled):not(.input-enabled) {
|
|
120
|
+
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);
|
|
121
|
+
}
|
|
122
|
+
: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 {
|
|
153
123
|
display: inline-grid;
|
|
154
|
-
grid-gap: 0.75rem;
|
|
155
124
|
grid-template-columns: max-content 1fr;
|
|
156
125
|
}
|
|
157
|
-
:host
|
|
158
|
-
:
|
|
159
|
-
:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) ::slotted(calcite-checkbox),
|
|
160
|
-
:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) ::slotted(calcite-radio-button) {
|
|
161
|
-
order: 0;
|
|
126
|
+
: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 {
|
|
127
|
+
gap: 0.75rem;
|
|
162
128
|
}
|
|
163
|
-
:host
|
|
164
|
-
:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) calcite-tile {
|
|
129
|
+
:host .container.input-enabled.input-alignment-start calcite-tile {
|
|
165
130
|
order: 1;
|
|
166
131
|
}
|
|
167
|
-
|
|
168
|
-
:host
|
|
169
|
-
:host([input-enabled][input-alignment=start][icon][heading]:not([description])) ::slotted(calcite-radio-button) {
|
|
132
|
+
:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-checkbox),
|
|
133
|
+
:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-radio-button) {
|
|
170
134
|
position: absolute;
|
|
171
|
-
|
|
135
|
+
inset-block-start: 0.75rem;
|
|
172
136
|
inset-inline-start: 0.75rem;
|
|
173
137
|
}
|
|
174
|
-
|
|
175
|
-
:host([input-enabled][input-alignment=end][icon][heading]) ::slotted(calcite-checkbox),
|
|
176
|
-
:host([input-enabled][input-alignment=end][icon][heading]) ::slotted(calcite-radio-button) {
|
|
177
|
-
position: absolute;
|
|
178
|
-
top: 0.75rem;
|
|
179
|
-
inset-inline-end: 0.75rem;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
:host([input-enabled][input-alignment=end][heading]:not([icon]):not([description])) .root {
|
|
138
|
+
:host .container.input-enabled.input-alignment-end.width-auto.heading-only, :host .container.input-enabled.input-alignment-end.width-auto.icon-only {
|
|
183
139
|
display: inline-grid;
|
|
184
140
|
grid-gap: 0.75rem;
|
|
185
141
|
grid-template-columns: max-content 1fr;
|
|
186
142
|
}
|
|
187
|
-
:host
|
|
188
|
-
:
|
|
189
|
-
|
|
143
|
+
:host .container.input-enabled.input-alignment-end.heading-only, :host .container.input-enabled.input-alignment-end.icon-only {
|
|
144
|
+
gap: 0.75rem;
|
|
145
|
+
}
|
|
146
|
+
:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-checkbox),
|
|
147
|
+
: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),
|
|
148
|
+
: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),
|
|
149
|
+
: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),
|
|
150
|
+
:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-radio-button) {
|
|
151
|
+
position: absolute;
|
|
152
|
+
inset-block-start: 0.75rem;
|
|
153
|
+
inset-inline-end: 0.75rem;
|
|
154
|
+
}
|
|
155
|
+
:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-checkbox),
|
|
156
|
+
:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-radio-button) {
|
|
157
|
+
position: absolute;
|
|
158
|
+
inset-block-start: 0.75rem;
|
|
159
|
+
inset-inline-end: 0.75rem;
|
|
160
|
+
}
|
|
161
|
+
:host .container.width-full {
|
|
162
|
+
display: flex;
|
|
163
|
+
max-width: none;
|
|
164
|
+
}
|
|
165
|
+
:host .container.width-full calcite-tile {
|
|
166
|
+
flex: 1 1 auto;
|
|
190
167
|
}
|
|
191
168
|
|
|
192
|
-
:host(
|
|
193
|
-
|
|
169
|
+
:host(:hover) .container {
|
|
170
|
+
z-index: 20;
|
|
171
|
+
}
|
|
172
|
+
:host(:hover) .container:not(.input-enabled) {
|
|
173
|
+
box-shadow: 0 0 0 1px var(--calcite-ui-brand);
|
|
194
174
|
}
|
|
195
175
|
|
|
196
176
|
:host([disabled]) {
|