@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
|
@@ -186,7 +186,8 @@ function nodeListToArray(nodeList) {
|
|
|
186
186
|
return Array.isArray(nodeList) ? nodeList : Array.from(nodeList);
|
|
187
187
|
}
|
|
188
188
|
function getThemeName(el) {
|
|
189
|
-
|
|
189
|
+
const closestElWithTheme = closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}, .${CSS_UTILITY.lightTheme}`);
|
|
190
|
+
return (closestElWithTheme === null || closestElWithTheme === void 0 ? void 0 : closestElWithTheme.classList.contains("calcite-theme-dark")) ? "dark" : "light";
|
|
190
191
|
}
|
|
191
192
|
function getElementDir(el) {
|
|
192
193
|
const prop = "dir";
|
|
@@ -205,10 +206,14 @@ function getRootNode(el) {
|
|
|
205
206
|
function getHost(root) {
|
|
206
207
|
return root.host || null;
|
|
207
208
|
}
|
|
208
|
-
|
|
209
|
-
|
|
209
|
+
/**
|
|
210
|
+
* This helper queries an element's rootNodes and any ancestor rootNodes.
|
|
211
|
+
*
|
|
212
|
+
* @returns {Element[]} The elements.
|
|
213
|
+
*/
|
|
210
214
|
function queryElementsRoots(element, selector) {
|
|
211
215
|
// Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.
|
|
216
|
+
// Based on: https://stackoverflow.com/q/54520554/194216
|
|
212
217
|
function queryFromAll(el, allResults) {
|
|
213
218
|
if (!el) {
|
|
214
219
|
return allResults;
|
|
@@ -225,10 +230,16 @@ function queryElementsRoots(element, selector) {
|
|
|
225
230
|
}
|
|
226
231
|
return queryFromAll(element, []);
|
|
227
232
|
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
233
|
+
/**
|
|
234
|
+
* This helper queries an element's rootNode and any ancestor rootNodes.
|
|
235
|
+
*
|
|
236
|
+
* If both an 'id' and 'selector' are supplied, 'id' will take precedence over 'selector'.
|
|
237
|
+
*
|
|
238
|
+
* @returns {Element} The element.
|
|
239
|
+
*/
|
|
240
|
+
function queryElementRoots(element, { selector, id }) {
|
|
231
241
|
// Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.
|
|
242
|
+
// Based on: https://stackoverflow.com/q/54520554/194216
|
|
232
243
|
function queryFrom(el) {
|
|
233
244
|
if (!el) {
|
|
234
245
|
return null;
|
|
@@ -237,7 +248,11 @@ function queryElementRoots(element, selector) {
|
|
|
237
248
|
el = el.assignedSlot;
|
|
238
249
|
}
|
|
239
250
|
const rootNode = getRootNode(el);
|
|
240
|
-
const found =
|
|
251
|
+
const found = id
|
|
252
|
+
? rootNode.getElementById(id)
|
|
253
|
+
: selector
|
|
254
|
+
? rootNode.querySelector(selector)
|
|
255
|
+
: null;
|
|
241
256
|
const host = getHost(rootNode);
|
|
242
257
|
return found ? found : host ? queryFrom(host) : null;
|
|
243
258
|
}
|
|
@@ -423,7 +438,7 @@ let CalciteAccordionItem$1 = class extends HTMLElement$1 {
|
|
|
423
438
|
static get style() { return calciteAccordionItemCss; }
|
|
424
439
|
};
|
|
425
440
|
|
|
426
|
-
const CSS$
|
|
441
|
+
const CSS$P = {
|
|
427
442
|
button: "button",
|
|
428
443
|
buttonTextVisible: "button--text-visible",
|
|
429
444
|
buttonCompact: "button--compact",
|
|
@@ -541,8 +556,8 @@ let CalciteAction$1 = class extends HTMLElement$1 {
|
|
|
541
556
|
renderTextContainer() {
|
|
542
557
|
const { text, textEnabled } = this;
|
|
543
558
|
const textContainerClasses = {
|
|
544
|
-
[CSS$
|
|
545
|
-
[CSS$
|
|
559
|
+
[CSS$P.textContainer]: true,
|
|
560
|
+
[CSS$P.textContainerVisible]: textEnabled
|
|
546
561
|
};
|
|
547
562
|
return text ? (h("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
548
563
|
}
|
|
@@ -555,18 +570,18 @@ let CalciteAction$1 = class extends HTMLElement$1 {
|
|
|
555
570
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
556
571
|
const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
557
572
|
const slotContainerNode = (h("div", { class: {
|
|
558
|
-
[CSS$
|
|
559
|
-
[CSS$
|
|
573
|
+
[CSS$P.slotContainer]: true,
|
|
574
|
+
[CSS$P.slotContainerHidden]: loading
|
|
560
575
|
} }, h("slot", null)));
|
|
561
|
-
return hasIconToDisplay ? (h("div", { "aria-hidden": "true", class: CSS$
|
|
576
|
+
return hasIconToDisplay ? (h("div", { "aria-hidden": "true", class: CSS$P.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
562
577
|
}
|
|
563
578
|
render() {
|
|
564
579
|
const { compact, disabled, loading, textEnabled, label, text } = this;
|
|
565
580
|
const ariaLabel = label || text;
|
|
566
581
|
const buttonClasses = {
|
|
567
|
-
[CSS$
|
|
568
|
-
[CSS$
|
|
569
|
-
[CSS$
|
|
582
|
+
[CSS$P.button]: true,
|
|
583
|
+
[CSS$P.buttonTextVisible]: textEnabled,
|
|
584
|
+
[CSS$P.buttonCompact]: compact
|
|
570
585
|
};
|
|
571
586
|
return (h(Host, { onClick: this.calciteActionClickHandler }, h("button", { "aria-busy": loading.toString(), "aria-disabled": disabled.toString(), "aria-label": ariaLabel, class: buttonClasses, disabled: disabled, ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer())));
|
|
572
587
|
}
|
|
@@ -574,7 +589,7 @@ let CalciteAction$1 = class extends HTMLElement$1 {
|
|
|
574
589
|
static get style() { return calciteActionCss; }
|
|
575
590
|
};
|
|
576
591
|
|
|
577
|
-
const CSS$
|
|
592
|
+
const CSS$O = {
|
|
578
593
|
menu: "menu",
|
|
579
594
|
defaultTrigger: "default-trigger"
|
|
580
595
|
};
|
|
@@ -674,7 +689,7 @@ const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, p
|
|
|
674
689
|
return tooltip ? h("calcite-tooltip-manager", null, actionNode) : actionNode;
|
|
675
690
|
};
|
|
676
691
|
|
|
677
|
-
const CSS$
|
|
692
|
+
const CSS$N = {
|
|
678
693
|
actionGroupBottom: "action-group--bottom"
|
|
679
694
|
};
|
|
680
695
|
const SLOTS$n = {
|
|
@@ -2135,7 +2150,7 @@ let CalciteActionBar$1 = class extends HTMLElement$1 {
|
|
|
2135
2150
|
const expandLabel = intlExpand || TEXT$n.expand;
|
|
2136
2151
|
const collapseLabel = intlCollapse || TEXT$n.collapse;
|
|
2137
2152
|
const expandToggleNode = !expandDisabled ? (h(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2138
|
-
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (h("calcite-action-group", { class: CSS$
|
|
2153
|
+
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (h("calcite-action-group", { class: CSS$N.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$n.bottomActions }), h("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
2139
2154
|
}
|
|
2140
2155
|
render() {
|
|
2141
2156
|
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("slot", null), this.renderBottomActionGroup()));
|
|
@@ -2464,14 +2479,14 @@ let CalciteActionMenu$1 = class extends HTMLElement$1 {
|
|
|
2464
2479
|
}
|
|
2465
2480
|
renderMenuButton() {
|
|
2466
2481
|
const { el, label, scale } = this;
|
|
2467
|
-
const menuButtonSlot = (h("slot", { name: SLOTS$p.trigger }, h("calcite-action", { class: CSS$
|
|
2482
|
+
const menuButtonSlot = (h("slot", { name: SLOTS$p.trigger }, h("calcite-action", { class: CSS$O.defaultTrigger, icon: ICONS$f.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label })));
|
|
2468
2483
|
return getSlotted(el, SLOTS$p.tooltip) ? (h("calcite-tooltip-manager", null, menuButtonSlot)) : (menuButtonSlot);
|
|
2469
2484
|
}
|
|
2470
2485
|
renderMenuItems() {
|
|
2471
2486
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning } = this;
|
|
2472
2487
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
2473
2488
|
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
|
2474
|
-
return (h("calcite-popover", { disablePointer: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$
|
|
2489
|
+
return (h("calcite-popover", { disablePointer: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$O.menu, id: menuId, onClick: this.handleCalciteActionClick, onKeyDown: this.menuActionsContainerKeyDown, onKeyUp: this.menuActionsContainerKeyUp, ref: (el) => (this.menuEl = el), role: "menu", tabIndex: -1 }, h("slot", null))));
|
|
2475
2490
|
}
|
|
2476
2491
|
render() {
|
|
2477
2492
|
return (h(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), h("slot", { name: SLOTS$p.tooltip })));
|
|
@@ -2493,7 +2508,7 @@ let CalciteActionMenu$1 = class extends HTMLElement$1 {
|
|
|
2493
2508
|
static get style() { return calciteActionMenuCss; }
|
|
2494
2509
|
};
|
|
2495
2510
|
|
|
2496
|
-
const CSS$
|
|
2511
|
+
const CSS$M = {
|
|
2497
2512
|
actionGroupBottom: "action-group--bottom",
|
|
2498
2513
|
container: "container"
|
|
2499
2514
|
};
|
|
@@ -2598,10 +2613,10 @@ let CalciteActionPad$1 = class extends HTMLElement$1 {
|
|
|
2598
2613
|
const expandLabel = intlExpand || TEXT$m.expand;
|
|
2599
2614
|
const collapseLabel = intlCollapse || TEXT$m.collapse;
|
|
2600
2615
|
const expandToggleNode = !expandDisabled ? (h(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2601
|
-
return expandToggleNode ? (h("calcite-action-group", { class: CSS$
|
|
2616
|
+
return expandToggleNode ? (h("calcite-action-group", { class: CSS$M.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$m.expandTooltip }), expandToggleNode)) : null;
|
|
2602
2617
|
}
|
|
2603
2618
|
render() {
|
|
2604
|
-
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("div", { class: CSS$
|
|
2619
|
+
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("div", { class: CSS$M.container }, h("slot", null), this.renderBottomActionGroup())));
|
|
2605
2620
|
}
|
|
2606
2621
|
get el() { return this; }
|
|
2607
2622
|
static get watchers() { return {
|
|
@@ -3052,7 +3067,7 @@ let CalciteAvatar$1 = class extends HTMLElement$1 {
|
|
|
3052
3067
|
static get style() { return calciteAvatarCss; }
|
|
3053
3068
|
};
|
|
3054
3069
|
|
|
3055
|
-
const CSS$
|
|
3070
|
+
const CSS$L = {
|
|
3056
3071
|
article: "article",
|
|
3057
3072
|
content: "content",
|
|
3058
3073
|
headerContainer: "header-container",
|
|
@@ -3166,34 +3181,34 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3166
3181
|
const statusIcon = showingLoadingStatus ? ICONS$c.refresh : ICONS$c[status];
|
|
3167
3182
|
const hasIcon = getSlotted(el, SLOTS$k.icon) || statusIcon;
|
|
3168
3183
|
const iconEl = !statusIcon ? (h("slot", { name: SLOTS$k.icon })) : (h("calcite-icon", { class: {
|
|
3169
|
-
[CSS$
|
|
3170
|
-
[CSS$
|
|
3171
|
-
[CSS$
|
|
3172
|
-
[CSS$
|
|
3184
|
+
[CSS$L.statusIcon]: true,
|
|
3185
|
+
[CSS$L.valid]: status == "valid",
|
|
3186
|
+
[CSS$L.invalid]: status == "invalid",
|
|
3187
|
+
[CSS$L.loading]: showingLoadingStatus
|
|
3173
3188
|
}, icon: statusIcon, scale: "m" }));
|
|
3174
|
-
return hasIcon ? h("div", { class: CSS$
|
|
3189
|
+
return hasIcon ? h("div", { class: CSS$L.icon }, iconEl) : null;
|
|
3175
3190
|
}
|
|
3176
3191
|
renderTitle() {
|
|
3177
3192
|
const { heading, headingLevel, summary } = this;
|
|
3178
|
-
return heading || summary ? (h("div", { class: CSS$
|
|
3193
|
+
return heading || summary ? (h("div", { class: CSS$L.title }, h(CalciteHeading, { class: CSS$L.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary ? h("div", { class: CSS$L.summary }, summary) : null)) : null;
|
|
3179
3194
|
}
|
|
3180
3195
|
render() {
|
|
3181
3196
|
const { collapsible, disabled, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
3182
3197
|
const toggleLabel = open ? intlCollapse || TEXT$k.collapse : intlExpand || TEXT$k.expand;
|
|
3183
|
-
const headerContent = (h("header", { class: CSS$
|
|
3198
|
+
const headerContent = (h("header", { class: CSS$L.header }, this.renderIcon(), this.renderTitle()));
|
|
3184
3199
|
const hasControl = !!getSlotted(el, SLOTS$k.control);
|
|
3185
3200
|
const hasMenuActions = !!getSlotted(el, SLOTS$k.headerMenuActions);
|
|
3186
3201
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
3187
|
-
const headerNode = (h("div", { class: CSS$
|
|
3202
|
+
const headerNode = (h("div", { class: CSS$L.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$L.controlContainer }, h("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$k.options }, h("slot", { name: SLOTS$k.headerMenuActions }))) : null));
|
|
3188
3203
|
return (h(Host, { tabIndex: disabled ? -1 : null }, h("article", { "aria-busy": loading.toString(), class: {
|
|
3189
|
-
[CSS$
|
|
3190
|
-
} }, headerNode, h("div", { class: CSS$
|
|
3204
|
+
[CSS$L.article]: true
|
|
3205
|
+
} }, headerNode, h("div", { class: CSS$L.content, hidden: !open }, this.renderScrim()))));
|
|
3191
3206
|
}
|
|
3192
3207
|
get el() { return this; }
|
|
3193
3208
|
static get style() { return calciteBlockCss; }
|
|
3194
3209
|
};
|
|
3195
3210
|
|
|
3196
|
-
const CSS$
|
|
3211
|
+
const CSS$K = {
|
|
3197
3212
|
content: "content",
|
|
3198
3213
|
invalid: "invalid",
|
|
3199
3214
|
toggle: "toggle",
|
|
@@ -3262,9 +3277,9 @@ let CalciteBlockSection$1 = class extends HTMLElement$1 {
|
|
|
3262
3277
|
const { status } = this;
|
|
3263
3278
|
const statusIcon = (_a = ICONS$b[status]) !== null && _a !== void 0 ? _a : false;
|
|
3264
3279
|
const statusIconClasses = {
|
|
3265
|
-
[CSS$
|
|
3266
|
-
[CSS$
|
|
3267
|
-
[CSS$
|
|
3280
|
+
[CSS$K.statusIcon]: true,
|
|
3281
|
+
[CSS$K.valid]: status == "valid",
|
|
3282
|
+
[CSS$K.invalid]: status == "invalid"
|
|
3268
3283
|
};
|
|
3269
3284
|
return !!statusIcon ? (h("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
3270
3285
|
}
|
|
@@ -3278,13 +3293,13 @@ let CalciteBlockSection$1 = class extends HTMLElement$1 {
|
|
|
3278
3293
|
: ICONS$b.menuClosedRight;
|
|
3279
3294
|
const toggleLabel = open ? intlCollapse || TEXT$j.collapse : intlExpand || TEXT$j.expand;
|
|
3280
3295
|
const headerNode = toggleDisplay === "switch" ? (h("div", { "aria-label": toggleLabel, class: {
|
|
3281
|
-
[CSS$
|
|
3282
|
-
[CSS$
|
|
3283
|
-
}, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, h("div", { class: CSS$
|
|
3284
|
-
[CSS$
|
|
3285
|
-
[CSS$
|
|
3286
|
-
}, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS$
|
|
3287
|
-
return (h("section", { "aria-expanded": open.toString() }, headerNode, h("div", { class: CSS$
|
|
3296
|
+
[CSS$K.toggle]: true,
|
|
3297
|
+
[CSS$K.toggleSwitch]: true
|
|
3298
|
+
}, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, h("div", { class: CSS$K.toggleSwitchContent }, h("span", { class: CSS$K.toggleSwitchText }, text)), h("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (h("button", { "aria-label": toggleLabel, class: {
|
|
3299
|
+
[CSS$K.sectionHeader]: true,
|
|
3300
|
+
[CSS$K.toggle]: true
|
|
3301
|
+
}, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS$K.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
3302
|
+
return (h("section", { "aria-expanded": open.toString() }, headerNode, h("div", { class: CSS$K.content, hidden: !open }, h("slot", null))));
|
|
3288
3303
|
}
|
|
3289
3304
|
get el() { return this; }
|
|
3290
3305
|
static get style() { return calciteBlockSectionCss; }
|
|
@@ -3318,7 +3333,7 @@ let CalciteBlockSection$1 = class extends HTMLElement$1 {
|
|
|
3318
3333
|
}
|
|
3319
3334
|
})(HTMLFormElement.prototype);
|
|
3320
3335
|
|
|
3321
|
-
const CSS$
|
|
3336
|
+
const CSS$J = {
|
|
3322
3337
|
buttonLoader: "calcite-button--loader",
|
|
3323
3338
|
content: "content",
|
|
3324
3339
|
contentSlotted: "content--slotted",
|
|
@@ -3343,7 +3358,7 @@ const labelTagName = "calcite-label";
|
|
|
3343
3358
|
const onLabelClickMap = new WeakMap();
|
|
3344
3359
|
const findLabelForComponent = (componentEl) => {
|
|
3345
3360
|
const { id } = componentEl;
|
|
3346
|
-
const forLabel = id && queryElementRoots(componentEl, `${labelTagName}[for="${id}"]`);
|
|
3361
|
+
const forLabel = id && queryElementRoots(componentEl, { selector: `${labelTagName}[for="${id}"]` });
|
|
3347
3362
|
if (forLabel) {
|
|
3348
3363
|
return forLabel;
|
|
3349
3364
|
}
|
|
@@ -3507,14 +3522,14 @@ let CalciteButton$1 = class extends HTMLElement$1 {
|
|
|
3507
3522
|
}
|
|
3508
3523
|
render() {
|
|
3509
3524
|
const Tag = this.childElType;
|
|
3510
|
-
const loaderNode = this.hasLoader ? (h("div", { class: CSS$
|
|
3511
|
-
const iconStartEl = (h("calcite-icon", { class: { [CSS$
|
|
3512
|
-
const iconEndEl = (h("calcite-icon", { class: { [CSS$
|
|
3513
|
-
const contentEl = (h("span", { class: CSS$
|
|
3525
|
+
const loaderNode = this.hasLoader ? (h("div", { class: CSS$J.buttonLoader }, h("calcite-loader", { active: true, class: this.loading ? CSS$J.loadingIn : CSS$J.loadingOut, inline: true, label: this.intlLoading, scale: "m" }))) : null;
|
|
3526
|
+
const iconStartEl = (h("calcite-icon", { class: { [CSS$J.icon]: true, [CSS$J.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
3527
|
+
const iconEndEl = (h("calcite-icon", { class: { [CSS$J.icon]: true, [CSS$J.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
3528
|
+
const contentEl = (h("span", { class: CSS$J.content }, h("slot", null)));
|
|
3514
3529
|
return (h(Tag, { "aria-label": getLabelText(this), class: {
|
|
3515
|
-
[CSS$
|
|
3516
|
-
[CSS$
|
|
3517
|
-
[CSS$
|
|
3530
|
+
[CSS$J.contentSlotted]: this.hasContent,
|
|
3531
|
+
[CSS$J.iconStartEmpty]: !this.iconStart,
|
|
3532
|
+
[CSS$J.iconEndEmpty]: !this.iconEnd
|
|
3518
3533
|
}, disabled: this.disabled || this.loading, href: this.childElType === "a" && this.href, name: this.childElType === "button" && this.name, onClick: this.handleClick, ref: (el) => (this.childEl = el), rel: this.childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: this.childElType === "a" && this.target, type: this.childElType === "button" && this.type }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
|
|
3519
3534
|
}
|
|
3520
3535
|
//--------------------------------------------------------------------------
|
|
@@ -3555,7 +3570,7 @@ let CalciteButton$1 = class extends HTMLElement$1 {
|
|
|
3555
3570
|
static get style() { return calciteButtonCss; }
|
|
3556
3571
|
};
|
|
3557
3572
|
|
|
3558
|
-
const CSS$
|
|
3573
|
+
const CSS$I = {
|
|
3559
3574
|
container: "container",
|
|
3560
3575
|
header: "header",
|
|
3561
3576
|
footer: "footer",
|
|
@@ -3637,7 +3652,7 @@ let CalciteCard$1 = class extends HTMLElement$1 {
|
|
|
3637
3652
|
//
|
|
3638
3653
|
// --------------------------------------------------------------------------
|
|
3639
3654
|
render() {
|
|
3640
|
-
return (h("div", { class: "calcite-card-container" }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, h("section", { "aria-busy": this.loading.toString(), class: { [CSS$
|
|
3655
|
+
return (h("div", { class: "calcite-card-container" }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, h("section", { "aria-busy": this.loading.toString(), class: { [CSS$I.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderThumbnail(), this.renderHeader(), h("div", { class: "card-content" }, h("slot", null)), this.renderFooter())));
|
|
3641
3656
|
}
|
|
3642
3657
|
selectCard() {
|
|
3643
3658
|
this.selected = !this.selected;
|
|
@@ -3645,23 +3660,23 @@ let CalciteCard$1 = class extends HTMLElement$1 {
|
|
|
3645
3660
|
}
|
|
3646
3661
|
renderThumbnail() {
|
|
3647
3662
|
const hasThumbnail = this.el.querySelector(`[slot=${SLOTS$j.thumbnail}]`);
|
|
3648
|
-
return hasThumbnail ? (h("div", { class: CSS$
|
|
3663
|
+
return hasThumbnail ? (h("div", { class: CSS$I.thumbnailWrapper }, h("slot", { name: SLOTS$j.thumbnail }))) : null;
|
|
3649
3664
|
}
|
|
3650
3665
|
renderCheckbox() {
|
|
3651
3666
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
3652
|
-
return (h("calcite-label", { class: CSS$
|
|
3667
|
+
return (h("calcite-label", { class: CSS$I.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, h("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
3653
3668
|
}
|
|
3654
3669
|
renderHeader() {
|
|
3655
3670
|
const title = this.el.querySelector(`[slot=${SLOTS$j.title}]`);
|
|
3656
3671
|
const subtitle = this.el.querySelector(`[slot=${SLOTS$j.subtitle}]`);
|
|
3657
3672
|
const hasHeader = title || subtitle;
|
|
3658
|
-
return hasHeader ? (h("header", { class: CSS$
|
|
3673
|
+
return hasHeader ? (h("header", { class: CSS$I.header }, h("slot", { name: SLOTS$j.title }), h("slot", { name: SLOTS$j.subtitle }))) : null;
|
|
3659
3674
|
}
|
|
3660
3675
|
renderFooter() {
|
|
3661
3676
|
const leadingFooter = this.el.querySelector(`[slot=${SLOTS$j.footerLeading}]`);
|
|
3662
3677
|
const trailingFooter = this.el.querySelector(`[slot=${SLOTS$j.footerTrailing}]`);
|
|
3663
3678
|
const hasFooter = leadingFooter || trailingFooter;
|
|
3664
|
-
return hasFooter ? (h("footer", { class: CSS$
|
|
3679
|
+
return hasFooter ? (h("footer", { class: CSS$I.footer }, h("slot", { name: SLOTS$j.footerLeading }), h("slot", { name: SLOTS$j.footerTrailing }))) : null;
|
|
3665
3680
|
}
|
|
3666
3681
|
get el() { return this; }
|
|
3667
3682
|
static get style() { return calciteCardCss; }
|
|
@@ -3952,7 +3967,7 @@ let CalciteCheckbox$1 = class extends HTMLElement$1 {
|
|
|
3952
3967
|
static get style() { return calciteCheckboxCss; }
|
|
3953
3968
|
};
|
|
3954
3969
|
|
|
3955
|
-
const CSS$
|
|
3970
|
+
const CSS$H = {
|
|
3956
3971
|
title: "title",
|
|
3957
3972
|
close: "close",
|
|
3958
3973
|
chipImageContainer: "chip-image-container",
|
|
@@ -4024,12 +4039,12 @@ let CalciteChip$1 = class extends HTMLElement$1 {
|
|
|
4024
4039
|
renderChipImage() {
|
|
4025
4040
|
const { el } = this;
|
|
4026
4041
|
const hasChipImage = getSlotted(el, SLOTS$i.image);
|
|
4027
|
-
return hasChipImage ? (h("div", { class: CSS$
|
|
4042
|
+
return hasChipImage ? (h("div", { class: CSS$H.chipImageContainer }, h("slot", { name: SLOTS$i.image }))) : null;
|
|
4028
4043
|
}
|
|
4029
4044
|
render() {
|
|
4030
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
4031
|
-
const closeButton = (h("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$
|
|
4032
|
-
return (h("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, h("span", { class: CSS$
|
|
4045
|
+
const iconEl = (h("calcite-icon", { class: CSS$H.calciteChipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
4046
|
+
const closeButton = (h("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$H.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, h("calcite-icon", { icon: ICONS$a.close, scale: "s" })));
|
|
4047
|
+
return (h("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, h("span", { class: CSS$H.title, id: this.guid }, h("slot", null)), this.dismissible ? closeButton : null));
|
|
4033
4048
|
}
|
|
4034
4049
|
get el() { return this; }
|
|
4035
4050
|
static get style() { return calciteChipCss; }
|
|
@@ -6139,7 +6154,7 @@ function zeroArray(array, length) {
|
|
|
6139
6154
|
|
|
6140
6155
|
var color = Color;
|
|
6141
6156
|
|
|
6142
|
-
const CSS$
|
|
6157
|
+
const CSS$G = {
|
|
6143
6158
|
container: "container",
|
|
6144
6159
|
controlSection: "control-section",
|
|
6145
6160
|
hexOptions: "color-hex-options",
|
|
@@ -6633,7 +6648,7 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6633
6648
|
const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
|
|
6634
6649
|
const active = channelMode === activeChannelMode;
|
|
6635
6650
|
const label = channelMode === "rgb" ? intlRgb : intlHsv;
|
|
6636
|
-
return (h("calcite-tab-title", { active: active, class: CSS$
|
|
6651
|
+
return (h("calcite-tab-title", { active: active, class: CSS$G.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
|
|
6637
6652
|
};
|
|
6638
6653
|
this.renderChannelsTab = (channelMode) => {
|
|
6639
6654
|
const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
|
|
@@ -6643,9 +6658,9 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6643
6658
|
const channelAriaLabels = isRgb
|
|
6644
6659
|
? [intlRed, intlGreen, intlBlue]
|
|
6645
6660
|
: [intlHue, intlSaturation, intlValue];
|
|
6646
|
-
return (h("calcite-tab", { active: active, class: CSS$
|
|
6661
|
+
return (h("calcite-tab", { active: active, class: CSS$G.control, key: channelMode }, h("div", { class: CSS$G.channels }, channels.map((channel, index) => this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index])))));
|
|
6647
6662
|
};
|
|
6648
|
-
this.renderChannel = (value, index, label, ariaLabel) => (h("calcite-input", { class: CSS$
|
|
6663
|
+
this.renderChannel = (value, index, label, ariaLabel) => (h("calcite-input", { class: CSS$G.channel, "data-channel-index": index, label: ariaLabel, numberButtonType: "none", onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value === null || value === void 0 ? void 0 : value.toString() }));
|
|
6649
6664
|
this.deleteColor = () => {
|
|
6650
6665
|
const colorToDelete = this.color.hex();
|
|
6651
6666
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -6760,7 +6775,7 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6760
6775
|
this.shiftKeyChannelAdjustment = 0;
|
|
6761
6776
|
const key = event.key;
|
|
6762
6777
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
6763
|
-
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$
|
|
6778
|
+
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$G.channel); })) {
|
|
6764
6779
|
return;
|
|
6765
6780
|
}
|
|
6766
6781
|
const { shiftKey } = event;
|
|
@@ -6828,20 +6843,20 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6828
6843
|
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
|
|
6829
6844
|
const noColor = color === null;
|
|
6830
6845
|
const vertical = scopeOrientation === "vertical";
|
|
6831
|
-
return (h("div", { class: CSS$
|
|
6832
|
-
[CSS$
|
|
6833
|
-
[CSS$
|
|
6834
|
-
}, onMouseDown: this.handleColorFieldAndSliderMouseDown, onMouseEnter: this.handleColorFieldAndSliderMouseEnterOrMove, onMouseLeave: this.handleColorFieldAndSliderMouseLeave, onMouseMove: this.handleColorFieldAndSliderMouseEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$
|
|
6835
|
-
[CSS$
|
|
6836
|
-
[CSS$
|
|
6837
|
-
} }, hideHex ? null : (h("div", { class: CSS$
|
|
6838
|
-
[CSS$
|
|
6839
|
-
[CSS$
|
|
6840
|
-
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$
|
|
6841
|
-
[CSS$
|
|
6842
|
-
[CSS$
|
|
6843
|
-
}, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS$
|
|
6844
|
-
...savedColors.map((color) => (h("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$
|
|
6846
|
+
return (h("div", { class: CSS$G.container }, h("div", { class: CSS$G.colorFieldAndSliderWrap }, h("canvas", { class: {
|
|
6847
|
+
[CSS$G.colorFieldAndSlider]: true,
|
|
6848
|
+
[CSS$G.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
6849
|
+
}, onMouseDown: this.handleColorFieldAndSliderMouseDown, onMouseEnter: this.handleColorFieldAndSliderMouseEnterOrMove, onMouseLeave: this.handleColorFieldAndSliderMouseLeave, onMouseMove: this.handleColorFieldAndSliderMouseEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$G.scope]: true, [CSS$G.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, ref: this.storeColorFieldScope, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0" }), h("div", { "aria-label": this.intlHue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": (color === null || color === void 0 ? void 0 : color.round().hue()) || DEFAULT_COLOR$1.round().hue(), class: { [CSS$G.scope]: true, [CSS$G.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })), hideHex && hideChannels ? null : (h("div", { class: {
|
|
6850
|
+
[CSS$G.controlSection]: true,
|
|
6851
|
+
[CSS$G.section]: true
|
|
6852
|
+
} }, hideHex ? null : (h("div", { class: CSS$G.hexOptions }, h("span", { class: {
|
|
6853
|
+
[CSS$G.header]: true,
|
|
6854
|
+
[CSS$G.headerHex]: true
|
|
6855
|
+
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$G.control, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (h("calcite-tabs", { class: {
|
|
6856
|
+
[CSS$G.colorModeContainer]: true,
|
|
6857
|
+
[CSS$G.splitSection]: true
|
|
6858
|
+
}, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS$G.savedColorsSection]: true, [CSS$G.section]: true } }, h("div", { class: CSS$G.header }, h("label", null, intlSaved), h("div", { class: CSS$G.savedColorsButtons }, h("calcite-button", { appearance: "transparent", class: CSS$G.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale }), h("calcite-button", { appearance: "transparent", class: CSS$G.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale }))), savedColors.length > 0 ? (h("div", { class: CSS$G.savedColors }, [
|
|
6859
|
+
...savedColors.map((color) => (h("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$G.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
|
|
6845
6860
|
])) : null))));
|
|
6846
6861
|
}
|
|
6847
6862
|
// --------------------------------------------------------------------------
|
|
@@ -7019,7 +7034,7 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
7019
7034
|
static get style() { return calciteColorPickerCss; }
|
|
7020
7035
|
};
|
|
7021
7036
|
|
|
7022
|
-
const CSS$
|
|
7037
|
+
const CSS$F = {
|
|
7023
7038
|
container: "container",
|
|
7024
7039
|
preview: "preview",
|
|
7025
7040
|
input: "input"
|
|
@@ -7188,7 +7203,7 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement$1 {
|
|
|
7188
7203
|
render() {
|
|
7189
7204
|
const { intlHex, value } = this;
|
|
7190
7205
|
const hexInputValue = this.formatForInternalInput(value);
|
|
7191
|
-
return (h("div", { class: CSS$
|
|
7206
|
+
return (h("div", { class: CSS$F.container }, h("calcite-input", { class: CSS$F.input, label: intlHex, maxLength: 6, onCalciteInputBlur: this.onCalciteInputBlur, onCalciteInputChange: this.onInputChange, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (h("calcite-color-picker-swatch", { active: true, class: CSS$F.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
7192
7207
|
}
|
|
7193
7208
|
//--------------------------------------------------------------------------
|
|
7194
7209
|
//
|
|
@@ -7212,7 +7227,7 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement$1 {
|
|
|
7212
7227
|
static get style() { return calciteColorPickerHexInputCss; }
|
|
7213
7228
|
};
|
|
7214
7229
|
|
|
7215
|
-
const CSS$
|
|
7230
|
+
const CSS$E = {
|
|
7216
7231
|
swatch: "swatch",
|
|
7217
7232
|
noColorIcon: "no-color-icon"
|
|
7218
7233
|
};
|
|
@@ -7259,7 +7274,7 @@ let CalciteColorPickerSwatch$1 = class extends HTMLElement$1 {
|
|
|
7259
7274
|
const hex = internalColor.hex();
|
|
7260
7275
|
const theme = getThemeName(el);
|
|
7261
7276
|
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
7262
|
-
return (h("svg", { class: CSS$
|
|
7277
|
+
return (h("svg", { class: CSS$E.swatch, xmlns: "http://www.w3.org/2000/svg" }, h("title", null, hex), h("rect", { fill: hex, height: "100%", id: "swatch", rx: borderRadius, stroke: borderColor, "stroke-width": "2", style: { "clip-path": `inset(0 round ${borderRadius})` }, width: "100%" })));
|
|
7263
7278
|
}
|
|
7264
7279
|
get el() { return this; }
|
|
7265
7280
|
static get watchers() { return {
|
|
@@ -9066,7 +9081,7 @@ var createPopper$1 = /*#__PURE__*/popperGenerator({
|
|
|
9066
9081
|
defaultModifiers: defaultModifiers
|
|
9067
9082
|
}); // eslint-disable-next-line import/no-unused-modules
|
|
9068
9083
|
|
|
9069
|
-
const CSS$
|
|
9084
|
+
const CSS$D = {
|
|
9070
9085
|
animation: "calcite-popper-anim",
|
|
9071
9086
|
animationActive: "calcite-popper-anim--active"
|
|
9072
9087
|
};
|
|
@@ -9822,8 +9837,8 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9822
9837
|
const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
|
|
9823
9838
|
const classes = {
|
|
9824
9839
|
"list-container": true,
|
|
9825
|
-
[CSS$
|
|
9826
|
-
[CSS$
|
|
9840
|
+
[CSS$D.animation]: true,
|
|
9841
|
+
[CSS$D.animationActive]: active
|
|
9827
9842
|
};
|
|
9828
9843
|
const style = {
|
|
9829
9844
|
maxHeight: maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : ""
|
|
@@ -9860,7 +9875,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9860
9875
|
static get style() { return calciteComboboxCss; }
|
|
9861
9876
|
};
|
|
9862
9877
|
|
|
9863
|
-
const CSS$
|
|
9878
|
+
const CSS$C = {
|
|
9864
9879
|
icon: "icon",
|
|
9865
9880
|
iconActive: "icon--active",
|
|
9866
9881
|
custom: "icon--custom",
|
|
@@ -9945,18 +9960,18 @@ let CalciteComboboxItem$1 = class extends HTMLElement$1 {
|
|
|
9945
9960
|
// --------------------------------------------------------------------------
|
|
9946
9961
|
renderIcon(isSingle) {
|
|
9947
9962
|
const { icon, disabled, selected } = this;
|
|
9948
|
-
const level = `${CSS$
|
|
9963
|
+
const level = `${CSS$C.icon}--indent`;
|
|
9949
9964
|
const defaultIcon = isSingle ? "dot" : "check";
|
|
9950
9965
|
const iconPath = disabled ? "circle-disallowed" : defaultIcon;
|
|
9951
9966
|
const showDot = isSingle && !icon && !disabled;
|
|
9952
9967
|
return showDot ? (h("span", { class: {
|
|
9953
|
-
[CSS$
|
|
9954
|
-
[CSS$
|
|
9968
|
+
[CSS$C.icon]: true,
|
|
9969
|
+
[CSS$C.dot]: true,
|
|
9955
9970
|
[level]: true
|
|
9956
9971
|
} })) : (h("calcite-icon", { class: {
|
|
9957
|
-
[CSS$
|
|
9958
|
-
[CSS$
|
|
9959
|
-
[CSS$
|
|
9972
|
+
[CSS$C.icon]: !icon,
|
|
9973
|
+
[CSS$C.custom]: !!icon,
|
|
9974
|
+
[CSS$C.iconActive]: icon && selected,
|
|
9960
9975
|
[level]: true
|
|
9961
9976
|
}, icon: icon || iconPath, scale: "s" }));
|
|
9962
9977
|
}
|
|
@@ -9969,13 +9984,13 @@ let CalciteComboboxItem$1 = class extends HTMLElement$1 {
|
|
|
9969
9984
|
render() {
|
|
9970
9985
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
9971
9986
|
const classes = {
|
|
9972
|
-
[CSS$
|
|
9973
|
-
[CSS$
|
|
9974
|
-
[CSS$
|
|
9975
|
-
[CSS$
|
|
9987
|
+
[CSS$C.label]: true,
|
|
9988
|
+
[CSS$C.selected]: this.selected,
|
|
9989
|
+
[CSS$C.active]: this.active,
|
|
9990
|
+
[CSS$C.single]: isSingleSelect
|
|
9976
9991
|
};
|
|
9977
9992
|
const depth = getDepth(this.el);
|
|
9978
|
-
return (h(Host, { "aria-hidden": "true" }, h("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, h("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), h("span", { class: CSS$
|
|
9993
|
+
return (h(Host, { "aria-hidden": "true" }, h("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, h("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), h("span", { class: CSS$C.title }, this.textLabel)), this.renderChildren())));
|
|
9979
9994
|
}
|
|
9980
9995
|
get el() { return this; }
|
|
9981
9996
|
static get watchers() { return {
|
|
@@ -9984,7 +9999,7 @@ let CalciteComboboxItem$1 = class extends HTMLElement$1 {
|
|
|
9984
9999
|
static get style() { return calciteComboboxItemCss; }
|
|
9985
10000
|
};
|
|
9986
10001
|
|
|
9987
|
-
const CSS$
|
|
10002
|
+
const CSS$B = {
|
|
9988
10003
|
list: "list",
|
|
9989
10004
|
label: "label",
|
|
9990
10005
|
title: "title"
|
|
@@ -10016,8 +10031,8 @@ let CalciteComboboxItemGroup$1 = class extends HTMLElement$1 {
|
|
|
10016
10031
|
// --------------------------------------------------------------------------
|
|
10017
10032
|
render() {
|
|
10018
10033
|
const { el, scale } = this;
|
|
10019
|
-
const indent = `${CSS$
|
|
10020
|
-
return (h("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
10034
|
+
const indent = `${CSS$B.label}--indent-${getDepth(el)}`;
|
|
10035
|
+
return (h("ul", { "aria-labelledby": this.guid, class: { [CSS$B.list]: true, [`scale--${scale}`]: true }, role: "group" }, h("li", { class: { [CSS$B.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, h("span", { class: CSS$B.title }, this.label)), h("slot", null)));
|
|
10021
10036
|
}
|
|
10022
10037
|
get el() { return this; }
|
|
10023
10038
|
static get style() { return calciteComboboxItemGroupCss; }
|
|
@@ -10052,17 +10067,24 @@ function parseNumberString(numberString) {
|
|
|
10052
10067
|
return isValidNumber(result) ? Number(result).toString() : null;
|
|
10053
10068
|
}
|
|
10054
10069
|
function sanitizeDecimalString(decimalString) {
|
|
10055
|
-
|
|
10070
|
+
const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
|
|
10071
|
+
return decimalString.replace(decimalAtEndOfStringButNotStart, "");
|
|
10056
10072
|
}
|
|
10057
10073
|
function sanitizeNegativeString(negativeString) {
|
|
10058
|
-
|
|
10074
|
+
const allHyphensExceptTheStart = /(?!^-)-/g;
|
|
10075
|
+
return negativeString.replace(allHyphensExceptTheStart, "");
|
|
10059
10076
|
}
|
|
10060
10077
|
function sanitizeLeadingZeroString(zeroString) {
|
|
10061
|
-
|
|
10078
|
+
const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
|
|
10079
|
+
return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
|
|
10062
10080
|
}
|
|
10063
10081
|
function sanitizeNumberString(value) {
|
|
10064
|
-
|
|
10065
|
-
|
|
10082
|
+
const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)));
|
|
10083
|
+
const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
|
|
10084
|
+
return isValidNumber(sanitizedValue)
|
|
10085
|
+
? isNegativeDecimalOnlyZeros.test(sanitizedValue)
|
|
10086
|
+
? sanitizedValue
|
|
10087
|
+
: Number(sanitizedValue).toString()
|
|
10066
10088
|
: value;
|
|
10067
10089
|
}
|
|
10068
10090
|
function stringContainsNumbers(string) {
|
|
@@ -11406,8 +11428,8 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11406
11428
|
const { active } = this;
|
|
11407
11429
|
return (h(Host, { tabIndex: this.disabled ? -1 : null }, h("div", { class: "calcite-dropdown-trigger-container", onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-expanded": active.toString(), "aria-haspopup": "true", name: SLOTS$h.dropdownTrigger })), h("div", { "aria-hidden": (!active).toString(), class: "calcite-dropdown-wrapper", ref: this.setMenuEl }, h("div", { class: {
|
|
11408
11430
|
["calcite-dropdown-content"]: true,
|
|
11409
|
-
[CSS$
|
|
11410
|
-
[CSS$
|
|
11431
|
+
[CSS$D.animation]: true,
|
|
11432
|
+
[CSS$D.animationActive]: active
|
|
11411
11433
|
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, h("slot", null)))));
|
|
11412
11434
|
}
|
|
11413
11435
|
//--------------------------------------------------------------------------
|
|
@@ -11600,13 +11622,13 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11600
11622
|
static get style() { return calciteDropdownCss; }
|
|
11601
11623
|
};
|
|
11602
11624
|
|
|
11603
|
-
const CSS$
|
|
11625
|
+
const CSS$A = {
|
|
11604
11626
|
containerSmall: "container--s",
|
|
11605
11627
|
containerMedium: "container--m",
|
|
11606
11628
|
containerLarge: "container--l"
|
|
11607
11629
|
};
|
|
11608
11630
|
|
|
11609
|
-
const calciteDropdownGroupCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.container--s{font-size:var(--calcite-font-size--2);line-height:1rem}.container--s .dropdown-title{padding:0.5rem}.container--m{font-size:var(--calcite-font-size--1);line-height:1rem}.container--m .dropdown-title{padding:0.75rem}.container--l{font-size:var(--calcite-font-size-0);line-height:1.25rem}.container--l .dropdown-title{padding:1rem}.dropdown-title{margin-bottom:-1px;display:block;cursor:default;overflow-wrap:break-word;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}.dropdown-separator{display:block;height:1px;background-color:var(--calcite-ui-border-3)}";
|
|
11631
|
+
const calciteDropdownGroupCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}.container--s{font-size:var(--calcite-font-size--2);line-height:1rem}.container--s .dropdown-title{padding:0.5rem}.container--m{font-size:var(--calcite-font-size--1);line-height:1rem}.container--m .dropdown-title{padding:0.75rem}.container--l{font-size:var(--calcite-font-size-0);line-height:1.25rem}.container--l .dropdown-title{padding:1rem}.dropdown-title{margin-bottom:-1px;display:block;cursor:default;overflow-wrap:break-word;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}.dropdown-separator{display:block;height:1px;background-color:var(--calcite-ui-border-3)}";
|
|
11610
11632
|
|
|
11611
11633
|
let CalciteDropdownGroup$1 = class extends HTMLElement$1 {
|
|
11612
11634
|
constructor() {
|
|
@@ -11632,9 +11654,9 @@ let CalciteDropdownGroup$1 = class extends HTMLElement$1 {
|
|
|
11632
11654
|
const dropdownSeparator = this.groupPosition > 0 ? h("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
11633
11655
|
return (h(Host, { role: "menu" }, h("div", { class: {
|
|
11634
11656
|
container: true,
|
|
11635
|
-
[CSS$
|
|
11636
|
-
[CSS$
|
|
11637
|
-
[CSS$
|
|
11657
|
+
[CSS$A.containerSmall]: scale === "s",
|
|
11658
|
+
[CSS$A.containerMedium]: scale === "m",
|
|
11659
|
+
[CSS$A.containerLarge]: scale === "l"
|
|
11638
11660
|
}, title: this.groupTitle }, dropdownSeparator, groupTitle, h("slot", null))));
|
|
11639
11661
|
}
|
|
11640
11662
|
//--------------------------------------------------------------------------
|
|
@@ -11662,7 +11684,7 @@ let CalciteDropdownGroup$1 = class extends HTMLElement$1 {
|
|
|
11662
11684
|
static get style() { return calciteDropdownGroupCss; }
|
|
11663
11685
|
};
|
|
11664
11686
|
|
|
11665
|
-
const CSS$
|
|
11687
|
+
const CSS$z = {
|
|
11666
11688
|
containerLink: "container--link",
|
|
11667
11689
|
containerSmall: "container--s",
|
|
11668
11690
|
containerMedium: "container--m",
|
|
@@ -11734,13 +11756,13 @@ let CalciteDropdownItem$1 = class extends HTMLElement$1 {
|
|
|
11734
11756
|
const itemAria = this.selectionMode !== "none" ? this.active.toString() : null;
|
|
11735
11757
|
return (h(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, h("div", { class: {
|
|
11736
11758
|
container: true,
|
|
11737
|
-
[CSS$
|
|
11738
|
-
[CSS$
|
|
11739
|
-
[CSS$
|
|
11740
|
-
[CSS$
|
|
11741
|
-
[CSS$
|
|
11742
|
-
[CSS$
|
|
11743
|
-
[CSS$
|
|
11759
|
+
[CSS$z.containerLink]: !!this.href,
|
|
11760
|
+
[CSS$z.containerSmall]: scale === "s",
|
|
11761
|
+
[CSS$z.containerMedium]: scale === "m",
|
|
11762
|
+
[CSS$z.containerLarge]: scale === "l",
|
|
11763
|
+
[CSS$z.containerMulti]: this.selectionMode === "multi",
|
|
11764
|
+
[CSS$z.containerSingle]: this.selectionMode === "single",
|
|
11765
|
+
[CSS$z.containerNone]: this.selectionMode === "none"
|
|
11744
11766
|
} }, this.selectionMode !== "none" ? (h("calcite-icon", { class: "dropdown-item-icon", icon: this.selectionMode === "multi" ? "check" : "bullet-point", scale: "s" })) : null, contentEl)));
|
|
11745
11767
|
}
|
|
11746
11768
|
//--------------------------------------------------------------------------
|
|
@@ -11822,7 +11844,7 @@ let CalciteDropdownItem$1 = class extends HTMLElement$1 {
|
|
|
11822
11844
|
static get style() { return calciteDropdownItemCss; }
|
|
11823
11845
|
};
|
|
11824
11846
|
|
|
11825
|
-
const CSS$
|
|
11847
|
+
const CSS$y = {
|
|
11826
11848
|
button: "button"
|
|
11827
11849
|
};
|
|
11828
11850
|
const ICONS$9 = {
|
|
@@ -11888,7 +11910,7 @@ let CalciteFab$1 = class extends HTMLElement$1 {
|
|
|
11888
11910
|
render() {
|
|
11889
11911
|
const { appearance, color, disabled, loading, scale, textEnabled, icon, label, text } = this;
|
|
11890
11912
|
const title = !textEnabled ? label || text || null : null;
|
|
11891
|
-
return (h("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$
|
|
11913
|
+
return (h("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$y.button, color: color, disabled: disabled, iconStart: icon, label: label, loading: loading, ref: (buttonEl) => {
|
|
11892
11914
|
this.buttonEl = buttonEl;
|
|
11893
11915
|
}, round: true, scale: scale, title: title, width: "auto" }, this.textEnabled ? this.text : null));
|
|
11894
11916
|
}
|
|
@@ -11896,7 +11918,7 @@ let CalciteFab$1 = class extends HTMLElement$1 {
|
|
|
11896
11918
|
static get style() { return calciteFabCss; }
|
|
11897
11919
|
};
|
|
11898
11920
|
|
|
11899
|
-
const CSS$
|
|
11921
|
+
const CSS$x = {
|
|
11900
11922
|
container: "container",
|
|
11901
11923
|
searchIcon: "search-icon",
|
|
11902
11924
|
clearButton: "clear-button"
|
|
@@ -12003,9 +12025,9 @@ let CalciteFilter$1 = class extends HTMLElement$1 {
|
|
|
12003
12025
|
// --------------------------------------------------------------------------
|
|
12004
12026
|
render() {
|
|
12005
12027
|
const { disabled } = this;
|
|
12006
|
-
return (h(Fragment, null, disabled ? h("calcite-scrim", null) : null, h("div", { class: CSS$
|
|
12028
|
+
return (h(Fragment, null, disabled ? h("calcite-scrim", null) : null, h("div", { class: CSS$x.container }, h("label", null, h("calcite-input", { "aria-label": this.intlLabel || TEXT$d.filterLabel, disabled: this.disabled, icon: ICONS$8.search, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {
|
|
12007
12029
|
this.textInput = el;
|
|
12008
|
-
}, type: "text", value: this.value })), this.value ? (h("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$
|
|
12030
|
+
}, type: "text", value: this.value })), this.value ? (h("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$x.clearButton, onClick: this.clear }, h("calcite-icon", { icon: ICONS$8.close }))) : null)));
|
|
12009
12031
|
}
|
|
12010
12032
|
get el() { return this; }
|
|
12011
12033
|
static get watchers() { return {
|
|
@@ -12015,7 +12037,7 @@ let CalciteFilter$1 = class extends HTMLElement$1 {
|
|
|
12015
12037
|
static get style() { return calciteFilterCss; }
|
|
12016
12038
|
};
|
|
12017
12039
|
|
|
12018
|
-
const CSS$
|
|
12040
|
+
const CSS$w = {
|
|
12019
12041
|
frame: "frame",
|
|
12020
12042
|
frameAdvancing: "frame--advancing",
|
|
12021
12043
|
frameRetreating: "frame--retreating"
|
|
@@ -12115,9 +12137,9 @@ let CalciteFlow$1 = class extends HTMLElement$1 {
|
|
|
12115
12137
|
render() {
|
|
12116
12138
|
const { flowDirection, panelCount } = this;
|
|
12117
12139
|
const frameDirectionClasses = {
|
|
12118
|
-
[CSS$
|
|
12119
|
-
[CSS$
|
|
12120
|
-
[CSS$
|
|
12140
|
+
[CSS$w.frame]: true,
|
|
12141
|
+
[CSS$w.frameAdvancing]: flowDirection === "advancing",
|
|
12142
|
+
[CSS$w.frameRetreating]: flowDirection === "retreating"
|
|
12121
12143
|
};
|
|
12122
12144
|
return (h("div", { class: frameDirectionClasses, key: panelCount }, h("slot", null)));
|
|
12123
12145
|
}
|
|
@@ -12309,7 +12331,7 @@ let CalciteGraph$1 = class extends HTMLElement$1 {
|
|
|
12309
12331
|
static get style() { return calciteGraphCss; }
|
|
12310
12332
|
};
|
|
12311
12333
|
|
|
12312
|
-
const CSS$
|
|
12334
|
+
const CSS$v = {
|
|
12313
12335
|
handle: "handle",
|
|
12314
12336
|
handleActivated: "handle--activated"
|
|
12315
12337
|
};
|
|
@@ -12379,7 +12401,7 @@ let CalciteHandle$1 = class extends HTMLElement$1 {
|
|
|
12379
12401
|
render() {
|
|
12380
12402
|
return (
|
|
12381
12403
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
12382
|
-
h("span", { "aria-pressed": this.activated.toString(), class: { [CSS$
|
|
12404
|
+
h("span", { "aria-pressed": this.activated.toString(), class: { [CSS$v.handle]: true, [CSS$v.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
12383
12405
|
this.handleButton = el;
|
|
12384
12406
|
}, role: "button", tabindex: "0", title: this.textTitle }, h("calcite-icon", { icon: ICONS$7.drag, scale: "s" })));
|
|
12385
12407
|
}
|
|
@@ -12387,7 +12409,7 @@ let CalciteHandle$1 = class extends HTMLElement$1 {
|
|
|
12387
12409
|
static get style() { return calciteHandleCss; }
|
|
12388
12410
|
};
|
|
12389
12411
|
|
|
12390
|
-
const CSS$
|
|
12412
|
+
const CSS$u = {
|
|
12391
12413
|
icon: "icon",
|
|
12392
12414
|
flipRtl: "flip-rtl"
|
|
12393
12415
|
};
|
|
@@ -12451,7 +12473,7 @@ function normalizeIconName(name) {
|
|
|
12451
12473
|
.join("");
|
|
12452
12474
|
}
|
|
12453
12475
|
|
|
12454
|
-
const calciteIconCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex}:host([scale=s]){height:1rem;width:1rem;min-width:1rem;min-height:1rem}:host([scale=m]){height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}:host([scale=l]){height:2rem;width:2rem;min-width:2rem;min-height:2rem}.flip-rtl{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.svg{display:block}";
|
|
12476
|
+
const calciteIconCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-icon-color)}:host([scale=s]){height:1rem;width:1rem;min-width:1rem;min-height:1rem}:host([scale=m]){height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}:host([scale=l]){height:2rem;width:2rem;min-width:2rem;min-height:2rem}.flip-rtl{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.svg{display:block}";
|
|
12455
12477
|
|
|
12456
12478
|
let CalciteIcon$1 = class extends HTMLElement$1 {
|
|
12457
12479
|
constructor() {
|
|
@@ -12503,7 +12525,7 @@ let CalciteIcon$1 = class extends HTMLElement$1 {
|
|
|
12503
12525
|
const semantic = !!textLabel;
|
|
12504
12526
|
const paths = [].concat(pathData || "");
|
|
12505
12527
|
return (h(Host, { "aria-hidden": (!semantic).toString(), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, h("svg", { class: {
|
|
12506
|
-
[CSS$
|
|
12528
|
+
[CSS$u.flipRtl]: dir === "rtl" && flipRtl,
|
|
12507
12529
|
svg: true
|
|
12508
12530
|
}, fill: "currentColor", height: "100%", viewBox: `0 0 ${size} ${size}`, width: "100%", xmlns: "http://www.w3.org/2000/svg" }, paths.map((path) => typeof path === "string" ? (h("path", { d: path })) : (h("path", { d: path.d, opacity: "opacity" in path ? path.opacity : 1 }))))));
|
|
12509
12531
|
}
|
|
@@ -12544,7 +12566,7 @@ let CalciteIcon$1 = class extends HTMLElement$1 {
|
|
|
12544
12566
|
static get style() { return calciteIconCss; }
|
|
12545
12567
|
};
|
|
12546
12568
|
|
|
12547
|
-
const CSS$
|
|
12569
|
+
const CSS$t = {
|
|
12548
12570
|
wrapper: "wrapper",
|
|
12549
12571
|
confirmChangesButton: "confirm-changes-button",
|
|
12550
12572
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -12692,12 +12714,12 @@ let CalciteInlineEditable$1 = class extends HTMLElement$1 {
|
|
|
12692
12714
|
this.scale || this.inputElement.scale || getElementProp(this.el, "scale", undefined);
|
|
12693
12715
|
}
|
|
12694
12716
|
render() {
|
|
12695
|
-
return (h("div", { class: CSS$
|
|
12717
|
+
return (h("div", { class: CSS$t.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler, onTransitionEnd: this.transitionEnd }, h("div", { class: CSS$t.inputWrapper }, h("slot", null)), h("div", { class: CSS$t.controlsWrapper }, h("calcite-button", { appearance: "transparent", class: CSS$t.enableEditingButton, color: "neutral", disabled: this.disabled, iconStart: "pencil", label: this.intlEnableEditing, onClick: this.enableEditingHandler, ref: (el) => (this.enableEditingButton = el), scale: this.scale, style: {
|
|
12696
12718
|
opacity: this.editingEnabled ? "0" : "1",
|
|
12697
12719
|
width: this.editingEnabled ? "0" : "inherit"
|
|
12698
12720
|
} }), this.shouldShowControls && [
|
|
12699
|
-
h("div", { class: CSS$
|
|
12700
|
-
h("calcite-button", { appearance: "solid", class: CSS$
|
|
12721
|
+
h("div", { class: CSS$t.cancelEditingButtonWrapper }, h("calcite-button", { appearance: "transparent", class: CSS$t.cancelEditingButton, color: "neutral", disabled: this.disabled, iconStart: "x", label: this.intlCancelEditing, onClick: this.cancelEditingHandler, ref: (el) => (this.cancelEditingButton = el), scale: this.scale })),
|
|
12722
|
+
h("calcite-button", { appearance: "solid", class: CSS$t.confirmChangesButton, color: "blue", disabled: this.disabled, iconStart: "check", label: this.intlConfirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, scale: this.scale })
|
|
12701
12723
|
])));
|
|
12702
12724
|
}
|
|
12703
12725
|
//--------------------------------------------------------------------------
|
|
@@ -12743,7 +12765,7 @@ let CalciteInlineEditable$1 = class extends HTMLElement$1 {
|
|
|
12743
12765
|
static get style() { return calciteInlineEditableCss; }
|
|
12744
12766
|
};
|
|
12745
12767
|
|
|
12746
|
-
const CSS$
|
|
12768
|
+
const CSS$s = {
|
|
12747
12769
|
loader: "loader",
|
|
12748
12770
|
clearButton: "clear-button",
|
|
12749
12771
|
editingEnabled: "editing-enabled",
|
|
@@ -12993,18 +13015,19 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
12993
13015
|
};
|
|
12994
13016
|
this.setValue = (value, nativeEvent, committing = false) => {
|
|
12995
13017
|
const previousValue = this.value;
|
|
12996
|
-
this.value = this.type === "number" ? sanitizeNumberString(value) : value;
|
|
12997
13018
|
if (this.type === "number") {
|
|
12998
|
-
|
|
13019
|
+
const sanitizedValue = sanitizeNumberString(value);
|
|
13020
|
+
this.value = sanitizedValue;
|
|
13021
|
+
this.setLocalizedValue(sanitizedValue);
|
|
13022
|
+
}
|
|
13023
|
+
else {
|
|
13024
|
+
this.value = value;
|
|
12999
13025
|
}
|
|
13000
13026
|
if (nativeEvent) {
|
|
13001
|
-
if (this.type === "number") {
|
|
13002
|
-
value = sanitizeNumberString(value);
|
|
13003
|
-
}
|
|
13004
13027
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
13005
13028
|
element: this.childEl,
|
|
13006
13029
|
nativeEvent,
|
|
13007
|
-
value
|
|
13030
|
+
value: this.value
|
|
13008
13031
|
});
|
|
13009
13032
|
if (calciteInputInputEvent.defaultPrevented) {
|
|
13010
13033
|
this.value = previousValue;
|
|
@@ -13169,34 +13192,34 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13169
13192
|
// --------------------------------------------------------------------------
|
|
13170
13193
|
render() {
|
|
13171
13194
|
const dir = getElementDir(this.el);
|
|
13172
|
-
const loader = (h("div", { class: CSS$
|
|
13173
|
-
const inputClearButton = (h("button", { class: CSS$
|
|
13174
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
13195
|
+
const loader = (h("div", { class: CSS$s.loader }, h("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
13196
|
+
const inputClearButton = (h("button", { class: CSS$s.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, h("calcite-icon", { icon: "x", scale: "s" })));
|
|
13197
|
+
const iconEl = (h("calcite-icon", { class: CSS$s.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
13175
13198
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
13176
13199
|
const numberButtonsHorizontalUp = (h("button", { class: {
|
|
13177
|
-
[CSS$
|
|
13178
|
-
[CSS$
|
|
13200
|
+
[CSS$s.numberButtonItem]: true,
|
|
13201
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
13179
13202
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onMouseDown: this.numberButtonMouseDownHandler, onMouseOut: this.numberButtonMouseUpAndMouseOutHandler, onMouseUp: this.numberButtonMouseUpAndMouseOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
13180
13203
|
const numberButtonsHorizontalDown = (h("button", { class: {
|
|
13181
|
-
[CSS$
|
|
13182
|
-
[CSS$
|
|
13204
|
+
[CSS$s.numberButtonItem]: true,
|
|
13205
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
13183
13206
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onMouseDown: this.numberButtonMouseDownHandler, onMouseOut: this.numberButtonMouseUpAndMouseOutHandler, onMouseUp: this.numberButtonMouseUpAndMouseOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
13184
|
-
const numberButtonsVertical = (h("div", { class: CSS$
|
|
13185
|
-
const prefixText = h("div", { class: CSS$
|
|
13186
|
-
const suffixText = h("div", { class: CSS$
|
|
13207
|
+
const numberButtonsVertical = (h("div", { class: CSS$s.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
13208
|
+
const prefixText = h("div", { class: CSS$s.prefix }, this.prefixText);
|
|
13209
|
+
const suffixText = h("div", { class: CSS$s.suffix }, this.suffixText);
|
|
13187
13210
|
const localeNumberInput = this.type === "number" ? (h("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, type: "text", value: this.localizedValue })) : null;
|
|
13188
13211
|
const childEl = this.type !== "number"
|
|
13189
13212
|
? [
|
|
13190
13213
|
h(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
13191
|
-
[CSS$
|
|
13192
|
-
[CSS$
|
|
13214
|
+
[CSS$s.editingEnabled]: this.editingEnabled,
|
|
13215
|
+
[CSS$s.inlineChild]: !!this.inlineEditableEl
|
|
13193
13216
|
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, max: this.maxString, maxLength: this.maxLength, min: this.minString, minLength: this.minLength, name: this.name, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputInputHandler, onKeyDown: this.inputKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildElRef, required: this.required ? true : null, step: this.step, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: this.type, value: this.value }),
|
|
13194
|
-
this.isTextarea ? (h("div", { class: CSS$
|
|
13217
|
+
this.isTextarea ? (h("div", { class: CSS$s.resizeIconWrapper }, h("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
13195
13218
|
]
|
|
13196
13219
|
: null;
|
|
13197
|
-
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$
|
|
13220
|
+
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$s.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
13198
13221
|
? numberButtonsHorizontalDown
|
|
13199
|
-
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$
|
|
13222
|
+
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$s.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$s.actionWrapper }, h("slot", { name: SLOTS$g.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
13200
13223
|
? numberButtonsVertical
|
|
13201
13224
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
13202
13225
|
? numberButtonsHorizontalUp
|
|
@@ -13458,8 +13481,8 @@ let CalciteInputDatePicker$1 = class extends HTMLElement$1 {
|
|
|
13458
13481
|
return (h(Host, { onBlur: this.deactivate, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": this.active.toString(), class: "input-container", role: "application" }, h("div", { class: "input-wrapper", ref: this.setStartWrapper }, h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none", onCalciteInputBlur: this.inputBlur, onCalciteInputFocus: this.startInputFocus, onCalciteInputInput: this.inputInput, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), h("div", { "aria-hidden": (!this.active).toString(), class: "menu-container", ref: this.setMenuEl }, h("div", { class: {
|
|
13459
13482
|
["calendar-picker-wrapper"]: true,
|
|
13460
13483
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
13461
|
-
[CSS$
|
|
13462
|
-
[CSS$
|
|
13484
|
+
[CSS$D.animation]: true,
|
|
13485
|
+
[CSS$D.animationActive]: this.active
|
|
13463
13486
|
}, onTransitionEnd: this.transitionEnd }, h("calcite-date-picker", { activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, locale: this.locale, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, startAsDate: this.startAsDate, tabIndex: 0, valueAsDate: this.valueAsDate }))), this.range && this.layout === "horizontal" && (h("div", { class: "horizontal-arrow-container" }, h("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (h("div", { class: "vertical-arrow-container" }, h("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (h("div", { class: "input-wrapper", ref: this.setEndWrapper }, h("calcite-input", { class: {
|
|
13464
13487
|
input: true,
|
|
13465
13488
|
"border-top-color-one": this.layout === "vertical" && this.range
|
|
@@ -14080,7 +14103,7 @@ let CalciteInputTimePicker$1 = class extends HTMLElement$1 {
|
|
|
14080
14103
|
static get style() { return calciteInputTimePickerCss; }
|
|
14081
14104
|
};
|
|
14082
14105
|
|
|
14083
|
-
const CSS$
|
|
14106
|
+
const CSS$r = {
|
|
14084
14107
|
container: "container"
|
|
14085
14108
|
};
|
|
14086
14109
|
|
|
@@ -14126,7 +14149,7 @@ let CalciteLabel$1 = class extends HTMLElement$1 {
|
|
|
14126
14149
|
//
|
|
14127
14150
|
//--------------------------------------------------------------------------
|
|
14128
14151
|
render() {
|
|
14129
|
-
return (h(Host, { onClick: this.labelClickHandler }, h("div", { class: CSS$
|
|
14152
|
+
return (h(Host, { onClick: this.labelClickHandler }, h("div", { class: CSS$r.container }, h("slot", null))));
|
|
14130
14153
|
}
|
|
14131
14154
|
get el() { return this; }
|
|
14132
14155
|
static get style() { return calciteLabelCss; }
|
|
@@ -14193,7 +14216,7 @@ let CalciteLink$1 = class extends HTMLElement$1 {
|
|
|
14193
14216
|
static get style() { return calciteLinkCss; }
|
|
14194
14217
|
};
|
|
14195
14218
|
|
|
14196
|
-
const CSS$
|
|
14219
|
+
const CSS$q = {
|
|
14197
14220
|
container: "container"
|
|
14198
14221
|
};
|
|
14199
14222
|
|
|
@@ -14221,13 +14244,13 @@ let CalciteList$1 = class extends HTMLElement$1 {
|
|
|
14221
14244
|
//
|
|
14222
14245
|
// --------------------------------------------------------------------------
|
|
14223
14246
|
render() {
|
|
14224
|
-
return (h(Host, { role: "list" }, h("div", { class: CSS$
|
|
14247
|
+
return (h(Host, { role: "list" }, h("div", { class: CSS$q.container }, h("slot", null))));
|
|
14225
14248
|
}
|
|
14226
14249
|
get el() { return this; }
|
|
14227
14250
|
static get style() { return calciteListCss; }
|
|
14228
14251
|
};
|
|
14229
14252
|
|
|
14230
|
-
const CSS$
|
|
14253
|
+
const CSS$p = {
|
|
14231
14254
|
container: "container",
|
|
14232
14255
|
contentContainer: "content-container",
|
|
14233
14256
|
nestedContainer: "nested-container",
|
|
@@ -14285,37 +14308,37 @@ let CalciteListItem$1 = class extends HTMLElement$1 {
|
|
|
14285
14308
|
// --------------------------------------------------------------------------
|
|
14286
14309
|
renderActionsStart() {
|
|
14287
14310
|
const { el } = this;
|
|
14288
|
-
return getSlotted(el, SLOTS$f.actionsStart) ? (h("div", { class: CSS$
|
|
14311
|
+
return getSlotted(el, SLOTS$f.actionsStart) ? (h("div", { class: CSS$p.actionsStart }, h("slot", { name: SLOTS$f.actionsStart }))) : null;
|
|
14289
14312
|
}
|
|
14290
14313
|
renderActionsEnd() {
|
|
14291
14314
|
const { el } = this;
|
|
14292
|
-
return getSlotted(el, SLOTS$f.actionsEnd) ? (h("div", { class: CSS$
|
|
14315
|
+
return getSlotted(el, SLOTS$f.actionsEnd) ? (h("div", { class: CSS$p.actionsEnd }, h("slot", { name: SLOTS$f.actionsEnd }))) : null;
|
|
14293
14316
|
}
|
|
14294
14317
|
renderContentStart() {
|
|
14295
14318
|
const { el } = this;
|
|
14296
|
-
return getSlotted(el, SLOTS$f.contentStart) ? (h("div", { class: CSS$
|
|
14319
|
+
return getSlotted(el, SLOTS$f.contentStart) ? (h("div", { class: CSS$p.contentStart }, h("slot", { name: SLOTS$f.contentStart }))) : null;
|
|
14297
14320
|
}
|
|
14298
14321
|
renderContentEnd() {
|
|
14299
14322
|
const { el } = this;
|
|
14300
|
-
return getSlotted(el, SLOTS$f.contentEnd) ? (h("div", { class: CSS$
|
|
14323
|
+
return getSlotted(el, SLOTS$f.contentEnd) ? (h("div", { class: CSS$p.contentEnd }, h("slot", { name: SLOTS$f.contentEnd }))) : null;
|
|
14301
14324
|
}
|
|
14302
14325
|
renderContent() {
|
|
14303
14326
|
const { label, description } = this;
|
|
14304
|
-
return !!label || !!description ? (h("div", { class: CSS$
|
|
14327
|
+
return !!label || !!description ? (h("div", { class: CSS$p.content }, label ? h("div", { class: CSS$p.label }, label) : null, description ? h("div", { class: CSS$p.description }, description) : null)) : null;
|
|
14305
14328
|
}
|
|
14306
14329
|
renderContentContainer() {
|
|
14307
14330
|
const { disabled, nonInteractive } = this;
|
|
14308
14331
|
const content = [this.renderContentStart(), this.renderContent(), this.renderContentEnd()];
|
|
14309
|
-
return !nonInteractive ? (h("button", { class: { [CSS$
|
|
14332
|
+
return !nonInteractive ? (h("button", { class: { [CSS$p.contentContainer]: true, [CSS$p.contentContainerButton]: true }, disabled: disabled, ref: (focusEl) => (this.focusEl = focusEl) }, content)) : (h("div", { class: CSS$p.contentContainer, ref: () => (this.focusEl = null) }, content));
|
|
14310
14333
|
}
|
|
14311
14334
|
render() {
|
|
14312
|
-
return (h(Host, { role: "listitem" }, h("div", { class: CSS$
|
|
14335
|
+
return (h(Host, { role: "listitem" }, h("div", { class: CSS$p.container }, this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), h("div", { class: CSS$p.nestedContainer }, h("slot", null))));
|
|
14313
14336
|
}
|
|
14314
14337
|
get el() { return this; }
|
|
14315
14338
|
static get style() { return calciteListItemCss; }
|
|
14316
14339
|
};
|
|
14317
14340
|
|
|
14318
|
-
const CSS$
|
|
14341
|
+
const CSS$o = {
|
|
14319
14342
|
heading: "heading",
|
|
14320
14343
|
container: "container"
|
|
14321
14344
|
};
|
|
@@ -14340,7 +14363,7 @@ let CalciteListItemGroup$1 = class extends HTMLElement$1 {
|
|
|
14340
14363
|
const parentLevel = (_a = el.closest("calcite-list, calcite-list-item-group")) === null || _a === void 0 ? void 0 : _a.headingLevel;
|
|
14341
14364
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
14342
14365
|
const level = headingLevel || relativeLevel || HEADING_LEVEL$5;
|
|
14343
|
-
return (h(Host, null, heading ? (h(CalciteHeading, { class: CSS$
|
|
14366
|
+
return (h(Host, null, heading ? (h(CalciteHeading, { class: CSS$o.heading, level: level }, heading)) : null, h("div", { class: CSS$o.container, role: "group" }, h("slot", null))));
|
|
14344
14367
|
}
|
|
14345
14368
|
get el() { return this; }
|
|
14346
14369
|
static get style() { return calciteListItemGroupCss; }
|
|
@@ -14527,7 +14550,7 @@ function isFocusable($elem) {
|
|
|
14527
14550
|
|| $elem instanceof HTMLIFrameElement);
|
|
14528
14551
|
}
|
|
14529
14552
|
|
|
14530
|
-
const CSS$
|
|
14553
|
+
const CSS$n = {
|
|
14531
14554
|
title: "title",
|
|
14532
14555
|
header: "header",
|
|
14533
14556
|
footer: "footer",
|
|
@@ -14666,17 +14689,17 @@ let CalciteModal$1 = class extends HTMLElement$1 {
|
|
|
14666
14689
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
14667
14690
|
}
|
|
14668
14691
|
render() {
|
|
14669
|
-
return (h(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, h("calcite-scrim", { class: CSS$
|
|
14692
|
+
return (h(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, h("calcite-scrim", { class: CSS$n.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), h("div", { class: "modal", onTransitionEnd: this.transitionEnd }, h("div", { "data-focus-fence": true, onFocus: this.focusLastElement, tabindex: "0" }), h("div", { class: CSS$n.header }, this.renderCloseButton(), h("header", { class: CSS$n.title }, h("slot", { name: CSS$n.header }))), h("div", { class: {
|
|
14670
14693
|
content: true,
|
|
14671
14694
|
"content--spaced": !this.noPadding,
|
|
14672
14695
|
"content--no-footer": !this.hasFooter
|
|
14673
14696
|
}, ref: (el) => (this.modalContent = el) }, h("slot", { name: SLOTS$e.content })), this.renderFooter(), h("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
|
14674
14697
|
}
|
|
14675
14698
|
renderFooter() {
|
|
14676
|
-
return this.hasFooter ? (h("div", { class: CSS$
|
|
14699
|
+
return this.hasFooter ? (h("div", { class: CSS$n.footer }, h("span", { class: CSS$n.back }, h("slot", { name: SLOTS$e.back })), h("span", { class: CSS$n.secondary }, h("slot", { name: SLOTS$e.secondary })), h("span", { class: CSS$n.primary }, h("slot", { name: SLOTS$e.primary })))) : null;
|
|
14677
14700
|
}
|
|
14678
14701
|
renderCloseButton() {
|
|
14679
|
-
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS$
|
|
14702
|
+
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS$n.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, h("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
14680
14703
|
}
|
|
14681
14704
|
renderStyle() {
|
|
14682
14705
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -14766,10 +14789,10 @@ let CalciteModal$1 = class extends HTMLElement$1 {
|
|
|
14766
14789
|
const contentEl = getSlotted(this.el, SLOTS$e.content);
|
|
14767
14790
|
this.titleId = ensureId(titleEl);
|
|
14768
14791
|
this.contentId = ensureId(contentEl);
|
|
14769
|
-
document.documentElement.classList.add(CSS$
|
|
14792
|
+
document.documentElement.classList.add(CSS$n.overflowHidden);
|
|
14770
14793
|
}
|
|
14771
14794
|
removeOverflowHiddenClass() {
|
|
14772
|
-
document.documentElement.classList.remove(CSS$
|
|
14795
|
+
document.documentElement.classList.remove(CSS$n.overflowHidden);
|
|
14773
14796
|
}
|
|
14774
14797
|
get el() { return this; }
|
|
14775
14798
|
static get watchers() { return {
|
|
@@ -14787,7 +14810,7 @@ const SLOTS$d = {
|
|
|
14787
14810
|
link: "link",
|
|
14788
14811
|
actionsEnd: "actions-end"
|
|
14789
14812
|
};
|
|
14790
|
-
const CSS$
|
|
14813
|
+
const CSS$m = {
|
|
14791
14814
|
actionsEnd: "actions-end",
|
|
14792
14815
|
close: "notice-close",
|
|
14793
14816
|
container: "container",
|
|
@@ -14849,9 +14872,9 @@ let CalciteNotice$1 = class extends HTMLElement$1 {
|
|
|
14849
14872
|
}
|
|
14850
14873
|
render() {
|
|
14851
14874
|
const { el } = this;
|
|
14852
|
-
const closeButton = (h("button", { "aria-label": this.intlClose, class: CSS$
|
|
14875
|
+
const closeButton = (h("button", { "aria-label": this.intlClose, class: CSS$m.close, onClick: this.close, ref: (el) => (this.closeButton = el) }, h("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
14853
14876
|
const hasActionEnd = getSlotted(el, SLOTS$d.actionsEnd);
|
|
14854
|
-
return (h("div", { class: CSS$
|
|
14877
|
+
return (h("div", { class: CSS$m.container }, this.requestedIcon ? (h("div", { class: CSS$m.icon }, h("calcite-icon", { icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: CSS$m.content }, h("slot", { name: SLOTS$d.title }), h("slot", { name: SLOTS$d.message }), h("slot", { name: SLOTS$d.link })), hasActionEnd ? (h("div", { class: CSS$m.actionsEnd }, h("slot", { name: SLOTS$d.actionsEnd }))) : null, this.dismissible ? closeButton : null));
|
|
14855
14878
|
}
|
|
14856
14879
|
//--------------------------------------------------------------------------
|
|
14857
14880
|
//
|
|
@@ -14995,7 +15018,7 @@ let CalciteOptionGroup$1 = class extends HTMLElement$1 {
|
|
|
14995
15018
|
static get style() { return calciteOptionGroupCss; }
|
|
14996
15019
|
};
|
|
14997
15020
|
|
|
14998
|
-
const CSS$
|
|
15021
|
+
const CSS$l = {
|
|
14999
15022
|
page: "page",
|
|
15000
15023
|
selected: "is-selected",
|
|
15001
15024
|
previous: "previous",
|
|
@@ -15130,8 +15153,8 @@ let CalcitePagination$1 = class extends HTMLElement$1 {
|
|
|
15130
15153
|
renderPage(start) {
|
|
15131
15154
|
const page = Math.floor(start / this.num) + (this.num === 1 ? 0 : 1);
|
|
15132
15155
|
return (h("button", { class: {
|
|
15133
|
-
[CSS$
|
|
15134
|
-
[CSS$
|
|
15156
|
+
[CSS$l.page]: true,
|
|
15157
|
+
[CSS$l.selected]: start === this.start
|
|
15135
15158
|
}, onClick: () => {
|
|
15136
15159
|
this.start = start;
|
|
15137
15160
|
this.emitUpdate();
|
|
@@ -15139,12 +15162,12 @@ let CalcitePagination$1 = class extends HTMLElement$1 {
|
|
|
15139
15162
|
}
|
|
15140
15163
|
renderLeftEllipsis() {
|
|
15141
15164
|
if (this.total / this.num > maxPagesDisplayed && this.showLeftEllipsis()) {
|
|
15142
|
-
return h("span", { class: `${CSS$
|
|
15165
|
+
return h("span", { class: `${CSS$l.ellipsis} ${CSS$l.ellipsisStart}` }, "\u2026");
|
|
15143
15166
|
}
|
|
15144
15167
|
}
|
|
15145
15168
|
renderRightEllipsis() {
|
|
15146
15169
|
if (this.total / this.num > maxPagesDisplayed && this.showRightEllipsis()) {
|
|
15147
|
-
return h("span", { class: `${CSS$
|
|
15170
|
+
return h("span", { class: `${CSS$l.ellipsis} ${CSS$l.ellipsisEnd}` }, "\u2026");
|
|
15148
15171
|
}
|
|
15149
15172
|
}
|
|
15150
15173
|
render() {
|
|
@@ -15152,18 +15175,18 @@ let CalcitePagination$1 = class extends HTMLElement$1 {
|
|
|
15152
15175
|
const prevDisabled = num === 1 ? start <= num : start < num;
|
|
15153
15176
|
const nextDisabled = num === 1 ? start + num > total : start + num > total;
|
|
15154
15177
|
return (h(Fragment, null, h("button", { "aria-label": this.textLabelPrevious, class: {
|
|
15155
|
-
[CSS$
|
|
15156
|
-
[CSS$
|
|
15178
|
+
[CSS$l.previous]: true,
|
|
15179
|
+
[CSS$l.disabled]: prevDisabled
|
|
15157
15180
|
}, disabled: prevDisabled, onClick: this.previousClicked }, h("calcite-icon", { flipRtl: true, icon: "chevronLeft", scale: "s" })), total > num ? this.renderPage(1) : null, this.renderLeftEllipsis(), this.renderPages(), this.renderRightEllipsis(), this.renderPage(this.getLastStart()), h("button", { "aria-label": this.textLabelNext, class: {
|
|
15158
|
-
[CSS$
|
|
15159
|
-
[CSS$
|
|
15181
|
+
[CSS$l.next]: true,
|
|
15182
|
+
[CSS$l.disabled]: nextDisabled
|
|
15160
15183
|
}, disabled: nextDisabled, onClick: this.nextClicked }, h("calcite-icon", { flipRtl: true, icon: "chevronRight", scale: "s" }))));
|
|
15161
15184
|
}
|
|
15162
15185
|
get el() { return this; }
|
|
15163
15186
|
static get style() { return calcitePaginationCss; }
|
|
15164
15187
|
};
|
|
15165
15188
|
|
|
15166
|
-
const CSS$
|
|
15189
|
+
const CSS$k = {
|
|
15167
15190
|
backButton: "back-button",
|
|
15168
15191
|
container: "container",
|
|
15169
15192
|
header: "header",
|
|
@@ -15306,24 +15329,24 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15306
15329
|
const { showBackButton, intlBack, backButtonClick } = this;
|
|
15307
15330
|
const label = intlBack || TEXT$8.back;
|
|
15308
15331
|
const icon = rtl ? ICONS$5.backRight : ICONS$5.backLeft;
|
|
15309
|
-
return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS$
|
|
15332
|
+
return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS$k.backButton, icon: icon, key: "back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: SLOTS$c.headerActionsStart, text: label })) : null;
|
|
15310
15333
|
}
|
|
15311
15334
|
renderHeaderContent() {
|
|
15312
15335
|
const { heading, headingLevel, summary } = this;
|
|
15313
|
-
const headingNode = heading ? (h(CalciteHeading, { class: CSS$
|
|
15314
|
-
const summaryNode = summary ? h("span", { class: CSS$
|
|
15315
|
-
return headingNode || summaryNode ? (h("div", { class: CSS$
|
|
15336
|
+
const headingNode = heading ? (h(CalciteHeading, { class: CSS$k.heading, level: headingLevel || HEADING_LEVEL$4 }, heading)) : null;
|
|
15337
|
+
const summaryNode = summary ? h("span", { class: CSS$k.summary }, summary) : null;
|
|
15338
|
+
return headingNode || summaryNode ? (h("div", { class: CSS$k.headerContent, key: "header-content" }, headingNode, summaryNode)) : null;
|
|
15316
15339
|
}
|
|
15317
15340
|
/**
|
|
15318
15341
|
* Allows user to override the entire header-content node.
|
|
15319
15342
|
*/
|
|
15320
15343
|
renderHeaderSlottedContent() {
|
|
15321
|
-
return (h("div", { class: CSS$
|
|
15344
|
+
return (h("div", { class: CSS$k.headerContent, key: "header-content" }, h("slot", { name: SLOTS$c.headerContent })));
|
|
15322
15345
|
}
|
|
15323
15346
|
renderHeaderStartActions() {
|
|
15324
15347
|
const { el } = this;
|
|
15325
15348
|
const hasStartActions = getSlotted(el, SLOTS$c.headerActionsStart);
|
|
15326
|
-
return hasStartActions ? (h("div", { class: { [CSS$
|
|
15349
|
+
return hasStartActions ? (h("div", { class: { [CSS$k.headerActionsStart]: true, [CSS$k.headerActions]: true }, key: "header-actions-start" }, h("slot", { name: SLOTS$c.headerActionsStart }))) : null;
|
|
15327
15350
|
}
|
|
15328
15351
|
renderHeaderActionsEnd() {
|
|
15329
15352
|
const { dismiss, dismissible, el, intlClose } = this;
|
|
@@ -15331,7 +15354,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15331
15354
|
const dismissibleNode = dismissible ? (h("calcite-action", { "aria-label": text, icon: ICONS$5.close, onClick: dismiss, ref: this.setDismissRef, text: text })) : null;
|
|
15332
15355
|
const slotNode = h("slot", { name: SLOTS$c.headerActionsEnd });
|
|
15333
15356
|
const hasEndActions = getSlotted(el, SLOTS$c.headerActionsEnd);
|
|
15334
|
-
return hasEndActions || dismissibleNode ? (h("div", { class: { [CSS$
|
|
15357
|
+
return hasEndActions || dismissibleNode ? (h("div", { class: { [CSS$k.headerActionsEnd]: true, [CSS$k.headerActions]: true }, key: "header-actions-end" }, slotNode, dismissibleNode)) : null;
|
|
15335
15358
|
}
|
|
15336
15359
|
renderMenu() {
|
|
15337
15360
|
const { el, intlOptions, menuOpen } = this;
|
|
@@ -15352,7 +15375,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15352
15375
|
headerContentNode ||
|
|
15353
15376
|
actionsNodeEnd ||
|
|
15354
15377
|
headerMenuNode ||
|
|
15355
|
-
showBackButton ? (h("header", { class: CSS$
|
|
15378
|
+
showBackButton ? (h("header", { class: CSS$k.header }, backButtonNode, actionsNodeStart, headerContentNode, actionsNodeEnd, headerMenuNode)) : null;
|
|
15356
15379
|
}
|
|
15357
15380
|
/**
|
|
15358
15381
|
* Allows user to override the entire footer node.
|
|
@@ -15360,24 +15383,24 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15360
15383
|
renderFooterSlottedContent() {
|
|
15361
15384
|
const { el } = this;
|
|
15362
15385
|
const hasFooterSlottedContent = getSlotted(el, SLOTS$c.footer);
|
|
15363
|
-
return hasFooterSlottedContent ? (h("footer", { class: CSS$
|
|
15386
|
+
return hasFooterSlottedContent ? (h("footer", { class: CSS$k.footer }, h("slot", { name: SLOTS$c.footer }))) : null;
|
|
15364
15387
|
}
|
|
15365
15388
|
renderFooterActions() {
|
|
15366
15389
|
const { el } = this;
|
|
15367
15390
|
const hasFooterActions = getSlotted(el, SLOTS$c.footerActions);
|
|
15368
|
-
return hasFooterActions ? (h("footer", { class: CSS$
|
|
15391
|
+
return hasFooterActions ? (h("footer", { class: CSS$k.footer }, h("slot", { name: SLOTS$c.footerActions }))) : null;
|
|
15369
15392
|
}
|
|
15370
15393
|
renderContent() {
|
|
15371
15394
|
const { el } = this;
|
|
15372
15395
|
const hasFab = getSlotted(el, SLOTS$c.fab);
|
|
15373
|
-
return hasFab ? (h("div", { class: { [CSS$
|
|
15396
|
+
return hasFab ? (h("div", { class: { [CSS$k.contentWrapper]: true, [CSS$k.contentHeight]: true }, onScroll: this.panelScrollHandler, tabIndex: 0 }, h("section", { class: CSS$k.contentContainer }, h("slot", null)), this.renderFab())) : (h("section", { class: { [CSS$k.contentWrapper]: true, [CSS$k.contentContainer]: true }, onScroll: this.panelScrollHandler, tabIndex: 0 }, h("slot", null)));
|
|
15374
15397
|
}
|
|
15375
15398
|
renderFab() {
|
|
15376
|
-
return (h("div", { class: CSS$
|
|
15399
|
+
return (h("div", { class: CSS$k.fabContainer }, h("slot", { name: SLOTS$c.fab })));
|
|
15377
15400
|
}
|
|
15378
15401
|
render() {
|
|
15379
15402
|
const { dismissed, disabled, dismissible, loading, panelKeyDownHandler } = this;
|
|
15380
|
-
const panelNode = (h("article", { "aria-busy": loading.toString(), class: CSS$
|
|
15403
|
+
const panelNode = (h("article", { "aria-busy": loading.toString(), class: CSS$k.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.renderFooterSlottedContent() || this.renderFooterActions()));
|
|
15381
15404
|
return (h(Fragment, null, loading || disabled ? h("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
15382
15405
|
}
|
|
15383
15406
|
get el() { return this; }
|
|
@@ -15387,7 +15410,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15387
15410
|
static get style() { return calcitePanelCss; }
|
|
15388
15411
|
};
|
|
15389
15412
|
|
|
15390
|
-
const CSS$
|
|
15413
|
+
const CSS$j = {
|
|
15391
15414
|
sticky: "sticky-pos"
|
|
15392
15415
|
};
|
|
15393
15416
|
var ICON_TYPES$1;
|
|
@@ -15668,7 +15691,7 @@ const List = (_a) => {
|
|
|
15668
15691
|
const defaultSlot = h("slot", null);
|
|
15669
15692
|
return (h(Host, Object.assign({ "aria-busy": loading.toString(), "aria-disabled": disabled.toString(), role: "menu" }, rest),
|
|
15670
15693
|
h("section", null,
|
|
15671
|
-
h("header", { class: { [CSS$
|
|
15694
|
+
h("header", { class: { [CSS$j.sticky]: true } },
|
|
15672
15695
|
filterEnabled ? (h("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,
|
|
15673
15696
|
h("slot", { name: SLOTS$b.menuActions })),
|
|
15674
15697
|
loading || disabled ? h("calcite-scrim", { loading: loading }) : null,
|
|
@@ -15798,7 +15821,7 @@ let CalcitePickList$1 = class extends HTMLElement$1 {
|
|
|
15798
15821
|
static get style() { return calcitePickListCss; }
|
|
15799
15822
|
};
|
|
15800
15823
|
|
|
15801
|
-
const CSS$
|
|
15824
|
+
const CSS$i = {
|
|
15802
15825
|
heading: "heading",
|
|
15803
15826
|
container: "container",
|
|
15804
15827
|
indented: "container--indented"
|
|
@@ -15826,20 +15849,20 @@ let CalcitePickListGroup$1 = class extends HTMLElement$1 {
|
|
|
15826
15849
|
const { el, groupTitle, headingLevel } = this;
|
|
15827
15850
|
const hasParentItem = getSlotted(el, SLOTS$a.parentItem) !== null;
|
|
15828
15851
|
const sectionClasses = {
|
|
15829
|
-
[CSS$
|
|
15830
|
-
[CSS$
|
|
15852
|
+
[CSS$i.container]: true,
|
|
15853
|
+
[CSS$i.indented]: hasParentItem
|
|
15831
15854
|
};
|
|
15832
15855
|
const title = groupTitle;
|
|
15833
15856
|
const parentLevel = (_a = el.closest("calcite-pick-list")) === null || _a === void 0 ? void 0 : _a.headingLevel;
|
|
15834
15857
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
15835
15858
|
const level = headingLevel || relativeLevel || HEADING_LEVEL$3;
|
|
15836
|
-
return (h(Fragment, null, title ? (h(CalciteHeading, { class: CSS$
|
|
15859
|
+
return (h(Fragment, null, title ? (h(CalciteHeading, { class: CSS$i.heading, level: level }, title)) : null, h("slot", { name: SLOTS$a.parentItem }), h("section", { class: sectionClasses }, h("slot", null))));
|
|
15837
15860
|
}
|
|
15838
15861
|
get el() { return this; }
|
|
15839
15862
|
static get style() { return calcitePickListGroupCss; }
|
|
15840
15863
|
};
|
|
15841
15864
|
|
|
15842
|
-
const CSS$
|
|
15865
|
+
const CSS$h = {
|
|
15843
15866
|
actions: "actions",
|
|
15844
15867
|
actionsEnd: "actions--end",
|
|
15845
15868
|
actionsStart: "actions--start",
|
|
@@ -15984,26 +16007,26 @@ let CalcitePickListItem$1 = class extends HTMLElement$1 {
|
|
|
15984
16007
|
return null;
|
|
15985
16008
|
}
|
|
15986
16009
|
return (h("span", { class: {
|
|
15987
|
-
[CSS$
|
|
15988
|
-
[CSS$
|
|
16010
|
+
[CSS$h.icon]: true,
|
|
16011
|
+
[CSS$h.iconDot]: icon === ICON_TYPES$1.circle
|
|
15989
16012
|
}, onClick: this.pickListClickHandler }, icon === ICON_TYPES$1.square ? h("calcite-icon", { icon: ICONS$4.checked, scale: "s" }) : null));
|
|
15990
16013
|
}
|
|
15991
16014
|
renderRemoveAction() {
|
|
15992
|
-
return this.removable ? (h("calcite-action", { class: CSS$
|
|
16015
|
+
return this.removable ? (h("calcite-action", { class: CSS$h.remove, icon: ICONS$4.remove, onCalciteActionClick: this.removeClickHandler, slot: SLOTS$9.actionsEnd, text: this.intlRemove })) : null;
|
|
15993
16016
|
}
|
|
15994
16017
|
renderActionsStart() {
|
|
15995
16018
|
const { el } = this;
|
|
15996
16019
|
const hasActionsStart = getSlotted(el, SLOTS$9.actionsStart);
|
|
15997
|
-
return hasActionsStart ? (h("div", { class: { [CSS$
|
|
16020
|
+
return hasActionsStart ? (h("div", { class: { [CSS$h.actions]: true, [CSS$h.actionsStart]: true } }, h("slot", { name: SLOTS$9.actionsStart }))) : null;
|
|
15998
16021
|
}
|
|
15999
16022
|
renderActionsEnd() {
|
|
16000
16023
|
const { el, removable } = this;
|
|
16001
16024
|
const hasActionsEnd = getSlotted(el, SLOTS$9.actionsEnd);
|
|
16002
|
-
return hasActionsEnd || removable ? (h("div", { class: { [CSS$
|
|
16025
|
+
return hasActionsEnd || removable ? (h("div", { class: { [CSS$h.actions]: true, [CSS$h.actionsEnd]: true } }, h("slot", { name: SLOTS$9.actionsEnd }), this.renderRemoveAction())) : null;
|
|
16003
16026
|
}
|
|
16004
16027
|
render() {
|
|
16005
16028
|
const { description, label } = this;
|
|
16006
|
-
return (h(Fragment, null, this.renderIcon(), this.renderActionsStart(), h("label", { "aria-label": label, class: CSS$
|
|
16029
|
+
return (h(Fragment, null, this.renderIcon(), this.renderActionsStart(), h("label", { "aria-label": label, class: CSS$h.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, ref: (focusEl) => (this.focusEl = focusEl), tabIndex: 0 }, h("div", { "aria-checked": this.selected.toString(), class: CSS$h.textContainer, role: "menuitemcheckbox" }, h("span", { class: CSS$h.title }, label), description ? h("span", { class: CSS$h.description }, description) : null)), this.renderActionsEnd()));
|
|
16007
16030
|
}
|
|
16008
16031
|
get el() { return this; }
|
|
16009
16032
|
static get watchers() { return {
|
|
@@ -16016,7 +16039,7 @@ let CalcitePickListItem$1 = class extends HTMLElement$1 {
|
|
|
16016
16039
|
static get style() { return calcitePickListItemCss; }
|
|
16017
16040
|
};
|
|
16018
16041
|
|
|
16019
|
-
const CSS$
|
|
16042
|
+
const CSS$g = {
|
|
16020
16043
|
container: "container",
|
|
16021
16044
|
arrow: "arrow",
|
|
16022
16045
|
imageContainer: "image-container",
|
|
@@ -16214,7 +16237,7 @@ let CalcitePopover$1 = class extends HTMLElement$1 {
|
|
|
16214
16237
|
getReferenceElement() {
|
|
16215
16238
|
const { referenceElement, el } = this;
|
|
16216
16239
|
return ((typeof referenceElement === "string"
|
|
16217
|
-
? queryElementRoots(el,
|
|
16240
|
+
? queryElementRoots(el, { id: referenceElement })
|
|
16218
16241
|
: referenceElement) || null);
|
|
16219
16242
|
}
|
|
16220
16243
|
getModifiers() {
|
|
@@ -16272,25 +16295,25 @@ let CalcitePopover$1 = class extends HTMLElement$1 {
|
|
|
16272
16295
|
// --------------------------------------------------------------------------
|
|
16273
16296
|
renderCloseButton() {
|
|
16274
16297
|
const { dismissible, closeButton, intlClose } = this;
|
|
16275
|
-
return dismissible || closeButton ? (h("calcite-action", { class: CSS$
|
|
16298
|
+
return dismissible || closeButton ? (h("calcite-action", { class: CSS$g.closeButton, onClick: this.hide, ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl), text: intlClose }, h("calcite-icon", { icon: "x", scale: "m" }))) : null;
|
|
16276
16299
|
}
|
|
16277
16300
|
renderHeader() {
|
|
16278
16301
|
const { heading, headingLevel } = this;
|
|
16279
|
-
const headingNode = heading ? (h(CalciteHeading, { class: CSS$
|
|
16280
|
-
return headingNode ? (h("div", { class: CSS$
|
|
16302
|
+
const headingNode = heading ? (h(CalciteHeading, { class: CSS$g.heading, level: headingLevel || HEADING_LEVEL$2 }, heading)) : null;
|
|
16303
|
+
return headingNode ? (h("div", { class: CSS$g.header }, headingNode, this.renderCloseButton())) : null;
|
|
16281
16304
|
}
|
|
16282
16305
|
render() {
|
|
16283
16306
|
const { effectiveReferenceElement, heading, label, open, disablePointer } = this;
|
|
16284
16307
|
const displayed = effectiveReferenceElement && open;
|
|
16285
16308
|
const hidden = !displayed;
|
|
16286
|
-
const arrowNode = !disablePointer ? (h("div", { class: CSS$
|
|
16309
|
+
const arrowNode = !disablePointer ? (h("div", { class: CSS$g.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) })) : null;
|
|
16287
16310
|
return (h(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, h("div", { class: {
|
|
16288
|
-
[CSS$
|
|
16289
|
-
[CSS$
|
|
16311
|
+
[CSS$D.animation]: true,
|
|
16312
|
+
[CSS$D.animationActive]: displayed
|
|
16290
16313
|
}, onTransitionEnd: this.transitionEnd }, arrowNode, h("div", { class: {
|
|
16291
|
-
[CSS$
|
|
16292
|
-
[CSS$
|
|
16293
|
-
} }, this.renderHeader(), h("div", { class: CSS$
|
|
16314
|
+
[CSS$g.hasHeader]: !!heading,
|
|
16315
|
+
[CSS$g.container]: true
|
|
16316
|
+
} }, this.renderHeader(), h("div", { class: CSS$g.content }, h("slot", null)), !heading ? this.renderCloseButton() : null))));
|
|
16294
16317
|
}
|
|
16295
16318
|
get el() { return this; }
|
|
16296
16319
|
static get watchers() { return {
|
|
@@ -16333,7 +16356,7 @@ let CalcitePopoverManager$1 = class extends HTMLElement$1 {
|
|
|
16333
16356
|
var _a;
|
|
16334
16357
|
const { selector, el } = this;
|
|
16335
16358
|
const id = (_a = element.closest(selector)) === null || _a === void 0 ? void 0 : _a.getAttribute(POPOVER_REFERENCE);
|
|
16336
|
-
return queryElementRoots(el,
|
|
16359
|
+
return queryElementRoots(el, { id });
|
|
16337
16360
|
};
|
|
16338
16361
|
}
|
|
16339
16362
|
// --------------------------------------------------------------------------
|
|
@@ -16396,7 +16419,7 @@ let CalciteProgress$1 = class extends HTMLElement$1 {
|
|
|
16396
16419
|
static get style() { return calciteProgressCss; }
|
|
16397
16420
|
};
|
|
16398
16421
|
|
|
16399
|
-
const CSS$
|
|
16422
|
+
const CSS$f = {
|
|
16400
16423
|
container: "container"
|
|
16401
16424
|
};
|
|
16402
16425
|
|
|
@@ -16643,7 +16666,7 @@ let CalciteRadioButton$1 = class extends HTMLElement$1 {
|
|
|
16643
16666
|
// --------------------------------------------------------------------------
|
|
16644
16667
|
render() {
|
|
16645
16668
|
const tabIndex = this.getTabIndex();
|
|
16646
|
-
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: CSS$
|
|
16669
|
+
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: CSS$f.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, ref: this.setContainerEl, role: "radio", tabIndex: tabIndex }, h("div", { class: "radio" })), h(HiddenFormInputSlot, { component: this })));
|
|
16647
16670
|
}
|
|
16648
16671
|
get el() { return this; }
|
|
16649
16672
|
static get watchers() { return {
|
|
@@ -16935,7 +16958,7 @@ let CalciteRadioGroup$1 = class extends HTMLElement$1 {
|
|
|
16935
16958
|
const SLOTS$8 = {
|
|
16936
16959
|
input: "input"
|
|
16937
16960
|
};
|
|
16938
|
-
const CSS$
|
|
16961
|
+
const CSS$e = {
|
|
16939
16962
|
radioGroupItemIcon: "radio-group-item-icon"
|
|
16940
16963
|
};
|
|
16941
16964
|
|
|
@@ -16958,37 +16981,16 @@ let CalciteRadioGroupItem$1 = class extends HTMLElement$1 {
|
|
|
16958
16981
|
this.iconFlipRtl = false;
|
|
16959
16982
|
/** optionally used with icon, select where to position the icon */
|
|
16960
16983
|
this.iconPosition = "start";
|
|
16961
|
-
this.mutationObserver = createObserver("mutation", () => this.syncFromExternalInput());
|
|
16962
16984
|
}
|
|
16963
16985
|
handleCheckedChange() {
|
|
16964
16986
|
this.calciteRadioGroupItemChange.emit();
|
|
16965
|
-
this.syncToExternalInput();
|
|
16966
|
-
}
|
|
16967
|
-
//--------------------------------------------------------------------------
|
|
16968
|
-
//
|
|
16969
|
-
// Lifecycle
|
|
16970
|
-
//
|
|
16971
|
-
//--------------------------------------------------------------------------
|
|
16972
|
-
connectedCallback() {
|
|
16973
|
-
var _a;
|
|
16974
|
-
const inputProxy = this.el.querySelector(`input[slot=${SLOTS$8.input}]`);
|
|
16975
|
-
if (inputProxy) {
|
|
16976
|
-
this.value = inputProxy.value;
|
|
16977
|
-
this.checked = inputProxy.checked;
|
|
16978
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(inputProxy, { attributes: true });
|
|
16979
|
-
}
|
|
16980
|
-
this.inputProxy = inputProxy;
|
|
16981
|
-
}
|
|
16982
|
-
disconnectedCallback() {
|
|
16983
|
-
var _a;
|
|
16984
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
16985
16987
|
}
|
|
16986
16988
|
render() {
|
|
16987
16989
|
const { checked, value } = this;
|
|
16988
16990
|
const scale = getElementProp(this.el, "scale", "m");
|
|
16989
16991
|
const appearance = getElementProp(this.el, "appearance", "solid");
|
|
16990
16992
|
const layout = getElementProp(this.el, "layout", "horizontal");
|
|
16991
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
16993
|
+
const iconEl = (h("calcite-icon", { class: CSS$e.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
16992
16994
|
return (h(Host, { "aria-checked": checked.toString(), role: "radio" }, h("label", { class: {
|
|
16993
16995
|
"label--scale-s": scale === "s",
|
|
16994
16996
|
"label--scale-m": scale === "m",
|
|
@@ -16997,29 +16999,6 @@ let CalciteRadioGroupItem$1 = class extends HTMLElement$1 {
|
|
|
16997
16999
|
"label--outline": appearance === "outline"
|
|
16998
17000
|
} }, this.icon && this.iconPosition === "start" ? iconEl : null, h("slot", null, value), h("slot", { name: SLOTS$8.input }), this.icon && this.iconPosition === "end" ? iconEl : null)));
|
|
16999
17001
|
}
|
|
17000
|
-
//--------------------------------------------------------------------------
|
|
17001
|
-
//
|
|
17002
|
-
// Private Methods
|
|
17003
|
-
//
|
|
17004
|
-
//--------------------------------------------------------------------------
|
|
17005
|
-
syncFromExternalInput() {
|
|
17006
|
-
if (this.inputProxy) {
|
|
17007
|
-
this.value = this.inputProxy.value;
|
|
17008
|
-
this.checked = this.inputProxy.checked;
|
|
17009
|
-
}
|
|
17010
|
-
}
|
|
17011
|
-
syncToExternalInput() {
|
|
17012
|
-
if (!this.inputProxy) {
|
|
17013
|
-
return;
|
|
17014
|
-
}
|
|
17015
|
-
this.inputProxy.value = this.value;
|
|
17016
|
-
if (this.checked) {
|
|
17017
|
-
this.inputProxy.setAttribute("checked", "");
|
|
17018
|
-
}
|
|
17019
|
-
else {
|
|
17020
|
-
this.inputProxy.removeAttribute("checked");
|
|
17021
|
-
}
|
|
17022
|
-
}
|
|
17023
17002
|
get el() { return this; }
|
|
17024
17003
|
static get watchers() { return {
|
|
17025
17004
|
"checked": ["handleCheckedChange"]
|
|
@@ -17143,7 +17122,7 @@ let CalciteRating$1 = class extends HTMLElement$1 {
|
|
|
17143
17122
|
static get style() { return calciteRatingCss; }
|
|
17144
17123
|
};
|
|
17145
17124
|
|
|
17146
|
-
const CSS$
|
|
17125
|
+
const CSS$d = {
|
|
17147
17126
|
scrim: "scrim",
|
|
17148
17127
|
content: "content"
|
|
17149
17128
|
};
|
|
@@ -17182,14 +17161,14 @@ let CalciteScrim$1 = class extends HTMLElement$1 {
|
|
|
17182
17161
|
const { el, loading, intlLoading } = this;
|
|
17183
17162
|
const hasContent = el.innerHTML.trim().length > 0;
|
|
17184
17163
|
const loaderNode = loading ? h("calcite-loader", { active: true, label: intlLoading }) : null;
|
|
17185
|
-
const contentNode = hasContent ? (h("div", { class: CSS$
|
|
17186
|
-
return (h("div", { class: CSS$
|
|
17164
|
+
const contentNode = hasContent ? (h("div", { class: CSS$d.content }, h("slot", null))) : null;
|
|
17165
|
+
return (h("div", { class: CSS$d.scrim }, loaderNode, contentNode));
|
|
17187
17166
|
}
|
|
17188
17167
|
get el() { return this; }
|
|
17189
17168
|
static get style() { return calciteScrimCss; }
|
|
17190
17169
|
};
|
|
17191
17170
|
|
|
17192
|
-
const CSS$
|
|
17171
|
+
const CSS$c = {
|
|
17193
17172
|
icon: "icon",
|
|
17194
17173
|
iconContainer: "icon-container",
|
|
17195
17174
|
select: "select"
|
|
@@ -17384,10 +17363,10 @@ let CalciteSelect$1 = class extends HTMLElement$1 {
|
|
|
17384
17363
|
//
|
|
17385
17364
|
//--------------------------------------------------------------------------
|
|
17386
17365
|
renderChevron() {
|
|
17387
|
-
return (h("div", { class: CSS$
|
|
17366
|
+
return (h("div", { class: CSS$c.iconContainer }, h("calcite-icon", { class: CSS$c.icon, icon: "chevron-down", scale: "s" })));
|
|
17388
17367
|
}
|
|
17389
17368
|
render() {
|
|
17390
|
-
return (h(Fragment, null, h("select", { "aria-label": this.label, class: CSS$
|
|
17369
|
+
return (h(Fragment, null, h("select", { "aria-label": this.label, class: CSS$c.select, disabled: this.disabled, onChange: this.handleInternalSelectChange, ref: this.storeSelectRef }, h("slot", null)), this.renderChevron(), h(HiddenFormInputSlot, { component: this })));
|
|
17391
17370
|
}
|
|
17392
17371
|
get el() { return this; }
|
|
17393
17372
|
static get watchers() { return {
|
|
@@ -17397,7 +17376,7 @@ let CalciteSelect$1 = class extends HTMLElement$1 {
|
|
|
17397
17376
|
static get style() { return calciteSelectCss; }
|
|
17398
17377
|
};
|
|
17399
17378
|
|
|
17400
|
-
const CSS$
|
|
17379
|
+
const CSS$b = {
|
|
17401
17380
|
main: "main",
|
|
17402
17381
|
mainReversed: "main--reversed",
|
|
17403
17382
|
content: "content",
|
|
@@ -17442,25 +17421,25 @@ let CalciteShell$1 = class extends HTMLElement$1 {
|
|
|
17442
17421
|
const content = !!this.contentBehind
|
|
17443
17422
|
? [
|
|
17444
17423
|
h("div", { class: {
|
|
17445
|
-
[CSS$
|
|
17446
|
-
[CSS$
|
|
17424
|
+
[CSS$b.content]: true,
|
|
17425
|
+
[CSS$b.contentBehind]: !!this.contentBehind
|
|
17447
17426
|
} }, h("slot", null)),
|
|
17448
17427
|
h("slot", { name: SLOTS$7.centerRow })
|
|
17449
17428
|
]
|
|
17450
17429
|
: [
|
|
17451
|
-
h("div", { class: CSS$
|
|
17430
|
+
h("div", { class: CSS$b.content }, h("slot", null), h("slot", { name: SLOTS$7.centerRow }))
|
|
17452
17431
|
];
|
|
17453
17432
|
return content;
|
|
17454
17433
|
}
|
|
17455
17434
|
renderFooter() {
|
|
17456
17435
|
const hasFooter = !!getSlotted(this.el, SLOTS$7.footer);
|
|
17457
|
-
return hasFooter ? (h("div", { class: CSS$
|
|
17436
|
+
return hasFooter ? (h("div", { class: CSS$b.footer }, h("slot", { name: SLOTS$7.footer }))) : null;
|
|
17458
17437
|
}
|
|
17459
17438
|
renderMain() {
|
|
17460
17439
|
const primaryPanel = getSlotted(this.el, SLOTS$7.primaryPanel);
|
|
17461
17440
|
const mainClasses = {
|
|
17462
|
-
[CSS$
|
|
17463
|
-
[CSS$
|
|
17441
|
+
[CSS$b.main]: true,
|
|
17442
|
+
[CSS$b.mainReversed]: (primaryPanel === null || primaryPanel === void 0 ? void 0 : primaryPanel.position) === "end"
|
|
17464
17443
|
};
|
|
17465
17444
|
return (h("div", { class: mainClasses }, h("slot", { name: SLOTS$7.primaryPanel }), this.renderContent(), h("slot", { name: SLOTS$7.contextualPanel })));
|
|
17466
17445
|
}
|
|
@@ -17471,7 +17450,7 @@ let CalciteShell$1 = class extends HTMLElement$1 {
|
|
|
17471
17450
|
static get style() { return calciteShellCss; }
|
|
17472
17451
|
};
|
|
17473
17452
|
|
|
17474
|
-
const CSS$
|
|
17453
|
+
const CSS$a = {
|
|
17475
17454
|
actionBarContainer: "action-bar-container",
|
|
17476
17455
|
content: "content"
|
|
17477
17456
|
};
|
|
@@ -17511,9 +17490,9 @@ let CalciteShellCenterRow$1 = class extends HTMLElement$1 {
|
|
|
17511
17490
|
// --------------------------------------------------------------------------
|
|
17512
17491
|
render() {
|
|
17513
17492
|
const { el } = this;
|
|
17514
|
-
const contentNode = (h("div", { class: CSS$
|
|
17493
|
+
const contentNode = (h("div", { class: CSS$a.content }, h("slot", null)));
|
|
17515
17494
|
const actionBar = getSlotted(el, SLOTS$6.actionBar);
|
|
17516
|
-
const actionBarNode = actionBar ? (h("div", { class: CSS$
|
|
17495
|
+
const actionBarNode = actionBar ? (h("div", { class: CSS$a.actionBarContainer }, h("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
17517
17496
|
const children = [actionBarNode, contentNode];
|
|
17518
17497
|
if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
|
|
17519
17498
|
children.reverse();
|
|
@@ -17524,7 +17503,7 @@ let CalciteShellCenterRow$1 = class extends HTMLElement$1 {
|
|
|
17524
17503
|
static get style() { return calciteShellCenterRowCss; }
|
|
17525
17504
|
};
|
|
17526
17505
|
|
|
17527
|
-
const CSS$
|
|
17506
|
+
const CSS$9 = {
|
|
17528
17507
|
container: "container",
|
|
17529
17508
|
content: "content",
|
|
17530
17509
|
contentHeader: "content__header",
|
|
@@ -17701,19 +17680,19 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17701
17680
|
renderHeader() {
|
|
17702
17681
|
const { el } = this;
|
|
17703
17682
|
const hasHeader = getSlotted(el, SLOTS$5.header);
|
|
17704
|
-
return hasHeader ? (h("div", { class: CSS$
|
|
17683
|
+
return hasHeader ? (h("div", { class: CSS$9.contentHeader }, h("slot", { name: SLOTS$5.header }))) : null;
|
|
17705
17684
|
}
|
|
17706
17685
|
render() {
|
|
17707
17686
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
17708
17687
|
const allowResizing = !detached && resizable;
|
|
17709
|
-
const contentNode = (h("div", { class: { [CSS$
|
|
17710
|
-
const separatorNode = allowResizing ? (h("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$
|
|
17688
|
+
const contentNode = (h("div", { class: { [CSS$9.content]: true, [CSS$9.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), h("div", { class: CSS$9.contentBody }, h("slot", null))));
|
|
17689
|
+
const separatorNode = allowResizing ? (h("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$9.separator, onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
17711
17690
|
const actionBarNode = h("slot", { name: SLOTS$5.actionBar });
|
|
17712
17691
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
17713
17692
|
if (position === "end") {
|
|
17714
17693
|
mainNodes.reverse();
|
|
17715
17694
|
}
|
|
17716
|
-
return h("div", { class: { [CSS$
|
|
17695
|
+
return h("div", { class: { [CSS$9.container]: true } }, mainNodes);
|
|
17717
17696
|
}
|
|
17718
17697
|
// --------------------------------------------------------------------------
|
|
17719
17698
|
//
|
|
@@ -21482,7 +21461,7 @@ _extends(Remove, {
|
|
|
21482
21461
|
Sortable.mount(new AutoScrollPlugin());
|
|
21483
21462
|
Sortable.mount(Remove, Revert);
|
|
21484
21463
|
|
|
21485
|
-
const CSS$
|
|
21464
|
+
const CSS$8 = {
|
|
21486
21465
|
sortItem: "sort-item",
|
|
21487
21466
|
container: "container",
|
|
21488
21467
|
containerHorizontal: "container--horizontal",
|
|
@@ -21631,16 +21610,16 @@ let CalciteSortableList$1 = class extends HTMLElement$1 {
|
|
|
21631
21610
|
const { layout } = this;
|
|
21632
21611
|
const horizontal = layout === "horizontal" || false;
|
|
21633
21612
|
return (h("div", { class: {
|
|
21634
|
-
[CSS$
|
|
21635
|
-
[CSS$
|
|
21636
|
-
[CSS$
|
|
21613
|
+
[CSS$8.container]: true,
|
|
21614
|
+
[CSS$8.containerVertical]: !horizontal,
|
|
21615
|
+
[CSS$8.containerHorizontal]: horizontal
|
|
21637
21616
|
} }, h("slot", null)));
|
|
21638
21617
|
}
|
|
21639
21618
|
get el() { return this; }
|
|
21640
21619
|
static get style() { return calciteSortableListCss; }
|
|
21641
21620
|
};
|
|
21642
21621
|
|
|
21643
|
-
const CSS$
|
|
21622
|
+
const CSS$7 = {
|
|
21644
21623
|
container: "split-button__container",
|
|
21645
21624
|
dividerContainer: "split-button__divider-container",
|
|
21646
21625
|
divider: "split-button__divider",
|
|
@@ -21685,13 +21664,13 @@ let CalciteSplitButton$1 = class extends HTMLElement$1 {
|
|
|
21685
21664
|
}
|
|
21686
21665
|
render() {
|
|
21687
21666
|
const widthClasses = {
|
|
21688
|
-
[CSS$
|
|
21689
|
-
[CSS$
|
|
21690
|
-
[CSS$
|
|
21691
|
-
[CSS$
|
|
21667
|
+
[CSS$7.container]: true,
|
|
21668
|
+
[CSS$7.widthAuto]: this.width === "auto",
|
|
21669
|
+
[CSS$7.widthHalf]: this.width === "half",
|
|
21670
|
+
[CSS$7.widthFull]: this.width === "full"
|
|
21692
21671
|
};
|
|
21693
21672
|
const buttonWidth = this.width === "auto" ? "auto" : "full";
|
|
21694
|
-
return (h("div", { class: widthClasses }, h("calcite-button", { appearance: this.appearance, color: this.color, disabled: this.disabled, "icon-end": this.primaryIconEnd ? this.primaryIconEnd : null, "icon-start": this.primaryIconStart ? this.primaryIconStart : null, iconFlipRtl: this.primaryIconFlipRtl ? this.primaryIconFlipRtl : null, label: this.primaryLabel, loading: this.loading, onClick: this.calciteSplitButtonPrimaryClickHandler, scale: this.scale, splitChild: "primary", width: buttonWidth }, this.primaryText), h("div", { class: CSS$
|
|
21673
|
+
return (h("div", { class: widthClasses }, h("calcite-button", { appearance: this.appearance, color: this.color, disabled: this.disabled, "icon-end": this.primaryIconEnd ? this.primaryIconEnd : null, "icon-start": this.primaryIconStart ? this.primaryIconStart : null, iconFlipRtl: this.primaryIconFlipRtl ? this.primaryIconFlipRtl : null, label: this.primaryLabel, loading: this.loading, onClick: this.calciteSplitButtonPrimaryClickHandler, scale: this.scale, splitChild: "primary", width: buttonWidth }, this.primaryText), h("div", { class: CSS$7.dividerContainer }, h("div", { class: CSS$7.divider })), h("calcite-dropdown", { active: this.active, onClick: this.calciteSplitButtonSecondaryClickHandler, overlayPositioning: this.overlayPositioning, placement: "bottom-trailing", scale: this.scale, width: this.scale }, h("calcite-button", { appearance: this.appearance, color: this.color, disabled: this.disabled, "icon-start": this.dropdownIcon, label: this.dropdownLabel, scale: this.scale, slot: "dropdown-trigger", splitChild: "secondary" }), h("slot", null))));
|
|
21695
21674
|
}
|
|
21696
21675
|
get dropdownIcon() {
|
|
21697
21676
|
return this.dropdownIconType === "chevron"
|
|
@@ -22790,7 +22769,7 @@ const SLOTS$3 = {
|
|
|
22790
22769
|
contentEnd: "content-end"
|
|
22791
22770
|
};
|
|
22792
22771
|
|
|
22793
|
-
const calciteTileCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host
|
|
22772
|
+
const calciteTileCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .container{pointer-events:none;display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:0.5rem}:host .content{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;gap:0.5rem;width:10%}:host .content-container{display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;padding:0px;color:var(--calcite-ui-text-2);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host .content-slot-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--calcite-ui-foreground-1)}:host .content-slot-container:first-child{padding-right:0.75rem}:host .content-slot-container:last-child{padding-left:0.75rem}:host .heading{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .large-visual{-ms-flex-align:center;align-items:center;text-align:center;min-height:12rem}:host .large-visual .icon{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:end;align-self:flex-end}:host .large-visual .content-container{-ms-flex-item-align:center;align-self:center}:host .description{pointer-events:none;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host(:not([embed])){padding:0.75rem;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2)}:host(:not([embed])[href]:hover){cursor:pointer;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-brand);box-shadow:0 0 0 2px var(--calcite-ui-brand)}:host(:not([embed])[href]:active){-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand);box-shadow:0 0 0 3px var(--calcite-ui-brand)}:host([icon][heading]:not([description]):not([embed])){padding:0px}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}:host(:hover) .heading,:host([active]) .heading{color:var(--calcite-ui-text-1)}:host(:hover) .description,:host([active]) .description{color:var(--calcite-ui-text-2)}";
|
|
22794
22773
|
|
|
22795
22774
|
let CalciteTile$1 = class extends HTMLElement$1 {
|
|
22796
22775
|
constructor() {
|
|
@@ -22841,7 +22820,24 @@ let CalciteTile$1 = class extends HTMLElement$1 {
|
|
|
22841
22820
|
static get style() { return calciteTileCss; }
|
|
22842
22821
|
};
|
|
22843
22822
|
|
|
22844
|
-
const
|
|
22823
|
+
const CSS$6 = {
|
|
22824
|
+
checked: "checked",
|
|
22825
|
+
description: "description",
|
|
22826
|
+
descriptionOnly: "description-only",
|
|
22827
|
+
disabled: "disabled",
|
|
22828
|
+
heading: "heading",
|
|
22829
|
+
headingOnly: "heading-only",
|
|
22830
|
+
icon: "icon",
|
|
22831
|
+
iconOnly: "icon-only",
|
|
22832
|
+
inputAlignmentEnd: "input-alignment-end",
|
|
22833
|
+
inputAlignmentStart: "input-alignment-start",
|
|
22834
|
+
inputEnabled: "input-enabled",
|
|
22835
|
+
largeVisual: "large-visual",
|
|
22836
|
+
widthAuto: "width-auto",
|
|
22837
|
+
widthFull: "width-full"
|
|
22838
|
+
};
|
|
22839
|
+
|
|
22840
|
+
const calciteTileSelectCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}:host .container{background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2);-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:inline-block;height:100%;max-width:300px;padding:0.75rem;position:relative;-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out;vertical-align:top;z-index:10}:host .container.checked{z-index:30;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}:host .container.heading-only{-ms-flex-align:center;align-items:center}:host .container:not(.input-enabled) ::slotted(calcite-checkbox),:host .container:not(.input-enabled) ::slotted(calcite-radio-button){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host .container.focused:not(.disabled){z-index:30}:host .container.focused:not(.disabled):not(.input-enabled){-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand)}:host .container.input-enabled.input-alignment-start.width-auto.heading-only,:host .container.input-enabled.input-alignment-start.width-auto.icon-only,:host .container.input-enabled.input-alignment-start.width-auto.description-only,:host .container.input-enabled.input-alignment-start.width-auto.heading.description,:host .container.input-enabled.input-alignment-start.width-auto.icon.description,:host .container.input-enabled.input-alignment-start.width-auto.heading.icon.description{display:inline-grid;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-start.heading-only,:host .container.input-enabled.input-alignment-start.icon-only,:host .container.input-enabled.input-alignment-start.description-only,:host .container.input-enabled.input-alignment-start.heading.description,:host .container.input-enabled.input-alignment-start.icon.description,:host .container.input-enabled.input-alignment-start.heading.icon.description{gap:0.75rem}:host .container.input-enabled.input-alignment-start calcite-tile{-ms-flex-order:1;order:1}:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-start:0.75rem}:host .container.input-enabled.input-alignment-end.width-auto.heading-only,:host .container.input-enabled.input-alignment-end.width-auto.icon-only{display:inline-grid;grid-gap:0.75rem;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-end.heading-only,:host .container.input-enabled.input-alignment-end.icon-only{gap:0.75rem}:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-end:0.75rem}:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-end:0.75rem}:host .container.width-full{display:-ms-flexbox;display:flex;max-width:none}:host .container.width-full calcite-tile{-ms-flex:1 1 auto;flex:1 1 auto}:host(:hover) .container{z-index:20}:host(:hover) .container:not(.input-enabled){-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}";
|
|
22845
22841
|
|
|
22846
22842
|
let CalciteTileSelect$1 = class extends HTMLElement$1 {
|
|
22847
22843
|
constructor() {
|
|
@@ -22989,7 +22985,25 @@ let CalciteTileSelect$1 = class extends HTMLElement$1 {
|
|
|
22989
22985
|
this.el.insertAdjacentElement("beforeend", this.input);
|
|
22990
22986
|
}
|
|
22991
22987
|
render() {
|
|
22992
|
-
|
|
22988
|
+
const { checked, description, disabled, focused, heading, icon, inputAlignment, inputEnabled, width } = this;
|
|
22989
|
+
return (h("div", { class: {
|
|
22990
|
+
checked,
|
|
22991
|
+
container: true,
|
|
22992
|
+
[CSS$6.description]: Boolean(description),
|
|
22993
|
+
[CSS$6.descriptionOnly]: Boolean(!heading && !icon && description),
|
|
22994
|
+
disabled,
|
|
22995
|
+
focused,
|
|
22996
|
+
[CSS$6.heading]: Boolean(heading),
|
|
22997
|
+
[CSS$6.headingOnly]: heading && !icon && !description,
|
|
22998
|
+
[CSS$6.icon]: Boolean(icon),
|
|
22999
|
+
[CSS$6.iconOnly]: !heading && icon && !description,
|
|
23000
|
+
[CSS$6.inputAlignmentEnd]: inputAlignment === "end",
|
|
23001
|
+
[CSS$6.inputAlignmentStart]: inputAlignment === "start",
|
|
23002
|
+
[CSS$6.inputEnabled]: inputEnabled,
|
|
23003
|
+
[CSS$6.largeVisual]: heading && icon && !description,
|
|
23004
|
+
[CSS$6.widthAuto]: width === "auto",
|
|
23005
|
+
[CSS$6.widthFull]: width === "full"
|
|
23006
|
+
} }, h("calcite-tile", { active: checked, description: description, embed: true, heading: heading, icon: icon }), h("slot", null)));
|
|
22993
23007
|
}
|
|
22994
23008
|
get el() { return this; }
|
|
22995
23009
|
static get watchers() { return {
|
|
@@ -24060,7 +24074,7 @@ let CalciteTooltip$1 = class extends HTMLElement$1 {
|
|
|
24060
24074
|
getReferenceElement() {
|
|
24061
24075
|
const { referenceElement, el } = this;
|
|
24062
24076
|
return ((typeof referenceElement === "string"
|
|
24063
|
-
? queryElementRoots(el,
|
|
24077
|
+
? queryElementRoots(el, { id: referenceElement })
|
|
24064
24078
|
: referenceElement) || null);
|
|
24065
24079
|
}
|
|
24066
24080
|
getModifiers() {
|
|
@@ -24110,8 +24124,8 @@ let CalciteTooltip$1 = class extends HTMLElement$1 {
|
|
|
24110
24124
|
const displayed = effectiveReferenceElement && open;
|
|
24111
24125
|
const hidden = !displayed;
|
|
24112
24126
|
return (h(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, id: this.getId(), role: "tooltip" }, h("div", { class: {
|
|
24113
|
-
[CSS$
|
|
24114
|
-
[CSS$
|
|
24127
|
+
[CSS$D.animation]: true,
|
|
24128
|
+
[CSS$D.animationActive]: displayed
|
|
24115
24129
|
} }, h("div", { class: CSS$2.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) }), h("div", { class: CSS$2.container }, h("slot", null)))));
|
|
24116
24130
|
}
|
|
24117
24131
|
get el() { return this; }
|
|
@@ -24152,7 +24166,7 @@ let CalciteTooltipManager$1 = class extends HTMLElement$1 {
|
|
|
24152
24166
|
var _a;
|
|
24153
24167
|
const { selector, el } = this;
|
|
24154
24168
|
const id = (_a = element.closest(selector)) === null || _a === void 0 ? void 0 : _a.getAttribute(TOOLTIP_REFERENCE);
|
|
24155
|
-
return queryElementRoots(el,
|
|
24169
|
+
return queryElementRoots(el, { id });
|
|
24156
24170
|
};
|
|
24157
24171
|
this.clearHoverTimeout = (tooltip) => {
|
|
24158
24172
|
const { hoverTimeouts } = this;
|
|
@@ -25027,8 +25041,8 @@ let CalciteValueListItem$1 = class extends HTMLElement$1 {
|
|
|
25027
25041
|
const { icon } = this;
|
|
25028
25042
|
if (icon === ICON_TYPES$1.grip) {
|
|
25029
25043
|
return (h("span", { "aria-pressed": this.handleActivated.toString(), class: {
|
|
25030
|
-
[CSS$
|
|
25031
|
-
[CSS$
|
|
25044
|
+
[CSS$h.handle]: true,
|
|
25045
|
+
[CSS$h.handleActivated]: this.handleActivated
|
|
25032
25046
|
}, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0" }, h("calcite-icon", { icon: ICONS.drag, scale: "s" })));
|
|
25033
25047
|
}
|
|
25034
25048
|
}
|