@esri/calcite-components 1.0.0-beta.74 → 1.0.0-beta.75
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/calcite.esm.js +1 -1
- package/dist/calcite/p-0164361f.system.entry.js +5 -0
- package/dist/calcite/{p-e1944963.js → p-01b7adb5.js} +1 -1
- package/dist/calcite/{p-f95fb85f.entry.js → p-04bf684c.entry.js} +1 -1
- package/dist/calcite/p-06dbe76a.system.entry.js +5 -0
- package/dist/calcite/p-06fbc0f2.system.entry.js +5 -0
- package/dist/calcite/p-08be120f.entry.js +5 -0
- package/dist/calcite/p-0a5d059d.js +5 -0
- package/dist/calcite/p-0a85cd8c.system.entry.js +5 -0
- package/dist/calcite/{p-8b145872.system.entry.js → p-0b552c00.system.entry.js} +1 -1
- package/dist/calcite/{p-e690993e.system.entry.js → p-0cb38659.system.entry.js} +1 -1
- package/dist/calcite/{p-a348ffb1.system.entry.js → p-10b1b39a.system.entry.js} +1 -1
- package/dist/calcite/{p-99d29b5c.system.entry.js → p-12142a2c.system.entry.js} +1 -1
- package/dist/calcite/p-146d8510.entry.js +5 -0
- package/dist/calcite/{p-d5d91f34.system.entry.js → p-14ca5cdf.system.entry.js} +1 -1
- package/dist/calcite/{p-3d4c34e5.js → p-14e47d1b.js} +1 -1
- package/dist/calcite/{p-21f26f77.entry.js → p-1668089f.entry.js} +1 -1
- package/dist/calcite/{p-8ebed170.system.entry.js → p-1804c868.system.entry.js} +1 -1
- package/dist/calcite/{p-fbcaa23c.system.js → p-1a3a366d.system.js} +1 -1
- package/dist/calcite/{p-6515e0a5.entry.js → p-20e3fc50.entry.js} +1 -1
- package/dist/calcite/{p-46b63d75.entry.js → p-2218fef5.entry.js} +1 -1
- package/dist/calcite/{p-38e64c6b.entry.js → p-2297db38.entry.js} +1 -1
- package/dist/calcite/p-243985d8.system.entry.js +5 -0
- package/dist/calcite/p-2e324a56.system.entry.js +5 -0
- package/dist/calcite/{p-e2094dff.system.entry.js → p-2e351904.system.entry.js} +1 -1
- package/dist/calcite/{p-1894562d.system.entry.js → p-32d61433.system.entry.js} +1 -1
- package/dist/calcite/p-39d4d1b1.system.entry.js +5 -0
- package/dist/calcite/p-3cdf0ad5.system.entry.js +5 -0
- package/dist/calcite/{p-897fc280.system.entry.js → p-40c3d7a6.system.entry.js} +1 -1
- package/dist/calcite/{p-52871e84.system.js → p-44aa1db4.system.js} +1 -1
- package/dist/calcite/{p-16cfe8e8.entry.js → p-49782820.entry.js} +1 -1
- package/dist/calcite/p-500300b5.entry.js +5 -0
- package/dist/calcite/{p-e0fa3b13.system.entry.js → p-54bb21f5.system.entry.js} +1 -1
- package/dist/calcite/{p-4d22b788.entry.js → p-54edaa0d.entry.js} +1 -1
- package/dist/calcite/{p-51a85436.entry.js → p-58eb8460.entry.js} +1 -1
- package/dist/calcite/p-5a77fd17.entry.js +5 -0
- package/dist/calcite/{p-b80ab9ba.entry.js → p-5b8404de.entry.js} +1 -1
- package/dist/calcite/{p-f09810e7.entry.js → p-5d12a140.entry.js} +1 -1
- package/dist/calcite/{p-f5469b62.system.entry.js → p-5d7da300.system.entry.js} +1 -1
- package/dist/calcite/p-5f5bfaa5.entry.js +5 -0
- package/dist/calcite/p-617c3f30.system.entry.js +5 -0
- package/dist/calcite/p-63f8783a.entry.js +5 -0
- package/dist/calcite/p-647d22ef.js +5 -0
- package/dist/calcite/p-64a5e88c.entry.js +5 -0
- package/dist/calcite/{p-f90b2e7f.entry.js → p-6969dabb.entry.js} +1 -1
- package/dist/calcite/p-6afd69dc.system.entry.js +5 -0
- package/dist/calcite/p-6fb9fef5.entry.js +5 -0
- package/dist/calcite/{p-14ff4cbd.system.js → p-70dd483b.system.js} +1 -1
- package/dist/calcite/p-7165e37e.entry.js +5 -0
- package/dist/calcite/p-754809de.entry.js +5 -0
- package/dist/calcite/{p-02589ad3.system.entry.js → p-7743a8d0.system.entry.js} +1 -1
- package/dist/calcite/{p-799f0655.entry.js → p-786b8250.entry.js} +1 -1
- package/dist/calcite/p-78725919.entry.js +5 -0
- package/dist/calcite/p-7a6c932d.system.entry.js +5 -0
- package/dist/calcite/p-7bdeb3ba.system.entry.js +5 -0
- package/dist/calcite/{p-e6d14bc5.system.entry.js → p-7d4316a1.system.entry.js} +1 -1
- package/dist/calcite/{p-d1794edd.entry.js → p-82491929.entry.js} +1 -1
- package/dist/calcite/p-8604c625.system.entry.js +5 -0
- package/dist/calcite/{p-436d9f0e.system.entry.js → p-86b63ebb.system.entry.js} +1 -1
- package/dist/calcite/{p-10f1a096.system.entry.js → p-8709d314.system.entry.js} +1 -1
- package/dist/calcite/p-8ba8a357.system.js +5 -0
- package/dist/calcite/{p-bda51610.entry.js → p-8e4aa7f7.entry.js} +1 -1
- package/dist/calcite/p-8f2c68f4.system.entry.js +5 -0
- package/dist/calcite/p-8f3a3e4e.js +5 -0
- package/dist/calcite/{p-7f5bd070.system.entry.js → p-900e18a5.system.entry.js} +1 -1
- package/dist/calcite/{p-e606e9ae.system.entry.js → p-92d9b81d.system.entry.js} +1 -1
- package/dist/calcite/p-9716c57c.entry.js +5 -0
- package/dist/calcite/p-97375cc0.entry.js +5 -0
- package/dist/calcite/p-99422223.system.entry.js +5 -0
- package/dist/calcite/p-99d32fc3.system.js +1 -1
- package/dist/calcite/p-9a7c4812.js +5 -0
- package/dist/calcite/{p-45bfe5bf.system.entry.js → p-9ca6c750.system.entry.js} +1 -1
- package/dist/calcite/p-9d7102c0.entry.js +5 -0
- package/dist/calcite/p-9e2c9752.entry.js +5 -0
- package/dist/calcite/p-9f49c4fe.system.entry.js +5 -0
- package/dist/calcite/p-a50e52f1.entry.js +5 -0
- package/dist/calcite/{p-28dea60a.system.js → p-a99c8ebf.system.js} +1 -1
- package/dist/calcite/p-ab14b0a2.system.js +5 -0
- package/dist/calcite/p-abe7730b.entry.js +5 -0
- package/dist/calcite/{p-db10485b.system.js → p-ac4aec20.system.js} +1 -1
- package/dist/calcite/{p-132d55c2.entry.js → p-af669f43.entry.js} +1 -1
- package/dist/calcite/{p-8f4ea148.system.entry.js → p-af84fa29.system.entry.js} +1 -1
- package/dist/calcite/p-b002b038.entry.js +5 -0
- package/dist/calcite/p-b86f0930.system.entry.js +5 -0
- package/dist/calcite/p-b9a47a94.system.entry.js +5 -0
- package/dist/calcite/p-b9adf89d.system.entry.js +5 -0
- package/dist/calcite/{p-eea18662.entry.js → p-baca86e3.entry.js} +1 -1
- package/dist/calcite/p-bd576ae0.system.entry.js +5 -0
- package/dist/calcite/{p-209f2049.entry.js → p-bde80af8.entry.js} +1 -1
- package/dist/calcite/p-be231b84.entry.js +5 -0
- package/dist/calcite/{p-51550014.entry.js → p-c1c37da9.entry.js} +1 -1
- package/dist/calcite/p-c5463268.system.entry.js +5 -0
- package/dist/calcite/p-c5b3d90c.entry.js +5 -0
- package/dist/calcite/p-c6cb0aa2.entry.js +5 -0
- package/dist/calcite/{p-0b0ce9b2.system.entry.js → p-cd9d106b.system.entry.js} +1 -1
- package/dist/calcite/{p-3e9e4992.entry.js → p-d14265f3.entry.js} +1 -1
- package/dist/calcite/p-da470de7.entry.js +5 -0
- package/dist/calcite/{p-7f32a681.system.entry.js → p-e1491358.system.entry.js} +1 -1
- package/dist/calcite/{p-781ebed0.system.js → p-e2047621.system.js} +1 -1
- package/dist/calcite/p-e4862fff.entry.js +5 -0
- package/dist/calcite/{p-05dc6806.entry.js → p-e5420c67.entry.js} +1 -1
- package/dist/calcite/p-e5526c34.entry.js +5 -0
- package/dist/calcite/p-e5c2a6eb.entry.js +5 -0
- package/dist/calcite/{p-bb9fb183.system.entry.js → p-e83a5fe4.system.entry.js} +1 -1
- package/dist/calcite/{p-fcd62e97.js → p-e8e0f3b7.js} +1 -1
- package/dist/calcite/p-ea510477.js +5 -0
- package/dist/calcite/{p-3a20f93d.system.js → p-ec9bab33.system.js} +1 -1
- package/dist/calcite/{p-32f6f7df.entry.js → p-ee14736a.entry.js} +1 -1
- package/dist/calcite/{p-41894582.js → p-eeb91710.js} +1 -1
- package/dist/calcite/p-f12c35de.system.entry.js +5 -0
- package/dist/calcite/p-f1dc4798.entry.js +5 -0
- package/dist/calcite/{p-5c256f31.system.entry.js → p-f24ddc56.system.entry.js} +1 -1
- package/dist/calcite/{p-088a096d.system.entry.js → p-f4d9c369.system.entry.js} +1 -1
- package/dist/calcite/{p-59133b9b.entry.js → p-f7572da7.entry.js} +1 -1
- package/dist/calcite/{p-8468ddb0.system.entry.js → p-fbd68dbf.system.entry.js} +1 -1
- package/dist/calcite/p-ff04cfb1.system.entry.js +5 -0
- package/dist/cjs/{CalciteExpandToggle-65468585.js → CalciteExpandToggle-d24fed0e.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-bar.cjs.entry.js +6 -27
- package/dist/cjs/calcite-action-group.cjs.entry.js +14 -1
- package/dist/cjs/calcite-action-menu.cjs.entry.js +5 -2
- package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -2
- package/dist/cjs/calcite-action.cjs.entry.js +2 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +16 -10
- package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
- package/dist/cjs/calcite-block_2.cjs.entry.js +15 -2
- package/dist/cjs/calcite-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-card.cjs.entry.js +17 -6
- package/dist/cjs/calcite-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/calcite-chip.cjs.entry.js +15 -2
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -1
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +35 -21
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +2 -2
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +15 -11
- package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
- package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
- package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +20 -13
- package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-input.cjs.entry.js +99 -39
- package/dist/cjs/calcite-link.cjs.entry.js +14 -3
- package/dist/cjs/calcite-list_3.cjs.entry.js +14 -1
- package/dist/cjs/calcite-modal.cjs.entry.js +7 -4
- package/dist/cjs/calcite-notice.cjs.entry.js +9 -1
- package/dist/cjs/calcite-option_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-panel.cjs.entry.js +19 -13
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +26 -3
- package/dist/cjs/calcite-popover_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
- package/dist/cjs/calcite-shell_3.cjs.entry.js +36 -8
- package/dist/cjs/calcite-sortable-list.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 +2 -2
- package/dist/cjs/calcite-tile.cjs.entry.js +14 -1
- package/dist/cjs/calcite-tip_3.cjs.entry.js +15 -3
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tree_2.cjs.entry.js +9 -2
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +15 -3
- package/dist/cjs/calcite.cjs.js +1 -1
- package/dist/cjs/conditionalSlot-92505fba.js +43 -0
- package/dist/cjs/{dom-0de9fb18.js → dom-f3df220d.js} +13 -10
- package/dist/cjs/{form-4b7c317e.js → form-237cf392.js} +1 -1
- package/dist/cjs/{label-1bca211b.js → label-6b18ca08.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{observers-41837607.js → observers-79bfb8bc.js} +5 -1
- package/dist/cjs/{popper-09105f6f.js → popper-13a2bb46.js} +1 -1
- package/dist/cjs/{resources-9f0994fb.js → resources-11763017.js} +4 -3
- package/dist/cjs/{resources-405cc2c4.js → resources-95073e41.js} +1 -1
- package/dist/collection/components/calcite-action/calcite-action.css +1 -0
- package/dist/collection/components/calcite-action-group/calcite-action-group.js +12 -0
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +3 -0
- package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +7 -0
- package/dist/collection/components/calcite-alert/calcite-alert.js +15 -9
- package/dist/collection/components/calcite-block/calcite-block.js +13 -1
- package/dist/collection/components/calcite-card/calcite-card.js +15 -6
- package/dist/collection/components/calcite-chip/calcite-chip.js +13 -1
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +43 -13
- package/dist/collection/components/calcite-combobox/resources.js +3 -0
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +9 -7
- package/dist/collection/components/calcite-date-picker/utils.js +4 -3
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +1 -1
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +12 -7
- package/dist/collection/components/calcite-graph/calcite-graph.css +3 -5
- package/dist/collection/components/calcite-graph/calcite-graph.js +13 -42
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +15 -21
- package/dist/collection/components/calcite-input/calcite-input.js +96 -36
- package/dist/collection/components/calcite-link/calcite-link.js +31 -2
- package/dist/collection/components/calcite-list-item/calcite-list-item.js +12 -0
- package/dist/collection/components/calcite-modal/calcite-modal.js +5 -2
- package/dist/collection/components/calcite-notice/calcite-notice.js +7 -0
- package/dist/collection/components/calcite-panel/calcite-panel.js +19 -14
- package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +12 -0
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +12 -0
- package/dist/collection/components/calcite-shell/calcite-shell.js +14 -2
- package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +13 -1
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +9 -4
- package/dist/collection/components/calcite-slider/calcite-slider.css +4 -0
- package/dist/collection/components/calcite-slider/calcite-slider.js +3 -4
- package/dist/collection/components/calcite-tile/calcite-tile.js +12 -0
- package/dist/collection/components/calcite-tip/calcite-tip.js +13 -1
- package/dist/collection/components/calcite-tree/calcite-tree.js +2 -1
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +5 -0
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +12 -0
- package/dist/collection/utils/conditionalSlot.js +22 -11
- package/dist/collection/utils/dom.js +13 -10
- package/dist/collection/utils/globalAttributes.js +59 -0
- package/dist/collection/utils/observers.js +5 -1
- package/dist/components/calcite-action-bar.js +2 -23
- package/dist/components/calcite-action-group2.js +12 -0
- package/dist/components/calcite-action-menu2.js +3 -0
- package/dist/components/calcite-action-pad.js +7 -0
- package/dist/components/calcite-action2.js +1 -1
- package/dist/components/calcite-alert.js +15 -9
- package/dist/components/calcite-block.js +13 -1
- package/dist/components/calcite-card.js +15 -6
- package/dist/components/calcite-chip2.js +13 -1
- package/dist/components/calcite-color-picker-swatch2.js +15 -0
- package/dist/components/calcite-combobox-item.js +8 -6
- package/dist/components/calcite-combobox.js +22 -12
- package/dist/components/calcite-date-picker2.js +4 -3
- package/dist/components/calcite-dropdown2.js +12 -8
- package/dist/components/calcite-graph2.js +14 -9
- package/dist/components/calcite-inline-editable.js +5 -5
- package/dist/components/calcite-input2.js +96 -36
- package/dist/components/calcite-link2.js +14 -2
- package/dist/components/calcite-list-item.js +12 -0
- package/dist/components/calcite-modal.js +5 -2
- package/dist/components/calcite-notice.js +7 -0
- package/dist/components/calcite-panel.js +17 -12
- package/dist/components/calcite-pick-list-group.js +12 -0
- package/dist/components/calcite-pick-list-item2.js +12 -0
- package/dist/components/calcite-shell-center-row.js +13 -1
- package/dist/components/calcite-shell-panel.js +9 -4
- package/dist/components/calcite-shell.js +14 -2
- package/dist/components/calcite-slider.js +4 -4
- package/dist/components/calcite-tile2.js +12 -0
- package/dist/components/calcite-tip.js +13 -1
- package/dist/components/calcite-tree-item.js +5 -0
- package/dist/components/calcite-tree.js +2 -1
- package/dist/components/calcite-value-list-item.js +12 -0
- package/dist/components/conditionalSlot.js +40 -0
- package/dist/components/dom.js +13 -10
- package/dist/components/observers.js +5 -1
- package/dist/components/utils2.js +4 -1
- package/dist/custom-elements/index.js +488 -198
- package/dist/esm/{CalciteExpandToggle-48b6e955.js → CalciteExpandToggle-cff030be.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +1 -1
- package/dist/esm/calcite-action-bar.entry.js +5 -26
- package/dist/esm/calcite-action-group.entry.js +14 -1
- package/dist/esm/calcite-action-menu.entry.js +5 -2
- package/dist/esm/calcite-action-pad.entry.js +10 -2
- package/dist/esm/calcite-action.entry.js +2 -2
- package/dist/esm/calcite-alert.entry.js +16 -10
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block_2.entry.js +15 -2
- package/dist/esm/calcite-button.entry.js +3 -3
- package/dist/esm/calcite-card.entry.js +17 -6
- package/dist/esm/calcite-checkbox.entry.js +3 -3
- package/dist/esm/calcite-chip.entry.js +15 -2
- package/dist/esm/calcite-color-picker_3.entry.js +16 -1
- package/dist/esm/calcite-combobox_3.entry.js +35 -21
- package/dist/esm/calcite-date-picker_4.entry.js +2 -2
- package/dist/esm/calcite-dropdown_3.entry.js +15 -11
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/calcite-filter.entry.js +1 -1
- package/dist/esm/calcite-flow.entry.js +1 -1
- package/dist/esm/calcite-graph_2.entry.js +21 -14
- package/dist/esm/calcite-icon.entry.js +2 -2
- package/dist/esm/calcite-inline-editable.entry.js +7 -7
- package/dist/esm/calcite-input-date-picker.entry.js +5 -5
- package/dist/esm/calcite-input-message.entry.js +1 -1
- package/dist/esm/calcite-input-time-picker_2.entry.js +3 -3
- package/dist/esm/calcite-input.entry.js +99 -39
- package/dist/esm/calcite-link.entry.js +14 -3
- package/dist/esm/calcite-list_3.entry.js +14 -1
- package/dist/esm/calcite-modal.entry.js +7 -4
- package/dist/esm/calcite-notice.entry.js +9 -1
- package/dist/esm/calcite-option_3.entry.js +4 -4
- package/dist/esm/calcite-panel.entry.js +19 -13
- package/dist/esm/calcite-pick-list_3.entry.js +26 -3
- package/dist/esm/calcite-popover_2.entry.js +2 -2
- package/dist/esm/calcite-radio-button.entry.js +3 -3
- package/dist/esm/calcite-radio-group_2.entry.js +3 -3
- package/dist/esm/calcite-rating.entry.js +3 -3
- package/dist/esm/calcite-shell_3.entry.js +36 -8
- package/dist/esm/calcite-sortable-list.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 +2 -2
- package/dist/esm/calcite-tile.entry.js +14 -1
- package/dist/esm/calcite-tip_3.entry.js +15 -3
- package/dist/esm/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm/calcite-tree_2.entry.js +9 -2
- package/dist/esm/calcite-value-list_2.entry.js +15 -3
- package/dist/esm/calcite.js +1 -1
- package/dist/esm/conditionalSlot-9e7d8609.js +40 -0
- package/dist/esm/{dom-037dc374.js → dom-e7fa77b9.js} +13 -10
- package/dist/esm/{form-72369b73.js → form-f90706b4.js} +1 -1
- package/dist/esm/{label-712646d2.js → label-2bffc9f4.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{observers-8f0bc419.js → observers-46118290.js} +5 -1
- package/dist/esm/{popper-7a7fd3b5.js → popper-ae231554.js} +1 -1
- package/dist/esm/{resources-03c0a433.js → resources-95c5e8a6.js} +1 -1
- package/dist/esm/{resources-90193940.js → resources-c768953c.js} +4 -3
- package/dist/esm-es5/{CalciteExpandToggle-48b6e955.js → CalciteExpandToggle-cff030be.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 +2 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
- package/dist/esm-es5/calcite-action.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-card.entry.js +1 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
- package/dist/esm-es5/calcite-chip.entry.js +2 -2
- package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- 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-flow.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 +2 -2
- package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
- package/dist/esm-es5/calcite-input-message.entry.js +1 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
- package/dist/esm-es5/calcite-input.entry.js +1 -1
- package/dist/esm-es5/calcite-link.entry.js +2 -2
- 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 +2 -2
- package/dist/esm-es5/calcite-option_3.entry.js +1 -1
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- 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 +2 -2
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-sortable-list.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.entry.js +1 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/conditionalSlot-9e7d8609.js +5 -0
- package/dist/esm-es5/dom-e7fa77b9.js +5 -0
- package/dist/esm-es5/{form-72369b73.js → form-f90706b4.js} +1 -1
- package/dist/esm-es5/{label-712646d2.js → label-2bffc9f4.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{observers-8f0bc419.js → observers-46118290.js} +1 -1
- package/dist/esm-es5/{popper-7a7fd3b5.js → popper-ae231554.js} +1 -1
- package/dist/esm-es5/{resources-03c0a433.js → resources-95c5e8a6.js} +1 -1
- package/dist/esm-es5/resources-c768953c.js +5 -0
- package/dist/extras/docs-json.json +63 -36
- package/dist/types/components/calcite-action-group/calcite-action-group.d.ts +4 -1
- package/dist/types/components/calcite-action-menu/calcite-action-menu.d.ts +2 -1
- package/dist/types/components/calcite-action-pad/calcite-action-pad.d.ts +4 -1
- package/dist/types/components/calcite-alert/calcite-alert.d.ts +2 -0
- package/dist/types/components/calcite-block/calcite-block.d.ts +4 -1
- package/dist/types/components/calcite-card/calcite-card.d.ts +4 -1
- package/dist/types/components/calcite-chip/calcite-chip.d.ts +4 -1
- package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +4 -0
- package/dist/types/components/calcite-combobox/resources.d.ts +3 -0
- package/dist/types/components/calcite-combobox-item/calcite-combobox-item.d.ts +3 -3
- package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +1 -0
- package/dist/types/components/calcite-graph/calcite-graph.d.ts +3 -4
- package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +5 -5
- package/dist/types/components/calcite-input/calcite-input.d.ts +6 -1
- package/dist/types/components/calcite-link/calcite-link.d.ts +5 -0
- package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +4 -1
- package/dist/types/components/calcite-modal/calcite-modal.d.ts +2 -1
- package/dist/types/components/calcite-notice/calcite-notice.d.ts +4 -1
- package/dist/types/components/calcite-panel/calcite-panel.d.ts +5 -6
- package/dist/types/components/calcite-pick-list-group/calcite-pick-list-group.d.ts +4 -1
- package/dist/types/components/calcite-pick-list-item/calcite-pick-list-item.d.ts +4 -1
- package/dist/types/components/calcite-shell/calcite-shell.d.ts +4 -1
- package/dist/types/components/calcite-shell-center-row/calcite-shell-center-row.d.ts +4 -1
- package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +3 -1
- package/dist/types/components/calcite-tile/calcite-tile.d.ts +4 -1
- package/dist/types/components/calcite-tip/calcite-tip.d.ts +4 -1
- package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +3 -1
- package/dist/types/components/calcite-value-list-item/calcite-value-list-item.d.ts +4 -1
- package/dist/types/components.d.ts +26 -16
- package/dist/types/preact.d.ts +3 -3
- package/dist/types/utils/dom.d.ts +1 -0
- package/dist/types/utils/globalAttributes.d.ts +35 -0
- package/hydrate/index.js +479 -194
- package/package.json +12 -13
- package/readme.md +2 -32
- package/dist/calcite/assets/calcite-icon/checkSquareF16.json +0 -1
- package/dist/calcite/assets/calcite-icon/checkSquareF24.json +0 -1
- package/dist/calcite/assets/calcite-icon/checkSquareF32.json +0 -1
- package/dist/calcite/assets/calcite-icon/lineSolid4.json +0 -1
- package/dist/calcite/assets/calcite-icon/squareF16.json +0 -1
- package/dist/calcite/assets/calcite-icon/squareF24.json +0 -1
- package/dist/calcite/assets/calcite-icon/squareF32.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagon16.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagon24.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagon32.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagonF16.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagonF24.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagonF32.json +0 -1
- package/dist/calcite/assets/calcite-icon/xOctagonF16.json +0 -1
- package/dist/calcite/assets/calcite-icon/xOctagonF24.json +0 -1
- package/dist/calcite/assets/calcite-icon/xOctagonF32.json +0 -1
- package/dist/calcite/p-02856c5a.system.entry.js +0 -5
- package/dist/calcite/p-0af820bf.entry.js +0 -5
- package/dist/calcite/p-0cf878ed.system.entry.js +0 -5
- package/dist/calcite/p-1a5dae4a.entry.js +0 -5
- package/dist/calcite/p-1b3a66ec.system.entry.js +0 -5
- package/dist/calcite/p-1d7a9909.system.entry.js +0 -5
- package/dist/calcite/p-20d2db84.entry.js +0 -5
- package/dist/calcite/p-244e0b95.entry.js +0 -5
- package/dist/calcite/p-253efee4.entry.js +0 -5
- package/dist/calcite/p-2618de8a.entry.js +0 -5
- package/dist/calcite/p-273cd5ab.entry.js +0 -5
- package/dist/calcite/p-28adfebc.entry.js +0 -5
- package/dist/calcite/p-2a8938c7.system.entry.js +0 -5
- package/dist/calcite/p-2c954eaa.system.entry.js +0 -5
- package/dist/calcite/p-325fcd0d.entry.js +0 -5
- package/dist/calcite/p-32f7eb32.js +0 -5
- package/dist/calcite/p-37bddb73.system.entry.js +0 -5
- package/dist/calcite/p-3ab992ff.system.entry.js +0 -5
- package/dist/calcite/p-3b73b785.system.entry.js +0 -5
- package/dist/calcite/p-3b8f5ab8.system.entry.js +0 -5
- package/dist/calcite/p-41e2198b.js +0 -5
- package/dist/calcite/p-4659df78.entry.js +0 -5
- package/dist/calcite/p-54e271c9.system.entry.js +0 -5
- package/dist/calcite/p-57558d4b.entry.js +0 -5
- package/dist/calcite/p-5c3b9524.system.entry.js +0 -5
- package/dist/calcite/p-5df1936f.entry.js +0 -5
- package/dist/calcite/p-698167ac.entry.js +0 -5
- package/dist/calcite/p-7a28e833.system.entry.js +0 -5
- package/dist/calcite/p-7d355abe.system.entry.js +0 -5
- package/dist/calcite/p-85fb7bc0.entry.js +0 -5
- package/dist/calcite/p-8d36bc7c.entry.js +0 -5
- package/dist/calcite/p-8eafaf3f.entry.js +0 -5
- package/dist/calcite/p-9b05c3fd.js +0 -5
- package/dist/calcite/p-9d81d229.entry.js +0 -5
- package/dist/calcite/p-a0043c61.entry.js +0 -5
- package/dist/calcite/p-a1f65f6e.entry.js +0 -5
- package/dist/calcite/p-a4dec1f6.system.entry.js +0 -5
- package/dist/calcite/p-a9c50960.system.entry.js +0 -5
- package/dist/calcite/p-aaed1677.entry.js +0 -5
- package/dist/calcite/p-ac778725.system.entry.js +0 -5
- package/dist/calcite/p-ac8cf248.entry.js +0 -5
- package/dist/calcite/p-b4990fa4.system.entry.js +0 -5
- package/dist/calcite/p-b4d3f1c1.entry.js +0 -5
- package/dist/calcite/p-c0ed9eff.entry.js +0 -5
- package/dist/calcite/p-c56f495f.system.js +0 -5
- package/dist/calcite/p-c7b8a068.entry.js +0 -5
- package/dist/calcite/p-cb9cd28c.system.entry.js +0 -5
- package/dist/calcite/p-d578e568.system.entry.js +0 -5
- package/dist/calcite/p-e2ebc089.system.entry.js +0 -5
- package/dist/calcite/p-e4acb5a8.js +0 -5
- package/dist/calcite/p-e564004a.system.entry.js +0 -5
- package/dist/calcite/p-e87980ac.entry.js +0 -5
- package/dist/calcite/p-f6fc151d.system.entry.js +0 -5
- package/dist/calcite/p-f73124d0.entry.js +0 -5
- package/dist/collection/components/calcite-combobox/interfaces.d.js +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF32.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lineSolid4.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF32.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon32.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF32.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF32.json +0 -1
- package/dist/collection/components/calcite-label/interfaces.js +0 -1
- package/dist/collection/demos/_assets/demo-form.js +0 -23
- package/dist/collection/demos/_assets/demo-template.js +0 -13
- package/dist/collection/demos/_assets/head.js +0 -45
- package/dist/collection/demos/_assets/locales.js +0 -223
- package/dist/collection/utils/interactive.js +0 -20
- package/dist/esm-es5/dom-037dc374.js +0 -5
- package/dist/esm-es5/resources-90193940.js +0 -5
|
@@ -74,6 +74,8 @@ export class CalciteInput {
|
|
|
74
74
|
this.value = "";
|
|
75
75
|
/** keep track of the rendered child type */
|
|
76
76
|
this.childElType = "input";
|
|
77
|
+
/** whether the value of the input was changed as a result of user typing or not */
|
|
78
|
+
this.internalValueChange = false;
|
|
77
79
|
//--------------------------------------------------------------------------
|
|
78
80
|
//
|
|
79
81
|
// Private Methods
|
|
@@ -93,11 +95,15 @@ export class CalciteInput {
|
|
|
93
95
|
}
|
|
94
96
|
};
|
|
95
97
|
this.clearInputValue = (nativeEvent) => {
|
|
96
|
-
this.setValue(
|
|
98
|
+
this.setValue({
|
|
99
|
+
committing: true,
|
|
100
|
+
nativeEvent,
|
|
101
|
+
value: ""
|
|
102
|
+
});
|
|
97
103
|
};
|
|
98
104
|
this.inputBlurHandler = () => {
|
|
99
105
|
if (this.type === "number") {
|
|
100
|
-
this.
|
|
106
|
+
this.setValue({ value: this.value });
|
|
101
107
|
}
|
|
102
108
|
this.calciteInputBlur.emit({
|
|
103
109
|
element: this.childEl,
|
|
@@ -121,7 +127,10 @@ export class CalciteInput {
|
|
|
121
127
|
if (this.disabled || this.readOnly) {
|
|
122
128
|
return;
|
|
123
129
|
}
|
|
124
|
-
this.setValue(
|
|
130
|
+
this.setValue({
|
|
131
|
+
nativeEvent,
|
|
132
|
+
value: nativeEvent.target.value
|
|
133
|
+
});
|
|
125
134
|
};
|
|
126
135
|
this.inputKeyDownHandler = (event) => {
|
|
127
136
|
if (this.disabled || this.readOnly) {
|
|
@@ -141,11 +150,17 @@ export class CalciteInput {
|
|
|
141
150
|
if (!isValidNumber(delocalizedValue)) {
|
|
142
151
|
nativeEvent.preventDefault();
|
|
143
152
|
}
|
|
144
|
-
this.setValue(
|
|
153
|
+
this.setValue({
|
|
154
|
+
nativeEvent,
|
|
155
|
+
value: parseNumberString(delocalizedValue)
|
|
156
|
+
});
|
|
145
157
|
this.childNumberEl.value = this.localizedValue;
|
|
146
158
|
}
|
|
147
159
|
else {
|
|
148
|
-
this.setValue(
|
|
160
|
+
this.setValue({
|
|
161
|
+
nativeEvent,
|
|
162
|
+
value: delocalizeNumberString(value, this.locale)
|
|
163
|
+
});
|
|
149
164
|
}
|
|
150
165
|
};
|
|
151
166
|
this.inputNumberKeyDownHandler = (event) => {
|
|
@@ -215,6 +230,9 @@ export class CalciteInput {
|
|
|
215
230
|
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
216
231
|
const valueNudgeDelayInMs = 100;
|
|
217
232
|
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
233
|
+
if (this.nudgeNumberValueIntervalId) {
|
|
234
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
235
|
+
}
|
|
218
236
|
let firstValueNudge = true;
|
|
219
237
|
this.nudgeNumberValueIntervalId = window.setInterval(() => {
|
|
220
238
|
if (firstValueNudge) {
|
|
@@ -238,18 +256,44 @@ export class CalciteInput {
|
|
|
238
256
|
this.setChildNumberElRef = (el) => {
|
|
239
257
|
this.childNumberEl = el;
|
|
240
258
|
};
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
259
|
+
this.setInputValue = (newInputValue) => {
|
|
260
|
+
if (this.type === "text" && !this.childEl) {
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
if (this.type === "number" && !this.childNumberEl) {
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
this[`child${this.type === "number" ? "Number" : ""}El`].value = newInputValue;
|
|
267
|
+
};
|
|
268
|
+
this.setPreviousValue = (newPreviousValue) => {
|
|
269
|
+
this.previousValue =
|
|
270
|
+
this.type === "number"
|
|
271
|
+
? isValidNumber(newPreviousValue)
|
|
272
|
+
? newPreviousValue
|
|
273
|
+
: ""
|
|
274
|
+
: newPreviousValue;
|
|
243
275
|
};
|
|
244
|
-
this.setValue = (
|
|
245
|
-
const
|
|
276
|
+
this.setValue = ({ committing = false, nativeEvent, origin = "internal", value }) => {
|
|
277
|
+
const previousLocalizedValue = this.type === "number"
|
|
278
|
+
? localizeNumberString(this.previousValue, this.locale, this.groupSeparator)
|
|
279
|
+
: "";
|
|
280
|
+
const sanitizedValue = this.type === "number" ? sanitizeNumberString(value) : value;
|
|
281
|
+
const newValue = this.type === "number" && value && !sanitizedValue
|
|
282
|
+
? isValidNumber(this.previousValue)
|
|
283
|
+
? this.previousValue
|
|
284
|
+
: ""
|
|
285
|
+
: sanitizedValue;
|
|
286
|
+
const newLocalizedValue = this.type === "number"
|
|
287
|
+
? localizeNumberString(newValue, this.locale, this.groupSeparator)
|
|
288
|
+
: "";
|
|
289
|
+
this.internalValueChange = origin === "internal";
|
|
290
|
+
this.setPreviousValue(this.value);
|
|
291
|
+
this.value = newValue;
|
|
246
292
|
if (this.type === "number") {
|
|
247
|
-
|
|
248
|
-
this.value = sanitizedValue;
|
|
249
|
-
this.setLocalizedValue(sanitizedValue);
|
|
293
|
+
this.localizedValue = newLocalizedValue;
|
|
250
294
|
}
|
|
251
|
-
|
|
252
|
-
this.
|
|
295
|
+
if (origin === "external") {
|
|
296
|
+
this.setInputValue(this.type === "number" ? newLocalizedValue : newValue);
|
|
253
297
|
}
|
|
254
298
|
if (nativeEvent) {
|
|
255
299
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
@@ -258,8 +302,8 @@ export class CalciteInput {
|
|
|
258
302
|
value: this.value
|
|
259
303
|
});
|
|
260
304
|
if (calciteInputInputEvent.defaultPrevented) {
|
|
261
|
-
this.value = previousValue;
|
|
262
|
-
this.
|
|
305
|
+
this.value = this.previousValue;
|
|
306
|
+
this.localizedValue = previousLocalizedValue;
|
|
263
307
|
}
|
|
264
308
|
else if (committing) {
|
|
265
309
|
this.calciteInputChange.emit();
|
|
@@ -284,17 +328,20 @@ export class CalciteInput {
|
|
|
284
328
|
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
285
329
|
}
|
|
286
330
|
valueWatcher(newValue) {
|
|
287
|
-
if (
|
|
288
|
-
this.
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
331
|
+
if (!this.internalValueChange) {
|
|
332
|
+
this.setValue({
|
|
333
|
+
origin: "external",
|
|
334
|
+
value: newValue == null
|
|
335
|
+
? ""
|
|
336
|
+
: this.type === "number"
|
|
337
|
+
? isValidNumber(newValue)
|
|
338
|
+
? newValue
|
|
339
|
+
: this.previousValue || ""
|
|
340
|
+
: newValue
|
|
341
|
+
});
|
|
342
|
+
this.warnAboutInvalidNumberValue(newValue);
|
|
297
343
|
}
|
|
344
|
+
this.internalValueChange = false;
|
|
298
345
|
}
|
|
299
346
|
updateRequestedIcon() {
|
|
300
347
|
this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
@@ -317,13 +364,13 @@ export class CalciteInput {
|
|
|
317
364
|
if (this.inlineEditableEl) {
|
|
318
365
|
this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
|
|
319
366
|
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
this.value
|
|
326
|
-
}
|
|
367
|
+
this.setPreviousValue(this.value);
|
|
368
|
+
if (this.type === "number") {
|
|
369
|
+
this.warnAboutInvalidNumberValue(this.value);
|
|
370
|
+
this.setValue({
|
|
371
|
+
origin: "loading",
|
|
372
|
+
value: isValidNumber(this.value) ? this.value : ""
|
|
373
|
+
});
|
|
327
374
|
}
|
|
328
375
|
connectLabel(this);
|
|
329
376
|
connectForm(this);
|
|
@@ -345,7 +392,9 @@ export class CalciteInput {
|
|
|
345
392
|
}
|
|
346
393
|
componentShouldUpdate(newValue, oldValue, property) {
|
|
347
394
|
if (this.type === "number" && property === "value" && newValue && !isValidNumber(newValue)) {
|
|
348
|
-
this.
|
|
395
|
+
this.setValue({
|
|
396
|
+
value: oldValue
|
|
397
|
+
});
|
|
349
398
|
return false;
|
|
350
399
|
}
|
|
351
400
|
return true;
|
|
@@ -380,10 +429,16 @@ export class CalciteInput {
|
|
|
380
429
|
: nudgedValue;
|
|
381
430
|
const inputValPlaces = decimalPlaces(inputVal);
|
|
382
431
|
const inputStepPlaces = decimalPlaces(inputStep);
|
|
383
|
-
this.setValue(
|
|
432
|
+
this.setValue({
|
|
433
|
+
committing: true,
|
|
434
|
+
nativeEvent,
|
|
435
|
+
value: finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces))
|
|
436
|
+
});
|
|
384
437
|
}
|
|
385
438
|
onFormReset() {
|
|
386
|
-
this.setValue(
|
|
439
|
+
this.setValue({
|
|
440
|
+
value: this.defaultValue
|
|
441
|
+
});
|
|
387
442
|
}
|
|
388
443
|
syncHiddenFormInput(input) {
|
|
389
444
|
var _a, _b, _c, _d;
|
|
@@ -414,6 +469,11 @@ export class CalciteInput {
|
|
|
414
469
|
? slottedActionEl.setAttribute("disabled", "")
|
|
415
470
|
: slottedActionEl.removeAttribute("disabled");
|
|
416
471
|
}
|
|
472
|
+
warnAboutInvalidNumberValue(value) {
|
|
473
|
+
if (this.type === "number" && value && !isValidNumber(value)) {
|
|
474
|
+
console.warn(`The specified value "${value}" cannot be parsed, or is out of range.`);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
417
477
|
// --------------------------------------------------------------------------
|
|
418
478
|
//
|
|
419
479
|
// Render Methods
|
|
@@ -18,6 +18,11 @@ export class CalciteLink {
|
|
|
18
18
|
//--------------------------------------------------------------------------
|
|
19
19
|
/** is the link disabled */
|
|
20
20
|
this.disabled = false;
|
|
21
|
+
/** Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:
|
|
22
|
+
* Without a value, the browser will suggest a filename/extension
|
|
23
|
+
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download
|
|
24
|
+
*/
|
|
25
|
+
this.download = false;
|
|
21
26
|
/** the node type of the rendered child element */
|
|
22
27
|
this.childElType = "span";
|
|
23
28
|
//--------------------------------------------------------------------------
|
|
@@ -41,14 +46,20 @@ export class CalciteLink {
|
|
|
41
46
|
this.childElType = this.href ? "a" : "span";
|
|
42
47
|
}
|
|
43
48
|
render() {
|
|
44
|
-
const
|
|
49
|
+
const { download, el } = this;
|
|
50
|
+
const dir = getElementDir(el);
|
|
45
51
|
const iconStartEl = (h("calcite-icon", { class: "calcite-link--icon icon-start", flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
46
52
|
const iconEndEl = (h("calcite-icon", { class: "calcite-link--icon icon-end", flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
47
53
|
const Tag = this.childElType;
|
|
48
54
|
const role = this.childElType === "span" ? "link" : null;
|
|
49
55
|
const tabIndex = this.disabled ? -1 : this.childElType === "span" ? 0 : null;
|
|
50
56
|
return (h(Host, { role: "presentation" },
|
|
51
|
-
h(Tag, { class: { [CSS_UTILITY.rtl]: dir === "rtl" },
|
|
57
|
+
h(Tag, { class: { [CSS_UTILITY.rtl]: dir === "rtl" },
|
|
58
|
+
/*
|
|
59
|
+
When the 'download' property of type 'boolean | string' is set to true, the value is "".
|
|
60
|
+
This works around that issue for now.
|
|
61
|
+
*/
|
|
62
|
+
download: Tag === "a" && (download === "" || download) ? download : null, href: Tag === "a" && this.href, ref: this.storeTagRef, rel: Tag === "a" && this.rel, role: role, tabIndex: tabIndex, target: Tag === "a" && this.target },
|
|
52
63
|
this.iconStart ? iconStartEl : null,
|
|
53
64
|
h("slot", null),
|
|
54
65
|
this.iconEnd ? iconEndEl : null)));
|
|
@@ -89,6 +100,24 @@ export class CalciteLink {
|
|
|
89
100
|
"reflect": true,
|
|
90
101
|
"defaultValue": "false"
|
|
91
102
|
},
|
|
103
|
+
"download": {
|
|
104
|
+
"type": "any",
|
|
105
|
+
"mutable": false,
|
|
106
|
+
"complexType": {
|
|
107
|
+
"original": "string | boolean",
|
|
108
|
+
"resolved": "boolean | string",
|
|
109
|
+
"references": {}
|
|
110
|
+
},
|
|
111
|
+
"required": false,
|
|
112
|
+
"optional": false,
|
|
113
|
+
"docs": {
|
|
114
|
+
"tags": [],
|
|
115
|
+
"text": "Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:\nWithout a value, the browser will suggest a filename/extension\nSee: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download"
|
|
116
|
+
},
|
|
117
|
+
"attribute": "download",
|
|
118
|
+
"reflect": true,
|
|
119
|
+
"defaultValue": "false"
|
|
120
|
+
},
|
|
92
121
|
"href": {
|
|
93
122
|
"type": "string",
|
|
94
123
|
"mutable": false,
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { Component, Element, Prop, h, Host, Method } from "@stencil/core";
|
|
6
6
|
import { SLOTS, CSS } from "./resources";
|
|
7
7
|
import { getSlotted } from "../../utils/dom";
|
|
8
|
+
import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
8
9
|
/**
|
|
9
10
|
* @slot - A slot for adding `calcite-list-item` and `calcite-list-item-group` elements.
|
|
10
11
|
* @slot actions-start - A slot for adding actionable `calcite-action` elements before the content of the list item.
|
|
@@ -30,6 +31,17 @@ export class CalciteListItem {
|
|
|
30
31
|
}
|
|
31
32
|
// --------------------------------------------------------------------------
|
|
32
33
|
//
|
|
34
|
+
// Lifecycle
|
|
35
|
+
//
|
|
36
|
+
// --------------------------------------------------------------------------
|
|
37
|
+
connectedCallback() {
|
|
38
|
+
connectConditionalSlotComponent(this);
|
|
39
|
+
}
|
|
40
|
+
disconnectedCallback() {
|
|
41
|
+
disconnectConditionalSlotComponent(this);
|
|
42
|
+
}
|
|
43
|
+
// --------------------------------------------------------------------------
|
|
44
|
+
//
|
|
33
45
|
// Public Methods
|
|
34
46
|
//
|
|
35
47
|
// --------------------------------------------------------------------------
|
|
@@ -8,6 +8,7 @@ import { queryShadowRoot } from "@a11y/focus-trap/shadow";
|
|
|
8
8
|
import { isFocusable, isHidden } from "@a11y/focus-trap/focusable";
|
|
9
9
|
import { TEXT, SLOTS, CSS, ICONS } from "./resources";
|
|
10
10
|
import { createObserver } from "../../utils/observers";
|
|
11
|
+
import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
11
12
|
const isFocusableExtended = (el) => {
|
|
12
13
|
return isCalciteFocusable(el) || isFocusable(el);
|
|
13
14
|
};
|
|
@@ -115,11 +116,13 @@ export class CalciteModal {
|
|
|
115
116
|
var _a;
|
|
116
117
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
117
118
|
this.updateFooterVisibility();
|
|
119
|
+
connectConditionalSlotComponent(this);
|
|
118
120
|
}
|
|
119
121
|
disconnectedCallback() {
|
|
120
122
|
var _a;
|
|
121
123
|
this.removeOverflowHiddenClass();
|
|
122
124
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
125
|
+
disconnectConditionalSlotComponent(this);
|
|
123
126
|
}
|
|
124
127
|
render() {
|
|
125
128
|
return (h(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" },
|
|
@@ -141,7 +144,7 @@ export class CalciteModal {
|
|
|
141
144
|
h("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
|
142
145
|
}
|
|
143
146
|
renderFooter() {
|
|
144
|
-
return this.hasFooter ? (h("div", { class: CSS.footer },
|
|
147
|
+
return this.hasFooter ? (h("div", { class: CSS.footer, key: "footer" },
|
|
145
148
|
h("span", { class: CSS.back },
|
|
146
149
|
h("slot", { name: SLOTS.back })),
|
|
147
150
|
h("span", { class: CSS.secondary },
|
|
@@ -150,7 +153,7 @@ export class CalciteModal {
|
|
|
150
153
|
h("slot", { name: SLOTS.primary })))) : null;
|
|
151
154
|
}
|
|
152
155
|
renderCloseButton() {
|
|
153
|
-
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose },
|
|
156
|
+
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS.close, key: "button", onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose },
|
|
154
157
|
h("calcite-icon", { icon: ICONS.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
155
158
|
}
|
|
156
159
|
renderStyle() {
|
|
@@ -6,6 +6,7 @@ import { Component, Element, Event, h, Method, Prop, Watch } from "@stencil/core
|
|
|
6
6
|
import { CSS, SLOTS, TEXT } from "./resources";
|
|
7
7
|
import { StatusIcons } from "../calcite-alert/interfaces";
|
|
8
8
|
import { getSlotted, setRequestedIcon } from "../../utils/dom";
|
|
9
|
+
import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
9
10
|
/** Notices are intended to be used to present users with important-but-not-crucial contextual tips or copy. Because
|
|
10
11
|
* notices are displayed inline, a common use case is displaying them on page-load to present users with short hints or contextual copy.
|
|
11
12
|
* They are optionally dismissible - useful for keeping track of whether or not a user has dismissed the notice. You can also choose not
|
|
@@ -56,6 +57,12 @@ export class CalciteNotice {
|
|
|
56
57
|
// Lifecycle
|
|
57
58
|
//
|
|
58
59
|
//--------------------------------------------------------------------------
|
|
60
|
+
connectedCallback() {
|
|
61
|
+
connectConditionalSlotComponent(this);
|
|
62
|
+
}
|
|
63
|
+
disconnectedCallback() {
|
|
64
|
+
disconnectConditionalSlotComponent(this);
|
|
65
|
+
}
|
|
59
66
|
componentWillLoad() {
|
|
60
67
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
61
68
|
}
|
|
@@ -7,6 +7,7 @@ import { CSS, HEADING_LEVEL, ICONS, SLOTS, TEXT } from "./resources";
|
|
|
7
7
|
import { getElementDir, getSlotted } from "../../utils/dom";
|
|
8
8
|
import { CalciteHeading } from "../functional/CalciteHeading";
|
|
9
9
|
import { SLOTS as ACTION_MENU_SLOTS } from "../calcite-action-menu/resources";
|
|
10
|
+
import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
10
11
|
/**
|
|
11
12
|
* @slot - A slot for adding custom content.
|
|
12
13
|
* @slot header-actions-start - A slot for adding actions or content to the start side of the panel header.
|
|
@@ -82,6 +83,17 @@ export class CalcitePanel {
|
|
|
82
83
|
}
|
|
83
84
|
// --------------------------------------------------------------------------
|
|
84
85
|
//
|
|
86
|
+
// Lifecycle
|
|
87
|
+
//
|
|
88
|
+
// --------------------------------------------------------------------------
|
|
89
|
+
connectedCallback() {
|
|
90
|
+
connectConditionalSlotComponent(this);
|
|
91
|
+
}
|
|
92
|
+
disconnectedCallback() {
|
|
93
|
+
disconnectConditionalSlotComponent(this);
|
|
94
|
+
}
|
|
95
|
+
// --------------------------------------------------------------------------
|
|
96
|
+
//
|
|
85
97
|
// Methods
|
|
86
98
|
//
|
|
87
99
|
// --------------------------------------------------------------------------
|
|
@@ -123,7 +135,7 @@ export class CalcitePanel {
|
|
|
123
135
|
* Allows user to override the entire header-content node.
|
|
124
136
|
*/
|
|
125
137
|
renderHeaderSlottedContent() {
|
|
126
|
-
return (h("div", { class: CSS.headerContent, key: "header-content" },
|
|
138
|
+
return (h("div", { class: CSS.headerContent, key: "slotted-header-content" },
|
|
127
139
|
h("slot", { name: SLOTS.headerContent })));
|
|
128
140
|
}
|
|
129
141
|
renderHeaderStartActions() {
|
|
@@ -145,7 +157,7 @@ export class CalcitePanel {
|
|
|
145
157
|
renderMenu() {
|
|
146
158
|
const { el, intlOptions, menuOpen } = this;
|
|
147
159
|
const hasMenuItems = getSlotted(el, SLOTS.headerMenuActions);
|
|
148
|
-
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], label: intlOptions || TEXT.options, open: menuOpen, placement: "bottom-end" },
|
|
160
|
+
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT.options, open: menuOpen, placement: "bottom-end" },
|
|
149
161
|
h("calcite-action", { icon: ICONS.menu, slot: ACTION_MENU_SLOTS.trigger, text: intlOptions || TEXT.options }),
|
|
150
162
|
h("slot", { name: SLOTS.headerMenuActions }))) : null;
|
|
151
163
|
}
|
|
@@ -170,20 +182,13 @@ export class CalcitePanel {
|
|
|
170
182
|
actionsNodeEnd,
|
|
171
183
|
headerMenuNode)) : null;
|
|
172
184
|
}
|
|
173
|
-
|
|
174
|
-
* Allows user to override the entire footer node.
|
|
175
|
-
*/
|
|
176
|
-
renderFooterSlottedContent() {
|
|
185
|
+
renderFooterNode() {
|
|
177
186
|
const { el } = this;
|
|
178
187
|
const hasFooterSlottedContent = getSlotted(el, SLOTS.footer);
|
|
179
|
-
return hasFooterSlottedContent ? (h("footer", { class: CSS.footer },
|
|
180
|
-
h("slot", { name: SLOTS.footer }))) : null;
|
|
181
|
-
}
|
|
182
|
-
renderFooterActions() {
|
|
183
|
-
const { el } = this;
|
|
184
188
|
const hasFooterActions = getSlotted(el, SLOTS.footerActions);
|
|
185
|
-
return hasFooterActions ? (h("footer", { class: CSS.footer },
|
|
186
|
-
h("slot", { name: SLOTS.
|
|
189
|
+
return hasFooterSlottedContent || hasFooterActions ? (h("footer", { class: CSS.footer, key: "footer" },
|
|
190
|
+
hasFooterSlottedContent ? h("slot", { key: "footer-slot", name: SLOTS.footer }) : null,
|
|
191
|
+
hasFooterActions ? h("slot", { key: "footer-actions-slot", name: SLOTS.footerActions }) : null)) : null;
|
|
187
192
|
}
|
|
188
193
|
renderContent() {
|
|
189
194
|
const { el } = this;
|
|
@@ -203,7 +208,7 @@ export class CalcitePanel {
|
|
|
203
208
|
const panelNode = (h("article", { "aria-busy": loading.toString(), class: CSS.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 },
|
|
204
209
|
this.renderHeaderNode(),
|
|
205
210
|
this.renderContent(),
|
|
206
|
-
this.
|
|
211
|
+
this.renderFooterNode()));
|
|
207
212
|
return (h(Fragment, null,
|
|
208
213
|
loading || disabled ? h("calcite-scrim", { loading: loading }) : null,
|
|
209
214
|
panelNode));
|
|
@@ -7,10 +7,22 @@ import { CSS, SLOTS } from "./resources";
|
|
|
7
7
|
import { HEADING_LEVEL } from "./resources";
|
|
8
8
|
import { getSlotted } from "../../utils/dom";
|
|
9
9
|
import { CalciteHeading, constrainHeadingLevel } from "../functional/CalciteHeading";
|
|
10
|
+
import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
10
11
|
/**
|
|
11
12
|
* @slot - A slot for adding `calcite-pick-list-item` elements.
|
|
12
13
|
*/
|
|
13
14
|
export class CalcitePickListGroup {
|
|
15
|
+
// --------------------------------------------------------------------------
|
|
16
|
+
//
|
|
17
|
+
// Lifecycle
|
|
18
|
+
//
|
|
19
|
+
// --------------------------------------------------------------------------
|
|
20
|
+
connectedCallback() {
|
|
21
|
+
connectConditionalSlotComponent(this);
|
|
22
|
+
}
|
|
23
|
+
disconnectedCallback() {
|
|
24
|
+
disconnectConditionalSlotComponent(this);
|
|
25
|
+
}
|
|
14
26
|
// --------------------------------------------------------------------------
|
|
15
27
|
//
|
|
16
28
|
// Render Methods
|
|
@@ -6,6 +6,7 @@ import { Component, Element, Event, Fragment, h, Method, Prop, Watch } from "@st
|
|
|
6
6
|
import { CSS, ICONS, SLOTS, TEXT } from "./resources";
|
|
7
7
|
import { ICON_TYPES } from "../calcite-pick-list/resources";
|
|
8
8
|
import { getSlotted } from "../../utils/dom";
|
|
9
|
+
import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
9
10
|
/**
|
|
10
11
|
* @slot actions-end - a slot for adding actions or content to the end side of the item.
|
|
11
12
|
* @slot actions-start - a slot for adding actions or content to the start side of the item.
|
|
@@ -90,6 +91,17 @@ export class CalcitePickListItem {
|
|
|
90
91
|
}
|
|
91
92
|
// --------------------------------------------------------------------------
|
|
92
93
|
//
|
|
94
|
+
// Lifecycle
|
|
95
|
+
//
|
|
96
|
+
// --------------------------------------------------------------------------
|
|
97
|
+
connectedCallback() {
|
|
98
|
+
connectConditionalSlotComponent(this);
|
|
99
|
+
}
|
|
100
|
+
disconnectedCallback() {
|
|
101
|
+
disconnectConditionalSlotComponent(this);
|
|
102
|
+
}
|
|
103
|
+
// --------------------------------------------------------------------------
|
|
104
|
+
//
|
|
93
105
|
// Public Methods
|
|
94
106
|
//
|
|
95
107
|
// --------------------------------------------------------------------------
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { Component, Element, Prop, h, Fragment } from "@stencil/core";
|
|
6
6
|
import { CSS, SLOTS } from "./resources";
|
|
7
7
|
import { getSlotted } from "../../utils/dom";
|
|
8
|
+
import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
8
9
|
/**
|
|
9
10
|
* @slot - A slot for adding content to the shell. This content will appear between any leading and trailing panels added to the shell. (eg. a map)
|
|
10
11
|
* @slot header - A slot for adding header content. This content will be positioned at the top of the shell.
|
|
@@ -27,12 +28,23 @@ export class CalciteShell {
|
|
|
27
28
|
}
|
|
28
29
|
// --------------------------------------------------------------------------
|
|
29
30
|
//
|
|
31
|
+
// Lifecycle
|
|
32
|
+
//
|
|
33
|
+
// --------------------------------------------------------------------------
|
|
34
|
+
connectedCallback() {
|
|
35
|
+
connectConditionalSlotComponent(this);
|
|
36
|
+
}
|
|
37
|
+
disconnectedCallback() {
|
|
38
|
+
disconnectConditionalSlotComponent(this);
|
|
39
|
+
}
|
|
40
|
+
// --------------------------------------------------------------------------
|
|
41
|
+
//
|
|
30
42
|
// Render Methods
|
|
31
43
|
//
|
|
32
44
|
// --------------------------------------------------------------------------
|
|
33
45
|
renderHeader() {
|
|
34
46
|
const hasHeader = !!getSlotted(this.el, SLOTS.header);
|
|
35
|
-
return hasHeader ? h("slot", { name: SLOTS.header }) : null;
|
|
47
|
+
return hasHeader ? h("slot", { key: "header", name: SLOTS.header }) : null;
|
|
36
48
|
}
|
|
37
49
|
renderContent() {
|
|
38
50
|
const content = !!this.contentBehind
|
|
@@ -53,7 +65,7 @@ export class CalciteShell {
|
|
|
53
65
|
}
|
|
54
66
|
renderFooter() {
|
|
55
67
|
const hasFooter = !!getSlotted(this.el, SLOTS.footer);
|
|
56
|
-
return hasFooter ? (h("div", { class: CSS.footer },
|
|
68
|
+
return hasFooter ? (h("div", { class: CSS.footer, key: "footer" },
|
|
57
69
|
h("slot", { name: SLOTS.footer }))) : null;
|
|
58
70
|
}
|
|
59
71
|
renderMain() {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { Component, Element, Prop, h, Fragment } from "@stencil/core";
|
|
6
6
|
import { CSS, SLOTS } from "./resources";
|
|
7
7
|
import { getSlotted } from "../../utils/dom";
|
|
8
|
+
import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
8
9
|
/**
|
|
9
10
|
* @slot - A slot for adding content to the shell panel.
|
|
10
11
|
* @slot action-bar - A slot for adding a `calcite-action-bar` to the panel.
|
|
@@ -31,6 +32,17 @@ export class CalciteShellCenterRow {
|
|
|
31
32
|
}
|
|
32
33
|
// --------------------------------------------------------------------------
|
|
33
34
|
//
|
|
35
|
+
// Lifecycle
|
|
36
|
+
//
|
|
37
|
+
// --------------------------------------------------------------------------
|
|
38
|
+
connectedCallback() {
|
|
39
|
+
connectConditionalSlotComponent(this);
|
|
40
|
+
}
|
|
41
|
+
disconnectedCallback() {
|
|
42
|
+
disconnectConditionalSlotComponent(this);
|
|
43
|
+
}
|
|
44
|
+
// --------------------------------------------------------------------------
|
|
45
|
+
//
|
|
34
46
|
// Render Methods
|
|
35
47
|
//
|
|
36
48
|
// --------------------------------------------------------------------------
|
|
@@ -39,7 +51,7 @@ export class CalciteShellCenterRow {
|
|
|
39
51
|
const contentNode = (h("div", { class: CSS.content },
|
|
40
52
|
h("slot", null)));
|
|
41
53
|
const actionBar = getSlotted(el, SLOTS.actionBar);
|
|
42
|
-
const actionBarNode = actionBar ? (h("div", { class: CSS.actionBarContainer },
|
|
54
|
+
const actionBarNode = actionBar ? (h("div", { class: CSS.actionBarContainer, key: "action-bar" },
|
|
43
55
|
h("slot", { name: SLOTS.actionBar }))) : null;
|
|
44
56
|
const children = [actionBarNode, contentNode];
|
|
45
57
|
if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
|
|
@@ -6,6 +6,7 @@ import { Component, Element, Event, Prop, Watch, h, State, forceUpdate } from "@
|
|
|
6
6
|
import { CSS, SLOTS, TEXT } from "./resources";
|
|
7
7
|
import { getSlotted, getElementDir } from "../../utils/dom";
|
|
8
8
|
import { clamp } from "../../utils/math";
|
|
9
|
+
import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
9
10
|
/**
|
|
10
11
|
* @slot - A slot for adding content to the shell panel.
|
|
11
12
|
* @slot action-bar - A slot for adding a `calcite-action-bar` to the panel.
|
|
@@ -151,7 +152,11 @@ export class CalciteShellPanel {
|
|
|
151
152
|
// Lifecycle
|
|
152
153
|
//
|
|
153
154
|
//--------------------------------------------------------------------------
|
|
155
|
+
connectedCallback() {
|
|
156
|
+
connectConditionalSlotComponent(this);
|
|
157
|
+
}
|
|
154
158
|
disconnectedCallback() {
|
|
159
|
+
disconnectConditionalSlotComponent(this);
|
|
155
160
|
this.disconnectSeparator();
|
|
156
161
|
}
|
|
157
162
|
componentDidLoad() {
|
|
@@ -165,18 +170,18 @@ export class CalciteShellPanel {
|
|
|
165
170
|
renderHeader() {
|
|
166
171
|
const { el } = this;
|
|
167
172
|
const hasHeader = getSlotted(el, SLOTS.header);
|
|
168
|
-
return hasHeader ? (h("div", { class: CSS.contentHeader },
|
|
173
|
+
return hasHeader ? (h("div", { class: CSS.contentHeader, key: "header" },
|
|
169
174
|
h("slot", { name: SLOTS.header }))) : null;
|
|
170
175
|
}
|
|
171
176
|
render() {
|
|
172
177
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
173
178
|
const allowResizing = !detached && resizable;
|
|
174
|
-
const contentNode = (h("div", { class: { [CSS.content]: true, [CSS.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null },
|
|
179
|
+
const contentNode = (h("div", { class: { [CSS.content]: true, [CSS.contentDetached]: detached }, hidden: collapsed, key: "content", ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null },
|
|
175
180
|
this.renderHeader(),
|
|
176
181
|
h("div", { class: CSS.contentBody },
|
|
177
182
|
h("slot", null))));
|
|
178
|
-
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.separator, onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
179
|
-
const actionBarNode = h("slot", { name: SLOTS.actionBar });
|
|
183
|
+
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.separator, key: "separator", onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
184
|
+
const actionBarNode = h("slot", { key: "action-bar", name: SLOTS.actionBar });
|
|
180
185
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
181
186
|
if (position === "end") {
|
|
182
187
|
mainNodes.reverse();
|
|
@@ -183,6 +183,9 @@
|
|
|
183
183
|
display: inline-block;
|
|
184
184
|
width: 1em;
|
|
185
185
|
}
|
|
186
|
+
.thumb .handle__label.hyphen--wrap {
|
|
187
|
+
display: flex;
|
|
188
|
+
}
|
|
186
189
|
.thumb .handle{
|
|
187
190
|
box-sizing: border-box;
|
|
188
191
|
border-radius: 9999px;
|
|
@@ -326,6 +329,7 @@
|
|
|
326
329
|
|
|
327
330
|
.graph {
|
|
328
331
|
color: var(--calcite-ui-foreground-3);
|
|
332
|
+
height: 48px;
|
|
329
333
|
}
|
|
330
334
|
|
|
331
335
|
:host([label-ticks][ticks]) .container {
|