@esri/calcite-components 1.0.0-next.369 → 1.0.0-next.372
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-8f647ab0.system.entry.js → p-0164361f.system.entry.js} +1 -1
- package/dist/calcite/{p-e1944963.js → p-01b7adb5.js} +1 -1
- package/dist/calcite/{p-8a237191.system.entry.js → p-06dbe76a.system.entry.js} +1 -1
- package/dist/calcite/{p-4b3160ad.system.entry.js → p-06fbc0f2.system.entry.js} +1 -1
- package/dist/calcite/{p-cf2be87e.entry.js → p-08be120f.entry.js} +1 -1
- package/dist/calcite/{p-d908834f.system.entry.js → p-0a85cd8c.system.entry.js} +1 -1
- package/dist/calcite/{p-f94619be.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-99d29b5c.system.entry.js → p-12142a2c.system.entry.js} +1 -1
- package/dist/calcite/{p-40bb088d.entry.js → p-146d8510.entry.js} +1 -1
- package/dist/calcite/{p-f044fcc5.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-4c021c5c.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-84defe75.system.entry.js → p-243985d8.system.entry.js} +1 -1
- package/dist/calcite/{p-0389f96b.system.entry.js → p-2e324a56.system.entry.js} +1 -1
- package/dist/calcite/{p-1894562d.system.entry.js → p-32d61433.system.entry.js} +1 -1
- package/dist/calcite/{p-6de78659.system.entry.js → p-39d4d1b1.system.entry.js} +1 -1
- package/dist/calcite/{p-492d644c.system.entry.js → p-3cdf0ad5.system.entry.js} +1 -1
- package/dist/calcite/{p-2d411997.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-6c4bec59.entry.js → p-49782820.entry.js} +1 -1
- package/dist/calcite/{p-b052f523.entry.js → p-500300b5.entry.js} +1 -1
- package/dist/calcite/{p-e0fa3b13.system.entry.js → p-54bb21f5.system.entry.js} +1 -1
- package/dist/calcite/p-54edaa0d.entry.js +5 -0
- package/dist/calcite/{p-51a85436.entry.js → p-58eb8460.entry.js} +1 -1
- package/dist/calcite/{p-96808ed2.entry.js → p-5a77fd17.entry.js} +1 -1
- 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-950b42e3.entry.js → p-5f5bfaa5.entry.js} +1 -1
- package/dist/calcite/{p-24b54c99.system.entry.js → p-617c3f30.system.entry.js} +1 -1
- package/dist/calcite/{p-fe94050d.entry.js → p-63f8783a.entry.js} +1 -1
- package/dist/calcite/p-647d22ef.js +5 -0
- package/dist/calcite/{p-26fd946c.entry.js → p-64a5e88c.entry.js} +1 -1
- package/dist/calcite/{p-f90b2e7f.entry.js → p-6969dabb.entry.js} +1 -1
- package/dist/calcite/{p-4c6fe413.system.entry.js → p-6afd69dc.system.entry.js} +1 -1
- package/dist/calcite/{p-6fa59c8c.entry.js → p-6fb9fef5.entry.js} +1 -1
- package/dist/calcite/{p-14ff4cbd.system.js → p-70dd483b.system.js} +1 -1
- package/dist/calcite/p-754809de.entry.js +5 -0
- package/dist/calcite/{p-0faf1684.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-590d13bd.entry.js → p-78725919.entry.js} +1 -1
- package/dist/calcite/p-7a6c932d.system.entry.js +5 -0
- package/dist/calcite/p-7bdeb3ba.system.entry.js +5 -0
- package/dist/calcite/{p-4dcae709.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-7cba1720.system.entry.js → p-8604c625.system.entry.js} +1 -1
- package/dist/calcite/{p-67e13029.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-242fdd67.entry.js → p-8e4aa7f7.entry.js} +1 -1
- package/dist/calcite/{p-ee7e311e.system.entry.js → p-8f2c68f4.system.entry.js} +1 -1
- 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-7ed5b78e.system.entry.js → p-99422223.system.entry.js} +1 -1
- 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-6b8dcbb0.entry.js → p-9d7102c0.entry.js} +1 -1
- package/dist/calcite/p-9e2c9752.entry.js +5 -0
- package/dist/calcite/p-9f49c4fe.system.entry.js +5 -0
- package/dist/calcite/{p-a980b2df.entry.js → p-a50e52f1.entry.js} +1 -1
- package/dist/calcite/{p-28dea60a.system.js → p-a99c8ebf.system.js} +1 -1
- package/dist/calcite/{p-92de4a81.entry.js → p-abe7730b.entry.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-5aaa0088.system.entry.js → p-b86f0930.system.entry.js} +1 -1
- package/dist/calcite/{p-57584243.system.entry.js → p-b9adf89d.system.entry.js} +1 -1
- package/dist/calcite/{p-eea18662.entry.js → p-baca86e3.entry.js} +1 -1
- package/dist/calcite/{p-203e951b.system.entry.js → p-bd576ae0.system.entry.js} +1 -1
- package/dist/calcite/{p-a25ebce7.entry.js → p-be231b84.entry.js} +1 -1
- package/dist/calcite/{p-51550014.entry.js → p-c1c37da9.entry.js} +1 -1
- package/dist/calcite/{p-de09fc5c.system.entry.js → p-c5463268.system.entry.js} +1 -1
- package/dist/calcite/{p-4641ef1f.entry.js → p-c5b3d90c.entry.js} +1 -1
- package/dist/calcite/{p-a5c73259.entry.js → p-c6cb0aa2.entry.js} +1 -1
- package/dist/calcite/{p-3280f0ac.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-7db0947c.entry.js → p-da470de7.entry.js} +1 -1
- 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-fee6af61.entry.js → p-e4862fff.entry.js} +1 -1
- package/dist/calcite/{p-05dc6806.entry.js → p-e5420c67.entry.js} +1 -1
- package/dist/calcite/{p-4ef2119c.entry.js → p-e5526c34.entry.js} +1 -1
- package/dist/calcite/{p-c029ffb1.entry.js → p-e5c2a6eb.entry.js} +1 -1
- 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-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-57bf81c4.system.entry.js → p-f12c35de.system.entry.js} +1 -1
- package/dist/calcite/{p-283ff9e8.entry.js → p-f1dc4798.entry.js} +1 -1
- 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-bb20e0fc.system.entry.js → p-ff04cfb1.system.entry.js} +1 -1
- 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 +2 -2
- package/dist/cjs/calcite-action-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-menu.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +1 -1
- package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
- package/dist/cjs/calcite-block_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-button.cjs.entry.js +2 -2
- package/dist/cjs/calcite-card.cjs.entry.js +17 -6
- package/dist/cjs/calcite-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/calcite-chip.cjs.entry.js +1 -1
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +16 -13
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +2 -2
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
- package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +2 -2
- 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 +96 -39
- package/dist/cjs/calcite-link.cjs.entry.js +1 -1
- package/dist/cjs/calcite-list_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-modal.cjs.entry.js +1 -1
- package/dist/cjs/calcite-notice.cjs.entry.js +1 -1
- package/dist/cjs/calcite-option_3.cjs.entry.js +3 -3
- package/dist/cjs/calcite-panel.cjs.entry.js +1 -1
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-popover_2.cjs.entry.js +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 +1 -1
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-switch.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tab_4.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tile.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tip_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tree_2.cjs.entry.js +3 -2
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +2 -2
- 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/{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-card/calcite-card.js +15 -6
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +5 -4
- 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-input/calcite-input.js +93 -36
- package/dist/collection/components/calcite-tree/calcite-tree.js +2 -1
- package/dist/collection/utils/dom.js +13 -10
- package/dist/components/calcite-card.js +15 -6
- package/dist/components/calcite-combobox-item.js +8 -6
- package/dist/components/calcite-combobox.js +5 -4
- package/dist/components/calcite-date-picker2.js +4 -3
- package/dist/components/calcite-input2.js +93 -36
- package/dist/components/calcite-tree.js +2 -1
- package/dist/components/dom.js +13 -10
- package/dist/custom-elements/index.js +137 -66
- 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 +2 -2
- package/dist/esm/calcite-action-group.entry.js +1 -1
- package/dist/esm/calcite-action-menu.entry.js +1 -1
- package/dist/esm/calcite-action-pad.entry.js +2 -2
- package/dist/esm/calcite-alert.entry.js +1 -1
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block_2.entry.js +1 -1
- package/dist/esm/calcite-button.entry.js +2 -2
- package/dist/esm/calcite-card.entry.js +17 -6
- package/dist/esm/calcite-checkbox.entry.js +3 -3
- package/dist/esm/calcite-chip.entry.js +1 -1
- package/dist/esm/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm/calcite-combobox_3.entry.js +16 -13
- package/dist/esm/calcite-date-picker_4.entry.js +2 -2
- package/dist/esm/calcite-dropdown_3.entry.js +2 -2
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/calcite-filter.entry.js +1 -1
- package/dist/esm/calcite-graph_2.entry.js +3 -3
- package/dist/esm/calcite-icon.entry.js +1 -1
- package/dist/esm/calcite-inline-editable.entry.js +2 -2
- 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 +96 -39
- package/dist/esm/calcite-link.entry.js +1 -1
- package/dist/esm/calcite-list_3.entry.js +1 -1
- package/dist/esm/calcite-modal.entry.js +1 -1
- package/dist/esm/calcite-notice.entry.js +1 -1
- package/dist/esm/calcite-option_3.entry.js +3 -3
- package/dist/esm/calcite-panel.entry.js +1 -1
- package/dist/esm/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm/calcite-popover_2.entry.js +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 +1 -1
- package/dist/esm/calcite-stepper_2.entry.js +1 -1
- package/dist/esm/calcite-switch.entry.js +3 -3
- package/dist/esm/calcite-tab_4.entry.js +1 -1
- package/dist/esm/calcite-tile.entry.js +1 -1
- package/dist/esm/calcite-tip_3.entry.js +1 -1
- package/dist/esm/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm/calcite-tree_2.entry.js +3 -2
- package/dist/esm/calcite-value-list_2.entry.js +2 -2
- 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/{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 +1 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
- package/dist/esm-es5/calcite-alert.entry.js +1 -1
- package/dist/esm-es5/calcite-avatar.entry.js +1 -1
- package/dist/esm-es5/calcite-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-button.entry.js +1 -1
- package/dist/esm-es5/calcite-card.entry.js +1 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
- package/dist/esm-es5/calcite-chip.entry.js +1 -1
- package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +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-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-icon.entry.js +1 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +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 +1 -1
- package/dist/esm-es5/calcite-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-modal.entry.js +1 -1
- package/dist/esm-es5/calcite-notice.entry.js +1 -1
- package/dist/esm-es5/calcite-option_3.entry.js +1 -1
- package/dist/esm-es5/calcite-panel.entry.js +1 -1
- package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
- package/dist/esm-es5/calcite-rating.entry.js +2 -2
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
- package/dist/esm-es5/calcite-switch.entry.js +1 -1
- package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
- package/dist/esm-es5/calcite-tile.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/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/{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 +1 -1
- package/dist/types/components/calcite-card/calcite-card.d.ts +4 -1
- package/dist/types/components/calcite-combobox-item/calcite-combobox-item.d.ts +3 -3
- package/dist/types/components/calcite-input/calcite-input.d.ts +6 -1
- package/dist/types/utils/dom.d.ts +1 -0
- package/hydrate/index.js +133 -63
- package/package.json +1 -1
- package/dist/calcite/p-1b06ada3.entry.js +0 -5
- package/dist/calcite/p-32f7eb32.js +0 -5
- package/dist/calcite/p-341eef4e.entry.js +0 -5
- package/dist/calcite/p-41e2198b.js +0 -5
- package/dist/calcite/p-5b7d5f36.entry.js +0 -5
- package/dist/calcite/p-77279f88.system.entry.js +0 -5
- package/dist/calcite/p-7a28e833.system.entry.js +0 -5
- package/dist/calcite/p-7f50128c.system.entry.js +0 -5
- package/dist/calcite/p-9b05c3fd.js +0 -5
- package/dist/calcite/p-9f349c92.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-f385d631.entry.js +0 -5
- package/dist/esm-es5/dom-037dc374.js +0 -5
- package/dist/esm-es5/resources-90193940.js +0 -5
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
11
|
-
const label = require('./label-
|
|
12
|
-
const form = require('./form-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
|
+
const label = require('./label-6b18ca08.js');
|
|
12
|
+
const form = require('./form-237cf392.js');
|
|
13
13
|
require('./guid-b270f0db.js');
|
|
14
14
|
|
|
15
15
|
const calciteSwitchCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]) .container{height:0.75rem}:host([scale=s]) .track{height:0.75rem;width:1.5rem}:host([scale=s]) .handle{height:0.5rem;width:0.5rem}:host([scale=m]) .container{height:1rem}:host([scale=m]) .track{height:1rem;width:2rem}:host([scale=m]) .handle{height:0.75rem;width:0.75rem}:host([scale=l]) .container{height:1.5rem}:host([scale=l]) .track{height:1.5rem;width:3rem}:host([scale=l]) .handle{height:1.25rem;width:1.25rem}:host{position:relative;display:inline-block;width:auto;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]){pointer-events:none;cursor:default;opacity:var(--calcite-ui-opacity-disabled)}:host{width:auto;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.track{pointer-events:none;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;border-radius:9999px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-2);vertical-align:top;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.handle{pointer-events:none;position:absolute;display:block;border-radius:9999px;border-width:2px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);top:-1px;inset-inline:-1px auto}:host(:hover) .handle,:host(:focus) .handle{border-color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([checked]) .track{border-color:var(--calcite-ui-brand-hover);background-color:var(--calcite-ui-brand)}:host([checked]) .handle{border-color:var(--calcite-ui-brand);inset-inline:auto -1px}:host([checked]:hover) .track{border-color:var(--calcite-ui-brand-hover);background-color:var(--calcite-ui-brand)}:host([checked]:hover) .handle{border-color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}.container:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const guid = require('./guid-b270f0db.js');
|
|
11
|
-
const dom = require('./dom-
|
|
11
|
+
const dom = require('./dom-f3df220d.js');
|
|
12
12
|
const observers = require('./observers-79bfb8bc.js');
|
|
13
13
|
|
|
14
14
|
const calciteTabCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([active]) section{display:block}:host{display:none;height:100%;width:100%}:host([active]){display:block;height:100%;width:100%;overflow:auto}section{display:none;height:100%;width:100%}:host([scale=s]){padding-top:0.25rem;padding-bottom:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){padding-top:0.75rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
11
|
const conditionalSlot = require('./conditionalSlot-92505fba.js');
|
|
12
12
|
require('./guid-b270f0db.js');
|
|
13
13
|
require('./observers-79bfb8bc.js');
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
11
|
const CalciteHeading = require('./CalciteHeading-112c19f9.js');
|
|
12
12
|
const conditionalSlot = require('./conditionalSlot-92505fba.js');
|
|
13
13
|
const observers = require('./observers-79bfb8bc.js');
|
|
@@ -8,8 +8,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const guid = require('./guid-b270f0db.js');
|
|
11
|
-
const popper = require('./popper-
|
|
12
|
-
const dom = require('./dom-
|
|
11
|
+
const popper = require('./popper-13a2bb46.js');
|
|
12
|
+
const dom = require('./dom-f3df220d.js');
|
|
13
13
|
|
|
14
14
|
const CSS = {
|
|
15
15
|
container: "container",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
11
|
const conditionalSlot = require('./conditionalSlot-92505fba.js');
|
|
12
12
|
require('./guid-b270f0db.js');
|
|
13
13
|
require('./observers-79bfb8bc.js');
|
|
@@ -77,7 +77,8 @@ let CalciteTree = class {
|
|
|
77
77
|
onFocusIn(event) {
|
|
78
78
|
const focusedFromRootOrOutsideTree = event.relatedTarget === this.el || !this.el.contains(event.relatedTarget);
|
|
79
79
|
if (focusedFromRootOrOutsideTree) {
|
|
80
|
-
|
|
80
|
+
// gives user the ability to tab into external elements (modifying tabindex property will not work in firefox)
|
|
81
|
+
this.el.removeAttribute("tabindex");
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
onFocusOut(event) {
|
|
@@ -8,11 +8,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const sortable_esm = require('./sortable.esm-d7a4560b.js');
|
|
11
|
-
const resources = require('./resources-
|
|
11
|
+
const resources = require('./resources-95073e41.js');
|
|
12
12
|
const array = require('./array-a5dedf5a.js');
|
|
13
13
|
const observers = require('./observers-79bfb8bc.js');
|
|
14
14
|
const guid = require('./guid-b270f0db.js');
|
|
15
|
-
const dom = require('./dom-
|
|
15
|
+
const dom = require('./dom-f3df220d.js');
|
|
16
16
|
const conditionalSlot = require('./conditionalSlot-92505fba.js');
|
|
17
17
|
require('./debounce-95979061.js');
|
|
18
18
|
|
|
@@ -124,9 +124,9 @@ async function focusElement(el) {
|
|
|
124
124
|
}
|
|
125
125
|
return isCalciteFocusable(el) ? el.setFocus() : el.focus();
|
|
126
126
|
}
|
|
127
|
-
const defaultSlotSelector = "
|
|
127
|
+
const defaultSlotSelector = ":not([slot])";
|
|
128
128
|
function getSlotted(element, slotName, options) {
|
|
129
|
-
if (!Array.isArray(slotName) && typeof slotName !== "string") {
|
|
129
|
+
if (slotName && !Array.isArray(slotName) && typeof slotName !== "string") {
|
|
130
130
|
options = slotName;
|
|
131
131
|
slotName = null;
|
|
132
132
|
}
|
|
@@ -140,12 +140,15 @@ function getSlotted(element, slotName, options) {
|
|
|
140
140
|
}
|
|
141
141
|
return querySingle(element, slotSelector, options);
|
|
142
142
|
}
|
|
143
|
+
function getDirectChildren(el, selector) {
|
|
144
|
+
return el ? Array.from(el.children || []).filter((child) => child === null || child === void 0 ? void 0 : child.matches(selector)) : [];
|
|
145
|
+
}
|
|
143
146
|
function queryMultiple(element, slotSelector, options) {
|
|
144
|
-
let matches =
|
|
147
|
+
let matches = slotSelector === defaultSlotSelector
|
|
148
|
+
? getDirectChildren(element, defaultSlotSelector)
|
|
149
|
+
: Array.from(element.querySelectorAll(slotSelector));
|
|
145
150
|
matches = options && options.direct === false ? matches : matches.filter((el) => el.parentElement === element);
|
|
146
|
-
|
|
147
|
-
matches = matches.filter((match) => match === null || match === void 0 ? void 0 : match.assignedSlot);
|
|
148
|
-
}
|
|
151
|
+
matches = (options === null || options === void 0 ? void 0 : options.matches) ? matches.filter((el) => el === null || el === void 0 ? void 0 : el.matches(options.matches)) : matches;
|
|
149
152
|
const selector = options === null || options === void 0 ? void 0 : options.selector;
|
|
150
153
|
return selector
|
|
151
154
|
? matches
|
|
@@ -155,11 +158,11 @@ function queryMultiple(element, slotSelector, options) {
|
|
|
155
158
|
: matches;
|
|
156
159
|
}
|
|
157
160
|
function querySingle(element, slotSelector, options) {
|
|
158
|
-
let match =
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
161
|
+
let match = slotSelector === defaultSlotSelector
|
|
162
|
+
? getDirectChildren(element, defaultSlotSelector)[0] || null
|
|
163
|
+
: element.querySelector(slotSelector);
|
|
162
164
|
match = options && options.direct === false ? match : (match === null || match === void 0 ? void 0 : match.parentElement) === element ? match : null;
|
|
165
|
+
match = (options === null || options === void 0 ? void 0 : options.matches) ? ((match === null || match === void 0 ? void 0 : match.matches(options.matches)) ? match : null) : match;
|
|
163
166
|
const selector = options === null || options === void 0 ? void 0 : options.selector;
|
|
164
167
|
return selector ? match === null || match === void 0 ? void 0 : match.querySelector(selector) : match;
|
|
165
168
|
}
|
|
@@ -16,10 +16,11 @@ function getSupportedLocale(lang = "") {
|
|
|
16
16
|
if (locale.locales.indexOf(lang) > -1) {
|
|
17
17
|
return lang;
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
lang = lang.toLowerCase();
|
|
20
|
+
if (lang.includes("-")) {
|
|
21
|
+
lang = lang.replace(/(\w+)-(\w+)/, (_match, language, region) => `${language}-${region.toUpperCase()}`);
|
|
22
22
|
}
|
|
23
|
+
return locale.locales.includes(lang) ? lang : "en";
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* CLDR cache.
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Prop } from "@stencil/core";
|
|
6
|
+
import { getSlotted } from "../../utils/dom";
|
|
6
7
|
import { CSS, SLOTS, TEXT } from "./resources";
|
|
8
|
+
import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
7
9
|
/** Cards do not include a grid or bounding container
|
|
8
10
|
* - cards will expand to fit the width of their container
|
|
9
11
|
*/
|
|
@@ -68,6 +70,12 @@ export class CalciteCard {
|
|
|
68
70
|
// Lifecycle
|
|
69
71
|
//
|
|
70
72
|
// --------------------------------------------------------------------------
|
|
73
|
+
connectedCallback() {
|
|
74
|
+
connectConditionalSlotComponent(this);
|
|
75
|
+
}
|
|
76
|
+
disonnectedCallback() {
|
|
77
|
+
disconnectConditionalSlotComponent(this);
|
|
78
|
+
}
|
|
71
79
|
render() {
|
|
72
80
|
return (h("div", { class: "calcite-card-container" },
|
|
73
81
|
this.loading ? (h("div", { class: "calcite-card-loader-container" },
|
|
@@ -85,8 +93,7 @@ export class CalciteCard {
|
|
|
85
93
|
this.calciteCardSelect.emit();
|
|
86
94
|
}
|
|
87
95
|
renderThumbnail() {
|
|
88
|
-
|
|
89
|
-
return hasThumbnail ? (h("div", { class: CSS.thumbnailWrapper },
|
|
96
|
+
return getSlotted(this.el, SLOTS.thumbnail) ? (h("div", { class: CSS.thumbnailWrapper, key: "thumbnail-wrapper" },
|
|
90
97
|
h("slot", { name: SLOTS.thumbnail }))) : null;
|
|
91
98
|
}
|
|
92
99
|
renderCheckbox() {
|
|
@@ -95,16 +102,18 @@ export class CalciteCard {
|
|
|
95
102
|
h("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
96
103
|
}
|
|
97
104
|
renderHeader() {
|
|
98
|
-
const
|
|
99
|
-
const
|
|
105
|
+
const { el } = this;
|
|
106
|
+
const title = getSlotted(el, SLOTS.title);
|
|
107
|
+
const subtitle = getSlotted(el, SLOTS.subtitle);
|
|
100
108
|
const hasHeader = title || subtitle;
|
|
101
109
|
return hasHeader ? (h("header", { class: CSS.header },
|
|
102
110
|
h("slot", { name: SLOTS.title }),
|
|
103
111
|
h("slot", { name: SLOTS.subtitle }))) : null;
|
|
104
112
|
}
|
|
105
113
|
renderFooter() {
|
|
106
|
-
const
|
|
107
|
-
const
|
|
114
|
+
const { el } = this;
|
|
115
|
+
const leadingFooter = getSlotted(el, SLOTS.footerLeading);
|
|
116
|
+
const trailingFooter = getSlotted(el, SLOTS.footerTrailing);
|
|
108
117
|
const hasFooter = leadingFooter || trailingFooter;
|
|
109
118
|
return hasFooter ? (h("footer", { class: CSS.footer },
|
|
110
119
|
h("slot", { name: SLOTS.footerLeading }),
|
|
@@ -565,7 +565,6 @@ export class CalciteCombobox {
|
|
|
565
565
|
const item = document.createElement(ComboboxItem);
|
|
566
566
|
item.value = value;
|
|
567
567
|
item.textLabel = value;
|
|
568
|
-
item.guid = `${chipUidPrefix}${guid()}`;
|
|
569
568
|
item.selected = true;
|
|
570
569
|
this.el.appendChild(item);
|
|
571
570
|
this.resetText();
|
|
@@ -615,7 +614,9 @@ export class CalciteCombobox {
|
|
|
615
614
|
focusChip() {
|
|
616
615
|
var _a;
|
|
617
616
|
const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;
|
|
618
|
-
const chip =
|
|
617
|
+
const chip = guid
|
|
618
|
+
? this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`)
|
|
619
|
+
: null;
|
|
619
620
|
chip === null || chip === void 0 ? void 0 : chip.setFocus();
|
|
620
621
|
}
|
|
621
622
|
shiftActiveItemIndex(delta) {
|
|
@@ -670,7 +671,7 @@ export class CalciteCombobox {
|
|
|
670
671
|
const ancestors = [...getItemAncestors(item)].reverse();
|
|
671
672
|
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
|
672
673
|
const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
|
|
673
|
-
return (h("calcite-chip", { class: chipClasses, dismissLabel: intlRemoveTag, dismissible: true, icon: item.icon, id: `${chipUidPrefix}${item.guid}
|
|
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));
|
|
674
675
|
});
|
|
675
676
|
}
|
|
676
677
|
renderInput() {
|
|
@@ -695,7 +696,7 @@ export class CalciteCombobox {
|
|
|
695
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" })));
|
|
696
697
|
}
|
|
697
698
|
renderListBoxOptions() {
|
|
698
|
-
return this.visibleItems.map((item) => (h("li", { "aria-selected": (!!item.selected).toString(), id: `${itemUidPrefix}${item.guid}
|
|
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)));
|
|
699
700
|
}
|
|
700
701
|
renderPopperContainer() {
|
|
701
702
|
const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
|
|
@@ -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.
|
|
@@ -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) => {
|
|
@@ -241,18 +256,44 @@ export class CalciteInput {
|
|
|
241
256
|
this.setChildNumberElRef = (el) => {
|
|
242
257
|
this.childNumberEl = el;
|
|
243
258
|
};
|
|
244
|
-
this.
|
|
245
|
-
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;
|
|
246
275
|
};
|
|
247
|
-
this.setValue = (
|
|
248
|
-
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;
|
|
249
292
|
if (this.type === "number") {
|
|
250
|
-
|
|
251
|
-
this.value = sanitizedValue;
|
|
252
|
-
this.setLocalizedValue(sanitizedValue);
|
|
293
|
+
this.localizedValue = newLocalizedValue;
|
|
253
294
|
}
|
|
254
|
-
|
|
255
|
-
this.
|
|
295
|
+
if (origin === "external") {
|
|
296
|
+
this.setInputValue(this.type === "number" ? newLocalizedValue : newValue);
|
|
256
297
|
}
|
|
257
298
|
if (nativeEvent) {
|
|
258
299
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
@@ -261,8 +302,8 @@ export class CalciteInput {
|
|
|
261
302
|
value: this.value
|
|
262
303
|
});
|
|
263
304
|
if (calciteInputInputEvent.defaultPrevented) {
|
|
264
|
-
this.value = previousValue;
|
|
265
|
-
this.
|
|
305
|
+
this.value = this.previousValue;
|
|
306
|
+
this.localizedValue = previousLocalizedValue;
|
|
266
307
|
}
|
|
267
308
|
else if (committing) {
|
|
268
309
|
this.calciteInputChange.emit();
|
|
@@ -287,17 +328,20 @@ export class CalciteInput {
|
|
|
287
328
|
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
288
329
|
}
|
|
289
330
|
valueWatcher(newValue) {
|
|
290
|
-
if (
|
|
291
|
-
this.
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
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);
|
|
300
343
|
}
|
|
344
|
+
this.internalValueChange = false;
|
|
301
345
|
}
|
|
302
346
|
updateRequestedIcon() {
|
|
303
347
|
this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
@@ -320,13 +364,13 @@ export class CalciteInput {
|
|
|
320
364
|
if (this.inlineEditableEl) {
|
|
321
365
|
this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
|
|
322
366
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
this.value
|
|
329
|
-
}
|
|
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
|
+
});
|
|
330
374
|
}
|
|
331
375
|
connectLabel(this);
|
|
332
376
|
connectForm(this);
|
|
@@ -348,7 +392,9 @@ export class CalciteInput {
|
|
|
348
392
|
}
|
|
349
393
|
componentShouldUpdate(newValue, oldValue, property) {
|
|
350
394
|
if (this.type === "number" && property === "value" && newValue && !isValidNumber(newValue)) {
|
|
351
|
-
this.
|
|
395
|
+
this.setValue({
|
|
396
|
+
value: oldValue
|
|
397
|
+
});
|
|
352
398
|
return false;
|
|
353
399
|
}
|
|
354
400
|
return true;
|
|
@@ -383,10 +429,16 @@ export class CalciteInput {
|
|
|
383
429
|
: nudgedValue;
|
|
384
430
|
const inputValPlaces = decimalPlaces(inputVal);
|
|
385
431
|
const inputStepPlaces = decimalPlaces(inputStep);
|
|
386
|
-
this.setValue(
|
|
432
|
+
this.setValue({
|
|
433
|
+
committing: true,
|
|
434
|
+
nativeEvent,
|
|
435
|
+
value: finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces))
|
|
436
|
+
});
|
|
387
437
|
}
|
|
388
438
|
onFormReset() {
|
|
389
|
-
this.setValue(
|
|
439
|
+
this.setValue({
|
|
440
|
+
value: this.defaultValue
|
|
441
|
+
});
|
|
390
442
|
}
|
|
391
443
|
syncHiddenFormInput(input) {
|
|
392
444
|
var _a, _b, _c, _d;
|
|
@@ -417,6 +469,11 @@ export class CalciteInput {
|
|
|
417
469
|
? slottedActionEl.setAttribute("disabled", "")
|
|
418
470
|
: slottedActionEl.removeAttribute("disabled");
|
|
419
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
|
+
}
|
|
420
477
|
// --------------------------------------------------------------------------
|
|
421
478
|
//
|
|
422
479
|
// Render Methods
|
|
@@ -61,7 +61,8 @@ export class CalciteTree {
|
|
|
61
61
|
onFocusIn(event) {
|
|
62
62
|
const focusedFromRootOrOutsideTree = event.relatedTarget === this.el || !this.el.contains(event.relatedTarget);
|
|
63
63
|
if (focusedFromRootOrOutsideTree) {
|
|
64
|
-
|
|
64
|
+
// gives user the ability to tab into external elements (modifying tabindex property will not work in firefox)
|
|
65
|
+
this.el.removeAttribute("tabindex");
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
onFocusOut(event) {
|
|
@@ -109,9 +109,9 @@ export async function focusElement(el) {
|
|
|
109
109
|
}
|
|
110
110
|
return isCalciteFocusable(el) ? el.setFocus() : el.focus();
|
|
111
111
|
}
|
|
112
|
-
const defaultSlotSelector = "
|
|
112
|
+
const defaultSlotSelector = ":not([slot])";
|
|
113
113
|
export function getSlotted(element, slotName, options) {
|
|
114
|
-
if (!Array.isArray(slotName) && typeof slotName !== "string") {
|
|
114
|
+
if (slotName && !Array.isArray(slotName) && typeof slotName !== "string") {
|
|
115
115
|
options = slotName;
|
|
116
116
|
slotName = null;
|
|
117
117
|
}
|
|
@@ -125,12 +125,15 @@ export function getSlotted(element, slotName, options) {
|
|
|
125
125
|
}
|
|
126
126
|
return querySingle(element, slotSelector, options);
|
|
127
127
|
}
|
|
128
|
+
function getDirectChildren(el, selector) {
|
|
129
|
+
return el ? Array.from(el.children || []).filter((child) => child === null || child === void 0 ? void 0 : child.matches(selector)) : [];
|
|
130
|
+
}
|
|
128
131
|
function queryMultiple(element, slotSelector, options) {
|
|
129
|
-
let matches =
|
|
132
|
+
let matches = slotSelector === defaultSlotSelector
|
|
133
|
+
? getDirectChildren(element, defaultSlotSelector)
|
|
134
|
+
: Array.from(element.querySelectorAll(slotSelector));
|
|
130
135
|
matches = options && options.direct === false ? matches : matches.filter((el) => el.parentElement === element);
|
|
131
|
-
|
|
132
|
-
matches = matches.filter((match) => match === null || match === void 0 ? void 0 : match.assignedSlot);
|
|
133
|
-
}
|
|
136
|
+
matches = (options === null || options === void 0 ? void 0 : options.matches) ? matches.filter((el) => el === null || el === void 0 ? void 0 : el.matches(options.matches)) : matches;
|
|
134
137
|
const selector = options === null || options === void 0 ? void 0 : options.selector;
|
|
135
138
|
return selector
|
|
136
139
|
? matches
|
|
@@ -140,11 +143,11 @@ function queryMultiple(element, slotSelector, options) {
|
|
|
140
143
|
: matches;
|
|
141
144
|
}
|
|
142
145
|
function querySingle(element, slotSelector, options) {
|
|
143
|
-
let match =
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
146
|
+
let match = slotSelector === defaultSlotSelector
|
|
147
|
+
? getDirectChildren(element, defaultSlotSelector)[0] || null
|
|
148
|
+
: element.querySelector(slotSelector);
|
|
147
149
|
match = options && options.direct === false ? match : (match === null || match === void 0 ? void 0 : match.parentElement) === element ? match : null;
|
|
150
|
+
match = (options === null || options === void 0 ? void 0 : options.matches) ? ((match === null || match === void 0 ? void 0 : match.matches(options.matches)) ? match : null) : match;
|
|
148
151
|
const selector = options === null || options === void 0 ? void 0 : options.selector;
|
|
149
152
|
return selector ? match === null || match === void 0 ? void 0 : match.querySelector(selector) : match;
|
|
150
153
|
}
|