@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
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLElement, createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
|
+
import { b as getSlotted } from './dom.js';
|
|
7
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
|
|
6
8
|
import { d as defineCustomElement$4 } from './calcite-checkbox2.js';
|
|
7
9
|
import { d as defineCustomElement$3 } from './calcite-label2.js';
|
|
8
10
|
import { d as defineCustomElement$2 } from './calcite-loader2.js';
|
|
@@ -88,6 +90,12 @@ let CalciteCard$1 = class extends HTMLElement {
|
|
|
88
90
|
// Lifecycle
|
|
89
91
|
//
|
|
90
92
|
// --------------------------------------------------------------------------
|
|
93
|
+
connectedCallback() {
|
|
94
|
+
connectConditionalSlotComponent(this);
|
|
95
|
+
}
|
|
96
|
+
disonnectedCallback() {
|
|
97
|
+
disconnectConditionalSlotComponent(this);
|
|
98
|
+
}
|
|
91
99
|
render() {
|
|
92
100
|
return (h("div", { class: "calcite-card-container" }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, h("section", { "aria-busy": this.loading.toString(), class: { [CSS.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderThumbnail(), this.renderHeader(), h("div", { class: "card-content" }, h("slot", null)), this.renderFooter())));
|
|
93
101
|
}
|
|
@@ -96,22 +104,23 @@ let CalciteCard$1 = class extends HTMLElement {
|
|
|
96
104
|
this.calciteCardSelect.emit();
|
|
97
105
|
}
|
|
98
106
|
renderThumbnail() {
|
|
99
|
-
|
|
100
|
-
return hasThumbnail ? (h("div", { class: CSS.thumbnailWrapper }, h("slot", { name: SLOTS.thumbnail }))) : null;
|
|
107
|
+
return getSlotted(this.el, SLOTS.thumbnail) ? (h("div", { class: CSS.thumbnailWrapper, key: "thumbnail-wrapper" }, h("slot", { name: SLOTS.thumbnail }))) : null;
|
|
101
108
|
}
|
|
102
109
|
renderCheckbox() {
|
|
103
110
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
104
111
|
return (h("calcite-label", { class: CSS.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, h("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
105
112
|
}
|
|
106
113
|
renderHeader() {
|
|
107
|
-
const
|
|
108
|
-
const
|
|
114
|
+
const { el } = this;
|
|
115
|
+
const title = getSlotted(el, SLOTS.title);
|
|
116
|
+
const subtitle = getSlotted(el, SLOTS.subtitle);
|
|
109
117
|
const hasHeader = title || subtitle;
|
|
110
118
|
return hasHeader ? (h("header", { class: CSS.header }, h("slot", { name: SLOTS.title }), h("slot", { name: SLOTS.subtitle }))) : null;
|
|
111
119
|
}
|
|
112
120
|
renderFooter() {
|
|
113
|
-
const
|
|
114
|
-
const
|
|
121
|
+
const { el } = this;
|
|
122
|
+
const leadingFooter = getSlotted(el, SLOTS.footerLeading);
|
|
123
|
+
const trailingFooter = getSlotted(el, SLOTS.footerTrailing);
|
|
115
124
|
const hasFooter = leadingFooter || trailingFooter;
|
|
116
125
|
return hasFooter ? (h("footer", { class: CSS.footer }, h("slot", { name: SLOTS.footerLeading }), h("slot", { name: SLOTS.footerTrailing }))) : null;
|
|
117
126
|
}
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
|
-
import { g as getElementProp } from './dom.js';
|
|
6
|
+
import { g as getElementProp, b as getSlotted } from './dom.js';
|
|
7
7
|
import { g as guid } from './guid.js';
|
|
8
8
|
import { e as getAncestors, f as getDepth } from './utils2.js';
|
|
9
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
|
|
9
10
|
import { d as defineCustomElement$2 } from './calcite-icon2.js';
|
|
10
11
|
|
|
11
12
|
const CSS = {
|
|
@@ -67,9 +68,10 @@ let CalciteComboboxItem$1 = class extends HTMLElement {
|
|
|
67
68
|
connectedCallback() {
|
|
68
69
|
this.ancestors = getAncestors(this.el);
|
|
69
70
|
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
71
|
+
connectConditionalSlotComponent(this);
|
|
70
72
|
}
|
|
71
|
-
|
|
72
|
-
this
|
|
73
|
+
disconnectedCallback() {
|
|
74
|
+
disconnectConditionalSlotComponent(this);
|
|
73
75
|
}
|
|
74
76
|
// --------------------------------------------------------------------------
|
|
75
77
|
//
|
|
@@ -109,10 +111,10 @@ let CalciteComboboxItem$1 = class extends HTMLElement {
|
|
|
109
111
|
}, icon: icon || iconPath, scale: "s" }));
|
|
110
112
|
}
|
|
111
113
|
renderChildren() {
|
|
112
|
-
if (
|
|
113
|
-
return null;
|
|
114
|
+
if (getSlotted(this.el)) {
|
|
115
|
+
return (h("ul", { key: "default-slot-container" }, h("slot", null)));
|
|
114
116
|
}
|
|
115
|
-
return
|
|
117
|
+
return null;
|
|
116
118
|
}
|
|
117
119
|
render() {
|
|
118
120
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
@@ -714,7 +714,6 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
714
714
|
const item = document.createElement(ComboboxItem);
|
|
715
715
|
item.value = value;
|
|
716
716
|
item.textLabel = value;
|
|
717
|
-
item.guid = `${chipUidPrefix}${guid()}`;
|
|
718
717
|
item.selected = true;
|
|
719
718
|
this.el.appendChild(item);
|
|
720
719
|
this.resetText();
|
|
@@ -764,7 +763,9 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
764
763
|
focusChip() {
|
|
765
764
|
var _a;
|
|
766
765
|
const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;
|
|
767
|
-
const chip =
|
|
766
|
+
const chip = guid
|
|
767
|
+
? this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`)
|
|
768
|
+
: null;
|
|
768
769
|
chip === null || chip === void 0 ? void 0 : chip.setFocus();
|
|
769
770
|
}
|
|
770
771
|
shiftActiveItemIndex(delta) {
|
|
@@ -819,7 +820,7 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
819
820
|
const ancestors = [...getItemAncestors(item)].reverse();
|
|
820
821
|
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
|
821
822
|
const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
|
|
822
|
-
return (h("calcite-chip", { class: chipClasses, dismissLabel: intlRemoveTag, dismissible: true, icon: item.icon, id: `${chipUidPrefix}${item.guid}
|
|
823
|
+
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));
|
|
823
824
|
});
|
|
824
825
|
}
|
|
825
826
|
renderInput() {
|
|
@@ -842,7 +843,7 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
842
843
|
}, 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" })));
|
|
843
844
|
}
|
|
844
845
|
renderListBoxOptions() {
|
|
845
|
-
return this.visibleItems.map((item) => (h("li", { "aria-selected": (!!item.selected).toString(), id: `${itemUidPrefix}${item.guid}
|
|
846
|
+
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)));
|
|
846
847
|
}
|
|
847
848
|
renderPopperContainer() {
|
|
848
849
|
const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
|
|
@@ -19,10 +19,11 @@ function getSupportedLocale(lang = "") {
|
|
|
19
19
|
if (locales.indexOf(lang) > -1) {
|
|
20
20
|
return lang;
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
lang = lang.toLowerCase();
|
|
23
|
+
if (lang.includes("-")) {
|
|
24
|
+
lang = lang.replace(/(\w+)-(\w+)/, (_match, language, region) => `${language}-${region.toUpperCase()}`);
|
|
25
25
|
}
|
|
26
|
+
return locales.includes(lang) ? lang : "en";
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
29
|
* CLDR cache.
|
|
@@ -108,6 +108,8 @@ let CalciteInput = class extends HTMLElement {
|
|
|
108
108
|
this.value = "";
|
|
109
109
|
/** keep track of the rendered child type */
|
|
110
110
|
this.childElType = "input";
|
|
111
|
+
/** whether the value of the input was changed as a result of user typing or not */
|
|
112
|
+
this.internalValueChange = false;
|
|
111
113
|
//--------------------------------------------------------------------------
|
|
112
114
|
//
|
|
113
115
|
// Private Methods
|
|
@@ -127,11 +129,15 @@ let CalciteInput = class extends HTMLElement {
|
|
|
127
129
|
}
|
|
128
130
|
};
|
|
129
131
|
this.clearInputValue = (nativeEvent) => {
|
|
130
|
-
this.setValue(
|
|
132
|
+
this.setValue({
|
|
133
|
+
committing: true,
|
|
134
|
+
nativeEvent,
|
|
135
|
+
value: ""
|
|
136
|
+
});
|
|
131
137
|
};
|
|
132
138
|
this.inputBlurHandler = () => {
|
|
133
139
|
if (this.type === "number") {
|
|
134
|
-
this.
|
|
140
|
+
this.setValue({ value: this.value });
|
|
135
141
|
}
|
|
136
142
|
this.calciteInputBlur.emit({
|
|
137
143
|
element: this.childEl,
|
|
@@ -155,7 +161,10 @@ let CalciteInput = class extends HTMLElement {
|
|
|
155
161
|
if (this.disabled || this.readOnly) {
|
|
156
162
|
return;
|
|
157
163
|
}
|
|
158
|
-
this.setValue(
|
|
164
|
+
this.setValue({
|
|
165
|
+
nativeEvent,
|
|
166
|
+
value: nativeEvent.target.value
|
|
167
|
+
});
|
|
159
168
|
};
|
|
160
169
|
this.inputKeyDownHandler = (event) => {
|
|
161
170
|
if (this.disabled || this.readOnly) {
|
|
@@ -175,11 +184,17 @@ let CalciteInput = class extends HTMLElement {
|
|
|
175
184
|
if (!isValidNumber(delocalizedValue)) {
|
|
176
185
|
nativeEvent.preventDefault();
|
|
177
186
|
}
|
|
178
|
-
this.setValue(
|
|
187
|
+
this.setValue({
|
|
188
|
+
nativeEvent,
|
|
189
|
+
value: parseNumberString(delocalizedValue)
|
|
190
|
+
});
|
|
179
191
|
this.childNumberEl.value = this.localizedValue;
|
|
180
192
|
}
|
|
181
193
|
else {
|
|
182
|
-
this.setValue(
|
|
194
|
+
this.setValue({
|
|
195
|
+
nativeEvent,
|
|
196
|
+
value: delocalizeNumberString(value, this.locale)
|
|
197
|
+
});
|
|
183
198
|
}
|
|
184
199
|
};
|
|
185
200
|
this.inputNumberKeyDownHandler = (event) => {
|
|
@@ -275,18 +290,44 @@ let CalciteInput = class extends HTMLElement {
|
|
|
275
290
|
this.setChildNumberElRef = (el) => {
|
|
276
291
|
this.childNumberEl = el;
|
|
277
292
|
};
|
|
278
|
-
this.
|
|
279
|
-
this.
|
|
293
|
+
this.setInputValue = (newInputValue) => {
|
|
294
|
+
if (this.type === "text" && !this.childEl) {
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
if (this.type === "number" && !this.childNumberEl) {
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
this[`child${this.type === "number" ? "Number" : ""}El`].value = newInputValue;
|
|
301
|
+
};
|
|
302
|
+
this.setPreviousValue = (newPreviousValue) => {
|
|
303
|
+
this.previousValue =
|
|
304
|
+
this.type === "number"
|
|
305
|
+
? isValidNumber(newPreviousValue)
|
|
306
|
+
? newPreviousValue
|
|
307
|
+
: ""
|
|
308
|
+
: newPreviousValue;
|
|
280
309
|
};
|
|
281
|
-
this.setValue = (
|
|
282
|
-
const
|
|
310
|
+
this.setValue = ({ committing = false, nativeEvent, origin = "internal", value }) => {
|
|
311
|
+
const previousLocalizedValue = this.type === "number"
|
|
312
|
+
? localizeNumberString(this.previousValue, this.locale, this.groupSeparator)
|
|
313
|
+
: "";
|
|
314
|
+
const sanitizedValue = this.type === "number" ? sanitizeNumberString(value) : value;
|
|
315
|
+
const newValue = this.type === "number" && value && !sanitizedValue
|
|
316
|
+
? isValidNumber(this.previousValue)
|
|
317
|
+
? this.previousValue
|
|
318
|
+
: ""
|
|
319
|
+
: sanitizedValue;
|
|
320
|
+
const newLocalizedValue = this.type === "number"
|
|
321
|
+
? localizeNumberString(newValue, this.locale, this.groupSeparator)
|
|
322
|
+
: "";
|
|
323
|
+
this.internalValueChange = origin === "internal";
|
|
324
|
+
this.setPreviousValue(this.value);
|
|
325
|
+
this.value = newValue;
|
|
283
326
|
if (this.type === "number") {
|
|
284
|
-
|
|
285
|
-
this.value = sanitizedValue;
|
|
286
|
-
this.setLocalizedValue(sanitizedValue);
|
|
327
|
+
this.localizedValue = newLocalizedValue;
|
|
287
328
|
}
|
|
288
|
-
|
|
289
|
-
this.
|
|
329
|
+
if (origin === "external") {
|
|
330
|
+
this.setInputValue(this.type === "number" ? newLocalizedValue : newValue);
|
|
290
331
|
}
|
|
291
332
|
if (nativeEvent) {
|
|
292
333
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
@@ -295,8 +336,8 @@ let CalciteInput = class extends HTMLElement {
|
|
|
295
336
|
value: this.value
|
|
296
337
|
});
|
|
297
338
|
if (calciteInputInputEvent.defaultPrevented) {
|
|
298
|
-
this.value = previousValue;
|
|
299
|
-
this.
|
|
339
|
+
this.value = this.previousValue;
|
|
340
|
+
this.localizedValue = previousLocalizedValue;
|
|
300
341
|
}
|
|
301
342
|
else if (committing) {
|
|
302
343
|
this.calciteInputChange.emit();
|
|
@@ -321,17 +362,20 @@ let CalciteInput = class extends HTMLElement {
|
|
|
321
362
|
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
322
363
|
}
|
|
323
364
|
valueWatcher(newValue) {
|
|
324
|
-
if (
|
|
325
|
-
this.
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
365
|
+
if (!this.internalValueChange) {
|
|
366
|
+
this.setValue({
|
|
367
|
+
origin: "external",
|
|
368
|
+
value: newValue == null
|
|
369
|
+
? ""
|
|
370
|
+
: this.type === "number"
|
|
371
|
+
? isValidNumber(newValue)
|
|
372
|
+
? newValue
|
|
373
|
+
: this.previousValue || ""
|
|
374
|
+
: newValue
|
|
375
|
+
});
|
|
376
|
+
this.warnAboutInvalidNumberValue(newValue);
|
|
334
377
|
}
|
|
378
|
+
this.internalValueChange = false;
|
|
335
379
|
}
|
|
336
380
|
updateRequestedIcon() {
|
|
337
381
|
this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
@@ -354,13 +398,13 @@ let CalciteInput = class extends HTMLElement {
|
|
|
354
398
|
if (this.inlineEditableEl) {
|
|
355
399
|
this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
|
|
356
400
|
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
this.value
|
|
363
|
-
}
|
|
401
|
+
this.setPreviousValue(this.value);
|
|
402
|
+
if (this.type === "number") {
|
|
403
|
+
this.warnAboutInvalidNumberValue(this.value);
|
|
404
|
+
this.setValue({
|
|
405
|
+
origin: "loading",
|
|
406
|
+
value: isValidNumber(this.value) ? this.value : ""
|
|
407
|
+
});
|
|
364
408
|
}
|
|
365
409
|
connectLabel(this);
|
|
366
410
|
connectForm(this);
|
|
@@ -382,7 +426,9 @@ let CalciteInput = class extends HTMLElement {
|
|
|
382
426
|
}
|
|
383
427
|
componentShouldUpdate(newValue, oldValue, property) {
|
|
384
428
|
if (this.type === "number" && property === "value" && newValue && !isValidNumber(newValue)) {
|
|
385
|
-
this.
|
|
429
|
+
this.setValue({
|
|
430
|
+
value: oldValue
|
|
431
|
+
});
|
|
386
432
|
return false;
|
|
387
433
|
}
|
|
388
434
|
return true;
|
|
@@ -417,10 +463,16 @@ let CalciteInput = class extends HTMLElement {
|
|
|
417
463
|
: nudgedValue;
|
|
418
464
|
const inputValPlaces = decimalPlaces(inputVal);
|
|
419
465
|
const inputStepPlaces = decimalPlaces(inputStep);
|
|
420
|
-
this.setValue(
|
|
466
|
+
this.setValue({
|
|
467
|
+
committing: true,
|
|
468
|
+
nativeEvent,
|
|
469
|
+
value: finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces))
|
|
470
|
+
});
|
|
421
471
|
}
|
|
422
472
|
onFormReset() {
|
|
423
|
-
this.setValue(
|
|
473
|
+
this.setValue({
|
|
474
|
+
value: this.defaultValue
|
|
475
|
+
});
|
|
424
476
|
}
|
|
425
477
|
syncHiddenFormInput(input) {
|
|
426
478
|
var _a, _b, _c, _d;
|
|
@@ -451,6 +503,11 @@ let CalciteInput = class extends HTMLElement {
|
|
|
451
503
|
? slottedActionEl.setAttribute("disabled", "")
|
|
452
504
|
: slottedActionEl.removeAttribute("disabled");
|
|
453
505
|
}
|
|
506
|
+
warnAboutInvalidNumberValue(value) {
|
|
507
|
+
if (this.type === "number" && value && !isValidNumber(value)) {
|
|
508
|
+
console.warn(`The specified value "${value}" cannot be parsed, or is out of range.`);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
454
511
|
// --------------------------------------------------------------------------
|
|
455
512
|
//
|
|
456
513
|
// Render Methods
|
|
@@ -64,7 +64,8 @@ let CalciteTree$1 = class extends HTMLElement {
|
|
|
64
64
|
onFocusIn(event) {
|
|
65
65
|
const focusedFromRootOrOutsideTree = event.relatedTarget === this.el || !this.el.contains(event.relatedTarget);
|
|
66
66
|
if (focusedFromRootOrOutsideTree) {
|
|
67
|
-
|
|
67
|
+
// gives user the ability to tab into external elements (modifying tabindex property will not work in firefox)
|
|
68
|
+
this.el.removeAttribute("tabindex");
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
onFocusOut(event) {
|
package/dist/components/dom.js
CHANGED
|
@@ -122,9 +122,9 @@ async function focusElement(el) {
|
|
|
122
122
|
}
|
|
123
123
|
return isCalciteFocusable(el) ? el.setFocus() : el.focus();
|
|
124
124
|
}
|
|
125
|
-
const defaultSlotSelector = "
|
|
125
|
+
const defaultSlotSelector = ":not([slot])";
|
|
126
126
|
function getSlotted(element, slotName, options) {
|
|
127
|
-
if (!Array.isArray(slotName) && typeof slotName !== "string") {
|
|
127
|
+
if (slotName && !Array.isArray(slotName) && typeof slotName !== "string") {
|
|
128
128
|
options = slotName;
|
|
129
129
|
slotName = null;
|
|
130
130
|
}
|
|
@@ -138,12 +138,15 @@ function getSlotted(element, slotName, options) {
|
|
|
138
138
|
}
|
|
139
139
|
return querySingle(element, slotSelector, options);
|
|
140
140
|
}
|
|
141
|
+
function getDirectChildren(el, selector) {
|
|
142
|
+
return el ? Array.from(el.children || []).filter((child) => child === null || child === void 0 ? void 0 : child.matches(selector)) : [];
|
|
143
|
+
}
|
|
141
144
|
function queryMultiple(element, slotSelector, options) {
|
|
142
|
-
let matches =
|
|
145
|
+
let matches = slotSelector === defaultSlotSelector
|
|
146
|
+
? getDirectChildren(element, defaultSlotSelector)
|
|
147
|
+
: Array.from(element.querySelectorAll(slotSelector));
|
|
143
148
|
matches = options && options.direct === false ? matches : matches.filter((el) => el.parentElement === element);
|
|
144
|
-
|
|
145
|
-
matches = matches.filter((match) => match === null || match === void 0 ? void 0 : match.assignedSlot);
|
|
146
|
-
}
|
|
149
|
+
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;
|
|
147
150
|
const selector = options === null || options === void 0 ? void 0 : options.selector;
|
|
148
151
|
return selector
|
|
149
152
|
? matches
|
|
@@ -153,11 +156,11 @@ function queryMultiple(element, slotSelector, options) {
|
|
|
153
156
|
: matches;
|
|
154
157
|
}
|
|
155
158
|
function querySingle(element, slotSelector, options) {
|
|
156
|
-
let match =
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
159
|
+
let match = slotSelector === defaultSlotSelector
|
|
160
|
+
? getDirectChildren(element, defaultSlotSelector)[0] || null
|
|
161
|
+
: element.querySelector(slotSelector);
|
|
160
162
|
match = options && options.direct === false ? match : (match === null || match === void 0 ? void 0 : match.parentElement) === element ? match : null;
|
|
163
|
+
match = (options === null || options === void 0 ? void 0 : options.matches) ? ((match === null || match === void 0 ? void 0 : match.matches(options.matches)) ? match : null) : match;
|
|
161
164
|
const selector = options === null || options === void 0 ? void 0 : options.selector;
|
|
162
165
|
return selector ? match === null || match === void 0 ? void 0 : match.querySelector(selector) : match;
|
|
163
166
|
}
|