@esri/calcite-components 1.0.0-next.370 → 1.0.0-next.374
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-05ad8606.system.entry.js +5 -0
- package/dist/calcite/{p-8a237191.system.entry.js → p-06dbe76a.system.entry.js} +1 -1
- package/dist/calcite/{p-d908834f.system.entry.js → p-0a85cd8c.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-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-1894562d.system.entry.js → p-2f0d280a.system.entry.js} +1 -1
- package/dist/calcite/{p-24b54c99.system.entry.js → p-3dd50bac.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-57bf81c4.system.entry.js → p-4d81b84b.system.entry.js} +2 -2
- package/dist/calcite/p-4e258f5c.entry.js +5 -0
- 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-fe94050d.entry.js → p-63f8783a.entry.js} +1 -1
- package/dist/calcite/{p-4c6fe413.system.entry.js → p-6afd69dc.system.entry.js} +1 -1
- package/dist/calcite/{p-d1794edd.entry.js → p-6e37af80.entry.js} +1 -1
- package/dist/calcite/p-6eb1302b.entry.js +5 -0
- 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-7409e609.system.js +5 -0
- package/dist/calcite/p-7415264e.system.entry.js +5 -0
- package/dist/calcite/p-754809de.entry.js +5 -0
- package/dist/calcite/p-76c53ab5.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-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-5c256f31.system.entry.js → p-80eb08b3.system.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-8a413063.js +5 -0
- package/dist/calcite/{p-32f6f7df.entry.js → p-8c126095.entry.js} +1 -1
- 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-0389f96b.system.entry.js → p-92711575.system.entry.js} +2 -2
- package/dist/calcite/{p-e606e9ae.system.entry.js → p-92d9b81d.system.entry.js} +1 -1
- package/dist/calcite/p-99b729f6.entry.js +5 -0
- package/dist/calcite/p-99d32fc3.system.js +1 -1
- package/dist/calcite/p-9a7c4812.js +5 -0
- package/dist/calcite/{p-45bfe5bf.system.entry.js → p-9ca6c750.system.entry.js} +1 -1
- package/dist/calcite/{p-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-a49d1a11.system.entry.js +5 -0
- package/dist/calcite/p-a5660ba5.entry.js +5 -0
- package/dist/calcite/{p-28dea60a.system.js → p-a99c8ebf.system.js} +1 -1
- package/dist/calcite/p-aceeb62f.entry.js +5 -0
- 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-b78f6de5.system.entry.js +5 -0
- package/dist/calcite/p-b7e90141.system.entry.js +5 -0
- package/dist/calcite/{p-5aaa0088.system.entry.js → p-b86f0930.system.entry.js} +1 -1
- package/dist/calcite/p-bab0c984.entry.js +5 -0
- 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-6de78659.system.entry.js → p-bd6cbbbd.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-c39e7451.entry.js +5 -0
- package/dist/calcite/{p-de09fc5c.system.entry.js → p-c5463268.system.entry.js} +1 -1
- package/dist/calcite/{p-10f1a096.system.entry.js → p-c93dbb93.system.entry.js} +1 -1
- package/dist/calcite/{p-3e9e4992.entry.js → p-d14265f3.entry.js} +1 -1
- package/dist/calcite/p-d2bcb3ae.entry.js +5 -0
- package/dist/calcite/p-d6f6b6c1.entry.js +5 -0
- package/dist/calcite/{p-7db0947c.entry.js → p-da470de7.entry.js} +1 -1
- package/dist/calcite/p-dd8b6d4f.system.entry.js +5 -0
- package/dist/calcite/p-e05aa070.entry.js +5 -0
- package/dist/calcite/{p-7f32a681.system.entry.js → p-e1491358.system.entry.js} +1 -1
- package/dist/calcite/{p-781ebed0.system.js → p-e2047621.system.js} +1 -1
- package/dist/calcite/{p-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-e66c335c.entry.js +5 -0
- package/dist/calcite/{p-bb9fb183.system.entry.js → p-e83a5fe4.system.entry.js} +1 -1
- package/dist/calcite/{p-fcd62e97.js → p-e8e0f3b7.js} +1 -1
- package/dist/calcite/{p-3a20f93d.system.js → p-ec9bab33.system.js} +1 -1
- package/dist/calcite/{p-41894582.js → p-eeb91710.js} +1 -1
- package/dist/calcite/{p-283ff9e8.entry.js → p-f1dc4798.entry.js} +1 -1
- package/dist/calcite/p-f3102bbb.system.entry.js +5 -0
- package/dist/calcite/p-f3a85d19.system.entry.js +5 -0
- 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-492d644c.system.entry.js → p-fd3c4738.system.entry.js} +1 -1
- package/dist/calcite/p-fe6e3ff9.entry.js +5 -0
- package/dist/calcite/p-fe89be3d.entry.js +5 -0
- 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 +7 -4
- 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 +2 -5
- package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +5 -7
- 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 +3 -3
- package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
- package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +10 -6
- package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +40 -15
- 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 +14 -10
- 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 +2 -2
- package/dist/cjs/calcite-notice.cjs.entry.js +5 -7
- package/dist/cjs/calcite-option_3.cjs.entry.js +3 -3
- package/dist/cjs/calcite-panel.cjs.entry.js +18 -2
- 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-group.cjs.entry.js +13 -0
- package/dist/cjs/calcite-radio-button.cjs.entry.js +3 -7
- 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 +8 -5
- 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 +6 -4
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite.cjs.js +1 -1
- package/dist/cjs/{dom-0de9fb18.js → dom-f3df220d.js} +13 -10
- package/dist/cjs/{form-4b7c317e.js → form-237cf392.js} +1 -1
- package/dist/cjs/{label-1bca211b.js → label-6b18ca08.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{popper-09105f6f.js → popper-13a2bb46.js} +1 -1
- package/dist/cjs/{resources-405cc2c4.js → resources-95073e41.js} +1 -1
- package/dist/cjs/{resources-9f0994fb.js → resources-f70fb01b.js} +7 -3
- package/dist/collection/components/calcite-accordion/calcite-accordion.css +5 -5
- package/dist/collection/components/calcite-accordion/calcite-accordion.js +5 -1
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.css +2 -16
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +1 -4
- package/dist/collection/components/calcite-alert/calcite-alert.js +8 -7
- 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 +7 -3
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +2 -2
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +39 -14
- package/dist/collection/components/calcite-input/calcite-input.js +12 -8
- package/dist/collection/components/calcite-modal/calcite-modal.js +1 -1
- package/dist/collection/components/calcite-notice/calcite-notice.js +4 -6
- package/dist/collection/components/calcite-panel/calcite-panel.js +41 -5
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +0 -4
- package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.js +13 -0
- package/dist/collection/components/calcite-shell/calcite-shell.js +9 -7
- package/dist/collection/components/calcite-slider/calcite-slider.js +7 -3
- package/dist/collection/components/calcite-tree/calcite-tree.js +2 -1
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +4 -3
- package/dist/collection/utils/dom.js +13 -10
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +5 -2
- package/dist/components/calcite-action-menu2.js +1 -4
- package/dist/components/calcite-alert.js +5 -7
- 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 +7 -3
- package/dist/components/calcite-dropdown2.js +2 -2
- package/dist/components/calcite-inline-editable.js +39 -14
- package/dist/components/calcite-input2.js +12 -8
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-notice.js +4 -6
- package/dist/components/calcite-panel.js +19 -2
- package/dist/components/calcite-radio-button-group.js +13 -0
- package/dist/components/calcite-radio-button.js +0 -4
- package/dist/components/calcite-shell.js +7 -4
- package/dist/components/calcite-slider.js +7 -3
- package/dist/components/calcite-tree-item.js +3 -2
- package/dist/components/calcite-tree.js +2 -1
- package/dist/components/dom.js +13 -10
- package/dist/custom-elements/index.js +156 -84
- package/dist/esm/{CalciteExpandToggle-48b6e955.js → CalciteExpandToggle-cff030be.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +7 -4
- 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 +2 -5
- package/dist/esm/calcite-action-pad.entry.js +2 -2
- package/dist/esm/calcite-alert.entry.js +5 -7
- 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 +3 -3
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/calcite-filter.entry.js +1 -1
- package/dist/esm/calcite-graph_2.entry.js +10 -6
- package/dist/esm/calcite-icon.entry.js +1 -1
- package/dist/esm/calcite-inline-editable.entry.js +40 -15
- 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 +14 -10
- 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 +2 -2
- package/dist/esm/calcite-notice.entry.js +5 -7
- package/dist/esm/calcite-option_3.entry.js +3 -3
- package/dist/esm/calcite-panel.entry.js +18 -2
- 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-group.entry.js +13 -0
- package/dist/esm/calcite-radio-button.entry.js +3 -7
- 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 +8 -5
- 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 +6 -4
- package/dist/esm/calcite-value-list_2.entry.js +2 -2
- package/dist/esm/calcite.js +1 -1
- package/dist/esm/{dom-037dc374.js → dom-e7fa77b9.js} +13 -10
- package/dist/esm/{form-72369b73.js → form-f90706b4.js} +1 -1
- package/dist/esm/{label-712646d2.js → label-2bffc9f4.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{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-f02a1ab5.js} +7 -3
- package/dist/esm-es5/{CalciteExpandToggle-48b6e955.js → CalciteExpandToggle-cff030be.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +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 +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
- 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/calcite.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/loader.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-f02a1ab5.js +5 -0
- package/dist/extras/docs-json.json +12 -1
- package/dist/types/components/calcite-alert/calcite-alert.d.ts +0 -3
- 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-inline-editable/calcite-inline-editable.d.ts +3 -1
- package/dist/types/components/calcite-input/calcite-input.d.ts +2 -4
- package/dist/types/components/calcite-notice/calcite-notice.d.ts +0 -3
- package/dist/types/components/calcite-panel/calcite-panel.d.ts +12 -0
- package/dist/types/components/calcite-radio-button-group/calcite-radio-button-group.d.ts +2 -0
- package/dist/types/components/calcite-slider/calcite-slider.d.ts +1 -0
- package/dist/types/components.d.ts +4 -0
- package/dist/types/utils/dom.d.ts +1 -0
- package/hydrate/index.js +151 -82
- package/package.json +6 -2
- package/readme.md +2 -6
- package/dist/calcite/p-1b06ada3.entry.js +0 -5
- package/dist/calcite/p-26fd946c.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-4641ef1f.entry.js +0 -5
- package/dist/calcite/p-4b3160ad.system.entry.js +0 -5
- package/dist/calcite/p-500b9fa0.entry.js +0 -5
- package/dist/calcite/p-57584243.system.entry.js +0 -5
- package/dist/calcite/p-5b7d5f36.entry.js +0 -5
- package/dist/calcite/p-6515e0a5.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-7ed5b78e.system.entry.js +0 -5
- package/dist/calcite/p-7f50128c.system.entry.js +0 -5
- package/dist/calcite/p-8468ddb0.system.entry.js +0 -5
- package/dist/calcite/p-92de4a81.entry.js +0 -5
- package/dist/calcite/p-950b42e3.entry.js +0 -5
- package/dist/calcite/p-9b05c3fd.js +0 -5
- package/dist/calcite/p-a5c73259.entry.js +0 -5
- package/dist/calcite/p-a980b2df.entry.js +0 -5
- package/dist/calcite/p-b052f523.entry.js +0 -5
- package/dist/calcite/p-c029ffb1.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-cf2be87e.entry.js +0 -5
- package/dist/calcite/p-dba7c714.system.entry.js +0 -5
- package/dist/calcite/p-de8496be.system.entry.js +0 -5
- package/dist/calcite/p-e63f0806.entry.js +0 -5
- package/dist/calcite/p-f385d631.entry.js +0 -5
- package/dist/calcite/p-f90b2e7f.entry.js +0 -5
- package/dist/calcite/p-f94619be.system.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,14 @@ 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
|
+
if (!locales.includes(lang)) {
|
|
26
|
+
lang = lang.split("-")[0];
|
|
27
|
+
}
|
|
25
28
|
}
|
|
29
|
+
return locales.includes(lang) ? lang : "en";
|
|
26
30
|
}
|
|
27
31
|
/**
|
|
28
32
|
* CLDR cache.
|
|
@@ -3,7 +3,7 @@
|
|
|
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 { f as focusElement } from './dom.js';
|
|
6
|
+
import { b as getSlotted, f as focusElement } from './dom.js';
|
|
7
7
|
import { C as CSS, u as updatePopper, c as createPopper } from './popper.js';
|
|
8
8
|
import { c as createObserver } from './observers.js';
|
|
9
9
|
|
|
@@ -76,7 +76,7 @@ let CalciteDropdown = class extends HTMLElement {
|
|
|
76
76
|
//--------------------------------------------------------------------------
|
|
77
77
|
this.updateItems = () => {
|
|
78
78
|
this.updateSelectedItems();
|
|
79
|
-
this.triggers =
|
|
79
|
+
this.triggers = getSlotted(this.el, "dropdown-trigger", { all: true });
|
|
80
80
|
this.items = Array.from(this.el.querySelectorAll("calcite-dropdown-item"));
|
|
81
81
|
this.reposition();
|
|
82
82
|
};
|
|
@@ -3,8 +3,9 @@
|
|
|
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 { g as getElementProp } from './dom.js';
|
|
6
|
+
import { g as getElementProp, b as getSlotted } from './dom.js';
|
|
7
7
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label.js';
|
|
8
|
+
import { c as createObserver } from './observers.js';
|
|
8
9
|
import { d as defineCustomElement$4 } from './calcite-button2.js';
|
|
9
10
|
import { d as defineCustomElement$3 } from './calcite-icon2.js';
|
|
10
11
|
import { d as defineCustomElement$2 } from './calcite-loader2.js';
|
|
@@ -59,26 +60,31 @@ let CalciteInlineEditable$1 = class extends HTMLElement {
|
|
|
59
60
|
* @default "Save"
|
|
60
61
|
*/
|
|
61
62
|
this.intlConfirmChanges = TEXT.intlConfirmChanges;
|
|
63
|
+
this.mutationObserver = createObserver("mutation", () => this.mutationObserverCallback());
|
|
62
64
|
this.transitionEnd = () => {
|
|
63
65
|
if (!this.editingEnabled && !!this.shouldEmitCancel) {
|
|
64
66
|
this.calciteInlineEditableEditCancel.emit();
|
|
65
67
|
}
|
|
66
68
|
};
|
|
67
69
|
this.enableEditing = () => {
|
|
68
|
-
|
|
70
|
+
var _a, _b;
|
|
71
|
+
this.valuePriorToEditing = (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.value;
|
|
69
72
|
this.editingEnabled = true;
|
|
70
|
-
this.inputElement.setFocus();
|
|
73
|
+
(_b = this.inputElement) === null || _b === void 0 ? void 0 : _b.setFocus();
|
|
71
74
|
this.calciteInlineEditableEnableEditingChange.emit();
|
|
72
75
|
};
|
|
73
76
|
this.disableEditing = () => {
|
|
74
77
|
this.editingEnabled = false;
|
|
75
78
|
};
|
|
76
79
|
this.cancelEditing = () => {
|
|
77
|
-
this.inputElement
|
|
80
|
+
if (this.inputElement) {
|
|
81
|
+
this.inputElement.value = this.valuePriorToEditing;
|
|
82
|
+
}
|
|
78
83
|
this.disableEditing();
|
|
79
84
|
this.enableEditingButton.setFocus();
|
|
80
85
|
};
|
|
81
86
|
this.escapeKeyHandler = async (e) => {
|
|
87
|
+
var _a;
|
|
82
88
|
if (e.key !== "Escape") {
|
|
83
89
|
if (e.key === "Tab" && this.shouldShowControls) {
|
|
84
90
|
if (!e.shiftKey && e.target === this.inputElement) {
|
|
@@ -88,7 +94,7 @@ let CalciteInlineEditable$1 = class extends HTMLElement {
|
|
|
88
94
|
if (!!e.shiftKey && e.target === this.cancelEditingButton) {
|
|
89
95
|
e.preventDefault();
|
|
90
96
|
e.stopPropagation();
|
|
91
|
-
this.inputElement.setFocus();
|
|
97
|
+
(_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.setFocus();
|
|
92
98
|
}
|
|
93
99
|
}
|
|
94
100
|
return;
|
|
@@ -130,10 +136,14 @@ let CalciteInlineEditable$1 = class extends HTMLElement {
|
|
|
130
136
|
};
|
|
131
137
|
}
|
|
132
138
|
disabledWatcher(disabled) {
|
|
133
|
-
this.inputElement
|
|
139
|
+
if (this.inputElement) {
|
|
140
|
+
this.inputElement.disabled = disabled;
|
|
141
|
+
}
|
|
134
142
|
}
|
|
135
143
|
editingEnabledWatcher(newValue, oldValue) {
|
|
136
|
-
this.inputElement
|
|
144
|
+
if (this.inputElement) {
|
|
145
|
+
this.inputElement.editingEnabled = newValue;
|
|
146
|
+
}
|
|
137
147
|
if (!newValue && !!oldValue) {
|
|
138
148
|
this.shouldEmitCancel = true;
|
|
139
149
|
}
|
|
@@ -144,17 +154,15 @@ let CalciteInlineEditable$1 = class extends HTMLElement {
|
|
|
144
154
|
//
|
|
145
155
|
//--------------------------------------------------------------------------
|
|
146
156
|
connectedCallback() {
|
|
157
|
+
var _a;
|
|
147
158
|
connectLabel(this);
|
|
159
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
|
160
|
+
this.mutationObserverCallback();
|
|
148
161
|
}
|
|
149
162
|
disconnectedCallback() {
|
|
163
|
+
var _a;
|
|
150
164
|
disconnectLabel(this);
|
|
151
|
-
|
|
152
|
-
componentWillLoad() {
|
|
153
|
-
this.inputElement = this.el.querySelector("calcite-input");
|
|
154
|
-
this.inputElement.disabled = this.disabled;
|
|
155
|
-
this.inputElement.label = this.inputElement.label || getLabelText(this);
|
|
156
|
-
this.scale =
|
|
157
|
-
this.scale || this.inputElement.scale || getElementProp(this.el, "scale", undefined);
|
|
165
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
158
166
|
}
|
|
159
167
|
render() {
|
|
160
168
|
return (h("div", { class: CSS.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler, onTransitionEnd: this.transitionEnd }, h("div", { class: CSS.inputWrapper }, h("slot", null)), h("div", { class: CSS.controlsWrapper }, h("calcite-button", { appearance: "transparent", class: CSS.enableEditingButton, color: "neutral", disabled: this.disabled, iconStart: "pencil", label: this.intlEnableEditing, onClick: this.enableEditingHandler, ref: (el) => (this.enableEditingButton = el), scale: this.scale, style: {
|
|
@@ -194,9 +202,26 @@ let CalciteInlineEditable$1 = class extends HTMLElement {
|
|
|
194
202
|
// Private Methods
|
|
195
203
|
//
|
|
196
204
|
//--------------------------------------------------------------------------
|
|
205
|
+
mutationObserverCallback() {
|
|
206
|
+
var _a;
|
|
207
|
+
this.updateSlottedInput();
|
|
208
|
+
this.scale =
|
|
209
|
+
this.scale || ((_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.scale) || getElementProp(this.el, "scale", undefined);
|
|
210
|
+
}
|
|
197
211
|
onLabelClick() {
|
|
198
212
|
this.setFocus();
|
|
199
213
|
}
|
|
214
|
+
updateSlottedInput() {
|
|
215
|
+
const inputElement = getSlotted(this.el, {
|
|
216
|
+
matches: "calcite-input"
|
|
217
|
+
});
|
|
218
|
+
this.inputElement = inputElement;
|
|
219
|
+
if (!inputElement) {
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
this.inputElement.disabled = this.disabled;
|
|
223
|
+
this.inputElement.label = this.inputElement.label || getLabelText(this);
|
|
224
|
+
}
|
|
200
225
|
get shouldShowControls() {
|
|
201
226
|
return this.editingEnabled && this.controls;
|
|
202
227
|
}
|
|
@@ -3,12 +3,13 @@
|
|
|
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 { T as TEXT, s as setRequestedIcon, g as getElementProp, a as getElementDir, C as CSS_UTILITY } from './dom.js';
|
|
6
|
+
import { T as TEXT, b as getSlotted, s as setRequestedIcon, g as getElementProp, a as getElementDir, C as CSS_UTILITY } from './dom.js';
|
|
7
7
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label.js';
|
|
8
8
|
import { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form.js';
|
|
9
9
|
import { d as delocalizeNumberString, g as getDecimalSeparator, l as localizeNumberString } from './locale.js';
|
|
10
10
|
import { i as isValidNumber, p as parseNumberString, s as sanitizeNumberString, n as numberKeys } from './number.js';
|
|
11
11
|
import { d as decimalPlaces } from './math.js';
|
|
12
|
+
import { c as createObserver } from './observers.js';
|
|
12
13
|
import { d as defineCustomElement$2 } from './calcite-icon2.js';
|
|
13
14
|
import { d as defineCustomElement$1 } from './calcite-progress2.js';
|
|
14
15
|
|
|
@@ -110,6 +111,7 @@ let CalciteInput = class extends HTMLElement {
|
|
|
110
111
|
this.childElType = "input";
|
|
111
112
|
/** whether the value of the input was changed as a result of user typing or not */
|
|
112
113
|
this.internalValueChange = false;
|
|
114
|
+
this.mutationObserver = createObserver("mutation", () => this.setDisabledAction());
|
|
113
115
|
//--------------------------------------------------------------------------
|
|
114
116
|
//
|
|
115
117
|
// Private Methods
|
|
@@ -148,7 +150,8 @@ let CalciteInput = class extends HTMLElement {
|
|
|
148
150
|
}
|
|
149
151
|
};
|
|
150
152
|
this.inputFocusHandler = (event) => {
|
|
151
|
-
|
|
153
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
154
|
+
if (event.target !== slottedActionEl) {
|
|
152
155
|
this.setFocus();
|
|
153
156
|
}
|
|
154
157
|
this.calciteInputFocus.emit({
|
|
@@ -392,6 +395,7 @@ let CalciteInput = class extends HTMLElement {
|
|
|
392
395
|
//
|
|
393
396
|
//--------------------------------------------------------------------------
|
|
394
397
|
connectedCallback() {
|
|
398
|
+
var _a;
|
|
395
399
|
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
396
400
|
this.status = getElementProp(this.el, "status", this.status);
|
|
397
401
|
this.inlineEditableEl = this.el.closest("calcite-inline-editable");
|
|
@@ -408,10 +412,14 @@ let CalciteInput = class extends HTMLElement {
|
|
|
408
412
|
}
|
|
409
413
|
connectLabel(this);
|
|
410
414
|
connectForm(this);
|
|
415
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
|
416
|
+
this.setDisabledAction();
|
|
411
417
|
}
|
|
412
418
|
disconnectedCallback() {
|
|
419
|
+
var _a;
|
|
413
420
|
disconnectLabel(this);
|
|
414
421
|
disconnectForm(this);
|
|
422
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
415
423
|
}
|
|
416
424
|
componentWillLoad() {
|
|
417
425
|
var _a, _b;
|
|
@@ -420,10 +428,6 @@ let CalciteInput = class extends HTMLElement {
|
|
|
420
428
|
this.minString = (_b = this.min) === null || _b === void 0 ? void 0 : _b.toString();
|
|
421
429
|
this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
422
430
|
}
|
|
423
|
-
componentDidLoad() {
|
|
424
|
-
this.slottedActionEl = this.el.querySelector("[slot=action]");
|
|
425
|
-
this.setDisabledAction();
|
|
426
|
-
}
|
|
427
431
|
componentShouldUpdate(newValue, oldValue, property) {
|
|
428
432
|
if (this.type === "number" && property === "value" && newValue && !isValidNumber(newValue)) {
|
|
429
433
|
this.setValue({
|
|
@@ -495,10 +499,10 @@ let CalciteInput = class extends HTMLElement {
|
|
|
495
499
|
}
|
|
496
500
|
}
|
|
497
501
|
setDisabledAction() {
|
|
498
|
-
|
|
502
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
503
|
+
if (!slottedActionEl) {
|
|
499
504
|
return;
|
|
500
505
|
}
|
|
501
|
-
const slottedActionEl = this.slottedActionEl;
|
|
502
506
|
this.disabled
|
|
503
507
|
? slottedActionEl.setAttribute("disabled", "")
|
|
504
508
|
: slottedActionEl.removeAttribute("disabled");
|
|
@@ -227,7 +227,7 @@ let CalciteModal$1 = class extends HTMLElement {
|
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
this.updateFooterVisibility = () => {
|
|
230
|
-
this.hasFooter = !!this.el
|
|
230
|
+
this.hasFooter = !!getSlotted(this.el, [SLOTS.back, SLOTS.primary, SLOTS.secondary]);
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
233
|
//--------------------------------------------------------------------------
|
|
@@ -80,9 +80,6 @@ let CalciteNotice$1 = class extends HTMLElement {
|
|
|
80
80
|
componentWillLoad() {
|
|
81
81
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
82
82
|
}
|
|
83
|
-
componentDidLoad() {
|
|
84
|
-
this.noticeLinkEl = this.el.querySelector("calcite-link");
|
|
85
|
-
}
|
|
86
83
|
render() {
|
|
87
84
|
const { el } = this;
|
|
88
85
|
const closeButton = (h("button", { "aria-label": this.intlClose, class: CSS.close, onClick: this.close, ref: (el) => (this.closeButton = el) }, h("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
@@ -96,11 +93,12 @@ let CalciteNotice$1 = class extends HTMLElement {
|
|
|
96
93
|
//--------------------------------------------------------------------------
|
|
97
94
|
/** Sets focus on the component. */
|
|
98
95
|
async setFocus() {
|
|
99
|
-
|
|
96
|
+
const noticeLinkEl = this.el.querySelector("calcite-link");
|
|
97
|
+
if (!this.closeButton && !noticeLinkEl) {
|
|
100
98
|
return;
|
|
101
99
|
}
|
|
102
|
-
if (
|
|
103
|
-
|
|
100
|
+
if (noticeLinkEl) {
|
|
101
|
+
noticeLinkEl.setFocus();
|
|
104
102
|
}
|
|
105
103
|
else if (this.closeButton) {
|
|
106
104
|
this.closeButton.focus();
|
|
@@ -157,6 +157,20 @@ let CalcitePanel$1 = class extends HTMLElement {
|
|
|
157
157
|
}
|
|
158
158
|
(_c = this.containerEl) === null || _c === void 0 ? void 0 : _c.focus();
|
|
159
159
|
}
|
|
160
|
+
/** Scrolls panel content to a particular set of coordinates.
|
|
161
|
+
*
|
|
162
|
+
* ```
|
|
163
|
+
* myCalcitePanel.scrollContentTo({
|
|
164
|
+
* left: 0, // Specifies the number of pixels along the X axis to scroll the window or element.
|
|
165
|
+
* top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element
|
|
166
|
+
* behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
|
|
167
|
+
* });
|
|
168
|
+
* ```
|
|
169
|
+
*/
|
|
170
|
+
async scrollContentTo(options) {
|
|
171
|
+
var _a;
|
|
172
|
+
(_a = this.panelScrollEl) === null || _a === void 0 ? void 0 : _a.scrollTo(options);
|
|
173
|
+
}
|
|
160
174
|
// --------------------------------------------------------------------------
|
|
161
175
|
//
|
|
162
176
|
// Render Methods
|
|
@@ -225,7 +239,9 @@ let CalcitePanel$1 = class extends HTMLElement {
|
|
|
225
239
|
renderContent() {
|
|
226
240
|
const { el } = this;
|
|
227
241
|
const hasFab = getSlotted(el, SLOTS.fab);
|
|
228
|
-
|
|
242
|
+
const defaultSlotNode = h("slot", { key: "default-slot" });
|
|
243
|
+
const contentWrapperKey = "content-wrapper";
|
|
244
|
+
return hasFab ? (h("div", { class: { [CSS.contentWrapper]: true, [CSS.contentHeight]: true }, key: contentWrapperKey, onScroll: this.panelScrollHandler, ref: (el) => (this.panelScrollEl = el), tabIndex: 0 }, h("section", { class: CSS.contentContainer }, defaultSlotNode), this.renderFab())) : (h("section", { class: { [CSS.contentWrapper]: true, [CSS.contentContainer]: true }, key: contentWrapperKey, onScroll: this.panelScrollHandler, ref: (el) => (this.panelScrollEl = el), tabIndex: 0 }, defaultSlotNode));
|
|
229
245
|
}
|
|
230
246
|
renderFab() {
|
|
231
247
|
return (h("div", { class: CSS.fabContainer }, h("slot", { name: SLOTS.fab })));
|
|
@@ -257,7 +273,8 @@ CalcitePanel$1 = /*@__PURE__*/ proxyCustomElement(CalcitePanel$1, [1, "calcite-p
|
|
|
257
273
|
"heading": [1],
|
|
258
274
|
"summary": [1],
|
|
259
275
|
"menuOpen": [516, "menu-open"],
|
|
260
|
-
"setFocus": [64]
|
|
276
|
+
"setFocus": [64],
|
|
277
|
+
"scrollContentTo": [64]
|
|
261
278
|
}]);
|
|
262
279
|
function defineCustomElement$1() {
|
|
263
280
|
if (typeof customElements === "undefined") {
|
|
@@ -3,6 +3,7 @@
|
|
|
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 { c as createObserver } from './observers.js';
|
|
6
7
|
|
|
7
8
|
const calciteRadioButtonGroupCss = "@-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{display:-ms-flexbox;display:flex;max-width:100vw}:host([layout=horizontal]){-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}:host([layout=horizontal][scale=s]){gap:1rem}:host([layout=horizontal][scale=m]){gap:1.25rem}:host([layout=horizontal][scale=l]){gap:1.5rem}:host([layout=vertical]){-ms-flex-direction:column;flex-direction:column}";
|
|
8
9
|
|
|
@@ -27,6 +28,12 @@ let CalciteRadioButtonGroup$1 = class extends HTMLElement {
|
|
|
27
28
|
this.required = false;
|
|
28
29
|
/** The scale (size) of the radio button group. */
|
|
29
30
|
this.scale = "m";
|
|
31
|
+
// --------------------------------------------------------------------------
|
|
32
|
+
//
|
|
33
|
+
// Private Properties
|
|
34
|
+
//
|
|
35
|
+
// --------------------------------------------------------------------------
|
|
36
|
+
this.mutationObserver = createObserver("mutation", () => this.passPropsToRadioButtons());
|
|
30
37
|
//--------------------------------------------------------------------------
|
|
31
38
|
//
|
|
32
39
|
// Private Methods
|
|
@@ -63,7 +70,13 @@ let CalciteRadioButtonGroup$1 = class extends HTMLElement {
|
|
|
63
70
|
//
|
|
64
71
|
//--------------------------------------------------------------------------
|
|
65
72
|
connectedCallback() {
|
|
73
|
+
var _a;
|
|
66
74
|
this.passPropsToRadioButtons();
|
|
75
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
76
|
+
}
|
|
77
|
+
disconnectedCallback() {
|
|
78
|
+
var _a;
|
|
79
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
67
80
|
}
|
|
68
81
|
//--------------------------------------------------------------------------
|
|
69
82
|
//
|
|
@@ -142,10 +142,6 @@ let CalciteRadioButton$1 = class extends HTMLElement {
|
|
|
142
142
|
}
|
|
143
143
|
nameChanged() {
|
|
144
144
|
this.checkLastRadioButton();
|
|
145
|
-
const currentValue = this.rootNode.querySelector(`input[name="${this.name}"]:checked`);
|
|
146
|
-
if (!(currentValue === null || currentValue === void 0 ? void 0 : currentValue.value)) {
|
|
147
|
-
this.uncheckAllRadioButtonsInGroup();
|
|
148
|
-
}
|
|
149
145
|
}
|
|
150
146
|
//--------------------------------------------------------------------------
|
|
151
147
|
//
|
|
@@ -59,16 +59,19 @@ let CalciteShell$1 = class extends HTMLElement {
|
|
|
59
59
|
return hasHeader ? h("slot", { key: "header", name: SLOTS.header }) : null;
|
|
60
60
|
}
|
|
61
61
|
renderContent() {
|
|
62
|
+
const defaultSlotNode = h("slot", { key: "default-slot" });
|
|
63
|
+
const centerRowSlotNode = h("slot", { key: "center-row-slot", name: SLOTS.centerRow });
|
|
64
|
+
const contentContainerKey = "content-container";
|
|
62
65
|
const content = !!this.contentBehind
|
|
63
66
|
? [
|
|
64
67
|
h("div", { class: {
|
|
65
68
|
[CSS.content]: true,
|
|
66
|
-
[CSS.contentBehind]:
|
|
67
|
-
} },
|
|
68
|
-
|
|
69
|
+
[CSS.contentBehind]: true
|
|
70
|
+
}, key: contentContainerKey }, defaultSlotNode),
|
|
71
|
+
centerRowSlotNode
|
|
69
72
|
]
|
|
70
73
|
: [
|
|
71
|
-
h("div", { class: CSS.content
|
|
74
|
+
h("div", { class: CSS.content, key: contentContainerKey }, defaultSlotNode, centerRowSlotNode)
|
|
72
75
|
];
|
|
73
76
|
return content;
|
|
74
77
|
}
|
|
@@ -93,9 +93,7 @@ let CalciteSlider$1 = class extends HTMLElement {
|
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
this.dragEnd = (event) => {
|
|
96
|
-
|
|
97
|
-
document.removeEventListener("pointerup", this.dragEnd);
|
|
98
|
-
document.removeEventListener("pointercancel", this.dragEnd);
|
|
96
|
+
this.removeDragListeners();
|
|
99
97
|
this.focusActiveHandle(event.clientX);
|
|
100
98
|
if (this.lastDragPropValue != this[this.dragProp]) {
|
|
101
99
|
this.emitChange();
|
|
@@ -130,6 +128,7 @@ let CalciteSlider$1 = class extends HTMLElement {
|
|
|
130
128
|
disconnectedCallback() {
|
|
131
129
|
disconnectLabel(this);
|
|
132
130
|
disconnectForm(this);
|
|
131
|
+
this.removeDragListeners();
|
|
133
132
|
}
|
|
134
133
|
componentWillLoad() {
|
|
135
134
|
this.isRange = !!(this.maxValue || this.maxValue === 0);
|
|
@@ -465,6 +464,11 @@ let CalciteSlider$1 = class extends HTMLElement {
|
|
|
465
464
|
emitChange() {
|
|
466
465
|
this.calciteSliderChange.emit();
|
|
467
466
|
}
|
|
467
|
+
removeDragListeners() {
|
|
468
|
+
document.removeEventListener("pointermove", this.dragUpdate);
|
|
469
|
+
document.removeEventListener("pointerup", this.dragEnd);
|
|
470
|
+
document.removeEventListener("pointercancel", this.dragEnd);
|
|
471
|
+
}
|
|
468
472
|
/**
|
|
469
473
|
* Set the prop value if changed at the component level
|
|
470
474
|
* @param valueProp
|
|
@@ -140,7 +140,8 @@ let CalciteTreeItem$1 = class extends HTMLElement {
|
|
|
140
140
|
[CSS.chevron]: true,
|
|
141
141
|
[CSS_UTILITY.rtl]: rtl
|
|
142
142
|
}, "data-test-id": "icon", icon: ICONS.chevronRight, onClick: this.iconClickHandler, scale: "s" })) : null;
|
|
143
|
-
const
|
|
143
|
+
const defaultSlotNode = h("slot", { key: "default-slot" });
|
|
144
|
+
const checkbox = this.selectionMode === TreeSelectionMode.Ancestors ? (h("label", { class: CSS.checkboxLabel, key: "checkbox-label" }, h("calcite-checkbox", { checked: this.selected, class: CSS.checkbox, "data-test-id": "checkbox", indeterminate: this.hasChildren && this.indeterminate, scale: this.scale, tabIndex: -1 }), defaultSlotNode)) : null;
|
|
144
145
|
const selectedIcon = showBulletPoint
|
|
145
146
|
? ICONS.bulletPoint
|
|
146
147
|
: showCheckmark
|
|
@@ -155,7 +156,7 @@ let CalciteTreeItem$1 = class extends HTMLElement {
|
|
|
155
156
|
return (h(Host, { "aria-expanded": this.hasChildren ? this.expanded.toString() : undefined, "aria-hidden": hidden.toString(), "aria-selected": this.selected ? "true" : showCheckmark ? "false" : undefined, "calcite-hydrated-hidden": hidden, role: "treeitem", tabindex: this.parentExpanded || this.depth === 1 ? "0" : "-1" }, h("div", { class: {
|
|
156
157
|
[CSS.nodeContainer]: true,
|
|
157
158
|
[CSS_UTILITY.rtl]: rtl
|
|
158
|
-
}, "data-selection-mode": this.selectionMode, ref: (el) => (this.defaultSlotWrapper = el) }, chevron, bulletOrCheckIcon, checkbox ? checkbox :
|
|
159
|
+
}, "data-selection-mode": this.selectionMode, ref: (el) => (this.defaultSlotWrapper = el) }, chevron, bulletOrCheckIcon, checkbox ? checkbox : defaultSlotNode), h("div", { class: {
|
|
159
160
|
[CSS.childrenContainer]: true,
|
|
160
161
|
[CSS_UTILITY.rtl]: rtl
|
|
161
162
|
}, "data-test-id": "calcite-tree-children", onClick: this.childrenClickHandler, ref: (el) => (this.childrenSlotWrapper = el), role: this.hasChildren ? "group" : undefined }, h("slot", { name: SLOTS.children }))));
|
|
@@ -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
|
}
|