@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
|
@@ -7,12 +7,17 @@ import { filter } from "../../utils/filter";
|
|
|
7
7
|
import { debounce } from "lodash-es";
|
|
8
8
|
import { createPopper, updatePopper, CSS as PopperCSS } from "../../utils/popper";
|
|
9
9
|
import { guid } from "../../utils/guid";
|
|
10
|
-
import { ComboboxChildSelector, ComboboxItem, ComboboxItemGroup, ComboboxDefaultPlacement } from "./resources";
|
|
10
|
+
import { ComboboxChildSelector, ComboboxItem, ComboboxItemGroup, ComboboxDefaultPlacement, TEXT } from "./resources";
|
|
11
11
|
import { getItemAncestors, getItemChildren, hasActiveChildren } from "./utils";
|
|
12
12
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
13
13
|
import { afterConnectDefaultValueSet, connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
|
|
14
14
|
import { createObserver } from "../../utils/observers";
|
|
15
15
|
const isGroup = (el) => el.tagName === ComboboxItemGroup;
|
|
16
|
+
const itemUidPrefix = "combobox-item-";
|
|
17
|
+
const chipUidPrefix = "combobox-chip-";
|
|
18
|
+
const labelUidPrefix = "combobox-label-";
|
|
19
|
+
const listboxUidPrefix = "combobox-listbox-";
|
|
20
|
+
const inputUidPrefix = "combobox-input-";
|
|
16
21
|
/**
|
|
17
22
|
* @slot - A slot for adding `calcite-combobox-item`s.
|
|
18
23
|
*/
|
|
@@ -47,6 +52,10 @@ export class CalciteCombobox {
|
|
|
47
52
|
this.scale = "m";
|
|
48
53
|
/** The value(s) of the selectedItem(s) */
|
|
49
54
|
this.value = null;
|
|
55
|
+
/** string to override the English "Remove tag" text for when an item is selected.
|
|
56
|
+
* @default "Remove tag"
|
|
57
|
+
*/
|
|
58
|
+
this.intlRemoveTag = TEXT.removeTag;
|
|
50
59
|
//--------------------------------------------------------------------------
|
|
51
60
|
//
|
|
52
61
|
// Private State/Props
|
|
@@ -556,7 +565,6 @@ export class CalciteCombobox {
|
|
|
556
565
|
const item = document.createElement(ComboboxItem);
|
|
557
566
|
item.value = value;
|
|
558
567
|
item.textLabel = value;
|
|
559
|
-
item.guid = guid();
|
|
560
568
|
item.selected = true;
|
|
561
569
|
this.el.appendChild(item);
|
|
562
570
|
this.resetText();
|
|
@@ -606,7 +614,9 @@ export class CalciteCombobox {
|
|
|
606
614
|
focusChip() {
|
|
607
615
|
var _a;
|
|
608
616
|
const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;
|
|
609
|
-
const chip =
|
|
617
|
+
const chip = guid
|
|
618
|
+
? this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`)
|
|
619
|
+
: null;
|
|
610
620
|
chip === null || chip === void 0 ? void 0 : chip.setFocus();
|
|
611
621
|
}
|
|
612
622
|
shiftActiveItemIndex(delta) {
|
|
@@ -652,7 +662,7 @@ export class CalciteCombobox {
|
|
|
652
662
|
//
|
|
653
663
|
//--------------------------------------------------------------------------
|
|
654
664
|
renderChips() {
|
|
655
|
-
const { activeChipIndex, scale, selectionMode } = this;
|
|
665
|
+
const { activeChipIndex, scale, selectionMode, intlRemoveTag } = this;
|
|
656
666
|
return this.selectedItems.map((item, i) => {
|
|
657
667
|
const chipClasses = {
|
|
658
668
|
chip: true,
|
|
@@ -661,11 +671,11 @@ export class CalciteCombobox {
|
|
|
661
671
|
const ancestors = [...getItemAncestors(item)].reverse();
|
|
662
672
|
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
|
663
673
|
const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
|
|
664
|
-
return (h("calcite-chip", {
|
|
674
|
+
return (h("calcite-chip", { class: chipClasses, dismissLabel: intlRemoveTag, dismissible: true, icon: item.icon, id: item.guid ? `${chipUidPrefix}${item.guid}` : null, key: item.textLabel, onCalciteChipDismiss: (event) => this.calciteChipDismissHandler(event, item), scale: scale, title: label, value: item.value }, label));
|
|
665
675
|
});
|
|
666
676
|
}
|
|
667
677
|
renderInput() {
|
|
668
|
-
const { active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
|
|
678
|
+
const { guid, active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
|
|
669
679
|
const single = selectionMode === "single";
|
|
670
680
|
const selectedItem = selectedItems[0];
|
|
671
681
|
const showLabel = !active && single && !!selectedItem;
|
|
@@ -677,16 +687,16 @@ export class CalciteCombobox {
|
|
|
677
687
|
label: true,
|
|
678
688
|
"label--spaced": needsIcon
|
|
679
689
|
}, key: "label", onFocus: this.comboboxFocusHandler, tabindex: "0" }, selectedItem.textLabel)),
|
|
680
|
-
h("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": guid
|
|
690
|
+
h("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": `${listboxUidPrefix}${guid}`, "aria-label": getLabelText(this), class: {
|
|
681
691
|
input: true,
|
|
682
692
|
"input--single": true,
|
|
683
693
|
"input--transparent": this.activeChipIndex > -1,
|
|
684
694
|
"input--hidden": showLabel,
|
|
685
695
|
"input--icon": single && needsIcon
|
|
686
|
-
}, disabled: disabled, id: `${guid}
|
|
696
|
+
}, disabled: disabled, id: `${inputUidPrefix}${guid}`, key: "input", onBlur: this.comboboxBlurHandler, onFocus: this.comboboxFocusHandler, onInput: this.inputHandler, placeholder: placeholder, ref: (el) => (this.textInput = el), type: "text" })));
|
|
687
697
|
}
|
|
688
698
|
renderListBoxOptions() {
|
|
689
|
-
return this.visibleItems.map((item) => (h("li", { "aria-selected": (!!item.selected).toString(), id: item.guid, role: "option", tabindex: "-1" }, item.textLabel)));
|
|
699
|
+
return this.visibleItems.map((item) => (h("li", { "aria-selected": (!!item.selected).toString(), id: item.guid ? `${itemUidPrefix}${item.guid}` : null, role: "option", tabindex: "-1" }, item.textLabel)));
|
|
690
700
|
}
|
|
691
701
|
renderPopperContainer() {
|
|
692
702
|
const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
|
|
@@ -716,9 +726,8 @@ export class CalciteCombobox {
|
|
|
716
726
|
render() {
|
|
717
727
|
const { guid, open, label } = this;
|
|
718
728
|
const single = this.selectionMode === "single";
|
|
719
|
-
const labelId = `${guid}-label`;
|
|
720
729
|
return (h(Host, { onKeyDown: this.keydownHandler },
|
|
721
|
-
h("div", { "aria-autocomplete": "list", "aria-expanded": open.toString(), "aria-haspopup": "listbox", "aria-labelledby":
|
|
730
|
+
h("div", { "aria-autocomplete": "list", "aria-expanded": open.toString(), "aria-haspopup": "listbox", "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-owns": `${listboxUidPrefix}${guid}`, class: {
|
|
722
731
|
wrapper: true,
|
|
723
732
|
"wrapper--single": single || !this.selectedItems.length,
|
|
724
733
|
"wrapper--active": open
|
|
@@ -726,10 +735,10 @@ export class CalciteCombobox {
|
|
|
726
735
|
h("div", { class: "grid-input" },
|
|
727
736
|
this.renderIconStart(),
|
|
728
737
|
!single && this.renderChips(),
|
|
729
|
-
h("label", { class: "screen-readers-only", htmlFor: `${guid}
|
|
738
|
+
h("label", { class: "screen-readers-only", htmlFor: `${inputUidPrefix}${guid}`, id: `${labelUidPrefix}${guid}` }, label),
|
|
730
739
|
this.renderInput()),
|
|
731
740
|
this.renderIconEnd()),
|
|
732
|
-
h("ul", { "aria-labelledby":
|
|
741
|
+
h("ul", { "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-multiselectable": "true", class: "screen-readers-only", id: `${listboxUidPrefix}${guid}`, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()),
|
|
733
742
|
this.renderPopperContainer(),
|
|
734
743
|
h(HiddenFormInputSlot, { component: this })));
|
|
735
744
|
}
|
|
@@ -971,6 +980,27 @@ export class CalciteCombobox {
|
|
|
971
980
|
"attribute": "value",
|
|
972
981
|
"reflect": false,
|
|
973
982
|
"defaultValue": "null"
|
|
983
|
+
},
|
|
984
|
+
"intlRemoveTag": {
|
|
985
|
+
"type": "string",
|
|
986
|
+
"mutable": false,
|
|
987
|
+
"complexType": {
|
|
988
|
+
"original": "string",
|
|
989
|
+
"resolved": "string",
|
|
990
|
+
"references": {}
|
|
991
|
+
},
|
|
992
|
+
"required": false,
|
|
993
|
+
"optional": false,
|
|
994
|
+
"docs": {
|
|
995
|
+
"tags": [{
|
|
996
|
+
"name": "default",
|
|
997
|
+
"text": "\"Remove tag\""
|
|
998
|
+
}],
|
|
999
|
+
"text": "string to override the English \"Remove tag\" text for when an item is selected."
|
|
1000
|
+
},
|
|
1001
|
+
"attribute": "intl-remove-tag",
|
|
1002
|
+
"reflect": false,
|
|
1003
|
+
"defaultValue": "TEXT.removeTag"
|
|
974
1004
|
}
|
|
975
1005
|
}; }
|
|
976
1006
|
static get states() { return {
|
|
@@ -6,3 +6,6 @@ export const ComboboxItem = "CALCITE-COMBOBOX-ITEM";
|
|
|
6
6
|
export const ComboboxItemGroup = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
7
7
|
export const ComboboxChildSelector = `${ComboboxItem}, ${ComboboxItemGroup}`;
|
|
8
8
|
export const ComboboxDefaultPlacement = "bottom-leading";
|
|
9
|
+
export const TEXT = {
|
|
10
|
+
removeTag: "Remove tag"
|
|
11
|
+
};
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, Host, Method, Prop, h, Watch } from "@stencil/core";
|
|
6
|
-
import { getElementProp } from "../../utils/dom";
|
|
6
|
+
import { getElementProp, getSlotted } from "../../utils/dom";
|
|
7
7
|
import { CSS } from "./resources";
|
|
8
8
|
import { guid } from "../../utils/guid";
|
|
9
9
|
import { getAncestors, getDepth } from "../calcite-combobox/utils";
|
|
10
|
+
import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
10
11
|
/**
|
|
11
12
|
* @slot - A slot for adding nested `calcite-combobox-item`s.
|
|
12
13
|
*/
|
|
@@ -50,9 +51,10 @@ export class CalciteComboboxItem {
|
|
|
50
51
|
connectedCallback() {
|
|
51
52
|
this.ancestors = getAncestors(this.el);
|
|
52
53
|
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
54
|
+
connectConditionalSlotComponent(this);
|
|
53
55
|
}
|
|
54
|
-
|
|
55
|
-
this
|
|
56
|
+
disconnectedCallback() {
|
|
57
|
+
disconnectConditionalSlotComponent(this);
|
|
56
58
|
}
|
|
57
59
|
// --------------------------------------------------------------------------
|
|
58
60
|
//
|
|
@@ -92,11 +94,11 @@ export class CalciteComboboxItem {
|
|
|
92
94
|
}, icon: icon || iconPath, scale: "s" }));
|
|
93
95
|
}
|
|
94
96
|
renderChildren() {
|
|
95
|
-
if (
|
|
96
|
-
return
|
|
97
|
+
if (getSlotted(this.el)) {
|
|
98
|
+
return (h("ul", { key: "default-slot-container" },
|
|
99
|
+
h("slot", null)));
|
|
97
100
|
}
|
|
98
|
-
return
|
|
99
|
-
h("slot", null)));
|
|
101
|
+
return null;
|
|
100
102
|
}
|
|
101
103
|
render() {
|
|
102
104
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
@@ -13,10 +13,11 @@ function getSupportedLocale(lang = "") {
|
|
|
13
13
|
if (locales.indexOf(lang) > -1) {
|
|
14
14
|
return lang;
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
lang = lang.toLowerCase();
|
|
17
|
+
if (lang.includes("-")) {
|
|
18
|
+
lang = lang.replace(/(\w+)-(\w+)/, (_match, language, region) => `${language}-${region.toUpperCase()}`);
|
|
19
19
|
}
|
|
20
|
+
return locales.includes(lang) ? lang : "en";
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* CLDR cache.
|
|
@@ -59,6 +59,7 @@ export class CalciteDropdown {
|
|
|
59
59
|
this.items = [];
|
|
60
60
|
this.activeTransitionProp = "visibility";
|
|
61
61
|
this.mutationObserver = createObserver("mutation", () => this.updateItems());
|
|
62
|
+
this.resizeObserver = createObserver("resize", () => this.setMaxScrollerHeight());
|
|
62
63
|
//--------------------------------------------------------------------------
|
|
63
64
|
//
|
|
64
65
|
// Private Methods
|
|
@@ -71,13 +72,15 @@ export class CalciteDropdown {
|
|
|
71
72
|
this.reposition();
|
|
72
73
|
};
|
|
73
74
|
this.setMaxScrollerHeight = () => {
|
|
74
|
-
const { scrollerEl } = this;
|
|
75
|
-
if (scrollerEl) {
|
|
76
|
-
|
|
77
|
-
scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
|
75
|
+
const { active, scrollerEl } = this;
|
|
76
|
+
if (!scrollerEl || !active) {
|
|
77
|
+
return;
|
|
78
78
|
}
|
|
79
|
+
const maxScrollerHeight = this.getMaxScrollerHeight();
|
|
80
|
+
scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
|
79
81
|
};
|
|
80
82
|
this.setScrollerEl = (scrollerEl) => {
|
|
83
|
+
this.resizeObserver.observe(scrollerEl);
|
|
81
84
|
this.scrollerEl = scrollerEl;
|
|
82
85
|
};
|
|
83
86
|
this.transitionEnd = (event) => {
|
|
@@ -133,6 +136,7 @@ export class CalciteDropdown {
|
|
|
133
136
|
}
|
|
134
137
|
maxItemsHandler() {
|
|
135
138
|
this.reposition();
|
|
139
|
+
this.setMaxScrollerHeight();
|
|
136
140
|
}
|
|
137
141
|
placementHandler() {
|
|
138
142
|
this.reposition();
|
|
@@ -152,8 +156,9 @@ export class CalciteDropdown {
|
|
|
152
156
|
this.reposition();
|
|
153
157
|
}
|
|
154
158
|
disconnectedCallback() {
|
|
155
|
-
var _a;
|
|
159
|
+
var _a, _b;
|
|
156
160
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
161
|
+
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
157
162
|
this.destroyPopper();
|
|
158
163
|
}
|
|
159
164
|
render() {
|
|
@@ -167,7 +172,8 @@ export class CalciteDropdown {
|
|
|
167
172
|
[PopperCSS.animation]: true,
|
|
168
173
|
[PopperCSS.animationActive]: active
|
|
169
174
|
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl },
|
|
170
|
-
h("
|
|
175
|
+
h("div", { hidden: !this.active },
|
|
176
|
+
h("slot", null))))));
|
|
171
177
|
}
|
|
172
178
|
//--------------------------------------------------------------------------
|
|
173
179
|
//
|
|
@@ -177,7 +183,6 @@ export class CalciteDropdown {
|
|
|
177
183
|
/** Updates the position of the component. */
|
|
178
184
|
async reposition() {
|
|
179
185
|
const { popper, menuEl, placement } = this;
|
|
180
|
-
this.setMaxScrollerHeight();
|
|
181
186
|
const modifiers = this.getModifiers();
|
|
182
187
|
popper
|
|
183
188
|
? await updatePopper({
|
|
@@ -87,13 +87,11 @@
|
|
|
87
87
|
stroke: transparent;
|
|
88
88
|
margin: 0px;
|
|
89
89
|
display: block;
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
:host([data-style=slider-histogram]) svg {
|
|
90
|
+
height: 100%;
|
|
94
91
|
width: 100%;
|
|
92
|
+
padding: 0px;
|
|
95
93
|
}
|
|
96
|
-
|
|
94
|
+
.svg .graph-path--highlight {
|
|
97
95
|
fill: var(--calcite-ui-brand);
|
|
98
96
|
opacity: 0.5;
|
|
99
97
|
}
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
|
-
import { Component, Element, Prop, h } from "@stencil/core";
|
|
5
|
+
import { Component, Element, Prop, h, forceUpdate } from "@stencil/core";
|
|
6
6
|
import { guid } from "../../utils/guid";
|
|
7
7
|
import { area, range, translate } from "./util";
|
|
8
|
+
import { createObserver } from "../../utils/observers";
|
|
8
9
|
export class CalciteGraph {
|
|
9
10
|
constructor() {
|
|
10
11
|
//--------------------------------------------------------------------------
|
|
@@ -17,25 +18,31 @@ export class CalciteGraph {
|
|
|
17
18
|
* These data points should be sorted by x-axis value
|
|
18
19
|
*/
|
|
19
20
|
this.data = [];
|
|
20
|
-
/** Width of graph in pixels*/
|
|
21
|
-
this.width = 300;
|
|
22
|
-
/** Width of graph in pixels*/
|
|
23
|
-
this.height = 100;
|
|
24
21
|
//--------------------------------------------------------------------------
|
|
25
22
|
//
|
|
26
23
|
// Private State/Props
|
|
27
24
|
//
|
|
28
25
|
//--------------------------------------------------------------------------
|
|
29
26
|
this.graphId = `calcite-graph-${guid()}`;
|
|
27
|
+
this.resizeObserver = createObserver("resize", () => forceUpdate(this));
|
|
30
28
|
}
|
|
31
29
|
//--------------------------------------------------------------------------
|
|
32
30
|
//
|
|
33
31
|
// Lifecycle
|
|
34
32
|
//
|
|
35
33
|
//--------------------------------------------------------------------------
|
|
34
|
+
connectedCallback() {
|
|
35
|
+
var _a;
|
|
36
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el);
|
|
37
|
+
}
|
|
38
|
+
disconnectedCallback() {
|
|
39
|
+
var _a;
|
|
40
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
41
|
+
}
|
|
36
42
|
render() {
|
|
37
|
-
const { data, colorStops,
|
|
43
|
+
const { data, colorStops, el, highlightMax, highlightMin, min, max } = this;
|
|
38
44
|
const id = this.graphId;
|
|
45
|
+
const { clientHeight: height, clientWidth: width } = el;
|
|
39
46
|
// if we have no data, return empty svg
|
|
40
47
|
if (!data || data.length === 0) {
|
|
41
48
|
return (h("svg", { class: "svg", height: height, preserveAspectRatio: "none", viewBox: `0 0 ${width} ${height}`, width: width }));
|
|
@@ -137,42 +144,6 @@ export class CalciteGraph {
|
|
|
137
144
|
"text": "Array of values describing a single color stop ([offset, color, opacity])\nThese color stops should be sorted by offset value"
|
|
138
145
|
}
|
|
139
146
|
},
|
|
140
|
-
"width": {
|
|
141
|
-
"type": "number",
|
|
142
|
-
"mutable": false,
|
|
143
|
-
"complexType": {
|
|
144
|
-
"original": "number",
|
|
145
|
-
"resolved": "number",
|
|
146
|
-
"references": {}
|
|
147
|
-
},
|
|
148
|
-
"required": false,
|
|
149
|
-
"optional": false,
|
|
150
|
-
"docs": {
|
|
151
|
-
"tags": [],
|
|
152
|
-
"text": "Width of graph in pixels"
|
|
153
|
-
},
|
|
154
|
-
"attribute": "width",
|
|
155
|
-
"reflect": false,
|
|
156
|
-
"defaultValue": "300"
|
|
157
|
-
},
|
|
158
|
-
"height": {
|
|
159
|
-
"type": "number",
|
|
160
|
-
"mutable": false,
|
|
161
|
-
"complexType": {
|
|
162
|
-
"original": "number",
|
|
163
|
-
"resolved": "number",
|
|
164
|
-
"references": {}
|
|
165
|
-
},
|
|
166
|
-
"required": false,
|
|
167
|
-
"optional": false,
|
|
168
|
-
"docs": {
|
|
169
|
-
"tags": [],
|
|
170
|
-
"text": "Width of graph in pixels"
|
|
171
|
-
},
|
|
172
|
-
"attribute": "height",
|
|
173
|
-
"reflect": false,
|
|
174
|
-
"defaultValue": "100"
|
|
175
|
-
},
|
|
176
147
|
"highlightMin": {
|
|
177
148
|
"type": "number",
|
|
178
149
|
"mutable": false,
|
|
@@ -36,9 +36,9 @@ export class CalciteInlineEditable {
|
|
|
36
36
|
* @default "Save"
|
|
37
37
|
*/
|
|
38
38
|
this.intlConfirmChanges = TEXT.intlConfirmChanges;
|
|
39
|
-
this.transitionEnd = (
|
|
39
|
+
this.transitionEnd = () => {
|
|
40
40
|
if (!this.editingEnabled && !!this.shouldEmitCancel) {
|
|
41
|
-
this.
|
|
41
|
+
this.calciteInlineEditableEditCancel.emit();
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
this.enableEditing = () => {
|
|
@@ -90,7 +90,7 @@ export class CalciteInlineEditable {
|
|
|
90
90
|
this.confirmChangesHandler = async (e) => {
|
|
91
91
|
e.preventDefault();
|
|
92
92
|
e.stopPropagation();
|
|
93
|
-
this.
|
|
93
|
+
this.calciteInlineEditableEditConfirm.emit();
|
|
94
94
|
try {
|
|
95
95
|
if (this.afterConfirm) {
|
|
96
96
|
this.loading = true;
|
|
@@ -370,39 +370,33 @@ export class CalciteInlineEditable {
|
|
|
370
370
|
}
|
|
371
371
|
}; }
|
|
372
372
|
static get events() { return [{
|
|
373
|
-
"method": "
|
|
374
|
-
"name": "
|
|
373
|
+
"method": "calciteInlineEditableEditCancel",
|
|
374
|
+
"name": "calciteInlineEditableEditCancel",
|
|
375
375
|
"bubbles": true,
|
|
376
376
|
"cancelable": true,
|
|
377
377
|
"composed": true,
|
|
378
378
|
"docs": {
|
|
379
|
-
"tags": [
|
|
380
|
-
|
|
381
|
-
"text": undefined
|
|
382
|
-
}],
|
|
383
|
-
"text": ""
|
|
379
|
+
"tags": [],
|
|
380
|
+
"text": "Emitted when the cancel button gets clicked."
|
|
384
381
|
},
|
|
385
382
|
"complexType": {
|
|
386
|
-
"original": "
|
|
387
|
-
"resolved": "
|
|
383
|
+
"original": "void",
|
|
384
|
+
"resolved": "void",
|
|
388
385
|
"references": {}
|
|
389
386
|
}
|
|
390
387
|
}, {
|
|
391
|
-
"method": "
|
|
392
|
-
"name": "
|
|
388
|
+
"method": "calciteInlineEditableEditConfirm",
|
|
389
|
+
"name": "calciteInlineEditableEditConfirm",
|
|
393
390
|
"bubbles": true,
|
|
394
391
|
"cancelable": true,
|
|
395
392
|
"composed": true,
|
|
396
393
|
"docs": {
|
|
397
|
-
"tags": [
|
|
398
|
-
|
|
399
|
-
"text": undefined
|
|
400
|
-
}],
|
|
401
|
-
"text": ""
|
|
394
|
+
"tags": [],
|
|
395
|
+
"text": "Emitted when the check button gets clicked."
|
|
402
396
|
},
|
|
403
397
|
"complexType": {
|
|
404
|
-
"original": "
|
|
405
|
-
"resolved": "
|
|
398
|
+
"original": "void",
|
|
399
|
+
"resolved": "void",
|
|
406
400
|
"references": {}
|
|
407
401
|
}
|
|
408
402
|
}, {
|