@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
package/hydrate/index.js
CHANGED
|
@@ -5710,7 +5710,8 @@ function nodeListToArray(nodeList) {
|
|
|
5710
5710
|
return Array.isArray(nodeList) ? nodeList : Array.from(nodeList);
|
|
5711
5711
|
}
|
|
5712
5712
|
function getThemeName(el) {
|
|
5713
|
-
|
|
5713
|
+
const closestElWithTheme = closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}, .${CSS_UTILITY.lightTheme}`);
|
|
5714
|
+
return (closestElWithTheme === null || closestElWithTheme === void 0 ? void 0 : closestElWithTheme.classList.contains("calcite-theme-dark")) ? "dark" : "light";
|
|
5714
5715
|
}
|
|
5715
5716
|
function getElementDir(el) {
|
|
5716
5717
|
const prop = "dir";
|
|
@@ -5729,10 +5730,14 @@ function getRootNode(el) {
|
|
|
5729
5730
|
function getHost(root) {
|
|
5730
5731
|
return root.host || null;
|
|
5731
5732
|
}
|
|
5732
|
-
|
|
5733
|
-
|
|
5733
|
+
/**
|
|
5734
|
+
* This helper queries an element's rootNodes and any ancestor rootNodes.
|
|
5735
|
+
*
|
|
5736
|
+
* @returns {Element[]} The elements.
|
|
5737
|
+
*/
|
|
5734
5738
|
function queryElementsRoots(element, selector) {
|
|
5735
5739
|
// Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.
|
|
5740
|
+
// Based on: https://stackoverflow.com/q/54520554/194216
|
|
5736
5741
|
function queryFromAll(el, allResults) {
|
|
5737
5742
|
if (!el) {
|
|
5738
5743
|
return allResults;
|
|
@@ -5749,10 +5754,16 @@ function queryElementsRoots(element, selector) {
|
|
|
5749
5754
|
}
|
|
5750
5755
|
return queryFromAll(element, []);
|
|
5751
5756
|
}
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5757
|
+
/**
|
|
5758
|
+
* This helper queries an element's rootNode and any ancestor rootNodes.
|
|
5759
|
+
*
|
|
5760
|
+
* If both an 'id' and 'selector' are supplied, 'id' will take precedence over 'selector'.
|
|
5761
|
+
*
|
|
5762
|
+
* @returns {Element} The element.
|
|
5763
|
+
*/
|
|
5764
|
+
function queryElementRoots(element, { selector, id }) {
|
|
5755
5765
|
// Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.
|
|
5766
|
+
// Based on: https://stackoverflow.com/q/54520554/194216
|
|
5756
5767
|
function queryFrom(el) {
|
|
5757
5768
|
if (!el) {
|
|
5758
5769
|
return null;
|
|
@@ -5761,7 +5772,11 @@ function queryElementRoots(element, selector) {
|
|
|
5761
5772
|
el = el.assignedSlot;
|
|
5762
5773
|
}
|
|
5763
5774
|
const rootNode = getRootNode(el);
|
|
5764
|
-
const found =
|
|
5775
|
+
const found = id
|
|
5776
|
+
? rootNode.getElementById(id)
|
|
5777
|
+
: selector
|
|
5778
|
+
? rootNode.querySelector(selector)
|
|
5779
|
+
: null;
|
|
5765
5780
|
const host = getHost(rootNode);
|
|
5766
5781
|
return found ? found : host ? queryFrom(host) : null;
|
|
5767
5782
|
}
|
|
@@ -5961,7 +5976,7 @@ class CalciteAccordionItem {
|
|
|
5961
5976
|
}; }
|
|
5962
5977
|
}
|
|
5963
5978
|
|
|
5964
|
-
const CSS$
|
|
5979
|
+
const CSS$P = {
|
|
5965
5980
|
button: "button",
|
|
5966
5981
|
buttonTextVisible: "button--text-visible",
|
|
5967
5982
|
buttonCompact: "button--compact",
|
|
@@ -6076,8 +6091,8 @@ class CalciteAction {
|
|
|
6076
6091
|
renderTextContainer() {
|
|
6077
6092
|
const { text, textEnabled } = this;
|
|
6078
6093
|
const textContainerClasses = {
|
|
6079
|
-
[CSS$
|
|
6080
|
-
[CSS$
|
|
6094
|
+
[CSS$P.textContainer]: true,
|
|
6095
|
+
[CSS$P.textContainerVisible]: textEnabled
|
|
6081
6096
|
};
|
|
6082
6097
|
return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
6083
6098
|
}
|
|
@@ -6090,18 +6105,18 @@ class CalciteAction {
|
|
|
6090
6105
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
6091
6106
|
const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
6092
6107
|
const slotContainerNode = (hAsync("div", { class: {
|
|
6093
|
-
[CSS$
|
|
6094
|
-
[CSS$
|
|
6108
|
+
[CSS$P.slotContainer]: true,
|
|
6109
|
+
[CSS$P.slotContainerHidden]: loading
|
|
6095
6110
|
} }, hAsync("slot", null)));
|
|
6096
|
-
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$
|
|
6111
|
+
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$P.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
6097
6112
|
}
|
|
6098
6113
|
render() {
|
|
6099
6114
|
const { compact, disabled, loading, textEnabled, label, text } = this;
|
|
6100
6115
|
const ariaLabel = label || text;
|
|
6101
6116
|
const buttonClasses = {
|
|
6102
|
-
[CSS$
|
|
6103
|
-
[CSS$
|
|
6104
|
-
[CSS$
|
|
6117
|
+
[CSS$P.button]: true,
|
|
6118
|
+
[CSS$P.buttonTextVisible]: textEnabled,
|
|
6119
|
+
[CSS$P.buttonCompact]: compact
|
|
6105
6120
|
};
|
|
6106
6121
|
return (hAsync(Host, { onClick: this.calciteActionClickHandler }, hAsync("button", { "aria-busy": loading.toString(), "aria-disabled": disabled.toString(), "aria-label": ariaLabel, class: buttonClasses, disabled: disabled, ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer())));
|
|
6107
6122
|
}
|
|
@@ -6132,7 +6147,7 @@ class CalciteAction {
|
|
|
6132
6147
|
}; }
|
|
6133
6148
|
}
|
|
6134
6149
|
|
|
6135
|
-
const CSS$
|
|
6150
|
+
const CSS$O = {
|
|
6136
6151
|
menu: "menu",
|
|
6137
6152
|
defaultTrigger: "default-trigger"
|
|
6138
6153
|
};
|
|
@@ -6232,7 +6247,7 @@ const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, p
|
|
|
6232
6247
|
return tooltip ? hAsync("calcite-tooltip-manager", null, actionNode) : actionNode;
|
|
6233
6248
|
};
|
|
6234
6249
|
|
|
6235
|
-
const CSS$
|
|
6250
|
+
const CSS$N = {
|
|
6236
6251
|
actionGroupBottom: "action-group--bottom"
|
|
6237
6252
|
};
|
|
6238
6253
|
const SLOTS$n = {
|
|
@@ -7692,7 +7707,7 @@ class CalciteActionBar {
|
|
|
7692
7707
|
const expandLabel = intlExpand || TEXT$n.expand;
|
|
7693
7708
|
const collapseLabel = intlCollapse || TEXT$n.collapse;
|
|
7694
7709
|
const expandToggleNode = !expandDisabled ? (hAsync(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
7695
|
-
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
7710
|
+
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$N.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$n.bottomActions }), hAsync("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
7696
7711
|
}
|
|
7697
7712
|
render() {
|
|
7698
7713
|
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("slot", null), this.renderBottomActionGroup()));
|
|
@@ -8060,14 +8075,14 @@ class CalciteActionMenu {
|
|
|
8060
8075
|
}
|
|
8061
8076
|
renderMenuButton() {
|
|
8062
8077
|
const { el, label, scale } = this;
|
|
8063
|
-
const menuButtonSlot = (hAsync("slot", { name: SLOTS$p.trigger }, hAsync("calcite-action", { class: CSS$
|
|
8078
|
+
const menuButtonSlot = (hAsync("slot", { name: SLOTS$p.trigger }, hAsync("calcite-action", { class: CSS$O.defaultTrigger, icon: ICONS$f.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label })));
|
|
8064
8079
|
return getSlotted(el, SLOTS$p.tooltip) ? (hAsync("calcite-tooltip-manager", null, menuButtonSlot)) : (menuButtonSlot);
|
|
8065
8080
|
}
|
|
8066
8081
|
renderMenuItems() {
|
|
8067
8082
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning } = this;
|
|
8068
8083
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
8069
8084
|
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
|
8070
|
-
return (hAsync("calcite-popover", { disablePointer: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$
|
|
8085
|
+
return (hAsync("calcite-popover", { disablePointer: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$O.menu, id: menuId, onClick: this.handleCalciteActionClick, onKeyDown: this.menuActionsContainerKeyDown, onKeyUp: this.menuActionsContainerKeyUp, ref: (el) => (this.menuEl = el), role: "menu", tabIndex: -1 }, hAsync("slot", null))));
|
|
8071
8086
|
}
|
|
8072
8087
|
render() {
|
|
8073
8088
|
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$p.tooltip })));
|
|
@@ -8107,7 +8122,7 @@ class CalciteActionMenu {
|
|
|
8107
8122
|
}; }
|
|
8108
8123
|
}
|
|
8109
8124
|
|
|
8110
|
-
const CSS$
|
|
8125
|
+
const CSS$M = {
|
|
8111
8126
|
actionGroupBottom: "action-group--bottom",
|
|
8112
8127
|
container: "container"
|
|
8113
8128
|
};
|
|
@@ -8214,10 +8229,10 @@ class CalciteActionPad {
|
|
|
8214
8229
|
const expandLabel = intlExpand || TEXT$m.expand;
|
|
8215
8230
|
const collapseLabel = intlCollapse || TEXT$m.collapse;
|
|
8216
8231
|
const expandToggleNode = !expandDisabled ? (hAsync(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
8217
|
-
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
8232
|
+
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$M.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$m.expandTooltip }), expandToggleNode)) : null;
|
|
8218
8233
|
}
|
|
8219
8234
|
render() {
|
|
8220
|
-
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$
|
|
8235
|
+
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$M.container }, hAsync("slot", null), this.renderBottomActionGroup())));
|
|
8221
8236
|
}
|
|
8222
8237
|
get el() { return getElement(this); }
|
|
8223
8238
|
static get watchers() { return {
|
|
@@ -8726,7 +8741,7 @@ class CalciteAvatar {
|
|
|
8726
8741
|
}; }
|
|
8727
8742
|
}
|
|
8728
8743
|
|
|
8729
|
-
const CSS$
|
|
8744
|
+
const CSS$L = {
|
|
8730
8745
|
article: "article",
|
|
8731
8746
|
content: "content",
|
|
8732
8747
|
headerContainer: "header-container",
|
|
@@ -8844,28 +8859,28 @@ class CalciteBlock {
|
|
|
8844
8859
|
const statusIcon = showingLoadingStatus ? ICONS$c.refresh : ICONS$c[status];
|
|
8845
8860
|
const hasIcon = getSlotted(el, SLOTS$k.icon) || statusIcon;
|
|
8846
8861
|
const iconEl = !statusIcon ? (hAsync("slot", { name: SLOTS$k.icon })) : (hAsync("calcite-icon", { class: {
|
|
8847
|
-
[CSS$
|
|
8848
|
-
[CSS$
|
|
8849
|
-
[CSS$
|
|
8850
|
-
[CSS$
|
|
8862
|
+
[CSS$L.statusIcon]: true,
|
|
8863
|
+
[CSS$L.valid]: status == "valid",
|
|
8864
|
+
[CSS$L.invalid]: status == "invalid",
|
|
8865
|
+
[CSS$L.loading]: showingLoadingStatus
|
|
8851
8866
|
}, icon: statusIcon, scale: "m" }));
|
|
8852
|
-
return hasIcon ? hAsync("div", { class: CSS$
|
|
8867
|
+
return hasIcon ? hAsync("div", { class: CSS$L.icon }, iconEl) : null;
|
|
8853
8868
|
}
|
|
8854
8869
|
renderTitle() {
|
|
8855
8870
|
const { heading, headingLevel, summary } = this;
|
|
8856
|
-
return heading || summary ? (hAsync("div", { class: CSS$
|
|
8871
|
+
return heading || summary ? (hAsync("div", { class: CSS$L.title }, hAsync(CalciteHeading, { class: CSS$L.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary ? hAsync("div", { class: CSS$L.summary }, summary) : null)) : null;
|
|
8857
8872
|
}
|
|
8858
8873
|
render() {
|
|
8859
8874
|
const { collapsible, disabled, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
8860
8875
|
const toggleLabel = open ? intlCollapse || TEXT$k.collapse : intlExpand || TEXT$k.expand;
|
|
8861
|
-
const headerContent = (hAsync("header", { class: CSS$
|
|
8876
|
+
const headerContent = (hAsync("header", { class: CSS$L.header }, this.renderIcon(), this.renderTitle()));
|
|
8862
8877
|
const hasControl = !!getSlotted(el, SLOTS$k.control);
|
|
8863
8878
|
const hasMenuActions = !!getSlotted(el, SLOTS$k.headerMenuActions);
|
|
8864
8879
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
8865
|
-
const headerNode = (hAsync("div", { class: CSS$
|
|
8880
|
+
const headerNode = (hAsync("div", { class: CSS$L.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$L.controlContainer }, hAsync("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$k.options }, hAsync("slot", { name: SLOTS$k.headerMenuActions }))) : null));
|
|
8866
8881
|
return (hAsync(Host, { tabIndex: disabled ? -1 : null }, hAsync("article", { "aria-busy": loading.toString(), class: {
|
|
8867
|
-
[CSS$
|
|
8868
|
-
} }, headerNode, hAsync("div", { class: CSS$
|
|
8882
|
+
[CSS$L.article]: true
|
|
8883
|
+
} }, headerNode, hAsync("div", { class: CSS$L.content, hidden: !open }, this.renderScrim()))));
|
|
8869
8884
|
}
|
|
8870
8885
|
get el() { return getElement(this); }
|
|
8871
8886
|
static get style() { return calciteBlockCss; }
|
|
@@ -8893,7 +8908,7 @@ class CalciteBlock {
|
|
|
8893
8908
|
}; }
|
|
8894
8909
|
}
|
|
8895
8910
|
|
|
8896
|
-
const CSS$
|
|
8911
|
+
const CSS$K = {
|
|
8897
8912
|
content: "content",
|
|
8898
8913
|
invalid: "invalid",
|
|
8899
8914
|
toggle: "toggle",
|
|
@@ -8963,9 +8978,9 @@ class CalciteBlockSection {
|
|
|
8963
8978
|
const { status } = this;
|
|
8964
8979
|
const statusIcon = (_a = ICONS$b[status]) !== null && _a !== void 0 ? _a : false;
|
|
8965
8980
|
const statusIconClasses = {
|
|
8966
|
-
[CSS$
|
|
8967
|
-
[CSS$
|
|
8968
|
-
[CSS$
|
|
8981
|
+
[CSS$K.statusIcon]: true,
|
|
8982
|
+
[CSS$K.valid]: status == "valid",
|
|
8983
|
+
[CSS$K.invalid]: status == "invalid"
|
|
8969
8984
|
};
|
|
8970
8985
|
return !!statusIcon ? (hAsync("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
8971
8986
|
}
|
|
@@ -8979,13 +8994,13 @@ class CalciteBlockSection {
|
|
|
8979
8994
|
: ICONS$b.menuClosedRight;
|
|
8980
8995
|
const toggleLabel = open ? intlCollapse || TEXT$j.collapse : intlExpand || TEXT$j.expand;
|
|
8981
8996
|
const headerNode = toggleDisplay === "switch" ? (hAsync("div", { "aria-label": toggleLabel, class: {
|
|
8982
|
-
[CSS$
|
|
8983
|
-
[CSS$
|
|
8984
|
-
}, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$
|
|
8985
|
-
[CSS$
|
|
8986
|
-
[CSS$
|
|
8987
|
-
}, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$
|
|
8988
|
-
return (hAsync("section", { "aria-expanded": open.toString() }, headerNode, hAsync("div", { class: CSS$
|
|
8997
|
+
[CSS$K.toggle]: true,
|
|
8998
|
+
[CSS$K.toggleSwitch]: true
|
|
8999
|
+
}, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$K.toggleSwitchContent }, hAsync("span", { class: CSS$K.toggleSwitchText }, text)), hAsync("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (hAsync("button", { "aria-label": toggleLabel, class: {
|
|
9000
|
+
[CSS$K.sectionHeader]: true,
|
|
9001
|
+
[CSS$K.toggle]: true
|
|
9002
|
+
}, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$K.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
9003
|
+
return (hAsync("section", { "aria-expanded": open.toString() }, headerNode, hAsync("div", { class: CSS$K.content, hidden: !open }, hAsync("slot", null))));
|
|
8989
9004
|
}
|
|
8990
9005
|
get el() { return getElement(this); }
|
|
8991
9006
|
static get style() { return calciteBlockSectionCss; }
|
|
@@ -9034,7 +9049,7 @@ class CalciteBlockSection {
|
|
|
9034
9049
|
}
|
|
9035
9050
|
})(HTMLFormElement.prototype);
|
|
9036
9051
|
|
|
9037
|
-
const CSS$
|
|
9052
|
+
const CSS$J = {
|
|
9038
9053
|
buttonLoader: "calcite-button--loader",
|
|
9039
9054
|
content: "content",
|
|
9040
9055
|
contentSlotted: "content--slotted",
|
|
@@ -9059,7 +9074,7 @@ const labelTagName = "calcite-label";
|
|
|
9059
9074
|
const onLabelClickMap = new WeakMap();
|
|
9060
9075
|
const findLabelForComponent = (componentEl) => {
|
|
9061
9076
|
const { id } = componentEl;
|
|
9062
|
-
const forLabel = id && queryElementRoots(componentEl, `${labelTagName}[for="${id}"]`);
|
|
9077
|
+
const forLabel = id && queryElementRoots(componentEl, { selector: `${labelTagName}[for="${id}"]` });
|
|
9063
9078
|
if (forLabel) {
|
|
9064
9079
|
return forLabel;
|
|
9065
9080
|
}
|
|
@@ -9218,14 +9233,14 @@ class CalciteButton {
|
|
|
9218
9233
|
}
|
|
9219
9234
|
render() {
|
|
9220
9235
|
const Tag = this.childElType;
|
|
9221
|
-
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$
|
|
9222
|
-
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
9223
|
-
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
9224
|
-
const contentEl = (hAsync("span", { class: CSS$
|
|
9236
|
+
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$J.buttonLoader }, hAsync("calcite-loader", { active: true, class: this.loading ? CSS$J.loadingIn : CSS$J.loadingOut, inline: true, label: this.intlLoading, scale: "m" }))) : null;
|
|
9237
|
+
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$J.icon]: true, [CSS$J.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
9238
|
+
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$J.icon]: true, [CSS$J.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
9239
|
+
const contentEl = (hAsync("span", { class: CSS$J.content }, hAsync("slot", null)));
|
|
9225
9240
|
return (hAsync(Tag, { "aria-label": getLabelText(this), class: {
|
|
9226
|
-
[CSS$
|
|
9227
|
-
[CSS$
|
|
9228
|
-
[CSS$
|
|
9241
|
+
[CSS$J.contentSlotted]: this.hasContent,
|
|
9242
|
+
[CSS$J.iconStartEmpty]: !this.iconStart,
|
|
9243
|
+
[CSS$J.iconEndEmpty]: !this.iconEnd
|
|
9229
9244
|
}, disabled: this.disabled || this.loading, href: this.childElType === "a" && this.href, name: this.childElType === "button" && this.name, onClick: this.handleClick, ref: (el) => (this.childEl = el), rel: this.childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: this.childElType === "a" && this.target, type: this.childElType === "button" && this.type }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
|
|
9230
9245
|
}
|
|
9231
9246
|
//--------------------------------------------------------------------------
|
|
@@ -9299,7 +9314,7 @@ class CalciteButton {
|
|
|
9299
9314
|
}; }
|
|
9300
9315
|
}
|
|
9301
9316
|
|
|
9302
|
-
const CSS$
|
|
9317
|
+
const CSS$I = {
|
|
9303
9318
|
container: "container",
|
|
9304
9319
|
header: "header",
|
|
9305
9320
|
footer: "footer",
|
|
@@ -9390,7 +9405,7 @@ class CalciteCard {
|
|
|
9390
9405
|
//
|
|
9391
9406
|
// --------------------------------------------------------------------------
|
|
9392
9407
|
render() {
|
|
9393
|
-
return (hAsync("div", { class: "calcite-card-container" }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { active: true, label: this.intlLoading }))) : null, hAsync("section", { "aria-busy": this.loading.toString(), class: { [CSS$
|
|
9408
|
+
return (hAsync("div", { class: "calcite-card-container" }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { active: true, label: this.intlLoading }))) : null, hAsync("section", { "aria-busy": this.loading.toString(), class: { [CSS$I.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderThumbnail(), this.renderHeader(), hAsync("div", { class: "card-content" }, hAsync("slot", null)), this.renderFooter())));
|
|
9394
9409
|
}
|
|
9395
9410
|
selectCard() {
|
|
9396
9411
|
this.selected = !this.selected;
|
|
@@ -9398,23 +9413,23 @@ class CalciteCard {
|
|
|
9398
9413
|
}
|
|
9399
9414
|
renderThumbnail() {
|
|
9400
9415
|
const hasThumbnail = this.el.querySelector(`[slot=${SLOTS$j.thumbnail}]`);
|
|
9401
|
-
return hasThumbnail ? (hAsync("div", { class: CSS$
|
|
9416
|
+
return hasThumbnail ? (hAsync("div", { class: CSS$I.thumbnailWrapper }, hAsync("slot", { name: SLOTS$j.thumbnail }))) : null;
|
|
9402
9417
|
}
|
|
9403
9418
|
renderCheckbox() {
|
|
9404
9419
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
9405
|
-
return (hAsync("calcite-label", { class: CSS$
|
|
9420
|
+
return (hAsync("calcite-label", { class: CSS$I.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
9406
9421
|
}
|
|
9407
9422
|
renderHeader() {
|
|
9408
9423
|
const title = this.el.querySelector(`[slot=${SLOTS$j.title}]`);
|
|
9409
9424
|
const subtitle = this.el.querySelector(`[slot=${SLOTS$j.subtitle}]`);
|
|
9410
9425
|
const hasHeader = title || subtitle;
|
|
9411
|
-
return hasHeader ? (hAsync("header", { class: CSS$
|
|
9426
|
+
return hasHeader ? (hAsync("header", { class: CSS$I.header }, hAsync("slot", { name: SLOTS$j.title }), hAsync("slot", { name: SLOTS$j.subtitle }))) : null;
|
|
9412
9427
|
}
|
|
9413
9428
|
renderFooter() {
|
|
9414
9429
|
const leadingFooter = this.el.querySelector(`[slot=${SLOTS$j.footerLeading}]`);
|
|
9415
9430
|
const trailingFooter = this.el.querySelector(`[slot=${SLOTS$j.footerTrailing}]`);
|
|
9416
9431
|
const hasFooter = leadingFooter || trailingFooter;
|
|
9417
|
-
return hasFooter ? (hAsync("footer", { class: CSS$
|
|
9432
|
+
return hasFooter ? (hAsync("footer", { class: CSS$I.footer }, hAsync("slot", { name: SLOTS$j.footerLeading }), hAsync("slot", { name: SLOTS$j.footerTrailing }))) : null;
|
|
9418
9433
|
}
|
|
9419
9434
|
get el() { return getElement(this); }
|
|
9420
9435
|
static get style() { return calciteCardCss; }
|
|
@@ -9738,7 +9753,7 @@ class CalciteCheckbox {
|
|
|
9738
9753
|
}; }
|
|
9739
9754
|
}
|
|
9740
9755
|
|
|
9741
|
-
const CSS$
|
|
9756
|
+
const CSS$H = {
|
|
9742
9757
|
title: "title",
|
|
9743
9758
|
close: "close",
|
|
9744
9759
|
chipImageContainer: "chip-image-container",
|
|
@@ -9812,12 +9827,12 @@ class CalciteChip {
|
|
|
9812
9827
|
renderChipImage() {
|
|
9813
9828
|
const { el } = this;
|
|
9814
9829
|
const hasChipImage = getSlotted(el, SLOTS$i.image);
|
|
9815
|
-
return hasChipImage ? (hAsync("div", { class: CSS$
|
|
9830
|
+
return hasChipImage ? (hAsync("div", { class: CSS$H.chipImageContainer }, hAsync("slot", { name: SLOTS$i.image }))) : null;
|
|
9816
9831
|
}
|
|
9817
9832
|
render() {
|
|
9818
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
9819
|
-
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$
|
|
9820
|
-
return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$
|
|
9833
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$H.calciteChipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
9834
|
+
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$H.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: ICONS$a.close, scale: "s" })));
|
|
9835
|
+
return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$H.title, id: this.guid }, hAsync("slot", null)), this.dismissible ? closeButton : null));
|
|
9821
9836
|
}
|
|
9822
9837
|
get el() { return getElement(this); }
|
|
9823
9838
|
static get style() { return calciteChipCss; }
|
|
@@ -11945,7 +11960,7 @@ function zeroArray(array, length) {
|
|
|
11945
11960
|
|
|
11946
11961
|
var color = Color;
|
|
11947
11962
|
|
|
11948
|
-
const CSS$
|
|
11963
|
+
const CSS$G = {
|
|
11949
11964
|
container: "container",
|
|
11950
11965
|
controlSection: "control-section",
|
|
11951
11966
|
hexOptions: "color-hex-options",
|
|
@@ -12437,7 +12452,7 @@ class CalciteColorPicker {
|
|
|
12437
12452
|
const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
|
|
12438
12453
|
const active = channelMode === activeChannelMode;
|
|
12439
12454
|
const label = channelMode === "rgb" ? intlRgb : intlHsv;
|
|
12440
|
-
return (hAsync("calcite-tab-title", { active: active, class: CSS$
|
|
12455
|
+
return (hAsync("calcite-tab-title", { active: active, class: CSS$G.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
|
|
12441
12456
|
};
|
|
12442
12457
|
this.renderChannelsTab = (channelMode) => {
|
|
12443
12458
|
const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
|
|
@@ -12447,9 +12462,9 @@ class CalciteColorPicker {
|
|
|
12447
12462
|
const channelAriaLabels = isRgb
|
|
12448
12463
|
? [intlRed, intlGreen, intlBlue]
|
|
12449
12464
|
: [intlHue, intlSaturation, intlValue];
|
|
12450
|
-
return (hAsync("calcite-tab", { active: active, class: CSS$
|
|
12465
|
+
return (hAsync("calcite-tab", { active: active, class: CSS$G.control, key: channelMode }, hAsync("div", { class: CSS$G.channels }, channels.map((channel, index) => this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index])))));
|
|
12451
12466
|
};
|
|
12452
|
-
this.renderChannel = (value, index, label, ariaLabel) => (hAsync("calcite-input", { class: CSS$
|
|
12467
|
+
this.renderChannel = (value, index, label, ariaLabel) => (hAsync("calcite-input", { class: CSS$G.channel, "data-channel-index": index, label: ariaLabel, numberButtonType: "none", onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value === null || value === void 0 ? void 0 : value.toString() }));
|
|
12453
12468
|
this.deleteColor = () => {
|
|
12454
12469
|
const colorToDelete = this.color.hex();
|
|
12455
12470
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -12564,7 +12579,7 @@ class CalciteColorPicker {
|
|
|
12564
12579
|
this.shiftKeyChannelAdjustment = 0;
|
|
12565
12580
|
const key = event.key;
|
|
12566
12581
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
12567
|
-
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$
|
|
12582
|
+
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$G.channel); })) {
|
|
12568
12583
|
return;
|
|
12569
12584
|
}
|
|
12570
12585
|
const { shiftKey } = event;
|
|
@@ -12632,20 +12647,20 @@ class CalciteColorPicker {
|
|
|
12632
12647
|
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
|
|
12633
12648
|
const noColor = color === null;
|
|
12634
12649
|
const vertical = scopeOrientation === "vertical";
|
|
12635
|
-
return (hAsync("div", { class: CSS$
|
|
12636
|
-
[CSS$
|
|
12637
|
-
[CSS$
|
|
12638
|
-
}, onMouseDown: this.handleColorFieldAndSliderMouseDown, onMouseEnter: this.handleColorFieldAndSliderMouseEnterOrMove, onMouseLeave: this.handleColorFieldAndSliderMouseLeave, onMouseMove: this.handleColorFieldAndSliderMouseEnterOrMove, ref: this.initColorFieldAndSlider }), hAsync("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$
|
|
12639
|
-
[CSS$
|
|
12640
|
-
[CSS$
|
|
12641
|
-
} }, hideHex ? null : (hAsync("div", { class: CSS$
|
|
12642
|
-
[CSS$
|
|
12643
|
-
[CSS$
|
|
12644
|
-
} }, intlHex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$
|
|
12645
|
-
[CSS$
|
|
12646
|
-
[CSS$
|
|
12647
|
-
}, scale: hexInputScale }, hAsync("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (hAsync("div", { class: { [CSS$
|
|
12648
|
-
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$
|
|
12650
|
+
return (hAsync("div", { class: CSS$G.container }, hAsync("div", { class: CSS$G.colorFieldAndSliderWrap }, hAsync("canvas", { class: {
|
|
12651
|
+
[CSS$G.colorFieldAndSlider]: true,
|
|
12652
|
+
[CSS$G.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
12653
|
+
}, onMouseDown: this.handleColorFieldAndSliderMouseDown, onMouseEnter: this.handleColorFieldAndSliderMouseEnterOrMove, onMouseLeave: this.handleColorFieldAndSliderMouseLeave, onMouseMove: this.handleColorFieldAndSliderMouseEnterOrMove, ref: this.initColorFieldAndSlider }), hAsync("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$G.scope]: true, [CSS$G.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, ref: this.storeColorFieldScope, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0" }), hAsync("div", { "aria-label": this.intlHue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": (color === null || color === void 0 ? void 0 : color.round().hue()) || DEFAULT_COLOR$1.round().hue(), class: { [CSS$G.scope]: true, [CSS$G.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })), hideHex && hideChannels ? null : (hAsync("div", { class: {
|
|
12654
|
+
[CSS$G.controlSection]: true,
|
|
12655
|
+
[CSS$G.section]: true
|
|
12656
|
+
} }, hideHex ? null : (hAsync("div", { class: CSS$G.hexOptions }, hAsync("span", { class: {
|
|
12657
|
+
[CSS$G.header]: true,
|
|
12658
|
+
[CSS$G.headerHex]: true
|
|
12659
|
+
} }, intlHex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$G.control, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (hAsync("calcite-tabs", { class: {
|
|
12660
|
+
[CSS$G.colorModeContainer]: true,
|
|
12661
|
+
[CSS$G.splitSection]: true
|
|
12662
|
+
}, scale: hexInputScale }, hAsync("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (hAsync("div", { class: { [CSS$G.savedColorsSection]: true, [CSS$G.section]: true } }, hAsync("div", { class: CSS$G.header }, hAsync("label", null, intlSaved), hAsync("div", { class: CSS$G.savedColorsButtons }, hAsync("calcite-button", { appearance: "transparent", class: CSS$G.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale }), hAsync("calcite-button", { appearance: "transparent", class: CSS$G.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale }))), savedColors.length > 0 ? (hAsync("div", { class: CSS$G.savedColors }, [
|
|
12663
|
+
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$G.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
|
|
12649
12664
|
])) : null))));
|
|
12650
12665
|
}
|
|
12651
12666
|
// --------------------------------------------------------------------------
|
|
@@ -12872,7 +12887,7 @@ class CalciteColorPicker {
|
|
|
12872
12887
|
}; }
|
|
12873
12888
|
}
|
|
12874
12889
|
|
|
12875
|
-
const CSS$
|
|
12890
|
+
const CSS$F = {
|
|
12876
12891
|
container: "container",
|
|
12877
12892
|
preview: "preview",
|
|
12878
12893
|
input: "input"
|
|
@@ -13039,7 +13054,7 @@ class CalciteColorPickerHexInput {
|
|
|
13039
13054
|
render() {
|
|
13040
13055
|
const { intlHex, value } = this;
|
|
13041
13056
|
const hexInputValue = this.formatForInternalInput(value);
|
|
13042
|
-
return (hAsync("div", { class: CSS$
|
|
13057
|
+
return (hAsync("div", { class: CSS$F.container }, hAsync("calcite-input", { class: CSS$F.input, label: intlHex, maxLength: 6, onCalciteInputBlur: this.onCalciteInputBlur, onCalciteInputChange: this.onInputChange, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (hAsync("calcite-color-picker-swatch", { active: true, class: CSS$F.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
13043
13058
|
}
|
|
13044
13059
|
//--------------------------------------------------------------------------
|
|
13045
13060
|
//
|
|
@@ -13079,7 +13094,7 @@ class CalciteColorPickerHexInput {
|
|
|
13079
13094
|
}; }
|
|
13080
13095
|
}
|
|
13081
13096
|
|
|
13082
|
-
const CSS$
|
|
13097
|
+
const CSS$E = {
|
|
13083
13098
|
swatch: "swatch",
|
|
13084
13099
|
noColorIcon: "no-color-icon"
|
|
13085
13100
|
};
|
|
@@ -13124,7 +13139,7 @@ class CalciteColorPickerSwatch {
|
|
|
13124
13139
|
const hex = internalColor.hex();
|
|
13125
13140
|
const theme = getThemeName(el);
|
|
13126
13141
|
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
13127
|
-
return (hAsync("svg", { class: CSS$
|
|
13142
|
+
return (hAsync("svg", { class: CSS$E.swatch, xmlns: "http://www.w3.org/2000/svg" }, hAsync("title", null, hex), hAsync("rect", { fill: hex, height: "100%", id: "swatch", rx: borderRadius, stroke: borderColor, "stroke-width": "2", style: { "clip-path": `inset(0 round ${borderRadius})` }, width: "100%" })));
|
|
13128
13143
|
}
|
|
13129
13144
|
get el() { return getElement(this); }
|
|
13130
13145
|
static get watchers() { return {
|
|
@@ -14943,7 +14958,7 @@ var createPopper$1 = /*#__PURE__*/popperGenerator({
|
|
|
14943
14958
|
defaultModifiers: defaultModifiers
|
|
14944
14959
|
}); // eslint-disable-next-line import/no-unused-modules
|
|
14945
14960
|
|
|
14946
|
-
const CSS$
|
|
14961
|
+
const CSS$D = {
|
|
14947
14962
|
animation: "calcite-popper-anim",
|
|
14948
14963
|
animationActive: "calcite-popper-anim--active"
|
|
14949
14964
|
};
|
|
@@ -15698,8 +15713,8 @@ class CalciteCombobox {
|
|
|
15698
15713
|
const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
|
|
15699
15714
|
const classes = {
|
|
15700
15715
|
"list-container": true,
|
|
15701
|
-
[CSS$
|
|
15702
|
-
[CSS$
|
|
15716
|
+
[CSS$D.animation]: true,
|
|
15717
|
+
[CSS$D.animationActive]: active
|
|
15703
15718
|
};
|
|
15704
15719
|
const style = {
|
|
15705
15720
|
maxHeight: maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : ""
|
|
@@ -15771,7 +15786,7 @@ class CalciteCombobox {
|
|
|
15771
15786
|
}; }
|
|
15772
15787
|
}
|
|
15773
15788
|
|
|
15774
|
-
const CSS$
|
|
15789
|
+
const CSS$C = {
|
|
15775
15790
|
icon: "icon",
|
|
15776
15791
|
iconActive: "icon--active",
|
|
15777
15792
|
custom: "icon--custom",
|
|
@@ -15857,18 +15872,18 @@ class CalciteComboboxItem {
|
|
|
15857
15872
|
// --------------------------------------------------------------------------
|
|
15858
15873
|
renderIcon(isSingle) {
|
|
15859
15874
|
const { icon, disabled, selected } = this;
|
|
15860
|
-
const level = `${CSS$
|
|
15875
|
+
const level = `${CSS$C.icon}--indent`;
|
|
15861
15876
|
const defaultIcon = isSingle ? "dot" : "check";
|
|
15862
15877
|
const iconPath = disabled ? "circle-disallowed" : defaultIcon;
|
|
15863
15878
|
const showDot = isSingle && !icon && !disabled;
|
|
15864
15879
|
return showDot ? (hAsync("span", { class: {
|
|
15865
|
-
[CSS$
|
|
15866
|
-
[CSS$
|
|
15880
|
+
[CSS$C.icon]: true,
|
|
15881
|
+
[CSS$C.dot]: true,
|
|
15867
15882
|
[level]: true
|
|
15868
15883
|
} })) : (hAsync("calcite-icon", { class: {
|
|
15869
|
-
[CSS$
|
|
15870
|
-
[CSS$
|
|
15871
|
-
[CSS$
|
|
15884
|
+
[CSS$C.icon]: !icon,
|
|
15885
|
+
[CSS$C.custom]: !!icon,
|
|
15886
|
+
[CSS$C.iconActive]: icon && selected,
|
|
15872
15887
|
[level]: true
|
|
15873
15888
|
}, icon: icon || iconPath, scale: "s" }));
|
|
15874
15889
|
}
|
|
@@ -15881,13 +15896,13 @@ class CalciteComboboxItem {
|
|
|
15881
15896
|
render() {
|
|
15882
15897
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
15883
15898
|
const classes = {
|
|
15884
|
-
[CSS$
|
|
15885
|
-
[CSS$
|
|
15886
|
-
[CSS$
|
|
15887
|
-
[CSS$
|
|
15899
|
+
[CSS$C.label]: true,
|
|
15900
|
+
[CSS$C.selected]: this.selected,
|
|
15901
|
+
[CSS$C.active]: this.active,
|
|
15902
|
+
[CSS$C.single]: isSingleSelect
|
|
15888
15903
|
};
|
|
15889
15904
|
const depth = getDepth();
|
|
15890
|
-
return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), hAsync("span", { class: CSS$
|
|
15905
|
+
return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), hAsync("span", { class: CSS$C.title }, this.textLabel)), this.renderChildren())));
|
|
15891
15906
|
}
|
|
15892
15907
|
get el() { return getElement(this); }
|
|
15893
15908
|
static get watchers() { return {
|
|
@@ -15915,7 +15930,7 @@ class CalciteComboboxItem {
|
|
|
15915
15930
|
}; }
|
|
15916
15931
|
}
|
|
15917
15932
|
|
|
15918
|
-
const CSS$
|
|
15933
|
+
const CSS$B = {
|
|
15919
15934
|
list: "list",
|
|
15920
15935
|
label: "label",
|
|
15921
15936
|
title: "title"
|
|
@@ -15948,8 +15963,8 @@ class CalciteComboboxItemGroup {
|
|
|
15948
15963
|
// --------------------------------------------------------------------------
|
|
15949
15964
|
render() {
|
|
15950
15965
|
const { el, scale } = this;
|
|
15951
|
-
const indent = `${CSS$
|
|
15952
|
-
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
15966
|
+
const indent = `${CSS$B.label}--indent-${getDepth()}`;
|
|
15967
|
+
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$B.list]: true, [`scale--${scale}`]: true }, role: "group" }, hAsync("li", { class: { [CSS$B.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, hAsync("span", { class: CSS$B.title }, this.label)), hAsync("slot", null)));
|
|
15953
15968
|
}
|
|
15954
15969
|
get el() { return getElement(this); }
|
|
15955
15970
|
static get style() { return calciteComboboxItemGroupCss; }
|
|
@@ -15995,17 +16010,24 @@ function parseNumberString(numberString) {
|
|
|
15995
16010
|
return isValidNumber(result) ? Number(result).toString() : null;
|
|
15996
16011
|
}
|
|
15997
16012
|
function sanitizeDecimalString(decimalString) {
|
|
15998
|
-
|
|
16013
|
+
const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
|
|
16014
|
+
return decimalString.replace(decimalAtEndOfStringButNotStart, "");
|
|
15999
16015
|
}
|
|
16000
16016
|
function sanitizeNegativeString(negativeString) {
|
|
16001
|
-
|
|
16017
|
+
const allHyphensExceptTheStart = /(?!^-)-/g;
|
|
16018
|
+
return negativeString.replace(allHyphensExceptTheStart, "");
|
|
16002
16019
|
}
|
|
16003
16020
|
function sanitizeLeadingZeroString(zeroString) {
|
|
16004
|
-
|
|
16021
|
+
const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
|
|
16022
|
+
return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
|
|
16005
16023
|
}
|
|
16006
16024
|
function sanitizeNumberString(value) {
|
|
16007
|
-
|
|
16008
|
-
|
|
16025
|
+
const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)));
|
|
16026
|
+
const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
|
|
16027
|
+
return isValidNumber(sanitizedValue)
|
|
16028
|
+
? isNegativeDecimalOnlyZeros.test(sanitizedValue)
|
|
16029
|
+
? sanitizedValue
|
|
16030
|
+
: Number(sanitizedValue).toString()
|
|
16009
16031
|
: value;
|
|
16010
16032
|
}
|
|
16011
16033
|
function stringContainsNumbers(string) {
|
|
@@ -17338,8 +17360,8 @@ class CalciteDropdown {
|
|
|
17338
17360
|
const { active } = this;
|
|
17339
17361
|
return (hAsync(Host, { tabIndex: this.disabled ? -1 : null }, hAsync("div", { class: "calcite-dropdown-trigger-container", onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, hAsync("slot", { "aria-expanded": active.toString(), "aria-haspopup": "true", name: SLOTS$h.dropdownTrigger })), hAsync("div", { "aria-hidden": (!active).toString(), class: "calcite-dropdown-wrapper", ref: this.setMenuEl }, hAsync("div", { class: {
|
|
17340
17362
|
["calcite-dropdown-content"]: true,
|
|
17341
|
-
[CSS$
|
|
17342
|
-
[CSS$
|
|
17363
|
+
[CSS$D.animation]: true,
|
|
17364
|
+
[CSS$D.animationActive]: active
|
|
17343
17365
|
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, hAsync("slot", null)))));
|
|
17344
17366
|
}
|
|
17345
17367
|
//--------------------------------------------------------------------------
|
|
@@ -17552,13 +17574,13 @@ class CalciteDropdown {
|
|
|
17552
17574
|
}; }
|
|
17553
17575
|
}
|
|
17554
17576
|
|
|
17555
|
-
const CSS$
|
|
17577
|
+
const CSS$A = {
|
|
17556
17578
|
containerSmall: "container--s",
|
|
17557
17579
|
containerMedium: "container--m",
|
|
17558
17580
|
containerLarge: "container--l"
|
|
17559
17581
|
};
|
|
17560
17582
|
|
|
17561
|
-
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*/.sc-calcite-dropdown-group:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-dropdown-group{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-dropdown-group{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-dropdown-group{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-dropdown-group{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-dropdown-group{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-dropdown-group:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-dropdown-group-h{display:none}/*!@.container--s*/.container--s.sc-calcite-dropdown-group{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@.container--s .dropdown-title*/.container--s.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:0.5rem}/*!@.container--m*/.container--m.sc-calcite-dropdown-group{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@.container--m .dropdown-title*/.container--m.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:0.75rem}/*!@.container--l*/.container--l.sc-calcite-dropdown-group{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@.container--l .dropdown-title*/.container--l.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:1rem}/*!@.dropdown-title*/.dropdown-title.sc-calcite-dropdown-group{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*/.dropdown-separator.sc-calcite-dropdown-group{display:block;height:1px;background-color:var(--calcite-ui-border-3)}";
|
|
17583
|
+
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*/.sc-calcite-dropdown-group:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-dropdown-group{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-dropdown-group{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-dropdown-group{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-dropdown-group{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-dropdown-group{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-dropdown-group:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-dropdown-group-h{display:none}/*!@:host*/.sc-calcite-dropdown-group-h{display:block}/*!@.container--s*/.container--s.sc-calcite-dropdown-group{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@.container--s .dropdown-title*/.container--s.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:0.5rem}/*!@.container--m*/.container--m.sc-calcite-dropdown-group{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@.container--m .dropdown-title*/.container--m.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:0.75rem}/*!@.container--l*/.container--l.sc-calcite-dropdown-group{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@.container--l .dropdown-title*/.container--l.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:1rem}/*!@.dropdown-title*/.dropdown-title.sc-calcite-dropdown-group{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*/.dropdown-separator.sc-calcite-dropdown-group{display:block;height:1px;background-color:var(--calcite-ui-border-3)}";
|
|
17562
17584
|
|
|
17563
17585
|
/**
|
|
17564
17586
|
* @slot - A slot for adding `calcite-dropdown-item`s.
|
|
@@ -17585,9 +17607,9 @@ class CalciteDropdownGroup {
|
|
|
17585
17607
|
const dropdownSeparator = this.groupPosition > 0 ? hAsync("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
17586
17608
|
return (hAsync(Host, { role: "menu" }, hAsync("div", { class: {
|
|
17587
17609
|
container: true,
|
|
17588
|
-
[CSS$
|
|
17589
|
-
[CSS$
|
|
17590
|
-
[CSS$
|
|
17610
|
+
[CSS$A.containerSmall]: scale === "s",
|
|
17611
|
+
[CSS$A.containerMedium]: scale === "m",
|
|
17612
|
+
[CSS$A.containerLarge]: scale === "l"
|
|
17591
17613
|
}, title: this.groupTitle }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
17592
17614
|
}
|
|
17593
17615
|
//--------------------------------------------------------------------------
|
|
@@ -17627,7 +17649,7 @@ class CalciteDropdownGroup {
|
|
|
17627
17649
|
}; }
|
|
17628
17650
|
}
|
|
17629
17651
|
|
|
17630
|
-
const CSS$
|
|
17652
|
+
const CSS$z = {
|
|
17631
17653
|
containerLink: "container--link",
|
|
17632
17654
|
containerSmall: "container--s",
|
|
17633
17655
|
containerMedium: "container--m",
|
|
@@ -17700,13 +17722,13 @@ class CalciteDropdownItem {
|
|
|
17700
17722
|
const itemAria = this.selectionMode !== "none" ? this.active.toString() : null;
|
|
17701
17723
|
return (hAsync(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, hAsync("div", { class: {
|
|
17702
17724
|
container: true,
|
|
17703
|
-
[CSS$
|
|
17704
|
-
[CSS$
|
|
17705
|
-
[CSS$
|
|
17706
|
-
[CSS$
|
|
17707
|
-
[CSS$
|
|
17708
|
-
[CSS$
|
|
17709
|
-
[CSS$
|
|
17725
|
+
[CSS$z.containerLink]: !!this.href,
|
|
17726
|
+
[CSS$z.containerSmall]: scale === "s",
|
|
17727
|
+
[CSS$z.containerMedium]: scale === "m",
|
|
17728
|
+
[CSS$z.containerLarge]: scale === "l",
|
|
17729
|
+
[CSS$z.containerMulti]: this.selectionMode === "multi",
|
|
17730
|
+
[CSS$z.containerSingle]: this.selectionMode === "single",
|
|
17731
|
+
[CSS$z.containerNone]: this.selectionMode === "none"
|
|
17710
17732
|
} }, this.selectionMode !== "none" ? (hAsync("calcite-icon", { class: "dropdown-item-icon", icon: this.selectionMode === "multi" ? "check" : "bullet-point", scale: "s" })) : null, contentEl)));
|
|
17711
17733
|
}
|
|
17712
17734
|
//--------------------------------------------------------------------------
|
|
@@ -17806,7 +17828,7 @@ class CalciteDropdownItem {
|
|
|
17806
17828
|
}; }
|
|
17807
17829
|
}
|
|
17808
17830
|
|
|
17809
|
-
const CSS$
|
|
17831
|
+
const CSS$y = {
|
|
17810
17832
|
button: "button"
|
|
17811
17833
|
};
|
|
17812
17834
|
const ICONS$9 = {
|
|
@@ -17870,7 +17892,7 @@ class CalciteFab {
|
|
|
17870
17892
|
render() {
|
|
17871
17893
|
const { appearance, color, disabled, loading, scale, textEnabled, icon, label, text } = this;
|
|
17872
17894
|
const title = !textEnabled ? label || text || null : null;
|
|
17873
|
-
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$
|
|
17895
|
+
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$y.button, color: color, disabled: disabled, iconStart: icon, label: label, loading: loading, ref: (buttonEl) => {
|
|
17874
17896
|
this.buttonEl = buttonEl;
|
|
17875
17897
|
}, round: true, scale: scale, title: title, width: "auto" }, this.textEnabled ? this.text : null));
|
|
17876
17898
|
}
|
|
@@ -17897,7 +17919,7 @@ class CalciteFab {
|
|
|
17897
17919
|
}; }
|
|
17898
17920
|
}
|
|
17899
17921
|
|
|
17900
|
-
const CSS$
|
|
17922
|
+
const CSS$x = {
|
|
17901
17923
|
container: "container",
|
|
17902
17924
|
searchIcon: "search-icon",
|
|
17903
17925
|
clearButton: "clear-button"
|
|
@@ -18002,9 +18024,9 @@ class CalciteFilter {
|
|
|
18002
18024
|
// --------------------------------------------------------------------------
|
|
18003
18025
|
render() {
|
|
18004
18026
|
const { disabled } = this;
|
|
18005
|
-
return (hAsync(Fragment, null, disabled ? hAsync("calcite-scrim", null) : null, hAsync("div", { class: CSS$
|
|
18027
|
+
return (hAsync(Fragment, null, disabled ? hAsync("calcite-scrim", null) : null, hAsync("div", { class: CSS$x.container }, hAsync("label", null, hAsync("calcite-input", { "aria-label": this.intlLabel || TEXT$d.filterLabel, disabled: this.disabled, icon: ICONS$8.search, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {
|
|
18006
18028
|
this.textInput = el;
|
|
18007
|
-
}, type: "text", value: this.value })), this.value ? (hAsync("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$
|
|
18029
|
+
}, type: "text", value: this.value })), this.value ? (hAsync("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$x.clearButton, onClick: this.clear }, hAsync("calcite-icon", { icon: ICONS$8.close }))) : null)));
|
|
18008
18030
|
}
|
|
18009
18031
|
get el() { return getElement(this); }
|
|
18010
18032
|
static get watchers() { return {
|
|
@@ -18031,7 +18053,7 @@ class CalciteFilter {
|
|
|
18031
18053
|
}; }
|
|
18032
18054
|
}
|
|
18033
18055
|
|
|
18034
|
-
const CSS$
|
|
18056
|
+
const CSS$w = {
|
|
18035
18057
|
frame: "frame",
|
|
18036
18058
|
frameAdvancing: "frame--advancing",
|
|
18037
18059
|
frameRetreating: "frame--retreating"
|
|
@@ -18132,9 +18154,9 @@ class CalciteFlow {
|
|
|
18132
18154
|
render() {
|
|
18133
18155
|
const { flowDirection, panelCount } = this;
|
|
18134
18156
|
const frameDirectionClasses = {
|
|
18135
|
-
[CSS$
|
|
18136
|
-
[CSS$
|
|
18137
|
-
[CSS$
|
|
18157
|
+
[CSS$w.frame]: true,
|
|
18158
|
+
[CSS$w.frameAdvancing]: flowDirection === "advancing",
|
|
18159
|
+
[CSS$w.frameRetreating]: flowDirection === "retreating"
|
|
18138
18160
|
};
|
|
18139
18161
|
return (hAsync("div", { class: frameDirectionClasses, key: panelCount }, hAsync("slot", null)));
|
|
18140
18162
|
}
|
|
@@ -18354,7 +18376,7 @@ class CalciteGraph {
|
|
|
18354
18376
|
}; }
|
|
18355
18377
|
}
|
|
18356
18378
|
|
|
18357
|
-
const CSS$
|
|
18379
|
+
const CSS$v = {
|
|
18358
18380
|
handle: "handle",
|
|
18359
18381
|
handleActivated: "handle--activated"
|
|
18360
18382
|
};
|
|
@@ -18422,7 +18444,7 @@ class CalciteHandle {
|
|
|
18422
18444
|
render() {
|
|
18423
18445
|
return (
|
|
18424
18446
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
18425
|
-
hAsync("span", { "aria-pressed": this.activated.toString(), class: { [CSS$
|
|
18447
|
+
hAsync("span", { "aria-pressed": this.activated.toString(), class: { [CSS$v.handle]: true, [CSS$v.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
18426
18448
|
this.handleButton = el;
|
|
18427
18449
|
}, role: "button", tabindex: "0", title: this.textTitle }, hAsync("calcite-icon", { icon: ICONS$7.drag, scale: "s" })));
|
|
18428
18450
|
}
|
|
@@ -18442,7 +18464,7 @@ class CalciteHandle {
|
|
|
18442
18464
|
}; }
|
|
18443
18465
|
}
|
|
18444
18466
|
|
|
18445
|
-
const CSS$
|
|
18467
|
+
const CSS$u = {
|
|
18446
18468
|
icon: "icon",
|
|
18447
18469
|
flipRtl: "flip-rtl"
|
|
18448
18470
|
};
|
|
@@ -18453,7 +18475,7 @@ const scaleToPx = {
|
|
|
18453
18475
|
l: 32
|
|
18454
18476
|
};
|
|
18455
18477
|
|
|
18456
|
-
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*/.sc-calcite-icon:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-icon{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-icon{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-icon{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-icon{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-icon{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-icon:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-icon-h{display:none}/*!@:host*/.sc-calcite-icon-h{display:-ms-inline-flexbox;display:inline-flex}/*!@:host([scale=s])*/[scale=s].sc-calcite-icon-h{height:1rem;width:1rem;min-width:1rem;min-height:1rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-icon-h{height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-icon-h{height:2rem;width:2rem;min-width:2rem;min-height:2rem}/*!@.flip-rtl*/.flip-rtl.sc-calcite-icon{-webkit-transform:scaleX(-1);transform:scaleX(-1)}/*!@.svg*/.svg.sc-calcite-icon{display:block}";
|
|
18478
|
+
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*/.sc-calcite-icon:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-icon{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-icon{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-icon{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-icon{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-icon{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-icon:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-icon-h{display:none}/*!@:host*/.sc-calcite-icon-h{display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-icon-color)}/*!@:host([scale=s])*/[scale=s].sc-calcite-icon-h{height:1rem;width:1rem;min-width:1rem;min-height:1rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-icon-h{height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-icon-h{height:2rem;width:2rem;min-width:2rem;min-height:2rem}/*!@.flip-rtl*/.flip-rtl.sc-calcite-icon{-webkit-transform:scaleX(-1);transform:scaleX(-1)}/*!@.svg*/.svg.sc-calcite-icon{display:block}";
|
|
18457
18479
|
|
|
18458
18480
|
class CalciteIcon {
|
|
18459
18481
|
constructor(hostRef) {
|
|
@@ -18503,7 +18525,7 @@ class CalciteIcon {
|
|
|
18503
18525
|
const semantic = !!textLabel;
|
|
18504
18526
|
const paths = [].concat(pathData || "");
|
|
18505
18527
|
return (hAsync(Host, { "aria-hidden": (!semantic).toString(), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, hAsync("svg", { class: {
|
|
18506
|
-
[CSS$
|
|
18528
|
+
[CSS$u.flipRtl]: dir === "rtl" && flipRtl,
|
|
18507
18529
|
svg: true
|
|
18508
18530
|
}, fill: "currentColor", height: "100%", viewBox: `0 0 ${size} ${size}`, width: "100%", xmlns: "http://www.w3.org/2000/svg" }, paths.map((path) => typeof path === "string" ? (hAsync("path", { d: path })) : (hAsync("path", { d: path.d, opacity: "opacity" in path ? path.opacity : 1 }))))));
|
|
18509
18531
|
}
|
|
@@ -18549,7 +18571,7 @@ class CalciteIcon {
|
|
|
18549
18571
|
}; }
|
|
18550
18572
|
}
|
|
18551
18573
|
|
|
18552
|
-
const CSS$
|
|
18574
|
+
const CSS$t = {
|
|
18553
18575
|
wrapper: "wrapper",
|
|
18554
18576
|
confirmChangesButton: "confirm-changes-button",
|
|
18555
18577
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -18698,12 +18720,12 @@ class CalciteInlineEditable {
|
|
|
18698
18720
|
this.scale || this.inputElement.scale || getElementProp(this.el, "scale", undefined);
|
|
18699
18721
|
}
|
|
18700
18722
|
render() {
|
|
18701
|
-
return (hAsync("div", { class: CSS$
|
|
18723
|
+
return (hAsync("div", { class: CSS$t.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler, onTransitionEnd: this.transitionEnd }, hAsync("div", { class: CSS$t.inputWrapper }, hAsync("slot", null)), hAsync("div", { class: CSS$t.controlsWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$t.enableEditingButton, color: "neutral", disabled: this.disabled, iconStart: "pencil", label: this.intlEnableEditing, onClick: this.enableEditingHandler, ref: (el) => (this.enableEditingButton = el), scale: this.scale, style: {
|
|
18702
18724
|
opacity: this.editingEnabled ? "0" : "1",
|
|
18703
18725
|
width: this.editingEnabled ? "0" : "inherit"
|
|
18704
18726
|
} }), this.shouldShowControls && [
|
|
18705
|
-
hAsync("div", { class: CSS$
|
|
18706
|
-
hAsync("calcite-button", { appearance: "solid", class: CSS$
|
|
18727
|
+
hAsync("div", { class: CSS$t.cancelEditingButtonWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$t.cancelEditingButton, color: "neutral", disabled: this.disabled, iconStart: "x", label: this.intlCancelEditing, onClick: this.cancelEditingHandler, ref: (el) => (this.cancelEditingButton = el), scale: this.scale })),
|
|
18728
|
+
hAsync("calcite-button", { appearance: "solid", class: CSS$t.confirmChangesButton, color: "blue", disabled: this.disabled, iconStart: "check", label: this.intlConfirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, scale: this.scale })
|
|
18707
18729
|
])));
|
|
18708
18730
|
}
|
|
18709
18731
|
//--------------------------------------------------------------------------
|
|
@@ -18768,7 +18790,7 @@ class CalciteInlineEditable {
|
|
|
18768
18790
|
}; }
|
|
18769
18791
|
}
|
|
18770
18792
|
|
|
18771
|
-
const CSS$
|
|
18793
|
+
const CSS$s = {
|
|
18772
18794
|
loader: "loader",
|
|
18773
18795
|
clearButton: "clear-button",
|
|
18774
18796
|
editingEnabled: "editing-enabled",
|
|
@@ -19019,18 +19041,19 @@ class CalciteInput {
|
|
|
19019
19041
|
};
|
|
19020
19042
|
this.setValue = (value, nativeEvent, committing = false) => {
|
|
19021
19043
|
const previousValue = this.value;
|
|
19022
|
-
this.value = this.type === "number" ? sanitizeNumberString(value) : value;
|
|
19023
19044
|
if (this.type === "number") {
|
|
19024
|
-
|
|
19045
|
+
const sanitizedValue = sanitizeNumberString(value);
|
|
19046
|
+
this.value = sanitizedValue;
|
|
19047
|
+
this.setLocalizedValue(sanitizedValue);
|
|
19048
|
+
}
|
|
19049
|
+
else {
|
|
19050
|
+
this.value = value;
|
|
19025
19051
|
}
|
|
19026
19052
|
if (nativeEvent) {
|
|
19027
|
-
if (this.type === "number") {
|
|
19028
|
-
value = sanitizeNumberString(value);
|
|
19029
|
-
}
|
|
19030
19053
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
19031
19054
|
element: this.childEl,
|
|
19032
19055
|
nativeEvent,
|
|
19033
|
-
value
|
|
19056
|
+
value: this.value
|
|
19034
19057
|
});
|
|
19035
19058
|
if (calciteInputInputEvent.defaultPrevented) {
|
|
19036
19059
|
this.value = previousValue;
|
|
@@ -19195,34 +19218,34 @@ class CalciteInput {
|
|
|
19195
19218
|
// --------------------------------------------------------------------------
|
|
19196
19219
|
render() {
|
|
19197
19220
|
const dir = getElementDir(this.el);
|
|
19198
|
-
const loader = (hAsync("div", { class: CSS$
|
|
19199
|
-
const inputClearButton = (hAsync("button", { class: CSS$
|
|
19200
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
19221
|
+
const loader = (hAsync("div", { class: CSS$s.loader }, hAsync("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
19222
|
+
const inputClearButton = (hAsync("button", { class: CSS$s.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: "s" })));
|
|
19223
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$s.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
19201
19224
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
19202
19225
|
const numberButtonsHorizontalUp = (hAsync("button", { class: {
|
|
19203
|
-
[CSS$
|
|
19204
|
-
[CSS$
|
|
19226
|
+
[CSS$s.numberButtonItem]: true,
|
|
19227
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
19205
19228
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onMouseDown: this.numberButtonMouseDownHandler, onMouseOut: this.numberButtonMouseUpAndMouseOutHandler, onMouseUp: this.numberButtonMouseUpAndMouseOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
19206
19229
|
const numberButtonsHorizontalDown = (hAsync("button", { class: {
|
|
19207
|
-
[CSS$
|
|
19208
|
-
[CSS$
|
|
19230
|
+
[CSS$s.numberButtonItem]: true,
|
|
19231
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
19209
19232
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onMouseDown: this.numberButtonMouseDownHandler, onMouseOut: this.numberButtonMouseUpAndMouseOutHandler, onMouseUp: this.numberButtonMouseUpAndMouseOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
19210
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
19211
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
19212
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
19233
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$s.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
19234
|
+
const prefixText = hAsync("div", { class: CSS$s.prefix }, this.prefixText);
|
|
19235
|
+
const suffixText = hAsync("div", { class: CSS$s.suffix }, this.suffixText);
|
|
19213
19236
|
const localeNumberInput = this.type === "number" ? (hAsync("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, type: "text", value: this.localizedValue })) : null;
|
|
19214
19237
|
const childEl = this.type !== "number"
|
|
19215
19238
|
? [
|
|
19216
19239
|
hAsync(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
19217
|
-
[CSS$
|
|
19218
|
-
[CSS$
|
|
19240
|
+
[CSS$s.editingEnabled]: this.editingEnabled,
|
|
19241
|
+
[CSS$s.inlineChild]: !!this.inlineEditableEl
|
|
19219
19242
|
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, max: this.maxString, maxLength: this.maxLength, min: this.minString, minLength: this.minLength, name: this.name, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputInputHandler, onKeyDown: this.inputKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildElRef, required: this.required ? true : null, step: this.step, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: this.type, value: this.value }),
|
|
19220
|
-
this.isTextarea ? (hAsync("div", { class: CSS$
|
|
19243
|
+
this.isTextarea ? (hAsync("div", { class: CSS$s.resizeIconWrapper }, hAsync("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
19221
19244
|
]
|
|
19222
19245
|
: null;
|
|
19223
|
-
return (hAsync(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
19246
|
+
return (hAsync(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$s.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
19224
19247
|
? numberButtonsHorizontalDown
|
|
19225
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
19248
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$s.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$s.actionWrapper }, hAsync("slot", { name: SLOTS$g.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
19226
19249
|
? numberButtonsVertical
|
|
19227
19250
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
19228
19251
|
? numberButtonsHorizontalUp
|
|
@@ -19524,8 +19547,8 @@ class CalciteInputDatePicker {
|
|
|
19524
19547
|
return (hAsync(Host, { onBlur: this.deactivate, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (hAsync("div", { "aria-expanded": this.active.toString(), class: "input-container", role: "application" }, hAsync("div", { class: "input-wrapper", ref: this.setStartWrapper }, hAsync("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none", onCalciteInputBlur: this.inputBlur, onCalciteInputFocus: this.startInputFocus, onCalciteInputInput: this.inputInput, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), hAsync("div", { "aria-hidden": (!this.active).toString(), class: "menu-container", ref: this.setMenuEl }, hAsync("div", { class: {
|
|
19525
19548
|
["calendar-picker-wrapper"]: true,
|
|
19526
19549
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
19527
|
-
[CSS$
|
|
19528
|
-
[CSS$
|
|
19550
|
+
[CSS$D.animation]: true,
|
|
19551
|
+
[CSS$D.animationActive]: this.active
|
|
19529
19552
|
}, onTransitionEnd: this.transitionEnd }, hAsync("calcite-date-picker", { activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, locale: this.locale, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, startAsDate: this.startAsDate, tabIndex: 0, valueAsDate: this.valueAsDate }))), this.range && this.layout === "horizontal" && (hAsync("div", { class: "horizontal-arrow-container" }, hAsync("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (hAsync("div", { class: "vertical-arrow-container" }, hAsync("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (hAsync("div", { class: "input-wrapper", ref: this.setEndWrapper }, hAsync("calcite-input", { class: {
|
|
19530
19553
|
input: true,
|
|
19531
19554
|
"border-top-color-one": this.layout === "vertical" && this.range
|
|
@@ -20225,7 +20248,7 @@ class CalciteInputTimePicker {
|
|
|
20225
20248
|
}; }
|
|
20226
20249
|
}
|
|
20227
20250
|
|
|
20228
|
-
const CSS$
|
|
20251
|
+
const CSS$r = {
|
|
20229
20252
|
container: "container"
|
|
20230
20253
|
};
|
|
20231
20254
|
|
|
@@ -20272,7 +20295,7 @@ class CalciteLabel {
|
|
|
20272
20295
|
//
|
|
20273
20296
|
//--------------------------------------------------------------------------
|
|
20274
20297
|
render() {
|
|
20275
|
-
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$
|
|
20298
|
+
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$r.container }, hAsync("slot", null))));
|
|
20276
20299
|
}
|
|
20277
20300
|
get el() { return getElement(this); }
|
|
20278
20301
|
static get style() { return calciteLabelCss; }
|
|
@@ -20375,7 +20398,7 @@ class CalciteLink {
|
|
|
20375
20398
|
}; }
|
|
20376
20399
|
}
|
|
20377
20400
|
|
|
20378
|
-
const CSS$
|
|
20401
|
+
const CSS$q = {
|
|
20379
20402
|
container: "container"
|
|
20380
20403
|
};
|
|
20381
20404
|
|
|
@@ -20405,7 +20428,7 @@ class CalciteList {
|
|
|
20405
20428
|
//
|
|
20406
20429
|
// --------------------------------------------------------------------------
|
|
20407
20430
|
render() {
|
|
20408
|
-
return (hAsync(Host, { role: "list" }, hAsync("div", { class: CSS$
|
|
20431
|
+
return (hAsync(Host, { role: "list" }, hAsync("div", { class: CSS$q.container }, hAsync("slot", null))));
|
|
20409
20432
|
}
|
|
20410
20433
|
get el() { return getElement(this); }
|
|
20411
20434
|
static get style() { return calciteListCss; }
|
|
@@ -20422,7 +20445,7 @@ class CalciteList {
|
|
|
20422
20445
|
}; }
|
|
20423
20446
|
}
|
|
20424
20447
|
|
|
20425
|
-
const CSS$
|
|
20448
|
+
const CSS$p = {
|
|
20426
20449
|
container: "container",
|
|
20427
20450
|
contentContainer: "content-container",
|
|
20428
20451
|
nestedContainer: "nested-container",
|
|
@@ -20485,31 +20508,31 @@ class CalciteListItem {
|
|
|
20485
20508
|
// --------------------------------------------------------------------------
|
|
20486
20509
|
renderActionsStart() {
|
|
20487
20510
|
const { el } = this;
|
|
20488
|
-
return getSlotted(el, SLOTS$f.actionsStart) ? (hAsync("div", { class: CSS$
|
|
20511
|
+
return getSlotted(el, SLOTS$f.actionsStart) ? (hAsync("div", { class: CSS$p.actionsStart }, hAsync("slot", { name: SLOTS$f.actionsStart }))) : null;
|
|
20489
20512
|
}
|
|
20490
20513
|
renderActionsEnd() {
|
|
20491
20514
|
const { el } = this;
|
|
20492
|
-
return getSlotted(el, SLOTS$f.actionsEnd) ? (hAsync("div", { class: CSS$
|
|
20515
|
+
return getSlotted(el, SLOTS$f.actionsEnd) ? (hAsync("div", { class: CSS$p.actionsEnd }, hAsync("slot", { name: SLOTS$f.actionsEnd }))) : null;
|
|
20493
20516
|
}
|
|
20494
20517
|
renderContentStart() {
|
|
20495
20518
|
const { el } = this;
|
|
20496
|
-
return getSlotted(el, SLOTS$f.contentStart) ? (hAsync("div", { class: CSS$
|
|
20519
|
+
return getSlotted(el, SLOTS$f.contentStart) ? (hAsync("div", { class: CSS$p.contentStart }, hAsync("slot", { name: SLOTS$f.contentStart }))) : null;
|
|
20497
20520
|
}
|
|
20498
20521
|
renderContentEnd() {
|
|
20499
20522
|
const { el } = this;
|
|
20500
|
-
return getSlotted(el, SLOTS$f.contentEnd) ? (hAsync("div", { class: CSS$
|
|
20523
|
+
return getSlotted(el, SLOTS$f.contentEnd) ? (hAsync("div", { class: CSS$p.contentEnd }, hAsync("slot", { name: SLOTS$f.contentEnd }))) : null;
|
|
20501
20524
|
}
|
|
20502
20525
|
renderContent() {
|
|
20503
20526
|
const { label, description } = this;
|
|
20504
|
-
return !!label || !!description ? (hAsync("div", { class: CSS$
|
|
20527
|
+
return !!label || !!description ? (hAsync("div", { class: CSS$p.content }, label ? hAsync("div", { class: CSS$p.label }, label) : null, description ? hAsync("div", { class: CSS$p.description }, description) : null)) : null;
|
|
20505
20528
|
}
|
|
20506
20529
|
renderContentContainer() {
|
|
20507
20530
|
const { disabled, nonInteractive } = this;
|
|
20508
20531
|
const content = [this.renderContentStart(), this.renderContent(), this.renderContentEnd()];
|
|
20509
|
-
return !nonInteractive ? (hAsync("button", { class: { [CSS$
|
|
20532
|
+
return !nonInteractive ? (hAsync("button", { class: { [CSS$p.contentContainer]: true, [CSS$p.contentContainerButton]: true }, disabled: disabled, ref: (focusEl) => (this.focusEl = focusEl) }, content)) : (hAsync("div", { class: CSS$p.contentContainer, ref: () => (this.focusEl = null) }, content));
|
|
20510
20533
|
}
|
|
20511
20534
|
render() {
|
|
20512
|
-
return (hAsync(Host, { role: "listitem" }, hAsync("div", { class: CSS$
|
|
20535
|
+
return (hAsync(Host, { role: "listitem" }, hAsync("div", { class: CSS$p.container }, this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), hAsync("div", { class: CSS$p.nestedContainer }, hAsync("slot", null))));
|
|
20513
20536
|
}
|
|
20514
20537
|
get el() { return getElement(this); }
|
|
20515
20538
|
static get style() { return calciteListItemCss; }
|
|
@@ -20529,7 +20552,7 @@ class CalciteListItem {
|
|
|
20529
20552
|
}; }
|
|
20530
20553
|
}
|
|
20531
20554
|
|
|
20532
|
-
const CSS$
|
|
20555
|
+
const CSS$o = {
|
|
20533
20556
|
heading: "heading",
|
|
20534
20557
|
container: "container"
|
|
20535
20558
|
};
|
|
@@ -20555,7 +20578,7 @@ class CalciteListItemGroup {
|
|
|
20555
20578
|
const parentLevel = (_a = el.closest("calcite-list, calcite-list-item-group")) === null || _a === void 0 ? void 0 : _a.headingLevel;
|
|
20556
20579
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
20557
20580
|
const level = headingLevel || relativeLevel || HEADING_LEVEL$5;
|
|
20558
|
-
return (hAsync(Host, null, heading ? (hAsync(CalciteHeading, { class: CSS$
|
|
20581
|
+
return (hAsync(Host, null, heading ? (hAsync(CalciteHeading, { class: CSS$o.heading, level: level }, heading)) : null, hAsync("div", { class: CSS$o.container, role: "group" }, hAsync("slot", null))));
|
|
20559
20582
|
}
|
|
20560
20583
|
get el() { return getElement(this); }
|
|
20561
20584
|
static get style() { return calciteListItemGroupCss; }
|
|
@@ -20768,7 +20791,7 @@ function isFocusable($elem) {
|
|
|
20768
20791
|
|| $elem instanceof HTMLIFrameElement);
|
|
20769
20792
|
}
|
|
20770
20793
|
|
|
20771
|
-
const CSS$
|
|
20794
|
+
const CSS$n = {
|
|
20772
20795
|
title: "title",
|
|
20773
20796
|
header: "header",
|
|
20774
20797
|
footer: "footer",
|
|
@@ -20912,17 +20935,17 @@ class CalciteModal {
|
|
|
20912
20935
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
20913
20936
|
}
|
|
20914
20937
|
render() {
|
|
20915
|
-
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("calcite-scrim", { class: CSS$
|
|
20938
|
+
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("calcite-scrim", { class: CSS$n.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), hAsync("div", { class: "modal", onTransitionEnd: this.transitionEnd }, hAsync("div", { "data-focus-fence": true, onFocus: this.focusLastElement, tabindex: "0" }), hAsync("div", { class: CSS$n.header }, this.renderCloseButton(), hAsync("header", { class: CSS$n.title }, hAsync("slot", { name: CSS$n.header }))), hAsync("div", { class: {
|
|
20916
20939
|
content: true,
|
|
20917
20940
|
"content--spaced": !this.noPadding,
|
|
20918
20941
|
"content--no-footer": !this.hasFooter
|
|
20919
20942
|
}, ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$e.content })), this.renderFooter(), hAsync("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
|
20920
20943
|
}
|
|
20921
20944
|
renderFooter() {
|
|
20922
|
-
return this.hasFooter ? (hAsync("div", { class: CSS$
|
|
20945
|
+
return this.hasFooter ? (hAsync("div", { class: CSS$n.footer }, hAsync("span", { class: CSS$n.back }, hAsync("slot", { name: SLOTS$e.back })), hAsync("span", { class: CSS$n.secondary }, hAsync("slot", { name: SLOTS$e.secondary })), hAsync("span", { class: CSS$n.primary }, hAsync("slot", { name: SLOTS$e.primary })))) : null;
|
|
20923
20946
|
}
|
|
20924
20947
|
renderCloseButton() {
|
|
20925
|
-
return !this.disableCloseButton ? (hAsync("button", { "aria-label": this.intlClose, class: CSS$
|
|
20948
|
+
return !this.disableCloseButton ? (hAsync("button", { "aria-label": this.intlClose, class: CSS$n.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, hAsync("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
20926
20949
|
}
|
|
20927
20950
|
renderStyle() {
|
|
20928
20951
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -21012,10 +21035,10 @@ class CalciteModal {
|
|
|
21012
21035
|
const contentEl = getSlotted(this.el, SLOTS$e.content);
|
|
21013
21036
|
this.titleId = ensureId(titleEl);
|
|
21014
21037
|
this.contentId = ensureId(contentEl);
|
|
21015
|
-
document.documentElement.classList.add(CSS$
|
|
21038
|
+
document.documentElement.classList.add(CSS$n.overflowHidden);
|
|
21016
21039
|
}
|
|
21017
21040
|
removeOverflowHiddenClass() {
|
|
21018
|
-
document.documentElement.classList.remove(CSS$
|
|
21041
|
+
document.documentElement.classList.remove(CSS$n.overflowHidden);
|
|
21019
21042
|
}
|
|
21020
21043
|
get el() { return getElement(this); }
|
|
21021
21044
|
static get watchers() { return {
|
|
@@ -21060,7 +21083,7 @@ const SLOTS$d = {
|
|
|
21060
21083
|
link: "link",
|
|
21061
21084
|
actionsEnd: "actions-end"
|
|
21062
21085
|
};
|
|
21063
|
-
const CSS$
|
|
21086
|
+
const CSS$m = {
|
|
21064
21087
|
actionsEnd: "actions-end",
|
|
21065
21088
|
close: "notice-close",
|
|
21066
21089
|
container: "container",
|
|
@@ -21131,9 +21154,9 @@ class CalciteNotice {
|
|
|
21131
21154
|
}
|
|
21132
21155
|
render() {
|
|
21133
21156
|
const { el } = this;
|
|
21134
|
-
const closeButton = (hAsync("button", { "aria-label": this.intlClose, class: CSS$
|
|
21157
|
+
const closeButton = (hAsync("button", { "aria-label": this.intlClose, class: CSS$m.close, onClick: this.close, ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
21135
21158
|
const hasActionEnd = getSlotted(el, SLOTS$d.actionsEnd);
|
|
21136
|
-
return (hAsync("div", { class: CSS$
|
|
21159
|
+
return (hAsync("div", { class: CSS$m.container }, this.requestedIcon ? (hAsync("div", { class: CSS$m.icon }, hAsync("calcite-icon", { icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: CSS$m.content }, hAsync("slot", { name: SLOTS$d.title }), hAsync("slot", { name: SLOTS$d.message }), hAsync("slot", { name: SLOTS$d.link })), hasActionEnd ? (hAsync("div", { class: CSS$m.actionsEnd }, hAsync("slot", { name: SLOTS$d.actionsEnd }))) : null, this.dismissible ? closeButton : null));
|
|
21137
21160
|
}
|
|
21138
21161
|
//--------------------------------------------------------------------------
|
|
21139
21162
|
//
|
|
@@ -21314,7 +21337,7 @@ class CalciteOptionGroup {
|
|
|
21314
21337
|
}; }
|
|
21315
21338
|
}
|
|
21316
21339
|
|
|
21317
|
-
const CSS$
|
|
21340
|
+
const CSS$l = {
|
|
21318
21341
|
page: "page",
|
|
21319
21342
|
selected: "is-selected",
|
|
21320
21343
|
previous: "previous",
|
|
@@ -21447,8 +21470,8 @@ class CalcitePagination {
|
|
|
21447
21470
|
renderPage(start) {
|
|
21448
21471
|
const page = Math.floor(start / this.num) + (this.num === 1 ? 0 : 1);
|
|
21449
21472
|
return (hAsync("button", { class: {
|
|
21450
|
-
[CSS$
|
|
21451
|
-
[CSS$
|
|
21473
|
+
[CSS$l.page]: true,
|
|
21474
|
+
[CSS$l.selected]: start === this.start
|
|
21452
21475
|
}, onClick: () => {
|
|
21453
21476
|
this.start = start;
|
|
21454
21477
|
this.emitUpdate();
|
|
@@ -21456,12 +21479,12 @@ class CalcitePagination {
|
|
|
21456
21479
|
}
|
|
21457
21480
|
renderLeftEllipsis() {
|
|
21458
21481
|
if (this.total / this.num > maxPagesDisplayed && this.showLeftEllipsis()) {
|
|
21459
|
-
return hAsync("span", { class: `${CSS$
|
|
21482
|
+
return hAsync("span", { class: `${CSS$l.ellipsis} ${CSS$l.ellipsisStart}` }, "\u2026");
|
|
21460
21483
|
}
|
|
21461
21484
|
}
|
|
21462
21485
|
renderRightEllipsis() {
|
|
21463
21486
|
if (this.total / this.num > maxPagesDisplayed && this.showRightEllipsis()) {
|
|
21464
|
-
return hAsync("span", { class: `${CSS$
|
|
21487
|
+
return hAsync("span", { class: `${CSS$l.ellipsis} ${CSS$l.ellipsisEnd}` }, "\u2026");
|
|
21465
21488
|
}
|
|
21466
21489
|
}
|
|
21467
21490
|
render() {
|
|
@@ -21469,11 +21492,11 @@ class CalcitePagination {
|
|
|
21469
21492
|
const prevDisabled = num === 1 ? start <= num : start < num;
|
|
21470
21493
|
const nextDisabled = num === 1 ? start + num > total : start + num > total;
|
|
21471
21494
|
return (hAsync(Fragment, null, hAsync("button", { "aria-label": this.textLabelPrevious, class: {
|
|
21472
|
-
[CSS$
|
|
21473
|
-
[CSS$
|
|
21495
|
+
[CSS$l.previous]: true,
|
|
21496
|
+
[CSS$l.disabled]: prevDisabled
|
|
21474
21497
|
}, disabled: prevDisabled, onClick: this.previousClicked }, hAsync("calcite-icon", { flipRtl: true, icon: "chevronLeft", scale: "s" })), total > num ? this.renderPage(1) : null, this.renderLeftEllipsis(), this.renderPages(), this.renderRightEllipsis(), this.renderPage(this.getLastStart()), hAsync("button", { "aria-label": this.textLabelNext, class: {
|
|
21475
|
-
[CSS$
|
|
21476
|
-
[CSS$
|
|
21498
|
+
[CSS$l.next]: true,
|
|
21499
|
+
[CSS$l.disabled]: nextDisabled
|
|
21477
21500
|
}, disabled: nextDisabled, onClick: this.nextClicked }, hAsync("calcite-icon", { flipRtl: true, icon: "chevronRight", scale: "s" }))));
|
|
21478
21501
|
}
|
|
21479
21502
|
get el() { return getElement(this); }
|
|
@@ -21497,7 +21520,7 @@ class CalcitePagination {
|
|
|
21497
21520
|
}; }
|
|
21498
21521
|
}
|
|
21499
21522
|
|
|
21500
|
-
const CSS$
|
|
21523
|
+
const CSS$k = {
|
|
21501
21524
|
backButton: "back-button",
|
|
21502
21525
|
container: "container",
|
|
21503
21526
|
header: "header",
|
|
@@ -21648,24 +21671,24 @@ class CalcitePanel {
|
|
|
21648
21671
|
const { showBackButton, intlBack, backButtonClick } = this;
|
|
21649
21672
|
const label = intlBack || TEXT$8.back;
|
|
21650
21673
|
const icon = rtl ? ICONS$5.backRight : ICONS$5.backLeft;
|
|
21651
|
-
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$
|
|
21674
|
+
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$k.backButton, icon: icon, key: "back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: SLOTS$c.headerActionsStart, text: label })) : null;
|
|
21652
21675
|
}
|
|
21653
21676
|
renderHeaderContent() {
|
|
21654
21677
|
const { heading, headingLevel, summary } = this;
|
|
21655
|
-
const headingNode = heading ? (hAsync(CalciteHeading, { class: CSS$
|
|
21656
|
-
const summaryNode = summary ? hAsync("span", { class: CSS$
|
|
21657
|
-
return headingNode || summaryNode ? (hAsync("div", { class: CSS$
|
|
21678
|
+
const headingNode = heading ? (hAsync(CalciteHeading, { class: CSS$k.heading, level: headingLevel || HEADING_LEVEL$4 }, heading)) : null;
|
|
21679
|
+
const summaryNode = summary ? hAsync("span", { class: CSS$k.summary }, summary) : null;
|
|
21680
|
+
return headingNode || summaryNode ? (hAsync("div", { class: CSS$k.headerContent, key: "header-content" }, headingNode, summaryNode)) : null;
|
|
21658
21681
|
}
|
|
21659
21682
|
/**
|
|
21660
21683
|
* Allows user to override the entire header-content node.
|
|
21661
21684
|
*/
|
|
21662
21685
|
renderHeaderSlottedContent() {
|
|
21663
|
-
return (hAsync("div", { class: CSS$
|
|
21686
|
+
return (hAsync("div", { class: CSS$k.headerContent, key: "header-content" }, hAsync("slot", { name: SLOTS$c.headerContent })));
|
|
21664
21687
|
}
|
|
21665
21688
|
renderHeaderStartActions() {
|
|
21666
21689
|
const { el } = this;
|
|
21667
21690
|
const hasStartActions = getSlotted(el, SLOTS$c.headerActionsStart);
|
|
21668
|
-
return hasStartActions ? (hAsync("div", { class: { [CSS$
|
|
21691
|
+
return hasStartActions ? (hAsync("div", { class: { [CSS$k.headerActionsStart]: true, [CSS$k.headerActions]: true }, key: "header-actions-start" }, hAsync("slot", { name: SLOTS$c.headerActionsStart }))) : null;
|
|
21669
21692
|
}
|
|
21670
21693
|
renderHeaderActionsEnd() {
|
|
21671
21694
|
const { dismiss, dismissible, el, intlClose } = this;
|
|
@@ -21673,7 +21696,7 @@ class CalcitePanel {
|
|
|
21673
21696
|
const dismissibleNode = dismissible ? (hAsync("calcite-action", { "aria-label": text, icon: ICONS$5.close, onClick: dismiss, ref: this.setDismissRef, text: text })) : null;
|
|
21674
21697
|
const slotNode = hAsync("slot", { name: SLOTS$c.headerActionsEnd });
|
|
21675
21698
|
const hasEndActions = getSlotted(el, SLOTS$c.headerActionsEnd);
|
|
21676
|
-
return hasEndActions || dismissibleNode ? (hAsync("div", { class: { [CSS$
|
|
21699
|
+
return hasEndActions || dismissibleNode ? (hAsync("div", { class: { [CSS$k.headerActionsEnd]: true, [CSS$k.headerActions]: true }, key: "header-actions-end" }, slotNode, dismissibleNode)) : null;
|
|
21677
21700
|
}
|
|
21678
21701
|
renderMenu() {
|
|
21679
21702
|
const { el, intlOptions, menuOpen } = this;
|
|
@@ -21694,7 +21717,7 @@ class CalcitePanel {
|
|
|
21694
21717
|
headerContentNode ||
|
|
21695
21718
|
actionsNodeEnd ||
|
|
21696
21719
|
headerMenuNode ||
|
|
21697
|
-
showBackButton ? (hAsync("header", { class: CSS$
|
|
21720
|
+
showBackButton ? (hAsync("header", { class: CSS$k.header }, backButtonNode, actionsNodeStart, headerContentNode, actionsNodeEnd, headerMenuNode)) : null;
|
|
21698
21721
|
}
|
|
21699
21722
|
/**
|
|
21700
21723
|
* Allows user to override the entire footer node.
|
|
@@ -21702,24 +21725,24 @@ class CalcitePanel {
|
|
|
21702
21725
|
renderFooterSlottedContent() {
|
|
21703
21726
|
const { el } = this;
|
|
21704
21727
|
const hasFooterSlottedContent = getSlotted(el, SLOTS$c.footer);
|
|
21705
|
-
return hasFooterSlottedContent ? (hAsync("footer", { class: CSS$
|
|
21728
|
+
return hasFooterSlottedContent ? (hAsync("footer", { class: CSS$k.footer }, hAsync("slot", { name: SLOTS$c.footer }))) : null;
|
|
21706
21729
|
}
|
|
21707
21730
|
renderFooterActions() {
|
|
21708
21731
|
const { el } = this;
|
|
21709
21732
|
const hasFooterActions = getSlotted(el, SLOTS$c.footerActions);
|
|
21710
|
-
return hasFooterActions ? (hAsync("footer", { class: CSS$
|
|
21733
|
+
return hasFooterActions ? (hAsync("footer", { class: CSS$k.footer }, hAsync("slot", { name: SLOTS$c.footerActions }))) : null;
|
|
21711
21734
|
}
|
|
21712
21735
|
renderContent() {
|
|
21713
21736
|
const { el } = this;
|
|
21714
21737
|
const hasFab = getSlotted(el, SLOTS$c.fab);
|
|
21715
|
-
return hasFab ? (hAsync("div", { class: { [CSS$
|
|
21738
|
+
return hasFab ? (hAsync("div", { class: { [CSS$k.contentWrapper]: true, [CSS$k.contentHeight]: true }, onScroll: this.panelScrollHandler, tabIndex: 0 }, hAsync("section", { class: CSS$k.contentContainer }, hAsync("slot", null)), this.renderFab())) : (hAsync("section", { class: { [CSS$k.contentWrapper]: true, [CSS$k.contentContainer]: true }, onScroll: this.panelScrollHandler, tabIndex: 0 }, hAsync("slot", null)));
|
|
21716
21739
|
}
|
|
21717
21740
|
renderFab() {
|
|
21718
|
-
return (hAsync("div", { class: CSS$
|
|
21741
|
+
return (hAsync("div", { class: CSS$k.fabContainer }, hAsync("slot", { name: SLOTS$c.fab })));
|
|
21719
21742
|
}
|
|
21720
21743
|
render() {
|
|
21721
21744
|
const { dismissed, disabled, dismissible, loading, panelKeyDownHandler } = this;
|
|
21722
|
-
const panelNode = (hAsync("article", { "aria-busy": loading.toString(), class: CSS$
|
|
21745
|
+
const panelNode = (hAsync("article", { "aria-busy": loading.toString(), class: CSS$k.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.renderFooterSlottedContent() || this.renderFooterActions()));
|
|
21723
21746
|
return (hAsync(Fragment, null, loading || disabled ? hAsync("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
21724
21747
|
}
|
|
21725
21748
|
get el() { return getElement(this); }
|
|
@@ -21754,7 +21777,7 @@ class CalcitePanel {
|
|
|
21754
21777
|
}; }
|
|
21755
21778
|
}
|
|
21756
21779
|
|
|
21757
|
-
const CSS$
|
|
21780
|
+
const CSS$j = {
|
|
21758
21781
|
sticky: "sticky-pos"
|
|
21759
21782
|
};
|
|
21760
21783
|
var ICON_TYPES$1;
|
|
@@ -22035,7 +22058,7 @@ const List = (_a) => {
|
|
|
22035
22058
|
const defaultSlot = hAsync("slot", null);
|
|
22036
22059
|
return (hAsync(Host, Object.assign({ "aria-busy": loading.toString(), "aria-disabled": disabled.toString(), role: "menu" }, rest),
|
|
22037
22060
|
hAsync("section", null,
|
|
22038
|
-
hAsync("header", { class: { [CSS$
|
|
22061
|
+
hAsync("header", { class: { [CSS$j.sticky]: true } },
|
|
22039
22062
|
filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,
|
|
22040
22063
|
hAsync("slot", { name: SLOTS$b.menuActions })),
|
|
22041
22064
|
loading || disabled ? hAsync("calcite-scrim", { loading: loading }) : null,
|
|
@@ -22187,7 +22210,7 @@ class CalcitePickList {
|
|
|
22187
22210
|
}; }
|
|
22188
22211
|
}
|
|
22189
22212
|
|
|
22190
|
-
const CSS$
|
|
22213
|
+
const CSS$i = {
|
|
22191
22214
|
heading: "heading",
|
|
22192
22215
|
container: "container",
|
|
22193
22216
|
indented: "container--indented"
|
|
@@ -22216,14 +22239,14 @@ class CalcitePickListGroup {
|
|
|
22216
22239
|
const { el, groupTitle, headingLevel } = this;
|
|
22217
22240
|
const hasParentItem = getSlotted(el, SLOTS$a.parentItem) !== null;
|
|
22218
22241
|
const sectionClasses = {
|
|
22219
|
-
[CSS$
|
|
22220
|
-
[CSS$
|
|
22242
|
+
[CSS$i.container]: true,
|
|
22243
|
+
[CSS$i.indented]: hasParentItem
|
|
22221
22244
|
};
|
|
22222
22245
|
const title = groupTitle;
|
|
22223
22246
|
const parentLevel = (_a = el.closest("calcite-pick-list")) === null || _a === void 0 ? void 0 : _a.headingLevel;
|
|
22224
22247
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
22225
22248
|
const level = headingLevel || relativeLevel || HEADING_LEVEL$3;
|
|
22226
|
-
return (hAsync(Fragment, null, title ? (hAsync(CalciteHeading, { class: CSS$
|
|
22249
|
+
return (hAsync(Fragment, null, title ? (hAsync(CalciteHeading, { class: CSS$i.heading, level: level }, title)) : null, hAsync("slot", { name: SLOTS$a.parentItem }), hAsync("section", { class: sectionClasses }, hAsync("slot", null))));
|
|
22227
22250
|
}
|
|
22228
22251
|
get el() { return getElement(this); }
|
|
22229
22252
|
static get style() { return calcitePickListGroupCss; }
|
|
@@ -22240,7 +22263,7 @@ class CalcitePickListGroup {
|
|
|
22240
22263
|
}; }
|
|
22241
22264
|
}
|
|
22242
22265
|
|
|
22243
|
-
const CSS$
|
|
22266
|
+
const CSS$h = {
|
|
22244
22267
|
actions: "actions",
|
|
22245
22268
|
actionsEnd: "actions--end",
|
|
22246
22269
|
actionsStart: "actions--start",
|
|
@@ -22387,26 +22410,26 @@ class CalcitePickListItem {
|
|
|
22387
22410
|
return null;
|
|
22388
22411
|
}
|
|
22389
22412
|
return (hAsync("span", { class: {
|
|
22390
|
-
[CSS$
|
|
22391
|
-
[CSS$
|
|
22413
|
+
[CSS$h.icon]: true,
|
|
22414
|
+
[CSS$h.iconDot]: icon === ICON_TYPES$1.circle
|
|
22392
22415
|
}, onClick: this.pickListClickHandler }, icon === ICON_TYPES$1.square ? hAsync("calcite-icon", { icon: ICONS$4.checked, scale: "s" }) : null));
|
|
22393
22416
|
}
|
|
22394
22417
|
renderRemoveAction() {
|
|
22395
|
-
return this.removable ? (hAsync("calcite-action", { class: CSS$
|
|
22418
|
+
return this.removable ? (hAsync("calcite-action", { class: CSS$h.remove, icon: ICONS$4.remove, onCalciteActionClick: this.removeClickHandler, slot: SLOTS$9.actionsEnd, text: this.intlRemove })) : null;
|
|
22396
22419
|
}
|
|
22397
22420
|
renderActionsStart() {
|
|
22398
22421
|
const { el } = this;
|
|
22399
22422
|
const hasActionsStart = getSlotted(el, SLOTS$9.actionsStart);
|
|
22400
|
-
return hasActionsStart ? (hAsync("div", { class: { [CSS$
|
|
22423
|
+
return hasActionsStart ? (hAsync("div", { class: { [CSS$h.actions]: true, [CSS$h.actionsStart]: true } }, hAsync("slot", { name: SLOTS$9.actionsStart }))) : null;
|
|
22401
22424
|
}
|
|
22402
22425
|
renderActionsEnd() {
|
|
22403
22426
|
const { el, removable } = this;
|
|
22404
22427
|
const hasActionsEnd = getSlotted(el, SLOTS$9.actionsEnd);
|
|
22405
|
-
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$
|
|
22428
|
+
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$h.actions]: true, [CSS$h.actionsEnd]: true } }, hAsync("slot", { name: SLOTS$9.actionsEnd }), this.renderRemoveAction())) : null;
|
|
22406
22429
|
}
|
|
22407
22430
|
render() {
|
|
22408
22431
|
const { description, label } = this;
|
|
22409
|
-
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$
|
|
22432
|
+
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$h.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, ref: (focusEl) => (this.focusEl = focusEl), tabIndex: 0 }, hAsync("div", { "aria-checked": this.selected.toString(), class: CSS$h.textContainer, role: "menuitemcheckbox" }, hAsync("span", { class: CSS$h.title }, label), description ? hAsync("span", { class: CSS$h.description }, description) : null)), this.renderActionsEnd()));
|
|
22410
22433
|
}
|
|
22411
22434
|
get el() { return getElement(this); }
|
|
22412
22435
|
static get watchers() { return {
|
|
@@ -22441,7 +22464,7 @@ class CalcitePickListItem {
|
|
|
22441
22464
|
}; }
|
|
22442
22465
|
}
|
|
22443
22466
|
|
|
22444
|
-
const CSS$
|
|
22467
|
+
const CSS$g = {
|
|
22445
22468
|
container: "container",
|
|
22446
22469
|
arrow: "arrow",
|
|
22447
22470
|
imageContainer: "image-container",
|
|
@@ -22640,7 +22663,7 @@ class CalcitePopover {
|
|
|
22640
22663
|
getReferenceElement() {
|
|
22641
22664
|
const { referenceElement, el } = this;
|
|
22642
22665
|
return ((typeof referenceElement === "string"
|
|
22643
|
-
? queryElementRoots(el,
|
|
22666
|
+
? queryElementRoots(el, { id: referenceElement })
|
|
22644
22667
|
: referenceElement) || null);
|
|
22645
22668
|
}
|
|
22646
22669
|
getModifiers() {
|
|
@@ -22698,25 +22721,25 @@ class CalcitePopover {
|
|
|
22698
22721
|
// --------------------------------------------------------------------------
|
|
22699
22722
|
renderCloseButton() {
|
|
22700
22723
|
const { dismissible, closeButton, intlClose } = this;
|
|
22701
|
-
return dismissible || closeButton ? (hAsync("calcite-action", { class: CSS$
|
|
22724
|
+
return dismissible || closeButton ? (hAsync("calcite-action", { class: CSS$g.closeButton, onClick: this.hide, ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl), text: intlClose }, hAsync("calcite-icon", { icon: "x", scale: "m" }))) : null;
|
|
22702
22725
|
}
|
|
22703
22726
|
renderHeader() {
|
|
22704
22727
|
const { heading, headingLevel } = this;
|
|
22705
|
-
const headingNode = heading ? (hAsync(CalciteHeading, { class: CSS$
|
|
22706
|
-
return headingNode ? (hAsync("div", { class: CSS$
|
|
22728
|
+
const headingNode = heading ? (hAsync(CalciteHeading, { class: CSS$g.heading, level: headingLevel || HEADING_LEVEL$2 }, heading)) : null;
|
|
22729
|
+
return headingNode ? (hAsync("div", { class: CSS$g.header }, headingNode, this.renderCloseButton())) : null;
|
|
22707
22730
|
}
|
|
22708
22731
|
render() {
|
|
22709
22732
|
const { effectiveReferenceElement, heading, label, open, disablePointer } = this;
|
|
22710
22733
|
const displayed = effectiveReferenceElement && open;
|
|
22711
22734
|
const hidden = !displayed;
|
|
22712
|
-
const arrowNode = !disablePointer ? (hAsync("div", { class: CSS$
|
|
22735
|
+
const arrowNode = !disablePointer ? (hAsync("div", { class: CSS$g.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) })) : null;
|
|
22713
22736
|
return (hAsync(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, hAsync("div", { class: {
|
|
22714
|
-
[CSS$
|
|
22715
|
-
[CSS$
|
|
22737
|
+
[CSS$D.animation]: true,
|
|
22738
|
+
[CSS$D.animationActive]: displayed
|
|
22716
22739
|
}, onTransitionEnd: this.transitionEnd }, arrowNode, hAsync("div", { class: {
|
|
22717
|
-
[CSS$
|
|
22718
|
-
[CSS$
|
|
22719
|
-
} }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
22740
|
+
[CSS$g.hasHeader]: !!heading,
|
|
22741
|
+
[CSS$g.container]: true
|
|
22742
|
+
} }, this.renderHeader(), hAsync("div", { class: CSS$g.content }, hAsync("slot", null)), !heading ? this.renderCloseButton() : null))));
|
|
22720
22743
|
}
|
|
22721
22744
|
get el() { return getElement(this); }
|
|
22722
22745
|
static get watchers() { return {
|
|
@@ -22788,7 +22811,7 @@ class CalcitePopoverManager {
|
|
|
22788
22811
|
var _a;
|
|
22789
22812
|
const { selector, el } = this;
|
|
22790
22813
|
const id = (_a = element.closest(selector)) === null || _a === void 0 ? void 0 : _a.getAttribute(POPOVER_REFERENCE);
|
|
22791
|
-
return queryElementRoots(el,
|
|
22814
|
+
return queryElementRoots(el, { id });
|
|
22792
22815
|
};
|
|
22793
22816
|
}
|
|
22794
22817
|
// --------------------------------------------------------------------------
|
|
@@ -22874,7 +22897,7 @@ class CalciteProgress {
|
|
|
22874
22897
|
}; }
|
|
22875
22898
|
}
|
|
22876
22899
|
|
|
22877
|
-
const CSS$
|
|
22900
|
+
const CSS$f = {
|
|
22878
22901
|
container: "container"
|
|
22879
22902
|
};
|
|
22880
22903
|
|
|
@@ -23119,7 +23142,7 @@ class CalciteRadioButton {
|
|
|
23119
23142
|
// --------------------------------------------------------------------------
|
|
23120
23143
|
render() {
|
|
23121
23144
|
const tabIndex = this.getTabIndex();
|
|
23122
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: CSS$
|
|
23145
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: CSS$f.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, ref: this.setContainerEl, role: "radio", tabIndex: tabIndex }, hAsync("div", { class: "radio" })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
23123
23146
|
}
|
|
23124
23147
|
get el() { return getElement(this); }
|
|
23125
23148
|
static get watchers() { return {
|
|
@@ -23466,7 +23489,7 @@ class CalciteRadioGroup {
|
|
|
23466
23489
|
const SLOTS$8 = {
|
|
23467
23490
|
input: "input"
|
|
23468
23491
|
};
|
|
23469
|
-
const CSS$
|
|
23492
|
+
const CSS$e = {
|
|
23470
23493
|
radioGroupItemIcon: "radio-group-item-icon"
|
|
23471
23494
|
};
|
|
23472
23495
|
|
|
@@ -23487,37 +23510,16 @@ class CalciteRadioGroupItem {
|
|
|
23487
23510
|
this.iconFlipRtl = false;
|
|
23488
23511
|
/** optionally used with icon, select where to position the icon */
|
|
23489
23512
|
this.iconPosition = "start";
|
|
23490
|
-
this.mutationObserver = createObserver();
|
|
23491
23513
|
}
|
|
23492
23514
|
handleCheckedChange() {
|
|
23493
23515
|
this.calciteRadioGroupItemChange.emit();
|
|
23494
|
-
this.syncToExternalInput();
|
|
23495
|
-
}
|
|
23496
|
-
//--------------------------------------------------------------------------
|
|
23497
|
-
//
|
|
23498
|
-
// Lifecycle
|
|
23499
|
-
//
|
|
23500
|
-
//--------------------------------------------------------------------------
|
|
23501
|
-
connectedCallback() {
|
|
23502
|
-
var _a;
|
|
23503
|
-
const inputProxy = this.el.querySelector(`input[slot=${SLOTS$8.input}]`);
|
|
23504
|
-
if (inputProxy) {
|
|
23505
|
-
this.value = inputProxy.value;
|
|
23506
|
-
this.checked = inputProxy.checked;
|
|
23507
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(inputProxy, { attributes: true });
|
|
23508
|
-
}
|
|
23509
|
-
this.inputProxy = inputProxy;
|
|
23510
|
-
}
|
|
23511
|
-
disconnectedCallback() {
|
|
23512
|
-
var _a;
|
|
23513
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
23514
23516
|
}
|
|
23515
23517
|
render() {
|
|
23516
23518
|
const { checked, value } = this;
|
|
23517
23519
|
const scale = getElementProp(this.el, "scale", "m");
|
|
23518
23520
|
const appearance = getElementProp(this.el, "appearance", "solid");
|
|
23519
23521
|
const layout = getElementProp(this.el, "layout", "horizontal");
|
|
23520
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
23522
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$e.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
23521
23523
|
return (hAsync(Host, { "aria-checked": checked.toString(), role: "radio" }, hAsync("label", { class: {
|
|
23522
23524
|
"label--scale-s": scale === "s",
|
|
23523
23525
|
"label--scale-m": scale === "m",
|
|
@@ -23526,29 +23528,6 @@ class CalciteRadioGroupItem {
|
|
|
23526
23528
|
"label--outline": appearance === "outline"
|
|
23527
23529
|
} }, this.icon && this.iconPosition === "start" ? iconEl : null, hAsync("slot", null, value), hAsync("slot", { name: SLOTS$8.input }), this.icon && this.iconPosition === "end" ? iconEl : null)));
|
|
23528
23530
|
}
|
|
23529
|
-
//--------------------------------------------------------------------------
|
|
23530
|
-
//
|
|
23531
|
-
// Private Methods
|
|
23532
|
-
//
|
|
23533
|
-
//--------------------------------------------------------------------------
|
|
23534
|
-
syncFromExternalInput() {
|
|
23535
|
-
if (this.inputProxy) {
|
|
23536
|
-
this.value = this.inputProxy.value;
|
|
23537
|
-
this.checked = this.inputProxy.checked;
|
|
23538
|
-
}
|
|
23539
|
-
}
|
|
23540
|
-
syncToExternalInput() {
|
|
23541
|
-
if (!this.inputProxy) {
|
|
23542
|
-
return;
|
|
23543
|
-
}
|
|
23544
|
-
this.inputProxy.value = this.value;
|
|
23545
|
-
if (this.checked) {
|
|
23546
|
-
this.inputProxy.setAttribute("checked", "");
|
|
23547
|
-
}
|
|
23548
|
-
else {
|
|
23549
|
-
this.inputProxy.removeAttribute("checked");
|
|
23550
|
-
}
|
|
23551
|
-
}
|
|
23552
23531
|
get el() { return getElement(this); }
|
|
23553
23532
|
static get watchers() { return {
|
|
23554
23533
|
"checked": ["handleCheckedChange"]
|
|
@@ -23708,7 +23687,7 @@ class CalciteRating {
|
|
|
23708
23687
|
}; }
|
|
23709
23688
|
}
|
|
23710
23689
|
|
|
23711
|
-
const CSS$
|
|
23690
|
+
const CSS$d = {
|
|
23712
23691
|
scrim: "scrim",
|
|
23713
23692
|
content: "content"
|
|
23714
23693
|
};
|
|
@@ -23748,8 +23727,8 @@ class CalciteScrim {
|
|
|
23748
23727
|
const { el, loading, intlLoading } = this;
|
|
23749
23728
|
const hasContent = el.innerHTML.trim().length > 0;
|
|
23750
23729
|
const loaderNode = loading ? hAsync("calcite-loader", { active: true, label: intlLoading }) : null;
|
|
23751
|
-
const contentNode = hasContent ? (hAsync("div", { class: CSS$
|
|
23752
|
-
return (hAsync("div", { class: CSS$
|
|
23730
|
+
const contentNode = hasContent ? (hAsync("div", { class: CSS$d.content }, hAsync("slot", null))) : null;
|
|
23731
|
+
return (hAsync("div", { class: CSS$d.scrim }, loaderNode, contentNode));
|
|
23753
23732
|
}
|
|
23754
23733
|
get el() { return getElement(this); }
|
|
23755
23734
|
static get style() { return calciteScrimCss; }
|
|
@@ -23766,7 +23745,7 @@ class CalciteScrim {
|
|
|
23766
23745
|
}; }
|
|
23767
23746
|
}
|
|
23768
23747
|
|
|
23769
|
-
const CSS$
|
|
23748
|
+
const CSS$c = {
|
|
23770
23749
|
icon: "icon",
|
|
23771
23750
|
iconContainer: "icon-container",
|
|
23772
23751
|
select: "select"
|
|
@@ -23962,10 +23941,10 @@ class CalciteSelect {
|
|
|
23962
23941
|
//
|
|
23963
23942
|
//--------------------------------------------------------------------------
|
|
23964
23943
|
renderChevron() {
|
|
23965
|
-
return (hAsync("div", { class: CSS$
|
|
23944
|
+
return (hAsync("div", { class: CSS$c.iconContainer }, hAsync("calcite-icon", { class: CSS$c.icon, icon: "chevron-down", scale: "s" })));
|
|
23966
23945
|
}
|
|
23967
23946
|
render() {
|
|
23968
|
-
return (hAsync(Fragment, null, hAsync("select", { "aria-label": this.label, class: CSS$
|
|
23947
|
+
return (hAsync(Fragment, null, hAsync("select", { "aria-label": this.label, class: CSS$c.select, disabled: this.disabled, onChange: this.handleInternalSelectChange, ref: this.storeSelectRef }, hAsync("slot", null)), this.renderChevron(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
23969
23948
|
}
|
|
23970
23949
|
get el() { return getElement(this); }
|
|
23971
23950
|
static get watchers() { return {
|
|
@@ -23993,7 +23972,7 @@ class CalciteSelect {
|
|
|
23993
23972
|
}; }
|
|
23994
23973
|
}
|
|
23995
23974
|
|
|
23996
|
-
const CSS$
|
|
23975
|
+
const CSS$b = {
|
|
23997
23976
|
main: "main",
|
|
23998
23977
|
mainReversed: "main--reversed",
|
|
23999
23978
|
content: "content",
|
|
@@ -24044,25 +24023,25 @@ class CalciteShell {
|
|
|
24044
24023
|
const content = !!this.contentBehind
|
|
24045
24024
|
? [
|
|
24046
24025
|
hAsync("div", { class: {
|
|
24047
|
-
[CSS$
|
|
24048
|
-
[CSS$
|
|
24026
|
+
[CSS$b.content]: true,
|
|
24027
|
+
[CSS$b.contentBehind]: !!this.contentBehind
|
|
24049
24028
|
} }, hAsync("slot", null)),
|
|
24050
24029
|
hAsync("slot", { name: SLOTS$7.centerRow })
|
|
24051
24030
|
]
|
|
24052
24031
|
: [
|
|
24053
|
-
hAsync("div", { class: CSS$
|
|
24032
|
+
hAsync("div", { class: CSS$b.content }, hAsync("slot", null), hAsync("slot", { name: SLOTS$7.centerRow }))
|
|
24054
24033
|
];
|
|
24055
24034
|
return content;
|
|
24056
24035
|
}
|
|
24057
24036
|
renderFooter() {
|
|
24058
24037
|
const hasFooter = !!getSlotted(this.el, SLOTS$7.footer);
|
|
24059
|
-
return hasFooter ? (hAsync("div", { class: CSS$
|
|
24038
|
+
return hasFooter ? (hAsync("div", { class: CSS$b.footer }, hAsync("slot", { name: SLOTS$7.footer }))) : null;
|
|
24060
24039
|
}
|
|
24061
24040
|
renderMain() {
|
|
24062
24041
|
const primaryPanel = getSlotted(this.el, SLOTS$7.primaryPanel);
|
|
24063
24042
|
const mainClasses = {
|
|
24064
|
-
[CSS$
|
|
24065
|
-
[CSS$
|
|
24043
|
+
[CSS$b.main]: true,
|
|
24044
|
+
[CSS$b.mainReversed]: (primaryPanel === null || primaryPanel === void 0 ? void 0 : primaryPanel.position) === "end"
|
|
24066
24045
|
};
|
|
24067
24046
|
return (hAsync("div", { class: mainClasses }, hAsync("slot", { name: SLOTS$7.primaryPanel }), this.renderContent(), hAsync("slot", { name: SLOTS$7.contextualPanel })));
|
|
24068
24047
|
}
|
|
@@ -24083,7 +24062,7 @@ class CalciteShell {
|
|
|
24083
24062
|
}; }
|
|
24084
24063
|
}
|
|
24085
24064
|
|
|
24086
|
-
const CSS$
|
|
24065
|
+
const CSS$a = {
|
|
24087
24066
|
actionBarContainer: "action-bar-container",
|
|
24088
24067
|
content: "content"
|
|
24089
24068
|
};
|
|
@@ -24125,9 +24104,9 @@ class CalciteShellCenterRow {
|
|
|
24125
24104
|
// --------------------------------------------------------------------------
|
|
24126
24105
|
render() {
|
|
24127
24106
|
const { el } = this;
|
|
24128
|
-
const contentNode = (hAsync("div", { class: CSS$
|
|
24107
|
+
const contentNode = (hAsync("div", { class: CSS$a.content }, hAsync("slot", null)));
|
|
24129
24108
|
const actionBar = getSlotted(el, SLOTS$6.actionBar);
|
|
24130
|
-
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$
|
|
24109
|
+
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$a.actionBarContainer }, hAsync("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
24131
24110
|
const children = [actionBarNode, contentNode];
|
|
24132
24111
|
if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
|
|
24133
24112
|
children.reverse();
|
|
@@ -24150,7 +24129,7 @@ class CalciteShellCenterRow {
|
|
|
24150
24129
|
}; }
|
|
24151
24130
|
}
|
|
24152
24131
|
|
|
24153
|
-
const CSS$
|
|
24132
|
+
const CSS$9 = {
|
|
24154
24133
|
container: "container",
|
|
24155
24134
|
content: "content",
|
|
24156
24135
|
contentHeader: "content__header",
|
|
@@ -24329,19 +24308,19 @@ class CalciteShellPanel {
|
|
|
24329
24308
|
renderHeader() {
|
|
24330
24309
|
const { el } = this;
|
|
24331
24310
|
const hasHeader = getSlotted(el, SLOTS$5.header);
|
|
24332
|
-
return hasHeader ? (hAsync("div", { class: CSS$
|
|
24311
|
+
return hasHeader ? (hAsync("div", { class: CSS$9.contentHeader }, hAsync("slot", { name: SLOTS$5.header }))) : null;
|
|
24333
24312
|
}
|
|
24334
24313
|
render() {
|
|
24335
24314
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
24336
24315
|
const allowResizing = !detached && resizable;
|
|
24337
|
-
const contentNode = (hAsync("div", { class: { [CSS$
|
|
24338
|
-
const separatorNode = allowResizing ? (hAsync("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$
|
|
24316
|
+
const contentNode = (hAsync("div", { class: { [CSS$9.content]: true, [CSS$9.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), hAsync("div", { class: CSS$9.contentBody }, hAsync("slot", null))));
|
|
24317
|
+
const separatorNode = allowResizing ? (hAsync("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$9.separator, onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
24339
24318
|
const actionBarNode = hAsync("slot", { name: SLOTS$5.actionBar });
|
|
24340
24319
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
24341
24320
|
if (position === "end") {
|
|
24342
24321
|
mainNodes.reverse();
|
|
24343
24322
|
}
|
|
24344
|
-
return hAsync("div", { class: { [CSS$
|
|
24323
|
+
return hAsync("div", { class: { [CSS$9.container]: true } }, mainNodes);
|
|
24345
24324
|
}
|
|
24346
24325
|
// --------------------------------------------------------------------------
|
|
24347
24326
|
//
|
|
@@ -28162,7 +28141,7 @@ _extends(Remove, {
|
|
|
28162
28141
|
Sortable.mount(new AutoScrollPlugin());
|
|
28163
28142
|
Sortable.mount(Remove, Revert);
|
|
28164
28143
|
|
|
28165
|
-
const CSS$
|
|
28144
|
+
const CSS$8 = {
|
|
28166
28145
|
sortItem: "sort-item",
|
|
28167
28146
|
container: "container",
|
|
28168
28147
|
containerHorizontal: "container--horizontal",
|
|
@@ -28308,9 +28287,9 @@ class CalciteSortableList {
|
|
|
28308
28287
|
const { layout } = this;
|
|
28309
28288
|
const horizontal = layout === "horizontal" || false;
|
|
28310
28289
|
return (hAsync("div", { class: {
|
|
28311
|
-
[CSS$
|
|
28312
|
-
[CSS$
|
|
28313
|
-
[CSS$
|
|
28290
|
+
[CSS$8.container]: true,
|
|
28291
|
+
[CSS$8.containerVertical]: !horizontal,
|
|
28292
|
+
[CSS$8.containerHorizontal]: horizontal
|
|
28314
28293
|
} }, hAsync("slot", null)));
|
|
28315
28294
|
}
|
|
28316
28295
|
get el() { return getElement(this); }
|
|
@@ -28333,7 +28312,7 @@ class CalciteSortableList {
|
|
|
28333
28312
|
}; }
|
|
28334
28313
|
}
|
|
28335
28314
|
|
|
28336
|
-
const CSS$
|
|
28315
|
+
const CSS$7 = {
|
|
28337
28316
|
container: "split-button__container",
|
|
28338
28317
|
dividerContainer: "split-button__divider-container",
|
|
28339
28318
|
divider: "split-button__divider",
|
|
@@ -28379,13 +28358,13 @@ class CalciteSplitButton {
|
|
|
28379
28358
|
}
|
|
28380
28359
|
render() {
|
|
28381
28360
|
const widthClasses = {
|
|
28382
|
-
[CSS$
|
|
28383
|
-
[CSS$
|
|
28384
|
-
[CSS$
|
|
28385
|
-
[CSS$
|
|
28361
|
+
[CSS$7.container]: true,
|
|
28362
|
+
[CSS$7.widthAuto]: this.width === "auto",
|
|
28363
|
+
[CSS$7.widthHalf]: this.width === "half",
|
|
28364
|
+
[CSS$7.widthFull]: this.width === "full"
|
|
28386
28365
|
};
|
|
28387
28366
|
const buttonWidth = this.width === "auto" ? "auto" : "full";
|
|
28388
|
-
return (hAsync("div", { class: widthClasses }, hAsync("calcite-button", { appearance: this.appearance, color: this.color, disabled: this.disabled, "icon-end": this.primaryIconEnd ? this.primaryIconEnd : null, "icon-start": this.primaryIconStart ? this.primaryIconStart : null, iconFlipRtl: this.primaryIconFlipRtl ? this.primaryIconFlipRtl : null, label: this.primaryLabel, loading: this.loading, onClick: this.calciteSplitButtonPrimaryClickHandler, scale: this.scale, splitChild: "primary", width: buttonWidth }, this.primaryText), hAsync("div", { class: CSS$
|
|
28367
|
+
return (hAsync("div", { class: widthClasses }, hAsync("calcite-button", { appearance: this.appearance, color: this.color, disabled: this.disabled, "icon-end": this.primaryIconEnd ? this.primaryIconEnd : null, "icon-start": this.primaryIconStart ? this.primaryIconStart : null, iconFlipRtl: this.primaryIconFlipRtl ? this.primaryIconFlipRtl : null, label: this.primaryLabel, loading: this.loading, onClick: this.calciteSplitButtonPrimaryClickHandler, scale: this.scale, splitChild: "primary", width: buttonWidth }, this.primaryText), hAsync("div", { class: CSS$7.dividerContainer }, hAsync("div", { class: CSS$7.divider })), hAsync("calcite-dropdown", { active: this.active, onClick: this.calciteSplitButtonSecondaryClickHandler, overlayPositioning: this.overlayPositioning, placement: "bottom-trailing", scale: this.scale, width: this.scale }, hAsync("calcite-button", { appearance: this.appearance, color: this.color, disabled: this.disabled, "icon-start": this.dropdownIcon, label: this.dropdownLabel, scale: this.scale, slot: "dropdown-trigger", splitChild: "secondary" }), hAsync("slot", null))));
|
|
28389
28368
|
}
|
|
28390
28369
|
get dropdownIcon() {
|
|
28391
28370
|
return this.dropdownIconType === "chevron"
|
|
@@ -29639,7 +29618,7 @@ const SLOTS$3 = {
|
|
|
29639
29618
|
contentEnd: "content-end"
|
|
29640
29619
|
};
|
|
29641
29620
|
|
|
29642
|
-
const calciteTileCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-tile:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-tile{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-tile{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tile{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tile{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tile{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tile:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-tile-h{display:none}/*!@:host*/.sc-calcite-tile-h{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host
|
|
29621
|
+
const calciteTileCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-tile:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-tile{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-tile{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tile{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tile{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tile{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tile:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-tile-h{display:none}/*!@:host*/.sc-calcite-tile-h{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .container*/.sc-calcite-tile-h .container.sc-calcite-tile{pointer-events:none;display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:0.5rem}/*!@:host .content*/.sc-calcite-tile-h .content.sc-calcite-tile{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;gap:0.5rem;width:10%}/*!@:host .content-container*/.sc-calcite-tile-h .content-container.sc-calcite-tile{display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;padding:0px;color:var(--calcite-ui-text-2);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}/*!@:host .content-slot-container*/.sc-calcite-tile-h .content-slot-container.sc-calcite-tile{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--calcite-ui-foreground-1)}/*!@:host .content-slot-container:first-child*/.sc-calcite-tile-h .content-slot-container.sc-calcite-tile:first-child{padding-right:0.75rem}/*!@:host .content-slot-container:last-child*/.sc-calcite-tile-h .content-slot-container.sc-calcite-tile:last-child{padding-left:0.75rem}/*!@:host .heading*/.sc-calcite-tile-h .heading.sc-calcite-tile{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .large-visual*/.sc-calcite-tile-h .large-visual.sc-calcite-tile{-ms-flex-align:center;align-items:center;text-align:center;min-height:12rem}/*!@:host .large-visual .icon*/.sc-calcite-tile-h .large-visual.sc-calcite-tile .icon.sc-calcite-tile{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:end;align-self:flex-end}/*!@:host .large-visual .content-container*/.sc-calcite-tile-h .large-visual.sc-calcite-tile .content-container.sc-calcite-tile{-ms-flex-item-align:center;align-self:center}/*!@:host .description*/.sc-calcite-tile-h .description.sc-calcite-tile{pointer-events:none;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host(:not([embed]))*/.sc-calcite-tile-h:not([embed]){padding:0.75rem;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2)}/*!@:host(:not([embed])[href]:hover)*/.sc-calcite-tile-h:not([embed])[href]:hover{cursor:pointer;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-brand);box-shadow:0 0 0 2px var(--calcite-ui-brand)}/*!@:host(:not([embed])[href]:active)*/.sc-calcite-tile-h:not([embed])[href]:active{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand);box-shadow:0 0 0 3px var(--calcite-ui-brand)}/*!@:host([icon][heading]:not([description]):not([embed]))*/[icon][heading].sc-calcite-tile-h:not([description]):not([embed]){padding:0px}/*!@:host([disabled])*/[disabled].sc-calcite-tile-h{opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}/*!@:host(:hover) .heading, :host([active]) .heading*/.sc-calcite-tile-h:hover .heading.sc-calcite-tile,[active].sc-calcite-tile-h .heading.sc-calcite-tile{color:var(--calcite-ui-text-1)}/*!@:host(:hover) .description, :host([active]) .description*/.sc-calcite-tile-h:hover .description.sc-calcite-tile,[active].sc-calcite-tile-h .description.sc-calcite-tile{color:var(--calcite-ui-text-2)}";
|
|
29643
29622
|
|
|
29644
29623
|
/**
|
|
29645
29624
|
* @slot content-start - A slot for adding non-actionable elements before the tile content.
|
|
@@ -29710,7 +29689,24 @@ class CalciteTile {
|
|
|
29710
29689
|
}; }
|
|
29711
29690
|
}
|
|
29712
29691
|
|
|
29713
|
-
const
|
|
29692
|
+
const CSS$6 = {
|
|
29693
|
+
checked: "checked",
|
|
29694
|
+
description: "description",
|
|
29695
|
+
descriptionOnly: "description-only",
|
|
29696
|
+
disabled: "disabled",
|
|
29697
|
+
heading: "heading",
|
|
29698
|
+
headingOnly: "heading-only",
|
|
29699
|
+
icon: "icon",
|
|
29700
|
+
iconOnly: "icon-only",
|
|
29701
|
+
inputAlignmentEnd: "input-alignment-end",
|
|
29702
|
+
inputAlignmentStart: "input-alignment-start",
|
|
29703
|
+
inputEnabled: "input-enabled",
|
|
29704
|
+
largeVisual: "large-visual",
|
|
29705
|
+
widthAuto: "width-auto",
|
|
29706
|
+
widthFull: "width-full"
|
|
29707
|
+
};
|
|
29708
|
+
|
|
29709
|
+
const calciteTileSelectCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-tile-select:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-tile-select{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-tile-select{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tile-select{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tile-select{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tile-select{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tile-select:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-tile-select-h{display:none}/*!@:host*/.sc-calcite-tile-select-h{display:block}/*!@:host .container*/.sc-calcite-tile-select-h .container.sc-calcite-tile-select{background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2);-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:inline-block;height:100%;max-width:300px;padding:0.75rem;position:relative;-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out;vertical-align:top;z-index:10}/*!@:host .container.checked*/.sc-calcite-tile-select-h .container.checked.sc-calcite-tile-select{z-index:30;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}/*!@:host .container.heading-only*/.sc-calcite-tile-select-h .container.heading-only.sc-calcite-tile-select{-ms-flex-align:center;align-items:center}/*!@:host .container:not(.input-enabled) ::slotted(calcite-checkbox), :host .container:not(.input-enabled) ::slotted(calcite-radio-button)*/.sc-calcite-tile-select-h .container:not(.input-enabled) .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container:not(.input-enabled) .sc-calcite-tile-select-s>calcite-radio-button{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}/*!@:host .container.focused:not(.disabled)*/.sc-calcite-tile-select-h .container.focused.sc-calcite-tile-select:not(.disabled){z-index:30}/*!@:host .container.focused:not(.disabled):not(.input-enabled)*/.sc-calcite-tile-select-h .container.focused.sc-calcite-tile-select:not(.disabled):not(.input-enabled){-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand)}/*!@:host .container.input-enabled.input-alignment-start.width-auto.heading-only, :host .container.input-enabled.input-alignment-start.width-auto.icon-only, :host .container.input-enabled.input-alignment-start.width-auto.description-only, :host .container.input-enabled.input-alignment-start.width-auto.heading.description, :host .container.input-enabled.input-alignment-start.width-auto.icon.description, :host .container.input-enabled.input-alignment-start.width-auto.heading.icon.description*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.heading-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.icon-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.description-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.heading.description.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.icon.description.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.heading.icon.description.sc-calcite-tile-select{display:inline-grid;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}/*!@:host .container.input-enabled.input-alignment-start.heading-only, :host .container.input-enabled.input-alignment-start.icon-only, :host .container.input-enabled.input-alignment-start.description-only, :host .container.input-enabled.input-alignment-start.heading.description, :host .container.input-enabled.input-alignment-start.icon.description, :host .container.input-enabled.input-alignment-start.heading.icon.description*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.heading-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.icon-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.description-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.heading.description.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.icon.description.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.heading.icon.description.sc-calcite-tile-select{gap:0.75rem}/*!@:host .container.input-enabled.input-alignment-start calcite-tile*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.sc-calcite-tile-select calcite-tile.sc-calcite-tile-select{-ms-flex-order:1;order:1}/*!@:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-checkbox),\n:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-radio-button)*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.large-visual .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.large-visual .sc-calcite-tile-select-s>calcite-radio-button{position:absolute;inset-block-start:0.75rem;inset-inline-start:0.75rem}/*!@:host .container.input-enabled.input-alignment-end.width-auto.heading-only, :host .container.input-enabled.input-alignment-end.width-auto.icon-only*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.width-auto.heading-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.width-auto.icon-only.sc-calcite-tile-select{display:inline-grid;grid-gap:0.75rem;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}/*!@:host .container.input-enabled.input-alignment-end.heading-only, :host .container.input-enabled.input-alignment-end.icon-only*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.heading-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.icon-only.sc-calcite-tile-select{gap:0.75rem}/*!@:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-checkbox),\n:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-radio-button), :host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-checkbox),\n:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-radio-button), :host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-checkbox),\n:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-radio-button), :host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-checkbox),\n:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-radio-button)*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.description-only .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.description-only .sc-calcite-tile-select-s>calcite-radio-button,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.heading.description .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.heading.description .sc-calcite-tile-select-s>calcite-radio-button,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.icon.description .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.icon.description .sc-calcite-tile-select-s>calcite-radio-button,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.heading.icon.description .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.heading.icon.description .sc-calcite-tile-select-s>calcite-radio-button{position:absolute;inset-block-start:0.75rem;inset-inline-end:0.75rem}/*!@:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-checkbox),\n:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-radio-button)*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.large-visual .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.large-visual .sc-calcite-tile-select-s>calcite-radio-button{position:absolute;inset-block-start:0.75rem;inset-inline-end:0.75rem}/*!@:host .container.width-full*/.sc-calcite-tile-select-h .container.width-full.sc-calcite-tile-select{display:-ms-flexbox;display:flex;max-width:none}/*!@:host .container.width-full calcite-tile*/.sc-calcite-tile-select-h .container.width-full.sc-calcite-tile-select calcite-tile.sc-calcite-tile-select{-ms-flex:1 1 auto;flex:1 1 auto}/*!@:host(:hover) .container*/.sc-calcite-tile-select-h:hover .container.sc-calcite-tile-select{z-index:20}/*!@:host(:hover) .container:not(.input-enabled)*/.sc-calcite-tile-select-h:hover .container.sc-calcite-tile-select:not(.input-enabled){-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}/*!@:host([disabled])*/[disabled].sc-calcite-tile-select-h{opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}";
|
|
29714
29710
|
|
|
29715
29711
|
/**
|
|
29716
29712
|
* @slot - A slot for adding custom content.
|
|
@@ -29859,7 +29855,25 @@ class CalciteTileSelect {
|
|
|
29859
29855
|
this.el.insertAdjacentElement("beforeend", this.input);
|
|
29860
29856
|
}
|
|
29861
29857
|
render() {
|
|
29862
|
-
|
|
29858
|
+
const { checked, description, disabled, focused, heading, icon, inputAlignment, inputEnabled, width } = this;
|
|
29859
|
+
return (hAsync("div", { class: {
|
|
29860
|
+
checked,
|
|
29861
|
+
container: true,
|
|
29862
|
+
[CSS$6.description]: Boolean(description),
|
|
29863
|
+
[CSS$6.descriptionOnly]: Boolean(!heading && !icon && description),
|
|
29864
|
+
disabled,
|
|
29865
|
+
focused,
|
|
29866
|
+
[CSS$6.heading]: Boolean(heading),
|
|
29867
|
+
[CSS$6.headingOnly]: heading && !icon && !description,
|
|
29868
|
+
[CSS$6.icon]: Boolean(icon),
|
|
29869
|
+
[CSS$6.iconOnly]: !heading && icon && !description,
|
|
29870
|
+
[CSS$6.inputAlignmentEnd]: inputAlignment === "end",
|
|
29871
|
+
[CSS$6.inputAlignmentStart]: inputAlignment === "start",
|
|
29872
|
+
[CSS$6.inputEnabled]: inputEnabled,
|
|
29873
|
+
[CSS$6.largeVisual]: heading && icon && !description,
|
|
29874
|
+
[CSS$6.widthAuto]: width === "auto",
|
|
29875
|
+
[CSS$6.widthFull]: width === "full"
|
|
29876
|
+
} }, hAsync("calcite-tile", { active: checked, description: description, embed: true, heading: heading, icon: icon }), hAsync("slot", null)));
|
|
29863
29877
|
}
|
|
29864
29878
|
get el() { return getElement(this); }
|
|
29865
29879
|
static get watchers() { return {
|
|
@@ -31054,7 +31068,7 @@ class CalciteTooltip {
|
|
|
31054
31068
|
getReferenceElement() {
|
|
31055
31069
|
const { referenceElement, el } = this;
|
|
31056
31070
|
return ((typeof referenceElement === "string"
|
|
31057
|
-
? queryElementRoots(el,
|
|
31071
|
+
? queryElementRoots(el, { id: referenceElement })
|
|
31058
31072
|
: referenceElement) || null);
|
|
31059
31073
|
}
|
|
31060
31074
|
getModifiers() {
|
|
@@ -31104,8 +31118,8 @@ class CalciteTooltip {
|
|
|
31104
31118
|
const displayed = effectiveReferenceElement && open;
|
|
31105
31119
|
const hidden = !displayed;
|
|
31106
31120
|
return (hAsync(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, id: this.getId(), role: "tooltip" }, hAsync("div", { class: {
|
|
31107
|
-
[CSS$
|
|
31108
|
-
[CSS$
|
|
31121
|
+
[CSS$D.animation]: true,
|
|
31122
|
+
[CSS$D.animationActive]: displayed
|
|
31109
31123
|
} }, hAsync("div", { class: CSS$2.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) }), hAsync("div", { class: CSS$2.container }, hAsync("slot", null)))));
|
|
31110
31124
|
}
|
|
31111
31125
|
get el() { return getElement(this); }
|
|
@@ -31165,7 +31179,7 @@ class CalciteTooltipManager {
|
|
|
31165
31179
|
var _a;
|
|
31166
31180
|
const { selector, el } = this;
|
|
31167
31181
|
const id = (_a = element.closest(selector)) === null || _a === void 0 ? void 0 : _a.getAttribute(TOOLTIP_REFERENCE);
|
|
31168
|
-
return queryElementRoots(el,
|
|
31182
|
+
return queryElementRoots(el, { id });
|
|
31169
31183
|
};
|
|
31170
31184
|
this.clearHoverTimeout = (tooltip) => {
|
|
31171
31185
|
const { hoverTimeouts } = this;
|
|
@@ -32111,8 +32125,8 @@ class CalciteValueListItem {
|
|
|
32111
32125
|
const { icon } = this;
|
|
32112
32126
|
if (icon === ICON_TYPES$1.grip) {
|
|
32113
32127
|
return (hAsync("span", { "aria-pressed": this.handleActivated.toString(), class: {
|
|
32114
|
-
[CSS$
|
|
32115
|
-
[CSS$
|
|
32128
|
+
[CSS$h.handle]: true,
|
|
32129
|
+
[CSS$h.handleActivated]: this.handleActivated
|
|
32116
32130
|
}, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0" }, hAsync("calcite-icon", { icon: ICONS.drag, scale: "s" })));
|
|
32117
32131
|
}
|
|
32118
32132
|
}
|