@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
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Prop, Listen, Watch, State, Method } from "@stencil/core";
|
|
6
6
|
import { guid } from "../../utils/guid";
|
|
7
|
+
import { CSS } from "./resources";
|
|
7
8
|
/**
|
|
8
9
|
* @slot - A slot for adding custom content.
|
|
9
10
|
*/
|
|
@@ -149,8 +150,26 @@ export class CalciteTileSelect {
|
|
|
149
150
|
this.el.insertAdjacentElement("beforeend", this.input);
|
|
150
151
|
}
|
|
151
152
|
render() {
|
|
152
|
-
|
|
153
|
-
|
|
153
|
+
const { checked, description, disabled, focused, heading, icon, inputAlignment, inputEnabled, width } = this;
|
|
154
|
+
return (h("div", { class: {
|
|
155
|
+
checked,
|
|
156
|
+
container: true,
|
|
157
|
+
[CSS.description]: Boolean(description),
|
|
158
|
+
[CSS.descriptionOnly]: Boolean(!heading && !icon && description),
|
|
159
|
+
disabled,
|
|
160
|
+
focused,
|
|
161
|
+
[CSS.heading]: Boolean(heading),
|
|
162
|
+
[CSS.headingOnly]: heading && !icon && !description,
|
|
163
|
+
[CSS.icon]: Boolean(icon),
|
|
164
|
+
[CSS.iconOnly]: !heading && icon && !description,
|
|
165
|
+
[CSS.inputAlignmentEnd]: inputAlignment === "end",
|
|
166
|
+
[CSS.inputAlignmentStart]: inputAlignment === "start",
|
|
167
|
+
[CSS.inputEnabled]: inputEnabled,
|
|
168
|
+
[CSS.largeVisual]: heading && icon && !description,
|
|
169
|
+
[CSS.widthAuto]: width === "auto",
|
|
170
|
+
[CSS.widthFull]: width === "full"
|
|
171
|
+
} },
|
|
172
|
+
h("calcite-tile", { active: checked, description: description, embed: true, heading: heading, icon: icon }),
|
|
154
173
|
h("slot", null)));
|
|
155
174
|
}
|
|
156
175
|
static get is() { return "calcite-tile-select"; }
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
+
*/
|
|
5
|
+
export const CSS = {
|
|
6
|
+
checked: "checked",
|
|
7
|
+
description: "description",
|
|
8
|
+
descriptionOnly: "description-only",
|
|
9
|
+
disabled: "disabled",
|
|
10
|
+
heading: "heading",
|
|
11
|
+
headingOnly: "heading-only",
|
|
12
|
+
icon: "icon",
|
|
13
|
+
iconOnly: "icon-only",
|
|
14
|
+
inputAlignmentEnd: "input-alignment-end",
|
|
15
|
+
inputAlignmentStart: "input-alignment-start",
|
|
16
|
+
inputEnabled: "input-enabled",
|
|
17
|
+
largeVisual: "large-visual",
|
|
18
|
+
widthAuto: "width-auto",
|
|
19
|
+
widthFull: "width-full"
|
|
20
|
+
};
|
|
@@ -128,7 +128,7 @@ export class CalciteTooltip {
|
|
|
128
128
|
getReferenceElement() {
|
|
129
129
|
const { referenceElement, el } = this;
|
|
130
130
|
return ((typeof referenceElement === "string"
|
|
131
|
-
? queryElementRoots(el,
|
|
131
|
+
? queryElementRoots(el, { id: referenceElement })
|
|
132
132
|
: referenceElement) || null);
|
|
133
133
|
}
|
|
134
134
|
getModifiers() {
|
|
@@ -30,7 +30,7 @@ export class CalciteTooltipManager {
|
|
|
30
30
|
var _a;
|
|
31
31
|
const { selector, el } = this;
|
|
32
32
|
const id = (_a = element.closest(selector)) === null || _a === void 0 ? void 0 : _a.getAttribute(TOOLTIP_REFERENCE);
|
|
33
|
-
return queryElementRoots(el,
|
|
33
|
+
return queryElementRoots(el, { id });
|
|
34
34
|
};
|
|
35
35
|
this.clearHoverTimeout = (tooltip) => {
|
|
36
36
|
const { hoverTimeouts } = this;
|
|
@@ -21,7 +21,8 @@ export function nodeListToArray(nodeList) {
|
|
|
21
21
|
return Array.isArray(nodeList) ? nodeList : Array.from(nodeList);
|
|
22
22
|
}
|
|
23
23
|
export function getThemeName(el) {
|
|
24
|
-
|
|
24
|
+
const closestElWithTheme = closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}, .${CSS_UTILITY.lightTheme}`);
|
|
25
|
+
return (closestElWithTheme === null || closestElWithTheme === void 0 ? void 0 : closestElWithTheme.classList.contains("calcite-theme-dark")) ? "dark" : "light";
|
|
25
26
|
}
|
|
26
27
|
export function getElementDir(el) {
|
|
27
28
|
const prop = "dir";
|
|
@@ -40,10 +41,14 @@ export function getRootNode(el) {
|
|
|
40
41
|
export function getHost(root) {
|
|
41
42
|
return root.host || null;
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
/**
|
|
45
|
+
* This helper queries an element's rootNodes and any ancestor rootNodes.
|
|
46
|
+
*
|
|
47
|
+
* @returns {Element[]} The elements.
|
|
48
|
+
*/
|
|
45
49
|
export function queryElementsRoots(element, selector) {
|
|
46
50
|
// Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.
|
|
51
|
+
// Based on: https://stackoverflow.com/q/54520554/194216
|
|
47
52
|
function queryFromAll(el, allResults) {
|
|
48
53
|
if (!el) {
|
|
49
54
|
return allResults;
|
|
@@ -60,10 +65,16 @@ export function queryElementsRoots(element, selector) {
|
|
|
60
65
|
}
|
|
61
66
|
return queryFromAll(element, []);
|
|
62
67
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
68
|
+
/**
|
|
69
|
+
* This helper queries an element's rootNode and any ancestor rootNodes.
|
|
70
|
+
*
|
|
71
|
+
* If both an 'id' and 'selector' are supplied, 'id' will take precedence over 'selector'.
|
|
72
|
+
*
|
|
73
|
+
* @returns {Element} The element.
|
|
74
|
+
*/
|
|
75
|
+
export function queryElementRoots(element, { selector, id }) {
|
|
66
76
|
// Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.
|
|
77
|
+
// Based on: https://stackoverflow.com/q/54520554/194216
|
|
67
78
|
function queryFrom(el) {
|
|
68
79
|
if (!el) {
|
|
69
80
|
return null;
|
|
@@ -72,7 +83,11 @@ export function queryElementRoots(element, selector) {
|
|
|
72
83
|
el = el.assignedSlot;
|
|
73
84
|
}
|
|
74
85
|
const rootNode = getRootNode(el);
|
|
75
|
-
const found =
|
|
86
|
+
const found = id
|
|
87
|
+
? rootNode.getElementById(id)
|
|
88
|
+
: selector
|
|
89
|
+
? rootNode.querySelector(selector)
|
|
90
|
+
: null;
|
|
76
91
|
const host = getHost(rootNode);
|
|
77
92
|
return found ? found : host ? queryFrom(host) : null;
|
|
78
93
|
}
|
|
@@ -12,7 +12,7 @@ const labelTagName = "calcite-label";
|
|
|
12
12
|
const onLabelClickMap = new WeakMap();
|
|
13
13
|
const findLabelForComponent = (componentEl) => {
|
|
14
14
|
const { id } = componentEl;
|
|
15
|
-
const forLabel = id && queryElementRoots(componentEl, `${labelTagName}[for="${id}"]`);
|
|
15
|
+
const forLabel = id && queryElementRoots(componentEl, { selector: `${labelTagName}[for="${id}"]` });
|
|
16
16
|
if (forLabel) {
|
|
17
17
|
return forLabel;
|
|
18
18
|
}
|
|
@@ -27,17 +27,24 @@ export function parseNumberString(numberString) {
|
|
|
27
27
|
return isValidNumber(result) ? Number(result).toString() : null;
|
|
28
28
|
}
|
|
29
29
|
export function sanitizeDecimalString(decimalString) {
|
|
30
|
-
|
|
30
|
+
const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
|
|
31
|
+
return decimalString.replace(decimalAtEndOfStringButNotStart, "");
|
|
31
32
|
}
|
|
32
33
|
export function sanitizeNegativeString(negativeString) {
|
|
33
|
-
|
|
34
|
+
const allHyphensExceptTheStart = /(?!^-)-/g;
|
|
35
|
+
return negativeString.replace(allHyphensExceptTheStart, "");
|
|
34
36
|
}
|
|
35
37
|
export function sanitizeLeadingZeroString(zeroString) {
|
|
36
|
-
|
|
38
|
+
const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
|
|
39
|
+
return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
|
|
37
40
|
}
|
|
38
41
|
export function sanitizeNumberString(value) {
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)));
|
|
43
|
+
const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
|
|
44
|
+
return isValidNumber(sanitizedValue)
|
|
45
|
+
? isNegativeDecimalOnlyZeros.test(sanitizedValue)
|
|
46
|
+
? sanitizedValue
|
|
47
|
+
: Number(sanitizedValue).toString()
|
|
41
48
|
: value;
|
|
42
49
|
}
|
|
43
50
|
function stringContainsNumbers(string) {
|
|
@@ -11,7 +11,7 @@ const CSS = {
|
|
|
11
11
|
containerLarge: "container--l"
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
const calciteDropdownGroupCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.container--s{font-size:var(--calcite-font-size--2);line-height:1rem}.container--s .dropdown-title{padding:0.5rem}.container--m{font-size:var(--calcite-font-size--1);line-height:1rem}.container--m .dropdown-title{padding:0.75rem}.container--l{font-size:var(--calcite-font-size-0);line-height:1.25rem}.container--l .dropdown-title{padding:1rem}.dropdown-title{margin-bottom:-1px;display:block;cursor:default;overflow-wrap:break-word;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}.dropdown-separator{display:block;height:1px;background-color:var(--calcite-ui-border-3)}";
|
|
14
|
+
const calciteDropdownGroupCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}.container--s{font-size:var(--calcite-font-size--2);line-height:1rem}.container--s .dropdown-title{padding:0.5rem}.container--m{font-size:var(--calcite-font-size--1);line-height:1rem}.container--m .dropdown-title{padding:0.75rem}.container--l{font-size:var(--calcite-font-size-0);line-height:1.25rem}.container--l .dropdown-title{padding:1rem}.dropdown-title{margin-bottom:-1px;display:block;cursor:default;overflow-wrap:break-word;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}.dropdown-separator{display:block;height:1px;background-color:var(--calcite-ui-border-3)}";
|
|
15
15
|
|
|
16
16
|
let CalciteDropdownGroup$1 = class extends HTMLElement {
|
|
17
17
|
constructor() {
|
|
@@ -70,7 +70,7 @@ function normalizeIconName(name) {
|
|
|
70
70
|
.join("");
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
const calciteIconCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex}:host([scale=s]){height:1rem;width:1rem;min-width:1rem;min-height:1rem}:host([scale=m]){height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}:host([scale=l]){height:2rem;width:2rem;min-width:2rem;min-height:2rem}.flip-rtl{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.svg{display:block}";
|
|
73
|
+
const calciteIconCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-icon-color)}:host([scale=s]){height:1rem;width:1rem;min-width:1rem;min-height:1rem}:host([scale=m]){height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}:host([scale=l]){height:2rem;width:2rem;min-width:2rem;min-height:2rem}.flip-rtl{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.svg{display:block}";
|
|
74
74
|
|
|
75
75
|
let CalciteIcon = class extends HTMLElement {
|
|
76
76
|
constructor() {
|
|
@@ -262,18 +262,19 @@ let CalciteInput = class extends HTMLElement {
|
|
|
262
262
|
};
|
|
263
263
|
this.setValue = (value, nativeEvent, committing = false) => {
|
|
264
264
|
const previousValue = this.value;
|
|
265
|
-
this.value = this.type === "number" ? sanitizeNumberString(value) : value;
|
|
266
265
|
if (this.type === "number") {
|
|
267
|
-
|
|
266
|
+
const sanitizedValue = sanitizeNumberString(value);
|
|
267
|
+
this.value = sanitizedValue;
|
|
268
|
+
this.setLocalizedValue(sanitizedValue);
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
this.value = value;
|
|
268
272
|
}
|
|
269
273
|
if (nativeEvent) {
|
|
270
|
-
if (this.type === "number") {
|
|
271
|
-
value = sanitizeNumberString(value);
|
|
272
|
-
}
|
|
273
274
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
274
275
|
element: this.childEl,
|
|
275
276
|
nativeEvent,
|
|
276
|
-
value
|
|
277
|
+
value: this.value
|
|
277
278
|
});
|
|
278
279
|
if (calciteInputInputEvent.defaultPrevented) {
|
|
279
280
|
this.value = previousValue;
|
|
@@ -36,7 +36,7 @@ let CalcitePopoverManager$1 = class extends HTMLElement {
|
|
|
36
36
|
var _a;
|
|
37
37
|
const { selector, el } = this;
|
|
38
38
|
const id = (_a = element.closest(selector)) === null || _a === void 0 ? void 0 : _a.getAttribute(POPOVER_REFERENCE);
|
|
39
|
-
return queryElementRoots(el,
|
|
39
|
+
return queryElementRoots(el, { id });
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
// --------------------------------------------------------------------------
|
|
@@ -191,7 +191,7 @@ let CalcitePopover = class extends HTMLElement {
|
|
|
191
191
|
getReferenceElement() {
|
|
192
192
|
const { referenceElement, el } = this;
|
|
193
193
|
return ((typeof referenceElement === "string"
|
|
194
|
-
? queryElementRoots(el,
|
|
194
|
+
? queryElementRoots(el, { id: referenceElement })
|
|
195
195
|
: referenceElement) || null);
|
|
196
196
|
}
|
|
197
197
|
getModifiers() {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
6
|
import { g as getElementProp } from './dom.js';
|
|
7
|
-
import { c as createObserver } from './observers.js';
|
|
8
7
|
import { d as defineCustomElement$2 } from './calcite-icon2.js';
|
|
9
8
|
|
|
10
9
|
const SLOTS = {
|
|
@@ -33,30 +32,9 @@ let CalciteRadioGroupItem$1 = class extends HTMLElement {
|
|
|
33
32
|
this.iconFlipRtl = false;
|
|
34
33
|
/** optionally used with icon, select where to position the icon */
|
|
35
34
|
this.iconPosition = "start";
|
|
36
|
-
this.mutationObserver = createObserver("mutation", () => this.syncFromExternalInput());
|
|
37
35
|
}
|
|
38
36
|
handleCheckedChange() {
|
|
39
37
|
this.calciteRadioGroupItemChange.emit();
|
|
40
|
-
this.syncToExternalInput();
|
|
41
|
-
}
|
|
42
|
-
//--------------------------------------------------------------------------
|
|
43
|
-
//
|
|
44
|
-
// Lifecycle
|
|
45
|
-
//
|
|
46
|
-
//--------------------------------------------------------------------------
|
|
47
|
-
connectedCallback() {
|
|
48
|
-
var _a;
|
|
49
|
-
const inputProxy = this.el.querySelector(`input[slot=${SLOTS.input}]`);
|
|
50
|
-
if (inputProxy) {
|
|
51
|
-
this.value = inputProxy.value;
|
|
52
|
-
this.checked = inputProxy.checked;
|
|
53
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(inputProxy, { attributes: true });
|
|
54
|
-
}
|
|
55
|
-
this.inputProxy = inputProxy;
|
|
56
|
-
}
|
|
57
|
-
disconnectedCallback() {
|
|
58
|
-
var _a;
|
|
59
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
60
38
|
}
|
|
61
39
|
render() {
|
|
62
40
|
const { checked, value } = this;
|
|
@@ -72,29 +50,6 @@ let CalciteRadioGroupItem$1 = class extends HTMLElement {
|
|
|
72
50
|
"label--outline": appearance === "outline"
|
|
73
51
|
} }, this.icon && this.iconPosition === "start" ? iconEl : null, h("slot", null, value), h("slot", { name: SLOTS.input }), this.icon && this.iconPosition === "end" ? iconEl : null)));
|
|
74
52
|
}
|
|
75
|
-
//--------------------------------------------------------------------------
|
|
76
|
-
//
|
|
77
|
-
// Private Methods
|
|
78
|
-
//
|
|
79
|
-
//--------------------------------------------------------------------------
|
|
80
|
-
syncFromExternalInput() {
|
|
81
|
-
if (this.inputProxy) {
|
|
82
|
-
this.value = this.inputProxy.value;
|
|
83
|
-
this.checked = this.inputProxy.checked;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
syncToExternalInput() {
|
|
87
|
-
if (!this.inputProxy) {
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
this.inputProxy.value = this.value;
|
|
91
|
-
if (this.checked) {
|
|
92
|
-
this.inputProxy.setAttribute("checked", "");
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
this.inputProxy.removeAttribute("checked");
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
53
|
get el() { return this; }
|
|
99
54
|
static get watchers() { return {
|
|
100
55
|
"checked": ["handleCheckedChange"]
|
|
@@ -8,7 +8,24 @@ import { d as defineCustomElement$4 } from './calcite-icon2.js';
|
|
|
8
8
|
import { d as defineCustomElement$3 } from './calcite-link2.js';
|
|
9
9
|
import { d as defineCustomElement$2 } from './calcite-tile2.js';
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const CSS = {
|
|
12
|
+
checked: "checked",
|
|
13
|
+
description: "description",
|
|
14
|
+
descriptionOnly: "description-only",
|
|
15
|
+
disabled: "disabled",
|
|
16
|
+
heading: "heading",
|
|
17
|
+
headingOnly: "heading-only",
|
|
18
|
+
icon: "icon",
|
|
19
|
+
iconOnly: "icon-only",
|
|
20
|
+
inputAlignmentEnd: "input-alignment-end",
|
|
21
|
+
inputAlignmentStart: "input-alignment-start",
|
|
22
|
+
inputEnabled: "input-enabled",
|
|
23
|
+
largeVisual: "large-visual",
|
|
24
|
+
widthAuto: "width-auto",
|
|
25
|
+
widthFull: "width-full"
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const calciteTileSelectCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}:host .container{background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2);-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:inline-block;height:100%;max-width:300px;padding:0.75rem;position:relative;-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out;vertical-align:top;z-index:10}:host .container.checked{z-index:30;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}:host .container.heading-only{-ms-flex-align:center;align-items:center}:host .container:not(.input-enabled) ::slotted(calcite-checkbox),:host .container:not(.input-enabled) ::slotted(calcite-radio-button){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host .container.focused:not(.disabled){z-index:30}:host .container.focused:not(.disabled):not(.input-enabled){-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand)}:host .container.input-enabled.input-alignment-start.width-auto.heading-only,:host .container.input-enabled.input-alignment-start.width-auto.icon-only,:host .container.input-enabled.input-alignment-start.width-auto.description-only,:host .container.input-enabled.input-alignment-start.width-auto.heading.description,:host .container.input-enabled.input-alignment-start.width-auto.icon.description,:host .container.input-enabled.input-alignment-start.width-auto.heading.icon.description{display:inline-grid;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-start.heading-only,:host .container.input-enabled.input-alignment-start.icon-only,:host .container.input-enabled.input-alignment-start.description-only,:host .container.input-enabled.input-alignment-start.heading.description,:host .container.input-enabled.input-alignment-start.icon.description,:host .container.input-enabled.input-alignment-start.heading.icon.description{gap:0.75rem}:host .container.input-enabled.input-alignment-start calcite-tile{-ms-flex-order:1;order:1}:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-start:0.75rem}:host .container.input-enabled.input-alignment-end.width-auto.heading-only,:host .container.input-enabled.input-alignment-end.width-auto.icon-only{display:inline-grid;grid-gap:0.75rem;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-end.heading-only,:host .container.input-enabled.input-alignment-end.icon-only{gap:0.75rem}:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-end:0.75rem}:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-end:0.75rem}:host .container.width-full{display:-ms-flexbox;display:flex;max-width:none}:host .container.width-full calcite-tile{-ms-flex:1 1 auto;flex:1 1 auto}:host(:hover) .container{z-index:20}:host(:hover) .container:not(.input-enabled){-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}";
|
|
12
29
|
|
|
13
30
|
let CalciteTileSelect$1 = class extends HTMLElement {
|
|
14
31
|
constructor() {
|
|
@@ -156,7 +173,25 @@ let CalciteTileSelect$1 = class extends HTMLElement {
|
|
|
156
173
|
this.el.insertAdjacentElement("beforeend", this.input);
|
|
157
174
|
}
|
|
158
175
|
render() {
|
|
159
|
-
|
|
176
|
+
const { checked, description, disabled, focused, heading, icon, inputAlignment, inputEnabled, width } = this;
|
|
177
|
+
return (h("div", { class: {
|
|
178
|
+
checked,
|
|
179
|
+
container: true,
|
|
180
|
+
[CSS.description]: Boolean(description),
|
|
181
|
+
[CSS.descriptionOnly]: Boolean(!heading && !icon && description),
|
|
182
|
+
disabled,
|
|
183
|
+
focused,
|
|
184
|
+
[CSS.heading]: Boolean(heading),
|
|
185
|
+
[CSS.headingOnly]: heading && !icon && !description,
|
|
186
|
+
[CSS.icon]: Boolean(icon),
|
|
187
|
+
[CSS.iconOnly]: !heading && icon && !description,
|
|
188
|
+
[CSS.inputAlignmentEnd]: inputAlignment === "end",
|
|
189
|
+
[CSS.inputAlignmentStart]: inputAlignment === "start",
|
|
190
|
+
[CSS.inputEnabled]: inputEnabled,
|
|
191
|
+
[CSS.largeVisual]: heading && icon && !description,
|
|
192
|
+
[CSS.widthAuto]: width === "auto",
|
|
193
|
+
[CSS.widthFull]: width === "full"
|
|
194
|
+
} }, h("calcite-tile", { active: checked, description: description, embed: true, heading: heading, icon: icon }), h("slot", null)));
|
|
160
195
|
}
|
|
161
196
|
get el() { return this; }
|
|
162
197
|
static get watchers() { return {
|
|
@@ -12,7 +12,7 @@ const SLOTS = {
|
|
|
12
12
|
contentEnd: "content-end"
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
const calciteTileCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host
|
|
15
|
+
const calciteTileCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .container{pointer-events:none;display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:0.5rem}:host .content{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;gap:0.5rem;width:10%}:host .content-container{display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;padding:0px;color:var(--calcite-ui-text-2);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host .content-slot-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--calcite-ui-foreground-1)}:host .content-slot-container:first-child{padding-right:0.75rem}:host .content-slot-container:last-child{padding-left:0.75rem}:host .heading{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .large-visual{-ms-flex-align:center;align-items:center;text-align:center;min-height:12rem}:host .large-visual .icon{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:end;align-self:flex-end}:host .large-visual .content-container{-ms-flex-item-align:center;align-self:center}:host .description{pointer-events:none;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host(:not([embed])){padding:0.75rem;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2)}:host(:not([embed])[href]:hover){cursor:pointer;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-brand);box-shadow:0 0 0 2px var(--calcite-ui-brand)}:host(:not([embed])[href]:active){-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand);box-shadow:0 0 0 3px var(--calcite-ui-brand)}:host([icon][heading]:not([description]):not([embed])){padding:0px}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}:host(:hover) .heading,:host([active]) .heading{color:var(--calcite-ui-text-1)}:host(:hover) .description,:host([active]) .description{color:var(--calcite-ui-text-2)}";
|
|
16
16
|
|
|
17
17
|
let CalciteTile = class extends HTMLElement {
|
|
18
18
|
constructor() {
|
|
@@ -33,7 +33,7 @@ let CalciteTooltipManager = class extends HTMLElement {
|
|
|
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(TOOLTIP_REFERENCE);
|
|
36
|
-
return queryElementRoots(el,
|
|
36
|
+
return queryElementRoots(el, { id });
|
|
37
37
|
};
|
|
38
38
|
this.clearHoverTimeout = (tooltip) => {
|
|
39
39
|
const { hoverTimeouts } = this;
|
|
@@ -131,7 +131,7 @@ let CalciteTooltip$1 = class extends HTMLElement {
|
|
|
131
131
|
getReferenceElement() {
|
|
132
132
|
const { referenceElement, el } = this;
|
|
133
133
|
return ((typeof referenceElement === "string"
|
|
134
|
-
? queryElementRoots(el,
|
|
134
|
+
? queryElementRoots(el, { id: referenceElement })
|
|
135
135
|
: referenceElement) || null);
|
|
136
136
|
}
|
|
137
137
|
getModifiers() {
|
package/dist/components/dom.js
CHANGED
|
@@ -34,7 +34,8 @@ function nodeListToArray(nodeList) {
|
|
|
34
34
|
return Array.isArray(nodeList) ? nodeList : Array.from(nodeList);
|
|
35
35
|
}
|
|
36
36
|
function getThemeName(el) {
|
|
37
|
-
|
|
37
|
+
const closestElWithTheme = closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}, .${CSS_UTILITY.lightTheme}`);
|
|
38
|
+
return (closestElWithTheme === null || closestElWithTheme === void 0 ? void 0 : closestElWithTheme.classList.contains("calcite-theme-dark")) ? "dark" : "light";
|
|
38
39
|
}
|
|
39
40
|
function getElementDir(el) {
|
|
40
41
|
const prop = "dir";
|
|
@@ -53,10 +54,14 @@ function getRootNode(el) {
|
|
|
53
54
|
function getHost(root) {
|
|
54
55
|
return root.host || null;
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
/**
|
|
58
|
+
* This helper queries an element's rootNodes and any ancestor rootNodes.
|
|
59
|
+
*
|
|
60
|
+
* @returns {Element[]} The elements.
|
|
61
|
+
*/
|
|
58
62
|
function queryElementsRoots(element, selector) {
|
|
59
63
|
// Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.
|
|
64
|
+
// Based on: https://stackoverflow.com/q/54520554/194216
|
|
60
65
|
function queryFromAll(el, allResults) {
|
|
61
66
|
if (!el) {
|
|
62
67
|
return allResults;
|
|
@@ -73,10 +78,16 @@ function queryElementsRoots(element, selector) {
|
|
|
73
78
|
}
|
|
74
79
|
return queryFromAll(element, []);
|
|
75
80
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
/**
|
|
82
|
+
* This helper queries an element's rootNode and any ancestor rootNodes.
|
|
83
|
+
*
|
|
84
|
+
* If both an 'id' and 'selector' are supplied, 'id' will take precedence over 'selector'.
|
|
85
|
+
*
|
|
86
|
+
* @returns {Element} The element.
|
|
87
|
+
*/
|
|
88
|
+
function queryElementRoots(element, { selector, id }) {
|
|
79
89
|
// Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.
|
|
90
|
+
// Based on: https://stackoverflow.com/q/54520554/194216
|
|
80
91
|
function queryFrom(el) {
|
|
81
92
|
if (!el) {
|
|
82
93
|
return null;
|
|
@@ -85,7 +96,11 @@ function queryElementRoots(element, selector) {
|
|
|
85
96
|
el = el.assignedSlot;
|
|
86
97
|
}
|
|
87
98
|
const rootNode = getRootNode(el);
|
|
88
|
-
const found =
|
|
99
|
+
const found = id
|
|
100
|
+
? rootNode.getElementById(id)
|
|
101
|
+
: selector
|
|
102
|
+
? rootNode.querySelector(selector)
|
|
103
|
+
: null;
|
|
89
104
|
const host = getHost(rootNode);
|
|
90
105
|
return found ? found : host ? queryFrom(host) : null;
|
|
91
106
|
}
|
package/dist/components/label.js
CHANGED
|
@@ -13,7 +13,7 @@ const labelTagName = "calcite-label";
|
|
|
13
13
|
const onLabelClickMap = new WeakMap();
|
|
14
14
|
const findLabelForComponent = (componentEl) => {
|
|
15
15
|
const { id } = componentEl;
|
|
16
|
-
const forLabel = id && queryElementRoots(componentEl, `${labelTagName}[for="${id}"]`);
|
|
16
|
+
const forLabel = id && queryElementRoots(componentEl, { selector: `${labelTagName}[for="${id}"]` });
|
|
17
17
|
if (forLabel) {
|
|
18
18
|
return forLabel;
|
|
19
19
|
}
|
|
@@ -31,17 +31,24 @@ function parseNumberString(numberString) {
|
|
|
31
31
|
return isValidNumber(result) ? Number(result).toString() : null;
|
|
32
32
|
}
|
|
33
33
|
function sanitizeDecimalString(decimalString) {
|
|
34
|
-
|
|
34
|
+
const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
|
|
35
|
+
return decimalString.replace(decimalAtEndOfStringButNotStart, "");
|
|
35
36
|
}
|
|
36
37
|
function sanitizeNegativeString(negativeString) {
|
|
37
|
-
|
|
38
|
+
const allHyphensExceptTheStart = /(?!^-)-/g;
|
|
39
|
+
return negativeString.replace(allHyphensExceptTheStart, "");
|
|
38
40
|
}
|
|
39
41
|
function sanitizeLeadingZeroString(zeroString) {
|
|
40
|
-
|
|
42
|
+
const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
|
|
43
|
+
return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
|
|
41
44
|
}
|
|
42
45
|
function sanitizeNumberString(value) {
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)));
|
|
47
|
+
const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
|
|
48
|
+
return isValidNumber(sanitizedValue)
|
|
49
|
+
? isNegativeDecimalOnlyZeros.test(sanitizedValue)
|
|
50
|
+
? sanitizedValue
|
|
51
|
+
: Number(sanitizedValue).toString()
|
|
45
52
|
: value;
|
|
46
53
|
}
|
|
47
54
|
function stringContainsNumbers(string) {
|